Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Today, I have created some User IDs. Then, I typed "startx" and X Window can be started.
There was "nothing" inside the X Window. I could only typed "Ctrl-Alt-Del" to logout to text mode. However, there was no problem for those users who had been created long time ago. What's has gone wrong? And what should be checked? Please give me some hints. Many thanks.
My distro is RH7.3. I used both "useradd" & "chmod" commands and "User Manager" GUI to create the users. I'm not sure if my OS has been corruped. I typed 'startx startkde', it tried to start a window manager but fall back to text mode. The error message was "/usr/X11R6/bin/xterm: bad command line option 'startkde' ".
You will need to make a ~/.xinitrc file to determine which window manager to start.
Here's a temporary trick that might work immediately:
xterm -display :0 &
X :0
Run the X program very quickly after xterm. Then X will have a terminal window for you to type stuff. You can then attempt to run window manager from there (try 'startkde', 'gnome-session', 'fvwm', 'twm').
I tried the "xterm -display :0 &" and "X :0". Then the X had a terminal window to allow me to type. I type "startkde". It prompted:
"Cannot create temp file /tmp/KDE.startkde.luNaFD
/usr/bin/startkde:$testfile_tmp : ambiguous redirect
You don't have write permissions for /tmp"
I don't quite understand but it seems closer to the solution. Thanks aaa.
Most probably your skeleton directory's files are messed up. These are the files that would be copied to the new users home directory. Try to add another new user and see if its the same error. If yes, then you can be 99% sure it's the skeleton directory's file missing or deleted. The skeleton directory is in /etc/skel.
Another possibility is the permission for the temp directory check and make sure it's drwxrwxrwt
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.