The Wayback Machine - https://web.archive.org/web/20240901115743/https://www.geeksforgeeks.org/exodus-copy-linux-binaries-from-one-linux-system/
Open In App

Exodus – Copy Linux Binaries From One Linux System

Last Updated : 09 Jan, 2023
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Exodus is an easy-to-implement program, that is used for bundling dependencies, and also helps to effectively copy Linux ELF binaries from one to another machine securely, and this is very handy when you don’t have root access, also if there are issues in the availability of the packages in the Linux distribution, Commonly Server oriented distributions will have limitations and also have outdated packages than desktop packages, then using Exodus will be a great way.

Features:

  • You don’t need root access on the machine.
  • You can run it on another machine when the package is not available in Linux distribution.

Here, we use htop as an example, as exodus allows us to copy Linux binaries and install the htop. We install exodus on the remote system in /opt/exodus/ directory.

htop:

Htop is a real-time system monitoring application, it monitors the cause of load by each and every process, which is like a task manager in Windows OS.

To install Htop in Linux:

$ sudo apt install htop [For Ubuntu, Linux Mint]
$ sudo dnf install htop [For Fedora]

Note: Make sure you install htop on your desktop machine, instead on your remote Linux server.

Here, as we use it for bundling all the binary dependencies, then for the executable, we compile a statically linked wrapper that calls the relocated linker directly.

We have already installed htop on our local machine

We have already installed htop on our local machine

Htop executing in local machine

Htop executing in local machine

As you can see that we can execute htop command on our local machine and it runs seamlessly.

To install Exodus:

Step 1: We use Python PIP package manager to install exodus.

$ sudo apt install python-pip                [On Debian/Ubuntu]
$ sudo dnf install python-pip                 [On Fedora]
$ pip install --user exodus-bundler          [Install Exodus in Linux] 

Output:

Installing exodus bundler

Installing exodus bundler

Step 2: Now, in the ~/.bashrc file add the PATH variable for the directory ~/.local/bin/. In order to execute the exodus similar to any other system command.

export PATH="~/.local/bin/:${PATH}"

Output:

Added the executable path to $PATH

Added the executable path to $PATH

Now, we’re all set up to use exodus for executing exodus to open a new terminal window, and it is suggested to install GCC on the machine which is used for packing binaries.

Use Exodus Safely Copy Linux Binaries From One Linux System to Another:

First, we verify that a binary dependency (htop) is not available in our remote machine.

Htop command is not in the remote machine

Htop command is not in the remote machine

After installing exodus in the remote machine, you will be able to copy local binaries to the remote machine.

$ exodus htop | ssh user@ip-address

Note: Here we are using a machine from GitHub codespaces as the remote machine. That’s why, gh command is used, in general cases, the syntax mentioned above will be used.

Output:

Transferring the binary dependencies from the local machine to the remote machine

Transferring the binary dependencies from the local machine to the remote machine

After login into the remote machine, then, in the ~/.bashrc file add the PATH variable for the directory /opt/exodus/bin/, in order to execute the htop similar to other system commands.

export PATH="/opt/exodus/bin:${PATH}"

Run htop command on the remote machine.

Output:

Verifying that  the htop is installed and executing it

Verifying that  the htop is installed and executing it

htop is successfully running on the remote machine

htop is successfully running on the remote machine

We can now clearly see how the htop is working in the remote machine by using exodus.

In special cases, if there are more than two binaries with identical names, then you can copy and install them concurrently with the -r flag, which enables each binary for assigning aliases on the remote machine. installing the two versions of htop will be helpful in this case.

  • htop-1 – /usr/bin/grep.
  • htop-2 – /usr/local/bin/htop.
$ exodus -r htop-1 -r htop-2 /usr/bin/htop /usr/local/bin/htop | ssh user@ip-address

Conclusion:

Exodus is easy to implement the program with the assurance of security and helps while transferring binaries from one system to another system.



Similar Reads

