Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

StartX not running

Posted on 2004-09-06
9
1,001 Views
Last Modified: 2013-11-13
Dear Professional,
Yesterday i have issued a command
su -c "rm -rf /tmp*"
and then i turned off the server and went home. when i came this morning i got the black window (command window) then i have tried to run GNOME by using STARTX then i got the error like

Fatal server error
Could not create lock file in /tmp/ .tx0-lock.

the i have created the folder and file as above. then when I tried again to run startx then new error again occur like

Fatal server error:
could not open default fond "fixed"

please help me. how do i back the server to run with GNOME as before,

regards
Hussain

 
0
Comment
Question by:nepk
  • 5
  • 4
9 Comments
 
LVL 11

Expert Comment

by:avizit
ID: 11993760
hmm

rm -rf /tmp*

would have removed your
"/tmp"
 directory

try doing

mkdir /tmp  
chmod -R a+rwxt /tmp




0
 
LVL 1

Author Comment

by:nepk
ID: 11993801
It doesn't work either.  
can I install the RPM again for GNOME. I am running redhat linux 8.0. and i have got all 5 CD'S of linux. can i find RPM for GNOME in them? whats the name of that RPM? i went through all CD's and i found lots of RPM just got confused and couldn't find the correct RPM for GNOME

Regards
Hussain
0
 
LVL 11

Accepted Solution

by:
avizit earned 100 total points
ID: 11993814
hmm  you had to do

"mkdir /tmp"

followed by

"chmod -R a+rw"

cos the permissions of the /tmp directorys is a bit different from other directories.
also the above commands has to be executed as "root"

from what i know , the problem was due to you removing the /tmp directory . your X , GNOME etc installation should still work
if the above doesnt work ..try removing the tmp again and trying i.e

rm -rf /tmp     /* atleast delete the lock file you created yourself */
mkdir /tmp
chmod -R a+rw
( all above as root)

and then try "startx"
or  maybe veen a reboot ;)





0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 1

Author Comment

by:nepk
ID: 11993856
thanks its work. thank you very much.

Please give me the solution for the given below. actually i don't have much points left the ask the question again, definitly i will give you 100 points as i mentioned.

How to remove RPM for GNOME and reisntall again. please guide me in this process. I am newbie in Linux.

thanks in advance.
0
 
LVL 11

Expert Comment

by:avizit
ID: 11993868
hmm i am not sure bout rpms  ( i install everything from source )

but why dont you reinstall GNOME over itself

rpm -Uvf GNOME-rpm-name


depending upon which linux you are using you may be able to use some graphical utility to install GNOME





0
 
LVL 1

Author Comment

by:nepk
ID: 11993917
1. how can i find the install packages, i should know the file name to uninstall?
2. irrelvent question please
explain drwxr-xr-x
drwxr -xr-x  2 root root
please explain it. what does 2 stands for and why two times root written, i ahve issued ls -l

3. how can i see all the users account.

mate sorry to bother you. please help

regards
0
 
LVL 11

Expert Comment

by:avizit
ID: 11993953
1.  do a  "man rpm"   that should tell you .I don't know cos I dont have rpm installed on my system
or you can read this  http://www.netadmintools.com/html/8rpm.man.html

2.

drwxr-xr-x  

means its a directory and

first triplet after 'd'   rwx is for the owner of the file  ( r = read , w = write , x= execute )
file owner has r -read, w- write and x- execute permissions
similarly for

next triplet is for group which the owner belongs to
r-x  i.e has read and execute premissions

next triplet is for rest of the users
r-x  .....

the '2' stands for the number of hard links that the file has.

the first 'root' is the name of the file owner
the second 'root' is the name of the group

3 : in most cases you can see user accounts by doing a "ls /home" cos normally all users will have a home directory at /home ( except root )


0
 
LVL 1

Author Comment

by:nepk
ID: 11994033
thanks mate

but i have only one hardisk isntalled and you said 2 means for two har disl. please explain it
0
 
LVL 11

Expert Comment

by:avizit
ID: 11994096
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Fetching data from Multiple Linux Server using Shell Scripting 55 153
linux 13 75
linux - yum package installation issue 2 57
Apache LDAP Authentication 20 28
One of the most frequently asked questions on EE in the "Windows Installer" zone is how to eliminate self-triggered installation of some product.  The problem occurs when, suddenly, whenever a certain application is launched, or even when a folder i…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question