Skip to main content

Posts

Showing posts with the label ubuntu

Ubuntu upgrade from 18.04 lts to 20.04 lts

The latest version of Ubuntu is 20.04.lts and is named as “Focal Fossa”.  To start with the upgrade the first and foremost thing is to backup  the server . The rest procedure is as follows: The current os version can be recorded from /etc/os-release file. Once done with backup we need to update all packages of ubuntu 18.04  to latest by running  the command sudo apt update After successful update just upgrade all the installed packages to latest using  the command sudo apt upgrade Now remove all unused old kernels  as they wont be used any further removing them might help us clear some space on the disk. sudo apt --purge autoremove Install update-manager-core package if not already installed. Now upgrade the system to latest lts. sudo do-release-upgrade If you come across an output like this : Checking for a new Ubuntu release There is no development version of an LTS available. To upgrade to the latest non-LTS development release   set Prompt=normal...

Ubuntu Xrdp installation with Mate Desktop

The process for installation of Mate Desktop along with Xrdp on Ubuntu is as follows:  1. Update Repository      sudo apt update 2. Upgrade Ubuntu         Note: If asked to override PAM configuration, select No (and make         sure to select correct boot drive if requested)      sudo apt upgrade 3. Set iptables rules      sudo iptables -A INPUT -p tcp --dport 3389 -j ACCEPT      sudo iptables-save | sudo tee -a /etc/iptables/rules.v4      sudo reboot 4. Install xrdp and Mate Desktop      sudo apt install libgl1-mesa-dri fonts-dejavu mate-session-manager \      mate-panel marco caja mate-terminal mate-applet-brisk-menu \      mate-dock-applet mate-indicator-applet mate-indicator-applet-common \      ubuntu-mate-icon-themes mate-applets-common plank \      mate-hud mate-menu mate-apple...

Apache2 installation on Ubuntu 18.04 lts

Update your system to the latest using below mentioned commands. sudo apt update sudo apt upgrade Installing Apache 2 server Once the system is updated with latest patches , we can install Apache 2 software using   the following command   sudo apt install apache2 Enabling the apache2 service To check if the service is enabled sudo systemctl is-enabled apache2.service If not already enabled we can use the systemctl commmand  as follows: sudo systemctl enable apache2.service Start/Stop/Restart commands for apache2 service: sudo systemctl start apache2.service sudo systemctl stop apache2.service sudo systemctl restart apache2.service To check the status of service: sudo systemctl status apache2.service If you are using ufw firewall we need to open a few ports to access  the apache server using following commands : sudo ufw allow 80/tcp   sudo ufw allow 443/tcp   After opening the ports same can be verified as: sudo ufw status The last step after going thr...

PostgreSQL and pgAdmin4 installation on Ubuntu 18.04 LTS

PgAdmin4 is an open source PostgreSQL management tool  designed for multiple PostgreSQL database versions. It is a  tool   written in python and jquery and can be installed on  Windows, Mac, and Linux. It provides multiple deployment models, can be installed as a desktop application or a server  application running behind the webserver such as Apache2. We're going to install and configure   P gAdmin4 in   'Server Mode' on Ubuntu  18.04 server.  Pre-requisites: root user / sudo  access.  PostgreSQL installation on Ubuntu 18.04 Server To install the PostgreSQL database from the official repository, add the Postgres  key and repository by running following commands wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc \  | sudo apt-key add - sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`- pgdg main" >> /etc/apt/sources.list.d/pgdg.list' Update the system sudo apt update I...