A Webside Remote Desktop of Linux.
- Linux.
- Node.js 8+. and ensure all users are available.
Latest Chrome And Latest Firefox work fine.
Not IE.
Edge and Safari unknown(it should be OK).
First register a new user: https://register.linux-remote.org
Then visit demo: https://demo.linux-remote.org
Step 1:
cd /opt/ && sudo git clone --depth 1 https://github.com/linux-remote/linux-remote.git && cd linux-remote
or:
cd /opt/ && sudo wget https://github.com/linux-remote/linux-remote/archive/master.zip -O "linux-remote.zip" && sudo unzip -q linux-remote.zip && sudo mv linux-remote-master linux-remote && sudo rm linux-remote.zip && cd linux-remote
/opt dir only writable for root. so you should use: sudo
Step 2: npm install
Step 3: sudo node init
It will generate config.js
, and set permission: Only root
users can read it.
modify ./config.js
:
module.exports = {
port: 3001, // Website listen port. default: 3001
sshPort: 22, // SSH server listen port, default: 22
ssl : null, // http model, Unsafe, default: null.
/*
ssl: { // Or provide an Object {cert, key} to enter https model:
cert: '/somedir/cert.pem',
key: '/somedir/privkey.pem'
},
*/
sessionSecret: 'some 32 bytes string' // Use for express-session. generated by init.
};
For more please visit: Advanced setting
sudo node index.js
Because server use login shell, and the login shell cannot possibly work without effective root. So linux-remote Can't cannot possibly work without effective root too.
cd /opt/linux-remote && npm update
linux-remote-client
Updated, you don't need restart server. Just need refresh browser.@linux-remote/user-server
Updated, you don't need restart server. Logined user need relogin.linux-remote-server
Updated, you need restart server. All logined user force logout when you restart server.
Configured with SSL certificate, your connection ( https and wss ) is secure. And you don't need verifying the Host Key first time like SSH.
If you don't have an SSL certificate, You can use ssl-self-signed to generate a new one ( supports IP ).
patreon: Du Wei is creating linux-remote
Paypal | AliPay | WechatPay |
---|---|---|