PDA

View Full Version : Edit Hosts File


MicroChip123
03-28-2010, 09:43 AM
How do i edit the hosts file using xterm?

and how can i point a domain to another ip?

zlatko
03-28-2010, 09:55 AM
To edit:

vi /etc/hosts

There you enter IP, domain name and alias for it. It is obvious when you open the file. E.g.:

xxx.xxx.xxx.xxx your.home.domain home

MicroChip123
03-28-2010, 10:03 AM
is there any other text editor other than vi?
can i install nano?

joppu
03-28-2010, 10:13 AM
Leafpad for a GUI.

fragos
03-28-2010, 10:41 PM
The best place to look for packages not in a repository you already have is:

http://www.gronmayer.com/it/index.php

Search on nano and you'll have a few options for repositories. If you go to gronmayer on your PC installing will download a text file "repository.install". Transfer it to your tablet and click on the file to start the Application Manger. When the repository install is done the apps in the new repository are available for install. alternatively you could create the file repository.install with the following 7 lines.

[catalogues]
catalogues = Maemo diablo/tools
[Maemo diablo/tools]
name = Maemo diablo/tools
uri = http://repository.maemo.org/
dist = diablo/tools
components = free