Find the answer to your Linux question:
Results 1 to 2 of 2
Hello i am a suse 10 sp2 64 bit user and a new linux user in general to lunch yast on a xen ( virtual machine) i have each tile ...
  1. #1
    Just Joined!
    Join Date
    Feb 2009
    Posts
    6

    Talking chaging environnement variable

    Hello

    i am a suse 10 sp2 64 bit user and a new linux user in general

    to lunch yast on a xen ( virtual machine) i have each tile to tipe

    cd /sbin
    ./yast


    i tired to add tis directory with the commend

    PATH=$PATH:/sbin

    it worked but each time i open a new console same problem

    question hwo can i change the evironnemen variable once and for all

    in ubuntu it is somthing like

    vim (gedit) /etc/.../environement

    so

    are you going to tell me hwo to change it or shall i go back to ubuntu i was kidding i like ubuntu but i started liking suse

    come one dont u tolerate a liile joke

  2. #2
    Linux Guru
    Join Date
    Jan 2009
    Location
    Dover, NH
    Posts
    1,633
    I really like SuSE too, I just wish the package manager in Yast didn't send my computers straight into swap hell. (Apt Rules!)

    Anyway, I'm a little confused about what you're trying to do. Yast can't really do its job from a user account anyway, so /sbin isn't in the user's path statement (which is the big usage difference between SuSE and Ubuntu). It should be in root's (thus the use of su (or login as root) to execute it). It should also be available from your host OS on the menu -> System -> Yast (Administrator Settings).

    If you can't run yast without specifying /sbin as the root user, then there's a problem that requires editing files. If you simply wish to use yast from sudo, then you'll have to add to a config file. To affect only the current user, use ~/.bashrc , to affect all users, edit /etc/profile , just under half way down is the PATH= statement. The script does further adding to the path after that, so pay attention to the format before you add directories like :/sbin.

Posting Permissions

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