链接
sudo apt-get install pv
ls -al /dev/sd*
Now plug the device in and see which device is new in the list.
For this example we found “/dev/sdb”
ls -al /dev/sdb*
brw-rw---- 1 root disk 8, 16 Jan 30 01:51 /dev/sdb
brw-rw---- 1 root disk 8, 17 Jan 30 01:51 /dev/sdb1
brw-rw---- 1 root disk 8, 18 Jan 30 01:51 /dev/sdb2
unmount /dev/sdX#
unmount /dev/sdX#
xz -d ubuntu-COMPLETE-NAME-HERE.img.xz
sudo dd bs=4M if=/dev/zero | pv | sudo dd of=/dev/sdX
sudo dd bs=4M if=ubuntu-COMPLETE-NAME-HERE.img | pv | sudo dd of=/dev/sdX
sync
首先ifconfig
看是那个wlan
,然后修改下面的wlan
数字
vim /etc/network/interface
auto lo
iface lo inet loopback
iface eth0 inet dhcp
auto wlan2
allow-hotplug wlan2
iface wlan2 inet dhcp
wpa-ssid "ladybug"
wpa-psk "xn1234567890"
* 静态ip
auto lo
iface lo inet loopback
#iface eth0 inet dhcp
auto wlan2
allow-hotplug wlan2
iface wlan2 inet static
wpa-ssid "ladybug"
wpa-psk "xn1234567890"
address 192.168.1.130
netmask 255.255.255.0
#broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 192.168.1.1
pixhawk odroid的配置
odroid-utility.sh
安装一些必要的软件
sudo apt-get install bash-completion ssh apt-file
网络地址是: 192.168.1.130
ssh [email protected]
密码: odroid
scp [email protected]:/opt/soft/demo.tar /opt/soft/
说明: 从10.6.159.147机器上的/opt/soft/的目录中下载demo.tar 文件到本地/opt/soft/目录中
scp -r [email protected]:/opt/soft/test /opt/soft/
从10.6.159.147机器上的/opt/soft/中下载test目录到本地的/opt/soft/目录来
scp /opt/soft/demo.tar [email protected]:/opt/soft/scptest
复制本地opt/soft/目录下的文件demo.tar 到远程机器10.6.159.147的opt/soft/scptest目录
scp -r /opt/soft/test [email protected]:/opt/soft/scptest
上传本地目录 /opt/soft/test到远程机器10.6.159.147上/opt/soft/scptest的目录中a