ubuntu装机
2011年06月20日
/×××××××××××××××××××××××××××××××××××××××××××××××××××××××××/
ctags taglist cscope fcitx java1.5
保护色:RGB:202,220,207
/×××××××××××××××××××××××××××××××××××××××××××××××××××××××××/
android编译所需库:
sudo apt-get install flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential python valgrind curl git
/×××××××××××××××××××××××××××××××××××××××××××××××××××××××××/
#cscope.sh
#!/bin/bash
echo "ctags -R $@"
ctags -R $@
echo "create cscope.files"
for arg in "$@"
do
echo "find *.c *.h *.cpp *.S in $arg"
find $arg -name "*.c" -o -name "*.h" -o -name "*.cpp" -o -name "*.S" >> cscope.files
done
echo "creat cscope.out"
cscope -bkq -i cscope.files
echo "end success"
/×××××××××××××××××××××××××××××××××××××××××××××××××××××××××/
#add next to ~/.bashrc
export PATH=$PATH:$HOME/android-sdk-linux_86/tools
export PATH=$PATH:/home/ljyat/android-sdk-linux_86/platforms/android-2.1/tools
export PATH=$PATH:/home/ljyat/image/tools
export PATH=$PATH:/home/ljyat/.gem/ruby/1.8/bin
export JAVA_HOME=$HOME/jdk1.5.0_22
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$JAVA_HOME/bin:$PATH
export ANT_HOME=/usr/local/ant/apache-ant-1.8.1
export PATH=$PATH:$HOME/bin:$ANT_HOME/bin
export CLASSPATH=.:$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/lib
/×××××××××××××××××××××××××××××××××××××××××××××××××××××××××/
#add next to /etc/vim/vimrc
set autowrite " Automatically save before commands like :next and :make
"set hidden " Hide buffers when they are abandoned
set autoindent
set tabstop=4
set mouse=a " Enable mouse usage (all modes)
set number
set cindent
set shiftwidth=4
set expandtab
set hlsearch set incsearch
set nocp
"let g:winManagerWindowLayout = "FileExplorer
filetype plugin on
" Source a global configuration file if available
if filereadable("/etc/vim/vimrc.local")
source /etc/vim/vimrc.local
endif
if has("cscope")
set csprg=/usr/bin/cscope
set csto=0
set cst
set nocsverb
" add any database in current directory
if filereadable("cscope.out")
cs add cscope.out
" else add database pointed to by environment
elseif $CSCOPE_DB != ""
cs add $CSCOPE_DB
endif
set csverb
endif
nmap s :cs find s =expand("")
nmap g :cs find g =expand("")
nmap c :cs find c =expand("")
nmap t :cs find t =expand("")
nmap e :cs find e =expand("")
nmap f :cs find f =expand("")
nmap i :cs find i ^=expand("")$
nmap d :cs find d =expand("")
nmap :Tlist
/×××××××××××××××××××××××××××××××××××××××××××××××××××××××××/
sudo apt-get install sun-java5-jdk
/×××××××××××××××××××××××××××××××××××××××××××××××××××××××××/
$ mkdir /root/bin
$ PATH=/root/bin:$PATH
$ curl http://android.git.kernel.org/repo> /root/bin/repo
$ chmod a+x /root/bin/repo
/×××××××××××××××××××××××××××××××××××××××××××××××××××××××××/vbox 虚拟windows
2.在虚拟机内执行命令挂载共享目录。有'引'均是变量。[b]Windows:[b]net use x: \\vboxsvr\'sharename'
usb:原因是由于当前帐户无法识别USB设备,虽然在UBUNTU下是好的,解决方法:
1.增加用户组usbfs
sudo groupadd usbfs
2. 查看usbfs用户组的gid
cat /etc/group | grep usbfs
usbfs:x:1002:
3. 把当前用户增加到usbfs组
sudo gedit /etc/group
把
usbfs:x:1002:
修改为
usbfs:x:1002:four(这里改成你的帐户名)
4. 为USB设备重新设置权限编辑/etc/fstab文件,添加下面两行,注意你的gid可能不是1002
$ sudo gedit /etc/fstab
在末尾加上
# 1002 is the USB group IDI
none /proc/bus/usb usbfs devgid=1002,devmode=664 0 0
重新启动后,应该就可以在客户机中使用USB设备了。
[/b][/b]
2011年06月20日
/×××××××××××××××××××××××××××××××××××××××××××××××××××××××××/
ctags taglist cscope fcitx java1.5
保护色:RGB:202,220,207
/×××××××××××××××××××××××××××××××××××××××××××××××××××××××××/
android编译所需库:
sudo apt-get install flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential python valgrind curl git
/×××××××××××××××××××××××××××××××××××××××××××××××××××××××××/
#cscope.sh
#!/bin/bash
echo "ctags -R $@"
ctags -R $@
echo "create cscope.files"
for arg in "$@"
do
echo "find *.c *.h *.cpp *.S in $arg"
find $arg -name "*.c" -o -name "*.h" -o -name "*.cpp" -o -name "*.S" >> cscope.files
done
echo "creat cscope.out"
cscope -bkq -i cscope.files
echo "end success"
/×××××××××××××××××××××××××××××××××××××××××××××××××××××××××/
#add next to ~/.bashrc
export PATH=$PATH:$HOME/android-sdk-linux_86/tools
export PATH=$PATH:/home/ljyat/android-sdk-linux_86/platforms/android-2.1/tools
export PATH=$PATH:/home/ljyat/image/tools
export PATH=$PATH:/home/ljyat/.gem/ruby/1.8/bin
export JAVA_HOME=$HOME/jdk1.5.0_22
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$JAVA_HOME/bin:$PATH
export ANT_HOME=/usr/local/ant/apache-ant-1.8.1
export PATH=$PATH:$HOME/bin:$ANT_HOME/bin
export CLASSPATH=.:$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/lib
/×××××××××××××××××××××××××××××××××××××××××××××××××××××××××/
#add next to /etc/vim/vimrc
set autowrite " Automatically save before commands like :next and :make
"set hidden " Hide buffers when they are abandoned
set autoindent
set tabstop=4
set mouse=a " Enable mouse usage (all modes)
set number
set cindent
set shiftwidth=4
set expandtab
set hlsearch set incsearch
set nocp
"let g:winManagerWindowLayout = "FileExplorer
filetype plugin on
" Source a global configuration file if available
if filereadable("/etc/vim/vimrc.local")
source /etc/vim/vimrc.local
endif
if has("cscope")
set csprg=/usr/bin/cscope
set csto=0
set cst
set nocsverb
" add any database in current directory
if filereadable("cscope.out")
cs add cscope.out
" else add database pointed to by environment
elseif $CSCOPE_DB != ""
cs add $CSCOPE_DB
endif
set csverb
endif
nmap s :cs find s =expand("")
nmap g :cs find g =expand("")
nmap c :cs find c =expand("")
nmap t :cs find t =expand("")
nmap e :cs find e =expand("")
nmap f :cs find f =expand("")
nmap i :cs find i ^=expand("")$
nmap d :cs find d =expand("")
nmap :Tlist
/×××××××××××××××××××××××××××××××××××××××××××××××××××××××××/
sudo apt-get install sun-java5-jdk
/×××××××××××××××××××××××××××××××××××××××××××××××××××××××××/
$ mkdir /root/bin
$ PATH=/root/bin:$PATH
$ curl http://android.git.kernel.org/repo> /root/bin/repo
$ chmod a+x /root/bin/repo
/×××××××××××××××××××××××××××××××××××××××××××××××××××××××××/vbox 虚拟windows
2.在虚拟机内执行命令挂载共享目录。有'引'均是变量。[b]Windows:[b]net use x: \\vboxsvr\'sharename'
usb:原因是由于当前帐户无法识别USB设备,虽然在UBUNTU下是好的,解决方法:
1.增加用户组usbfs
sudo groupadd usbfs
2. 查看usbfs用户组的gid
cat /etc/group | grep usbfs
usbfs:x:1002:
3. 把当前用户增加到usbfs组
sudo gedit /etc/group
把
usbfs:x:1002:
修改为
usbfs:x:1002:four(这里改成你的帐户名)
4. 为USB设备重新设置权限编辑/etc/fstab文件,添加下面两行,注意你的gid可能不是1002
$ sudo gedit /etc/fstab
在末尾加上
# 1002 is the USB group IDI
none /proc/bus/usb usbfs devgid=1002,devmode=664 0 0
重新启动后,应该就可以在客户机中使用USB设备了。
[/b][/b]