LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 08-07-2004, 07:33 AM   #1
YBA^[x]
Member
 
Registered: Apr 2004
Location: Denmark
Distribution: Slackware 10.2
Posts: 121

Rep: Reputation: 15
Question gnome logout options and numlock ?


Hey.

Just a few questions.

First. How do I enable reboot and shutdown options at the logout menu for a regular user ?

Second. Numlock is for some reason deactivated when done booting. Hoe can I change this ?

Regards.
 
Old 08-07-2004, 09:05 AM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Download setnumlock ftp://ftp.silug.org/pub/ltsp/setnumlock.tar.gz install it and then set it to run every time you log into gnome

tar xzf setnumlock.tar.gz
cd setnumlock
make
su
password
make install
chmod 755 /usr/bin/setnumlock
exit
gnome-session-properties

click the Startup Programs tab then click Add, type setnumlock in the Startup Command box, click OK to close it all up and you're done.
 
Old 08-07-2004, 10:40 AM   #3
Schrambo
Member
 
Registered: Mar 2004
Location: Western Australia
Distribution: Debian Slackware CentOS
Posts: 102

Rep: Reputation: 15
.... surely there must be a setting or two in a config somewhere. A program to enale numlock apon startup is insane.
 
Old 08-08-2004, 04:59 AM   #4
YBA^[x]
Member
 
Registered: Apr 2004
Location: Denmark
Distribution: Slackware 10.2
Posts: 121

Original Poster
Rep: Reputation: 15
Hey.

I've been messing around with some other script but they didn't work, this one did like a charm, though. Thanks.

Anyone has any idea how to add reboot/shutdown options to the logout menu in "Actions" -> "Logout" from within gnome for reglular users ?

Regards.
 
Old 08-08-2004, 09:30 AM   #5
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
I don't know how to add it to the menu, but according to these threads http://gnomesupport.org/forums/viewtopic.php?t=7044 http://gnomesupport.org/forums/viewtopic.php?t=7306 you should be given the option to shutdown after you've clicked logout if you

su
password
mkdir /var/run/console
touch /var/run/console/$USERNAME # change that for your actual username
chmod +s /sbin/halt /sbin/shutdown /sbin/poweroff

I should point out that it creates a security risk to set the user ID to root on those programs. Basically it means anyone who's logged on at the computer can switch it off. So if you're running a server or controling a nuclear powerstation or something, don't do this. If you're just running a home desktop computer you should be fine.
 
  


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
gnome logout/ more options jaa1180 Debian 8 07-08-2004 03:24 PM
change Gnome logout to show more options jaa1180 Libranet 0 06-14-2004 08:22 AM
numlock in gnome ezeuba Red Hat 5 06-13-2004 07:23 AM
On gnome / x logout run "logout" ?? once here Linux - Software 1 01-09-2004 02:53 PM
no reboot options after first logout in mandrake 9.1 hobylinux Linux - Software 1 08-17-2003 05:59 PM

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

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