• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

how to look at source code in linux?

slinetz

Senior member
how to look at source code in linux?

i can't find any file folder says linux source code

i am newbie please help

and i would like to know how to install new software in linux.

it is kinda hard please help
 
It depends on where you install the source. Usually it is around /usr/src for kernel stuff atleast. And installing software in linux can be pretty easy. If you are using an RPM based distro, just "man rpm". If you are using something else, just "tar -zvxf whatever.tar.gz&&cd whatever&&./configure&&make&&make install".
 


<< Let us know what distro you are using and it would be alot easier to help you. 😀 >>



What distro, what software, what kind of errors you are getting, etc. 🙂
 


<< What distro, what software, what kind of errors you are getting, etc >>



You know what I mean. 😎
 


<< i am using red hat linux 7.0

no error because i never try to install or upgrade the software
>>



there is your problem! Try it and see what happens.
 


<< so do i insert cd and do what? >>



What are you trying to install? What format did you download it in? Without telling us what you are trying to do there isnt much we can do to help.
 


<< i tried to install

word perfect

its file name is

xxxx.gz

so what i suppose to do?
>>



.gz is gziped. "gunzip xxxx.gz" should work to unzip it. Then follow the instructions.
 
so i basically go to mnt cdrom and the wordperfect folder

type

gunnzip xxx.gz

it says it is a read only file

i tried to change mod but it is on a cdrom so i can't change mode so what i should do next?
 
In Red Hat, you have different schemes for installing software. Any file that is *.rpm, you install it by doing a rpm -ivh filename. If the file name is *.tar.gz, you need to do a tar -xvzf filename. If the file is simply gzipped (.gz extension), then you can do as monkey said and do a gunzip filename

Sounds like you have alot of learning to do. 😀
 


<< so i basically go to mnt cdrom and the wordperfect folder

type

gunnzip xxx.gz

it says it is a read only file

i tried to change mod but it is on a cdrom so i can't change mode so what i should do next?
>>



Ok, the command is not gunnzip, it is just gunzip. "cp xxxx.gz ~/ && cd && gunzip xxxx.gz"
 


<< so i basically go to mnt cdrom and the wordperfect folder

type

gunnzip xxx.gz

it says it is a read only file

i tried to change mod but it is on a cdrom so i can't change mode so what i should do next?
>>



You will probably need to copy the file onto your HD where you have write permissions. You cannot write to a CD, obviously. This is what you should do:

1. cd /mnt/cdrom
2. cp XXX.gz /home/username (or whatever directory you want)
3. gunzip /home/username/XXXX.gz (again or whatever directory you copied it to)

It will then extract into its own directory. From there, look for any executable file by doing a ls -l. It is probably called setup, install or something like that.
 
now after i unzip the file in my home direcotry

xxxx.gz becomes xxxx

what i suppose to do ?

it is not a folder nor a exe file
 


<< now after i unzip the file in my home direcotry

xxxx.gz becomes xxxx

what i suppose to do ?

it is not a folder nor a exe file
>>



Are you sure it isnt an executable? Try "chmod 700 xxxx && ./xxxx". If it is an executable binary it should start. It is surprising there are no instructions out there on thsi...
 
You can see if it is an executable file by doing ls -l. This will display all properties about all files in the directory. You may also try ./filename to execute the file.
 


<<

<< It is surprising there are no instructions out there on thsi... >>



LOL, smartass. :Q
>>



Yeah. but I have a good reason to be. I only like holding the hands of hot women 😉
 


<< can't execute binary file
after i change the mod and do a

./xxxx

please help me further thanx
>>



Try "ls -lF xxxx" and give us the output.
 
Here are a few links to help you out, slinetz. I am off work here in a bit so the list isn't going to be that big and I sure as hell ain't helping you on my off time. 😀

1
2
3

It's really neat how you can search for these things and find them in a matter of seconds. 😀 You oughtta try it sometime.
 
Back
Top