Startx and X server

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Startx and X server

AlaNeves
Hello Michael,
Congratulations for your PelicanHPC - it´s an excellent product!!
Let´s try to do a small change at make_pelican where you have the option "to make entry into GUI automatic".

If  you uncomment the line it works, but when try to use the terminal, receive a message: "user not authorized to run X server, aborting" .

The reason is that when using the startx in .bashrc , the X server uses like default the terminal zero.

To avoid this situation, just include two lines in make_pelican:

echo "if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then" >> /home/user/.bashrc
echo "/usr/bin/startx" >> /home/user/.bashrc
echo "fi" >> /home/user/.bashrc

It works fine for me at 32 and 64 bits.

Regards from Brazil,
AlaNeves

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Startx and X server

AlaNeves
Sorry, I did a mistake.

The 3 lines must be added to the end of .bashrc (remember to show hidden files)

if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then
/usr/bin/startx
fi

and the line about in make_pelican must stay uncomment.

Sorry again.

AlaNeves
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Startx and X server

Michael Creel
Administrator
Thank for the information. The method that is commented out worked a long time ago, but I haven't tried it in a while. I'll add your suggestions to the development version of make_pelican.
Loading...