CS Managed Laptops

A CS managed laptop is installed and managed by the system group. There are a few things to keep in mind to use your laptop as good as possible and to keep it in good health. Further below on this page you will find more details about these topics:

  • Activate good passwords for both your laptop account and your departmental login account - you will need both.
    • Please also have a look at our general welcome and getting started web pages.
    • When changing your laptop password, please be extra careful: if you forget it, you loose access to your files because your home directory is encrypted.
  • Consider to use a wired network connection when in your departmental office.
    • Learn the difference between a wired departmental network as used in your office and a wired KU Leuven network as used in the meetings rooms and public spaces.
  • Consider which KU Leuven wireless network to use elsewhere.
  • Consider whether you need to set up a backup of (part of) your laptop home directory to your departmental home directory.
    • Remember that your laptop disk is probably an order of a magnitude bigger than your quota in your departmental home directory and therefore carefully consider whether and if so what to backup and what not.
  • You must let the management software do its job regularly. This means:
    • either to connect the laptop to the wired departmental network regularly
    • or to use the departmental (Open)VPN service (see below) regularly
    • both for at least 1, preferably several hours, at least once a week or so.
    In this way, your laptop will receive updates and stay in good shape.

Install(ed) Software

You don't have installation / sudo / root rights on the laptop.

If you need additional software, please have a look at our software catalogue. If you want to have software installed while not connected with a wired departmental network connection, you must have a working VPN connection.

KU Leuven Networks

Because the KU Leuven networks need personal identification, we cannot provision them during installation. You can configure them yourself using the GUI and the configuration as shown on our Linux KU Leuven networks documentation.

But you can also use our network-provisioning scripts yourself:

    $ /usr/local/cs-adm/bin/cs-add-network    Wired       u0123456
    $ /usr/local/cs-adm/bin/cs-add-network campusroam     u0123456
    $ /usr/local/cs-adm/bin/cs-add-network campusroam-2.4 u0123456
    $ /usr/local/cs-adm/bin/cs-add-network    eduroam     u0123456
    $ /usr/local/cs-adm/bin/cs-add-network    eduroam-2.4 u0123456
    

These commands will provide the necessary configuration that you can use via the normal Network-Manager GUI tools in the upper right corner of your desktop. Do not forget to change the u-number with your own ;-)

The KU Leuven wired network is used in departmental meeting rooms and public spaces.
There is more detailed documentation, explaining the differences between the various wireless networks.

VPN

When you need VPN you can start it with the following command: cs-vpn-start

More information about this command is available with the --help option or in /etc/cs-openvpn/README.txt on your laptop.

More information about the departmental OpenVPN is available on our OpenVPN documentation.

When you no longer need the VPN, interrupt the command with Ctrl-C

(Encrypted) Local Home Directory

A local account is created on the laptop and your laptop home directory is encrypted. The files in your home directory are therefore unreachable for those who don't know your (local login) password. The local account name is the same as your departmental account to make ssh connections, amongst others, easier. But you can and should choose to have a different password.

Because of the encrypted home dir you should pay attention to the following:

  • when changing your password, only use the default passwd command
  • you should save your encryption key somewhere safe yourself and with at least 1 other trustworthy person - cs-sys does this for you by default (it is a work-laptop after all), unless you explicitly don't want us to do so and your promotor / section agrees.
  • try not to use suspend nor hibernate if you want to be sure no one can access your files, even if your laptop gets lost or stolen:
    • when logged in, your encrypted home directory is mounted, to give access to its contents (otherwise you couldn't use it yourself)
    • in suspended and hibernated state, your home directory stays mounted, thereby circumventing the encryption
    • only when completely shutting down, you can be sure that no links to the unencrypted version of your home directory stay active

There is some more documentation (in Dutch) about encrypted home directories (only available from wired departemental networks or via departmental VPN).

SSHFS

Because your laptop cannot use NFS to access the departmental home and other directories, sshfs wrapper scripts are available to mount and use remote/departmental directories as if they are local and/or NFS directories. These scripts mount such directories under ~/NoCsRsync/SSHFS so that they are definitely not backed up.
More about sshfs wrapper scripts : sshfs-wrapper-scripts.shtml.

Printers

  • if you are on the wired network you will see and use the departmental printers.
  • if you are not on the wired network but have a VPN connection you cannot see the printers but you can use them with the command:
     lpr -H cups-server.cs.kuleuven.be -P p1f-duplex file.pdf
  • if you are not on the wired network and don't have a VPN connection you cannot use the printers directly

Personal (Wireless) Hotspot

You can use the wireless network interface of your laptop to create a personal hotspot / private wireless network. In this way you can connect other devices (your mobile phone, tablet, ...) to the Internet in locations where you do have a wired network you can use but no wireless network you can (or want to) use.

Backup

The laptops are not included in the departmental backup system. If you do want to backup (or parts of) your local laptop home directory in the departmental backup system, you can do so indirectly with the cs-rsync-backup script. This script copies everything with rsync from your local laptop home dir to the BACKUP subdir in your departmental home dir, except the NoCsRsync subdir(s).

  • The name NoCsRsync is chosen so that it doesn't overlap with the existing principles of NoCsBack directories. You can perfectly have NoCsBack directories on your laptop home directory. These will be rsynced to your departemental home directory, but will not be backuped from there by the departmental backup system.
  • Of course your files in a NoCsRsync directory will also never be on the departmental backup system because 1) your laptop isn't backed up by this system and 2) those directories are not copied to the departmental systems that are included in the backup.
  • If you backup your local laptop home dir in your departmental homedir, your files will not be encrypted in your departmental home dir. You have to pay attention to the access rights of your BACKUP subdir - you most probably want to exclude others and possibly also the group with: chmod go= ~/BACKUP
  • Your laptop's hard drive most probably exceeds the quota on the departmental home dir. If you have more data on your laptop than your quota allows, you can either request more quota or put files in NoCsRsync directories.

