A collection of 82 posts

Change shell Ubuntu

change shell bash ubuntu

Sometimes you might create a new user without specifiying the necessary arguments, resulting the shell for that user being something other than the default bash shell you're used. This often provides you with a $ prompt. To change the shell type for a particular user

Mount NFS share Ubuntu

mount nfs share ubuntu

To mount an NFS share in Ubuntu you need to install nfs-common: sudo apt-get install nfs-common Next, create the directory to which you would like to mount the share: sudo mkdir -p /nfs/general Finally, run the mount command replacing NFS_SERVER_IP with

Setup Tomcat 8 with Nginx on Ubuntu

tomcat8 Nginx ubuntu

Setting up Tomcat 8 with Nginx is very straight forward. sudo nano /etc/nginx/sites-enabled/default Search for the following text with CTRL + W location / And add the following line of code after 'try_files $uri $uri/ =404;' proxy_pass http://127.0.

Setup LetsEncrypt with Nginx on Ubuntu

letsencrypt certbot Nginx ubuntu

The first step is to add the certbot repo: sudo add-apt-repository ppa:certbot/certbot Next, update the package list: sudo apt-get update Next, install Certbot's Nginx package: sudo apt-get install python-certbot-nginx Next, request the certificate for your domain(s) you want secured: sudo certbot

Install .NET Core on Ubuntu

ubuntu dotnet ASP.NET core .net Install

Microsoft has really come to the party over the last couple of years with support for Linux, which is wonderful to see! To install .NET core on Ubuntu you can follow these steps: Register the trusted Microsoft signature key curl https://packages.microsoft.com/

Split large files Ubuntu

file ubuntu linux split large parts

If you're working with large log files and you're not comfortable using vi or vim then you might want to split your log/text file into multiple parts based on the number of lines per file. You can run the following command to split

Change/update hostname Ubuntu

change ubuntu hostname

To change the hostname of an Ubuntu machine you can run the following commands: sudo hostname your-new-name This will only update the hostname when the service or machine is restarted. To restart the service run: sudo service hostname start Also ensure you change your

Install Tomcat 8.5 Ubuntu

Install ubuntu tomcat service

Before installing Tomcat, ensure that Java is installed. You can follow this post to install Java 8. The first step is to run Tomcat as a user without root privileges. sudo groupadd tomcat sudo useradd -s /bin/false -g tomcat -d /opt/tomcat tomcat

Mount qcow2 image Ubuntu

mount qcow2 ubuntu image nbd edit

The first step to mounting your qcow2 image is to enable nbd (network block device) on your machine: sudo modprobe nbd max_part=8 The next step is to connect your qcow2 file as an nbd device: sudo qemu-nbd --connect=/dev/nbd0 /home/kvm/

Install Ghost Ubuntu 17.04

ghost Install ubuntu 17.04 Nginx ssl ghost cli

The vast majority of blogs online are powered by wordpress, though a sneaky little competitor is gaining steady traction: Ghost :) To install Ghost on Ubuntu 17.04 follow these steps: First update and upgrade Ubuntu with the following commands: sudo apt-get update sudo apt-get

You've successfully subscribed to Base 64!
Could not sign up! Invalid sign up link.