欢迎来到天天文库
浏览记录
ID:37854511
大小:38.50 KB
页数:11页
时间:2019-06-01
《Moshell 安装中文》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、1、首先安装java,MGWR4用j2re-1_4_2_11-windows-i586-p.exe。直接安装j2re-1_4_2_11-windows-i586-p.exe2、本地安装cygwin解压cygwin_setup.zip,运行setup.exe-Choose"installfromLocalDirectory"-RootDirectory"C:cygwin"(Itisnotrecommendedtochooseadifferentdirectory,especiallyifitcontainsspa
2、ces)-SelectPackages:Addthefollowingpackages,选择最新版本即可:-underArchiveselectunzip-underInterpretersselectperl-underNetselectinetutils,openssh,andopenssl-underShellsselectrxvt-optional:underEditorsselectvim(ifyouwanttobeabletoeditfileswithvi)-install3、cygwin相关设置安装
3、完成后双击打开C:Cygwincygwin.bat,接着关闭。-InthedirectoryC:Cygwin,editthefilecygwin.bat:Deletetheline:bash--login-i.Attheendofthefileaddthefollowing(replacexxxxwithyouruserid,xxxx任意不带空格的名字,与操作系统用户名无关):setUSER=xxxxsetHOME=/home/xxxxsetSHELL=/bin/bashrxvt-sl65000-e/bin
4、/bash--login-i注:每行后面不能带有任何包括空格在内的字符,保持文件为UNIX格式!OpenthefileC:Cygwinetcprofileinatexteditorandaddthefollowing6linesattheendofthefile(replacexxxxwithyouruserid!):exportUSER=xxxxexportHOME=/home/xxxxexportSHELL=/bin/bashmkdir-p$HOMEcd$HOMEsource$HOME/.bashrc注
5、:每行后面不能带有任何包括空格在内的字符,保持文件为UNIX格式!StartaCygwinTerminalwindowbyclickingontheiconinstartmenuorondesktop,thenrunthefollowingcommands:-Type"pwd"atthecygwinpromptandmakesureyouareinthedirectory"/home/xxxx".CREATEthefollowing3filesinyour"/home/xxxx"directory:.bashrc
6、,.inputrc,and.Xdefaults.Thiscanbedonewiththecommands:touch.bashrctouch.inputrctouch.Xdefaults-GotothedirectoryC:Cygwinhomexxxx(fromwindowsexplorer)andopenthefollowing3filesinatexteditor:Inthe".bashrc"file,putthefollowinglines:unsetPROMPT_COMMANDexportPS1="
7、[ 33[1m][w]\$[ 33[0m]"aliasls='ls-hF–show-control-chars–color=tty'set-onotifyset-oignoreeofshopt-scdspellshopt-scdable_varsshopt-scheckhashshopt-scheckwinsizeshopt-ssourcepathshopt-shistappendexportPATH=$PATH:/home/xxx/moshell#(wherexxxxisyouruserid)(
8、appendingthemoshelldirectorytoyourPATHvariablewillenableyoutocallmoshellfromanydirectory).注:每行后面不能带有任何包括空格在内的字符,保持文件为UNIX格式!Inthe".inputrc"file,putthefollowinglines:setbell-stylevisiblese
此文档下载收益归作者所有