I am setting up Ubuntu Server 11.10 for a two-fold purpose - 1.) To learn it better and 2.) to start the process of building a LAMP server to host a backend MySQL database. I have used Ubuntu plenty in the past (though admittedly I am a bit rusty).
However, I have always used the Desktop version. I decided this time to go with the server edition, i.e. No GUI (which is fine, I sorta like using it without the GUI). So, I understand Linux enough to be dangerous. However, it is the simple things that tend to get left out of documentation and discussions - like.what is the best way to edit files in Ubuntu Server?
The first thing I am doing is configuring OpenSSH and cannot figure out how to get the config file open:) (see, dangerous) Thanks! One of the important rules of UNIX. Learn vi and use it for editing.
Nov 20, 2014 - sudo apt-get install vim. Vim is pre-installed in Linux based OS. For Ubuntu its minimal version is pre-installed. You can create alias to run it as vim.
![Install Install](/uploads/1/2/5/5/125520917/548634070.jpg)
Unlike any other editing tool, vi is on every UNIX system you will ever encounter no matter how old, how embedded, how tiny, how odd. Vi is the universal editor that everyone has. And let me tell you, when IBM had a factory down because no one in the entire plant knew how to edit a file I was the hero as the only person able to admin their boxes because vi was the only tool available. If you become dependent on heavier tools, you will always live in fear of the day that vi is all that is available. And if you are a Niagara server. We install nothing but vi, so beware.
Lots of companies are like this. I've never worked anywhere that installed anything beyond vi. Scott Alan Miller wrote: One of the important rules of UNIX. Learn vi and use it for editing. Unlike any other editing tool, vi is on every UNIX system you will ever encounter no matter how old, how embedded, how tiny, how odd. Vi is the universal editor that everyone has. And let me tell you, when IBM had a factory down because no one in the entire plant knew how to edit a file I was the hero as the only person able to admin their boxes because vi was the only tool available.
If you become dependent on heavier tools, you will always live in fear of the day that vi is all that is available. And if you are a Niagara server. We install nothing but vi, so beware.
![Installer vim sous ubuntu server edition comparison Installer vim sous ubuntu server edition comparison](https://www.getopenerp.com/wp-content/uploads/2017/10/odoo-111.png)
Lots of companies are like this. I've never worked anywhere that installed anything beyond vi. 100% agree with everything you said. Vi(m) is the ONLY thing to use.
Scott Alan Miller wrote: One of the important rules of UNIX. Learn vi and use it for editing. Vi is the universal editor that everyone has.
I agree with your first statement. As for your second. I almost completely agree with it. I still maintain that 'ed' is the one standard universal editor - because in some utter emergencies, you will be on a raw tty connection and unable to use visual mode.
Yes, I have had to do this. (Yes, I know that on most unix systems, 'ed' is symlinked to 'vi'.) So learn those ed commands!
They might make you a hero!:).
The 'clipboard' is a feature of X11, so you will need to enable 'X11 forwarding' for the SSH connection in 'trusted' mode: $ ssh -Y myserver (By default, X11 is forwarded in 'untrusted' mode, which is somewhat too restrictive.Y disables the restrictions.) Also make sure the server has xauth and a X11-capable version of vim installed. You can use xsel -o and xsel -o -b to verify that the clipboard can be accessed. To make it permanent, add the following to your local /.ssh/config: Host myserver ForwardX11 yes ForwardX11Trusted yes.