Hi, I'm scheduled to visit a blind friend next week who is currently using an old DOS system with a Braille readout to access the internet. All I need is a basic server with the brltty software to connect to his brailer, but he has two requests that I'm struggling with. I've used desktop Linux systems for quite a while, but never configured a server before. One request he has is to shut down his system with a simple command like "shutdown". I've gone through multiple posts on this topic, in particular
http://how-to.wikia.com/wiki/How_to_all ... r_in_Linux and
http://www.debianadmin.com/howto-create ... ebian.html. I've added my friend's username to the sudoers file, and included:
in the file. Then, as in the second link above, I added to .bashrc:
Code: Select all
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
and then to .bash_aliases, I added:
Code: Select all
alias shutdown='sudo /sbin/shutdown'
Now, when I type "/sbin/shutdown now" as his username, the system shuts down, but typing "shutdown" gives me an error message "bash: no such command".
What am I doing wrong?
Secondly, since my friend is blind, he would like the system to automatically log in without entering a password. Is there a way to crate a bash script that will do this on a server install? Any help would be very much appreciated, and thanks in advance.