[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.

[SOLVED] Gnome shell extensions not loading after update

I have Fedora 15 with Gnome Shell and I found that after the last update, I found that Gnome Shell extensions were not working. I ran lg (Alt+F2 and type in “lg” without quotes and press enter) and in the error tab, I could see version mismatch error. I found that gnome-shell had been updated while the extensions were not. As a temporary fix, I tried editing metadata.js in extension folder (/usr/share/gnome-shell/extensions/extension-name) of the extension in question by entering proper gnome-shell version (which can be found by running gnome-shell –version in the terminal) and it worked.

[HOWTO] Add Shutdown menu item permanently on Gnome 3

I am using Fedora 15 and in the menu, I just saw the menu item for Suspend and no Shutdown. It is shown when I press Alt, but I wanted to show it at all times. There is a simple fix for this and it involves installing a package.
Open up Add/Remove Software (Applications>System>Add/Remove Software) and then search for “gnome-shell-extensions-alternative-status-menu” and install it. Log out and log back in and you should see the menu item.

[HOWTO] Add support for MP3, AVI and other media formats by installing codecs in Fedora 15

I am running Fedora 15 Desktop and here is how I installed support for MP3, AVI and other media formats. I opened up the terminal and ran the following commands (enter root password when prompted):

su
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
yum update

Now, close the terminal and open up media in Totem and it should prompt you to find and install appropriate codecs. The installation is to be done only once for a media format.
Hope this helps.

[HOWTO] Add Minimize, Maximize/Restore buttons in Gnome 3

I am using Fedora 15 with Gnome 3. The window title bars have only a Close button as control button. If you want to add other buttons here is what you need to do.

1. Install Configuration Editor

You can skip to step 2 if you have Configuration Editor installed.
Press Super (Windows) key and type Add/Remove and open Add/Remove Software.
Search for gconf-editor and install it. You may need to wait a while if you are using Add/Remove Software for the first time.

2. Use Configuration Editor to change button layout

Launch Configuration Editor.
In the Configuration Editor navigate to desktop>gnome>shell>windows
Find button_layout and enter the following to add Minimize and Maximize buttons:

:minimize,maximize,close

If you want Ubuntu-like control box, enter the following instead:

close,minimize,maximize:

3. Restart Shell or re-login

The changes are not instant. You either need to restart Gnome shell using Alt+F2 > r > ENTER (as reader Elliot pointed out in the comments) or you need to log out and log back in to see the changes.

Hope this helps.

[HOWTO] Install Flash Player in Fedora 15

I just installed Fedora 15 (Desktop i.e. standard) 64 bit and here is how I installed Adobe Flash Player 11b1 64bit version. I launched terminal and typed in the following commands.

su -c 'yum install wget'
cd /tmp
wget http://download.macromedia.com/pub/labs/flashplatformruntimes/flashplayer11/flashplayer11_b2_install_lin_64_080811.tar.gz
tar xzvf flashplayer11_b2_install_lin_64_080811.tar.gz
su -c 'cp libflashplayer.so /usr/lib64/mozilla/plugins/'
su -c 'cp -R usr/ /'

Then I restarted Firefox and Flash player is working.
Note: This does not work for 32 bit version of Fedora. For 32-bit version, try this:

su
rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
yum update
yum install flash-plugin

Hope this helps.