LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-07-2006, 06:55 PM   #1
halfpower
Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 244

Rep: Reputation: 31
#xorgconfig => "bash no such command"


I installed Slackware 10.2 today. I tried to run a window manager by typing "startx" but the computer told me that there was no such command as "startx." I've tried to setup X by typing both "xorgconfig" and "xf86config," but I was again told that there was no such command as "xorgconfig" and "xf86config" respectively.

What am I doing wrong? How can I set up a GUI?
 
Old 06-07-2006, 07:01 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
The command is:

Xorg -configure
 
Old 06-07-2006, 07:04 PM   #3
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
startx and xorgconfig don't work on my machine as root, try logging in as a user.

Samac
 
Old 06-07-2006, 07:23 PM   #4
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
Quote:
startx and xorgconfig don't work on my machine as root, try logging in as a user.
hmm, it's the exact opposite for me. Isn't the '/etc/X11/xorg.conf' owned by root?

halfpower, try running 'xorgsetup' first and see if that works. This will usually autodetect your settings and set up everything for you. The only things I had to change was my default resolution.

If it does not autodetect correctly, you can go though the manual configuration as suggested.

regards,
...drkstr
 
Old 06-07-2006, 07:31 PM   #5
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,729
Blog Entries: 7

Rep: Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842
Quote:
Originally Posted by halfpower
I installed Slackware 10.2 today. I tried to run a window manager by typing "startx" but the computer told me that there was no such command as "startx."
Is X installed?

startx should work in any login.

What is the output of "whereis startx" ?
 
Old 06-07-2006, 07:34 PM   #6
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,729
Blog Entries: 7

Rep: Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842
Quote:
Originally Posted by drkstr
hmm, it's the exact opposite for me. Isn't the '/etc/X11/xorg.conf' owned by root?
Does that really matter? It (like all your other system-wide configuration files) should be readable by all. ie. It's permissions should be rw-r--r--.
 
Old 06-07-2006, 07:41 PM   #7
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
Quote:
It (like all your other system-wide configuration files) should be readable by all. ie. It's permissions should be rw-r--r--.
Yes, but to write to it....

I think the difference is how you have X set up in your system. Do you have it installed to the home directory of the user or something? If not, how did you initially configure X?

regards,
...drkstr
 
Old 06-07-2006, 08:08 PM   #8
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,729
Blog Entries: 7

Rep: Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842
Quote:
Originally Posted by drkstr
I think the difference is how you have X set up in your system. Do you have it installed to the home directory of the user or something? If not, how did you initially configure X?
Errr... Slackware 10.2 installs X under /usr/X11R6 by default.

It comes with a default configuration file (/etc/X11/xorg.conf) which works with the frame buffer device. It has worked for me straight out of the box on several different hardware combinations.

So after you've installed Slackware, "startx" should result in X starting without the need to tweak anything.

If the "startx" command is not found, then I'd hazard a guess that X wasn't installed.
Quote:
Originally Posted by drkstr
Yes, but to write to it....
In what circumstances does a normal user need to write to system-wide configuration files?

Last edited by rkelsen; 06-07-2006 at 08:13 PM.
 
Old 06-07-2006, 08:25 PM   #9
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
Quote:
Errr... Slackware 10.2 installs X under /usr/X11R6 by default.
Right, which means that you would not be able to modify any of the system setting as a non root user. (which are located in /etc/X11)

Quote:
In what circumstances does a normal user need to write to system-wide configuration files?
Never.

I see where the confusion is. My X did not work out of the box. I thought you were saying you had to configure X as a non-root user. Since the Xorg configuration file is owned by root, I was curious how you went about doing this.

You are correct in saying that a non root user can run X, assuming that root has configured it correctly for that user.

regards,
...drkstr
 
Old 06-07-2006, 08:42 PM   #10
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Maybe a distillation of what's been said:

AS ROOT
Code:
xorgsetup
xorgconfig
Either one should work, but must be run as root

If you are still having issues (i.e. 'not found'), you may not have X installed correctly.

Let us know the results
 
Old 06-07-2006, 08:45 PM   #11
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,729
Blog Entries: 7

Rep: Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842
Quote:
Originally Posted by drkstr
I see where the confusion is. My X did not work out of the box.
Interesting. I wonder why? The default configuration has worked for me since I can't remember when.
 
Old 06-07-2006, 08:46 PM   #12
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Different hardware. Mine doesn't work straight out of the box, either. (On my Nvidia box it did, but not my i8xx boxes at all.)
 
Old 06-07-2006, 08:52 PM   #13
halfpower
Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 244

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by rkelsen
Is X installed?

startx should work in any login.

What is the output of "whereis startx" ?
I'm pretty sure I installed it durring the initial installation.

Code:
root@computer:/# whereis startx
startx: /usr/X11R6/startx /usr/bin/X11/startx /usr/X11/bin/startx /usr/X11/man/man1/startx.1x.gz
 
Old 06-07-2006, 08:57 PM   #14
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,729
Blog Entries: 7

Rep: Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842
Quote:
Originally Posted by halfpower
Code:
root@computer:/# whereis startx
startx: /usr/X11R6/startx
OK. So X is installed and startx is in your path.

And typing "startx" yields "Command not found?" Odd.

Try typing "/usr/X11/bin/startx" and report back with the results.
 
Old 06-07-2006, 09:03 PM   #15
halfpower
Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 244

Original Poster
Rep: Reputation: 31
xorgsetup does not work either. I suppose I might have screwed up the X install when I was installing the OS. I don't knwo how I could find out though.
 
  


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
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 7 12-19-2015 02:03 AM
"bash: rpm: command not found" errom when trying to install any package sandeepchau123 Linux - General 16 07-06-2008 04:58 AM
"service __ restart" bash command isn't working case1984 Linux - Newbie 9 04-10-2008 03:35 PM
Bash: "after" or "waitfor" command enemorales Programming 3 06-15-2005 01:04 AM
Bash Script: Problem running variable command containing "" Paasan Programming 2 01-21-2004 02:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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