LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-22-2001, 10:42 AM   #1
jamaso
Member
 
Registered: Oct 2001
Location: brasil
Distribution: mdrk 8.0,redht7.1,debianpotato
Posts: 615

Rep: Reputation: 30
4 wishes (xmms,keyboard,shutdown,rpm)


1 when i try to run xmms i get this message:

Error can`t open /dev/dsp

2 I have installed Slackware 8.0 (full version kernel 2.2.9 installed) . My keyboard (ABNT 2) was not on the list . How can i change it ?

3 How can i shut down a session quicky? my log out window don`t have the HALT choice. Tried to poweroff as root but wasn`t OK .

4 How can i get packages from other linux cd`s and install them into Slakcware?


PEACE
 
Old 11-22-2001, 12:07 PM   #2
webtoe
Member
 
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
1.) your soundcard isn;t set up properly, search the forum and youy should find info on how to set it up.

2.) what is an ABNT 2 keyboard? are you wanting to change it for X or on the console?

to change the console keymap (i have a UK keymap myself) then you need to edit /etc/rc.keymap so that it loads the keymap you want. All the keymaps are stored in /usr/lib/kbd/keytables

3.) do you mean that the graphical, kde login menu? or do you mean the console?

the kde menu (which is the default login manager in slackware) has a little dropdown box which has 'shutdown' as an option.

if you mean on the console then type the following (you need to be root)
Code:
su -c halt
if you want i think that you could change the permissions on the program shutdown but that probably isn't safe. maybe you could setuid it but i don;t know much about that.

4.) slackware can use rpm's. there's a how-to on www.linuxdoc.org on how to use rpm in slackware. although the dependancy side of rpm is usless in slack since it doesn't know that packages are installed (this is explained in the how-to)

alternativly just download the source and compile it.

HTH

Alex
 
Old 11-22-2001, 02:40 PM   #3
jamaso
Member
 
Registered: Oct 2001
Location: brasil
Distribution: mdrk 8.0,redht7.1,debianpotato
Posts: 615

Original Poster
Rep: Reputation: 30
Thanks a lot webtoe

ABNT 2 is a type of keyboard used for brazilian portuguese . when i installed Slackware there was a menu with keyboards to choose from but none of them matched my keyboard ( tried all) .I didn`t understand your question on where do i want it , but i guess the answer is both. By the way i chose gnome as default .
 
Old 11-22-2001, 03:16 PM   #4
webtoe
Member
 
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
well i have searched google but ran into a snag in that im not too hot at portugese (or brazilian, which ever it is) on the sights i found. go to www.google.com/linux and search for ABNT2.

there seems to be loads of sights that seem to be talking about getting ABNT2 working in X and on the console. There is an english discussion in english about a patch for the keymap file so i assume that it does exist.

there are two files that relate to ABNT2 on my machine but im not sure whether they are what you need

Quote:
/usr/share/kbd/keymaps/i386/qwerty/br-abnt2.map.gz
/usr/share/kbd/keymaps/i386/qwerty/br-latin1-abnt2.map.gz
you may want to try them out.

to implement them you will need to look in your start up scripts for where the keymap is loaded. on my syste it is /etc/rc.d/rc/keymap

edit your file so it looks like this

Code:
#!/bin/sh
# Load the keyboard map. More maps are in /usr/lib/kbd/keytables.
if [ -x /usr/bin/loadkeys ]; then
/usr/bin/loadkeys [b]br-abnt2.map[b]
fi
substitue the bit in bold for the keymap you want. put in the other keymap i listed if this one doesn't work.

or any that you find on the net

goodluck

Alex
 
Old 11-22-2001, 04:35 PM   #5
jamaso
Member
 
Registered: Oct 2001
Location: brasil
Distribution: mdrk 8.0,redht7.1,debianpotato
Posts: 615

Original Poster
Rep: Reputation: 30
su -c halt did not work ,unless it is really slow to shutdown , it did everything and stucked at the last step (power down). Actually i can`t get my machine halted at all . In the end i just ctrl alt del and stop it manually (cave man solution) .
 
Old 11-22-2001, 04:38 PM   #6
jamaso
Member
 
Registered: Oct 2001
Location: brasil
Distribution: mdrk 8.0,redht7.1,debianpotato
Posts: 615

Original Poster
Rep: Reputation: 30
Sorry , i forgot to say thanks , really apreciated.
 
Old 11-23-2001, 10:16 AM   #7
zhenwu
Member
 
Registered: Jul 2001
Location: Taiwan (ex-Victoria BC)
Distribution: RH 9.0
Posts: 126

Rep: Reputation: 15
shutdown -h now


does this work? You have to be root to do it, but it works every time for me. I don't know if this is just a RedHat command or not, but it's worth a try.
 
Old 11-23-2001, 11:45 AM   #8
webtoe
Member
 
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
ar, there's the snag. halt (or shutdown -h now) don't, for some reason, actually switch off the machine. its like the old days of windows 95 when it used to say
Quote:
it is now safe to switch off
or whatever it was.



just jab your power switch when it says power down. its actually telling you to power down you see.

btw, halt is merely a small script that calls shutdown -h now. the same with reboot. it just calls shutdown -r now.

Alex

P.S. if anyone can tell us how to change the shutdown so that the machine actually powers down for us their help would be appreciated.
 
Old 11-23-2001, 04:02 PM   #9
zhenwu
Member
 
Registered: Jul 2001
Location: Taiwan (ex-Victoria BC)
Distribution: RH 9.0
Posts: 126

Rep: Reputation: 15
Hmm, maybe it's a BIOS thing for me then, cuz when I type shutdown -h now
my computer totally powers off.
 
Old 11-23-2001, 05:30 PM   #10
jamaso
Member
 
Registered: Oct 2001
Location: brasil
Distribution: mdrk 8.0,redht7.1,debianpotato
Posts: 615

Original Poster
Rep: Reputation: 30
I tried what you said but it`s not working web toe . last step is power down but it just doesn`t shut down when i press the button . I `m rebooting into windows and shut the system afterwards. I have two buttons, one just reboots the machine and the second one don`t work at all in this case. HELP please.


PEACE
 
Old 11-27-2001, 06:52 AM   #11
toma
LQ Newbie
 
Registered: Jul 2001
Location: Hungary
Distribution: rh
Posts: 18

Rep: Reputation: 0
Hi,
what i know about shutting down that it depends on the kernel version. i mean that some kernels switch off the machine after the shutdown -h now command, and some kernels don't. or maybe you should recompile your kernel with these functions.
 
Old 11-28-2001, 05:48 AM   #12
Steave
Member
 
Registered: Jul 2001
Location: Braunschweig, Germany
Distribution: Suse 7.2
Posts: 184

Rep: Reputation: 30
try "poweroff" This shuts my machine down and turns it off fine where halt doesn't.
 
  


Reply



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
vt: kernel panic during shutdown from atkbd.c -Wireless keyboard-mouse teddymills Linux - Hardware 0 11-28-2005 12:51 PM
Best Wishes Skull_Notions LinuxQuestions.org Member Intro 2 01-04-2005 12:42 PM
XMMS 1.2.10 always shutdown treotan Linux - Software 3 08-08-2004 08:36 AM
Shutdown of keyboard and mouse during login greensleeves_2K Linux - General 6 11-14-2003 09:14 AM
Bind Power Down Keyboard Key to Shutdown... jpsrm Linux - General 1 01-07-2003 12:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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