vsftpd 如果你在/home/ftp目录下建立软连接,其他用户登陆时是无法使用的。 然而如果你用如下命令: 代码 mount --bind /data/share /home/ftp/share 将简单的帮你完成目录共享。但要注意这个操作重启后就会无效,如果你需要重启有效,则要修改/etc/mstab 或者 /etc/fstab 这个我没有试过。
以下,完全摘自 LinuxSir.Org 的 Debian 版面 Debian 一般都装了 unifont 字体的,如果没有就先来个 代码 apt-get install unifont 添加一个文件 /etc/gtk/gtkrc.zh_CN.utf8 里面写入 代码 style "gtk-default-zh-cn-utf8" { fontset = "-gnu-unifont-medium-r-normal--16-160-75-75-c-80-iso10646-1,\ " } class "GtkWidget" style "gtk-default-zh-cn-utf8"
为了可以播放SRT字幕,需要将simhei.ttf或者simsun.ttf拷贝到~/.mplayer下,改名为subfont.ttf 然后对config文件进行如下配置,则可以用mplayer直接播放srt字幕的AVI了。 cat ~/.mplayer/config 代码 # Write your default config options here! subcp=cp936 #font=simsun font=simhei unicode=1 slang=zh stop-xscreensaver=1 zoom=1 vo=gl 下面这个操作好像可以不用了 如果要播放SUB字幕,则用命令行加个参数 -VOBSUB XXXX 例如: 代码 mplayer -vobsub movie movie.avi
根据上片文章设置好环境变量后,注意不要将jre的plugin拷贝到firefox的plugin目录中,而是作软链接,否则会无法正常使用这个plugin。 例如: 代码 cd /usr/lib/mozilla-firefox/plugins/
ln -s /usr/local/lib/jdk/plugin/i386/ns7/libjavaplugin_oji.so
在/etc/profile中增加如下内容: 代码 export JAVA_HOME=/usr/local/lib/jdk export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar PATH=$JAVA_HOME/bin:$PATH 再在/etc/gdm/Xsession的开头添加: 代码 source /etc/profile 就可以完成JAVA环境的设置
代码 set ruler
set number syntax enable set expandtab set tabstop=4 set cindent shiftwidth=4 set hlsearch set foldcolumn=4 set foldmethod=indent set guifont=SimSun\ 10 " multi-encoding setting if has("multi_byte") "set bomb set fileencodings=ucs-bom,utf-8,cp936,big5,euc-jp,euc-kr,latin1 " CJK environment detection and corresponding setting if v:lang =~ "^zh_CN" " Use cp936 to support GBK, euc-cn == gb2312 set encoding=cp936 set termencoding=cp936 set fileencoding=cp936 elseif v:lang =~ "^zh_TW" " cp950, big5 or euc-tw " Are they equal to each other? set encoding=big5 set termencoding=big5 set fileencoding=big5 elseif v:lang =~ "^ko" " Copied from someone's dotfile, untested set encoding=euc-kr set termencoding=euc-kr set fileencoding=euc-kr elseif v:lang =~ "^ja_JP" " Copied from someone's dotfile, untested set encoding=euc-jp set termencoding=euc-jp set fileencoding=euc-jp endif " Detect UTF-8 locale, and replace CJK setting if needed if v:lang =~ "utf8$" || v:lang =~ "UTF-8$" set encoding=utf-8 set termencoding=utf-8 set fileencoding=utf-8 endif else echoerr "Sorry, this version of (g)vim was not compiled with multi_byte" endif " Only do this part when compiled with support for autocommands. if has("autocmd") " Enable file type detection. " Use the default filetype settings, so that mail gets 'tw' set to 72, " 'cindent' is on in C files, etc. " Also load indent files, to automatically do language-dependent indenting. filetype plugin indent on " Put these in an autocmd group, so that we can delete them easily. augroup vimrcEx au! " For all text files set 'textwidth' to 78 characters. autocmd FileType text setlocal textwidth=78 " When editing a file, always jump to the last known cursor position. " Don't do it when the position is invalid or when inside an event handler " (happens when dropping a file on gvim). autocmd BufReadPost * \ if line("'\"") > 0 && line("'\"") <= line("$") | \ exe "normal g`\"" | \ endif augroup END else set autoindent " always set autoindenting on endif " has("autocmd") 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 set cscopetag set cscopequickfix=s+,g+,c+,d+,t+,e+,f+,i+ endif noremap <F6> :make<CR> noremap <S-F6> :make clean;make<CR> noremap <F7> :Tlist<CR> noremap <S-F7> :TlistSync<CR> noremap <F3> :!./vitags.sh<CR>:cs reset<CR> noremap <S-F3> :!cvs up<CR>
以下是些比较常用的连接 代码 # mplayer win32codes deb [url=ftp://ftp.nerim.net/debian-marillat/]ftp://ftp.nerim.net/debian-marillat/[/url] testing main # amule deb [url=http://www.vollstreckernet.de/debian/]http://www.vollstreckernet.de/debian/[/url] testing amule wx deb-src [url=http://www.vollstreckernet.de/debian/]http://www.vollstreckernet.de/debian/[/url] testing amule #debian offical pakages deb [url=http://debian.cn99.com/debian]http://debian.cn99.com/debian[/url] sarge main non-free contrib deb [url=http://debian.cn99.com/debian-non-US]http://debian.cn99.com/debian-non-US[/url] sarge/non-US main contrib non-free deb-src [url=http://debian.cn99.com/debian]http://debian.cn99.com/debian[/url] sarge main non-free contrib deb-src [url=http://debian.cn99.com/debian-non-US]http://debian.cn99.com/debian-non-US[/url] sarge/non-US main contrib non-free deb [url=http://debian.cn99.com/debian-security]http://debian.cn99.com/debian-security[/url] sarge/updates main contrib non-free |
最新的文章
最后的评论
|