LinuxQuestions.org
Review your favorite Linux distribution.
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 12-14-2010, 01:17 PM   #1
okmich
LQ Newbie
 
Registered: Apr 2008
Posts: 3

Rep: Reputation: 0
Question KDE Konsole can't run some commands


Hello all,

I just started having some problem after switching my desktop manager from GNome to KDE.
One of such situation is the konsole on KDE not running popular commands like ifconfig that I run when I was using GNome.
Although, I have fallen in love with KDE, I am feeling a little bereaved of some feature.

Can anyone refer to where I could use KDE to mastery? (Because I want to believe that I am not doing somethings I should and not that KDE is so limited)


Regards.
 
Old 12-14-2010, 01:30 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,133
Blog Entries: 2

Rep: Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836Reputation: 4836
Konsole can run any command, that the Gnome terminal and any other terminal can run. What are your issues with those programs that you can't use? Any error-messages? Are you aware that you have to be root to run commands like ifconfig?
 
Old 12-14-2010, 01:45 PM   #3
reed9
Member
 
Registered: Jan 2009
Location: Boston, MA
Distribution: Arch Linux
Posts: 653

Rep: Reputation: 142Reputation: 142
Right, which terminal program you use shouldn't matter at all. (You don't need to be root to run ifconfig, but it may not be in the user's PATH.)

Try it as
Code:
/sbin/ifconfig
Check the location if that fails.
Code:
which ifconfig
and see if /sbin or wherever it's located is in your PATH.

Code:
echo $PATH
 
Old 12-14-2010, 02:54 PM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,712
Blog Entries: 27

Rep: Reputation: 2055Reputation: 2055Reputation: 2055Reputation: 2055Reputation: 2055Reputation: 2055Reputation: 2055Reputation: 2055Reputation: 2055Reputation: 2055Reputation: 2055
Hi,

Quote:
Originally Posted by okmich View Post
Hello all,

I just started having some problem after switching my desktop manager from GNome to KDE.
One of such situation is the konsole on KDE not running popular commands like ifconfig that I run when I was using GNome.
Although, I have fallen in love with KDE, I am feeling a little bereaved of some feature.

Can anyone refer to where I could use KDE to mastery? (Because I want to believe that I am not doing somethings I should and not that KDE is so limited)

Regards.
You have been given some useful information from other LQ members. I suggest that you look at setting up a '.bashrc' & .bash_profile' for users. There are advantages for the use of a '.bashrc'. 'man bash' will provide detailed information. Look at the 'export PATH="$PATH:/sbin:/usr/sbin:$HOME/bin" line. This will setup PATH for the user. 'alias' are the added feature that will short cut command choices and extend the cli.

You could setup a .bashrc & .bash_profile for your user;

Code:
sample .bash_profile;
~$ cat .bash_profile # .bash_profile
 #08-30-06 12:21
 #
 # Source .bashrc
 if [ -f ~/.bashrc ]; then
         . ~/.bashrc
 fi
Code:
 sample .bashrc;
 :~$ cat .bashrc
 

 #.bashrc
 #08-30-06 12:20  
 

 # Add bin to path
 

 export PATH="$PATH:/sbin:/usr/sbin:$HOME/bin"
 

 #export PATH="$PATH:$HOME/bin"
 

 # Dynamic resizing
 shopt -s checkwinsize
 

 # Custom prompt
 #PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
 

 #08-29-06 11:40
 

 if [ `id -un` = root ]; then
    PS1='\[\033[1;31m\]\h:\w\$\[\033[0m\] '
  else
    PS1='\[\033[1;32m\]\h:\w\$\[\033[0m\] '
 fi
 

 #
 # Add color
 eval `dircolors -b`
 

 # User defined aliases
 alias cls='clear'
 alias clls='clear; ls'
 alias ll='ls -l'
 alias lsa='ls -A'
 alias lsg='ls | grep'
 alias lsp='ls -1 /var/log/packages/ > package-list'
 alias na='nano'
 alias web='links -g -download-dir ~/ www.google.com'
 

 #08-29-06 11:50
 

 #To clean up and cover your tracks once you log off
 #Depending on your version of BASH, you might have to use
 # the other form of this command
    trap "rm -f ~$LOGNAME/.bash_history" 0
 

 #The older KSH-style form
 #   trap 0 rm -f ~$LOGNAME/.bash_history
The .bashrc is very useful!


Look at the following for additional information;

Linux Documentation Project
Rute Tutorial & Exposition
Linux Command Guide
Bash Reference Manual
Advanced Bash-Scripting Guide
Linux Newbie Admin Guide
LinuxSelfHelp
Getting Started with Linux

You can look at GNU/Linux-Newbie section of 'Slackware-Links' for some useful links to helpful information.


 
Old 12-16-2010, 04:51 AM   #5
okmich
LQ Newbie
 
Registered: Apr 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Thumbs up

Thanks Guys,

Turned out the issue was /sbin not being in the path. So, it never matter whether I was root or not. The fault was mine and I just learnt that.
Thanks y'all
 
Old 12-16-2010, 07:28 AM   #6
reed9
Member
 
Registered: Jan 2009
Location: Boston, MA
Distribution: Arch Linux
Posts: 653

Rep: Reputation: 142Reputation: 142
I can't think of a distro where /sbin is not default in root's PATH. But, it does depend how to login to root.

If you do
Code:
su
Then it does not change environmental variables.

If you do
Code:
su -
Then it will change to root's home directory and environmental variables, such as PATH.

http://www.linfo.org/su.html
 
  


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
Can konsole run properly without kde? Guest1234 Linux - Software 5 10-01-2008 07:39 AM
Konsole Commands List?? Mystical Itachi SUSE / openSUSE 2 10-16-2004 06:45 AM
Why wont my KDE 3.2 FC2 setup run make commands w/KDE 1.x packages? rusty_slacker Linux - Newbie 1 09-19-2004 05:40 PM
Executing commands in Konsole... meteotrade Linux - General 5 10-20-2003 06:34 PM
Konsole prompt/commands UB_KMA Linux - Newbie 4 07-12-2002 12:31 PM


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