Categories
Linux

Show Release Version of Ubuntu

Which Release Version of Ubuntu Do You Have?

Knowing the exact release version allows you to perform upgrades properly and lets you know about known vulnerabilities. The Ubuntu Release Schedule states that 14.04 LTS will be supported until April 2019 but 14.10 will will only be supported until July 23, 2015. Make sure you build your servers with the LTS version so you can get updates for the longest possible period. Here are the commands that tell you what version of Ubuntu you are running, along with example output:
ubuntu-releases

Ubuntu 14.10


user@somesite# uname -a
Linux somesite.com 3.16.0-28-generic #37-Ubuntu SMP Mon Dec 8 17:15:28 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

user@somesite# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.10
Release:        14.10
Codename:       utopic

user@somesite# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.10
DISTRIB_CODENAME=utopic
DISTRIB_DESCRIPTION="Ubuntu 14.10"

Ubuntu 14.04 LTS


user@somesite# uname -a
Linux somesite.com 3.13.0-77-generic #121-Ubuntu SMP Wed Jan 20 10:50:42 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

user@somesite# lsb_release -a
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.3 LTS
Release:        14.04
Codename:       trusty

user@somesite# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.3 LTS"
Categories
Apache Linux

How to Test Apache2 Config for Errors with apache2ctl

If you are making changes to apache, you should check the syntax before reloading the configs. Here is how to apache2ctl:

Categories
Linux

How to Use an SSH Tunnel Through a Jump Host

So, you want to use an ssh tunnel, to get to another ssh tunnel? Here is how to create and use it.

Categories
Hosting Linux

How to Setup NTP on ubuntu

Want to have your server sync to a public time clock so it can keep accurate time? Here is how it’s done:

Categories
Hosting Linux

UFW (Uncomplicated Firewall) Setup

UFW manages iptables in a little bit easier way than actually writing IPtables commands.
This article will give a few examples of UFW usage.