Create a standard SSH keypair by using the ssh-keygen command. When prompted for a passphrase enter one. Copy your ~/.ssh/id_rsa.pub to your destination's authorized_keys file. Now login to your destination from the Terminal with ssh. You will be pleasantly surprised with a pop-up box asking for the password associated with the id_rsa SSH key. It gives you the option to store this password in your Leopard keychain if you wish. This effectively takes place of using a ssh-agent to store SSH keys. Continue reading »
Posts tagged tip
Tip of the Day - freebsd-update
11/12/2007
In FreeBSD 6.2 and later, the freebsd-update command allows you to update binaries of your base operating system.
It has four commands:
fetch - Inspects current system and downloads available needed updates.
Continue reading »Tip of the Day - Shell Shortcut !!
07/20/2007
So you are typing along on the console and press enter to run a command just to have a permission denied message pop-up. You forgot to run sudo. Instead of typing sudo and the entire command over again just type sudo !! and press enter. You will be pleasantly surprised that the command you just ran appears after sudo. All common shells have this quick shortcut. It can be used at anytime and in any commands. Just another little shortcut that makes life a little easier.
Tip of the Day - PostgreSQL, pg_dump, and Upgrading
08/01/2007
When moving or doing an upgrade of a PostgreSQL database that requires you to do a dump of the database, make sure you use the version of pg_dump that matches the version of the PostgreSQL database you plan on restoring the dump to. Different versions of pg_dump will dump the contents of a database in a different order then another version. Thus when restoring a database you will get a number of errors. This is common occurrence between PostgreSQL 7 and PostgreSQL 8. In addition, newer versions will have bug fixes that older versions will not have. Note, the same goes for pg_dumpall.
Continue reading »Tip of the Day - Live Remounting of Filesystems
09/04/2007
If you need to remount a in-use filesystem like / or /usr without rebooting the operating system, use the mount command with the -o remount option.
To remount the root partition using settings found in /etc/fstab.conf run:
Continue reading »Tip of the Day - Listing Installed Packages in Ubuntu
07/21/2007
To list all installed packages in Ubuntu, simply run the following command:
dpkg --get-selections
Thats it.
Tip of the Day - FreeBSD portupgrade
08/04/2008
One complaint I've always had about FreeBSD port's tree is upgrading outdated installed ports. Typically you need to go by hand and uninstall all the dependancies of a port, upgrade the port, and then reinstall all the dependancies. However, there are a few solutions for port upgrade management. The one I like the best is portupgrade that is available in the ports tree under /usr/ports/sysutils/portupgrade.
Continue reading »