Everything that includes the source code of Unix programs for example compiling, installing or how to retrieve the code for studying.

learn more… | top users | synonyms

2
votes
2answers
990 views

Use a specific interface for a specific destination subnet (source IP setting)

I am looking for some sort of routing trickery to set a specific source IP: Local machine has two IPs; Eth1: 192.168.0.1 Eth1:2 192.168.0.2 Default gateway is 192.168.0.254 via Eth1 Remote subnet ...
0
votes
1answer
72 views

Browse Bash files for a distribution

With my current OS, my LANG value is set by /etc/profile.d/lang.sh I am curious of the code for another distribution, Linux Mint for example. How could I browse this code online, or perhaps ...
0
votes
1answer
155 views

Unable to add source via command line

I am trying to install latest version of glusterfs in Ubuntu by running this command: apt-add-repository ppa:semiosis/glusterfs-3.2 It does not give any result. The session won't even close ...
2
votes
1answer
466 views

Chat source code

Source code of chat program (used for dialog with modem) is open? If it is so, where I can find it? I'm try find it, but no success.
4
votes
2answers
166 views

What is the 't' folder?

I'm mainly a Windows guy, programming C#, but I often do use technologies that were intended for Linux machines like git, MySQL, perl scripts, memcached, php, etc... And therefore I am exposed to ...
4
votes
1answer
103 views

Where should I keep the source files of the compiled applications?

I use Slackware Linux and I install most applications from the source. I would like to know how to manage the source files, specially the header files, so they are available to other applications.
3
votes
1answer
479 views

Confused about ident

I inherited a bunch of files that begin with the following statement at the top Ident:/some/path/to/a/file Ident seems to be related to C coding and make files but I am not really sure. None of the ...
1
vote
2answers
2k views

Running “patch” without generating *.orig and *.rej files

Is it possible to tell patch not to generate .orig and .rej files? I find it extremely annoying that patch creates these.
1
vote
2answers
974 views

Where to find the source code for ps?

I want to check out the source code for commands such as ps. It seems to be impossible to search LXR (linux.no) for "ps". Where do I find it?
-1
votes
2answers
380 views

source script as command [closed]

For some reason (?), often when I write scripts nowadays they do not work, or work only in part, and then I try with . or source and they work perfectly. I'm unsure what is causing this as the scripts ...
13
votes
3answers
1k views

Given a git patch id, how to find out which kernel release contains it?

Assume I have some issue that was fixed by a recent patch to the official Linux git repository. I have a work around, but I’d like to undo it when a release happens that contains my the fix. I know ...
2
votes
4answers
8k views

How to start changing linux source code to make custom OS?

I am doing Under Graduation in CS Major, have medium level knowledge in C, C++, and Java and also learned some operating system concepts (as they are in my course syllabus). I have heard that we can ...
1
vote
1answer
825 views

Source code of original Netscape Navigator

Where is it possible to download the source code of the first open source browser Netscape Navigator released in about 1998? I already searched for it and wasn't able to find the original version of ...
1
vote
1answer
210 views

Getting the source for something that doesn't seem to have an associated package?

I recently just wanted to look at the source code for sha1sum. alec@ROOROO:~/tmp-source-study$ apt-get source sha1sum Reading package lists... Done Building dependency tree Reading state ...
2
votes
1answer
178 views

How should I install software from source so that I can make my configuration manageable and reproducible?

I work with a lot of scientific software on Linux distributions (normally Debian variants and Red Hat variants). In order to maximize performance and get access to the latest features, it's often ...
10
votes
2answers
733 views

Where is best place to find sources of standard linux command line tools?

Into: I like learning by reading sources. But it's tiring of searching them across internet splited on many many different project sites. I'd love to see central browsable repo with sources of many ...
1
vote
0answers
553 views

Build Chromium from source

I'm using Fedora 16 and I've successfully compiled Chromium from source (the first time I compiled something from source) a while back following these instructions: ...
1
vote
1answer
2k views

