machines:webworkstation

Install of Workstation for standard User in CleanRoom in C2N

First install Xubuntu

In 2019 the best choice for simplicity and easy installation process.

(For Windows Installation cf the IT of the C2N)

Follow the instructions if possible:

  • install with the network on. So you need to get the mac address before running the installation. To do so in DELL configuration, tap the F12 key during the boot, to access the options
  • configure xubuntu in english to get international users able to use the computer.
  • install a specific partition for /home
  • create an admin account (stephane by default) and don't forget an admin account for the SI of C2N (login = si)

Then install tho following packages:

sudo apt-get install joe wine libreoffice vlc firefox thunderbird gimp inkscape

And more:

sudo apt-get install x2goserver chromium-browser chromium-chromedriver

You may need additionnal packages if you want to develop software or running java program then look in ubuntu/debian library

#!/bin/bash
if [ ! -d "$HOME"/TEST ];
 then
   mkdir "$HOME"/TEST
fi
cd "$HOME"/Desktop
names=(`ls *.desktop`)
for i in `seq 0 ${#names[@]}`;
do
   if [ -d "${names[$i]}"];
      then
         echo "The file ${names[$i]}  is changing..."
         sed -ie 's,stephane,'"$USER"',g' ''"${names[$i]}"''
      fi
done
rm *.desktope

Avec LightDM, va voir si tu as le fichier: /usr/share/lightdm/lightdm.conf.d/50-disable-guest.conf et essaie en passant la valeur de l'option allow-guest de false à true.

Contenu de ce fichier sur ma 18.04 sous LightDM (session invité désactivée…):

''yvan@yvan-maison:~$ cat /usr/share/lightdm/lightdm.conf.d/50-disable-guest.conf
# Disable guest sessions due to them not being confined in systemd
# CVE-2017-8900
# https://bugs.launchpad.net/bugs/1663157
[Seat:*]
allow-guest=false
yvan@yvan-maison:~$''

A+

first you need to install the packages for openbox on (X,L)Ubuntu

sudo apt-get install openbox

The first time you start your session do not forget to select openbox in the windows manager selector as in the following image

To avoid users to be confused by installation that mixes VirtualBox under WindowsXP and Linux, we suggest to start automatically the session for the user running the VM of the machine.

Example starting automatically the session for manip user or the nd-200 user

Change the settings just by editing the file /etc/lightdm/lightdm.conf and write :

lightdm.conf

[Seat:*]

autologin-user=manip
autologin-user-timeout=0
allow-guest=false

Then you have to configure openbox by editing the autostart file in ~/.config/openbox/

If it doesn't exist you have to create it. Here are few exemples:

autostart

xset dpms s off
firefox&
VirtualBox --startvm ND200 --seamless

autostart

xset dpms s off
firefox&
VirtualBox --startvm ND200 --normal

The file autostart must be executable

chmod 775 ~/.config/openbox/autostart

For fine tuning you can edit the rc.xml file all the details about the menu the windows behaviour and so on is described. for more help you can read: https://wiki.archlinux.fr/openbox#rc.xml and you can use the software obconf to tune the file.

The menu edition will be done with the file menu.xml that you will have to create. more help there : https://wiki.archlinux.fr/openbox#menu.xml

If you want to exit when the main application is closed thant add

openbox –exit

at the end of the autostart file.

Example: when executing the autostart, firefox is executed and when the user exits from firefox then the session closes.

xset dpms s off
firefox
openbox --exit

Natively there is no icon nor desktop manager on openbox. The easy way is to use a third party software like pcmanfm.

Installing and running PCManFM:

apt-get install pcmanfm
pcmanfm --desktop &

of course you will need to run pcmanfm with autostart More help there : https://wiki.archlinux.org/index.php/Openbox#Desktop_icons_and_wallpapers

Creating Icon

https://wiki.archlinux.org/index.php/PCManFM#Desktop_management

On the desktop you create a file named monappli.desktop the edit it and write :

here is an example for an firefox icon

firefox.desktop

[Desktop Entry]
Type=Application
Name=FIREFOX
Icon=firefox
Exec=/usr/bin/firefox
Path=~/.mozilla
GenericName=FIREFOX
Comment[fr_FR]=firefox

Pour démarrer lapplication directement en mode plein écran (F11 pour basculer)

firefox -f

Pour démarrer l'application directement en mode plein écran (F11 pour basculer:

chromium-browser --start-fullscreen

/etc/skel contient les éléments par défaut du répertoire home/user défini à la première connexnio d'un utilisateur

Donc si vous y mettez une configuration précise des applications/theme/décoration/options alors tous les utilisateurs nouveaux en bénéficierons

le fichier skel.zip contien la configuration des machines libre service de la SB à destination d'une utilisation pour DigiCleaR/MyFab et navigation internet.

  • machines/webworkstation.txt
  • Last modified: 2020/06/11 18:15
  • by 127.0.0.1