File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Linux / UNIX and the fly likes Messed up X Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Reply Bookmark "Messed up X" Watch "Messed up X" New topic
Author

Messed up X

sonny kher
Ranch Hand

Joined: Nov 06, 2001
Posts: 83
I think I messed up some permissions while logged in as root and now I cannot log into any of the desktop environment as a non root user (I mean I can log in, but the env is all messed up, I don
t see the start panel and the xterms also have the top panel missing etc etc). Did I change some X11 permissions, whats the first place to start looking?
-thanks


_ __________________ _ <br />RHCE<br />SCJP<br />??:-(
Guy Allard
Ranch Hand

Joined: Nov 24, 2000
Posts: 776
sonny - here's what I would do, but please don;t blame me if this does not work or messes things up worse.
- login as root
- cd to the 'normal' user's home directory
- do: ls .* (that's dot-star)
There will be a bunch of directories listed: .Gnome, .kde, etc.
For each one do (for example):
rm -rf .kde
Then login the 'normal' user and startx. The graphic environment S/B reset to all defaults.
An alternative to this approach is to just delete the login id for the normal user, rm -rf his/her home directory, and add the user back.
HTH, Guy
sonny kher
Ranch Hand

Joined: Nov 06, 2001
Posts: 83
I've tried adding new users, but it doesn't seem to work. X works only for root, all other users (new or old) see a really messed up environment.
Maybe its time to reinstall, I created a lot of partitions, maybe I could re-install where all X11 files are.
Nitin Shivaram
Ranch Hand

Joined: Jan 17, 2001
Posts: 71
Sonny,
If you still haven't re-installed Linux, here's what you could try.
vi into '/etc/inittab' file, and look at the line
which says 'id:`aNumber`:initdefault'.
Try setting `aNumber` to 5.
This would make linux start the windowing system everytime it comes up.
hope it works.


Nitin S<br />Sun Certified Java Programmer for the Java 2 platform.<br />Tekmetrics Certified Java Programmer For the Java 2 Platform.
 
IntelliJ Java IDE
 
subject: Messed up X
 
Threads others viewed
log-in as ROOT with ANT
Servlets exception thrown
Linux and mysql
Start Tomcat 7 as tomcat user (not root user)
Introducing JForum3
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture