LinuxQuestions.org
Help answer threads with 0 replies.
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, 03: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, 03: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, 03:29 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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, 04:44 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,863

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
.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, 04: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, 04:22 PM   #6
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,863

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
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, 06: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, 07:19 PM   #8
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,863

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
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, 09:22 PM   #9
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,863

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

All times are GMT -5. The time now is 02:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration