If you need to keep an eye on the use of your PC's disks, here's how to install the SpaceView indicator to see disk space on Linux. SpaceView indicator is an Ubuntu gauge that displays the use of the file system, more specifically the disk space in Linux. AppIndicator displays a list of devices in your menu, and when you click any of them, you set it to default by displaying your free space directly on the panel. From the program preferences, you can assign an alias for each device, select the color of the panel icon, or set the alert threshold (so when free space reaches the limit, a warning will be displayed). Other features include an option to show the use of newly connected devices such as notifications, and an option to run SpaceView on startup.
Install SpaceView indicator
To install the SpaceView indicator on Ubuntu and still be able to automatically receive future updates from it, Open a terminal and add the program repository with the following command.
# sudo add-apt-repository ppa:vlijm/spaceview
Update the package manager with the command.
# sudo apt-get update
Now use the following command to install the program;
# sudo apt-get install spaceview
Install the SpaceView indicator manually or in other distros
For those who could not install with the above procedure, do not want to add the repository or want to try to install in another Debian-based distribution, you can pick up the DEB file from the program on that link and install it manually (double-clicking on it). Or you can use following steps to install it.
Check if your system is 32-bit or 64-bit by using the following command in the terminal.
# uname -m
If your system is 32-bit, use the command below to download the program. If the link is outdated, go to this page, download the latest version and save it as spaceview.deb
# wget http://ppa.launchpad.net/vlijm/spaceview/ubuntu/pool/main/s/spaceview/spaceview_0.5.6-1_i386.deb -O spaceview.deb
If your system is 64-bit, use the command below to download the program. If the link is outdated, go to this page, download the latest version and save it as spaceview.deb
# wget http://ppa.launchpad.net/vlijm/spaceview/ubuntu/pool/main/s/spaceview/spaceview_0.5.6-1_amd64.deb -O spaceview.deb
Now install the program with the following command
# sudo dpkg -i spaceview.deb
If necessary, install the program dependencies with the command
# sudo apt-get install -f
By choosing this type of installation, you will not receive any updates to the program. Now, when you want to start the program, type spaceview in the Dash (or in a terminal, followed by the TAB key).
Uninstalling the SpaceView indicator on Ubuntu and derivatives
To uninstall the SpaceView indicator in Ubuntu and its derivatives execute the following commands in the terminal.
# sudo add-apt-repository ppa:vlijm/spaceview --remove # sudo apt-get remove spaceview # sudo apt-get autoremove
You will have now SpaceView applet indicator in your system that displays information about using the file system that is always visible to the eyes. Provide an alias for each device. For example, if your pen-drive is listed as /dev/sdb1 then gave /dev/sdb1 the name 'YourPenDrive' and it will get reflected in the indicator’s drop-down menu. For more on spaceview visit the launchpad.