Category Archives: Networking

Spy on your users through SSH

You just connected through SSH and are wondering what your users are doing. Do a cat /dev/vcs1 and this will show you what happens on the first console. If someone is typing, you’ll be able to get an output of his keystrokes. Substitute cat /dev/vcs1 with cat /dev/vcs2 or cat /dev/vcs3 and so on for… Read More »

Speed up Samba network access

Dropt these lines into your smb.conf file to speed up Samba access. Find the Global area section and paste them underneath: read size = 65536 read prediction = true socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 Depending on your network card and configuration, this should speed up your LAN transfers at least tenfold.

Umount stubborn devices

We’ve all been there: you want to umount a certain device and you’re being told the resource is still being used. Maybe you forgot to close the Nautilus window or maybe you are still accessing the device from the command line. To find out for sure, use fuser. If, for example, you can’t umount your… Read More »

Accessing Samba shares through SSH

In Linux, you can access Samba shares by using a SSH prompt. We need a host PC (65.219.4.23) and a destination PC (192.168.0.81). We’ll use jack as a username but first we’ll create a new mount directory: mkdir -p /samba/share Now we connect to it: ssh -N -L 139:192.168.0.81:139 jack@65.219.4.23 jack@65.219.4.23 Now we do a… Read More »