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 03-16-2018, 11:50 PM   #1
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Rep: Reputation: 73
force shutdown or restart


I am used to Ubuntu, want to install Slackware. It is not so easy for me, a non-computer person.

From Ubuntu I know, to force a restart, you can enter

shutdown -r now

in a terminal

This does not work in Slack. How do I do this in Slack?
 
Old 03-16-2018, 11:51 PM   #2
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
The same I believe
 
Old 03-16-2018, 11:55 PM   #3
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
force shutdown or restart

Run 'shutdown -r now' as root. With 'shutdown -h now' a full power down occurs. You can also replace each with just 'reboot' and 'poweroff', also ran as root.
 
Old 03-16-2018, 11:59 PM   #4
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by Pedroski View Post
I am used to Ubuntu, want to install Slackware. It is not so easy for me, a non-computer person.

From Ubuntu I know, to force a restart, you can enter

shutdown -r now

in a terminal

This does not work in Slack. How do I do this in Slack?
You'll have to be root to do it.

EDIT: Too slow; mralk3 beat me to it.

Last edited by Richard Cranium; 03-17-2018 at 12:04 AM.
 
Old 03-17-2018, 01:00 AM   #5
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
Trying to install slack from a usb stick, I am root.

DEFINITIVE:

shutdown now

does not work: command not found

Any other suggestions please?

I had the slackware64 folder on another external hd, /dev/sdc but /dev/sdc is not mounted, not in fstab, cannot be mounted.

The installer said, 'would be mounted next boot'. Not true.

Now I have copied the install software, specifically slackware64 to a directory on the hd I want to use, where slack should be installed. /dev/sda must be mounted I think, I should be able to point the installer at it.

Not easy installing slack from usb!
 
Old 03-17-2018, 05:05 AM   #6
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
Hello Pedroski and welcome to Slackware
This may be a given and trivial but since you came from Ubuntu where sudo is the common way of "becoming root", or more accurately being allowed some root privileges, you might need to see this finer breakdown

Code:
 bash-4.3$ sudo which shutdown
Password: 
which: no shutdown in (/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/java/bin:/usr/lib64/java/jre/bin:/usr/lib64/kde4/libexec:/usr/lib/qt/bin:/usr/lib64/qt/bin:/usr/share/texmf/bin)
bash-4.3$ su
Password: 
bash-4.3# which shutdown
/sbin/shutdown
bash-4.3$ su -
Password: 
Two men are in a hot-air balloon.  Soon, they find themselves lost in a
canyon somewhere.  One of the three men says, "I've got an idea.  We can
call for help in this canyon and the echo will carry our voices to the
end of the canyon.  Someone's bound to hear us by then!"
        So he leans over the basket and screams out, "Helllloooooo!  Where
are we?"  (They hear the echo several times).
        Fifteen minutes later, they hear this echoing voice: "Helllloooooo!
You're lost!"
        The shouter comments, "That must have been a mathematician."
        Puzzled, his friend asks, "Why do you say that?"
        "For three reasons.  First, he took a long time to answer, second,
he was absolutely correct, and, third, his answer was absolutely useless."
root@homebase1:~# which shutdown
/sbin/shutdown
In Slackware though "sudo" can be setup much like it is in Ubuntu, "su" and "su -" as you can see have much more power to "be root" with "su -" actually being root as evidemced by being part of the messages group.

A shameless borrow
Quote:
Originally Posted by Nintendo
Now you're playing with Power!
You could give USERS or a specific user the privilege of being allowed to shut the system down or reboot but it is more correct to keep such privileges as they are. Hope this helps and have fun.

Last edited by enorbet; 03-17-2018 at 05:08 AM.
 
Old 03-17-2018, 06:18 PM   #7
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
Thing is, I do not even have slack installed yet. I'm trying to get it up and running from a usb stick installer. However, there was no EFI partition, so I had to stop the install and make the 100MB EFI partition.

The only way I could get out of the of the root shell was ctrl alt del. I was root.

shutdown now does not work in the installer shell.
 
Old 03-17-2018, 06:43 PM   #8
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by Pedroski View Post
Thing is, I do not even have slack installed yet. I'm trying to get it up and running from a usb stick installer. However, there was no EFI partition, so I had to stop the install and make the 100MB EFI partition.

The only way I could get out of the of the root shell was ctrl alt del. I was root.

shutdown now does not work in the installer shell.
There is no shutdown command in the installer (but there is a reboot command; that does the same as ctrl alt del). If you don't want to reboot, just switch the computer off.
 
1 members found this post helpful.
Old 03-17-2018, 08:39 PM   #9
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
Quote:
Originally Posted by Pedroski View Post
Thing is, I do not even have slack installed yet. I'm trying to get it up and running from a usb stick installer. However, there was no EFI partition, so I had to stop the install and make the 100MB EFI partition.
Which ISO image are you using? It's probably best if you are new to Slackware to use the install DVD, here: for 64 bit slackware64-14.2-iso/ and for 32 bit slackware-14.2-iso/.
 
Old 03-20-2018, 08:29 PM   #10
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
The command
Code:
# halt
should work. Default action is to halt system and power down.

I forgot. To reboot just input
Code:
# reboot

Last edited by igadoter; 03-20-2018 at 08:30 PM.
 
  


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
FORCE SHUTDOWN -> Auto-Kill apps that prevent Shutdown - HOW ?? ttiihone Linux - General 3 01-19-2015 08:19 AM
LXer: Force restart your Android phone LXer Syndicated Linux News 0 12-07-2013 02:03 AM
Force shutdown tnrooster Linux - Server 3 04-25-2011 03:57 AM
Force Restart on CTRL+ALT+DEL on XFCE yigosan Linux - Newbie 2 01-02-2011 11:53 AM
Force program shutdown iNFERiON Linux - Newbie 4 12-17-2003 12:07 PM

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

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