Category Archives: Fedora

[HOWTO] Open djvu files in Fedora 15

Support for djvu files is not included in Fedora default installation, however, it can be installed from the repository. To add djvu support to the default document viewer (Evince) run the following in terminal:

su -c 'yum install evince-djvu'

If you want to install a different reader for djvu files, you can do so by installing djview. To install djview, type in the following in terminal.

su -c 'yum install djview4'

Hope this helps.

[HOWTO] Install VirtualBox 4.0 in Fedora 15

Here is how you can install VirtualBox in Fedora 15. Open up the terminal and type in the following commands (make sure you have enabled sudo for your user):

wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | rpm --import -
sudo wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo --output-document=/etc/yum.repos.d/virtualbox.repo
sudo yum install VirtualBox-4.0 dkms

Hope this helps.

20 Things to do after installing Fedora 15

Here are few things you can do after installing Fedora 15 to make the experience better. You may have to enable sudo to follow some of the tips or you can run the commands in terminal by logging in as root (su). The following are in no particular order. Feel free to skip the ones you do not need.

1. Enable sudo

2. Install yum-fastestmirror plugin
yum-fastestmirror selects the fastest mirror for updating and installing packages. It can be installed by running the following in the terminal:

sudo yum install yum-fastestmirror

3. Add shutdown menu item permanently

4. Install flash player

5. Add minimize, maximize title bar buttons

6. Enable delete key in Nautilus

7. Enable right click on desktop and add Desktop folder on the Desktop

8. Show date on top panel

9. Install nautilus open terminal
If you use terminal a lot, you may want to have “Open in terminal” in folders in Nautilus file manager. To do so, install the package nautilus-open-terminal

sudo yum install nautilus-open-terminal

10. Install a torrent client
If you download via torrents, you will need a torrent client. While Fedora ships with Transmission Torrent Cliene, I prefer Vuze (Azureus) (written in Java). It can be installed by running the following in the terminal:

sudo yum install azureus

You may also like deluge (written in Python, Gtk) which is also an excellent alternative. It can be installed by running the following in the terminal:

sudo yum install deluge

11. Install Google Chrome
Although Firefox 4 is shipped by default, you may want to have a secondary browser or may prefer Google Chrome. You can simply download rpm from Google Chrome download page and install it. The package will automatically insert repository information so that you get updates from update manager.

12. Install Libreoffice
Libreoffice is available in the repository. I recommend “Add/Remove Software” to select and install office tools you need. libreoffice-writer (Word processor) and libreoffice-calc (Spreadsheet) is all I need. You may also want libreoffice-impress (Presentation) and libreoffice-draw (Drawing).

13. Install Thunderbird
I prefer Thunderbird to Evolution. You can install it from repository by running the following in the terminal:

sudo yum install thunderbird

14. Install a clipboard manager
If you do a lot of writing or programming, you will love a clipboard manager. I like parcellite and it is available in the repos as well. It can be installed by running the following in the terminal:

sudo yum install parcellite

UPDATE: You may also like another clipboard manager called GPaste which integrates well with Gnome Shell.

15. Install Google Voice and Video chat
If you use Google Voice, you can download and install rpm package from Google Voice and Video Download page.

16. Add support for media formats

17. Install support for rar and 7z archive formats
Rar is a proprietary format but it is used widely and you may encounter rar files so it is handy to have it installed.

sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
sudo yum install unrar

7z is also a popular format and it is also available in the repository.

sudo yum install p7zip p7zip-plugins

18. Install Gimp
Fedora does not ship with an image editor. I prefer Gimp and it can be installed by running the following in the terminal:

sudo yum install gimp

19. Install gnome-tweak-tool to customize fonts, themes etc
gnome-tweak-tool can be installed by running the following in the terminal:

sudo yum install gnome-tweak-tool

Run it (press Alt+F2 and type in gnome-tweak-tool) and change the settings. It does not have OK or Apply and simply selecting the options performs the changes. Some changes may require logging out and logging back in.

20. Install skype
Skype is a popular text, voice and video chat tool. You can download and install rpm from this link. If you have 32-bit, installation will be straightforward. However, if you have 64-bit, please read this post.

Please share what you did after installing Fedora 15 in the comments.

[HOWTO] Install Skype in Fedora 15 64 bit

Skype is available as rpm package for Fedora 13+ from here and it installs successfully on 64 bit installations as well, however, it does not run. If you run it from the terminal, you will see the following error:

skype: error while loading shared libraries: libXv.so.1: cannot open shared object file: No such file or directory

UPDATE: A system update has changed a few things and this guide has been updated. So, please update your system first by running the following in your terminal:

su -c 'yum update'

For this to run, the 32 bit versions of libraries it depends on must be installed after installing the rpm. To be able to do so, first of all, open the file /etc/rpm/macros as root and add the following line at the end of the file (the file may be empty or may not exist if you haven’t made changes to it or created it already, in that case, just create the file and put the following line in the beginning):

