LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Starting Xorg along with xterm? (http://www.linuxquestions.org/questions/linux-general-1/starting-xorg-along-with-xterm-654363/)

GSMD 07-08-2008 01:12 PM

Starting Xorg along with xterm?
 
Seems like I'm missing some obvious point, still...
Set up my Hardy Server install box to automatically login under unprivileged user account (via /etc/events.d/tty1), got Xorg & xterm installed. Edited ~/.bashrc so that X gets automatically started. Everything works up to this point. Now, got executable ~/.xsession and ~/.xinitrc with the same contents:
--
#!/bin/sh
xterm
--
As the system boots, I get plain X with no evidence of xterm anywhere. What do I get so wrong? TIA.

P.S. Running GDM, etc. is not an option.

frenchn00b 07-08-2008 02:36 PM

Quote:

Originally Posted by GSMD (Post 3207856)
Seems like I'm missing some obvious point, still...
Set up my Hardy Server install box to automatically login under unprivileged user account (via /etc/events.d/tty1), got Xorg & xterm installed. Edited ~/.bashrc so that X gets automatically started. Everything works up to this point. Now, got executable ~/.xsession and ~/.xinitrc with the same contents:
--
#!/bin/sh
xterm
--
As the system boots, I get plain X with no evidence of xterm anywhere. What do I get so wrong? TIA.

P.S. Running GDM, etc. is not an option.

If I recall well I use a startx command into the ~/.bashrc

You may use this one, that s one of the best autologin, and not Ubuntu way with gdm , i.e. designed for slow machines.

http://linuxgazette.net/issue72/chung.html

Did it work?Did you manage?

GSMD 07-09-2008 01:30 AM

frenchn00b
Ah yeah, this worked out. Just had to aptitude xinit in order to get startx. And thanks for the link.
As for autologin part, I've got away with
Code:

exec /bin/login -f user_name < /dev/tty1 > /dev/tty1 2>&1
as the the only exec part in /etc/events.d/tty1.


All times are GMT -5. The time now is 06:57 PM.