2022 Developer Survey is open! Take survey.

Questions tagged [source]

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

Filter by
Sorted by
Tagged with
0 votes
3 answers
84 views

How to view source code to built in linux commands? [duplicate]

To my knowledge, when I run a command like ping or grep or ls, the Linux OS will search for these command names in the directory /bin; I also know most Linux commands are written in C. I just wanted ...
user avatar
0 votes
1 answer
22 views

How to verify that source code does / does not provide driver for Apple USB modem?

Source Code: https://unix.stackexchange.com/a/698474/182280 The goal is to verify that the source code has the driver to support an Apple USB Faxmodem MA034Z/A. What are the keywords or phrases to ...
user avatar
  • 1,104
0 votes
0 answers
21 views

Is the source code for coreutils stored on my linux machine (as opposed to binaries)? Where? [duplicate]

Wanted to take a look at xargs source code and couldn't find it on my machine. Only binaries come up with which and whereis. Google a little bit and came across this great who's who list of unix ...
user avatar
  • 103
1 vote
2 answers
37 views

Is it possible for a shell to (automatically) source files after the first prompt is shown?

I'm wondering if there is any way to put something in my startup files that will cause other files to be sourced after the first prompt is shown. I would prefer a method that doesn't rely on hooks ...
user avatar
  • 8,411
0 votes
2 answers
22 views

Installing a linux software package from source

is it possible to install a package from source? For example whether debian or opensuse, would it be possible to install an existing package say nginx from source? The reason is that i want to try ...
user avatar
0 votes
1 answer
83 views

How do I get a sourced file in zshrc to run in bash?

I have a bash script that includes a bunch of functions. I'd like this script to run using bash. The script has this at the top: echo "BASH_VERSION""$BASH_VERSION" echo "...
user avatar
0 votes
0 answers
18 views

Source different files which using same command after sourcing

