Setup NFS-shares for TViX

Quick guide to setup NFS-shares.
Install portmap and nfs-kernel-server if not installed
sudo apt-get install portmap nfs-kernel-server

Deny all traffic outside local network
sudo nano /etc/hosts.allow

mountd: 10.0.1.
statd: 10.0.1.
portmap: 10.0.1.
rquotad: 10.0.1.

sudo /etc/hosts.deny
mountd: ALL
statd: ALL
portmap: ALL
rquotad: ALL

Add shares
nano /etc/exports
/tvixhd1 10.0.*(rw,sync,no_root_squash,no_subtree_check)

For this to work with your TViX you have to make a symlink to a folder in your servers root directory.
sudo ln -s /data/tvixhd-folder/ /tvixhd1

Now we are done. Just restart portmap and nfs-kernel-server with these commands
sudo /etc/init.d/portmap restart alternative service portmap restart
sudo /etc/init.d/nfs-kernel-server
alternative service nfs-kernel-server restart


Setup VPN PPTP

apt-get install pptpd

nano /etc/pptpd.conf

localip 192.168.100.10 (Your servers adress)
remoteip 192.168.100.20-30 (IP-range)

nano /etc/ppp/options

Setup DNS (OpenDNS used below)
ms-dns 208.67.222.222
ms-dns 208.67.220.220

/etc/ppp/chap-secrets

Setup accounts
username pptpd password * (* Stands for all ip-adresses in range)

Make your server forwarding VPN packets
nano /etc/sysctl.conf
Uncomment this line:
net.ipv4.conf.forwarding=1

after your are done with settings above.
reboot your machine

Edit: I read an article where it was told that PPTP is not so secure as i thought. But i think its a good basic security for regular users that want a secure line when using public wifi and lan networks.


Edit transmission config

First reload transmission-daemon

sudo service transmission-daemon reload

Then edit the settings file in the default location /var/lib/transmission-daemon/info/settings.json.

sudo nano /var/lib/transmission-daemon/info/settings.json

when done, reload transmission-daemon once again.

sudo service transmission-daemon reload

And your done!


Change from DHCP to static IP

Edit /etc/network/interfaces

sudo nano /etc/network/interfaces

And change it like this if you want your IP to be 192.168.1.100:
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

When you are finished you have to restart your network to get it to change:

sudo /etc/init.d/networking restart

Install Webmin – web-based interface for Unix

Install Webmin with apt-get on Ubuntu server 11.10
Edit the /etc/apt/sources.list file on your system.

sudo nano /etc/apt/sources.list

add lines below:

deb http://download.webmin.com/download/repository sarge contrib
deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib

Add the GPG key which the repository is signed with

wget http://www.webmin.com/jcameron-key.asc
sudo apt-key add jcameron-key.asc

Proceed the installation and install webmin with apt-get:

sudo apt-get update
sudo apt-get install webmin

When installation is complete you should able to access Webin at the URL below:

 http://localhost:10000/ 

Login with your root account.