LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-14-2005, 10:04 AM   #1
DraaX
Member
 
Registered: Jul 2003
Location: B.C. Canada
Distribution: Slackware 14
Posts: 94

Rep: Reputation: 15
changing the system name


Good day everyone, I just recently did a full install of slackware 10.1 and am wondering how I change what will show up on the prompt right now it is something like: darkstar#

How can I change that? What is it called?

Thanks in advance.
 
Old 02-14-2005, 10:17 AM   #2
overlord73
Member
 
Registered: Apr 2004
Location: ..where no life dwells..
Distribution: RH,FC/SuSE/Debian/HPUX/OSX
Posts: 518

Rep: Reputation: 30
not sure if its in slack too, but normally u can change ur hostname by typing
hostname name
at the console (as root) and edit /etc/sysconfig/network (->hostname).
 
Old 02-14-2005, 10:44 AM   #3
DraaX
Member
 
Registered: Jul 2003
Location: B.C. Canada
Distribution: Slackware 14
Posts: 94

Original Poster
Rep: Reputation: 15
Thanks for your quick response overlord73. I originally had use the command : hostname "new hostname" and it worked, untill I rebooted. Then it would just go back to the
original hostname. So now I guess that I have to edit /etc/sysconfig/network (->hostname).

I will try this and post my results when I get home........ err maybe tomorrow as it is V day and I have to spend time with my girl instead of my linux box j/k There is no replacement for a "real" women.

Thanks again.
 
Old 02-14-2005, 01:50 PM   #4
JoannesX
Member
 
Registered: Dec 2004
Location: Brazil
Distribution: Slackware
Posts: 99

Rep: Reputation: 15
he hey,,

if you wanna change the prompt, take a look at other thing:
there is a variable called "PS1". the content of this variable indicates what your prompt will look like.. try typing this:

PS1='darkstar#'

and you'll see what happens.. if you do it this way it will only be viewable during the current session..
if you want it to apply to all the sessions, at every start-up, edit the file

/etc/profile

and search for the lines indicating "PS1='.......' "
these lines will indicate what will be shown in your prompt.

PS: the example below is simply an EXAMPLE
but you can put commands inside that variable..
for you to understand it, take a look at my prompt:

PS1='[date +%m/%d]=JOANNES=>'

copy this line to your command line just to see what happens, ok?
if you get any problem with your /etc/profile , post back here

hope it works...
 
Old 02-14-2005, 03:52 PM   #5
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slack`er-current
Posts: 845

Rep: Reputation: 33
All you have to do is edit your /etc/HOSTNAME
 
Old 02-16-2005, 10:05 AM   #6
DraaX
Member
 
Registered: Jul 2003
Location: B.C. Canada
Distribution: Slackware 14
Posts: 94

Original Poster
Rep: Reputation: 15
I just edited my /etc/hostname and it worked fine. thanks for the help guys.

I have not tried changing the prompt but am going to mess around with that a bit and see if I could find something that I like the look of.

Happy Slacker!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing boot system rogier1983 Linux - Newbie 2 10-27-2005 12:14 PM
Help need changing system name vinoloco Ubuntu 1 10-26-2005 01:36 PM
Changing system language njschroe Linux - General 1 04-24-2005 05:02 PM
changing system name tuxtamer Linux - Newbie 2 03-10-2005 07:08 AM
changing file system mmm Linux - General 3 07-18-2003 04:29 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration