sloppyslacker Posted October 23, 2006 Posted October 23, 2006 Still trying to configure my daughters computer.As root I typed xorgconfig and recieve the message from bash that the command cannot be found. Quote
sloppyslacker Posted October 23, 2006 Author Posted October 23, 2006 I managed to get xorgconfig to work by accessing root with su - as opposed to the plain su that I am used to. Can anyone tell me the difference? Quote
striker Posted October 23, 2006 Posted October 23, 2006 sloppyslacker, hi thereThe command to open that file is this: $ cat /etc/X11/xorg.conf Now you can only have a look at it (in the console) and nothing more.Suppose you want to be able to make an edit to it: you can' t as user because you might kill your system, so you have no permission to open it. Administrators however are supposed they know what they' re doing , so basically you have to become Admin, that means gain root privileges: $ su$ root password# Now you can edit (let' s just take the same file for example) the xorg.conf file: # kate /etc/X11/xorg.conf When you' re ready doing the edit, save the file and close the editor, in the above case we used "kate". Now you will be thrown back at the console so you have to bail out of that one: ...# exit$ exit Above you see two times exit: the first command bails out as Admin, the second one bails out as user and closes the console. Quote
Peachy Posted October 23, 2006 Posted October 23, 2006 When you type in su by itself it doesn't actually change the environment to the root user but leaves it in the context of the user who called it. su - loads the root user's environment, which would include the correct PATH environment variable. Quote
Bruno Posted October 23, 2006 Posted October 23, 2006 Hi SlackerI am wondering what happened . . . was your xorg not configured during the install ?? Did you try "startx" after logging in ? Bruno Quote
sloppyslacker Posted October 23, 2006 Author Posted October 23, 2006 When you type in su by itself it doesn't actually change the environment to the root user but leaves it in the context of the user who called it. su - loads the root user's environment, which would include the correct PATH environment variable.Hi Peachy,Have run the xorgconfig command a zillion times. I don't ever remember having to type su - as opposed to su. In fact, I don't remember ever typing su -.Perhaps I'm getting old. at any rate, thank you for the explaination. Quote
rolanaj Posted October 23, 2006 Posted October 23, 2006 I'm confused didn't realize there was a su and a su- but thanks for the explanation, when exactly would you need to use su- as opposed to su? Quote
Bruno Posted October 23, 2006 Posted October 23, 2006 There is a better/easier command in Slack 11.0 to configure X: "xorgsetup" ( but also here it needs "su -" or "su - root" ) Bruno@ Rolana: you will know if when you are "su" you get a message that only root can run the command Quote
rolanaj Posted October 23, 2006 Posted October 23, 2006 you know I may have actually got that before, just figured I did something wrong Quote
sloppyslacker Posted October 24, 2006 Author Posted October 24, 2006 Hi SlackerI am wondering what happened . . . was your xorg not configured during the install ?? Did you try "startx" after logging in ? BrunoHi Bruno,X was configured but wanted my monitor settings to be right on target for refresh rate and such. Quote
Bruno Posted October 24, 2006 Posted October 24, 2006 Okay . . now I understand Slacker . . . . thanks for clearing that up ! Bruno Quote
havnblast Posted October 24, 2006 Posted October 24, 2006 never heard of these su -as stuff???when I need to go root I type su and enter my password and I become root.First thing I did upon installing slackware was install nano so I could edit files comfortably. xorg.conf file holds all the powers.I'll have to remember that xorgsetup command, that is also new to me. Everything I throw at Slackware 11 works flawlessly. I thought about moving to 2.6 kernel but really can't see the point when it's solid as is. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.