How To Install Moshell: 2.3 Installation For Unix (Solaris/Linux)
How To Install Moshell: 2.3 Installation For Unix (Solaris/Linux)
cd /tmp
unzip -o moshellxxx.zip
bash moshell_install
Moshell contains an automated upgrade engine. When prompted to enter the directory
where you want to install moshell, it is recommended to enter the same directory as the
previous revision of moshell. The automated upgrade engine will take care of copying all
your custom files (jar/xml files, site files, etc.) across to the new revision. For your safety
the old revision gets moved to a different location so you can still access it if needed.
If the required jar files are not on the workstation, they will be fetched automatically from
the node.
That’s it.
Note Go directly to step 13, MoShell Installation, if you have already installed and
configured Cygwin previously.
IMPORTANT: Default Text File Type should be set to UNIX (NOT DOS !!! otherwise ftp
transfers get corrupted). Then click Next.
6. Select Internet Connection: put the proxy settings (generally use IE5 settings works
with ESOE PCs). Click Next.
9. In the directory C:\Cygwin ,double-click on the file cygwin.bat. This will startup the
Cygwin window and create some files. Now close the Cygwin window.
Open an editor and edit the file cygwin.batch (MS-DOS Batch file) – click right button
and edit.
Delete the line: bash --login -i. At the end of the file add the following (replace
xxxx with your user id):
set USER=xxxx
set HOME=/home/xxxx
set SHELL=/bin/bash
rxvt -sl 65000 -e /bin/bash --login -i
IMPORTANT: Make sure that there are no spaces at the end of the lines otherwise the
windows environment variables don’t get set correctly and your .Xdefaults file will not be
read (meaning that rxvt looks horrible!).
10. Open the file C:\Cygwin\etc\profile in a text editor and add the following 6 lines at
the end of the file (replace xxx with your user id!):
export USER=xxxx
export HOME=/home/xxxx
export SHELL=/bin/bash
mkdir -p $HOME
cd $HOME
source $HOME/.bashrc
11. Edit the file C:/Cygwin/etc/passwd in a text editor and make sure that there is a row
with your username and home directory. If the home directory (found towards the end of
the line) looks like /cygdrive/h then replace this with /home/youruserid (replace
youruserid with your user id!!). This is needed for ssh to function properly.
12. Start a Cygwin Terminal window by clicking on the icon in start menu or on desktop,
then run the following commands: (Start program cygwin)
Create the following 3 files in your /home/youruserid directory: .bashrc, .inputrc, and
.Xdefaults This can be done with the commands:
touch .bashrc
touch .inputrc
touch .Xdefaults
The last line appends the moshell directory to your $PATH. This will enable you to call
moshell from any directory.
(Type man bash if you want to get more information about what these lines do)
In the .Xdefaults file, put the following lines:
(Copy all from .Xdefauts working file.)
Rxvt*background: Black
Rxvt*foreground: White
Rxvt*saveLines: 65535
Rxvt*termName: xterm
Rxvt*geometry: 143x64+0+0
Rxvt*loginShell: true
Rxvt*font: "Lucida Console-11"
Rxvt*cutchars: ‘"’&()*,;<=>? []{|}
These are just examples of terminal properties, you can change them to fit your needs.
Type man rxvt to view all available properties.
14. Open a new cygwin terminal window. The window should be black with white text
and the prompt should like this: [~]$
If not, then go through the last 4 steps again and make sure you haven’t missed out
anything.
If you have set the PATH variable correctly in your ~/.bashrc file, you should be
able to run moshell from any directory. E.g:
Selamat mencuba!!
//matuse