For some extra help, examples on using the script or an email reminder (you will have to keep an eye on how often you make backups yourself) take a look here. On this page you can also find out about diffrent options of the script.

There are other backup systems, if you want to you can use the default Ubuntu duplicity or 3rd party software like Veeam or Code42/Crashplan - but as always: a backup is only as good as the place where you store it and most probably only directly usable when you need it if you regularly try to restore something from it. You might also find some more inspiration about backup and information about restoring files on the corresponding documentation pages.

Do also notice that having to backup your laptop might not be needed at all: if all your stuff is in (GIT, SVN, CVS, ...) repositories, (synced) cloud directories (Nextcloud, Dropbox, Onedrive, ...) or other technologies where your data is not only kept on your local device but also on a server elsewhere (Syncthing, ...), your data is safe, even if you loose your laptop. This kind of 'automatic' backup might very well even be the better option!

Scripts

There are some scripts to be used via terminal, bundled in:
 /usr/local/bin/cs-laptop-mode

The option "presentatie" puts the laptop in presentation mode:
 /usr/local/bin/cs-laptop-mode presentatie
This ensures that the laptop no longer goes to sleep not even when closing the laptop.

The option "normaal" returns the laptop to the normal state:
 /usr/local/bin/cs-laptop-mode normaal

Skype-for-Business

Beware: this section is quite old - not everything might still work as described - with the arrival of Microsoft Teams, Skype-for-business might also become less and less relevant.

Up until recently Skype-for-Business could not be used on Linux because a) Microsoft does not have a Linux version of its client software and b) the version of pidgin in the standard Ubuntu repository was not recent enough. We have found a separate repository that has a more recent version of pidgin with which you can connect to a Skype-for-business on-line meeting and use audio, chat and desktop sharing. The video sharing capabilities seem not to work as smooth however: they sometimes make pidgin crash. But if you not need video in your meeting, pidgin seems to work very well!

How to use it:

  • start pidgin with the pidgin command
  • configure your KU Leuven u-number account as explained in the KU Leuven Skype for Business FAQ - the main configuration items are:
    • on the Basic tab: Protocol = Office Communicator, Username = Firstname.Lastname@kuleuven.be, Login = u0123456@kuleuven.be
    • on the Advanced tab: Server = lyncaccess.kuleuven.be:443
    • it is uncertain whether the User Agent on the Advanced tab is still needed - it seems to work without, but maybe the video problems are related to this - you can find some strings to experiment with on on the sourceforge sipe page.
  • on the main window (the one containing the Buddies and Accounts menu items) open the Accounts menu open your KU Leuven u-number account menu and select Join Scheduled Conference
  • in Meeting location paste the meeting URL of the meeting you want to connect to
  • a new chat window or tab will open, most probably called Chat #1 or so
  • you can use that window to chat
  • if audio is not already enabled (e.g. because you are the first in the meeting and/or nobody else in the meeting has audio enabled), you can enable audio by opening the Conversation menu on the Chat window, then the More sub-menu and then selecting Join conference call (only use the Join conference video call if you want to experiment) - a new window will open in which you can Mute your audio when needed
  • if you want to see the shared desktop of another participant, select (in the More sub-menu) the option Show presentation
  • if you want to present your own Desktop to the meeting, select the option Share my desktop - a new window will open in which you can Stop presenting when you are done
  • you can stop the audio without stopping the entire meeting by using the Hangup option in the Media menu of the audio window
  • you can leave the meeting with the Close option in the Conversation menu of the Chat window
  • you can stop pidgin with the Quit option in the Buddies menu of the main window
    • it seems however that pidgin sometimes doesn't stop completely
    • if you want to be sure that you are completely off line in Skype for Business, check with:
      • ps aux | grep pidgin
    • it should show no active pidgin process - if it does, kill it with:
      • killall pidgin

Pool laptops

A number of laptops are available to borrow. Not for long-term use.
These can be requested at the helpdesk office or by email to helpdesk.
Please indicate whether you would like to have Linux or Windows, what the laptop will be used for and whether you need a guest/temporary WiFi account.