Wednesday, April 9, 2014

Integrating Thunderbird with Google Mail, Calendar, Contacts

First install thunderbird (if not already installed)

sudo apt-get install thunderbird

Then add your existing gmail account

File->Existing Email Account

Now add support for syncing contacts

Tools->Addons

Search for 'google contacts'

Choose 'Google Contacts 0.7.12'

Now add support for calendar:

Search for Lightning, install it

Search for 'Provider for Google Calendar', install it

Follow this tutorial to add your calendar to Thunderbird

https://support.mozilla.org/en-US/kb/using-lightning-google-calendar

Wednesday, February 19, 2014

No password Kerberos authentication (gssapi) with Samba Active Directory

After you have setup your workstation and server to join your samba4 Active Directory DC, you can setup Kerberos authentication to ssh into the server without needing to retype your password (single sign-in)

Just add these lines to the /etc/ssh/sshd_config on the server


KerberosAuthentication yes
GSSAPIAuthentication yes
GSSAPICleanupCredentials yes
UsePAM no





And add these lines to the /etc/ssh/ssh_config on the client





 GSSAPIAuthentication yes
 GSSAPIDelegateCredentials yes








Credential delegation is the magic that passes your password to the server. Voila!

Friday, January 31, 2014

Installing Active Directory client bridge likewise-open on Debian Wheezy

# Grab the Ubuntu source package
wget http://archive.ubuntu.com/ubuntu/pool/main/l/likewise-open/likewise-open_6.1.0.406.orig.tar.gz

# Extract
tar xvzf likewise-open_6.1.0.406.orig.tar.gz
cd likewise-open_6.1.0.406

# Get dependencies
apt-get install -y build-essential  fakeroot  devscripts  debhelper \
    autoconf automake libtool libncurses5-dev  uuid-dev \
    flex bison libpam0g-dev  libssl-dev  libxml2-dev  libpopt-dev pkg-config

mkdir debug
cd debug
../configure
make package

Samba4 Active Directory Domain Controller on Debian Wheezy

#We will use BIND9_DLZ as backend, we need to add a compile flag to bind9

sudo su -l

apt-get install build-essential fakeroot devscripts

#download bind9 src

apt-get source bind9

cd bind9-9.8.4.dfsg.P1

vi debian/rules

#add the following line after  ./configure
--dl-open=yes \

# get the dependencies
apt-get build-dep bind9

#build
fakeroot debian/rules binary

#install
dpkg -i ../bind9-9.8.4.dfsg.P1_<your arch>.deb

#add backports repo

vi /etc/apt/sources.lst

#add the following line to sources.list
deb http://ftp.us.debian.org/debian wheezy-backports main

#install samba from backports (version 4)
apt-get install -t wheezy-backports samba

#check your samba version is 4
samba -V

# provision domain
/usr/local/samba/bin/samba-tool domain provision --use-rfc2307 --interactive

service samba start
apt-get install chkconfig
chkconfig samba on

#setup bind,kerberos, etc
http://wiki.samba.org/index.php/Dns-backend_bind
http://wiki.samba.org/index.php/Samba_AD_DC_HOWTO

Installing ltsp-server in Linux Mint 13 LTS

sudo su -l
apt-get install ltsp-server-standalone

# You need to make a link from Ubunto to LinuxMint since ltsp does not know about Mint
cd /usr/share/ltsp/plugins/ltsp-build-client/
ln -s Ubuntu LinuxMint
ln -s Debian-functions LinuxMint-functions

# You need to tell explicitly which release you are using, you can change the architecture to something #else
ltsp-build-client --arch=i386 --dist=precise


# Follow the rest of the tutorial here
http://www.thefanclub.co.za/how-to/how-create-ubuntu-1104-x64-ltsp-server-32bit-thin-clients

Thursday, January 23, 2014

Boostrap a Debian OpenVZ container in ProxMox



# Setup bridged networking
vi /etc/network/interfaces

# Add the following lines
auto eth0
    iface eth0 inet static
        address 192.0.2.7
        netmask 255.255.255.0
        gateway 192.0.2.254

# Setup proxy for apt-get
vi /etc/apt/apt.conf.d/70debconf

# Add the following line

 Acquire::http::Proxy "http://proxy:8080";