AntiVirus - scan your system for viruses.
File Search - a file and folder search utility.
Timeshift - a System Restore utility.
Timeshift - Creating a Restore Point.
Timeshift - Restoring a backup.
VirtualBox - use a virtual environment to run other operating systems within Linux Lite.

General Information

This page is a work in progress. Over time more tutorials will be added to it. Some of them may deal with software that is already included in the standard Linux Lite installation. Many will be for software that needs to be installed first because it is not part of the standard installation.

What you will see when installing from Menu, Settings, Lite Software.

Lite Software below. Learn how to use it here.

What you will see when installing from Menu, System, Install/Remove Software (Synaptic Package Manager).

The Synaptic Package Manager below. Learn how to use it here.

Top of page

AntiVirus

Viruses can occur on any computer system. The following tutorial is a collection of commands that allows you to scan your entire system for viruses.

Install the virus scanner:

Terminal Command:
						sudo apt-get install clamav clamav-daemon

Download the latest virus definitions:

Terminal Command:
						sudo freshclam

If you get the following error in your terminal:

Terminal:
						ERROR: /var/log/clamav/freshclam.log is locked by another process

Run the following command in your terminal:

Terminal:
						sudo rm -rf /var/log/clamav/freshclam.log

Then run the following command again in your terminal:

Terminal Command:
						sudo freshclam

Once your virus database is up to date, proceed to scan your system for viruses:

Terminal Command:
						sudo clamscan -r -i / | grep FOUND >> /home/youruser/virus-scan-report.txt

Where youruser is your username.

The scan will take anywhere from several minutes to several hours, depending on how many files there are to scan.

To just scan your home folder, run the following:

Terminal Command:
						clamscan -r -i /home/youruser/ | grep FOUND >> /home/youruser/virus-scan-report.txt

Where youruser is your username.

When the scan has finished, open the virus-scan-report.txt in your home folder and look to see where any viruses may be residing:

You can then go into the folder where the virus was found and delete it.

Be sure to run the following command in your terminal before running a new virus scan to ensure your virus definitions are up to date:

Terminal Command:
						sudo freshclam

Then run your new virus scan.

Top of page

Timeshift

TimeShift is a system restore tool for Linux. It provides functionality that is quite similar to the System Restore feature in Windows or the Time Machine tool in MacOS. TimeShift protects your system by making incremental snapshots of the file system manually or at regular automated intervals.

These snapshots can then be restored at a later point to undo all changes to the system and restore it to the previous state. Snapshots are made using rsync and hard-links and the tool shares common files amongst snapshots in order to save disk space. Now that we have an idea about what Timeshift is, let us take take a detail look at setting up and using this tool.

Go to Menu, System, Timeshift.

Enter your password.

Timeshift supports 2 snapshot formats. The first is by using Rsync and the second is by using the in-built features of BTRFS file system that allows snapshots to be created. Most peoples choice will be Rsync unless you chose the BTRFS file system during your Linux Lite installation. Select Rsync and click on the Next button.

The next thing to do is select your snapshot location. You can choose to have your snapshots on your local disk or on an external storage device. Wherever you choose, make sure you have at least 100Gb plus of spare storage. An external hard drive is an wise choice. In the following example, sda5 is our backup location, sda1 is our Linux Lite partition. Click on the Next button.

Timeshift allows you to create snapshots on hourly, daily, weekly, monthly or on boot basis. So you can select the frequencies you want and the number of snapshots to keep.

Click on Finish to complete your setup.

Creating a Restore Point

Creating a snapshot is simple. Just click on the Create button and your first snapshot will be created. Depending on what should be included or excluded from the snapshots, it will take several minutes for the process to complete.

You can add comments to your snapshots so you can have a description of the snapshot.

Settings, Filters

You can also specify Filters to include or exclude files or directories from the snapshots. TimeShift is designed to protect system files and settings. User data such as documents, pictures and music are excluded by default. This prevents you from overwriting your documents when you restore a snapshot or using all of your storage to backup media (pictures, music, and video) files. We recommend you use the Backups application in the Accessories menu for your home folder backups, and use Timeshift for system backups, the choice is yours.

Clicking on the Summary option under Filters will show you what is included and what is not.

Restoring a backup

Restoring a Backup is as simple as selecting the snapshot you wish to restore and clicking on the Restore button.

Next you will select your target device where files will be restored. You will have to specify your root device and whether or not to keep the boot and home files on the root device or on another partition.