%_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch}

Save the file and exit the editor. To open as root and add the line, I used nano (you may need to enable sudo first):

su -c 'nano /etc/rpm/macros'

You can press Ctrl+O followed by to write into the file and Ctrl+X to exit nano.

After having done that, you will need to install 32-bit libraries that are required by skype. The following command installs them all:

su -c 'yum install qt.i686 qt-x11.i686 libXv.i686 libXScrnSaver.i686'

After that, Skype should run without problems. Hope this helps.

[HOWTO] Enable “delete” key in Nautilus 3 (Fedora 15)

By default, the keyboard short cut for “Move to Trash” is Ctrl+Delete in Nautilus 3 in Fedora 15. To set Delete as short cut for Move to Trash operation, follow the steps below.

Launch the terminal and execute the following to enable short cut editing:

gsettings set org.gnome.desktop.interface can-change-accels true

Now, open (Nautilus) File Manager and select a file. Now, click on Edit menu and take your mouse over to “Move to Trash”. With mouse over this item, press “Delete” key two times. Now, you will see the short cut has been set as the key for “Move to Trash”.

In terminal, type in the following to disable short cut editing:

gsettings set org.gnome.desktop.interface can-change-accels false

Hope this helps.

[HOWTO] Enable ‘sudo’ in Fedora 15

Here is how you can enable ‘sudo’ in Fedora so that you don’t have to login as root everytime you need to run a command as root. Open up terminal and type in the following:

su #enter root password followed by this one
yum install nano
nano /etc/sudoers

Now, scroll down and you should see something like:

root    ALL=(ALL)	ALL

Just below that line, add this:

YOUR_USER_NAME_HERE    ALL=(ALL)	ALL

For eg, my username is “khattam”, so I added the line:

khattam    ALL=(ALL)	ALL

If you are not sure what your username is, open up a new terminal window and type in ‘whoami’.
Save by pressing Ctrl+O followed by Enter. Exit nano by pressing Ctrl+X. Exit from root by typing in “exit”.

Now, you will be able to use sudo.

[SOLVED] “error: Failed dependencies: libnotify.so.1()(64bit) is needed by odeskteam-3.2.5-1fc14.x86_64” while installing odeskteam in Fedora 15

I upgraded to Fedora 15 a few days ago and I wanted to install odeskteam application from oDesk.com by downloading 64-bit RPM. However, I was getting dependency error.

error: Failed dependencies:
libnotify.so.1()(64bit) is needed by odeskteam-3.2.5-1fc14.x86_64

I checked for “libnotify” in Add/Remove Software and found that it had been installed so I decided to force installation by running:

su
rpm -Uvh /path/to/odeskteam-3.2.5_fedora_14_x86_64.rpm --nodeps

Then I opened up another terminal instance and tried running it as my user:

odeskteam-qt4

However, I got the following error:

odeskteam-qt4: error while loading shared libraries: libnotify.so.1: cannot open shared object file: No such file or directory

So, I tried locating the library using locate command:

locate libnotify.so

I found that the following files existed:

/usr/lib64/libnotify.so.4
/usr/lib64/libnotify.so.4.0.0

However, the file “/usr/lib64/libnotify.so.1” was not found. I created a symbolic link for the file using the command:

ln -s /usr/lib64/libnotify.so.4 /usr/lib64/libnotify.so.1

Now, odeskteam-qt4 runs without problems.
Note: If you are getting error like this:

**
GLib-GIO:ERROR:gdbusconnection.c:xxxx:initable_init: assertion failed: (connection->initialization_error == NULL)
**
GLib-GIO:ERROR:gdbusconnection.c:xxxx:initable_init: assertion failed: (connection->initialization_error == NULL)
Resource temporarily unavailable

then, make sure to run odeskteam-qt4 as normal user and not root.

[HOWTO] Setup MySQL, Apache and PHP in Fedora 15

This is a simple guide to setup LAMP (Linux, Apache, MySQL and PHP). I am assuming you have Linux (Fedora 15) installed. The following commands will install the necessary packages to run Apache, MySQL and PHP.

su #for root login, enter password when prompted
yum install mysql-server
service mysqld start
mysqladmin -u root password PASSWORD_HERE
yum install phpmyadmin

Now, you should have necessary packages installed.
To run the apache and mysql services, enter the following in command prompt. This should be done each time you need to use unless you want those services to start with your OS.

su #for root login, enter password when prompted
service mysqld restart
service httpd restart

The directory where you can put in your files is /var/www/html/ and you can access phpMyAdmin by navigating to http://localhost/phpmyadmin

If you want the services to start with your OS, you will need to run the following:

su #for root login, enter password when prompted
chkconfig --add httpd
chkconfig httpd on
chkconfig --add mysqld
chkconfig mysqld on

Hope this helps.