Linux Issues

Zsh Making Shells Fun

ZSH is a great looking shell that integrates with Git, Docker and other tools using plugins.

Installing ZSH in Ubuntu or Linux Mint

Install ZSH by running the following in your terminal

sudo apt update
sudo apt install zsh

Check ZSH by running zsh --version and checking that a version is shown.

Installing ZSH on Mac

Install Homebrew, then install iTerm2, which allows for further customisation.

brew cask install iterm2

Continue reading

Converting Heic To Jpg In Linux

With each revision of hardware, Apple continually makes this more difficult for those that have to interact with Apple fans. One of the most annoying is the HEIC format for photos. Even Apple’s own Photos app in iCloud won’t allow HEIC photo uploads, so to make any of these photo useful the HEIC files need to be converted to JPEG form (.JPG).

Normally people take a lot of photos, so the conversion of the files is best done in bulk. Here are some tips for dealing with these bulk files.

Continue reading

Ubuntu Change Lid And Button Actions

The Ubuntu Settings app is very light on when looking at the power button and lid actions, excluding most of the options a Windows user has to change the customise button/lid actions between AC Power and battery power operation.

Fortunately there is an easy command line tool that allows these settings to be changes easily within the Gnome environment, gsettings.

To list all the available power options, open a terminal and type in

Continue reading

Create An App Icon For A Website In Linux

Linux Mint provides a little tool called Web Apps. This tool allows a web site to be sandboxed into a separate window, making a website look like an app.

This can be handy for a site like Google Messages for using phone SMSes on the PC, allowing this to be shown in its own distinct window rather than just another browser tab. Another example would be Clockify which, while a native Debian package is available, isn’t in standard package repositories and may have dependencies that aren’t installed on the system.

Continue reading

Ubuntu Account Creation

To create a new user account in Ubuntu, replace new_user with the username you want to add in the follow commands.

sudo -i

An interactive root session avoids a lot of sudo prefixes.

adduser new_user

will create the user account, prompting you for user details and a password.

usermod -a -G www-data new_user

will add them to the www-data group, such as for web admins. Replace www-data with the groups they should be a part of.

Continue reading

Find Node Js Instance On A Server

To track down Nodejs processes running on a server first run

netstat -lt 

to list the ports that applications are listening on. This may show port 31044 is listening, for example.

Next, find the processes that are listening on those ports with

netstat -anp 2> /dev/null | grep :31044

This may return a process id like 7392/server.js - then look up the details of this process id with

Continue reading

Debian, Ubuntu, Mint: Mount A Windows Network Share

To mount a Windows share using the command line in a Debian based distribution, first ensure that cifs-utils is installed. If it isn’t, run

sudo apt install cifs-utils

To mount a share, run

sudo mount -t cifs -o username=userName,domain=DOMAIN //serverName/shareName /mnt/path

replacing userName, DOMAIN, serverName and shareName and the mount path as appropriate. If the Windows workstation/server is not part of a domain, the domain parameter can be omitted.

Continue reading

Logitech G Keyboard Leds In Ubuntu

Logitech provide the Logitech G software for managing LEDs and other settings on keyboards and mice. Unfortunately this isn’t available for Linux.

There is a command line tool called g810-led that can fill this gap (https://github.com/MatMoul/g810-led). To install this on Ubuntu run:

sudo apt install g810-led

After installation you will probably need to reboot for the software to recognise the keyboard.

To list the keyboards that the software can see run

Continue reading

Create A Php Ubuntu Dev Environment In Windows 10

Initial WSL, Ubuntu, Apache, PHP and MySQL installation

Windows Subsystem for Linux allows a development environment to be set up locally without the need for virtual machine hosts.

First, install the WSL feature. Click Start , type ‘Windows features’ and click the Turn Windows Features On or Off item. Tick the Windows Subsystem for Linux option and click OK. The feature will be install, then you will need to restart the PC.

Continue reading

Permanently Wipe A Pc

Disposing of a PC, selling it on or giving it away leaves a security risk if the drive isn’t wiped of old data.

Often this can be done easily with an application like MiniTool Partition Wizard for Windows, easicially if you are able to plug the drive into another PC, or are just dealing with an external drive.

There are times, though, when a drive needs to be wiped and there is no OS on the PC, or you need to deal with a RAID controller or SAS drive or other hardware that can’t easily be swapped into a working PC.

Continue reading