LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-03-2004, 08:33 PM   #1
jimscafe
LQ Newbie
 
Registered: Jul 2003
Posts: 17

Rep: Reputation: 0
A really basic question


I am rather embarrassed to say I don't now how to close Linux (in Suse I use KDE and justr click on shutdown).
In books I see the shutdown and the halt command - what do I use in Debian??
(I have just installed Debian - nothing working yet, but I can log on)

Also, if I type halt or shutdown I get this annoying and very loud beep - how do I turn it off?

 
Old 01-03-2004, 08:49 PM   #2
ter_roshak
Member
 
Registered: May 2001
Location: Everett, WA
Distribution: Gentoo, RedHat
Posts: 102

Rep: Reputation: 15
If you are on a command line, just type the following to shutdown immediately, (as root):

shutdown -h now

...to reboot:

shutdown -r now

Josh
 
Old 01-03-2004, 09:10 PM   #3
Strike
Member
 
Registered: Jun 2001
Location: Houston, TX, USA
Distribution: Debian
Posts: 569

Rep: Reputation: 31
You should have shutdown and halt available to you.

Note: they are in /sbin so normal users won't have them in their path.
 
Old 01-04-2004, 12:59 AM   #4
mairul
Member
 
Registered: Sep 2003
Location: In front of my LAN
Distribution: Redhat
Posts: 82

Rep: Reputation: 15
you have another choice......."poweroff"
 
Old 01-04-2004, 03:04 AM   #5
jimscafe
LQ Newbie
 
Registered: Jul 2003
Posts: 17

Original Poster
Rep: Reputation: 0
How do I shut down if I log on as a user?

shutdown -h now
works fine apart from the beep if I log on as user or type su!!

If I power off then I have to wait for a file check next time I log on.

Also this beep is very irritating - it is so loud it makes everyone in the room jump. There has to be a way to switch it off.
 
Old 01-04-2004, 03:10 AM   #6
thed
LQ Newbie
 
Registered: Jan 2004
Posts: 11

Rep: Reputation: 0
Another one

You can also try to press <ctrl>+<alt>+<del>
when properly configured in your /etc/inittab:

# What to do when CTRL-ALT-DEL is pressed.
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -h now

or type the command above in your command line.

Concerning your beep-problem:
If you are in the command line (bash) a
<set nobeep> should do the trick. If you are in X-Windows then
you have to do <set -b> I think.
(I have done it at work but can't remember by heart...)

Last edited by thed; 01-04-2004 at 03:18 AM.
 
Old 01-04-2004, 08:04 PM   #7
jimscafe
LQ Newbie
 
Registered: Jul 2003
Posts: 17

Original Poster
Rep: Reputation: 0
Typing
<set nobeep>
did not work - the beep is coming through the speakers (of course I can unplug the speakers) which does mean that Debian has found the sound card I suppose. Still I must stop this irritating noise.

I haven't got X-Windows to work yet, when presented with the option to load packages I chse XFree86 but no Desktop system - thought I would choose later - I also assumed that TK would work without KDE etc. but I think that is wrong as when I tried to use TK from python it complained that the graphics name was not there - or something similar - not sure of the exact message and am typing this from work at the moment.
 
Old 01-04-2004, 08:11 PM   #8
eaglegst
Member
 
Registered: Dec 2003
Location: Australia
Distribution: Woody, Sarge, Sid
Posts: 83

Rep: Reputation: 15
login as a normal user, in a command line, su to root, then issue "gdmconfig"(I assume you are on gdm).

Option 'basic'--> Tab 'login behavior'--> enable 'show the system menu(reboot,shutdown)'
Then you will get an option called system in your login greeter.
 
Old 01-05-2004, 05:52 AM   #9
jimscafe
LQ Newbie
 
Registered: Jul 2003
Posts: 17

Original Poster
Rep: Reputation: 0
gdmconfig was not recocgnised - what is gdm?
 
Old 01-05-2004, 07:21 AM   #10
thed
LQ Newbie
 
Registered: Jan 2004
Posts: 11

Rep: Reputation: 0
The PC-Speaker has nothing to do with your soundcard!
It's independent. So you can plug it off... ;-)

GDM is a derivate like KDM from XDM and stands for X-Display-Manager.
This prog handles the graphical Login-Procedure and X-Session Management.
 
Old 01-05-2004, 08:54 PM   #11
jimscafe
LQ Newbie
 
Registered: Jul 2003
Posts: 17

Original Poster
Rep: Reputation: 0
I don't use a graphical login procedure - I have only got as far as using the terminal log in.

In fact I haven't got graphics working at all yet - so I am only using the terminal window.
 
Old 01-06-2004, 09:40 AM   #12
thed
LQ Newbie
 
Registered: Jan 2004
Posts: 11

Rep: Reputation: 0
Terminal Window?
This means you have a X-System with a xterm?

Or do you mean pure text in the console?

Anyway, read <man bash>, search for bell.
Write in /etc/inputrc (system-wide) or ~/.inputrc (User only)
set bell-style none

This should make everything silent what uses the readline-library (bash for example).
 
Old 01-07-2004, 05:14 AM   #13
jimscafe
LQ Newbie
 
Registered: Jul 2003
Posts: 17

Original Poster
Rep: Reputation: 0
I mean pure text in the console.

I tried adding the line to inputrc as you suggested.
Before I added this line if I pressed backspace at the prompt I got the same beep and after I insterted this line there was no beep.

However, when I halt the system I still get the beep!!!!

Maybe getting a little closer to the solution...
 
Old 01-09-2004, 06:32 PM   #14
jimscafe
LQ Newbie
 
Registered: Jul 2003
Posts: 17

Original Poster
Rep: Reputation: 0
I guess that is it then - no one knows how to fix this?

I did have one thought - if I get a keyboard error (i.e. try to backspace when I am at the start of the line) I get the same beep - in other systems this beep usually comes from the speaker on the motherboard - if there is some way to find out where this is configured, after all if I did not have a sound card presumably the beep would be using the motherboard speaker.

If all else fails I shall try to reinstall. Thank you for the help so far.
 
Old 01-09-2004, 06:44 PM   #15
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 47
you could use libranet 2.8 as its based on debian and its easy to use.
 
  


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
Basic C++ question ooagentbender Programming 10 12-10-2003 09:34 PM
*very* basic c question usernamed Programming 9 08-21-2003 08:29 AM
Very basic question rajanr Linux - Newbie 2 07-23-2003 03:13 AM
A really basic question pilotgi Linux - Newbie 10 10-14-2002 04:57 PM
basic question kurgan70 Linux - General 2 12-06-2001 03:42 PM

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

All times are GMT -5. The time now is 06:53 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
Open Source Consulting | Domain Registration