Tired of three-stage shutdown in Tellytubbies Eee, I opened a terminal and tried:
shutdown -h now
Ripost was:
Bash: shutdown: command not found
(Original command taken from The One Page Linux Manual) To save me lots of GPRS-wasted time, does anyone know what the magic words are, pretty please?
Hi Tony,
Sorry I don't quite understand your post, are you having difficulties using the shutdown command?
It normally lives in /sbin which by default isn't often in your path variable, try /sbin/shutdown -h now
Wayne Stallwood wrote:
On 23/05/10 11:57, James Bensley wrote:
Hi Tony,
Sorry I don't quite understand your post, are you having difficulties using the shutdown command?
It normally lives in /sbin which by default isn't often in your path variable, try /sbin/shutdown -h now
or simply 'sudo /sbin/halt'
If I don't come back immediately, then *THAT'S* worked...
Wayne Stallwood wrote:
On 23/05/10 11:57, James Bensley wrote:
Hi Tony,
Sorry I don't quite understand your post, are you having difficulties using the shutdown command?
It normally lives in /sbin which by default isn't often in your path variable, try /sbin/shutdown -h now
Warning: could not determine runlevel: doing soft halt (It's better to use shutdown instead of halt from the command line)
I'll try that with sudo...
James Bensley wrote:
Hi Tony,
Sorry I don't quite understand your post, are you having difficulties using the shutdown command?
It normally lives in /sbin which by default isn't often in your path variable, try /sbin/shutdown -h now
Ta.
If I don't return immediately, it's worked...
James Bensley wrote:
It normally lives in /sbin which by default isn't often in your path variable, try /sbin/shutdown -h now
Hah!
shutdown: you must be root to use that
Will have to go through saved past posts/items to bork the Eee's grip on anything rooty - or cut my losses and install a sensible distro.
On 23-May-10 10:52:36, Anthony Anson wrote:
Tired of three-stage shutdown in Tellytubbies Eee, I opened a terminal and tried:
shutdown -h now
Ripost was:
Bash: shutdown: command not found
(Original command taken from The One Page Linux Manual) To save me lots of GPRS-wasted time, does anyone know what the magic words are, pretty please? -- Tony Anson www.girolle.co.uk/
The 'shutdown' command is located at /sbin/shutdown
The directory /sbin is (by default) not in a normal (non-root) user's PATH, so just entering "shutdown -h now" as a normal user will result in "command not found" because the OS won't be looking where it is.
If you do "sudo shutdown -h now" that should work.
Alternatively (which is my preferred method for root operations), you can have a terminal window tucked away somewhere in which you are permanently logged in as root -- the method for achieving that starting as a normal user being
su -
followed by entering root's password at the subsequent prompt.
Then "shutdown -h now" in that window will initiate the shutdown.
As a final wrinkle: I have a little script in /usr/local/bin/down (which is in everyone's path) which just says "shutdown -h now", and the script's permissions are "-rwx------ 1 root root" so that only root can use it. If you set that up, then you can just say
down
(That should be the best way of doing it for Puppy Linux).
Hoping this helps, Ted.
-------------------------------------------------------------------- E-Mail: (Ted Harding) Ted.Harding@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 23-May-10 Time: 12:14:27 ------------------------------ XFMail ------------------------------
On 23 May 12:14, Ted Harding wrote:
Alternatively (which is my preferred method for root operations), you can have a terminal window tucked away somewhere in which you are permanently logged in as root -- the method for achieving that starting as a normal user being
su -
followed by entering root's password at the subsequent prompt.
Bad habit to leave root terminals kicking about... For future reference though, if the user has sudo access, then a (much) nicer way to get a root shell is: sudo -i
Also, if there are multiple users on the system, and you need to login as a different user, and have sudo access, you can do: sudo -u username -i
I tend to split websites out in to different users, and not as my main account on my server, being able to login as those users is quite handy at times (the sites are generally django based, so occasionally I might want to run some manage commands), my sudo setup might be a little odd though :)
Cheers,
Sorry all - done it again, and all replies ent to origin.
My memory isn't getting any better, it seems. That's what comes of around fifteen years of just 'replying' to any emu or listitem.
(Ted Harding) wrote:
The 'shutdown' command is located at /sbin/shutdown
The directory /sbin is (by default) not in a normal (non-root) user's PATH, so just entering "shutdown -h now" as a normal user will result in "command not found" because the OS won't be looking where it is.
If you do "sudo shutdown -h now" that should work.
Unfortunately, it doesn't.
Alternatively (which is my preferred method for root operations), you can have a terminal window tucked away somewhere in which you are permanently logged in as root -- the method for achieving that starting as a normal user being
Trouble there is that the Eee comes wit ready-loaded OS and no root password.
There is a workround - getting in and changing it, but you don't get the usual line-by-line startup like, for instance, with Debian.
I have the workround saved somewhere...
su -
followed by entering root's password at the subsequent prompt.
Then "shutdown -h now" in that window will initiate the shutdown.
It's the root passworm...
As a final wrinkle: I have a little script in /usr/local/bin/down (which is in everyone's path) which just says "shutdown -h now", and the script's permissions are "-rwx------ 1 root root" so that only root can use it. If you set that up, then you can just say
down
(That should be the best way of doing it for Puppy Linux).
Unfortunately, this is Xandros. Still, thanks, and method(s) saved for future reference.
On 23/05/10 12:52, Anthony Anson wrote:
Trouble there is that the Eee comes wit ready-loaded OS and no root password.
It doesn't need one, there are now very few reasons why you need to log in as root, ever. Or worse still (Ted) leave root shells laying around :)
if you sudo as the first user you created when setting up the machine (as that user is automatically a sudoer) it will prompt you for that users password again and then run the command as root.
This is true for any user permitted in the sudoer file, or more generally any user in the group that is permitted in the sudoer file.
Or as Brett says if you want a root shell then run sudo -i (and type in your password)
You could just amend your sudoers file with visudo then you can use:
sudo /sbin/shutdown -h now
On 23 May 2010 18:12, Anthony Anson tony.anson@girolle.co.uk wrote:
James Bensley wrote:
You could just amend your sudoers file with visudo then you can use:
sudo /sbin/shutdown -h now
Need root acess to do that...
Can you not use sudo?
James Bensley wrote:
On 23 May 2010 18:12, Anthony Anson tony.anson@girolle.co.uk wrote:
James Bensley wrote:
You could just amend your sudoers file with visudo then you can use:
sudo /sbin/shutdown -h now
Need root acess to do that...
Can you not use sudo?
Tried it. (See above.)
Asus obviously has no confidence in the judgement of its customers...
I really must get down to limbering-up the Acer Aspire 5000, which has lots of advantages - a screen I can see, passwords I have recorded, Debian (Lenny), a decent-sized HDD, built-in DVD drive, and USB which allows memory to be plugged in (and work) at the same time as the mobile internet dongle.
I've had several suggestions for a mail client, Pan being the latest.
Shall play.
But - not make any serious decisions (probably) until I can get to a Norwich meet.
On 24 May 2010 00:20, Anthony Anson tony.anson@girolle.co.uk wrote:
Asus obviously has no confidence in the judgement of its customers...
So put Debian or Ubuntu on it. Since Noodles debiansied my EEE, it's actually usable!
E. Fosbrooke-Brown wrote:
On 24 May 2010 00:20, Anthony Anson tony.anson@girolle.co.uk wrote:
Asus obviously has no confidence in the judgement of its customers...
So put Debian or Ubuntu on it. Since Noodles debiansied my EEE, it's actually usable!
This is the one with the small HDD, so a full Lenny is rather over the top. Sa soon as the Acer (which is Debianised) is populated with what I want on it, the Eee will get Wumpussed.
Until then I'll keep the internettything on the Eee just in case I get lost somewhere.
On 24 May 14:12, Anthony Anson wrote:
E. Fosbrooke-Brown wrote:
On 24 May 2010 00:20, Anthony Anson tony.anson@girolle.co.uk wrote:
Asus obviously has no confidence in the judgement of its customers...
So put Debian or Ubuntu on it. Since Noodles debiansied my EEE, it's actually usable!
This is the one with the small HDD, so a full Lenny is rather over the top. Sa soon as the Acer (which is Debianised) is populated with what I want on it, the Eee will get Wumpussed.
I'm now wondering how small a "small HDD" is. But then, I have a 1G / partition, 45M /boot and currently a staggering 5.8G in /usr and 2.5G in /var (I have a feeling that I've installed lots of crap that I don't want on this 'ere laptop again!)... so, you can get a very comfortable system in 10G. I'm sure that I used to be running this at well under 2G for OS...
Until then I'll keep the internettything on the Eee just in case I get lost somewhere.
-- Tony Anson www.girolle.co.uk/
main@lists.alug.org.uk http://www.alug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!
On Mon, May 24, 2010 at 02:20:45PM +0100, Brett Parker wrote:
On 24 May 14:12, Anthony Anson wrote:
E. Fosbrooke-Brown wrote:
On 24 May 2010 00:20, Anthony Anson tony.anson@girolle.co.uk wrote:
Asus obviously has no confidence in the judgement of its customers...
So put Debian or Ubuntu on it. Since Noodles debiansied my EEE, it's actually usable!
This is the one with the small HDD, so a full Lenny is rather over the top. Sa soon as the Acer (which is Debianised) is populated with what I want on it, the Eee will get Wumpussed.
I'm now wondering how small a "small HDD" is. But then, I have a 1G / partition, 45M /boot and currently a staggering 5.8G in /usr and 2.5G in /var (I have a feeling that I've installed lots of crap that I don't want on this 'ere laptop again!)... so, you can get a very comfortable system in 10G. I'm sure that I used to be running this at well under 2G for OS...
My EEE has a 4G SSD and a 16G SSD. /home is on the 16G, everything else (a fairly standard Debian squeeze install) is on the 4G. I'm pretty sure some of the original EEEs only came with 4G, but I'd still consider that enough for Debian.
J.
On 23/05/10 23:20, Anthony Anson wrote:
Tried it. (See above.)
Asus obviously has no confidence in the judgement of its customers...
I don't understand, what does this have to do with Asus not having confidence in their customers ? Plenty of modern distros default to no password being set for the root account..anything based on Ubuntu for a start but I am sure there are others.
You aren't "locked out" you just haven't worked out how to use sudo
You tried it and what happened ?
On 24 May 14:40, Wayne Stallwood wrote:
On 23/05/10 23:20, Anthony Anson wrote:
Tried it. (See above.)
Asus obviously has no confidence in the judgement of its customers...
I don't understand, what does this have to do with Asus not having confidence in their customers ? Plenty of modern distros default to no password being set for the root account..anything based on Ubuntu for a start but I am sure there are others.
You aren't "locked out" you just haven't worked out how to use sudo
You tried it and what happened ?
The world exploded... didn't you feel it? We're now an elaborate simulation of life running on a EEE with only 4G of diskspace... and no root password set. We're doomed I tell you!
On 23-May-10 12:09:37, Wayne Stallwood wrote:
On 23/05/10 12:52, Anthony Anson wrote:
Trouble there is that the Eee comes wit ready-loaded OS and no root password.
It doesn't need one, there are now very few reasons why you need to log in as root, ever. Or worse still (Ted) leave root shells laying around :)
Well, since no-one but myself has physical access (short of breaking in to my house), who could take advantage of that? And how? (The only root-owned processes identificable by 'ps aux', apart from the usual bunch of system stuff like inetd, cron, lpd, etc.) are a bunch of getty's tied to tty1-6 (i.e. the usual raw consoles).
All the instances of 'bash' are owned by myself, including the one on which I have su'd to root.
There are however a couple of lines:
root 3273 0.0 0.1 3712 1080 pts/1 S May19 0:00 su - root 3275 0.0 0.1 3992 1696 pts/1 S May19 0:00 -su
which are clearly associated with the root login, but they refer to the process "su". No?
if you sudo as the first user you created when setting up the machine (as that user is automatically a sudoer) it will prompt you for that users password again and then run the command as root.
This is true for any user permitted in the sudoer file, or more generally any user in the group that is permitted in the sudoer file.
Or as Brett says if you want a root shell then run sudo -i (and type in your password)
Ted.
-------------------------------------------------------------------- E-Mail: (Ted Harding) Ted.Harding@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 23-May-10 Time: 15:03:50 ------------------------------ XFMail ------------------------------
Wayne Stallwood wrote:
On 23/05/10 12:52, Anthony Anson wrote:
Trouble there is that the Eee comes wit ready-loaded OS and no root password.
It doesn't need one, there are now very few reasons why you need to log in as root, ever. Or worse still (Ted) leave root shells laying around :)
However, it asked for one...
if you sudo as the first user you created when setting up the machine (as that user is automatically a sudoer) it will prompt you for that users password again and then run the command as root.
As the only user, and as it came preconfigured, and not intending to use the box^h^h^wafer for anything secretive, or for anything of a financial nature, I saw no reason to set a password.
This is true for any user permitted in the sudoer file, or more generally any user in the group that is permitted in the sudoer file.
Or as Brett says if you want a root shell then run sudo -i (and type in your password)
<Naming of parts> Which in my case, I do not have... </parts>