Userbox/manual

From Zombi Wiki
< Userbox
Revision as of 20:35, 20 February 2020 by Cpp (talk | contribs) (+doku cat)
Jump to navigation Jump to search
Userbox

The former User-VM has been replaced by a docker container called the userbox. It can be accessed by SSH, SFTP and X2Go for a graphical Desktop

SSH Access

SSH Access from Windows

  1. Download the latest putty executable and start it
  2. Enter "user.zom.bi" as Hostname and "2233" as Port
  3. Click "Open" on the bottom of the Form in order to connect
  4. You will get an error message showing an unknown Host key on the first connection. Confirm this Dialog Window with "Yes"

SSH Access from Linux

You should be able to access the ssh server on the userbox using the following command:

 ssh user@user.zom.bi -p 2233

You can also mount your home directory from the userbox to your local filesystem in order to work on your webpages etc.

 mkdir uservm-mount
 sshfs user@user.zom.bi:/home/user uservm-mount -p 2233

Authentication using ssh keys

If you do not like to enter your password every time you can create an ssh key and use this in order to login to the userbox and your webspace

 ssh-keygen
 ssh-copy-id user@user.zom.bi -p 2233

Files and file permissions

The Public folder inside your home directory (~/Public, or /home/[user]/Public alternatively) contains the files you are sharing on your public Userpage.

Please note that the files you put there will be able to be read by anyone without authentication.

To reflect this, you need to make a couple changes:

  1. The Public/ directory needs to be created, as it does not exist by default
  2. Shared folders must have the "Global readable+executable" permissions.
  3. The files permission must be set to "Global readable"

To automatically share all files and folders inside your public dir, you can use the following code snippet:

# Assign all directories in ~/Public the permission mask 0755
find ~/Public -type d -exec chmod 755 {} \;

# Assign all files in ~/Public the permission mask 0644
find ~/Public -type d -exec chmod 644 {} \;
Graphical Access via X2Go
  1. Download X2Go Client for Windows from the X2Go Website
    • if you are using the Linux the package will most probably be called "x2goclient" and is installable from the repositories for ubuntu, debian and opensuse
  2. Start the Client and Create a new connection profile
     
    New Session
  3. Enter the connection Information.
    • Make sure to select "XFCE" as desktop environment as the default selection ("KDE") is not installed on the userbox and will only lead to an error message
    • enter your username in the "Login" field
    • Confirm the Settings with "OK" - the new session should be created and should show up in the right side of the window
       
      Session Parameters (click to enlarge)
  4. Select the newly created session
  5. Enter your LDAP password in the password field
  6. After a few seconds you should see the desktop of the user box. By default the session starts with a resolution of 800x600 but you can resize this window however you like
    • if you close this window the session will be disconnected but all programs running will still execute and you can resume after reconnection
    • if you are done and do not need any programs running on your desktop please logout with the "emergency exit" icon in the top bar.