LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   I'm logged in as root now how do I fix this (https://www.linuxquestions.org/questions/linux-software-2/im-logged-in-as-root-now-how-do-i-fix-this-149540/)

AndreL 02-23-2004 10:14 AM

I'm logged in as root now how do I fix this
 
What I'm trying to do is stop this error
"Could not lookup internet add. for host3-null. this prevents gnome form operating correctly it may be possible to correct the problem by adding host3null to file

The guy told me to do this


"not hard at all. the easiest way to explain it is to open up a shell terminal and use the following commands:

1. su
<enter root password>
2. kwrite /etc/hosts
<edit file, save it, exit out of kwrite>
3. kwrite /etc/sysconfig/network
<edit file, save it, exit out of kwrite>

since changing these files requires a reboot, you can use this command so you don't have to reboot.

4. hostname your_name_choice_for_your_computer

there's a number of ways to find files (even though i already gave you the fully qualified filepaths to the files).

1. locate name_of_file
2. whereis name_of_executable_file
3. find directory_to_search_in -name name_of_file


I'm loged in as root so don't need to type su and I tried the "kwrite/etc/hosts" and it tells me a bad command or file name or something like that.

So show me how do I fix my problem

And make it eazy cause I'm such a newbie show me step by step - how to get there - how to do it

please

Thak you in Adv ...

guygriffiths 02-23-2004 11:17 AM

If you typed:
kwrite/etc/hosts
then it will fail.
If you typed:
kwrite /etc/hosts
it will only fail if you don't have kwrite installed. Do you have KDE installed? You basically need to open an editor. Common ones you may have are:
kate
gedit
kedit
emacs
vi
vim
So substitute one of them for kwrite. By the way, emacs vi and vim are a little tricky to master, so try the other ones first.

AndreL 02-23-2004 12:02 PM

I don't have KDE installed do I have to do a reinstall or can I fix it as it is now.

XavierP 02-23-2004 12:04 PM

Instead of 'kwrite', substitute the name of the text editor you do have installed.

AndreL 02-23-2004 01:14 PM

You guys have totally lost me, do I do this in the the command kernerl shell or in the gnome gui mode please expalin this step by step like I'm a 3 yr old.

plese and thank you

XavierP 02-23-2004 01:29 PM

open a terminal and do it (also known as a console)


All times are GMT -5. The time now is 12:13 PM.