Results 1 to 7 of 7

Thread: Commands in Terminal dont works after install

  1. #1

    Default Commands in Terminal dont works after install

    My commands like

    ifconfig
    nano

    etc dont work in terminal. This is my first attempt trying openSUSE and I have been using ubuntu, linux mint and backtrack 4 r2 before.

    What to do?

  2. #2
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: Commands in Terminal dont works after install

    My commands like

    ifconfig
    nano

    etc dont work in terminal. This is my first attempt trying openSUSE and I have been using ubuntu, linux mint and backtrack 4 r2 before.

    What to do?
    Hello Mikald and welcome to the openSUSE forums.

    The Text editor Nano is not installed by default. To install Nano, go to the following Applications:

    YaST / Software / Software Management / Search Tab & Search on nano

    When the application nano is found, check the block next to the Package name and install nano and you should then be able to run nano from the terminal prompt.

    The application ifconfig requires that you have root permissions (and paths) to run. To run ifconfig do the following in terminal:

    Code:
    su -
    password:
    ifconfig
    Now, the normal way to adjust or check your networking setup, it is suggested you go to:

    YaST / Network Devices / Network Settings

    Using the ifup method is the manual way and corresponds to the usage of ifconfig. You can also enable the NetworkManager which can automatically connect when you have more than one network connection or also have a wireless connection you want to use.

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  3. #3
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: Commands in Terminal dont works after install

    jdmcdaniel3 wrote:

    >
    > The application ifconfig requires that you have root permissions (and
    > paths) to run. To run ifconfig do the following in terminal:
    >
    >
    > Code:
    > --------------------
    > su -
    > password:
    > ifconfig
    > --------------------

    You do not need to be root to run it as long as you do not want to change
    anything. If you want to run ifconfig just to get information from it call
    it as a normal user with the complete path
    /sbin/ifconfig

    --
    PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.1 | GeForce
    9600 GT | 4GB Ram
    Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | Gnome 2.32 | nVidia
    ION | 3GB Ram

  4. #4
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: Commands in Terminal dont works after install

    On 03/28/2011 11:36 PM, Mikald wrote:
    >
    > My commands like
    >
    > ifconfig
    > nano
    >
    > etc dont work in terminal. This is my first attempt trying openSUSE and
    > I have been using ubuntu, linux mint and backtrack 4 r2 before.
    >
    > What to do?
    >
    >


    did you not get an error message??
    when you get an error message *always* include it in your help request...

    you didn't but i guess you are trying

    sudo ifconfig

    which won't work here...the methods Ubuntu uses for sudo is different
    from all others as far as i know..

    additionally ifconfig is located in /sbin, and /sbin is not in your
    path, so therefore it is not in sudo's path either...so, here there
    are two ways to run ifconfig (and all others in /sbin)

    1. user the fully qualified path name with sudo, like:

    sudo /sbin/ifconfig

    or 2. become root using this command:

    Code:
    su -

    then issue ifconfig

    more on this in:

    http://en.opensuse.org/SDB:Login_as_root
    http://tinyurl.com/ydbwssh
    http://tinyurl.com/4nsaqst

    you will find other differences....Debian and SUSE have been on
    different paths since the beginning of time...other small differences
    between openSUSE and other systems you are familiar with are scattered
    around in these:
    http://old-en.opensuse.org/Concepts
    http://en.opensuse.org/Concepts

    welcome!

    --
    CAVEAT: http://is.gd/bpoMD
    Tried LibreOffice? Do that and help at http://is.gd/dZ9j2W
    [NNTP via openSUSE 11.3 + KDE4.5.5 + Thunderbird3.1.8]

  5. #5

    Default Re: Commands in Terminal dont works after install

    Sounds like a bad install or a custom install that skipped an important package. I agree with Martin_helm that you don't need superuser for ifconfig but nano does need to be installed.
    It could be that your $PATH is mis-configured or configured for Ubuntu, Mint that excludes the /bin/, /usr/bin/, /sbin/, /usr/sbin/, etc. or .bashrc
    Last I hope you installed openSUSE 11.4 from the DVD and not a LiveCD/DVD. IMHO, the installs from the LiveCD doesn't install complete packages, libraries and tools.

    You should see this error message for nano:
    Code:
    If 'nano' is not a typo you can use command-not-found to lookup the package that contains it, like this:
        cnf nano
    meaning its not installed.

    Could you run
    Code:
    zypper ve 
    zypper ps
    Have you tried using different terminals, Xterm, Gnome-terminal, KDE-terminals, Linux 32 terminal?
    Box 1: OpenSuse 11.1/Win7 | Linux 2.6.27 Gnome | AMD 64 X2 6000+ | nVidia 8600GT | 2GB RAM
    Box 2: OpenSuse 11.2 | Linux 2.6.31 Gnome | AMD 64 3000+ | ATI X800 Pro | 1GB RAM
    Box 3: Win7 Premium Home | Intel P4 3.0Gz | ATI AIW 2006 | 2GB RAM

  6. #6

    Default Re: Commands in Terminal dont works after install

    Thanks for help. I did not install from livecd or anything. I did install from the DVD downloaded to an USB stick. And now it is working proberly when I typed su -

    Thanks for help :-)

  7. #7
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: Commands in Terminal dont works after install

    Thanks for help. I did not install from livecd or anything. I did install from the DVD downloaded to an USB stick. And now it is working proberly when I typed su -

    Thanks for help :-)
    Happy to help Mikald. Please, just let us know if you need any other assistance with openSUSE.

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •