LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-10-2009, 05:48 AM   #1
shred_eng
LQ Newbie
 
Registered: Sep 2009
Posts: 25

Rep: Reputation: 15
how to login X as user ubuntu server


hi, i installed X on ubuntu server but can only get a root shell with :

sudo startx if i try to startx as user i get errors:

(gksudo:4609) GTK-WARNING ** cannot open display

X: unable to open wrapper config file /etc/X11/Xwrapper.config

X: user not authorised to run the xserver,aborting

other times it has mentioned something about .Xauthority /home/john/

it implies that it cant write to .Xauthority

yet all the directories and files in my home folder are owned by me.

i once did: sudo export Xauthority=/home/john.Xauthority

thinking this would solve the problem but it didnt,

also if i get this working or not i would still like to know how to enable/start and disable/stop the xserver as i still want to be able to control the security of my server and have the option to run a few programs that rely on Xserver.

thx,
 
Old 11-10-2009, 10:59 PM   #2
janoszen
Member
 
Registered: Oct 2009
Location: Budapest
Distribution: Mostly Gentoo, sometimes Debian/(K)Ubuntu
Posts: 143

Rep: Reputation: 22
Xorg

If you want to use a graphical UI on your server, which I don't recommend, you must properly configure and install an X server such as Xorg. If just you want to run graphical tools off your server, you may need SSH X11 forwarding.
 
Old 11-10-2009, 11:34 PM   #3
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,165

Rep: Reputation: 1508Reputation: 1508Reputation: 1508Reputation: 1508Reputation: 1508Reputation: 1508Reputation: 1508Reputation: 1508Reputation: 1508Reputation: 1508Reputation: 1508
Sounds like you've already installed the xorg xserver and are looking for a display manager. I think gdm is the "standard" display manager for Ubuntu. You may also want a desktop environment etc. For example you could try installing the packages gdm and gnome-desktop-environment.

Evo2.
 
Old 11-11-2009, 11:29 AM   #4
shred_eng
LQ Newbie
 
Registered: Sep 2009
Posts: 25

Original Poster
Rep: Reputation: 15
yeah, i do already have xorg, and the only programs i want to run are enemy-territory and firefox and i definitely dont want anything more than xorg.

these programs already work but i have to run X as root and i dont want to play or surf online logged in as root.

i think ubuntu servers kernel might be compiled without single-user, but im not sure,but it would be ideal if i can find a way to startx as user.

also be able to enable and disable X like you do with some other apps with /etc/init.d/appname start - stop for example,

thx,
 
Old 11-17-2009, 10:45 AM   #5
shred_eng
LQ Newbie
 
Registered: Sep 2009
Posts: 25

Original Poster
Rep: Reputation: 15
i solved this after googling around and around

i removed xorg and reinstalled it and now i can log in as a user..as usual, i have no idea why this worked but im not complaining

thx for all input,
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to login to NIS client machine(Ubuntu) using NIS login user name crazymoonboy Linux - Server 10 05-08-2015 07:28 AM
New Linux Ubuntu User with Login Problem Neroncp LinuxQuestions.org Member Intro 1 05-02-2009 10:52 PM
Setting Ubuntu to login to a server? Is it possible with the ubuntu software? Silver565 Linux - Software 5 04-22-2009 02:53 AM
auto execution of script on ubuntu when user login Mr.J Ubuntu 2 07-04-2008 05:04 AM
how to login graphically as root user in ubuntu baran_6566 Ubuntu 1 10-20-2007 05:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration