Varinder Singh

Pungi to create Custom Spin

December 13, 2008 · Leave a Comment

The lab work is to create a custom spin cd. To create a Fedora  CD with Custom packages, I have used the tool named “Pungi”.It is a pretty simple job. The step are given below.

1. Yum install pungi

2. Created a configuration file named “f9-ks.cfg” that customize the spinning process.The packages can be listed here to include them to CD.
Kickstart File

3. As a root run the command

pungi -c f9-ks.cfg –nosource –force –ver=F9

4. This command would create the iso image.

5. Burn ISO image to CD.

This the great lab in that we learn how to create the custom GNU/Linux Installtion CDs

→ Leave a CommentCategories: Uncategorized
Tagged:

Func based Install() method version0.3

December 5, 2008 · Leave a Comment

My project work release 0.3

My project work is related to adding more functionality to func based yumcmd method. I am working on install() method for yumcmd module. The yumcmd module is great Package management system for remote computers. yumcmd is currently has update and Check_update features. I have contributed to yumcmd by adding new method install(). So the packages can be installed on remote computers with just single command.

e.g

#Func target.example.com call yumcmd install k3b

The code i have written is working well outside the Func. But some errors when i tried to run it under Func.

I am working on it to fix it.

For test purposes i have named it yumjhand.py

here is link to code
Yumjhand.Install(pkg=”K3b”)

→ Leave a CommentCategories: Uncategorized
Tagged:

DVD Slide Show in Fedora Linux 9.0

December 5, 2008 · Leave a Comment

It is very easy to make a DVD slide show for Pictures captured from Digital Camera.I have used the few simple steps given below.

1. #yum install  dvd-slideshow

2 #dir2slideshow -n “familyslideshow” -t 3 /dir-for-pics

The command above will create a text file, that will be used in next command.

“familysildeshow” is name of slide show. “-t 3″  is the time gsp betweem photo show.

3. #dvd-slideshow -n “familyphotos” -f <textfile-created in step 2>

this command gives me error of BIT Rate

To solve that i did the following steps

4 # vi /usr/bin/dvd-slideshow

go to line number 661

changed ac3=1 to ac3=0

again run the same command in step #3

it will create a file with extention .vob. In my case i got familyfotos.vob

its done.

Now to run the slide show we need “mplayer”

so steps are

1 # yum install mplayer

it will install mplayer

to run slide show the command is very simple

#mplayer familyfotos.vob

this command will run a slide show with all photos in a directory we have.

screenshot-mplayer

Slide show starts (Image above)

screenshot-mplayer-12

One of image from my slide show

we can add music to slide show with the same command with more options.

Its really a great utilty

→ Leave a CommentCategories: Uncategorized
Tagged:

Editing/Transcoding/Conversioning Video files in Fedora Linux

December 4, 2008 · Leave a Comment

For conversion the Open Source tool named “Kino” is used.
screenshot-untitled-kino

I found It is a great tool. I just try to open the Quicktime file with Kino. It just comvert that file as a .DV file.

It takes around 30-35 muntues on my laptop for a 10GB file.

Its very easy to Edit the part of Movie file.

Just click on “Trim” and it shows the following screen to allow Cut the part of movie.

screenshot-untitled-modified-kino

I used the small Blue colour Cutting tool at the lower side of movie to cut the portion. Then click apply and save changes.

Then i convert the movie into diffrent formats. This software provides many options for diffrent formats.

screenshot-untitled-modified-kino-1

It provides converstion option for Broadband and for mobile devices

screenshot-untitled-modified-kino-2

Finally I can say it is great tool for Video Editing

→ Leave a CommentCategories: Uncategorized
Tagged:

Xwin lab#08

November 29, 2008 · Leave a Comment

It is really interesting to know we can run application on local computer , but actually they are displaying remote computers.

e.g.

#xterm -display 192.168.1.10:1

this command will display an X terminal on remote computer’s display number 1, while the command is invoked form 192.168.1.100

and the vice versa is also true

we can run command on remote computers but their GUI will display on local computer.

ssh -X -C varinder@china firefox

its relly interesting.

but could not understand the following command

