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:
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.
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.
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:
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 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.
Important: If you forget the password, all data will be lost! No way to reset forgotten password.
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:
DO LEAVE 500 MB free space for /boot partition, and a few GB for Swap area if need.
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.