Archive for the 'Linux' Category

VOB to FLV

Jan 18, 2010 in Linux, Webdev

A useful line of code to convert VOB files to FLV in Linux

mencoder inputfile.VOB -of lavf -ovc lavc -lavcopts vcodec=flv:vbitrate=150 -ofps 25 -oac mp3lame -lameopts abr:br=32 -srate 22050 -vf scale=720 -o outputfile.flv

The “flv” format files can only support 8000, 22050 and 44100 I believe for the available -srate.

Found via http://wiki.soslug.org/wiki/vob_to_flv

Fedora 11 – things to remember

Aug 06, 2009 in Linux

General

Press space on boot to enter grub menu
Select different run-times by Ctrl-Alt-1, Ctrl-Alt-2, Ctrl-Alt-3, etc..

Turn off PC speaker (beep)

su
rmmod pcspkr
echo "blacklist pcspkr" >> /etc/modprobe.d/blacklist

Compiz Fusion On A Fedora 11

Installation guide

Install Skype

su -c 'gedit /etc/yum.repos.d/skype.repo'
copy the following lines:
[skype]
name=Skype Repository
baseurl=http://download.skype.com/linux/repos/fedora/updates/i586/
enabled=1
gpgkey=http://www.skype.com/products/skype/linux/rpm-public-key.asc
gpgcheck=0

Then run these commands in terminal
su -c 'yum install skype'
su -c 'yum update skype'

Virtualbox 3

Installation guide

to be continued

Install PhpGedView 4.1.2

Aug 22, 2008 in Linux, Webdev, php

Install from Ubuntu repository
sudo apt-get install phpgedview

Configure PhpGedView with MySQL
sudo gedit /etc/phpgedview/config.php

$DBTYPE = "mysql";
$DBHOST = "localhost";
$DBUSER = "phpgedview_my_family";
$DBPASS = "password_for_dbuser";
$DBNAME = "phpgedview_my_family";

Setup virtual host
sudo gedit /etc/apache2/apache2.conf

Alias /gedview /usr/share/phpgedview/www
<directory /usr/share/phpgedview/www>
Options FollowSymLinks
AllowOverride Limit Options FileInfo
DirectoryIndex index.php
</directory>

Restart Apache
sudo /etc/init.d/apache2 restart

Ubuntu 8.04 repository bug: Fails to install the root .js files, copy these scripts to /usr/share/phpgedview/www

symbolic links

Dec 05, 2007 in Linux

ln -s [TARGET DIRECTORY OR FILE] ./[SHORTCUT]

Example
ln -s /usr/local/apache/logs ./logs

Unlink
unlink logs

Create a Samba User

Oct 31, 2007 in Linux

Run the smbpasswd utility to create a samba password for the user.

sudo smbpasswd -a <username>