build-dep firefox not working on Linux Mint

I'm on the latest Linux Mint 12. In order to compile Firefox I need to do a sudo apt-get build-dep firefox which isn't working and showing the following error: $ sudo apt-get build-dep firefox ...
0
votes
0answers
832 views

How to install TortoiseHG on RHEL 5.3 from source?

I have been trying to install TortoiseHG with the yum command on my RedHat system and have been struggling. I thought perhaps I should install it from the source. I used the instructions here and ...
8
votes
7answers
29k views

How to install .tar.bz and .tar.bz2 packages?

I would like to know how to install .tar.bz and .tar.bz2 packages on Debian, please give me a complete explanation.
1
vote
1answer
629 views

Install newer version of application in $HOME without root access and linking to installed app

I am new to installing application from source and just learning the best practices to do so. I have this linux box without root access with a quite old emacs, so I downloaded the latest version and ...
5
votes
2answers
1k views

How to grep on source code without catching comments

I search a way to grep on source code without having sometimes false-positive because of comments. For instance if I search on foo on this .c source code : /* * foo has changed [...] and is now a ...
9
votes
2answers
2k views

Why are there no -dev packages in Arch Linux?

I understand that source based distributions like Gentoo or Slackware do not need *-dev versions of programs. They include the source code as well as header files for compiling everything locally. ...
0
votes
1answer
285 views

Clang/LLVM Install Within Slackware?

I would like to install the Clang/LLVM compiler suite within Slackware since I use it as my default C conpiler for my C programming assignments. I am currently building it within a build directory ...
9
votes
1answer
3k views

What does a kernel source tree contain? Is this related to Linux kernel headers?

In books, I typically read references to the Linux Source Tree at /usr/src/linux with the usual set of subdirectories (arch, block, crypto, ...). I was expecting this tree to contain the binary files ...
1
vote
0answers
125 views

GNOME / GTK app installed from source runs with default theme

I've installed a GNOME / GTK application from source (GitG 0.2.5 in Linux Mint 11) - after resolving all the dependencies, I successfully ran the application. The dependencies were also installed ...
2
votes
1answer
1k views

Unpacking kernel-source rpm off-system (OpenSuse)?

I'm using OpenSuse 11.2 from a LiveUSB USB flash/stick, which arguably has not much place on it. I need to get the Linux sources for this version of OpenSuse, as they are needed to build a driver for ...
4
votes
3answers
3k views

Source code of netstat

Can I view the source code of netstat on my Linux machine?
2
votes
1answer
2k views

Why does 'make' complain about a missing rule when I try to build a program from source?

I am a Linux novice, and I am attempting to compile scientific software called DL_POLY_Classic. I downloaded the zip file dl_class_1.6.tar.gz and unzipped it using the command tar xvzf ...
1
vote
1answer
360 views

Pipe Python Shell to source-highlight

When I try to make the Python shell get color: python 2>&1 | source-highlight --failsafe -f esc -s python the >>> prompt seems to be always delayed by 1 command. Why is this ...
9
votes
2answers
569 views

What languages are used to build Unix commands?

Examples of commands I'm referring to are ls, pwd, and cd. Also, how are these built? Do you have an example?
0
votes
1answer
261 views

Where to find this specific source (centos 2.6.18-53.el5PAE)

okay all my looking around on the normal kernel site ftp can't find it. I need specifically, the PAE version. I am compiling virtualbox and if you don't use the right source you get this lovely: ...
2
votes
1answer
1k views

Linux source, where are sys_umount and sys_mount system calls? [duplicate]

Possible Duplicate: Understanding the linux kernel source I am sure that I must be missing something, here. I cannot for the life of me find the source code for these system calls. I can ...
1
vote
2answers
202 views

Prevent a package from being installed?

I installed Python 2.7 from source. A dependency of some packages is python. Is there a way I can prevent the install of a lesser version of Python, or let apt know it's already been fulfilled?
4
votes
3answers
1k views

Pointers in Learning Linux 0.01 Source code

I am trying to learn some real programming in C and the concepts of Linux. So i thought i will try by looking at the Linux kernel 0.01 version source. In my understanding, I could find the scratch ...
1
vote
2answers
1k views

How / where to get sources for kernel-2.6.36-gentoo-r4 in Gentoo Linux distribution?

How can I get (i.e. what command to use) sources for kernel-2.6.36-r4 (uname -a says that it is version 2.6.36-gentoo-r4), or where from I can download it? I want to compile the userside 'perf' ...
3
votes
1answer
126 views

Link a dependency in Synaptic to the one already installed from source

I want to install SVN version of Quantum GIS and already I have a SVN version of GRASS GIS. As instructed in QGIS Wiki here, I added the qgis repository to my sources.list file. Now I am able to see ...
4
votes
3answers
4k views

Where can I find the source code of libgio?

I want to study how its GFileInfo components works.
1
vote
1answer
86 views

Where can I find the source code of “GFileInfo” functions like “g_file_info_get_content_type”?

I want to read the source code of a GFileInfo function: g_file_info_get_content_type ( GFileInfo *info ); Could somebody tell me where to find the source code file? I search the glibc code by didn't ...
2
votes
2answers
283 views

OpenBSD patch system

If I install OpenBSD from CD-ROM: http://www.openbsd.org/ftp.html with install48.iso then is it patched? All 10 patches from here are in the ISO file? If those are not included, how can I apply ...
6
votes
2answers
1k views

What are the advantages of building tools/libs from source?

By building from source do you gain any benefits? Is the code better optimized to your hardware architecture? Is it optimized better in general? Why would someone choose to build from source rather ...
6
votes
2answers
2k views

Where can I find the source code for `uptime`?

I am learning Python. Till now I've been doing only basic Python coding. A day ago, I checked python implementation of tree command. Suddenly I thought of creating a Python clone for uptime. I don't ...
1
vote
2answers
169 views

How can I compile unclutter to my embedded linux? (newbie)

I got the source code of unclutter using apt-get source unclutter, and copied the files to my embedded system. Now, how can I compile it? --update I've tried this answer: How to compile and install ...
3
votes
2answers
5k views

Passing a variable to a bash script when sourcing it in another bash script?

Suppose I have in main.sh: NAME="$HOME" if [ -f "$HOME/install.sh" ] then . "$HOME/install.sh" "$NAME" fi and in install.sh: echo $1 This is supposed to echo /home/user/, but it echoes ...
14
votes
5answers
6k views

determining path to sourced shell script

Is there a way for a sourced shell script to find out the path to itself? I'm mainly concerned with bash, though I have some coworkers who use tcsh. I'm guessing I may not have a ton of luck here, ...
1
vote
3answers
87 views

What's up with the metadata in the source? Are there tools for it?

I'm comparing two different kernel versions (one official, one from a manufacturer); there are thousands of file whose only difference is in metadata in the files. The metadata looks like '$:Key: ...
5
votes
4answers
103 views

Get list of required libraries when installing something from source

When installing something from source (say, Ruby 1.9.2), what command can I run to get a complete list of all the dependencies needed to install that application? Is this possible?
3
votes
3answers
104 views

Where can I find sources for

Emacs lisp source code for .elc files? e.g. cal-mayan.elc Files in the /bin directory? e.g. cat, split, and echo
279
votes
7answers
24k views

Understanding the Linux kernel source

I am trying to understand how a function, say mkdir, works by looking at the kernel source. This is an attempt to understand the kernel internals and navigate between various functions. I know mkdir ...
3
votes
1answer
468 views

What does 'mergemaster' do that 'make distribution' doesn't?

After calling make installworld (or make world), there are two ways of updating source files in the new world: calling mergemaster -p or make distribution. I know that mergemaster calls make ...