Thursday, March 15, 2007

how to get a software and what is yum????!

hello every body some of you are asking about how can i install a new software to the linux OS because it's a little new to some of you ,so i'll tell you .There are a program called yum . yum is the program in linux who is responsible of adding new software to the linux operating system and it is very easy there is something called repository (repository is the servers location that conatains the files yum uses to download the program from the internet ) when you install the fedora core 6 (fc6)you just added lots of repositories in the setup those repositories are relative to the core of the OS and its programs and to the updates and also to some of the extras but there is lots of program such as the codecs of the mp3 are not supported that for legal reasons
so there is another repositories that supports that kind of packages one of the biggest repositories is the livna
and you can add those reositories using the livna rpm click on the following link to download the livna repositories adder and then double click on it to add those repositories to your yum the fedora add/remove software will tell that it is not secure never mind about this message and tell him to continue anyway

http://rpm.livna.org/fedora/6/i386/livna-release-6-1.noarch.rpm


now you can use yum and you will find repositories to every thing you want

but how to use yum?
to use yum is very simple but you have to know excactly the package name
you can try googling for it and you will find excactly what is the package name if you know the package name you can then use yum with this commant open terminal and write this

yum install packagename


and it will search the repositories and find the package for you and install it this is very easy

Another way to find a package on the web ?
but if you wanna to install package that is not in your repositories you can do so if you google for it and you found the package int the .rpm format you can download it and then you can run it from your pc just

and you can run it from the shell (terminal) or by the gui to do it in the shell and that what i perefere you can run it using that command

rpm -Uvh packagename.rpm

and the instlation will start



There is also another way to do so ?
there is also some instalation files not in the .rpm format and it calles binnaries and it will be with the .bin format and you can run it directly from the shell goto its location and then i assume that the bin file you but it in the desktop you will write those commands in the shell

cd /
cd root
cd Desktop
packagename.bin
there is another way the software providers provide there packages that they provide there code so that you have to compile the code first to get the binnaries and then install it and now i think i covered every thing you need to install lots of packages isa

walid bakr

Monday, March 12, 2007

what about making linux for my dialy use

hello everybody linux those days have played a great rule in our life and it is the most secure os in the world in my opinion what make the linux home user not comfortable when he run linux to the first time
you feel that it is strange for you but it's not its only a new thing to you and i think if you get used to it you will always run it alone for your dialy use I will try to write things that i 've met and made me angry for the first time i ran the linux on my pc
1. mounting drives (the drives that have the ntfs file system and fat file system ( i don't think that anybody these days is formating using fat) will not apear in linux but there is a way to make it apear to you
2. you can't run .chm(compiled html ) files and there is a way to make those extension work with you
3. you can't run mp3 or lots of media on you linux and there is a codecs and libs and programs that support you doing these in the next posts i will try to offer you the solution of those problems isa


walid bakr

HOW to mount NTFS file system into your fedora core

hello every body
this is how to mount ntfs file system into your linux(fedora core 6 in this case)
firist you must be sure that your kernel supports the ntfs reading before mounting
if not you must install the following programs from yum goto the shell (terminal )
and write
yum install fuse fuse-libs ntfs-3g ntfsprogs ntfsprogs-gnomevfs
after installing those packages you can now mount the ntfs goto the / folder and creat 2 empty files firist /C
and the second /D (i asume that you have two drives)
and then you must check that what is the name of your drives
run this comannt from your terminal
/sbin/fdisk -lu /dev/hda |grep NTFS
the result in this case will be like this
/dev/hda1 * 63 20482874 10241406 7 HPFS/NTFS
/dev/hda5 20482938 133757189 56637126 7 HPFS/NTFS
now we now that we have to mount the drive /dev/hda1 (C) and the drive /dev/hda5 (D)
we now can mount the drives to mount write this commant on the terminal
mount /dev/hda1 /C -t ntfs-3g -rw -o umask=0000
mount /dev/hda5 /D -t ntfs-3g -rw -o umask=0000
of course you will change the name of the drives according to your drives names
note that if you done all of this you will have fun with you drives till you close your computer after you log again on, you will find that your drives are not mounted so you must add 2 statements at the end of of the file called fstab to do so write this command
gedit /etc/fstab
it will open a text editor then you must add those lines to fstab now i write those lines because of the example
/dev/hda1 /C ntfs-3g rw,defaults,umask=0000 0 0
/dev/hda5 /D ntfs-3g rw,defaults,umask=0000 0 0
you must do it as your drives numbers and your mounting points
i hope that you understand and this post is good for you

walid bakr

Wednesday, February 21, 2007

From junior to junior Developer

Actually when i thought to write such an article i thought of me I am a junior developer and when I see the books I found a lots of books talking about from expert to expert and from developer to developer and i thought that if we begun to write an article cause I'm not qualified to write a book it will be great for all the people who r new in the programing and developing first i will not start from zero because i think my audience is good at that and i 'll not be talking about languages because there are too many on that what i 'll be talking about is how to think in a big problem not in size but also in its degree

to think in a problem first thing u get to do is to divide it into small problems
and solve it with paper not with computer and see what you are doing with your mind and make the computer think the way you are thinking

example

if u asked to make a program to convert from decimal to binary system using the c programing language
i know that it is very hard to juniors
first what I'm gonna to do I'm gonna to do it with paper
what u gonna to do on the paper u gonna to do that let x = 8

8 | 2 0
4 | 2 0
2 | 2 0
1 | 2 1
0 // and here the problem is over u get it back and it is represented in 1000

do the same on c

int x ;
scanf("%d",&x);
//if see above u will find that you have terminated the program when u find zero tell the computer to //terminate to when it finds zero Like this
while (x != 0)
{// what u did on paper was is to divide and then u get the remainder but in programing u must
// u must think how will u make the program know the answer first so u must take the mod //first and then make the devision like this
y = x % 2;
x /= 2;
printf("%d",y);
}

now the problem didn't solved yet so u have to think how to solve it the now the numbers is written in reverse how to make it written in the right way


walid bakr