Category Archives: System Administration

Add Ubuntu 14.04 to Samba or MS AD Domain [Depreciated]

I no longer use the crippled PBIS software, I use the native Linux software which gives far better functionality.

A better way of Joining an Ubuntu Machine to Samba with Winbind

This was the third part of a series of howtos showing how to setup and use Samba4 as a drop in for MS Active Directory Server. The first part Samba4 AD DC on Ubuntu 14.04 is here. The second part in this series take a look at Administering AD DC via Windows.

In this part we will connect a Linux machine to the domain and then login with users configured with Active Directory. Therefore domain users will always have the same UID and GIDs regardless of the machine they log into.

Active Domain details

  • AD DC host: lab-addc1.dragon.lab
  • ip address: 10.1.200.3
  • Domain: BLACK
  • Realm: BLACK.DRAGON.LAB
  • netbios name:LAB-ADDC1

To create desktops I used my normal install method, starting with a minimal server and then adding MATE and other packages as required.

Continue reading

DNS with bind9 and DHCP on Ubuntu 14.04

Updated for Ubuntu 14.04-3 LTS. If you are a home user and your network has grown such that you are tired of using all static IP addresses and having to configure the /etc/hosts files by hand, then use the great tool dnsmasq. See my How to set up dnsmasq. Dnsmasq is so much simpler to setup and maintain than bind9.

Continue reading

Make the SWAP Space Span 3 disks With Stripping.

Once the system is installed do not forget to configure the priority of the swap spaces. If the priority is set correctly then all your swap spaces will be used as it they are stripped making it faster.

To see the current swap space setup use the command :

swapon -s

Continue reading

Simple anti-spam Measure for Email

I use a very simple system with my incoming email addresses that reduce spam to almost zero.

If you have your own domain or if your ISP allows you to setup aliases/forwrding to your real email address it is simple.

Whenever you deal with a new company, set-up a new email address. Whenever you have to open an account with a company say its called spammers inc. 🙂 After all most, if not all companies only want your details to spam you with marketing or pass your details on for a profit. Anyway, create a forwarding address to your real email address called from_spammers_inc@yourdomain.co.uk If you later start to get junk mail from anyone other than spammers inc on that address you know they have passed your email address on.

Continue reading

Installing and Configuring ssh

I install openssh server and sort out the configuration of ssh so I can login to other machines locally without a password. This is a security risk! I also want to use Xwindows programs installed and run on one machine while actually running on another, hence the ForwardX11 bit. Also considered a security risk by some.

Continue reading