Join Active Directory domain using SSSD on Ubuntu 14.04

Test connection to Active Directory domain and DC dig -t SRV _ldap._tcp.xxx.com.sgdig -t SRV _ldap._tcp.xxx.com.sg | grep -A2 "ANSWER SECTION"   Install Kerberos client and SSSD sudo apt-get install krb5-user sudo apt-get install realmd sssd sssd-tools ntp adclisudo apt-get install samba-common samba-common-bin samba-libs packagekit samba Enter your domain (ALL UPPERCASE) XXX.COM.SG Attempt authenticating with...

My /boot partition is 100% full

/boot partition is 100% full Identify what kernel you are running cd /bootuname -adu -sk * | sort -n Remove unused version sudo rm -rf initrd.img-3.xx.x-xx-genericsudo rm -rf vmlinuz-3.19.0-25-genericdf -hT Now that we have some space on /boot let’s do some clean up sudo apt-get remove linux-headers-x.x.xx-xxsudo apt-get -f installsudo apt-get install autoremove  Now...

Setup iSCSI target and initiator on Ubuntu 14.04

On iSCSI target server  List all NIC cards on the server lspci | grep -i eth   Install iSCSI target sudo apt-get install iscsitarget   Enable iSCSI target at /etc/default/iscsitarget sudo nano /etc/default/iscsitarget ISCSITARGET_ENABLE=true   Use either image file, logical volume, or hard drive to store iSCSI target Create an image file. Example 20GB mkdir /storagedd...

Setup NFS server and client on Ubuntu 14.04

On Server sudo apt-get updatesudo apt-get install nfs-kernel-serversudo mkdir /var/nfssudo chown nobody:nogroup /var/nfs Configure NFS Exports on the server sudo nano /etc/exports /var/nfs 192.168.1.0/24(rw,sync,no_root_squash,no_subtree_check) Create the NFS table and start its service sudo exportfs -asudo service nfs-kernel-server start   On client sudo apt-get update sudo apt-get install nfs-commonsudo mkdir -p /mnt/nfssudo mount 192.168.1.219:/var/nfs /mnt/nfs Verify...

Connect using PPPOE connection on Ubuntu 14.04

Ensure local interface is configured.  sudo nano /etc/network/interfaces # WAN for PPPOEauto eth1#iface eth1 inet dhcp# LAN auto eth0 iface eth0 inet static address 192.168.1.250network 255.255.255.0   Follow the screen after pppoeconf command sudo pppoeconf Say yes on this configure on /etc/ppp/peers/dsl-provider Enter your username (provided by your ISP).Enter your password (provided by your ISP).If...

ddclient for dynamic DNS on Ubuntu 14.04

STEP 1 Install ddclient sudo apt-get install ddclient If you are changing DNS service provider, just reconfigure ddclient sudo dpkg-reconfigure ddclient   STEP 2 Enter required fields. I’m using dynu.com Dynamic DNS service provider: others Dynamic DNS server: api.dynu.com Dynamic DNS update protocl: dyndns2 Username for dynamic DNS service: your-user-name Password for dynamic DNS...

Site to site IPsec VPN behind NAT with Openswan on Ubuntu 14.04

Site A PUBLIC IP (Not behind NAT) conn SiteX-to-SiteX authby=secret pfs=no auto=start keyingtries=%forever ikelifetime=8h keylife=1h ike=3des-md5;modp1024 phase2alg=3des-md5 type=tunnel left= leftsubnet=192.168.1.0/24 leftsourceip=192.168.1.242 # This is required for routing later with static route entry aggrmode=no right= rightsubnet=192.168.32.0/24 dpddelay=10 dpdtimeout=3600 dpdaction=restart Site B VPN server behind NATEnsure that UDP port 500 & 4500...

Site to site IPsec VPN using Openswan RSA key pair on Ubuntu 14.04

Install Openswan apt-get install openswan You may wish to run reconfig in future for change of setting dpkg-reconfigure openswan Below are required for forwarding. Execute line by line sudo vim -c '%s/#net.ipv4.ip_forward=1/net.ipv4.ip_forward=1/gc' -c 'wq' /etc/sysctl.confsudo vim -c '%s/#net.ipv4.conf.all.accept_redirects = 0/net.ipv4.conf.all.accept_redirects = 0/gc' -c 'wq' /etc/sysctl.confsudo vim -c '%s/#net.ipv4.conf.all.send_redirects = 0/net.ipv4.conf.all.send_redirects = 0/gc' -c 'wq'...

Site to site IPsec VPN using Openswan shared secret password on Ubuntu 14.04

Install Openswan apt-get install openswan You may wish to run reconfig in future for change of setting dpkg-reconfigure openswan Below are required for forwarding. Execute line by line sudo vim -c '%s/#net.ipv4.ip_forward=1/net.ipv4.ip_forward=1/gc' -c 'wq' /etc/sysctl.confsudo vim -c '%s/#net.ipv4.conf.all.accept_redirects = 0/net.ipv4.conf.all.accept_redirects = 0/gc' -c 'wq' /etc/sysctl.confsudo vim -c '%s/#net.ipv4.conf.all.send_redirects = 0/net.ipv4.conf.all.send_redirects = 0/gc' -c 'wq'...

xRDP with xfce4 for remote desktop on Ubuntu 14.04

Install xRDP & XFCE4 sudo apt-get update sudo apt-get install xrdp xfce4 Install XFCE4 terminal and icons set sudo apt-get install xfce4-terminal gnome-icon-theme-full tango-icon-theme Configure xRDP on your profile echo xfce4-session >~/.xsession Restart xRDP service sudo service xrdp restart  ...

Scroll to top