The fix is simple, in a console enter the following code;
sudo sysctl -w kernel.sysrq=0This will disable the "SysRq" key, which apparently is interfering with Alt+PrtScn.
Just another reason to switch over to vanilla Debian
sudo sysctl -w kernel.sysrq=0sudo vi /etc/modprobe.d/blacklist.confblacklist rt2800usbsudo apt-get install openssh-serversudo vi /etc/ssh/sshd_configPort 22Port 443sudo /etc/init.d/ssh restartsudo adduser --system --group vpn--system parameter sets vpn's shell to /bin/false but because the vpn user needs to log in via ssh, we must change this to /bin/bash in the /etc/passwd file.sudo vi /etc/passwdvpn:x:110:110::/home/vpn:/bin/bashsudo passwd vpnssh vpn@hostnameOnce you have passwordless SSH properly configured between root@client and vpn@server you should change the password to a more secure (random) one if you haven't already done so it will no longer be needed.
visudovpn ALL=NOPASSWD: /usr/sbin/pppd
vpn ALL=NOPASSWD: /sbin/iptables
vpn ALL=NOPASSWD: /sbin/route
vi /home/vpn/returnroutes.sh#!/bin/sh
sudo route add -net 10.48.0.0/16 gw 192.168.0.1
sudo route add -net 10.0.0.0/16 gw 192.168.0.1
chmod +x /home/vpn/returnroutes.shchown vpn:vpn /home/vpn/returnroutes.shsudo /usr/sbin/pppd noauth~�}#�!}!}!} }4}"}&} } } } }%}&����}'}"}(}"��~
#!/bin/sh
# SCRIPT: vpn-connect version 2.2
# LOCATION: /usr/local/bin/vpn-connect
# DESCRIPTION: This script initiates a ppp-ssh vpn connection.
# see the VPN PPP-SSH HOWTO on http://www.linuxdoc.org
# for more information.
# NOTES: This script uses port 443 so your VPN server should be
# configured to listen for ssh on Port 443
#
# revision history:
# 1.6 11-Nov-1996 miquels@cistron.nl
# 1.7 20-Dec-1999 bart@jukie.net
# 2.0 16-May-2001 bronson@trestle.com
# 2.2 27-Sep-2009 brettg@tuxnetworks.com
#
# You will need to change these variables...
#
# The host name or IP address of the SSH server that we are
# sending the connection request to:
SERVER_HOSTNAME=tuxnetworks.homelinux.net
# The username on the VPN server that will run the tunnel.
# For security reasons, this should NOT be root. (Any user
# that can use PPP can intitiate the connection on the client)
SERVER_USERNAME=vpn
# The VPN network interface on the server should use this address:
SERVER_IFIPADDR=192.168.3.2
# ...and on the client, this address:
CLIENT_IFIPADDR=192.168.3.1
# This tells ssh to use unprivileged high ports, even though it's
# running as root. This way, you don't have to punch custom holes
# through your firewall.
LOCAL_SSH_OPTS="-P"
PATH=/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/bin/X11/:
## required commands...
PPPD=/usr/sbin/pppd
SSH=/usr/bin/ssh
RETURNROUTES=/home/vpn/zenroutes.sh
if ! test -f $PPPD ; then echo "can't find $PPPD"; exit 3; fi
if ! test -f $SSH ; then echo "can't find $SSH"; exit 4; fi
case "$1" in
start)
# echo -n "Starting vpn to $SERVER_HOSTNAME: "
${PPPD} updetach noauth passive pty "${SSH} -p 443 ${LOCAL_SSH_OPTS} ${SERVER_HOSTNAME} -l${SERVER_USERNAME} -o Batchmode=yes sudo ${PPPD} nodetach notty noauth" ipparam vpn ${CLIENT_IFIPADDR}:${SERVER_IFIPADDR}
${SSH} -p 443 ${SERVER_HOSTNAME} -l ${SERVER_USERNAME} ${RETURNROUTES}
route add -net 10.1.0.0 netmask 255.255.0.0 gw $SERVER_IFIPADDR
# route add -net 10.2.0.0 netmask 255.255.0.0 gw $SERVER_IFIPADDR
# route add -net 192.0.0.0/8 gw $SERVER_IFIPADDR
;;
stop)
# echo -n "Stopping vpn to $SERVER_HOSTNAME: "
PID=`ps ax | grep "${SSH} -p 443 ${LOCAL_SSH_OPTS} ${SERVER_HOSTNAME} -l${SERVER_USERNAME} -o" | grep -v ' passive ' | grep -v 'grep ' | awk '{print $1}'`
if [ "${PID}" != "" ]; then
kill $PID
echo "disconnected."
else
echo "Failed to find PID for the connection"
fi
;;
config)
echo "SERVER_HOSTNAME=$SERVER_HOSTNAME"
echo "SERVER_USERNAME=$SERVER_USERNAME"
echo "SERVER_IFIPADDR=$SERVER_IFIPADDR"
echo "CLIENT_IFIPADDR=$CLIENT_IFIPADDR"
;;
*)
echo "Usage: vpn {start|stop|config}"
exit 1
;;
esac
exit 0
chmod +x /usr/local/bin/vpn-client/usr/local/sbin/vpn-client startifconfig ppp0ifconfig | grep pppvi /usr/local/sbin/vpn-check#!/bin/sh
EMAIL=brettg@tuxnetworks.com
DAEMON=pppd
if [ "$(/bin/pidof $DAEMON)" = "" ]; then
/usr/local/sbin/vpn-client start
wait
if ! [ "$(/bin/pidof $DAEMON)" = "" ]; then
echo "VPN restarted $(date +%m-%d-%Y)"
fi
fi
vi /etc/crontab* * * * * root /usr/local/sbin/vpn-check/usr/local/sbin/vpn-client stopWarning: If your user already has a key pair then you should skip this step otherwise you may overwrite your existing key and potentially cause problems for other services that may already rely on them.
ls -al ~/.ssh/
known_hostsid_rsa and id_rsa.pub (or similar) listed then you already have a keypair and you should skip this step.ssh-keygenNote: It is important that you don't enter a passphrase when asked to! If you did just run the command again, it will overwrite the key you just created.
root@client:~# ls .ssh/
id_rsa id_rsa.pub known_hosts.pub. We need to copy this file to /root on the server. Note: You can do this via scp or copy it onto a thumbdrive or even type it in from a printout if you like! I will leave it up to you to decide the best method in your situation.
root@server:~# ls -al *.pub
-rw-r--r-- 1 root root 392 2010-08-02 08:22 id_rsa.pub cat id_rsa.pub >> .ssh/authorized_keysroot@client:~# ssh root@server
Linux server 2.6.32-25-generic-pae #44-Ubuntu SMP Fri Sep 17 21:57:48 UTC 2010 i686 GNU/Linux
Ubuntu 10.04.1 LTS
Welcome to Ubuntu!
* Documentation: https://help.ubuntu.com/
Last login: Thu Oct 14 15:38:57 2010 from client
root@server:~# some-package.v123.deb it checks to see if it is already cached locally and if so it provides it to the client.
deb http://au.archive.ubuntu.com/ubuntu lucid main restricted
deb http://au.archive.ubuntu.com/ubuntu lucid-updates main restricted
deb http://au.archive.ubuntu.com/ubuntu lucid-backports main restricted
deb http://au.archive.ubuntu.com/ubuntu lucid-backports universe multiverse
deb http://au.archive.ubuntu.com/ubuntu lucid universe multiverse
deb http://au.archive.ubuntu.com/ubuntu lucid-updates universe multiverse
deb http://au.archive.ubuntu.com/ubuntu lucid-security main restricted
deb http://au.archive.ubuntu.com/ubuntu lucid-security universe multiverse
sudo apt-get install apt-cacher-ng/etc/apt/apt.conf and add the following line (substituting the IP address for the address of your server of course!) Acquire::http { Proxy "http:10.1.1.1:3142"; };sudo vi /root/.synaptic/synaptic.confuseProxy "1";
httpProxy "10.1.1.1";
httpProxyPort "3142";
ftpProxy "10.1.1.1";
ftpProxyPort "3142";
noProxy "";sudo apt-get updatesudo apt-get install openssh-serverIt is not necessary, but I strongly recommend that you set up passwordless ssh logins between the server and the client. The linked guide describes setting up SSH keys between two root users, so you do need to ensure that you configure things correctly for whatever pair of users you intend to use here.
sudo apt-get install sshfssudo modprobe fusesudo adduser username fuse
sudo chown root:fuse /dev/fuse
sudo chmod +x /bin/fusermountsshfs user@host: mountpoint
Eg.
sshfs brett@server: ~/server_home
You can add a path after the colon.
Eg. to mount the "share" directory on the server (ie. /home/brett/share)
sshfs brett@server:/share ~/share
UPDATED: By default, only the user who has mounted the share has access to it. To allow access to root add the following option;
-o allow_root
For all users;
-o allow_other
To mount the share as read only;
-o ro
Eg. to mount the "share" directory on the server as read only and available to all users;
sshfs -o allow_other -o ro brett@server:/share ~/share
And that is all you need to do! Easy Peasy!