Terminal – Get file or folder permission in octal numerical format

Often with GNU Linux you will be asked to change the permissions of a file or folder via the terminal using chmod as below. For a file: chmod 644 my_file or for a folder: chmod 755 my_folder However, when you want to check a file or folders permissions in this octal numerical format ls is not going to help you. To view the octal numerical format permissions of a file or folder you can use the command below. For a file: stat -c "%a %n" my_file or for a folder: stat -c "%a %n" my_folder ...
Read More

Increase GNOME screencast duration

Among the features of GNOME 3 is an embedded screen recorder. Link: GNOME screencast One restriction is the fact it has a default recording duration of 30 seconds. Do not worry as we can adjust this. Note: We will be increasing the duration to 60 minutes. Open a terminal and enter: gsettings set org.gnome.settings-daemon.plugins.media-keys max-screencast-length 7200 For other durations greater than a minute, use formula: 60 * number_of_minutes....
Read More

QXL graphics memory – How to add more

Running Debian 9 GNOME desktop as a virtual machine under virt-manager is great. A limiting factor for certain scenarios is the default QXL graphics memory of 16MB. My scenario for needing more graphics memory was online video. With this 16MB default, video is choppy, stop/start and not smooth at all. It is not possible to increase graphics memory under virt-manager, so it must be done on the command line. Note: This tutorial assumes you have sudo configured. To edit a virtual machine we use virsh in the form of: sudo virsh edit domain Here is where most get confused, even me until I read up. domain is actually the name of the virtual machine you wish to edit. I think someone got creative here and forgot K.I.S.S when naming was done. So lets edit the virtual machine we want to increase the graphics memory in. sudo virsh edit debian_9x_gnome_x86_64 Note: The first time you edit, you will most likely be asked to choose your editor of choice. Do...
Read More