关键词不能为空

当前您在: 主页 > 英语 >

Moshell 安装中文

作者:高考题库网
来源:https://www.bjmy2z.cn/gaokao
2021-02-13 19:18
tags:

-

2021年2月13日发(作者:retrofit)


1


、首先安装


java



MGW R4



j2re-1_4_ 2_




直接安装


j2re-1_4_2_


2


、本地安装


cygwin






解压


cygwin_


,运行




-



Choose



-



Root Directory



(It is not recommended to choose a different directory,


especially if it contains spaces)



-



Select Packages: Add the following packages


,选择最新版本即可:







-under Archive select unzip






-under Interpreters select perl






-under Net select inetutils, openssh, and openssl






-under Shells select rxvt






-optional: under Editors select vim (if you want to be able to edit files with vi)



-



install


3



cygwin


相关设置



安装 完成后双击打开


C:


,接着关闭。




-



In the directory C:Cygwin , edit the file :


Delete the line: bash --login -i. At the end of the file add the following (replace xxxx with


your user id


< p>
xxxx


任意不带空格的名字,与操作系统用户名无关

):


set USER=xxxx


set HOME=/home/xxxx


set SHELL=/bin/bash


rxvt -sl 65000 -e /bin/bash --login -i



注:每行后面不能带有任何包括空格在内的字符,保持文 件为


UNIX


格式!



Open the file C:Cygwinetcprofile in a text editor and add the following 6 lines at the


end of the file (replace xxxx with your user id!):


export USER=xxxx


export HOME=/home/xxxx


export SHELL=/bin/bash


mkdir -p $$HOME


cd $$HOME


source $$HOME/.bashrc



注:每行后面不能带有任何包括 空格在内的字符,保持文件为


UNIX


格式!

< br>


Start a Cygwin Terminal window by clicking on the icon in start menu or on desktop, then


run the following commands:



- Type


pwd



CREATE the following 3 files in your


and .Xdefaults.


This can be done with the commands:


touch .bashrc


touch .inputrc


touch .Xdefaults




- Go to the directory C:Cygwinhomexxxx (from windows explorer) and open the


following 3 files in a text editor:


In the


unset PROMPT_COMMAND


export PS1=


alias ls='ls -hF



show-control-chars



color=tty'


set -o notify


set -o ignoreeof


shopt -s cdspell


shopt -s cdable_vars


shopt -s checkhash


shopt -s checkwinsize


shopt -s sourcepath


shopt -s histappend





export PATH=$$PATH:/home/xxx/moshell



#(where xxxx is your userid)



(appending the moshell directory to your PATH variable will


enable you to call moshell from any directory).


注:每行后面不能带有任何包括空格在内的字符,保持文件为


UNIX


格式!



In the


set bell-style visible


set convert-meta Off


set meta-flag on


set output- meta On


set input-meta On


set completion-ignore-case on


set completion-query-items 150


set mark-directories on


set visible-stats On


set show-all-if- ambiguous On


set expand-tilde On






< /p>















(Type



注:每行后面不能带有 任何包括空格在内的字符,保持文件为


UNIX


格式!




In the


Rxvt*background: Black


Rxvt*foreground: LightGrey


Rxvt*saveLines:



65535


Rxvt*termName:




xterm


Rxvt*geometry:




144x64+0+0


Rxvt*loginShell: true


Rxvt*font:









Rxvt*cutchars:




`



(These are just examples of terminal properties, you can change them to fit your needs.


Type


注:每行后面不能带有任何包括空格在内的字符,保 持文件为


UNIX


格式!



Open a new cygwin terminal window. The window should be black with white text and the


prompt should like this: [~]$$



4



Moshell installation:


Moshell


下载:



Put the file in c:/cygwin/home/xxxx/


Open the cygwin shell and run:


unzip -o


bash moshell_install



窗口提示



Please choose the type of installation.



选择



0



Please enter the following absolute pathes(auto-completion using):



输入



~




Path to Java = /cygdrive/c/windows/system32/java . OK ? [y/n]



选择



y




Path to perl (used by mobatch)=/usr/bin/perl . OK ?[y/n]



选择



y



安装完成后解压

< br>file_


,将



文件里的


iaik_jce_full_



< p>



拷贝到


c:cygwi nhomexxxmoshelljarxml


根目录



vista


系统可能需要


]

< br>将





拷 贝到


c:windowssystem32


目录,


moshell7.0y


已能在


vista


正常运行。




- Running moshell for the first time:


出现


[~]$$




即表明正常运行



测试:运行



moshell




可看到非出错信息





If you have set the PATH variable correctly in your ~/.bashrc file, you should be able to run


moshell from any directory. E.g:














>> moshell


moshell x.x.x.x


lt all


l+

-


-


-


-


-


-


-


-



本文更新与2021-02-13 19:18,由作者提供,不代表本网站立场,转载请注明出处:https://www.bjmy2z.cn/gaokao/652226.html

Moshell 安装中文的相关文章