I have two instances of autosys agent running in linux. Say A and B. If i source both, i am not able to check job status of 1/2 servers(say B whose jobs' status is visible but A whose jobs' status is ...
user avatar
  • 1
1 vote
1 answer
724 views

Debian: The repository CDROM does not have a Release file

I have just finished installing Debian on my laptop; I had to add manually the drivers for my WiFi card after the installation, I simply installed them via sudo apt ./name.deb, where name.deb is a ....
user avatar
  • 173
2 votes
1 answer
62 views

Running "sudo -s" as a user with sudo priv, does not source .bashrc

I want to be able to run sudo -s as a user with sudo priv, and have /root/.bashrc be sourced. I checked the .bashrc file and the .profile file for /root, both look fine. Every time I try to use sudo -...
user avatar
  • 285
0 votes
1 answer
29 views

Calling a function from terminal without export from sources file [duplicate]

Have added a number of functions which I source from my .bashrc. For instance, I use export -f calc I also have another function usage_calc where I comment out the export call # export -f usage_calc ...
user avatar
1 vote
1 answer
112 views

How can I get glibc/libstdc++ sources and set them up for gdb to find?

I'm debugging this program which raises an exception. This makes my debugger look for some source code, e.g. ../sysdeps/unix/sysv/linux/raise.c - and fail to find it. Now, I realize it's not necessary ...
user avatar
  • 7,249
-2 votes
1 answer
104 views

How do I install NodeJS on GuixSD?

How do I install NodeJS on GuixSD?
user avatar
0 votes
4 answers
21 views

How can I have locally installed software be automatically sourced when I log into my account?

I have built and installed a new piece of software manually (from a remote git repository). Every time I want to use it, I run something like, . /path/to/setup_software.sh but I would like that to ...
user avatar
  • 101
-1 votes
1 answer
34 views

Sourcing bash scripts in cascade [closed]

I have a number of scripts that are sourced in cascade. Am new to this and would not mind having some examples, with some details of pros and cons?
user avatar
  • 53
-1 votes
1 answer
52 views

I can't recompile im-chooser in Fedora 34

I have a problem in my Fedora 34 with one package which i can't recompile using rpmbuild --rebuild from Fedora 22 to 34, cause it gave me an error which I can't repair. eggsmclient-dbus-gnome.c: In ...
user avatar
  • 9
0 votes
1 answer
50 views

I can’t recompile exo in Fedora 34

I have a problem with my Fedora 34. I was trying to recompile xfce 4.12 on Fedora 34 using rpmbuild —rebuild from version 22 to 34, I recompiled some packages but one gave me an error which I can't ...
user avatar
  • 9
0 votes
0 answers
76 views

Where are the definitions for dead key combinations?

I noticed that on Ubuntu 20.04, some dead key combinations act differently than expected. For instance, dead acute followed by c produces ç, not ć as one might expect. I have found the keyboard layout ...
user avatar
0 votes
1 answer
36 views

List installed dependencies after building software from source

When wanting to completely remove a built-from-source program: is there any way one could see which packages were installed as dependencies and easily remove them? Note that I mean the packages that ...
user avatar
  • 1
0 votes
1 answer
55 views

Does using checkinstall instead of make install allow to easily remove dependencies?

I'm very new to Linux, so please excuse any normie errors/misconceptions. I want to learn how to build programs from source, but I'm having a hard time understanding how dependencies are managed when ...
user avatar
  • 1
0 votes
0 answers
20 views

armageddon-proof software backup solution

One of the things I'm most excited about in making the switch to GNU+Linux is that I'll no longer be a victim of the planned obsolesce business model of big tech. Having learned to use a package ...
user avatar
-1 votes
1 answer
43 views

What makes the occurrence of the word "redhat" in the Linux sourcecode fluctuate so much

I was browsing this website: https://www.vidarholen.net/contents/wordcount/#redhat,oracle,google,apple,microsoft What I noticed was that at a few points in times the usage of the word "redhat&...
user avatar
  • 103
-1 votes
1 answer
42 views

Is there a convention for naming and placing the manual page file for a command in source tree?

I think the name could be in format <command_name>.<section_number> where the numbers are shown in the description chapter of man man. I use doc directory for the file in a repository.
user avatar
  • 528
0 votes
1 answer
464 views

How to get source code of a package in ubuntu for a specific version

For example, sudo apt-get source bash downloads the source code for the latest bash package version (5.0). How do I get the source code for an older version of the package (e.g. 4.3). Is there some ...
user avatar
0 votes
1 answer
320 views

How can I 'upgrade' python without internet access?

I installed Python 3.7 on RHEL by downloading .tgz file from python.org and using a chain of commands './configure -> make -> make install' Now I need to upgrade it to Python 3.9. What should I ...
user avatar
  • 139
1 vote
0 answers
24 views

Use specific IP from list of multiple IPs as the source IP for a Solaris host

My solaris server host webhost has many IP addresses a few are listed below. $ ifconfig -a lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 127.0....
user avatar
  • 297
2 votes
1 answer
108 views

Executing a remote script from a code repository causes endless loop

I often execute raw versions of remote Bash scripts in GitHub with this pattern: wget -O - https://raw.githubusercontent.com/<username>/<project>/<branch>/<path>/<file> | ...
user avatar
0 votes
1 answer
21 views

LLVM "source" package manager?

To my understanding, the main advantage of a binary package manager is install speed, while the main advantage to a source package manager is cross-arch compatibility, so why not something in-between? ...
user avatar
0 votes
0 answers
23 views

openSuse - change PHP cli version

I have built PHP 7.3.27 from source like this: ./configure --with-config-file-path=/etc/php7/cli \ --with-config-file-scan-dir=/etc/php7/cli \ --with-openssl \ --with-bz2 \ --with-zlib \ --with-...
user avatar
  • 1,718
1 vote
0 answers
40 views

Can ADB debugging make XAPK downloads possible?

I have just got the adb debugging method started on my chrome os for an alternate developer mode approach. However, I noticed that apks are starting to transfer into XAPKS which are a somewhat ...
user avatar
  • 13
0 votes
1 answer
46 views

Where can I find a mirror for full GNOME 3.14 & 3.26?

I have been trying to find the source code for GNOME desktop versions 3.14 and 3.26, but it seems like there is nowhere to look anymore. Are there any FTP's or mirrors with those? Thanks in advance.
user avatar
1 vote
1 answer
954 views

What is the correct way to enable source downloads in CentOS 8-stream?

So I tried to do this:- yumdownloader --source sendmail But hit this problem:- Last metadata expiration check: 0:08:48 ago on Wed 16 Dec 2020 10:34:00 AM GMT. No package sendmail-8.15.2-34.el8.src ...
user avatar
  • 59
0 votes
0 answers
111 views

Why source same script twice is exiting the shell?

I have written a bash script to create a git worktree- cr_wt #!/bin/bash unset CDET_ID unset WT_DIR source ~/.bashrc usage() { echo "Usage: $0 [ -c CDET_ID ] [ -d Directory Name ]" ...
user avatar
  • 205
0 votes
0 answers
239 views

Error: cannot execute binary file from dir

I installed a community software which requires to run some bash scripts in particular directory. However, an error message showed up if I did so: "ERROR: Command: 'source /usr/bin/bash &&...
user avatar
  • 1
0 votes
1 answer
18 views

Installing from source: helpful tools? and a few questions

a newbie here. There are some tools that you want to install from source but you do not know which libraries are needed because it is not mentioned in the Read-file. Installing from source bugs me ...
user avatar
0 votes
1 answer
47 views

Installing Packages From Source

I have been trying different Linux distributions lately to learn as much as about Linux. Lately, I have encountered with installing packages from source while trying to learn about the core elements ...
user avatar
3 votes
4 answers
692 views

Source a file after ssh login drops to prompt

One-liner question: How do I automatically source a remote file on remote host after logging in via SSH via a bastion host? I need to source a file containing a list of aliases + shell user defined ...
user avatar
  • 24.2k
0 votes
1 answer
100 views

How do I source a new .bashrc in an alias that switches my shell?

I have an alias I use to run sudo -s called ssu. I want it to also source my root session from the .profile in my home directory. Other answers seem to say that this is the solution: alias ssu='sudo -...
user avatar
-1 votes
1 answer
354 views

Use 'source' command in a shortcut!

I have to run a bash script GoogleDrive.sh that changes the environment variables of ~/.profile file. In terminal emulator source GoogleDrive.sh works fine, but when I put this command in desktop ...
user avatar
  • 185
0 votes
0 answers
55 views

Which lines in awk source code apply an operator (`++`) to an expression?

Anybody knows where is it exactly that the ++ operator is applied to the expression being evaluated in the awk source ? I am trying to dig deeper into the way the ++ (specifically) works (or doesn't ...
user avatar
  • 38.8k
0 votes
1 answer
72 views

Malformed line in the source.list debian posgres

I would like to start by saying that I am beginner and that probably I "broke" the source list The story is: while trying to do updates in debian, I was receiving error messages saying that ...
user avatar
0 votes
1 answer
126 views

fifth time source .zshrc need obvious more time than first time

Yesterday I was writing a shell script, and need to source .zshrc to update for current zsh shell. I found the source process need more time as I continue do source .zshrc. The docs of source or . as ...
user avatar
1 vote
0 answers
204 views

phpinfo still shows old PHP version after installing new version from source

I downloaded PHP 7.3.18 from php.net. Then I configured it, maked it and installed it from source. If I execute php -v then I get PHP 7.3.18 (cli) (built: Jun 17 2020 12:55:46) ( NTS ) Copyright (c) ...
user avatar
  • 1,718
0 votes
1 answer
499 views

Why can't echo see sourced environment variable from a shell script?

I have the following shell script: cron_job.sh #!/bin/bash source /home/ec2-user/src/.config I use it like this ./cron_job.sh when I echo $DB_NAME, which is included in the .config, I see nothing....
user avatar
  • 111
1 vote
1 answer
2k views

Can't find the source of some "asm", "generated" header files in linux kernel?

So, I am writing a module, that is working in kernel space. My code compiles correctly and works correctly. The thing is that there are some header files, which I couldn't find anywhere. That doesn't ...
user avatar
1 vote
2 answers
99 views

How to find out the initiator of a script in unix

I am wondering if there is a way to find out how a file execution was initiated. For example, consider the following files: ~/foo.sh echo "Hello from foo.sh" # print the name of the initiator/...
user avatar
1 vote
1 answer
5k views

How do you install Make from source?

I have tried Make version 4.2 and 4.3 on Ubuntu 18.x, RHEL 8.x, and SUSE 15.x servers. But I get the same problem. I cannot use binary packages (e.g, yum, apt, or zypper commands). I try to run ...
user avatar
0 votes
1 answer
111 views

Do I need to build ALL dependencies from sources when building another project from sources?

My distribution's package repository does not have the current version of the tmux package I want. I downloaded the newest version in tar.gz format from the website. However, in trying to ./configure ...
user avatar
0 votes
1 answer
245 views

crontab cannot find environment variable even after sourcing .bashrc

crontab -e 00 00 * * * /home/username/run.sh >> /home/username/log 2>&1 Inside run.sh: source /home/username/.bashrc java When crontab job is triggered, I got this error in the log: /...
user avatar
  • 73
0 votes
1 answer
116 views

Where can I find the source code of ftpd?

How can I inspect ftpd(the regular Linux FTP server's) source code on my machine? I'm using Debian 9. Unfortunately I can't figure out which exactly implementation has the package ftpd which I ...
user avatar
  • 265
0 votes
0 answers
152 views

How to install OpenSSH on stripped down Linux OS without a package manager

I have a satellite box that uses a stripped down version of linux OS. It runs enigma2 SVN-2860 based on GIT-5580 used for watching satellite and terrestrial digital tv. It's a PKT Hyperion enigma2 ...
user avatar

1
2 3 4 5
7