LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Can't startx and use my keyboard properly. (http://www.linuxquestions.org/questions/slackware-14/cant-startx-and-use-my-keyboard-properly-417457/)

Zmyrgel 02-20-2006 04:14 AM

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.

perfect_circle 02-20-2006 04:53 AM

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

cwwilson721 02-20-2006 05:03 AM

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)

perfect_circle 02-20-2006 07:09 AM

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:)

cwwilson721 02-20-2006 07:12 AM

You are correct, sir.

My humblest apologies (Never tried it....Thanks for the tip)

mjjzf 02-20-2006 08:15 AM

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.

perfect_circle 02-20-2006 08:37 AM

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 :)

Zmyrgel 02-20-2006 09:33 AM

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.

perfect_circle 02-20-2006 09:39 AM

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"?

Zmyrgel 02-20-2006 10:17 AM

Just
Code:

su user2
and then the password.

perfect_circle 02-20-2006 10:50 AM

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....

Zmyrgel 02-20-2006 11:59 AM

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? :)

perfect_circle 02-20-2006 12:05 PM

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.


All times are GMT -5. The time now is 06:51 PM.