Hello our blog readers! Recently, I have encountered with a question of how to set up several work places on one single computer within Ubuntu 14.04 operating system. I succeeded setting up Multiseat mode, as I wanted, three workplaces working on single computer system.

Ofcourse, this article does not have any relations with programming in 1C, PHP or Delphi, but still you will see some programming at the end of this article. I think this article will be useful for those who want to set up a Multiseat mode on their computers. In my previous articles I was sharing with you on how to set up XAMPP on MAC OS X, and today lets deal with Multiseat. Lets go!

Contents

Selecting Videocards

Firstly, lets deal with videocards. It is preferred that these videocards are from the same producer, for example Nvidia. I had three of them: GeForce 7300GS, GeForce 210, GeForce GT 220. On my motherboard I had three PCI slots, and I used them for my videocards.

I have tried with different motherboard with two PCI slots and one integrated videocard, but BIOS denied, it denied working at the same time with external and integrated videocards, that is why there was only option left with three external video cards In order to make sure that all three videocards are detected by the system you can use a command prompt line in Linux:

$ lspci |grep VGA

Defining videocards and USB ports among other devices registered in Ubuntu

In order to properly set up Multiseat in Ubuntu 14.04 you need to know unique identificator number of each device and port. For this purpose you need to use command prompt line shown below:

$ udevadm info --export-db > /home/user/udevadm.txt

This command will create a file within the path given and save information about devices. If you open this file with a text editor you can then search and find your ports and devices.This file is very big, thus in search dialogue you can type “GeForce” for searching videocards or “usb7” for searching indetificators of USB ports. Let’s have a brief look to some parts of my file:

DEVPATH values that are highlighted in bold – «/devices/pci0000:00/0000:00:1c.0/0000:05:00.0» and «/devices/pci0000:00/0000:00:1d.1/usb7», are those that we need. We will need them on our next step.
To see connected USB devices you can use the command below:

$ lsusb

With the help of this command you can now see to which physical port belongs identificator from the file “udevadm.txt”. To understand this, eject one of the devices, (for example, mouse or keyboard) from USB-port, and then enter the command again, compare the changes, that occured after entering the same command “1susb” again.

Setting up rules for Multiseat mode

Let’s set up a file for rules of Multiseat, by susing the information provided in previous step. For this purpose let’s create a file:

As you probably guessed, values highlighted in bold are taken from «udevadm.txt» file (values without asterix). We are setting up three working places, but in rules file we are typing only for two. Why? Because, the videocard and not defined USB ports will be automatically setted up within the workplace with the name “seat0” (without a dash in the name, these are the rules of naming workplaces). After all steps have been followed you need to restart your computer in order for all changes to be applied. After restarting you can see a list of connected workplaces by typig in the command below:

$ loginctl list-seats

Also check this file «/etc/lightdm/lightdm.conf» for the section that includes values of identificators:

[LightDM]
logind-load-seats=true

Autostart Firefox

For total solution to our task it was required to launch Firefox for every workplace. Firefox was programmed to be lauched in Autostart, however while lauchning, Firefox started only on one single workplace, on others there were error:

Firefox is already running, but is not responding.
To open a new window, you must first close the existing Firefox process,
or restart your system.

The reason for this was that workplaces are initiated from one user, that is why we were getting this error. We solved the problem by creating several profiles for Firefox:

Categories

The article deals with setting up XAMPP, which must be done so that the local web-server Apache work properly. After reading the article you will be able to set up virtual hosts and quickly correct any error that prevents proper operations of the mod_rewrite mode in the file .htacces.