Wednesday, March 30, 2016

f.lux on Ubuntu

"Light at night is bad for your health, and exposure to blue light emitted by electronics and energy-efficient lightbulbs may be especially so.
Until the advent of artificial lighting, the sun was the major source of lighting, and people spent their evenings in (relative) darkness. Now, in much of the world, evenings are illuminated, and we take our easy access to all those lumens pretty much for granted.
But we may be paying a price for basking in all that light. At night, light throws the body’s biological clock—the circadian rhythm—out of whack. Sleep suffers. Worse, research shows that it may contribute to the causation of cancer, diabetes, heart disease, and obesity.
But not all colors of light have the same effect. Blue wavelengths—which are beneficial during daylight hours because they boost attention, reaction times, and mood—seem to be the most disruptive at night. And the proliferation of electronics with screens, as well as energy-efficient lighting, is increasing our exposure to blue wavelengths, especially after sundown." (http://www.health.harvard.edu/staying-healthy/blue-light-has-a-dark-side)

f.lux adapts the display settings based on your location to the time of day, warm at night and like sunlight during the day.
It can be installed on Ubuntu via ppa . To begin open a terminal (ctlr+alt+t) and use the following commands : 
sudo add-apt-repository ppa:nathan-renniewaldock/flux
sudo apt-get update 

sudo apt-get install fluxgui

Once installed you can launch the application from Dash and configure it using the GUI based indicator applet . 




The settings can be adjusted by right clicking the applet and selecting preferences : 


To work properly f.lux needs to know your coordinates (latitude and longitude)  


There are 5 temperature settings that can be adjusted to your own preference :  



Wednesday, March 16, 2016

How to install and use Bleachbit on Ubuntu


BleachBit is a free and open-source disk space cleaner, privacy manager, and computer system optimizer. 

"BleachBit quickly frees disk space and tirelessly guards your privacy. Free cache, delete cookies, clear Internet history, shred temporary files, delete logs, and discard junk you didn't know was there. Designed for Linux and Windows systems, it wipes clean a thousand applications including Firefox, Internet Explorer, Adobe Flash, Google Chrome, Opera, Safari,and more. Beyond simply deleting files, BleachBit includes advanced features such as shredding files to prevent recovery, wiping free disk space to hide traces of files deleted by other applications, and vacuuming Firefox to make it faster. Better than free, BleachBit is open source."(https://www.bleachbit.org/)

The latest version for Linux is 1.10 and these are the changes that have been made since version 1.8 :

  • Clean more localizations (thanks to Tristan Stenner).
  • Add localization codes (thanks to Tristan Stenner).
  • Add .rpm installation package for Fedora 22.
  • Fix memory cleaning on Ubuntu 15.10 and other distributions (reported by Richard Pearse).
  • Fix harmless error that localizations.xml is unusable (thanks to Tristan Stenner).
  • Do not show localizations at the base level (reported by BBUser).
  • Do not show Windows Explorer cleaner on Linux (reported by Tom├ís F. L.).
  • Fulfill Fedora license file location change.
  • Do not delete xauth under KDE (reported by mike).
  • Remove deprecated key encoding in bleachbit.desktop.
  • Drop support for Mandriva, which is dead.
  • Do not show cleaner is unusable message in the console (except when debug mode is enabled or in non-final releases).
Bleachbit (1.8) is available in the Ubuntu repositories and can be installed with a simple command via terminal (ctrl+alt+t ) :

sudo apt-get install bleachbit 

For a more up to date version (1.10) download the .deb file from here . The file can be installed by navigating to its location -> right click - > Open With -> Gdebi Package Installer -> Install .

If gdebi is not available on your system you can install it by using this command :

sudo apt-get install gdebi

Once installed Bleachbit can be launched from Dash . Proceed with caution when selecting the items you want to delete and make sure you understand what you are doing :









Tuesday, March 8, 2016

How to disable and remove Apport

Ubuntu 14.04 ships with Apport Error Reporting enabled by default, and as a result, you may experience Internal System Error popups inside Ubuntu. They are part of Apport, an internal debugger which automatically generate reports to submit for packages that crash. Apport can be disabled and removed by using the following commands in a terminal (ctlr+alt+t) :

sudo service apport stop 

sudo apt-get purge apport

"Apport is a system which
  • intercepts crashes right when they happen the first time,
  • gathers potentially useful information about the crash and the OS environment,
  • can be automatically invoked for unhandled exceptions in other programming languages (e. g. in Ubuntu this is done for Python),
  • can be automatically invoked for other problems that can be automatically detected (e. g. Ubuntu automatically detects and reports package installation/upgrade failures from update-manager),
  • presents a UI that informs the user about the crash and instructs them on how to proceed,
  • and is able to file non-crash bug reports about software, so that developers still get information about package versions, OS version etc." (https://wiki.ubuntu.com/Apport)


Apport is safe to remove as it "collects potentially sensitive data, such as core dumps, stack traces, and log files. They can contain passwords, credit card numbers, serial numbers, and other private material. This is mitigated by the fact that it presents you what will be sent to the bug tracker, and that all crash report bugs are private by default, limited to the Ubuntu bug triaging team." (https://askubuntu.com/questions/139424/is-it-safe-to-remove-apport)