Yearly Archives: 2012


ssh tunneling and vnc

vnc is insecure by nature. Thus, use it through ssh tunneling: ssh -L 999:localhost:5900 <—on local host port 999, listen for local connections, and “bind it to remote host’s localhost:5900 (remote host’s localhost = remote host). Now, vnc to localhost port 999. It’ll go through ssh’s port 22.


add people to sudo list

edit /etc/sudoers or whatever softlink it points to. You can do so by: 1. (dangerous way, NOT recommended) chmod the sudoers file. MAKE SURE YOU DO THIS AS ROOT AND NOT SUDO CHMOD, since this will lock you out (sudoers file need to be at 440 permission in order for sudo to work, i.e. once […]