Profilo di Shawn肖恩鲍的blogFotoBlogElenchiAltro ![]() | Guida |
|
肖恩鲍的blog08 luglio Setup VPN in Ubuntu1. 申请VPN账号 2. 确认本地物理网卡IP地址不在192.168.1.0网段 3. 切换为root用户并安装VPN
3. 安装CA证书及配置文件 4. 安装个人证书及密钥 5. 用root用户更改配置文件权限
6. 用普通用户登陆并启动VPN, 启动过程中需要输入用户名和口令 sudo /etc/init.d/openvpn start 7. 用普通用户关闭VPN sudo /etc/init.d/openvpn stop 8. 目前VPN口令无法通过客户端软件更改! Setup VMWare USB Access in Ubuntu Gutsy 1. Make sure the virtual machine configured with from vmware console usb controller Sutdown the virtual machine before config 2. add below line into related <VM Name>.vmx usb.generic.skipSetConfig = "TRUE"
3. Edit /etc/init.d/mountdevsubfs.sh uncomment below lines near line 42 mkdir -p /dev/bus/usb/.usbfs 4. Restart mountdevsubfs.sh sudo /etc/init.d/mountdevsubfs.sh start 5. Restart vmware service sudo /etc/init.d/vmware* restart6. Start Virtual machine Setup build envSwitch to root sudo su Install system service config tool aptitude -y install sysv-rc-conf Install subversion aptitude -y install subversion subversion-tools Install git aptitude -y install git-core git-svn Install necessary development tools aptitude -y install ant binutils binutils-dev binutils-static \ Install JDK 1.5 aptitude -y install sun-java5-jdk Config cross compiler (marvell) sudo su Optional configuration (For resolving the emulator crash problem only): rm -f /usr/bin/gcc Other optional component sduo aptitude -y install acroread acroread-escript acroread-plugins
SVN Quick StartFrom $1注意:CM email: cm@borqs.com1 Note: svn://192.168.1.250/test/branches/borqs is demo and test URL 若多次登录验证错误请参考以下操作恢复 rm -fr ~/.subversion/auth check out svn co [svn://192.168.1.250/test/branches/borqs] <test_lastest> update svn update commit svn ci <-m 'Your Chinese Name: change log'> <filename or pathname> Log format 日志需要至少包含二行做为日志头 Add svn add [filename or pathname] Revision svn co --revision [revision number] [svn://192.168.1.250/test/branches/borqs] <test_rv3> Review version log svn log [svn://192.168.1.250/test/branches/borqs] List svn list [svn://192.168.1.250/test/branches/borqs] Create branch temp branch name standard: [your SVN ID]_[based branch revision number]_[description] [CR number]_[your SVN ID] svn copy -r [revision number] [svn://192.168.1.250/test/branches/borqs] [svn://192.168.1.250/test/pool/branch_name] <-m 'Your Chinese Name: change log'> merge 注意: 合并的操作是在本地进行的,合并完成后需要提交 # 将branches下borqs的版本10与pool下test版本20的不同合并到my_working_copy目录下 二进制文件可能被忽略,可以使用以下命令强制列出当前状态 svn st --no-ignore 定义可执行文件的在版本库中的执行权限 svn propset svn:executable '' <File path> 在工作目录中执行 svn switch 命令切换当前工作目录的URL svn switch <New URL> 更多操作请看下面附件中的手册,中文手册是1.2版,英文是1.4版。 NFS How to for TavorEVB boardNFS How to for TavorEVB board Version Date Changelogs
Steps: A. target tavor EVB board side setting: 2 methods: 1. automatically config in kernel: # cd /svn/linux/branches/borqs 2. manually config in kernel:
1. add IP addr auto-config in /etc/network/interfaces: 1.1 add device info in /etc/hosts, like the last line: 1.2 Ubuntu Feisty and Gutsy appear to have a bug where ifdown is not run when the interface is unplugged, meaning this only works once after the system is booted. One can patch /etc/udev/rules.d/85-ifupdown.rules, editing the two lines at the end of the file like this: # Bring devices up and down only if they're marked auto. the bug is that the LABEL="net_end" is at the wrong position. 2. install nfs service: 3. add export directory(/download/root) to NFS service by editing /etc/exports: 4. copy root files to /download/root: Here is the rootfs I used: 5. rootfs how to Android SW stack: # !you may need to clean /download/root first. C. Try NFS with Tavor board: 1. power up the Tavor board and checking the its output from minicom.
1. NFS can only be used on the first time due to hotplug & network issue. 2. the mounting time for NFS is very slow now, about 10-30 seconds. Readme for TFTP server install在ubuntu下安装xinetd模式的tftpd服务 1、安装server与client 2、删除standalone的启动方式 3、新建用户tftpd及其主目录 3.5 install xinetd sudo apt-get install xinetd 4、新建xinetd启动文件 5.5 if you have other network connections, such as WiFi, dual-eth cards, pls shutdown the others if tftp is not working. 6、重新启动xinetd服务 7、测试tftpd服务是否成功 NFS Setup StepsNFS服务器端的配置:
(1) 先确认是否安装了NFS,查看目录/etc/xinetd.d/下是否存在nfs文件(一般在虚拟机下安装都会完全安装,所以会有)
(2) 宿主机的网络配置,主要是是IP地址的设置;命令如下:
# ifconfig eth0 down
# ifconfig eth0 192.168.1.10 up 再# ifconfig一下,看配置是否正确,也可以在图形用户界面下配置
(3) 编辑/etc/exports文件,命令如下:
# vi /etc/exports
在里面输入/home/nfs 192.168.1.1(rw,sync,no_root_squash),保存退出;
/home/nfs:是宿主机上共享的文件夹;
192.168.1.11:是开发板的IP地址;
rm:开发板可以读写访问共享的文件夹;
sync:所有数据在请求时写入共享 ; no_root_squash:root用户具有根目录的完全管理访问权限 意思是:允许IP为192.168.1.11的ARM9开发系统将宿主机上的/home/nfs这个目录mount到开发系统下,即ARM9开发系统可以通过网络访问宿主机上的/home/nfs目录。 (4) 重启NFS 命令如下:
# service nfs restart
NFS客户端的配置:
(1) 用minicom启动开发系统;
(2) 网络的配置,命令如下:
# ifconfig eth0 192.168.1.11
# ifconfig
(3) Ping一下主机,看开发板和主机之间是否相通
(4) 在ARM9开发系统中建立目录/mnt/nfs
# mkdir /mnt/nfs (5) 若相通,则将宿主机上的目录/home/nfs mount到ARM9开发系统下的目录/mnt/nfs上。命令如下:
# mount -t nfs -o nolock 192.168.1.1:/home/embeder/nfs /tmp/nfs (6) 进入目录/mnp/nfs,查看是否和宿主机上的目录/home/nfs中的内容一样?^_^,应该是一样的。
可能出现的问题:
(1) 服务器端的防火墙没有关掉;会出现Connection Refuse的错误;因为被防火墙给屏蔽掉了!
(2) 出现mount version older than kernal的问题,刚开始介绍的时候说的那个问题就是这个,服务器和开发系统内核版本的问题。但是不要担心,并不用更新,完全可以正常使用。
|
|
|||
|
|