# $Id: motd,v 1.11 2012/11/30 16:30:09 root Exp $ ALGOSB SETUP Virtual servers available: - fedora: algosb-f1.inria.fr - ubuntu: algosb-u1.inria.fr Any user can connect from the INRIA-guest wifi network with SSH or VNC (see VNC SETUP below) by using: - for the Inria members: their usual login name and Inria password - for the others: their INRIA-guest login name (simplified) and password All the user's data is shared between the servers through an NFS mount of the directory /data. Please note that this is transparent on fedora and ubuntu through: - a "bind" mount of /data/home on /home - a symbolic link from /usr/local/algoSB to /data/fedora (resp ubuntu) For accessing the practicals, you need thus to use only the pathnames: /usr/local/algoSB/practicals/DAY-FACULTY In addition any user can connect through VNC. See below. VNC SETUP Prerequisites on the client machine: - an SSH client openssh on Linux and MacOs, Putty for example on Windows - a VNC client Example; TigerVnc RealVnc or UltraVnc How to connect: In the following: SERVER designate the name of the server you want to connect to LOGIN your login name on SERVER From a Linux client machine: Execute from a terminal: vncviewer -shared -via LOGIN@SERVER vnc-LOGIN From a MacOs client machine: 1. Establish an SSH tunnel: From a terminal, execute: ssh -L localhost:5901:vnc-LOGIN:5900 LOGIN@SERVER keep this connection open during your VNC session 2. Open your VNC client, select as destination: localhost:1 From a Windows client machine: You will have once to setup an SSH connection to SERVER with a tunnel for VNC, from the localport 5901 to vnc-LOGIN port 5900 on SERVER. Under Putty, this can be node as follows: o Launch Putty o Create a new session: * Name: SERVER * Host Name: SERVER * Connection/Data/Auto-login username: LOGIN * Connection/SSH/Tunnels: Source port: 5901 Destination: vnc-LOGIN:5900 Add * Session: Save Then: 1. Open the SERVER Putty session Keep this connection open during your VNC session. 2. Open your VNC client, select as destination: localhost:1 Customisation: You can use the file $HOME/.vnc-sop/config on SERVER to define the following variables: VNC_SESSION: the type of session you want. example: gnome-session, startkde VNC_GEOMETRY: initial geometry of the Xvnc process. You may prefer to switch your VNC client to a full-screen to have a complete transparency between your client machine and the remote session. From Linux (at least with TigerVnc), this is available through the F8 key. For a session on a Fedora server, you can change the geometry of your VNC windows *from* your remote session with: - the command xrandr from a terminal - the GUI for changing the Displays or Monitor size example under Gnome: System settings / Displays (or Monitor) For a session on an Ubuntu server, you will need to set the geometry with the VNC_GEOMETRY variable. See above. If your VNC client allows to specify the DesktopSize (like TigerVnc does), you may use it to fit exactly the size of your screen. If it doesn't, set the VNC_GEOMETRY in your $HOME/.vnc-sop/config on SERVER. Multiple VNC connections: On Linux, nothing special is needed: "vncviewer -via ..." is sufficient On MacOs and Windows, you will need to setup a specific SSH tunnel for the each server. Use for example the port 5901 and localhost:1 for the first server, 5902 and localhost:2 for the second one. SYSTEM ADMINISTRATION Common: The following links permit to print a minimal "motd" on every interactive shell (not only a login one). /etc/profile.d/algosb.sh -> ../../data/etc/profile.d/algosb.sh /etc/profile.d/algosb.csh -> ../../data/etc/profile.d/algosb.csh To complete eventually to set PATH and other things. The members of the faculties group have sudo acces. Fedora: This is a minimal installation. To add other RPMs or groups of RPMs, either: 1. use yum or yumex 2. update the script /data/sbin/install-rpms execute it from a terminal Brief memo of yum commands: yum list foo\* # list RPMs whose name starts with foo yum search foo # list RPMs related to foo yum provides '*/libfoo*' # list RPMs providing a libfoo file yum install foo # install the RPM named foo Ubuntu: Also minimal (server version). DEBs packages have been installed with: /data/sbin/install-debs