Tips and Tricks
Table of contents
- 1 ‘vi’ and 'vim' text editors
- 2 ‘gedit’ graphical editor
- 3 ‘nano’ text editor
- 4 How to setup ‘ssh’ trusts between Linux and Tru64
- 5 How to setup ‘ssh’ trusts between Linux and VMS
- 6 How to install 'rsh' on RHEL 8
- 7 How to setup ‘rsh’ trusts between Linux and Tru64
- 8 How to setup ‘rsh’ trusts between Linux and OpenVMS
- 9 Shutdown guests with Expect tool
- 9.1 Introduction
- 9.2 Script usage
- 10 How to restart CHARON-VAX/AXP on Linux automatically on failure
‘vi’ and 'vim' text editors
Notes:
When typing text, press <ESC> once finished. In case you’re blocked, press also <ESC> before executing commands described below
both editors use case sensitive commands
Request | Command |
|---|---|
To quit without saving | Press ‘:’ then enter ‘q!’ |
To quit with saving | Press ‘:’ then enter ‘x’ or ‘wq’ |
Go to top of file | Press ‘:’ then enter ‘0’ |
Go to last line | Press ‘G’ |
Search pattern | Press ‘/’ then enter your search text. Press then ‘n’ for next (forward) or ‘N’ for backward |
Remove current character | Press ‘x’ |
Insert text | Press ‘i’ (press ESC once text completed) |
Insert line | Press ‘o’ for a line below cursor, ‘O’ for a line above cursor (press ESC once text completed) |
Delete a line | Press ‘dd’ |
‘gedit’ graphical editor
‘gedit’ is a graphical text editor, users familiar with Windows notepad should not encounter difficulties to use it.
Request | Command |
|---|---|
To quit | close the window by clicking on the cross top right corner |
Save file | Press <CTRL-S> |
‘nano’ text editor
‘nano’ is a basic text editor, very simple to use and displaying available commands at the bottom of the screen. For example, to leave ‘nano’ , use ^X (press CTRL + X)
How to setup ‘ssh’ trusts between Linux and Tru64
Please note:
The prompts will tell you where to execute the commands, "
Tru64#" (root user) or "Linux#" (root user)Remember Linux/Unix is case sensitive
If hosts are not known by each other, fill the
/etc/hostsfile for example (usingvifor example)linuxhost represents the name of your CHARON server (can be any name you want)
tru64host represents the hostname of your Tru64 virtual machine
Generate the key
→ Do not specify a passphrase |
Copy the linuxhost.pub file, or use copy/paste, in the /.ssh2 folder on the Tru64 host
Define the authorization file:
|
Initialize the first ssh connection (answer '
yes' to confirm)
|