October 22, 2014

Fleeting Password Manager

Fleeting Password Manager is a simple program that generates highly secure pseudo-random passwords from the given master password, URL/ID (e.g. facebook, www.facebook.com, google, my_server..) and user name.
The user needs to remember only the master password to recover other passwords. Passwords are always regenerated on-the-fly from the given login data when needed and are never saved. In other words, Fleeting Password Manager combines the password creation and management. The length of the generated password is configurable between 8 and 32 characters and Fleeting Password Manager can remember wanted URL/User-pairs. 

Notice, that the URL doesn't have to be the real URL, it just has to be exactly the same every time, something that you remember. You can use "gmail" for Gmail, "facebook" for www.facebook.com, "linkedin" for www.linkedin.com and so on. 

As mentioned before, Fleeting Password Manager never saves any passwords. However, the user name, url/id and length can be saved. This data can also be exported and imported from the file menu. The settings data is located as a simple text file in the user's home directory: ~/.config/fleetingpm/fleetingpm.conf.

To install open a Terminal and type the following :

sudo add-apt-repository ppa:jussi-lind/ppa
sudo apt-get update
sudo apt-get install fleetingpm

October 6, 2014

Installing Nvidia Driver From The Website

There are several ways to install the driver for your Nvidia card in elementary OS.

One way is using System Settings > Additional Drivers.

If you want the latest driver go to the website ( option 1 ) and select your card.
Just press the Download and Agree & Download button.

To find your card open a terminal and type :
lspci | grep VGA
01:00.0 VGA compatible controller: NVIDIA Corporation G92 [GeForce GT 330] (rev a2)
My card is a GeForce GT 330.
The latest driver at this moment is version  340.46. I downloaded the file NVIDIA-Linux-x86_64-340.46.run.

The NVIDIA graphics driver is bundled in a self-extracting package. You can extract it with : 
sh NVIDIA-Linux-x86_64-340.46.run --extract-only  
Creating directory NVIDIA-Linux-x86_64-340.46
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 340.46.......................

A folder NVIDIA-Linux-x86_64-340.46 is created containing the uncompressed contents of the .run file.
Documentation can be found in :
NVIDIA-Linux-x86_64-340.46/html/index.html and 

After some googling and attempts I found the right way to install the Nvidia driver :
First in a terminal :
sudo  apt-get install build-essential linux-headers-$(uname -r )

Before attempting to install the NVIDIA driver you should first disable Nouveau. Nouveau ( http://nouveau.freedesktop.org/wiki/ ) is a display driver for Nvidia GPUs, developed as an open-source project through reverse-engineering of the Nvidia driver. Nouveau performs modesets in the kernel. This can make disabling Nouveau difficult, as the kernel modeset is used to display a framebuffer console, which means that Nouveau will be in use even if X is not running. As long as Nouveau is in use, its kernel module ( nouveau.ko ) cannot be unloaded, which will prevent the Nvidia kernel module from loading. It is therefore important to make sure that Nouveau's kernel modesetting is disabled before installing the Nvidia driver.

Some distributions include Nouveau in an initial ramdisk image. If you have an initrd which loads the Nouveau driver, you will additionally need to ensure that Nouveau is disabled in the initrd. In most cases,  rebuilding the initrd will pick up the module loader configuration files, including any which may disable Nouveau. ( see the README.txt ).

Open a terminal and :
sudo nano /etc/modprobe.d/blacklist-nouveau.conf
Copy and paste the following lines :

blacklist nouveau
options nouveau modeset=0

Hit Ctrl+O , Enter and then Ctrl+X

Rebuild initrd :

sudo update-initramfs -u

Reboot and after rebooting do not login and switch to the first virtual (not graphic) terminal by :
login with your username and password and stop the X-server by : sudo service lightdm stop
Navigate to the downloaded NVIDIA-run file :
cd Downloads and
sudo sh NVIDIA-Linux-x86_64-340.46.run

The .run file is a self-extracting archive. When executed, it extracts the
contents of the archive and runs the contained nvidia-installer utility,
which provides an interactive interface to walk you through the installation.

nvidia-installer will also install itself to /usr/bin/nvidia-installer,
which may be used at some later time to uninstall drivers, auto-download
updated drivers, etc.

Accept the license and answer the following questions :
The distribution-provided pre-install script failed!  Are you sure you want to continue? (Answer: Continue installation)
Would you like to register the kernel module sources with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later. (Answer: No)
Install NVIDIA's 32-bit compatibility libraries? (Answer: Yes)
Would you like to run the nvidia-xconfig utility to automatically update your X configuration file so that the NVIDIA X driver will be used when you restart X?  Any pre-existing X configuration file will be backed up. (Answer: Yes)

Your X configuration file has been successfully updated.  Installation of the NVIDIA Accelerated Graphics Driver for Linux-x86_64 (version: 340.46) is now complete.

A log file can be found in /var/log/nvidia-installer.log

Start the X server again :
sudo service lightdm start

In order to have nvidia-settings in Slingshot-launcher navigate to /usr/share/applications and copy NVIDIA X Server Settings to ~/.local/share/applications.
Right click the file and choose Properties.

At Owner click Write button, so that we can modify the file.
Right click the file and choose Open With Scratch.
Change the line Categories=Application;Settings; into Categories=System;Settings;

Applications > NVIDIA X Server Settings

If you wish to uninstall the Nvidia-driver, just open a terminal and :

sudo /usr/bin/nvidia-uninstall

Disable Password Request After Suspend

When the computer resumes from suspend, the screen will be locked. To disable this password request go to Applications > System Settings > Brightness and Lock and uncheck Require my password when waking from suspend.

Another way to disable the lock is the following : open a Terminal and type :

gsettings set org.gnome.desktop.lockdown disable-lock-screen 'true'