LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 03-26-2003, 02:09 PM   #1
chromelocust
LQ Newbie
 
Registered: Mar 2003
Posts: 20

Rep: Reputation: 0
Question Help Editing the .Xsession file for KDE 3.1.1???


OK..

Im trying to upgrade my Mandrake 9.1 rc2 release with KDE 3.1.1 that I downloaded from Freshmeat.

I viewed the readme, and installed all of the pertinent packages for the install : ie.. aRts, kdelibs, kdebase, kde-i18n, and a few others.

I configured, and installed all of the packages through the command line.

I guess the last step is to configure the .Xsession file, so that it will run the new version of KDE.

I found the file, but when I try and add 'startkde' at the end of the file, it tells me that I dont have enough privledges to make changes to the file.

Ive tried editing the file with Kedit, and it tells me I dont have enough permissions to write to this file??

When I log in as root, through the konsole, I can edit the file....like inserting 'startkde'....but I dont know how to save.

Is there a way I can log in as root through LILO, at the login screen?

How can I get around editing the file?? Or how can I gain the appropriate permissions to change the file?

Any help would be great!!

 
Old 03-26-2003, 02:13 PM   #2
UserName
LQ Newbie
 
Registered: Mar 2003
Distribution: redhat 8.0,mandrake 9.1
Posts: 29

Rep: Reputation: 15
look at the man page of your editor how to save
if its vim
you press esc then :wq <enter>
 
Old 03-26-2003, 02:29 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
I found the file, but when I try and add 'startkde' at the end of the file, it tells me that I dont have enough privledges to make changes to the file.
If you su - to root maybe? :)

Cheers,
Tink
 
Old 03-26-2003, 03:44 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
.Xsession

I suggest that you log in as root and use chown to change the ownership of .Xsession to your user name and group. Then you can edit .Xsession as user.
 
Old 03-28-2003, 03:02 PM   #5
chromelocust
LQ Newbie
 
Registered: Mar 2003
Posts: 20

Original Poster
Rep: Reputation: 0
.Xsession Edit.....no luck?

I was able to edit, and save my changes to the .Xsession file.....
with the line 'startkde' at the end of it.

I do recall the installation instructions saying that I had to delete anything that was originally calling the windows manager.

Im not sure what lines of code to delete.....if any??

It also said, that if there wasn't a .Xsession file.....create one with one line of code that says 'startkde'.

Any ideas??
 
Old 03-28-2003, 03:22 PM   #6
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
other window managers

I think that the instructions are refering to other window managers like Gnome. Delete the commands in .Xsession to start whatever GUI, if any, you were running before you switched to KDE 3.1.1.
 
Old 03-28-2003, 05:28 PM   #7
chromelocust
LQ Newbie
 
Registered: Mar 2003
Posts: 20

Original Poster
Rep: Reputation: 0
Not sure what to edit?

I see a lot of code pertaining to the login screen and options......just dont want to delete something Im not supposed to??

I dont know the code that well.

I was thinking of replacing the entire .Xsession file all together...... with a new file that only contains one line :
startkde

They said it would work in the manual. Has anyone tried this yet?

Or am I the guinea pig
 
Old 03-28-2003, 06:19 PM   #8
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
That's guinea penguin

Log in as root. Save a copy of your user .Xsession someplace handy. Change .Xsession to something interesting. Then try to log in as user and see what happens. If only bad things happen you can log in as root and try something else.

You graduate to full fledged penguin when you can completely mess up your Linux box and then fix it without doing a reinstall.
 
Old 03-28-2003, 08:22 PM   #9
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
more sober answer

The .xsession scripts are created by the distributors. Your Mandrake script is different than my SuSE script. That said, I changed my .xsession script, among other things, when I converted from KDE 2 to KDE 3. Looking at my .xsession script I can describe the logic this way.

At the kdm login I can start failsafe (bash), Gnome 2, or KDE 3. My .xsession script first sets up the parameters to run failsafe, either by choice or because of an error in trying to start Gnome or KDE.

Then the script goes through the logic of determining what I asked to start and if that GUI exists. It sets a variable called $WINDOWMANAGER by SuSE to the full path name of the command to start either KDE or Gnome.

In typical SuSE thoroughness it also sets up SSH, csh, and tcsh even though I do not have them installed.

Finally, the script issues the command: exec $WINDOWMANAGER

If I am starting KDE then the above command translates into:
exec /usr/X11R6/bin/startkde

Assuming that startkde is on the PATH then startkde is the equivalent command.

So I think that your idea of simply issueing the startkde command is probably the best one.
 
  


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
Erased my .xsession file Little Dump Linux - Newbie 5 12-10-2008 11:49 PM
The X Server won't log in after i tried editing the Xsession file on Fedora Core 3 SHERB142 Fedora 3 06-07-2005 12:18 PM
No .xsession file lantern Debian 2 01-21-2005 05:41 PM
login from KDM to fluxbox with rox --pinboard after editing .xsession esteeven Linux - General 1 08-02-2004 04:20 PM
can't run .xsession file evian Linux - General 4 09-25-2003 06:11 PM

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

All times are GMT -5. The time now is 02:26 PM.

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