This simple tutorial shows beginners how to easily wipe files, folder, and/or free disk space to protect your files from recovering in Ubuntu.
As you may know, any deleted files can be easily restored from the trash can. Even after you emptied the trash, files can still be recovered. So to prevent information leakage and protect privacy, you have to ‘wipe’ or ‘shred’ files.
1.) Firstly, open terminal either from system app launcher or by pressing Ctrl+Alt+T on keyboard.
2.) When terminal opens, run command to install nautilus-wipe:
sudo apt install nautilus-wipe
The package adds ability to wipe files, folders, and free disk space via context menu.
3.) Finally restart Nautilus file browser via command to apply change:
nautilus -q
After that, you can right-click on any file or folder to ‘wipe’ or ‘wipe available disk space’.
NOTE ‘wipe available disk space’ will overwrite the free space in your system disk, so your data will not recoverable. And the process can take quite a few minutes slowing down your system.
In addition to protect your privacy, you can use BleachBit to clear caches. As well, the tool offers options to shred files, folders, and wipe free space.
Though it’s not perfect, Global menu is still possible in Ubuntu 20.04, Ubuntu 21.04 with the default Gnome Desktop.
It used to have a Gnome Global Menu extension to enable focused app menus (e.g., File, Edit, View, Help, etc.) in the top panel. It is however discontinued because GTK+ development is blocking the uniform support for the global menu to the Gtk+ applications.
Users can still use Fildem global menu to get the function in Ubuntu 20.04, Ubuntu 20.10, and Ubuntu 21.04, though it does not work with most Gnome Apps.
NOTE: The Extension is NO longer updated! It won’t work in current Ubuntu 22.04 and higher.
1.) Install Fildem global menu extension.
Firstly, open terminal by pressing Ctrl+Alt+T on keyboard. When terminal opens, run commands to install the packages for installing and toggling Gnome Extension:
Or install the package via sudo apt install ~/Downloads/fildem_*_all.deb command.
b.) Open terminal (Ctrl+Alt+T) and run command to edit the .gtkrc-2.0 file.
gedit ~/.gtkrc-2.0
When the file opens, add gtk-modules="appmenu-gtk-module" to the end.
c.) Next edit the .config/gtk-3.0/settings.ini file via command:
gedit ~/.config/gtk-3.0/settings.ini
And also add gtk-modules="appmenu-gtk-module" line to the end. Also, add [Settings] line before it if not exist.
3.) Start Global Menu:
Finally in a terminal window, run command fildem &.
Search for and open Extensions utility. When it opens, click on the gear button to configure the Gnome Extension:
Toggle off ‘Show menu only when the mouse is over the panel’ option.
Change the Button padding as you prefer.
Now global menu should work for apps, e.g., Google Chrome, Chromium, GIMP, Audacious, Shutter, LibreOffice, etc.
Sadly, most Gnome Apps as well as Firefox does not work with global menu. If you intend to get it work with Firefox, install the one from Ubuntu 18.04 repository (all current Ubuntu releases has the latest Firefox packages).
4.) Auto-start Fildem global menu:
To make the function work on startup, search for and open ‘Startup Applications‘ utility. Then click on Add button to add:
Type fildem in command box.
Type Name and Comment as you prefer.
How to Remove Fildem global menu:
To remove fildem package, open terminal and run command:
sudo apt remove python3-fildem --autoremove
And remove the extension via Extensions utility.
To remove the auto-start service, just remove which you created in step 4.
This simple tutorial shows how to add a system tray menu option to switch between Dark and Light system mode in Ubuntu.
By default, the System Settings -> Appearance page offers options to choose Standard, Light, and Dark window colors. It however only apply the app theme.
For system menu, notifications, date and time menu, etc, you have to install user themes extension, and change the Gnome Shell theme individually via Gnome Tweak Tool.
Here I’m going to introduce a new Gnome Shell Extension called ‘Ubuntu Appearance‘. With it, you can toggle fully dark and light mode easily via a few clicks.
The extension features:
Integrate Light, Dark, Standard option into system tray menu.
Toggle fully dark / light mode, not only app window colors but also system theme (e.g., system menu, calendar, notifications.).
Option name vary according to current system mode.
The user themes extension is not required.
Install Ubuntu Appearance extension:
1.) Firstly, open terminal by pressing Ctrl+Alt+T on keyboard. When terminal opens, run command to install required packages:
Don’t see the toggle icon? Click the link ‘Click here to install browser extension’ to install browser extension and refresh the web page.
Once you installed the extension, the option should appear in system menu immediately. Log out and back in or restart Gnome Shell if you don’t see the option.
This is an easy to follow beginner’s guide shows how to encrypt the full file system while installing Ubuntu.
As you may know, it’s easy to hack against Ubuntu Linux physically. Though users can add password protect to the Grub boot menu, the file system is still accessible via a live system, e.g., bootable USB installer.
To prevent your Ubuntu from physical hacking ultimately, adding password protect to the full system disk can be the best choice. And you can do it during installing Ubuntu.
1.) Firstly, this tutorial is not a full Ubuntu installation guide. If you are not getting started, take a look at this step by step how to install guide.
2.) If you’re going to install Ubuntu as the ONLY operating system in the hard drive, just choose ‘Erase disk and install Ubuntu‘ when you’re at Installation type page.
Then click on ‘Advanced features’ to choose either LVM or ZFS and enable ‘Encrypt the new Ubuntu installation for security’.
3.) Mostly I’ll choose ‘Something else‘ to manually create partitions for Ubuntu file system.
Unlike Fedora and Manjaro, Ubuntu does not provide an ‘Encrypt‘ checkbox while creating an EXT4 partition. Instead you need to create a partition use as ‘physical volume for encryption’.
a.) Simply choose the free space and click on ‘+‘ icon on partition table. In the pop-up Create partition dialog do:
Set the size for Ubuntu file system. 20 GB at least. For long time use, as large as possible.
Select use as ‘physical volume for encryption‘.
Set your password and confirm, and finally click OK.
b.) After clicking OK, wait for a few seconds. A new device ‘/dev/mapper/sdaX_crypt‘ will be created as EXT4 file system.
Highlight it, and click on ‘Change‘ button. In the pop-up dialog, set the mount point as /.
c.) Same to Fedora, you have to create a separated /boot partition, as it can not be encrypted.
To do so, select the free space and click “+” to create:
500 MB should be enough. 1 GB will be better.
use as ‘Ext4 journaling file system’
mount point /boot
d.) Also create 250 MB ‘EFI System Partition‘ for UEFI boot machine, or 2 MB ‘Reserved BIOS boot area‘ for legacy BIOS boot machine. For small RAM, a swap area is also recommended.
Finally the partition table will look like:
Finally click on “Install Now” button. And confirm on pop-up dialog.
Once you successfully installed Ubuntu, restart and you’ll get into the password prompt when booting Ubuntu (see the top picture). As well, accessing the file system from any other OS need the password you set.
Unlike laptop lid close action, it’s easy to tell Ubuntu to shutdown or hibernate automatically when reached idle timeout.
In all current Ubuntu releases, including Ubuntu 18.04, Ubuntu 20.04, Ubuntu 22.04, and Ubuntu 24.04 running with the default GNOME desktop, you can enable ‘Automatic Suspend‘ feature in Power Settings easily.
What if you want to power off, hibernate, or even log-out Ubuntu after it reached inactivity timeout? Here’s how to do this in two ways.
Method 1. Run 2 commands to enable Automatic Shutdown / Hibernate:
Firstly open terminal either from system application launcher or by pressing Ctrl+Alt+T on keyboard.
The free and open-source 3D modeling software Blender 2.93 was announced as LTS (Long Term Support) release.
Blender 2.93 is the last major milestone of the 2.x series. And the next Blender 3.0 is under development now.
“Blender 2.93 brings 22 new nodes to the Geometry Nodes editor, mesh primitives support, adds the much anticipated Line Art modifier to automatically generate grease pencil lines around objects, a new and faster fill tool, and many Eevee renderer improvements.”
How to Install Blender 2.93 via PPA:
Blender is available officially via Snap package, which can be easily installed from Ubuntu Software.
For those prefer the classic .deb package format, Rob Savoury’s PPA maintains the latest packages for all current Ubuntu releases.
1.) Remove Thomas Schiex’s PPA
If you installed old Blender packages from Thomas Schiex’s PPA, it’s better to remove it first to prevent from going to dependency hell!
Note purging Ubuntu PPA will either downgrade or remove packages installed from that PPA. Even other packages, GIMP in my case, will be removed.
You can alternatively remove these Ubuntu PPAs only, without uninstalling software packages, by going to ‘Software & Updates -> Other Software’ and removing relevant lines:
Since version 89, the free and open-source Firefox web browser makes use of the new ‘Proton’ UI design.
For those who do not like the new Firefox appearance, the configuration options to re-enable the old style interface is still available in the 89 release.
Revert to old UI Design in Firefox 89:
Firstly, type about:config in the address bar and hit Enter. Click on the ‘Accept the Risk and Continue‘ button when it prompts.
Next type browser.proton in the search box. Then click on the double arrow icons to disable the values of:
browser.proton.contextmenus.enabled
browser.proton.doorhangers.enabled
browser.proton.enabled
browser.proton.modals.enabled
The Firefix UI will change immediately after the settings. And you can reset these settings to get back the new ‘Proton’ UI design.
In addition, the previous settings is going to be removed in next release according to this bug. So using a browser theme could be a good choice for long time solution.
Working with PDF files regularly in Ubuntu Linux? QPDF Tools is a nifty tool to manage your PDF documents.
It’s a free and open-source software, easy to use Qt based user interface for Ghostscript and Stapler, with ability to compress, split, merge and rotate your pdf documents.
The main window is simple and works with 4 buttons. Click the action you want to do for the PDF documents. Then select the PDF along with a few options and click the button to go.
The Compress a PDF file option will change the resolution for printing, Ebooks, or screen optimized. It also reduce the file size depends on the option you choose.
It however may stuck a few seconds when you clicking ‘Save‘ button on exporting file dialog.
While ‘Merge PDF files‘ option allows to add multiple PDF files, arrange them, and convert them into single, the ‘Spile a PDF file‘ option allows to extract all PDF pages or export from one page to another. And ‘Rotate a PDF file‘ can rotate left or right with live preview.
How to Install QPDF Tools:
The DEB package for Ubuntu, Debian, Linux Mint, as well as the source tarball are available to download at the link below:
The software developer also maintains an Ubuntu PPA that support all current releases, e.g., Ubuntu 18.04, Ubuntu 20.04, Ubuntu 20.10, and Ubuntu 21.04. The packages for old releases, e.g., Ubuntu 12.04, Ubuntu 14.04, and Ubuntu 16.04 are also available.
1.) Open terminal from system app launcher. When it opens, run command to add the PPA:
sudo add-apt-repository ppa:silash35/qpdftools
2.) Then refresh package cache (optional for Ubuntu 20.04 & higher) and install the tool via commands:
sudo apt update
sudo apt install qpdftools
Once installed, open the tool from your system application launcher and enjoy!
Uninstall QPDF Tools
While the Ubuntu PPA is used to install or upgrade the software package, you can safely remove it either by running command in terminal:
This simple tutorial shows how to install the NVIDIA proprietary driver in Ubuntu 22.04 and switch between dedicated and integrated GPU.
Since Ubuntu provides the proprietary driver packages via its restricted repositories, user may install NVIDIA driver as easy as a few clicks.
Install NVIDIA Driver
1.) Firstly, click on top-left corner ‘Activities‘, and then search for and open ‘Softwre & Updates’ utility.
When the tool opens, make sure the “Proprietary drives for devices (restricted)” is enabled.
Make sure ‘restricted’ repository enabled
2.) Next, navigate to ‘Additional Drivers‘ tab. There it should list all available graphics drivers.
If it shows nothing, press Ctrl+Alt+T to open terminal and run command sudo apt update to refresh package cache. Then re-launch the ‘Software & Updates’ utility.
Choose one of the drivers from the list and click on ‘Apply Changes‘ to install it. There will be a little bar indicates the installing process. When done, restart your computer!
Switch between NVIDIA and Intel Graphics:
After restart, your machine will be on performance mode with the dedicated GPU. To switch GPU mode, search for and open ‘NVIDIA X Server Settings‘.
When the app opens, navigate to ‘PRIME Profiles‘. Then you’ll see three options available in the right:
NVIDIA (Performance Mode) – use dedicated NVIDIA GPU to render Ubuntu desktop.
NVIDIA On-Demand – use integrated graphics to render desktop, but possible to offload specific apps via dedicated GPU.
Intel (Power Saving Mode) – use integrated graphics to render Ubuntu desktop.
In my case, the “Intel (Power Saving Mode)” is somehow grayed out. As a workaround, choose Intel graphics card by running sudo prime-select intel in terminal.
Changing GPU mode however needs log out and back in to apply changes.
Run certain apps via NVIDIA GPU while rendering desktop via integrated graphics
By setting GPU mode to “NVIDIA On-Demand”, you may run certain apps via NVIDIA GPU, while others handled by the integrated GPU.
1.) For CUDA apps, you need to run command in terminal (Ctrl+Alt+T) to install the nvidia-cuda-toolkit package.
sudo apt install nvidia-cuda-toolkit
Then there’ll be application-specific menu to tell it which device to use.
2.) For other apps, just use the following environment variables.
To make it easy to switch between your GPUs, there’s a Gnome Extension available to add options into system tray menu.
1.) To get the menu option, you need to first install the open-source EnvyControl tool. Press Ctrl+Alt+T on keyboard to open terminal, and run the command below one by one:
NOTE 1: The pre-installed Firefox does not support this stuff so far! Use another browser, or install back Firefox as classic deb package.
NOTE 2: If you don’t see the on/off switch in that page, click the ‘click here to install browser extension‘ to install extension for your web browser and refresh the page.
The menu option should appear immediately after successfully installed the extension. If not, press Windows (Super) key on keyboard or click “Activities” on top panel, and then search for and open the “Gnome Extensions” app to manage your extension.