X :2 -query [server2's IP] &

X :2 -indrect [server2's IP]

→ Leave a CommentCategories: Uncategorized
Tagged:

Xwin-Lab #06 Fonts installation

November 23, 2008 · Leave a Comment

Fonts can be installed very easily. The method is

Step 1. Make a directory  named  .fonts in home directory .i.e. ~/.fonts.

step 2. Copy fonts in the directory created in step 1. Ie. in ~/.fonts

It will install new fonts and we can access these fonts in Open Office writer and other similar  applications.

Doubts:

I have tried the same method on my Dell laptop to view the news paper in Punjabi language. But its not working. (The same method working on my DELL Desktop)

Link to my lab work

My Lab work for Fonts Lab#06

→ Leave a CommentCategories: Uncategorized
Tagged:

Importing Picture from Digital Camera and Processing in Fedora Linux

November 22, 2008 · Leave a Comment

This Tutorial is explain the process of Importing Pictures from Digital Camera in Fedora Linux.

The list of Equipments and tools used in the process is given below

1. DELL P-4 2.8 GHz with 1GB RAM. Fedora 9.0.

2. Panasonic Digital Camera LUMIX MEGA O.I.S 6.0 Mega Pixels, 6X Optical zoom.

3. GIMP 2.4.7

screenshot-about-gimp

Here are the steps

1. Attached the digital camera through USB interface & Switched it on
2. Fedora 9.0 Automatically Detects the Camera and displays a window on Screen

Widows Popedup immidietly after swtiched Camera on

#3. After pressing the OK button it will start importing photos from digital Camera to show as thumbnails with “Open gThumb Image Viewer”

screenshot-import-photos

#4. Now We have option to select to Copy/store  the Pictures on computer in a folder of our choice under specific Categories .i.e Holidays, Family and Birthday etc.

categories

#5. Pressing OK button will start Downloading Pictures in folder we have selected.

importing-to-pc-1

#6. We can process image with GIMP (GNU Image Manipulation Program) , free open Source software from GNU.

Here are some example of processed image with GIMP

screenshot-untitled-60-rgb-6-layers-2816x21121

The above image is processed with Waves effet with GIMP

From “Filter –> “Animation”—>Waves

Here is Waves tools is in effect

screenshot-script-fu-waves

Screen shot of Filter—>Animation—>Waves tool

  • More Effect:- Crop Cut/Paste & Noise Effect to Images

effects2

Of course we can do much more i.e. crop & copy effects  in picture.

Above Picture is showing effect of “Simulation Glowing boundary of Neon Light”.

If can implemented with option .i.e. Filter—->Edge-Detect—->Neon

I hope My Blog post will helpful.

→ Leave a CommentCategories: Uncategorized
Tagged:

Torrents and Magnet Links

November 19, 2008 · Leave a Comment

Torrents
The Bit torrent is a peer to peer(P2P) file transfer protocol. It is widely used to distribute data/software at a large scale without the original distributor is bearing the cost of hosting, bandwidth, hardware etc. when a data is distributed using p2p protocol then each recipient participate in distribution of data to new recipient.

Bit torrent client is any computer that is using the bit torrent protocol. Each client is capable of requesting, uploading any type of file form the bit torrent network. A peer starts with downloading a file in pieces. These pieces not be contiguous from the file, rather these are random. With the help of tracker, peer can find other peers having the other pieces of file. So while communicating peers can, upload(distribute) a pieces of file while downloading the other.

Magnet Links

Magnet links is a way to make reference to resources available in peer 2 peer network. The link identify a resource (file) not by location rather by name, or hash value. So it is called URN rather than URL. Magnet links are differ from torrents, in that the users can just copy and paste the magnet link s in to email, messaging system. Magnet link can also be shared through websites.

References:

NationMaster.com
WikiPedia.org

Here is Link to Shell script for backup of files created in last 24 hours (1day)
Shell Script to Backup the files in User’s Home Directory

→ Leave a CommentCategories: Uncategorized
Tagged:

Python Game script to Guess a number

November 16, 2008 · Leave a Comment

Just a beginner in python programming.It has very simple way of defining data structures such a lists , lists of lists, arrays & arrays. Variable declaration is quite simple no need to declare a variable type and variable inilization. just use it. very simple.
Unlike C, there is not a lot of punctuation.
e.g.

while (True): and while True: Both statements are working well.

Here is link to python Game script

Python SPR-720 Number Game (python-game.py) Script

→ Leave a CommentCategories: Uncategorized
Tagged:

My project yumjhand.py module ver 0.2 release

November 14, 2008 · Leave a Comment

my project work contains yumjhand.py func (Fedora Unified Network Controller) based, module, written in python. It will adds more functionality to existing func based module yumcmd yumcmd.py . Yumjhand.py module contains a method named ‘install’. Not working completely yet. trying to make it work

here is link to code.

Link to yumjhand.py Module

sayhello() is another method in yumjhand module just to test the functionality. It prints the message Hello! World.
Link to Project Page
Project Page at Seneca WiKi

→ Leave a CommentCategories: Uncategorized
Tagged: