Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
Create installer_all.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
sctech-tr authored Oct 16, 2024
1 parent a8adf3a commit aa1d43a
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions installer_all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/sh

# Create necessary directories
mkdir -p ~/.rmsh/config/
mkdir -p ~/.rmsh/commandset/
mkdir -p ~/.rmsh/logs/
mkdir -p ~/.rmsh/uploads/

# Install the server
cd ~
git clone https://github.com/remote-shell/server.git
cd server

cp server.py ~/.rmsh/
mkdir -p ~/.rmsh/admin/
cp admin/users.html ~/.rmsh/admin/
cp admin/logs.html ~/.rmsh/admin/

cd ~/.rmsh
ln -s server.py /usr/bin/rmsh-server

echo "Server installation completed. You can start the server with 'rmsh-server'."

# Install the client
cd ~
git clone https://github.com/remote-shell/client.git
cd client

cp client.py ~/.rmsh/
ln -s client.py /usr/bin/rmsh

echo "Client installation completed. You can run the client with 'rmsh'."

0 comments on commit aa1d43a

Please sign in to comment.