Mounting samba permanently

A nice quick and easy one..

Add the following into /etc/fstab, replacing the parts with stars with your information.

//**SERVER**/**SHARE** /mnt/**MOUNTPOINT** smbfs rw,user,username=**USER**,password=**PASS** 0 0

make sure the location /mnt/**MOUNTPOINT** exists, chmodded correctly (eg 666) and then just mount it with:

mount /mnt/**MOUNTPOINT**

Multiple VLANs on 1 network port with Ubuntu / Debian

If you have a network with multiple VLANs and you want to be able to connect on more than one, you can set up virtual nics, one for each vlan.

To do this, you need to install the vlan package:
sudo apt-get -y install vlan

You then need to edit your /etc/network/interfaces to add the additional nics. For each vlan you wish to access, add the following lines, replacing information where necessary:

auto vlan5
iface vlan5 inet static
address 10.5.1.2
netmask 255.255.255.0
network 10.5.0.0
broadcast 10.5.255.255
gateway 10.5.0.1
mtu 1500
vlan_raw_device eth0

Once saved, you can just give your machine a quick reboot and all will be peachy.