顯示具有 Linux 標籤的文章。 顯示所有文章
顯示具有 Linux 標籤的文章。 顯示所有文章
Install vim, ctags, cscope and taglist

Install vim, ctags, cscope and taglist

Backup for vim tool.
/*----------------------------------------------
* vim, ctags, cscope, taglist
*-----------------------------------------------*/

#sudo apt-get install vim
#sudo apt-get install ctags
#sudo apt-get install cscope

/*----------------------------------------------
* Download taglist from http://vim-taglist.sourceforge.net
* Extract talist*.zip and there are
* "doc/taglist.txt" and "/plugin/taglist.vim"
* Copy both of them to "~/.vim" (mkdir this if need)
*-----------------------------------------------*/

#tar -xvf taglis*.zip
#cp doc/taglist.txt ~/.vim/doc
#cp plugin/taglist.vim ~/.vim/plugin

/* Add hot-key "F9" switch taglist */

#vi /etc/vim/vimrc

insert "map <f9> :Tlist&ltcr>" at the bottom



source:
http://stenlyho.blogspot.com/2008/11/ubuntuvim-plugin-ctagstaglist.html
VNCServer for Ubuntu

VNCServer for Ubuntu



#apt-get install vnc4server

/* 安裝後執行 */
#vncserver

/* 要求設定密碼,之後會產生vncserver與設定檔
* 產生使用者路徑下的設定檔,~/.vnc/xstartup
*/

/* 先關閉剛剛產生的vncserver */
#vncserver -kill :1


/* 設定 ~/.vnc/xstartup */
#vi ~/.vnc/xstartup

/****************************************************
* 將內容修改如下 */

#!/bin/sh
# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
gnome-session &




/*****************************************************/


/* 主要是註解掉
* "xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &"
* "twm &"
* 這兩行,並且加入 "gnome-session &"
* 目的是關閉預設的teminal開啟,並且使用gnome-session登入
*/
#vncserver
/* 用新設定產生vncserver,不斷執行此指令則產生1~X個vncserver
* 對應的port會從5901~590X 例如 192.168.1.123:5901
* 使用可登入VNC的viewer去觀看,例如ubuntu內建的Remote Desktop Viewer測試
*/

/* ubuntu產生的vncserver發生 "could not acquire name on session bus" error
* 因為產生server的linux user佔用了gnome session的使用權
*
* 解決方法:使用別的方式登入帳戶開啟vncserver
* 例如用ssh登入本機
*/

#ssh 192.168.1.123
#vncserver