Friday, August 25, 2006

Making Freedom work in FC5.

In DA-IICT the firewall configuration forces us to use python in addition to freedom to bypass proxy, so some extra work needs to be done!
Python comes already installed in Linux distributions. All you need to do is this:
1. Copy as such your aps098 folder(or simply main.py and .cfg files) from windows in desktop.
Your proxy settings are assumed to be correct.
2. cd aps098/
3. Type: python main.py
4. Done. Python should be running now.(Don't close the terminal)


For freedom you just need a jar file of freedom which is easily obtained from your Program files/Your Freedom folder in windows.
1. Copy freedom.jar to desktop(linux).
2. Browse to desktop. (Make it your current directory)
3. Type: java -jar freedom.jar
4. Freedom should work if your java installation is proper.
5. Configure it as you do in windows.


Once you have got freedom working you can make "yum" updater of FC5 work by editing yum.conf.
1.gedit /etc/yum.conf
2.
Add these line at the end:
# The proxy server - proxy server:port number
proxy=http://localhost:8080
# The account details for yum connections
proxy_username=
proxy_password=

If everything goes fine you can successfully update your system via yum.

Few Basic Steps!

Here is the collection of basic softwares and libraries one needs to make FC5 installation capable of all activities(in fact much more!) we do in windows. The pdf mentioned in previous blog is a good guide for those who are not familiar working with commands.

-->Make sure you selected customised selection of softwares and packages to be installed while installing Fedora. Otherwise KDE will be missing!(Very IMP Evironment) and several other imp tools you might want to use.

Broadly you need to do the following:
1. Install java.(jre-1_5_0_08-linux-i586.bin)
(To make it usable by applications you need to do some more things)
Read fedora core installation notes pdf "Java" section to know how to do that.
Whole installation procedure is listed in pdf.
2. Install Microsoft Trutype fonts in Microsoft_Core_Fonts Folder.
(For those who have doubts regarding how to do that, refer the pdf.)
3. Install compatibility library namely, "compat-libstdc++-33-3.2.3-55.fc5.i386.rpm".
4. For Enabling NTFS mount install "kernel-module-ntfs-2.6.15-1.2054_FC5-2.1.26-0.rr.10.0.i686.rpm"
5. Multimedia codec Install: inside Multimedia Codecs folder.(It's a source file so you need to follow the standard source installation procedure.) Those who can't do it see detailed instructions in pdf.
6.Install Acrobat Reader:"acroread-7.0.5-2.2.fc5.rf.i386.rpm" from command line. Do get into habit of command line installation in FC5. You would frequently need it!
7. Install Mplayer First. It's Non-GUI media player(but very powerful) over which Kplayer would work.
8. Install KPlayer. You can play any file now.
9. Install Real Player.(BIN File)(Refer pdf)
10. Install VLC if you need. Though it needs a lot of libraries to be installed first.)
11. Once you have installed freedom, you can use gaim client already present in FC5 to log into your favorite messenger.

Get Going!
Hail Open Source!

Tuesday, August 15, 2006

An Excellent Guide on FC5!

First time Fedora users are sure to have some frustrating moments. But if handled systematically it all becomes easy infact. This installation gude helped me in braking most of the ice. It's a nice compiled help on fedora right from installing it to adding crucial components which make fedora work for you. Adding media capabilities, updating java and everything that you need to know to start with is contained in this.


http://stanton-finley.net/fedora_core_5_installation_notes.html

This will surely help a lot!


It's worth looking at this forum to sort ypur queries:

http://stanton-finley.net/forums/viewforum.php?f=2

Basic Commands in FC5

Here are some basic commands that one needs often but remembering them is quite tedious for a beginner. So here I post these for help:

to run a jar file:
java -jar

installing tar packages:
tar -zxvf

compiling source:
extract by tar then go inside the uncompressed dir, type

./configure

then:

make
make install

(after installation executable file goes to /usr/bin or usr/sbin

rpm installation from command line:
rpm -ivh

command for overriding dependencies:
rpm -ivh --force kplayer-0.5.3-0.lvn.1.3.i386.rpm

mounting ntfs partition:
mount /dev/hda5 /media/winxp -t ntfs -r -o umask=0222

For automount:
Edit your /etc/fstab permanently:

/dev/hdb1 /mnt/windows vfat umask=0000,dmask=0000,uid=0002,gid=users,users 0 0


or

/dev/hdc1 /mnt ntfs ro,defaults,umask=0222 0 0

/* don't forget to add a new line char at the end of line*/

starting smb:
chkconfig --list smb
/etc/init.d/smb start
or restart

ref: http://www.reallylinux.com/docs/sambaserver.shtml



list hard disks and partitions:
fdisk -l

make the file executable with the command
Code:

chmod +x /usr/bin/hello.py
chmod +x


Code:for compiling python files

python hello.py

the above method will work if you are in the same directory as the program. else do it like this
Code:

python /full/path/to/hello.py


adding new users:
run 'useradd jsmith' to create a login for him.

yo- set the password for this account (they can change it themselves later) - you can do this by running 'passwd jsmith'


The next thing you need to do is make a home directory for them. This will normally just involve running:

mkdir /home/jsmith
chown jsmith:users /home/jsmith

This creates a directory with the same name as the login account beneath the /home directory - then changes it to be owned by the user.

If you omit the 'chown' command the user will not have permission to save files inside their own home directory!

Have a nice day tinkering with Fedora!