Ubuntu 20.04 – DHCP & DNS Server

Uncategorised
OK, now most of the hosted services have been moved off-prem, its time to build a new office server to run the place! One of the first things after installing the latest Ubuntu it DHCP/DNS ... Assigning Static IP: In Ubuntu 20.04 LTS server, network configuration is controlled and managed by the netplan utility. During installation, cloud-init configures a dynamic IP to interface on server if the dhcp server is available. so, to configure a static IP, first we must make sure and confirm that network interface is not managed by cloud-init. Check that the file “/etc/cloud/cloud.cfg.d/subiquity-disable-cloudinit-networking.cfg” does not include an entry “network: {config: disabled}”: sudo cat /etc/cloud/cloud.cfg.d/subiquity-disable-cloudinit-networking.cfg If not, add it manually. sudo echo 'network: {config: disabled}' >> /etc/cloud/cloud.cfg.d/subiquity-disable-cloudinit-networking.cfg Use “ip addr show” command to view IP address and interface details: Installing Bind9…
Read More

Ubuntu 18.04 – MySQL and phpMyAdmin

Linux, Uncategorised
Introduction This follows on from the recent post to set up Apache2 on Ubuntu 18.04 Step 1 — Installing MySQL Now that you have your web server up and running, it is time to install MySQL. MySQL is a database management system. Basically, it will organize and provide access to databases where your site can store information. Again, use apt to acquire and install this software: sudo apt install -y mysql-server Step 2 — Securing MySQL When the installation is complete, run a simple security script that comes pre-installed with MySQL which will remove some dangerous defaults and lock down access to your database system. Start the interactive script by running: sudo mysql_secure_installation This will ask if you want to configure the VALIDATE PASSWORD PLUGIN. Note: Enabling this feature is something of a judgment…
Read More

Ubuntu 18.04 Apache2 with PHP

Linux, Uncategorised
Introduction When you first create a new Ubuntu 18.04 server, there are a few configuration steps that you should take early on as part of the basic setup. This will increase the security and usability of your server and will give you a solid foundation for subsequent actions. Step 1 — Setting Up a Basic Firewall Ubuntu 18.04 servers can use the UFW firewall to make sure only connections to certain services are allowed. We can set up a basic firewall very easily using this application. Different applications can register their profiles with UFW upon installation. These profiles allow UFW to manage these applications by name. OpenSSH, the service allowing us to connect to our server now, has a profile registered with UFW. You can see this by typing: ufw…
Read More

Latest Virtual Box Guest Additions Script

Linux, Uncategorised
Ok, so I got sick of looking up the details when was building a new server ... so I did it once and wrote a new script for the guest: !/bin/bash sudo apt install -y linux-headers-$(uname -r) build-essential dkms mkdir -p /media/cdrom mount /dev/cdrom /media/cdrom cd /media/cdrom ./VBoxLinuxAdditions.run cd ~ umount /dev/cdrom
Read More