Click to See Complete Forum and Search --> : Drake asks me to add host to etc/hosts dir


chaoscapstone
03-26-2001, 04:35 PM
When I boot Mandrake 7.2, it says it could not find the server and that it might be solved by adding the host "my_win98box" to the etc/hosts file. How do I do this? And the Linux box does find the win box and the net when I ping them. (and I'm moving data)
I feel like I'm a newbie at computers again!

Mountainman
03-26-2001, 04:43 PM
When you ping between the two computers, you are basically giving linux the info it needs to find the other computer. You need to add the computer name and ip address to your /etc/hosts file. Type pico /etc/hosts

chaoscapstone
03-26-2001, 04:45 PM
thanks a lot!

bdg1983
03-26-2001, 05:55 PM
FYI... The Linux /etc/hosts is the same as the Win x:\windows\hosts.

chaoscapstone
03-28-2001, 07:26 PM
I don't have the pico command. I also tried to open it by trying the emacs command, which was also not found. And when I try to use the directory manager and open the file in KEDIT or another text editor, I get permission denied. Is there any way I can get root access in there? hmm maybe I'll try logging into X-Windows as root. I just get prett nervous when i'm in root!

bdg1983
03-29-2001, 08:48 AM
You will need to be root to edit the hosts file. If you are worried about doing damage, backup the file first.

Not all distros come with every single editor out there, but they do all come with 'vi' as the standard. There's a vi NHF here if you need help or read the man page.

Of course when you are in whatever desktop you are using, you will usually have a good selection of editors you can use or startup a X terminal and use vi.

mrBen
03-29-2001, 09:07 AM
If you want root access while using KEdit or KWrite, you should be able to do it without logging in as root by going into a terminal and typing this:


su
Password:<insert password>
KWrite


I often use KPackage this way. Remember, in Linux all programs can be access from the terminal, and any programs run as su from the terminal should get su access rights.

HTH

[ 29 March 2001: Message edited by: mrBen ]

chaoscapstone
03-29-2001, 04:55 PM
Thanks for all your help. I actually did it in both the term window and in X just to make sure I know how to do it both ways. I really like running this OS. If I can get WINE to run Rogue Spear, I'm gonna delete my Windows partition! I have a second machine and will be trying to configure Samba soon. Is there anyway to refresh my Network besides rebooting? If I boot up the Win box (I am using that box as my dialer) and connect, my linux box doesn't recognize it. I'm sure there is some way to do it. Once again, thanks for helping. I think I'd have a brain cramp if it weren't for you guys!
:D

[ 29 March 2001: Message edited by: chaoscapstone ]

bdg1983
03-29-2001, 07:24 PM
I think it's '/etc/init.d/rc.d/network stop' and the same with 'network start'.

Verify the directory path. 'network restart' could also be valid.