-
Notifications
You must be signed in to change notification settings - Fork 8
Omegga in Remote Environment
If you don't already have SSH access, it's easy to setup. These instructions should work on WSL, but additional config may be needed.
- Install ssh server:
sudo apt install openssh-server
- On the computer you will be accessing from:
- If you haven't already, run
ssh-keygen
-
ssh-copy-id user@remoteip
(copy the key to the server so you don't have to type passwords) -
ssh user@remoteip
(ssh in) -
sudo nano /etc/ssh/sshd_config
(modify the ssh server config file)
- If you haven't already, run
Disable in your /etc/ssh/sshd_config
, it's advised to set PasswordAuthentication no
and UsePAM no
to prevent people from getting access by guessing passwords. You may need to manually copy future ssh public keys or temporarily disable this to gain access again from another PC.
If you want, change Port 22
to a different port (may need to remove #
from the beginning of the line)
Don't forget to port forward the configured port (default 22) on TCP.
-
Install samba:
apt install samba
-
Configure samba:
In /etc/samba/smb.conf
, add a line like this, replace USER
with your non-root user and /home/USER/omegga
with the path to the omegga folder (or home if you want more freedom)
; Omegga folder path
[omegga]
path = /home/USER/omegga
browseable = yes
valid users = @USER
writable = yes
read only = no
Then run sudo service smbd restart
(you may need to port forward for TCP 445 or allow sudo ufw allow samba
)
-
Add a samba user for you:
sudo smbpasswd -a USER
(it will prompt for a password) -
Add it to windows by network drive or in the url bar with this url:
\\ip-address\omegga
-
Done!
If you are running instances of omegga, you will need to edit your omegga-config.yml
. Here's one with non-default ports:
omegga:
port: 8081
webui: true
https: true
server:
port: 7778
You need to change server.port
or it will not post the correct port to the master server. You do not need to use a different omegga.port
if you plan to redirect at the port forwarding level.
You may need to port forward the new ports in your VM and in your router.
This step is not necessary if you do not own your own domain and are okay connecting to the web-ui by IP.
If you are running multiple omegga VMs, this step will have to take place on your main PC and cannot take place on a VM.
Follow the nginx guide.
If you are running a second omegga, you can repeat the above instructions with the following modification
- Skip the steps for generating
temporary ssl keys
anddhparam
, these can be re-used - DNS Configure
OMEGGA2.YOURDOMAIN.COM
to be a copy of theOMEGGA.YOURDOMAIN.COM
record. - Make a second
/etc/nginx/sites-enabled/omegga2.conf
based on the one in the guide with the following changes:-
OMEGGA.YOURDOMAIN.COM
is a differentOMEGGA2.YOURDOMAIN.COM
-
proxy_pass https://127.0.0.1:8080/;
becomesproxy_pass https://127.0.0.1:8081/;
(new web ui port)
-
- Run certbot again to add key for the second domain