Fedora Tips

From TheBestLinux.com
Jump to navigationJump to search

Fedora Linux Tips, Tricks, Fixes & More!

Note: Most of this information also pertains to CentOS, SuSE, Mandriva, and other RedHat derivatives

Setup yum repo for Google Chrome Web Browser:

cat << EOF > /etc/yum.repos.d/google-chrome.repo
name=google-chrome - \$basearch

Boot Disk Info

HowTo's & Other Docs


Boot Images & Install Media


Fedora Post Install Tips

About Fedy

Fedy makes installation of non-free stoftware, such as video and audio codecs, much easier!

Fedy Installation Process

Download the latest source code from github:

mkdir /tmp/fedy-src
cd /tmp/fedy-src
git clone https://github.com/satya164/fedy.git

Output from above command:

Cloning into 'fedy'...
remote: Counting objects: 4529, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 4529 (delta 0), reused 0 (delta 0), pack-reused 4523
Receiving objects: 100% (4529/4529), 14.45 MiB | 4.77 MiB/s, done.
Resolving deltas: 100% (2407/2407), done.
Checking connectivity... done.

Compile & Install Fedy

cd fedy

Output from Above Command:

install -dm755 /usr/bin/
install -dm755 /usr/share/fedy/
for f in *; do [[ $f != "plugins" ]] && cp -pr $f /usr/share/fedy/; done
install -Dpm 0755 fedy.exec /usr/bin/fedy
install -Dpm 0644 fedy.desktop /usr/share/applications/org.ozonos.fedy.desktop
install -Dpm 0644 fedy.appdata.xml /usr/share/appdata/fedy.appdata.xml
install -Dpm 0644 fedy.svg /usr/share/icons/hicolor/scalable/apps/fedy.svg
install -Dpm 0644 fedy-symbolic.svg /usr/share/icons/hicolor/scalable/apps/fedy-symbolic.svg
install -Dpm 0644 run-as-root.policy /usr/share/polkit-1/actions/org.ozonos.pkexec.run-as-root.policy
gtk-update-icon-cache: Cache file created successfully.

You should now have a new icon for Fedy, which should look like this:

Fedy icon.jpg

Check MySQL for SSL functionality:
show variables like '%ssl%';

Manual Network Configuration Using the Command Line

When setting up a LAMP app, if you get this error during config:
date.timezone not set
Edit /etc/php.ini and add:
date.timezone = America/Los_Angeles

Play video from webcam using MPlayer command line:

mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0

This example assumes that your webcam device is at /dev/video0
The resolution (width=??? & height=???) should be chosen to match the output of your device.

Use Mencoder to Record with MPlayer

Without Audio:

mencoder tv:// -tv driver=v4l2:width=320:height=240:device=/dev/video0 -ovc
lavc -o webcam.avi

With Audio:

mencoder tv:// -tv driver=v4l2:width=320:height=240:device=/dev/video0:forceaudio:adevice=/dev/dsp1 -ovc
lavc -oac mp3lame -lameopts cbr:br=64:mode=3 -o webcam.avi

More Info on Above:

Type 'man mencoder' for more info on the audio options.
/dev/dsp1 refers to the webcam USB Audio device.
/dev/dsp refers to the sound card.

Email Setup with Postfix, Dovecot & MySQL:
<a href="http://www.dawgland.com/wiki/Postfix_Dovecot_MySQL_HowTo.html">Local</a>

Change Time Zone on OS Using Command Line:
cp /usr/share/zoneinfo/Zone_You_Want to /etc/localtime overwriting the exisisting /etc/localtime file. Reboot and you are done!
Use the new timedatectl utility! As root, type timedatectl list-timezones to list available time zones to pick from Then, type timedatectl set-timezone TimeZone_You_Want.

Fedora Core 17 bootup error message saying can't load font file "True". Fix for this error message is here:

According to the bug report, it's an anaconda bug which can't be fixed on an installed system, so the fix is to manually change it yourself.
Just manually change True every place it is used as a font name in the following 3 files:


Typically it was latarcyrheb-sun16 on most systems.

You could use latarcyrheb-sun32 if you want a bigger font for boot messages and in console screens.
sysfont probably has a default font it uses if not specified, so you probably could do without the sysfont parameter without any problems.

Link to bug report:

Linux System Configuration

Firewall Configuration & Information

Firewall Configuration
The easiest way to configure the firewall setup is to use the GUI within X-Windows.
This command can be run from an X-Windows terminal with the "/usr/bin/firewall-config" command.

Firewall Control
To Start & Stop the Firewall, use the new "systemctl" command instead of the old style "service" command, such as this:

[root@server ~]# systemctl stop firewalld.service


[root@server ~]# systemctl start firewalld.service