LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   hostname is junk (https://www.linuxquestions.org/questions/linux-newbie-8/hostname-is-junk-428576/)

cjae 03-26-2006 02:15 AM

hostname is junk
 
Hi,

Been searching around why my terminal is username@ipaddress?

And what could have caused this to be, as I did not.

It used to be username@linux, but that was behind a router which I did not share through. Would this cause this?

Anyway, tried hostname -v linux and now the konsole does not work.

I mearly do not what it to state my ip. Even tried yast to set it, I put username @ box. It just set it back to username@ip.

RobertP 03-26-2006 09:06 PM

There are lots of terminals. They have scripts to set these things. I use GNOME and gnome-terminal -t title
is supposed to work but it gets changed.

I went into the terminal menu and edited an option edit/profiles/Default/edit

clicked on Title and command
selected "dynamically set title" and "is not displayed" I also set my title to something very imposing.

cjae 03-26-2006 10:59 PM

It used to be username@linux, just wondering if that could be again.

RobertP 03-26-2006 11:15 PM

Anything goes. It is just text and its only function is to fill the space at the top of the terminal's window.

muha 03-27-2006 04:19 AM

Here is a howto on how to set your hostname through yast: http://www.novell.com/coolsolutions/feature/16022.html
(and some stuff about the firewall)
Is this what you did ? Did you get your konsole working again?

nitinatindore 03-27-2006 05:07 AM

login as root and run the command
#hostname whatever_you_like

However this change will be temporary only.

TO make it permanent in your ~/.profile or /etc/profile or ~/.bash_profile put the above command to make this effect evident.

alternatively you may add your desired hostname in
/etc/hostname (create the file if it doesn't exist)

cjae 03-27-2006 11:39 PM

I think I was tired when I wrote this I think I mean domain name


All times are GMT -5. The time now is 06:18 AM.