Friday, February 5, 2010

How to install VNC server on Fedora

to install it:
yum install vnc-server

as root edit /etc/sysconfig/vncservers
VNCSERVERS="3:yourusername"
VNCSERVERARGS[3]="-geometry 1024x768 -depth 16"

with this configuration, vnc server will listen on port 5903 for user yourusername
to setup a multiple vnc server:
VNCSERVERS="1:username1 2:username2 3:username3"
VNCSERVERARGS[1]="-geometry 1024x768 -depth 16"
VNCSERVERARGS[2]="-geometry 800x600 -depth 8"
VNCSERVERARGS[3]="-geometry 800x600 -depth 16"

in this case vncserver ill listen on ports 5901 (for username1), 5902 (for username2) and 5903 (for username3).

to set the password, login as user, then:
vncpasswd

start the service as root with /etc/init.d/vncserver start

as user edit /home/yourusername/.vnc/xstartup
and uncomment the following lines:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

and restart the service as root: /etc/init.d/vncserver restart

now you'll be able to connect from a vnc client at your_vnc_server_hostname:590x

Tuesday, September 1, 2009

Adding a new disk to a Linux Fedora machine

as root:
fdisk -l to find the new disk.

You'll get something like this:

Disk /dev/sda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000a121f

Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 1044 8185117+ 8e Linux LVM

Disk /dev/sdb: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/sdb doesn't contain a valid partition table


So the new disk is /dev/sdb

To create a new partition:
fdisk /dev/sdb
n (new partition)
p (primary partition)
1 (partition 1)
hit enter (first cylinder)
hit enter (last cylinder)
w (write changes and quit)

now check the new status with
fdisk -l

and now you'll get something like this:

Disk /dev/sda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000a121f

Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 1044 8185117+ 8e Linux LVM

Disk /dev/sdb: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x6fad050b

Device Boot Start End Blocks Id System
/dev/sdb1 1 1044 8385898+ 83 Linux

Now format the new partition
mkfs.ext3 /dev/sdb1

Create a new folder to mount the new partition:
mkdir /disk2

and edit /etc/fstab to mount it after the next reboot adding this line
/dev/sdb1 /disk2 ext3 defaults 1 2

then reboot

Wednesday, April 22, 2009

Tucan: download manager for Rapidshare & Megaupload in Fedora 10



Tucan is a free software written in python to manage downloads and uploads in rapidshare, megaupload etc. It's lightweight, multiplatform and support premium accounts.

You can download it from here

To install it in Fedora 10:
  • install all dependencies: yum install python pygtk2 python-imaging tesseract tesseract-langpack librsvg2
  • unpack the tarball: tar zxvf tucan-.tar.gz
  • cd tucan-
  • as root: make install
  • to launch it (not as root): tucan
  • to uninstall it (as root): make uninstall

Wednesday, April 8, 2009

How to Enable Auto Login on Fedora 10


as root add these lines to /etc/gdm/custom.conf (replacing 'youruser' with your user name)

[daemon]
TimedLoginEnable=true
TimedLogin=youruser


if you want to get an instantaneous login edit /etc/gdm/gdm.schemas and set the the value to 0, the default is 30.


<key>daemon/TimedLoginDelay</key>
<signature>i</signature>
<default>0</default>


reboot your pc

Wednesday, April 1, 2009

From mkv to vob - How to convert a matroska file to dvd in Linux Fedora

  • add the rmp fusion repository. here a simple tutorial to do it.
  • as root install avidemux, and some other useful software: yum install avidemux lame gstreamer-plugins-bad gstreamer-plugins-ugly dvdauthor
  • launch Avidemux: you 'll find a shortcut to Avidemux in your Application Menu -> Sound & Video
  • open your .mkv file. choose "NO" at this message

  • choose "YES" at this message

  • Select Auto -> DVD and click "OK"
  • Select File -> Save -> Save Video... and save it as your_file_name_here.mpeg
  • at the end of the task, create a new xml file with this structure (obviously you have to replace the filename with your mpeg filename) and save it as movie.xml:

    <dvdauthor>
    <vmgm>
    </vmgm>
    <titleset>
    <titles>
    <pgc>
    <vob file="filename.mpeg" />
    </pgc>
    </titles>
    </titleset>
    </dvdauthor>

  • in your terminal move to the folder where you saved the mpeg file
  • not as root dvdauthor -o outputfolder -x movie.xml
  • in outputfolder you'll find AUDIO_TS and VIDEO_TS with the vob files ready to be burned