LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Changing hostname in Linux and gcc installation (https://www.linuxquestions.org/questions/linux-newbie-8/changing-hostname-in-linux-and-gcc-installation-467713/)

Sailesh 07-26-2006 01:14 AM

Changing hostname in Linux and gcc installation
 
Hi,

I want to change my hostname. But it is just changing temporarily.
I am doing like this

#hostname ABCD

Is it proper? or just tell me how i can do it?

-----------------

I want to install gcc in my linux system, what is the simplest way to do it? I downloaded a rpm and it tells that it needs some dependencies. Help me in this regard also...

It is urgent as I got work to do...

Thanks

prozac 07-26-2006 01:19 AM

what distro are u using? i suspect red hat types, the hostname could be set in the file /etc/sysconfig/network. vi open the file and set your hostname there for keeps.


All times are GMT -5. The time now is 05:28 AM.