LinuxQuestions.org
Visit Jeremy's Blog.
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 11-13-2014, 11:45 AM   #1
jefsa
Member
 
Registered: Mar 2012
Posts: 56

Rep: Reputation: Disabled
Slackware 14.2; bash prompt will not change.


Hello All,

We have some new work stations that we would like to install Slackware 14.2 on. We are having a time trying to change the the bash prompt from "bash-4.2#" to our log in prompt under ROOT to "root@work1:~#". The HOSTANAME we are using is "work1".

We have tried different changes to /etc/profile but logging in under ROOT
still produces "bash-4.2#. Any suggestions?

Thanks.

Regards,
Jeff
 
Old 11-13-2014, 11:58 AM   #2
cynwulf
Senior Member
 
Registered: Apr 2005
Location: The Black Country, UK
Posts: 1,742
Blog Entries: 1

Rep: Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774
Slackware 14.2?

I assume you're referring to terminal emulators rather than VT's?

If this is the case, the simplest method is to just launch them as login shells:

http://www.slackwiki.com/Login_Shell
 
Old 11-13-2014, 01:45 PM   #3
jefsa
Member
 
Registered: Mar 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
Hi Cynwulf

I am not following on what you are asking. Each computer will have its own Windows and Linux partitions. We are doing one at our time with
Slackware 14.2 being installed using a DVD.

Thanks.

Regards,

Jeff
 
Old 11-13-2014, 02:03 PM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 7,010

Rep: Reputation: 2534Reputation: 2534Reputation: 2534Reputation: 2534Reputation: 2534Reputation: 2534Reputation: 2534Reputation: 2534Reputation: 2534Reputation: 2534Reputation: 2534
http://www.cyberciti.biz/tips/howto-...up-prompt.html

Put the following in /root/.bashrc:

Code:
export PS1="\u@\h:\w# "
Now, which Linux distribution are you actually running? There is no such thing as "Slackware 14.2", and "bash-4.2#" is not Slackware's default prompt (IIRC).

Last edited by dugan; 11-13-2014 at 02:15 PM.
 
1 members found this post helpful.
Old 11-13-2014, 03:48 PM   #5
jefsa
Member
 
Registered: Mar 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
Hi Dugan

My mistake,I should of said 14.1 which I created the DVD for it in the first place. When we logged in as ROOT, the command line said "bash-4.2#". However, your reply fixed the issue logging in as the ROOT user!! Based on what you sent, I modified the code so the terminal matched the way our other terminals appear when logging in as ROOT using Slackware 12.2:

export PS1="\u@\h:~# <space>". Thanks for your help!!

Regards,

Jeff
 
  


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
[SOLVED] Bash 4.1$ prompt - How to change? bassplayer69 Slackware 2 05-29-2011 09:23 AM
[SOLVED] Change bash prompt for user only spiky0011 Linux From Scratch 5 03-06-2011 05:00 AM
[SOLVED] bash prompt doesn't change from $ to # for su mike11 Linux - Newbie 7 01-25-2011 05:23 AM
make bash interactive and change prompt DropSig Linux - Newbie 3 05-17-2004 09:16 AM
How do I change the bash prompt in SuSE 8.2 Joey.Dale Linux - Distributions 3 12-08-2003 09:01 AM


All times are GMT -5. The time now is 01:01 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