Monday, May 18, 2009

Setting up ssh to create a transparent tunnel through a bastion server

You need to ssh into server on given network (or environment) at work.

The 'manual' way:

ssh bastion.server (once you logged in, you login to the actual server you trying to get to)
ssh final.destination.server

An easier way:


ssh -t bastion-server ssh -t final.destination.server

With ssh ProxyCommand:

Edit your .ssh/config:

Host bastion
Hostname bastion.server
User your_username

Host final-host
ProxyCommand ssh -q -a -x bastion nc final.destination.server 22

Note: The bastion server needs the nc command installed for this to work.

Now, you can:

ssh final-host

or

scp somefile final-host:/tmp

Sunday, May 17, 2009

Picasa 3 on Fedora 11

You won't be able to login to your picasa web on Fedora 11 using Picasa 3, unless you install openssl-devel:

yum install openssl-devel

Fedora 11 (Preview Release) on Eee PC 1000

Here's a quick list of the good and the bad of Fedora 11 (Preview Release) on the Eee PC 1000.

The bad:

1. The wireless drivers till have to be downloaded and compiled from http://www.rpmfusion.org

a. Install Repo

su -c 'rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-rawhide.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-rawhide.noarch.rpm'


b. Install drivers (as root):

yum install akmod-rt2860


c. Reboot Eee PC twice. Once to build the drivers (automatically), second to load drivers (automatically).

2. PulseAudio volume control SUCKS!!! You lose control over the different channels and the sound on the Eee PC comes out much slower than usual.

a. The workaround (less than optimal):

alsamixer -c0


3. Mouse clicks with touchpad is disabled by default.

a. The workaround:

On Gnome go to System -> Preferences -> Mouse. Choose the 'Touchpad' tab, and click on 'Enable mouse clicks with touchpad'


The good:

1. Compared to F10, the biggest improvement on my Eee PC 1000 has been suspend/resume feature. It actually works 100% of the time now. And NetworkManager restores the connection really really fast!

2. All other parts of the Eee PC work out of the box.

Tuesday, May 12, 2009

following symlinks with tar

tar -cvfh somedirectory.tar somedirectory/

Note 1: -h allows tar to follow symlink
Note 2: it seems trying to gzip it with -z flag doesn't work when invoking -h
Note 3: This assumes there are symlinks under somedirectory/