If this is your first time running remote vis on Topaz, you will need to add a few lines to your .bashrc file in order to be able to use bash correctly and have access to all installed programs in the terminal. Open your .bashrc file for editing in VI (Figure 20). Scroll to the bottom of the file with the arrow keys and press i to enable insert mode (Figure 21) Copy and paste the following lines into the file using the technique shown above in figures 12-15 (Figure 22). Then press escape to exit insert mode and type :wq to save and quit (Figure 23) if [ -f /etc/redhat-release ]; then
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
fi
|
Then, follow the same procedure to add similar lines to your .bash_profile file (this file may not exist yet)
if [ -f /etc/redhat-release ]; then
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
fi
|
If you are having trouble with the command line interface of vi, when using the desktop app in remote vis, you can also launch gedit: to get a GUI text editor You will need to close and then re-open the terminal window for the changes to take effect. |