Everything that includes the source code of Unix programs for example compiling, installing or how to retrieve the code for studying.
1
vote
1answer
53 views
Please explain linux kernel source code directories
Could someone please explain how different folders in linux are connected?
There a lot of interesting stuff like /arch, /security, /samples, /crypto and etc.
Where do this files "go" after ...
0
votes
2answers
22 views
Why isn't my .bashrc file being read from .profile
in my .profile file I have the line:
# source bashrc if it exists
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
to make sure that my .bashrc file is sourced if it exists. I also have a set up ...
2
votes
1answer
37 views
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
Trying to execute the source command using "lfs" user on ubuntu 14.04 and getting this:
root@linux:~/lfs# su lfs - -c "source ~/.bash_profile"
bash: cannot set terminal process group (-1): ...
0
votes
0answers
13 views
Add vanilla Emacs to “Open with” list [closed]
I've installed Emacs from the GSRC, but I can't make it show up in the "Open with" list and I cannot open files with it by default. I've symlinked ~/gnu/bin as /usr/bin/gsrc-bin
and I've added cd gsrc/...
1
vote
2answers
21 views
Call other scripts with source and make the call conditional with if statements
I have an rsync script which I have on various servers. Rather than re-writing it for specifics on each VM I thought of creting other scripts for the specifics and calling them with source. I'd ...
0
votes
0answers
18 views
How can I find functions containing direct memory access in a device driver?
In a given Linux distribution's source code, how can I track down the files and functions that directly access memory registers for peripherals?
I'm doing embedded development on several different ...
0
votes
0answers
25 views
Upgrading nginx installed from source on CentOS
I have installed nginx 1.8 from source. Now I want to upgrade nginx to the latest version, 1.10.
Also I'm not getting security updates for the installed version since I have installed it from source. ...
0
votes
0answers
17 views
Sourcing files in scripts with cron, gmrun or openbox menu
I would like to know why files can't be sourced in scripts when executed by applications such as cron, gmrun or openbox menu, and how could I work around this situation.
I have a file called backup....
0
votes
0answers
32 views
configure: error: Package requirements (libcaja-extension >= ) were not met
G'day mates! I'm working on forking the Nautilus Wipe utility to Caja (the default file manager in MATE). Most of what I've done so far is replace variations of "nautilus" with "caja", or "nw" with "...
0
votes
1answer
28 views
Installing only a certain subpackage from src.RPM, Raspbian
Attempting to install setroubleshoot-server from source, as there are no ARM71 packages(error recieved from Alien rpm package installer when using arm7hl).
Default compilation from an extracted src....
1
vote
0answers
42 views
Why can't I install bc on my Raspberry Pi? [duplicate]
When I try to run the command sudo apt-get install bc I get the following error message:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package munin-...
0
votes
1answer
42 views
Command that indents lines of a C source file
I need a way to auto-indent blocks on a C source file within the
terminal. According to the norms.
Before:
int main() {
puts("Hello world");
}
After:
int main()
{
puts("Hello world");
}
3
votes
1answer
416 views
Install OpenSSL from source [duplicate]
I installed OpenSSL from source by:
wget https://www.openssl.org/source/openssl-1.0.2h.tar.gz
tar -xvzf openssl-1.0.2h.tar.gz
cd openssl-1.0.2h/
./config --prefix=/usr/local/openssl --openssldir=/usr/...
46
votes
8answers
4k views
Why does Bash's source not need the execution bit?
with Bash's source it is possible to execute a script without execution bit set. This is documented and expected behavoir, but isn't this against the use of an execution bit?
I know, that source ...
3
votes
0answers
234 views
Boost: compile latest source or use add-apt-repository? [closed]
Boost: compile latest source or use add-apt-repository
I’m at a junction should I go one way or another…?
Boost 1.55 is part of Raspian Jessie stable, and the advice when installing Domoticz is to ...
2
votes
2answers
251 views
bash source script.sh with exit 0
I use a lot of external files in my scripts.
But I have a problem, that if I source a file with exit in the contents of the file, the script exits from loading and the strings that I want to use are ...
-1
votes
2answers
307 views
Where to find the source code for the Almquist Shell?
I'm learning the Unix shell command language looking for a repository that contains the source code for the Almquist shell ("ash" / "dash") but I could not find it. Can you help me find the source? I'...
0
votes
2answers
198 views
Systemd bash builtins
I have an application that needs to use the commando source for setting his environment file.
[Unit]
Description=Programname
After=syslog.target network.target
[Service]
User=root
ExecStartPre=...
1
vote
1answer
151 views
Why do the Linux kernel headers contain references to nonexistent headers?
I'm trying to build IBCS (source here) on Ubuntu 15.10 (Linux 4.2.35).
This module is obviously pretty old, because its CONFIG.i386 file gives gcc an option -m486, which doesn't exist anymore, but ...
0
votes
1answer
61 views
Where is the kernel source for a cross-complied kernel rpi
I have cross-compiled and installed the Linux kernel with the real-time patch, version 3.18.16-rt13-v7+, on a raspberrypi but then I can't find the current kernel source in /usr/src. Then I tried the ...
0
votes
0answers
43 views
Installing specific version of python and its dependencies in chroot enviroment
I'm trying to install python from source on chroot environment in CentOS 7.1, If I'm using ./configure --prefix=/chroot but I need to find the dependencies and copy them to chroot directory also, How ...
0
votes
2answers
7k views
Can't find source package with apt-get source on Debian Squeeze
I have an old server running Debian Squeeze. I'm trying to download the source of some package so that I can patch it manually. However, apt-get source fails for every package I try. An example:
root@...
0
votes
1answer
59 views
What is a kernel-source-tree?
What is the Linux kernel source tree?
What does it contain and what is its purpose?
I'm trying to build an external module and the tutorial I'm using says to make sure that a kernel source tree is ...
0
votes
1answer
421 views
How to change Linux kernel version
I have downloaded and unzipped the Linux Kernel. What file(s) in kernel source file(s) are responsible for displaying Version string in uname ?
I want set version to 10, without dots 10.0.5
# uname -...
0
votes
3answers
31 views
See content of sourced script
When I source a script in bash, is there a possibility to look at the script, that I just sourced, without accessing the script itself?
0
votes
1answer
29 views
Can't find GNU Icecat (or Firefox) source code
I've been using GNU Icecat Browser (libre Firefox version made by Gnuzilla) for some weeks. I've been diving through its menus and I found an error:
When I get into the 'Customize Mode' (the one that ...
1
vote
1answer
24 views
Merging text file directories
I have two directories: Libc-825 and Libc-1044. Imagine that version 1044 is newer, but buggy. Is there a way to merge these file trees? I have there C sources with not so big differences. I have ...
0
votes
2answers
315 views
JDK 1.4.2 - where can I download the source?
I want to install Java JRE 1.4.2 or JDK 1.4.2 on a recent Amazon Linux server. The best option so far seems to install from source. However - where can I download this? I believe 1.4 is still from the ...
0
votes
0answers
24 views
Putting RPM files along with Proprietary source code in common repository
We have a large Repository of Proprietary source code (C, C++, PerlScripts, MakeFiles) which does not contain the compiled object files. When running the Build Process on a workspace, the object files ...
0
votes
0answers
34 views
problems installing Banshee from source
I'm running VOID linux on a HP 6930p laptop, and I am trying to install Banshee from source. As I am working on getting all of the depends installed When I run ./configure I now get this message.
...
1
vote
1answer
190 views
Setting env variable through script on current session
Is there a possible way of setting env variable through script on current session.
I have tried source option. But this works on the shell not through script.
here is my script content
source /etc/...
28
votes
10answers
3k views
Why are programs not distributed in compiled format?
But they give instructions like
cd downloaded_program
./configure
make install
This creates the ELF that is needed, and probably some .so files.
Why not put those inside a zip file for download, ...
1
vote
2answers
73 views
OpenBSD: is safe to delete /usr/src?
After I successfully upgraded OpenBSD, I wanted to upgrade my sources. I want to know, is it safer to delete /usr/src and then extract src.tar.gz, or is it better to preserve the already existing /usr/...
3
votes
3answers
436 views
common environment variable to set dark or light terminal background
I have written a number of debuggers that all can colorize source code text shown in a terminal session. They all understand that some terminals have a dark background and some have a light background ...
0
votes
0answers
105 views
Difference between two almost same command
Please consider two following command:
$ echo ls | xargs -I cmd echo cmd | source /dev/stdin
$ echo ls | source /dev/stdin
What's the difference between these commands? In my machine the result of ...
0
votes
1answer
864 views
What happen to outdates sources.list files?
I have an old Kali Linux 1.1.0a on an USB stick and tried to install today on an old laptop. During installation i get errors fetching from web mirror and also after rebooting into the newly installed ...
6
votes
1answer
2k views
Where is `scanf` implementation source code?
I want to find C source code for scanf implementation on Linux machine. Googling to find scanf implementation does not tell me the way to find it. I tried to find that source code from gcc source tree ...
0
votes
1answer
271 views
Installing libusb 1.0.9 on Debian 8 Jessie
I am new to Linux so I don't really know how to install from source.
I went to libusb.org and downloaded the latest version of libusb.
Where do I put it?
When I follow the install instructions, ...
0
votes
1answer
46 views
Building projects from source - determining / changing bin location?
I have pulled down a git repository for Ansible and followed the instructions to build it. I'm not familiar with the process of building from source and am somewhat confused.
http://docs.ansible.com/...
1
vote
1answer
63 views
How to find my CPU's drivers source?
I would like to read my CPU's open source drivers. I assume that drivers are located in kernel sources - how can I find out what driver is my CPU using, and where can I find this driver?
6
votes
4answers
381 views
How to know the source repository of a package in debian?
In Debian, AFAIK some packages are maintained in Subversion (famously team-pkg-gnome), while some are maintained in git, and others in some other VCS.
Is there a way to know where the source of a ...
0
votes
0answers
146 views
Installing libx11-devel from source, error in string.h
I'm running
Linux version 2.6.32-504.8.1.el6.x86_64 ([email protected]) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)
and trying to install libX11-devel from source on a ...
0
votes
1answer
62 views
/usr/share/src?
Source code is text; text is architecture-independent data (i.e., /usr/shareable).
Would it be, for some reason, a bad idea to have /usr/src/ link into /usr/share/src in a Linux distro?
1
vote
2answers
441 views
Best way to make variables local in a source'd bash script?
I have a bash script that generates a report on the progress of some long-running jobs on the machine. Basically, this parent script loops through a list of child scripts (calling them all with source)...
2
votes
2answers
594 views
How to get the name of USB driver in use in linux
I'm running Ubuntu 14.04 on my laptop. I'm having USB related issues in my laptop. It works sometimes and sometimes doesn't. I thought of fixing the issue myself.
So, I wanted to know if there is a ...
0
votes
0answers
48 views
Man-pages don't include all relevant information
Consider the man-page of this function: sysconf It doesn't have all the information that I need (e.g. all the system variables to be queried).
This is an example of what I need:
http://pubs....
0
votes
1answer
317 views
How can I uninstall MySQL if I have compiled it from source?
I'm trying to uninstall MySQL but when I get inside the directory and type
make uninstall
It get:
make: *** No rule to make target `uninstall'. Stop.
I've read that I have to delete all the ...
0
votes
1answer
34 views
Where is RAX-ARGOFFSET defined?
In Linux 3.16, in asm/x86/kernel/entry_64.S, the following line references RAX-ARGOFFSET (also see [src]):
424 movq %rax,RAX-ARGOFFSET(%rsp)
But I can not find where RAX-ARGOFFSET is defined ...
1
vote
2answers
326 views
How to create source deb for package with binaries and non-binaries?
I am currently making a deb package with a collection of plain programs (e.g. shell scripts, python code, etc) and binaries (C code compiled with gcc). In order to meet the guidelines for package ...
0
votes
1answer
237 views
How to get source of packages in Manjaro
I am trying to study the source code of popular packages as a learning method. I am running Manjaro 0.8.13, and it says it is based on Arch Linux. I've used Arch before, so I know it has the ABS to ...