常用Linux或者Android命令

删除SVN文件夹中所有文件,保留SVN文件夹

rm `find . ! \( -name '.svn' -prune \) -and ! \( -type d \)`

拷贝目录到另外一个目录并更改目录名称

cp -a -T ~/tmp/AE14/AE14/source/local_src/r1k-monitor-applications/ responder-source/

启动Android网络调试

Connect device via USB and make sure debugging is working. 
adb tcpip 5555 
adb connect 10.0.0.2:5555 
(replace with device's IP address) 
Disconnect USB and proceed with wireless debugging. 
adb usb to switch back when done. 

映射蓝牙设备到虚拟机

1.Stop bluetooth device discovery service in windows 
2. In VM Ubuntu
sudo hciconfig hci0 reset before each test
3. Disable all bluetooth services when bluetooth device already attached to VM

使用gcov

# gcc -fprofile-arcs -ftest-coverage -o test test.c
/svn/CAM_PERFORCE/trunk/CAM/buildme/MCU/BluetoothManager/Source$ gcov -o ./CMakeFiles/BluetoothManager.dir/ ./CMakeFiles/BluetoothManager.dir/*.gcda 


windows命令设置网络

netsh interface ip set address "网络连接名" static 192.168.0.88 255.255.255.0 192.168.0.1 1
netsh interface ip set dns "网络连接名" static 202.216.224.66
netsh interface ip add dns "网络连接名" 202.216.224.67  


如果要改成动态分配ip和自动获得dns使用下面命令。
netsh interface ip set address "网络连接名" dhcp
netsh interface ip set dns "网络连接名" dhcp

Ubuntu安装virtualbox插件

VBoxManage internalcommands sethduuid E:\VirtualBox\Win7_Ultimate_SP1_1\Win7_Ultimate_SP1.vdi  
install virtualbox addon:
 sudo apt-get install build-essential module-assistant
sudo m-a prepare
 lsmod | grep -io vboxguest | xargs modinfo | grep -iw version
sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions \
/usr/lib/VBoxGuestAdditions



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值