LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 10:45 AM   #1
jefsa
Member
 
Registered: Mar 2012
Posts: 83
Blog Entries: 1

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, 10:58 AM   #2
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
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, 12:45 PM   #3
jefsa
Member
 
Registered: Mar 2012
Posts: 83

Original Poster
Blog Entries: 1

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, 01:03 PM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
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 01:15 PM.
 
1 members found this post helpful.
Old 11-13-2014, 02:48 PM   #5
jefsa
Member
 
Registered: Mar 2012
Posts: 83

Original Poster
Blog Entries: 1

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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:46 AM.

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
Open Source Consulting | Domain Registration