Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Linux help urgently needed...

  • 02-09-2002 12:11pm
    #1
    Closed Accounts Posts: 772 ✭✭✭


    Help!

    I installed Linux Mandrake 8.2 and I got to the Xwindows selection the first time I ran it. I know I should know this but the next time I turned it on it loaded into BASH and my UNIX/LINUX command knowledge is pratically null.

    Any explanation on how I start Xwindows from BASH would be perfect. I don't need to know how to set it up to load directly as I wouldn't mind been forced to use BASH each time I start-up as it might make me learn it faster....

    :) Any help will be welcomed with applause :)


Comments

  • Registered Users, Registered Users 2 Posts: 68,317 ✭✭✭✭seamus


    If all is well, just typing 'startx' should get you there (It does for RH anyway)

    :)


  • Registered Users, Registered Users 2 Posts: 1,862 ✭✭✭flamegrill


    startx as seamus should start X windows.

    alternatively, you can put ur machine in init mode 4, i think this is the GUI mode for the OS. type 'init 4' . look for the default mode, when u get X started, so as you can set it to 4 to make sure you dont have to bother with it again.

    HTH,

    Paul


  • Registered Users, Registered Users 2 Posts: 68,317 ✭✭✭✭seamus


    Originally posted by flamegrill
    startx as seamus should start X windows.

    alternatively, you can put ur machine in init mode 4, i think this is the GUI mode for the OS. type 'init 4' . look for the default mode, when u get X started, so as you can set it to 4 to make sure you dont have to bother with it again.

    HTH,

    Paul

    Afaik, technically it's mode 5, but it doesn't really matter. Afair, mode 4 and mode 5 are by default the same, but mode 4 is the one you are supposed to use for a custom startup mode, ie if you want to define your own startup mode. But don't quote me on that. :)


  • Closed Accounts Posts: 772 ✭✭✭Chaos-Engine


    Thanks a bunch fellas. I knew it was something as simple as "startx" (or similar "win")

    :)


  • Closed Accounts Posts: 364 ✭✭Matfinn


    Chaos Engine

    Here are a few simple steps that will solve your problems. The best way to start up X windows in Linux is to have it started up automatically every time you log in. Heres what to do. I am assuming you know very little about unix and linux.

    1) Move into your home directory. This is where user files are stored. If your username is, for instance, 'sam' then you would have to type the command ->>

    cd /home/sam

    and you should be in your home directory. The 'cd' command is the same as the MS-DOS equivalentwhich does the same task. If you are logged in as 'root' then type

    cd /root

    2) Now once you are in your home directory, then type in this command using whatever text editor you prefer. I use 'pico' as its easy to use. Almost all distributions have it. Some other distributions use a text editor called 'nano'. Nano is the exact same as pico. Type this command ->>

    pico .profile

    This will open up the program 'pico' and create an empty file called '.profile' . Note that in linux and unix a fullstop '.' before a filename indicates that it is a hidden file. You can use 'vi' as a texteditor if you prefer, just type 'vi .profile'.

    3) All you have to do now once your text editor is open is type in -->

    startx

    And then save and exit. If your using pico or nano, press CTRL-O and then press CTRL-X. The '.profile' file is responsible for carrying out tasks when a user logs in. In your case, as soon as you log in, X Windows will automatically be started, as the command 'startx' is in the '.profile' file.

    Everytime you log in you should automatically start X windows, which I think is handy. If you need any help. let me know.

    Matt


  • Advertisement
  • Closed Accounts Posts: 5,564 ✭✭✭Typedef


    Doesn't startx assume the X server is running with the suid bit set?
    Thus xinit or Xwrapper is the favoured command........

    SWthe81.jpg


  • Closed Accounts Posts: 3,859 ✭✭✭logic1


    Originally posted by Typedef
    Doesn't startx assume the X server is running with the suid bit set?
    Thus xinit or Xwrapper is the favoured command........

    SWthe81.jpg

    Indeed putting it in your profile wouldn't be the best idea. Use xinit it's the simplest method starting out.

    .logic.


  • Registered Users, Registered Users 2 Posts: 3,308 ✭✭✭quozl


    If you want a graphical login instead of a text one then just edit
    /etc/inittab

    and look for the line where it sets the default init level to 3
    change that to 5 and from then on you should get a nice graphical login instead of the text prompt,
    quozl


  • Closed Accounts Posts: 3,859 ✭✭✭logic1


    Originally posted by quozl
    If you want a graphical login instead of a text one then just edit
    /etc/inittab

    and look for the line where it sets the default init level to 3
    change that to 5 and from then on you should get a nice graphical login instead of the text prompt,
    quozl

    But remember to also setup your default window manager. KDE and Gnome would be the most popular.

    .logic.


Advertisement