You then specify the Bootloader Options as to whether or not to reinstall GRUB2, to update or not intramfs and the Grub Menu.

Timeshift will then simulate a Restore by performing a 'Dry run'. This takes place to ensure the Restore process runs without error.

On the Confirm Actions window click on Next.

The next window is a Warning dialogue that gives you a summary of the Restore process. Click on Next.

The Restore process begins. This may take some time.

‚ÄčThe snapshot will be applied and then your computer will restart to complete the process.

Many thanks to Mohd Sohail of LinuxAndUbuntu.com for help with this tutorial.

Top of page

VirtualBox

The VirtualBox application allows you to run other OS's (operating systems) within your main OS by creating a container of sorts for them to run in, independently from the main OS. You install other OS's to VirtualBox just like you would to a normal hard drive. VirtualBox creates a virtual hard drive for you to install to and the result is referred to as a Virtual Machine (VM).

You can install to VirtualBox using a bootable CD or DVD. Even more conveniently, you can install using a downloaded ISO file without the need to burn it first to a CD/DVD. You can also just boot ISO files and run them as a live environment - just as you would booting your computer from a live CD/DVD/USB - without installing it if you prefer.

Some common uses for VirtualBox are:

- Install a second copy of your main OS for testing and experimentation.
- Install other Linux distros that you want to use regularly, but do not want to install as a dual-boot on your computer.
- Install, or just run live, other distros for testing purposes.
- Install Windows so you can run its programs within Linux without rebooting the computer.
(Note: Microsoft considers that to be a separate installation of its software and requires another user license for that.)

Installing VirtualBox

To install VirtualBox, go to Menu, Settings, Lite Software and find it from the list of software to install. VirtualBox will take a couple of minutes to fully install, so just wait until the screen tells you it is done.

After installation is complete, you will find VirtualBox under both the Accessories and System sections of the Menu.

VirtualBox does not come pre-configured to use USB sticks. You need to download an extra package for that from their website. Go ahead and start VirtualBox, then follow the steps below to install what you need for USB support.

NB: Version numbers for VirtualBox - Please note that new versions are being released regularly, the information here is provided as a guide only. The latest version number of VirtualBox will change with time.

You need to know the version number of your VirtualBox installation in order to download the matching "Extension Pack". In this example, our version is 5.2.8; but double-check that by clicking Help, About VirtualBox from the main VirtualBox window. Then look along bottom of pop-up window for the version number.

For the latest version, go to this VirtualBox webpage. Otherwise, go here, look for your version number and follow same steps as below to continue.

Find the Extension Pack listed under the heading for your VirtualBox version and click on All supported platforms to download it. Save the download to your Downloads folder.

Once downloaded, in VirtualBox main window, go to File, Preferences and click Extensions on the left side.

Look to the right side of the window and you will see two icons. Click the top right + button.

vbox-06.png

It will open your Downloads folder. Click to highlight the extension pack you just downloaded. Click Open to install it to VirtualBox.

A window will appear confirming that you want to install the extension pack. Click Install, then scroll down the license agreement and hit I Agree to the terms of use.

Enter your password when asked for it and finish the installation. When complete, you will see the extension pack added under Extensions in the VirtualBox Preferences, (VirtualBox main window: File, Preferences).

Using VirtualBox

VirtualBox can boot from either a live CD/DVD or an ISO file saved to your hard drive (HDD). In the following example we'll use a downloaded ISO file. If you are using a bootable CD/DVD, go ahead and load it into the tray before we get started.

From main VirtualBox window, click the New button to make a new virtual machine environment.

Next, choose a Name for the virtual machine, the Type of operating system it will be, and Version of the operating system. When filling in version, specify either 32 or 64-bit system and choose the closest fit for the OS you will be installing if you don't see a listing that matches exactly under the Version drop-down box.

In this example, we will make a new machine for another Ubuntu-based distro called Xubuntu and we are using its 32-bit version. There is no listing for Xubuntu, so we'll just choose Ubuntu (32-bit) because that is what it is based on. (If you made a virtual machine [VM] with Linux Lite installed, you would also choose Ubuntu for the same reason.) Click Next to continue.

