Everything that includes the source code of Unix programs for example compiling, installing or how to retrieve the code for studying.
0
votes
0answers
30 views
How to find code called by suspend_ops->enter(state); [migrated]
I am trying to understand the linux kernel power management at a low level and have finally got stuck since my C is not very strong. I am able to follow the code down to where it calls ...
0
votes
1answer
28 views
debian cannot install kernel source
I want to use debian linux for my laptop again. So I took my old debian 6.0 cds and installed it.
From the last time I know, that I have to build the driver for my Atheros AR8151 Gigabit Ethernet ...
0
votes
0answers
17 views
Nested Linked List in Kernel [closed]
I have a Linux kernel (3.2) module that requires a nested linked list. The main linked list keep track of target programs. For each target program, we need to keep track of another linked list which ...
4
votes
2answers
59 views
printing .cpp file from command line using emacs
The goal is to print a set of *.cpp files on a network printer, but... in a way that the (color) printer prints the files like they appear in the c++ editor including the colors and highlighting. And ...
2
votes
1answer
79 views
How do I remove/uninstall a program that I have complied from source? [duplicate]
How do I remove a program that I have compiled from source using the ./configure; make; make install method? Does it matter whether I have kept the original directory that the source was stored in or ...
0
votes
2answers
90 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
58 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
74 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
211 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
133 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 ...
2
votes
1answer
86 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
155 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 ...
0
votes
2answers
410 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
382 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
175 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 ...
7
votes
3answers
355 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 ...
1
vote
4answers
3k 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 ...
0
votes
1answer
292 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
134 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
130 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 ...
9
votes
2answers
444 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 ...
0
votes
0answers
225 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
925 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
468 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 ...
4
votes
7answers
9k 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
272 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
480 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 ...
6
votes
2answers
536 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
212 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 ...
4
votes
1answer
1k 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
92 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 ...
1
vote
1answer
707 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 ...
2
votes
3answers
2k views
2
votes
1answer
1k 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
285 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
512 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
206 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
789 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
179 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
760 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
811 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' ...
2
votes
1answer
106 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 ...
2
votes
3answers
2k views
1
vote
1answer
67 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
240 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
832 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 ...
5
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
147 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 ...
2
votes
2answers
2k 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 ...
11
votes
5answers
3k 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, ...



