LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 02-20-2006, 05:14 AM   #1
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Rep: Reputation: 36
Can't startx and use my keyboard properly.


Okay,

I just installed slackware 10.2 and I'm having problems. I can't use "startx" command. When I first login to slack as root I can "startx" but if I end the session I can't use it again or if I login as user I can't use the "startx" command at all. All I get when typing it is "command not found".


AAAaalllllssssooo mmmmy keyboard isn't working too well as you can see. I haveee ttttthe logitech bluetooth keyboard / moussssssse MX5000. Any idea what's causing that? This only haaaaappens in X/KDE but in command prompt it works fine.
 
Old 02-20-2006, 05:53 AM   #2
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
If you are root and get a user acount by typing:
Code:
su
then not finding the startx command is OK because it's not in the path.
either try
Code:
su -
or logout from root and login as a user.
Also remember, you have 6 different consoles to login, if you don't want to logout from root:
Ctrl+ALT+F1
Ctrl+ALT+F2
.............
Ctrl+ALT+F6
 
Old 02-20-2006, 06:03 AM   #3
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: 66
Quote:
Originally Posted by perfect_circle
Also remember, you have 6 different consoles to login, if you don't want to logout from root:
Ctrl+ALT+F1
Ctrl+ALT+F2
.............
Ctrl+ALT+F6
Only if you are IN X.
From the console, it's ctrl+f2, etc...(no alt)
 
Old 02-20-2006, 08:09 AM   #4
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
Quote:
Originally Posted by cwwilson721
Only if you are IN X.
From the console, it's ctrl+f2, etc...(no alt)
Yeah I know but with the alt pressed it still works in CLI too.
SO instead of telling somebody if you are in X, press ALT+CTRL+Fx
and then you can switch tty's with CTRL+Fx you tell them the combination that works everywhere
 
Old 02-20-2006, 08:12 AM   #5
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: 66
You are correct, sir.

My humblest apologies (Never tried it....Thanks for the tip)
 
Old 02-20-2006, 09:15 AM   #6
mjjzf
Member
 
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879

Rep: Reputation: 38
The point is adding a user with adduser.
You log in as this user to startx.
First, you should set up X with xorgconfig, run as root.
 
Old 02-20-2006, 09:37 AM   #7
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
Quote:
Originally Posted by cwwilson721
Only if you are IN X.
From the console, it's ctrl+f2, etc...(no alt)
actually the combination, at least in my system is alt+f2 ... (no ctrl), but this post is going off topic, so let's stop it here
 
Old 02-20-2006, 10:33 AM   #8
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by OSourceDiplomat
The point is adding a user with adduser.
You log in as this user to startx.
First, you should set up X with xorgconfig, run as root.

I have two users besides root. Only if I like login as root in runlevel 4 and then switch to my normal user and type "startx" it gives me "command not found". If I login straigth as normal user I can get the "startx" to work.

The keyboard is weird one. In KDE it giveeeeesss ttthiiiiiiiiiiiis kind of input but in runlevel 4 it works as it should have, although NumPad doesn't work and mouse is missing keys but that's because I haven't configured them yet.
 
Old 02-20-2006, 10:39 AM   #9
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
Quote:
Originally Posted by Zmyrgel
I have two users besides root. Only if I like login as root in runlevel 4 and then switch to my normal user and type "startx" it gives me "command not found". If I login straigth as normal user I can get the "startx" to work.

The keyboard is weird one. In KDE it giveeeeesss ttthiiiiiiiiiiiis kind of input but in runlevel 4 it works as it should have, although NumPad doesn't work and mouse is missing keys but that's because I haven't configured them yet.
How do you "switch to my normal user"?
 
Old 02-20-2006, 11:17 AM   #10
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Original Poster
Rep: Reputation: 36
Just
Code:
su user2
and then the password.
 
Old 02-20-2006, 11:50 AM   #11
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
Quote:
Originally Posted by Zmyrgel
Just
Code:
su user2
and then the password.
try
Code:
su - user2
I've already told you this in my first reply. The second post in the thread.

When you type su, without - the enviroment of the user is not loaded and the X directories are not loaded in the PATH:
Code:
skalkoto@darkstar:~$ su
Password:
root@darkstar:/home/skalkoto# printenv PATH
/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin
root@darkstar:/home/skalkoto# exit
exit
skalkoto@darkstar:~$ su -
Password:
root@darkstar:~# printenv PATH
/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/opt/www/htdig/bin:/usr/lib/java/bin:/usr/lib/java/jre/bin:/usr/lib/java/bin:/usr/lib/java/jre/bin:/opt/kde/bin:/usr/lib/qt/bin:/usr/share/texmf/bin
root@darkstar:~#
The startx script is in /usr/X11R6/bin/ and this folder is not included in the PATH, this is why you get a command not found.
So either use su - or use the whole path:
/usr/X11R6/bin/startx

P.S. Anyway this is not a good way to access your users. Better login the traditional way....
 
Old 02-20-2006, 12:59 PM   #12
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Original Poster
Rep: Reputation: 36
Ok, It was pretty "unclear" on your earlier post. Code without too much telling what it does. But thank you for your response.

Btw, What's the traditional way of login?
 
Old 02-20-2006, 01:05 PM   #13
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
Quote:
Originally Posted by Zmyrgel
Ok, It was pretty "unclear" on your earlier post. Code without too much telling what it does. But thank you for your response.

Btw, What's the traditional way of login?
other use one of the other consoles:
ALT+CTRL+Fx where x=2,3,4,5,6 (your are probably using the 1)

Or logout from the current user, by typing "exit" or "logout" or by pressing CTRL+D and get a login prompt in the console.
 
  


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
startx doesn't work properly Ungluun Debian 9 07-13-2004 08:25 AM
KDE Keyboard tool stops working properly enemorales Linux - Software 0 07-07-2004 09:04 AM
No keyboard/mouse after startx Scruff Linux - Hardware 1 06-06-2004 10:55 PM
KVM w/ keyboard not working properly w/ suse 8.1 TyrranzzX Linux - Hardware 0 12-22-2003 04:22 AM
laptop keyboard not working properly orbitalistic Slackware 1 06-24-2003 01:13 PM


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