Wednesday, 2 September 2015

Using a Text Editor

Ubuntu is  a Linux distribution that comes as a desktop and server version.It is an operating system just like windows but is open source meaning source code is freely distributed. Configurations files changes is very important so take for example if you have freshly installed ubuntu server version and need to connect the computer to  the network then you need to make changes to the network configuration file located  in /etc/network/interfaces. Vi is the text editor that is installed by default but there are some  others like vim,gedit,etc.

Configuration is as follows;
1. Change directory by using the command at the terminal, cd /etc/network/.
2. then edit the network file by using, vi interfaces
3.add the necessary change by pressing a and typing in needed changes
4. when you are satisfied with the change  then save by pressing esc to exit from edit mode and press w and q to save the changes and exit.
5. to have the change take effect ,you need to restart the network services by typing /etc/init.d/networking restart and press
enter.

The above is an example of using an text editor to make changes. 

2 comments:

  1. A nice post...keep up the open source skills and share them.

    ReplyDelete
  2. thanks Decka, I think that is the way forward now.

    ReplyDelete