/dev/mapper/cryptswap1 is not ready yet or not present

I had this error going for a long time now (usually while my system was loading from a reboot) and my swap space would usually just not work…
I finally had some time to deal with that.
I couldnt even reformat it in gparted or something similar…

This is how I fixed it:

First you turn your swap space off

$ sudo swapoff -a

commented out the existing swap line in /etc/crypttab

comment out the swap line in /etc/fstab

# /dev/mapper/cryptswap1 none swap sw 0 0

reboot your pc/laptop

now you should be working without a swap space, try reformatting your partition in gparted to a linux-swap type (in my case it was /dev/sda3)

after successfully reformatting it, proceed this way: Continue reading “/dev/mapper/cryptswap1 is not ready yet or not present”

Conky configuration

Conky is free software (a desktop widget) which runs in X on Linux and BSD. Originally a fork of Torsmo, Conky’s torsmo-based code is BSD licensed. New code in Conky has been licensed under the GPL 3.0.

Since its inception, Conky has changed significantly from its predecessor, while maintaining simplicity and configurability. Conky can display just about anything, either on your root desktop or in its own window. Not only does Conky have many built-in objects, it can also display just about any piece of information by using scripts and other external programs.

Lately I was configuring/designing/modifying a Conky configuration and I decided to share it with others.

SETUP

Go to github repository and get the Conky config files: https://github.com/altinukshini/conky_blue

Note: If your battery is not showing than you are probabbly using another format exc (BAT1 or BAT2) instead of BAT0 which is the default one.
To fix this issue change line 65 in conkyrc file:

from: ${battery_percent}%
to: ${battery_percent BAT1}%

To call this script in Conky, use the following in your conkyrc:

lua_load ~/.fluxbox/conky/conky_blue/clock_rings.lua
lua_draw_hook_pre clock_rings

Because I have used this conky configuration with fluxbox I have put it under .fluxbox folder on my home directory. Continue reading “Conky configuration”

How to install NVIDIA Drivers in Ubuntu Linux

Probably you have tried to install NVIDIA graphics driver for Ubuntu or Linux in general so many times just like me, but never found a way how to do that properly.

Well in Ubuntu you have some 2 types of NVIDIA driver which you can find them in Additional Drivers (third party proprietary drivers) :
1. The Version 173 – which is crap especially because its very slow & laggy.
2. Recommended one – which has bugs on KDE and usually in some cases results with crashing entire OS, sometimes when trying to resize konsole in KDE. (at least that’s what happened with me)

To start with:

Ubuntu has an enabled Kernel Nouveau by default, this is what makes the NVIDIA driver always crash during installation.
So to install the drivers ofcourse you need to disable that so that you can proceed. Continue reading “How to install NVIDIA Drivers in Ubuntu Linux”