La Boina Roja

Learning Python


Leave a comment

How to fix Parole’s “Gstreamer backend error” in Fedora 20

I wrote this how to after receiving comments from Rudolf and Pavlo on my earlier how to regarding this issue.

If you get this screen:

updategstreamererror

All you have to do is fire up Terminal and type:

parole --xv false

updategstreamererror2

There might not be much screen activity after you have typed this command, but trust me Parole will work now  photo nodding.gif

When typing the command above,  it is very important that you are NOT logged in as root!!!! If you are, you will get this error message:

updategstreamererror3

If this how to doesn’t work, check this one!

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


Leave a comment

Recommendation: Introduction to Linux (LFS101x)

lfs101x

While I have been quite happy with sites like Coursera, Udacity, Codecademy, edX etc. etc. Sites where you can study Computer Sciences, among st one of the many subjects, online for free. I always wondered why Linux was the great missing factor on all these sites. Well that has changed  photo cheerlie.gif

I am happy to announce that edX will start a free online Linux introductory course  photo worshippy.gif It will start in the 3rd quarter of 2014. You can sign up here.

I would love to hear from people who followed this course  photo thumbsup.gif


Leave a comment

Recommendation: Linux/Unix Command Line course at Memrise

linuxunixcommandline

This course is created shamgar and it is an introduction course to the basics Command Line and consists of 7 levels. If you are new to Linux or decided to finally sit down and master that scary beast( photo bloos.gif) called CLI, I would highly recommend to do his course first. To be fair, I consider this course a warm up course to the more advanced and sometimes abstract Shell-Fu course.

I know that the best way of learning CLI is buy actually using the Command Line, but I also believe having the basics ingrained in your brain will go a long way  photo nodding.gif If you are studying for Linux Essentials or LPIC-1, I highly recommend to go through the Linux/UNIX Command Line course first. It will only take an hour or two to get through it, but you will benefit so much from finishing this small course first!

In matter of fact, I see the Linux/UNIX Command Line course as necessary additional practice in order to pass the basic Linux exams. Take a look:

linuxunixcommandline2

linuxunixcommandline3

Also shamgar’s explanation of grep, pipe and pwd made me finally understand those commands  photo worshippy.gif ( Avid readers of this blog, know this is not my first basic command line course  photo emo.gif)

There are two minor things that I would like see differently though, first of all this Ruby specific command “tail -f log/development.log” seems to be out of place in this course  photo confused.gif The second thing is I would have liked if there was a level or section where you can learn/practice things about  “man”  and “info“.

Other then those two things,  this is a great course and most definitely a must do for Linux beginners!


Leave a comment

How to get Java working in Fedora 20

Suppose you want to play Minecraft, in order to do that you need to have Java installed. You don’t have to worry about versions since Java is backwards compatible, meaning the latest version of Java is capable of running software that was built in an earlier version. In this “how to” we are going to install OpenJDK which is basically a free and open source variant of Java  photo nodding.gif

Fire up Terminal and log in as root:

su

Then type:

yum install -y java-1.7.0-openjdk

java1

Mind you  photo piidea.gif if you need Java to be working in your browser too, you need to install the IcedTea plug in. You install this by typing the following command in Terminal (make sure that your are logged in as root!):

yum install -y icedtea-web

java2

To check if Java installation was succesful, go this site. You will see this screen:

javacheck1

Press on the “Verify Java version” button.

A yellow pop-up screen will appear asking for your permission to run.

javacheck2

I choose to press on the “Run this time” button  photo puh2.gif After you pressed on either button, some stuffies will go on on your screen, if Java is sucessfuly installed you will see this screen:

javacheck3

And you are done  photo thumbsup.gif

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


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)


Leave a comment

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:

yum 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)


Leave a comment

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)

Follow

Get every new post delivered to your Inbox.