Search in this blog

Thursday, August 2, 2018

Disable encryption for Ubuntu remote access VNC server

How to disable encryption for Ubuntu's built-in VNC server.
$ sudo apt-get -y install dconf-tools
$ sudo dconf write /org/gnome/desktop/remote-access/require-encryption false
This can be useful if any third-party VNC client can not establish encrypted connection with Ubuntu VNC server. Not secure option.

System startup time in Ubuntu

How to check how long does it takes for Ubuntu to start:
$ systemd-analyze
Startup finished in 5.233s (kernel) + 5.342s (userspace) = 10.575s

Usage examples of find command to search and remove files

Check current directory for *.log files larger than 1Mb:
$ find . -maxdepth 1 -name '*.log' -type f -size +1M
./parallels.log
Check directory tree up to 5 enclosed folders for *.log files larger than 1Mb, and show their size:
$ find . -maxdepth 5 -name '*.log' -type f -size +1M -exec du -h {} \;
1.4M ./parallels.log
 Check directory tree up to 5 enclosed folders for *.log files larger than 1Mb, and remove them forcibly:
find . -maxdepth 5 -name '*.log' -type f -size +1M -exec rm -f {} \;
Or same using the for loop:
$ for i in $(sudo find ./ -type f -name '*.log'); do
       rm -f $i
  done