LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 10-14-2004, 09:21 AM   #1
Little Dump
LQ Newbie
 
Registered: Sep 2004
Location: London, ON, Canada
Posts: 18

Rep: Reputation: 0
Erased my .xsession file


I accidently overwrote my .xsession file in my ~/ directory while I was using cftp.

It was completely my fault.

However, I dont have a backup (that I know of unless one was made). I had never edited it before, so it was the same as when I installed linux.

I am running Debian 3.1, is it likely that there was nothing in there? What should I do?
 
Old 10-14-2004, 09:31 AM   #2
Samsara
Member
 
Registered: May 2003
Distribution: Ubuntu, Mac OS X Tiger
Posts: 481

Rep: Reputation: 32
I would do:

1) create new user
2) become root user
3) cp new user's .xsession to your home dir
4) chown it to yourself (not root!)
5) delete new user

Have fun!

Samsara
 
Old 10-14-2004, 09:48 AM   #3
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
If you didn't edit it you can use the default version, which your x uses now anyway. It's /etc/X11/Xsession. Just type in the command line:

Code:
cp /etc/X11/Xsession ~/.xsession
 
Old 10-14-2004, 11:14 PM   #4
Little Dump
LQ Newbie
 
Registered: Sep 2004
Location: London, ON, Canada
Posts: 18

Original Poster
Rep: Reputation: 0
strange

if i copy that file over, X fails to load.

If I have no .xsession, X runs fine.
 
Old 10-15-2004, 07:30 AM   #5
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
Now I look at it I don't have that file either. And if you save it as .Xsession (note the capital) I have it like that.
 
Old 12-10-2008, 11:49 PM   #6
thilinamb
LQ Newbie
 
Registered: Dec 2008
Posts: 1

Rep: Reputation: 0
Cool Remove the ~/.Xsession file

I also faced the same problem. I modified the ~/.Xsession file and then it failed to load.

One of the solutions to this problem is to remove the Xsession file from your ~/ directory. Remove the temporary files of the Xsession file(like Xsession~) to keep things tidy.

Then logout and try to login again.

Cheers.
/thilina
 
  


Reply



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
Uh-oh. Erased /dev/dvd file newmoon Linux - General 18 07-27-2005 12:12 PM
.xsession file causes login crash? ran404 SUSE / openSUSE 1 03-13-2005 12:55 PM
No .xsession file lantern Debian 2 01-21-2005 05:41 PM
accidentily erased /dev/ttyS0 file frieza Linux - Hardware 1 01-02-2004 12:45 PM
can't run .xsession file evian Linux - General 4 09-25-2003 06:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:57 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