Hotmail losing email

You never got an email you were supposed to get in your hotmail account. Check Options (upper right hand corner’s dropdown) -> More Options -> Rules for SORTING new messages. See if any rules delete emails directly


ssh keys don’t work

After copying A’s id_rsa.pub’s content to destination machine B’s .ssh/authorized_keys if it still for some reason prompts you for password when you ssh from A to B, check B’s home directory permissions. It can’t be group writable. Try 744. (755 also works)


Ubuntu (and other flavors of linux?) disconnects after a while

My ubuntu disconnects after a while (a few minutes), after it working perfectly. I invariably had to do a “/etc/init.d/networking restart”. Not only can I not ssh to it (or vnc via ssh tunneling per my previous post), but existing ssh connections get disconnected with a “broken pipe” error (which tend to just mean it’s […]


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.


sed to remove new line

sed ‘s/n//g’ <–does not work Because sed reads input a line at a time, and thus, won’t see n   See http://backreference.org/2009/12/23/how-to-match-newlines-in-sed/


Mysql: is not allowed to connect to this MySQL serverCsed by foreign host.

If you try to connect from a remote machine to a particular db and get the following: is not allowed to connect to this MySQL serverCsed by foreign host. (connect, as in telnet 3306) Need to set permissions, after logging onto mysql prompt as root: mysql -u root (supply password, if any) GRANT ALL PRIVILEGES […]


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 […]