LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 02-16-2013, 03:46 PM   #1
nando321
Member
 
Registered: May 2011
Distribution: Slackware
Posts: 73

Rep: Reputation: 1
Unhappy Problem with Konsole profile settings after upgrading to KDE 4.10


Hey there, I've been looking around the internet about this problem and I've found nothing that may point out to a solution. The thing is that since I upgraded this afternoon the KDE version to 4.10 in Slackware 14 I haven't been able to start konsole as a normal user, it always starts as root with this output:
Quote:
bash-4.2$
Instead of e.g.: username@hostname
I hope someone has had this problem before and that could manage to fix it.
AND I hope to get some answer here since one of the last times I asked for help in this forum nobody could give an answer, at least a "there's nothing that may be done".
Anyway no offense meant, indeed. Thanks.
 
Old 02-16-2013, 05:04 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,191

Rep: Reputation: Disabled
It does not start as root. The prompt's ending character "$" indicates a user prompt. For root that will be a "#".

What you experience is that konsole starts a normal shell, not a login shell. You would see a "username@hostname:" prompt only in a login shell.

Easily adjusted though: Go to "Settings > Manage Profiles > Edit Profile > General" and then replace "bash" with "bash -l" in the "Command" entry field.

Eric
 
3 members found this post helpful.
Old 02-16-2013, 06:48 PM   #3
nando321
Member
 
Registered: May 2011
Distribution: Slackware
Posts: 73

Original Poster
Rep: Reputation: 1
I like that, straight to the point and the solution. The "/bin/bash -l" did the job. Thanks and now it is marked as solved.
 
Old 02-21-2013, 10:10 AM   #4
_toudi_
LQ Newbie
 
Registered: Sep 2009
Posts: 5

Rep: Reputation: 0
same goes for any other shell you want to make it a login shell
e.g. if it's tcsh your Command should be: /bin/tcsh -l

Last edited by _toudi_; 02-21-2013 at 10:15 AM.
 
Old 02-21-2013, 11:59 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,191

Rep: Reputation: Disabled
Quote:
Originally Posted by _toudi_ View Post
same goes for any other shell you want to make it a login shell
e.g. if it's tcsh your Command should be: /bin/tcsh -l
... but that was not the question here. Irrelevant post.

Eric
 
Old 02-22-2013, 03:16 AM   #6
_toudi_
LQ Newbie
 
Registered: Sep 2009
Posts: 5

Rep: Reputation: 0
to the contrary my dear AlienBOB
many people will have this Konsole problem and find nando321's post but if they use other shells than bash they won't know what to do! thanks to my post they will know what to do no matter what shell they use
 
Old 02-22-2013, 11:51 AM   #7
Mike_M
Member
 
Registered: Mar 2011
Location: California
Distribution: Slackware
Posts: 116

Rep: Reputation: 50
I would hazard a guess that if a user has changed shells from the default of bash then they are likely aware of which shell they use. Additionally, not all shells support the '-l' option, making your advice not quite as universal as you believe.
 
Old 02-25-2013, 03:57 AM   #8
_toudi_
LQ Newbie
 
Registered: Sep 2009
Posts: 5

Rep: Reputation: 0
and again I have to disagree because the people who have this Konsole problem are using either tcsh (csh) bash (sh) and the solution works for them if they used zsh for example they wouldn't have this problem and come looking for help here
maybe most of ppl who use tcsh are able to figure out the solution by themselves but it's possible that not all of them if you can guarantee all of them can I will delete my post
 
Old 02-25-2013, 05:05 AM   #9
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,191

Rep: Reputation: Disabled
My god, you wasted 3 out of your total of 5 posts at LQ to this crap yes/no pissing contest? Move on to meaningful discussions please.

Eric
 
1 members found this post helpful.
Old 02-25-2013, 05:27 AM   #10
GazL
Senior Member
 
Registered: May 2008
Posts: 3,324

Rep: Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881
The correct fix for this "problem" is setting the prompt string in an appropriate place. Of course, bash makes this awkward by not supporting a system wide bashrc, and Pat can be forgiven for deciding to set it in /etc/profile given this fact, but the tcsh/c-shell developers made no such mistake and provide an /etc/csh.cshrc from where the prompt may be set..

Changing the terminal emulator to run a 'login shell' is IMO a case of two wrongs making a right - only with potentially unwanted side effects.
 
Old 02-25-2013, 05:52 AM   #11
cynwulf
Senior Member
 
Registered: Apr 2005
Distribution: OpenBSD, Slackware
Posts: 1,226

Rep: Reputation: 379Reputation: 379Reputation: 379Reputation: 379
konsole was showing a user@hostname with path prompt before upgrading from KDE 4.9.5 to 4.10 and is still showing one now.

Other terminal emulators have always shown the bash-<version> prompt (13.37 was the same). I've never bothered to fix them as I use konsole exclusively.
 
  


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
Font problem in konsole from KDE 4.8 rg3 Slackware 1 04-20-2012 08:17 AM
[SOLVED] Problem with tabs in Konsole in kde 4.8.2 Barx Slackware 2 04-19-2012 08:30 AM
KDE Power Profile scripts : Command Line=YES System Settings=FAIL Bill Gates 666 Linux - Desktop 0 04-17-2012 04:56 PM
Konsole problem with kde-3.5.3 KMcD Slackware 5 07-09-2006 08:40 PM
konsole fonts problem (kde) Domino Linux - General 1 05-22-2002 07:46 PM


All times are GMT -5. The time now is 04:35 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration