This is an issue I encountered in one of my friend's ubuntu 16.04 box. He tried to do kernel update, but the /boot keeps filling up with old initramfs image files, making the update process failed. Then I found a post here, that says that if /var/lib/initramfs-tools is not being cleaned up from old kernel files, /boot will keep on being filled up with old initramfs images. So to clean it up:
Monday, April 8, 2019
/boot Keeps Filling Up On Kernel Update
Friday, March 22, 2019
Rename and Remount LVM Logical Volume
A usual scenario where rename and remount of LVM logical volume are needed, is when you install a box with a CentOS, and use the default LVM based partitioning scheme. This scheme will take 50G for your / partition, and the rest will be allocated to your /home, which is not practical. In this example, we will be remounting logical volume originally mounted to /home, to /var/lib/elasticsearch, renaming it along the way.
Thursday, March 7, 2019
Run an Application with GUI with Docker
There are a few ways to achieve this, like vnc and ssh X forwarding. But in this post, I will show how to run firefox by sharing the .Xauthority file with the docker instance.
Tuesday, February 26, 2019
Install vncserver on Ubuntu 18.04 desktop
In this guide, we will be using tigervnc server
Install the vncserver
$ sudo apt update; sudo apt install tigervnc-standalone-server tigervnc-xorg-extension -y
Setup a password for vncserver
$ vncpasswd
Once you have provided the password, make sure a passwd file is created
$ ls ~/.vnc/
passwd
Run below command to put some settings in ~/.vnc/xstartup, so that gnome will be started when vnc is used
$ cat > ~/.vnc/xstartup <<EOF
#!/bin/sh
# Start Gnome 3 Desktop
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
vncconfig -iconic &
dbus-launch --exit-with-session gnome-session &
EOF
Start a vncserver instance
$ vncserver
List the display to get the port number to connect to, in this example the port number would be 5901, since the display number is 1
$ vncserver -list
TigerVNC server sessions:
X DISPLAY # PROCESS ID
:1 5375
In the client machine, connect with using vncviewer like below, replacing the x.x.x.x with your server's ip number
$ vncviewer x.x.x.x:5901
To terminate the vnc session, use below command to kill the first instance of the vncserver
$ vncserver -kill :1
Friday, February 15, 2019
Install xrdp on Ubuntu 18.04 desktop
P/S: If you are still unable to login using remote desktop client, check whether you have xorgxrdp package installed. If not, install it and restart xrdp. Then try to connect again
$ sudo apt install xorgxrdp -y
$ sudo systemctl restart xrdp