Change default kernel in Ubuntu 18.04

I have been asked few times, how do you set specific kernel to be always loaded without manually selecting it either from the menu or avoiding setting it as a number which will differ in next kernel update via GRUB_DEFAULT=2 etc.. Current state of play: root@lab1:~# lsb_release -a No LSB modules are available. Distributor ID:…

virsh – how to get IP of your vm

List all VMs: uvt-kvm listwebserver-xenialorvirsh list –all Id Name State – webserver-xenial shut off If you have uvtool installed you can simply run: uvt-kvm ip NAME_OF_YOUR_VMuvt-kvm ip webserver-xenial 192.168.122.32 For a virsh command we will have to list our networks first to get name and then check dhcp allocation. virsh net-listName State Autostart Persistent——————————————————- default…

An error occurred during the signature verification

when running update on my Ubuntu 16.04 lab i have come across following error:   $ sudo apt-get update Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB] Hit:2 http://archive.ubuntu.com/ubuntu xenial InRelease Get:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB] Get:4 http://security.ubuntu.com/ubuntu xenial-security/main Sources [119 kB] Get:6 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [472 kB] Get:7 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB] Get:8…

lxc autocompletion bash completion when installed via snap

Installed latest lxd via snap $ sudo snap install lxd $ snap list lxd Name Version Rev Developer Notes lxd 2.21 5866 canonical – launched ubuntu $ lxc launch ubuntu:16.04 ubuntu1604 And realized that bash autocompletion doesn’t work when typed lxc exe[TAB] … quick look on-line https://github.com/lxc/lxd/issues/1797 and it seems that /etc/bash_completion.d is is deprecated…

landscape-api

Landscape API To install the package, simply run: $ sudo add-apt-repository –update ppa:landscape/landscape-api $ sudo apt-get install landscape-api To avoid having to pass the access key, secret key and endpoint URL everytime you call landscape-api, you can put them in a file and source it. For example, you can create a ~/.landscape-api.rc file with: #!/bin/bash…

Enable mod_rewrite on Ubuntu 16.04 to work with WordPress

You will need Ubuntu 16.04 server with basic “how to” LAMP stack installation. (5 min how to will be added soon) sudo a2enmod rewrite sudo systemctl restart apache2 sudo vim /etc/apache2/sites-available/000-default.conf   <VirtualHost *:80> <Directory /var/www/html> Options Indexes FollowSymLinks MultiViews AllowOverride All Require all granted </Directory> … … … </VirtualHost> sudo systemctl restart apache2  …

Find Fiber Host Bus Adapter WWN On Linux

  If you are looking for HBA wwn on your server just to do zoning or maybe doublecheck that it matches with what you see on FC sswitch just log in to your LInux box and run following: cat /sys/class/fc_host/host*/port_name Output (amount of lines) will depend on how many ports and cards you have in…

kill multiple processes with awk

 ps aux | grep httpd root       329  0.0  0.0 103236   856 pts/0    S+   12:49   0:00 grep httpd root     30954  0.0  1.0 258980 10744 ?        Ss   10:39   0:00 /usr/sbin/httpd apache   30956  0.0  0.6 258980  6196 ?        S    10:39   0:00 /usr/sbin/httpd apache   30957  0.0  0.6 258980  6196 ?        S    10:39   0:00 /usr/sbin/httpd apache   30958  0.0  0.6 258980 …

Centos 6/RedHat 6 network cards MAC adress

With CentOS 6 everthing is handled by udev now. Go into /etc/udev/rules.d and delete the 70-persistent-net.rules file and reboot. If you open it berfore hand you will most likey see the original NIC MAC listed as eth0 and the new one as eth1. Deleting the file forces the detection process to run again at boot with no…

Gym times

Gym Opening Times Day Opening hours Monday – Friday 6.30am – 10.00pm Saturday 8.00am – 7.00pm Sunday 8.00am – 9.00pm Bank Holidays 8.00am – 8.00pm