automatically starting gui after login
instead of editing the innit file is it possibe to automatically load the GUI for a particular user instead of for everyone... i mean once they enter their login name and password in console for the GUI to load up instead of them having to mess around in the console...
thank you... |
maybe put "startx &" in .bashrc
Or for all users pput it into /etc/bash.bashrc |
You could simply add the line startx to either their .bash_profile or to /etc/profile, I just tried it in /etc/profile and it worked like a charm.
|
thank you, i'll give it a try...
|
thanks, it worked (used the bash_profile route)
|
if you add it to /etc/profile, you cannot login to a normal console without starting X.
so .bash_profile or .profile in the home dir. is better. egag |
Doesn't that also try and start X when opening an xterm aswell, or at least it did when I tried that. You could do with a bit of checking before executing `startx`, something of the lines
Code:
#!/bin/bash |
you're right.
but maybe testing with " ps -aux |grep X " is simpler. edit: EDIT: you will still start a second X with ctrl-alt-F6, and then login egag |
yes true, I did think of this whilst writing it down here, but when I had X running I never felt the need to go to another ttyX console when I could open up another xterm. So it worked perfectly OK for my needs
|
yeah i noticed that as well, when openning konsole/xterm/etc i get some sort of message saying X is already running when the GUI is loaded automatically through .bash_profile...
|
All times are GMT -5. The time now is 04:02 PM. |