La Boina Roja

The struggles off a future RHCE….


Leave a comment

How to make typing along with Python tutorials easier.

A lot of youtube vids use IDLE in their tutorial, there is absolutely nothing wrong with that. In matter of fact, it makes typing along easier if you use IDLE too, but situations like in the picture below piss me off photo piangry.gif!

typealong1

I prefer this  photo shiny.gif it saves me the hassle of changing screens.

typealong2

So what happened in the second picture? Well, I used Python’s built in interpreter which you can open by simply typing python in the terminal. Look:

typingalong3

And I made the terminal’s background color transparent by changing it’s transparency. You do this by

Edit > Preferences

typingalong4

The following screen will appear, select the tab Appearance, in this tab you can change the transparency settings.

typingalong5

If you are finished with the interpreter but have other stuff to do in terminal, all you have to do is press CTRL d and the interpreter will close and you can do whatever you need to do in terminal.

typingalong6

(Yes, another se7en  photo heart.gif!)

(Remember, you can always do the cliccie for larger piccie photo puh2.gif)

Advertisements


4 Comments

How to install screensavers in Fedora 20

Fedora 20, Xfce comes with no screensavers pre-installed  photo piangry.gif Just take a look.

Menu > Settings > Setting > Settings Manager

screensaver1

If you click on Settings Manager, this screen will open.

screensaver2

If you click on Screensaver, you’ll get this an empty screen to pick your screensaver from  photo pigrin.gif

screensaver3

Well ain’t that just prime  photo emo.gif

Let’s fix this!

Fire up terminal and type:

su

After you have typed your password, type either one off the commands below:

This command for the earlier Fedora versions until 21:

yum install xscreensaver-base xscreensaver-extras xscreensaver-extras-base xscreensaver-gl-base xscreensaver-gl-extras

This command for the Fedora versions from 22:

dnf install xscreensaver-base xscreensaver-extras xscreensaver-extras-base xscreensaver-gl-base xscreensaver-gl-extras

After a while you will be asked if you want to continue, press

y

And you are done!

If you open the screen now, you will see this.

screensaver4

While I am not a fan of the Matrix movies, I do like this screensaver. It just makes me feel more geeky photo heart.gif!

I found the code for installing the screensavers here.

(Remember, you can always do the cliccie for a larger piccie  photo puh2.gif)


2 Comments

How to stop Fedora 20 from being slow, freezing and giving black screens.

Last Saturday, I bought a new netbook and tried to install Fedora 20 on it. It was quite an interesting experience, if I had to describe it in two words, I would call the entire experience pure horror. I installed Fedora quite some times, I stopped counting after the 5th install  photo shutup.gif

I fucked up the couple of first installations by using an usb stick which I previously used to install Lubuntu and I didn’t see any harm in NOT wiping the usb stick clean first  photo emo.gif I just  re-used it with Fedora usb creator. I am not going to bore you with the details, but let’s just say I have learned that when creating a bootable usb stick, I should wipe it clean first photo bloos.gif

When I finally managed to install Fedora 20, I noticed it was slow, it would freeze especially during multi tasking, and eventually I would get a black screen that would last 20 seconds. The culprit being my Radeon HD 8280 videocard  photo piangry.gif

I managed to solve the problem, and of course I am sharing my solution with you  photo picool.gif

The usual screenshots are missing, I didn’t dare to take them while solving the problem. I was too afraid my system would freeze. Before you do this “how to” make sure your system is updated! (You do this by typing “yum update” in terminal).

Here we go:

Go to this site and download the drivers.

amdcatalyst
(Yes, I know you can use the “wget” command instead. But when I used it, I couldn’t see when the file was finished downloading and therefore couldn’t unzip the file because it probably wasn’t finished downloading.)

After the file has finished downloading move it to your home directory (in my case it was /home/roja/) so it looks like this.

amdzip

Why you ask? Well it is just to make your life easier, as from now on you only have to copy and paste the following commands  photo nodding.gif

Fire up terminal. Log in as root, you do this by typing:

su

After you have typed your password, type:

unzip amd-catalyst-13.12-linux-x86.x86_64.zip

Then type this:

chmod a+x amd-catalyst-13.12-linux-x86.x86_64.run

Now type this:

yum install gcc binutils make kernel-devel kernel-headers

When this process is finished type:

./amd-catalyst-13.12-linux-x86.x86_64.run

The drivers will be installed, at some point an installation wizard will appear, you can click on “agree”. When asked choose “automatic installation”.

When the installation was finished I got an error report, I chose to ignore it  photo clown.gif Then a window popped saying I had to reboot, which I did. After the reboot, Fedora was fast as lightening and the black screens were gone  photo cheerlie.gif

