Difference between revisions of "Fedora Tips"

From TheBestLinux.com
Jump to navigation Jump to search
Line 14: Line 14:
 
Edit /etc/php.ini and add:<br />
 
Edit /etc/php.ini and add:<br />
 
date.timezone = America/Los_Angeles
 
date.timezone = America/Los_Angeles
 +
<br /><br />
 +
Play video from webcam using MPlayer command line:
 +
<pre style="color:blue">mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0</pre>
 +
This example assumes that your webcam device is at /dev/video0
 
<br />
 
<br />
 +
The resolution (width=??? & height=???) should be chosen to match the output of your device.
 
<br /><br />
 
<br /><br />
 +
<h2>Use Mencoder to Record with MPlayer</h2><br />
 +
<h3>Without Audio:</h3><br />
 +
<pre style="color:blue">mencoder tv:// -tv driver=v4l2:width=320:height=240:device=/dev/video0 -ovc lavc -o webcam.avi</pre>
 +
<br />
 +
<h3>With Audio:</h3><br />
 +
<pre style="color:blue">
 +
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
 +
</pre><br /><br />
 +
<h3>More Info on Above:</h3><br />
 +
Type 'man mencoder' for more info on the audio options.
 +
<br />
 +
/dev/dsp1 refers to the webcam USB Audio device.
 +
<br />
 +
/dev/dsp refers to the sound card.
 +
<br /><br /><br />
 
Email Setup with Postfix, Dovecot & MySQL:
 
Email Setup with Postfix, Dovecot & MySQL:
 
<br />
 
<br />

Revision as of 05:23, 16 February 2015

Fedora Linux Tips, Tricks, Fixes & More!

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


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

Manual Network Configuration Using the Command Line</3>


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="file:///home/jamie/ERMA/Latest_Email_Server_Setup_Docs_Info/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!
OR
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:

/boot/grub2/grub.cfg
/etc/sysconfig/i18n
/etc/default/grub

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:
https://bugzilla.redhat.com/show_bug.cgi?id=799401