How to copy a file's content from Linux terminal?
This article shows the alternative method to copy the content of the file onto the clipboard, via the Linux terminal. In OSX, the commands pbcopy and pbpaste are available by default. Thus, to copy a file onto the clipboard via OSX terminal, type: pbcopy < 'path of the file' Since, in Ubuntu, pbcopy and pbpaste commands are not availab
2 min read
How to Extract and Copy Files from ISO Image in Linux?
The term ISO was derived from the ISO 9660 file system, which is commonly used by optical media. An ISO image is a full copy of everything contained on a physical optical disc, such as a CD, DVD, or Blu-ray disc, including the file system. There is no compression and they are a sector-by-sector copy of the disc. ISO images are designed to allow you
3 min read
How to Copy a File to Multiple Directories in Linux
In this article, we will discuss how to copy a file to multiple directories in Linux. xargs, find, tee, shell loop, and parallel are the commands that can help you to copy a File to Multiple Directories. Suppose we have a file with the name "xyz.txt" and we want to copy it into 3 directories with the name dir1, dir2, and dir3 then we use the follow
5 min read
How To Copy Command Output To Linux Clipboard Directly
To copy commands outputs directly to Linux Clipboard we will be using a Program called xclip. xclip is a program that allows us to clip-> copy/crop ->cut and external reference or a block to a specific area. xclip reads text from standard inputs or files and make it available to other application for passing an X section. It reads from all fi
4 min read
Copy and Create Destination Directory if it Does Not Exist in Linux
A directory is a file system location for storing and organizing files. A Linux system has many directories, and users can create their own directories. Copying and creating a directory are useful operations for Linux users. To create a new directory, use the command: mkdir new_directory. The 'm' stands for 'modify.' The name of the new directory m
6 min read
How to Copy a Directory in Linux
There is this famous quote for Linux by Jamie Zawinski that goes like this "Linux is only free if your time has no value." Certainly, that's true as people start using Linux they have to learn more about it, and when encountering it we have to solve it by ourselves, and that way we learn more about Linux. In this article, we are going to learn how
5 min read
How to Securely Copy Files in Linux | scp Command
scp (secure copy) command in Linux system is used to copy file(s) between servers in a secure way. The SCP command or secure copy allows the secure transferring of files between the local host and the remote host or between two remote hosts. It uses the same authentication and security as it is used in the Secure Shell (SSH) protocol. SCP is known
8 min read
How to Copy Files and Directories in Linux | cp Command
In the world of Linux computers, a common and important job is copying files. The key tool for this task is the "cp" command. In this simple guide, we'll explore how to copy a file in Linux, looking at the basic steps, different choices you can make, and giving clear examples. We'll also take a peek behind the scenes to understand how the "cp" comm
8 min read
Hacktronian - All in one hacking tool for Linux and Android
Hacktronian is a free and open-source tool available on GitHub which is used as an information-gathering tool. Hacktronian is one of the easiest and useful tools for performing reconnaissance on websites and web applications. Hacktronian have different Modules such as information gathering, password attacks. Hacktronian is a complete package of dif
2 min read
List One Filename Per Line in Linux
One of the most frequent tasks when using the Linux command line is listing the files in a directory. Sometimes we want the list of files to be in a specific format, such as one file per line. ls is a Linux shell command that lists directory contents of files and directories. It is one of the most often used commands in regular Linux/UNIX operation
3 min read
How to Enable Copy and Paste in Oracle VirtualBox?
In this article, we will see how to enable copy and paste from a Windows host to a VirtualBox and vice-versa. We've taken the VirtualBox guest additions which gives us various additional tooling, specifically giving us the ability to copy and paste. It also enables bi-directional copy and pastes. Step 1: Start the Virtual Box and go to Settings as
1 min read
Move and Copy different file types in different folders using Shell Scripts
Shell scripts are powerful tools that allow you to automate repetitive tasks and perform complex operations on your file system. One common use case for shell scripts is moving and copying different file types to different folders. In this article, we will explore different examples of shell scripts that can be used to move and copy different file
4 min read
How to Copy, Cut and Paste in Vi editor
Vi is a really strong text editor that you can use on Unix and Linux computers. It can do a lot of things, like copying, cutting, and pasting text. Even though these actions might seem hard at first, once you get the hang of them, they can make you much faster when you're working with text files. In this guide, we'll talk about how to copy, cut, an
6 min read
How to Copy in Nano Editor
Nano, a popular text editor in Unix-based systems, provides a user-friendly interface along with powerful features for efficient text editing. One of the fundamental operations in any text editor is copying and pasting text. In this guide, we will explore various methods of copying text within the Nano editor and then pasting it elsewhere in the do
2 min read
How to Copy Paste in Vim Editor
Copying and pasting in Vim Editor is an essential operation for efficient text editing. Vim offers several methods to copy and paste content, including visual mode selection, yanking, and putting. Understanding these techniques can significantly enhance your productivity when working with Vim. In this article, we'll explore these methods in detail,
3 min read
proc file system in Linux
Proc file system (procfs) is a virtual file system created on the fly when the system boots and is dissolved at the time of system shutdown. It contains useful information about the processes that are currently running, it is regarded as a control and information center for the kernel. The proc file system also provides a communication medium betwe
4 min read
Taking Linux System Snapshots with Timeshift
Timeshift is a Linux application that is built for providing functionality to restore your system just like when you restore a Windows system. Timeshift makes snapshots of your system in regular intervals which are further used at the time of restoration or undo all changes in the system. Each Snapshot taken by Timeshift is a complete system backup
3 min read
Groups in Linux System Administration
Each group in a Linux system is uniquely identified by a group identification number or GID. All the information listing groups in a system are stored in /etc/group file. The hashed passwords for groups are stored in /etc/gshadow file. Every user has a primary user group and zero or more supplementary groups. On login, the group membership is set t
2 min read
Users in Linux System Administration
Users are accounts that can be used to login into a system. Each user is identified by a unique identification number or UID by the system. All the information of users in a system are stored in /etc/passwd file. The hashed passwords for users are stored in /etc/shadow file. Users can be divided into two categories on the basis of the level of acce
3 min read
What is Linux System Administration?
Linux is an operating system, or a kernel created by Linus Torvalds with other contributors. It was first released on September 17, 1991. The main advantage of Linux is that it is distributed under an open-source license, which means programmers can use the Linux Kernel to design their own custom operating systems. Most Linux code is written in C P
5 min read
Getting System and Process Information Using C Programming and Shell in Linux
Whenever you start a new process in Linux it creates a file in /proc/ folder with the same name as that of the process id of the process. In that folder, there is a file named "status" which has all the details of the process. We can get those Process Information Through shell as follows: cat /proc/1/status As can be seen, it displays most of the i
2 min read
Beginner's Guide to Linux System Administration
A Linux System Administrator manages the operations such as maintaining proper software, observing them, and even taking care of backup and hardware systems. It is recommended that before reading this article please go through the article What is Linux System Administration. Here we have some basics of Linux System Administration. Some Basic Config
5 min read
Basic System Controls with Terminal in Linux
Sometimes some of the basic services of the system stop working or starts malfunctioning. And it becomes really difficult to solve the problem through Graphical User Interface so here is the list of Terminal Command to solve the problem and to control the basic services manually. Installing the required packages To control the basic system services
2 min read
How to Setup VPN on Ubuntu Linux System for IP Spoofing Using windscribe?
In simple words, IP Spoofing can be stated as “Hiding your Systems IP address from others”. It is essentially a technique used by hackers to gain unauthorized access to Computers. Concepts of IP Spoofing was initially discussed in academic circles as early as 1980. IP Spoofing types of attacks had been known to Security expert on the theoretical le
3 min read
Linux - Installing Tripwire IDS (Intrusion Detection System)
IDS(Intrusion detection system) is a software application that monitors your system and checks whether any malicious activity is found or not and reports that to the administrator. Security is a big issue for any Linux administrator, so today we are going to discuss how you can install Tripwire IDS on Linux, Tripwire is a popular open-source Linux
2 min read
How to Monitor Linux Commands Executed by System Users in Real-time?
If you are a Linux system administrator then you would definitely want to monitor the interactive activity of all system users, like monitoring the Linux commands they execute in real-time. In this brief Linux system security article, we will be going to discuss how to monitor all Linux shell commands executed by system users in real-time. Let's se
1 min read
Installing atop Tool To Monitor the System Process in Linux
atop is an ASCII full-screen interactive performance monitor which is kind of similar to the top command to view the load over a Linux system. The job of the most critical hardware resources (from a performance point of view) at the system level, i.e. CPU, memory, disk, and network can be seen. atop enable us to identify which processes are actuall
7 min read
Finding System Boot-up Performance Statistics in Linux Using systemd-analyze Command
If your Linux system is taking so much time to boot, and you want to know which process is taking so much time to boot then you are on the right page. We are going to see how to get a complete overview of system boot-up time and which service is taking more time to initialize. We are going to use the systemd-analyze command and subcommands of syste
2 min read
Sysdig - System Monitoring and Troubleshooting Tool For Linux
Sysdig is an open-source, cross-platform, system exploration/diagnosing and troubleshooting tool for Linux. Sysdig was written in Lua program language. Sysdig also has a simple, intuitive, powerful, and fully customizable curses UI (User Interface) called Csysdig. System state and activity from a running Linux instance are captured and saved, filte
2 min read
Sysmon – Graphical System Activity Monitor for Linux
Sysmon is a graphical system monitor for Linux. It shows the information about the CPU, GPU, Memory, HDD/SDD and network connections. It is similar to the Windows task manager. It is completely written into the python programming language. Sysmon shows the all information in the form of Graphical visualization. There are some features of these tool
2 min read