(Remember, you can always do the cliccie for a larger piccie  photo puh2.gif)


Leave a comment

How to fix the “The SONY database is corrupted.” error in Linux

I would like to point out that when I got and fixed this error I was drunk  photo emo.gif (Yeah I know, you can go fuck yourself now  photo talktothehand.gif) So the usual screen shots are missing.

The other thing I would like to point out, is this “How to” doesn’t cover a fix for the SD card, since I don’t have one.

Let’s get started  photo loveit.gif

If you get this error in Calibre:

The SONY database is corrupted. Delete the file /Volumes/READER/Sony_Reader/database/books.db on your reader and then disconnect reconnect it. If you are using an SD card, you should delete the file on the card as well. Note that deleting this file will cause your reader to forget any notes/highlights, etc.

Chances are that all files on your Reader are “locked” meaning they are read only. If you go to your file manager all the files on your Reader will have a little lock down on the right side of them and it will look like this:

locked file

I would like to point out, that in case of the error ALL the files will have this little lock! I just added one little lock for the sake of this “How to”!

In order to remove “books.db“, you need to get writing rights on the files on your  Reader. You do that by typing this in your Terminal:

sudo mount -o remount,rw /media/READER

After you have typed your password, there will be no screen activity in your Terminal, but if you go to your file manager you will see that all the files on your  Reader are unlocked.

Now you can remove “books.db“:

booksdb

After removal of said file, you now can use Calibre without restarting and without reconnecting your Reader  photo thumbsup.gif

(Remember, you can always do the cliccie for a larger piccie).

P.S.:

I can’ t help but wonder if just typing the terminal command (without removing the file) would have been sufficient  photo clown.gif but then again I was drunk. So I guess I’ll never know  photo schater.gif

Edit 15/12/2013:

I just realised, that by using this method I did not loose my notes and pictures, I only “lost” related to my book library  photo thumbsup.gif


1 Comment

How to get Adblock Plus running AGAIN in Chromium

So recently Adblock Plus stopped working, which pissed me off  photo piangry.gif  But I managed to get it up and running again and being the kind person I am  photo picool.gif I’m sharing the solution with you guys.

Fire up Chromium and click on that three-striped button on the right corner.

buttonincorner

A menu will open, click on “Settings“.

settings

A new tab will open, go to it and click on “Extensions” (there is no need to log into Chromium!).

newtab

This screen will open, click on “Options“.

adblockplus

You’ll see  that you are not subscribed to a filter, this why Adblock Plus  isn’t working (anymore).  Click on “Add filter subscription“.

adbpoptions

EasyList (English)” should be pre-selected, if not select it from the dropdown menu, click on “Add“.

selecteasylist

It will, hopefully, take a couple of seconds to download EasyList, when it is downloaded you’ll see this.

subscribedeasylist

You are done! You can now surf on the web ad free again  photo shiny.gif without having to restart Chromium!

(Remember, you can always do the cliccie for a larger piccie!)


Leave a comment

How to run Xubuntu faster

Are you like me and do you own a netbook with rather low specs, like 1GB RAM for example?

Then you might have noticed that Xubuntu can become painstakingly slow after using it for a while. Not to mention all the moaning and groaning your hard disk does  photo shutup.gifThis is not you having way to many applications open or whatever, this is Xubuntu. Since it is not you, the problem can be fixed  photo loveit.gif

Fire up terminal and log in as root.

root
Type

cat /proc/sys/vm/swappiness

checknumber

After you hit enter a number will return, it will be most likely 60.

60

This is way to high and this is the cause of Xubuntu’s slowness. We need to decrease this number to 10.

Type

mousepad /etc/sysctl.conf

openmousepad

(the “l” in sysctl is that letter of the alphabet, not the the number “one” photo emo.gif)

After you hit enter this screen will open.

mousepad

Scroll all the way down and add this line add the end of the document:

vm.swappiness=10

changeswappi

Make sure to save the changes before you close mousepad!

Reboot (yes this time you really need to reboot) and check in terminal if swapiness is 10. As you can see in my case it was photo thumbsup.gif10
(Remember, you can always do the cliccie for a larger piccie!)


Leave a comment

How to install the Java plug-in in Chromium running on Xubuntu

Today I wanted to download a vid from youtube, I discovered that in order to do so, I need to have Java installed. So that’s what I did, it is a quite simple process photo shiny.gif

Open terminal and type:

sudo apt-get install openjdk-7-jre icedtea-7-plugin

installjava

After a couple of seconds you will be asked if you want to continue:

javacontinue

press y

Within minutes the installation will be completed, and Java is enabled  photo thumbsup.gif There is no need to restart Chromium!

(Remember, you can always do the cliccie for a larger piccie photo puh2.gif)