Decide how much of your RAM (memory) you want dedicated to operating the VM. 512MB-2GB will likely be fine most of the time. Do not dedicate more than half of your RAM to the VM - that could cause problems with the operation of your host OS, Linux Lite. (The VM is operating from within the host OS - you don't want the VM using more resources than the host itself.) In this example, the computer (host) has 8Gb of RAM, so 1024MB (1Gb) was allotted to the VM.

The next screen asks if you want to Create a virtual hard disk now. That is what we want, so we tick that radio button and click Create.

We'll choose VDI (VirtualBox Disk Image) from the Hard disk file type screen.

We'll choose Dynamically allocated from the Storage on physical hard drive screen.

On the next screen we make the virtual drive 10GB. (VirtualBox will dedicate space from your hard drive for the virtual drive - so be sure you have enough room on your HDD to accommodate creating the virtual drive.)

After hitting Create your new VM will be listed along the left-hand side of the main VirtualBox window. (At this point, it is just an empty container.)

You can adjust a few settings for the VM either before or after installing the OS. We'll do it before installation. Highlight the VM and click Settings. Then, click Display along the left side and adjust the amount of video memory you want the VM to have. (Default is 12MB, we'll give it 128MB in this example.) Also, click to Enable either 3-D or 2-D Acceleration. (If one gives you an "invalid settings" message, unclick it and choose the other.)

Now, click USB on the left side and make sure that the USB controllers are enabled. This will allow you to copy to/from USB sticks in the VM.

Click OK when done to get back to main window. With the VM highlighted on the left of main window, click the Start arrow to begin installation.

The first screen you see will ask you what to use as your installation source and the CD/DVD drive will likely be already listed. If that is what you are using and the disk is loaded in the tray, go ahead and hit Start.

In this example, we are using an ISO file that has been downloaded to the hard drive. For that, click the icon to the right of the CD/DVD drive box to bring up a window for navigating to the location where you saved the ISO file.

After you've found and selected your ISO, it will appear filled in the source box. Hit Start and it will now boot from the live ISO/CD/DVD.

When the live environment finishes loading, click the install icon on the desktop to begin the installer. The installation process is just the same as if you were installing to the computer normally. When asked if you want to "Erase disk and install", it is NOT going to erase your real hard drive - it is talking about the virtual hard drive. (Same thing if you choose 'Something else' and partition the drive manually.)

After install is complete, reboot the VM. If the installation disk appears to be stuck and not rebooting, click your mouse somewhere inside the VM window, then hit the ENTER key. If nothing happens, click the "x" on the VM window and choose to Shutdown the machine. Then just highlight the VM and hit the Start arrow again.

In the VM, you can do much the same as when installed for real on your computer. You can install things, download updates, etc., and it all happens within the virtual environment on the virtual HDD.

Whenever you want to shutdown a running VM, shutdown using the normal shutdown method of the OS in the VM - not by closing the VM window. (If the VM OS was Linux Lite, you would click Menu, Logout, Shutdown, just like on your computer.)

Using USB's in VirtualBox

Assuming you've already added the the VirtualBox Extension Pack to begin using USB's in your new VM, you need to add your username to the vboxusers group. (You only need to do that once, not for every individual VM you make.) You should perform the following steps while no VM's are open.

Open the Linux Lite (not VirtualBox) Settings Manager, Menu, Settings, Settings Manager and select the Lite User Manager.

With your username showing under Select user, scroll down the list in the Groups column and place a check in the box next to vboxusers to add yourself to that group and hit Apply.

Close out Lite User Manager, the Settings Manager and any other open programs.

Reboot the computer, then log back in for the new setting to take effect.

Open VirtualBox and start your new VM.

Once up and running you will see a little USB icon along bottom right edge of the VirtualBox window. Right-click on it to choose the USB you want to use.

Additional VirtualBox Information Sources:

VirtualBox Homepage
VirtualBox User Manual
VirtualBox Help Forums

Top of page

File Search

File Search is an easy to use GUI file search utility found under Menu, Accessories, File Search.

Upon opening File Search, you will see this file search window:

File Search uses the locate command to search for files. The locate command relies on a database it maintains of the files on your computer. That database gets automatically updated periodically - normally once a day. Before conducting a search it is a good idea to manually update the database index to make sure that any file changes made since the last update are reflected in the search results. Click the gear icon in upper-right corner and choose Update Search Index.

You can also use the gear button for other options like displaying advanced settings in the search window. The advanced settings display lets you filter search results by file modification dates, file types, file extensions, etc.

The example below shows a search in my Home folder for any file with car in the file name.

To limit the results to only txt files, simply click Documents under File Type in the advanced settings.

Top of page