Pages

Showing posts with label howto. Show all posts
Showing posts with label howto. Show all posts

Sunday, February 15, 2015

HowTo Install VLC on Fedora 18 19

Step1:
su -
yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-18.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-18.noarch.rpm

** if you are getting a "Couldnt resolve host" response to this then simply do Step1a

     Step1a:
       gedit /etc/resolv.conf
       look for the list of the nameserver and add the line below to the top of the list
       nameserver 8.8.8.8

       your /etc/resolv.conf should look something like this
       # Generated by NetworkManager
       domain smartbro.net
       search smartbro.net
       nameserver 8.8.8.8
       nameserver 121.1.3.81
       nameserver 121.1.3.16
       nameserver 121.1.3.66
       # NOTE: the libc resolver may not support more than 3 nameservers.
       # The nameservers listed below may not be recognized.
       nameserver 192.168.1.1


Step2:
yum install vlc -y

Enjoy!!
Read more »

Saturday, February 14, 2015

HowTo Transfer files via SSH

If you need to transfer some files from one linux box to another using SSH.

Transfer foobar.avi from a remote computer to your computer:
scp batman@192.168.1.100:/home/remotepc/foobar.avi /home/foobaring/foobar.avi
"dont forget the colon between 192.168.1.100 and /home/remotepc"

Transfer foobar.avi from your computer to a remote computer:
scp /home/foobaring/foobar.avi batman@192.168.1.100:/home/remotepc/foobar.avi

"dont forget the colon between 192.168.1.100 and /home/remotepc"

Tranfer folders from a remote computer to your computer:

scp -r batman@192.168.1.100:/home/remotepc/remote-folder /home/foobaring/local-folder
"this will copy the folder remote-folder and its contents into local-folder in your computer"

Stuffs:
batman - user on the remote computer
192.168.1.100 - ip address of the remote computer
/home/remotepc/foobar.avi - file that you want to get from the remote computer
/home/foobaring/foobar.avi - location where you want to save the transferred file in your computer
-r - recursive, used for copying folders
Read more »

Thursday, February 12, 2015

HowTo Select an item in perl Gtk2 IconView


You can get the iterator when you add / remove data on the liststore

$ls - is a liststore
$iter - is a iterator
$iv - is an iconview


my $path = $ls->get_path($iter);
$iv->select_path($path);


Read more »