Re: [X2Go-User] Install x2go TCE-live server

2019-01-23 Thread Stefan Baur
Am 23.01.19 um 10:40 schrieb Stroganov Roman:
> Why I show consideration for it?
> If during one session the user used many different usb disks, then it will
> have many not working links on a desktop (garbage) and in / home/media/. It
> will mislead him...

I agree with you there.  Feedback from the developers is that it is a
bug.  I am currently discussing the best way to fix it with them.
Removing the empty directory on the thinclient will probably be easy.
And as we've seen, it will then automatically disappear from the server
as well.
The tricky part will probably be removing the Desktop link ...

Kind Regards,
Stefan Baur

-- 
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364
Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user

Re: [X2Go-User] Install x2go TCE-live server

2019-01-22 Thread Stefan Baur
Am 22.01.19 um 16:02 schrieb Stefan Baur:
> Ah, I think I understand.
> I will talk to the developers about this.
> My guess is that maybe there is no way to pass the information along to
> the server that the flash disk (with this particular name) has been
> removed, so it only shows the contents as gone.
> 
> But as I said, I'll contact the developers, let's see what they have to say.

So the devs say the folder name SHOULD disappear, everything else would
be a bug.  I'll try it on my demo system tomorrow and will let you know
if I'm seeing it happen as well.

Kind Regards,
Stefan Baur

-- 
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364
Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user

Re: [X2Go-User] Install x2go TCE-live server

2019-01-22 Thread Stefan Baur
Am 22.01.19 um 15:46 schrieb Stroganov Roman:
> You are right. I use the translator.
> The description of a problem in my native language is lower
> 
> При подключении usb диска к тонкому клиенту на нем создается каталог для ее
> монтирования (например /media/Kingston) Эта же директория пробрасывается на
> сервер x2go и там доступна.
> При отключении usb диска каталог монтирования /media/Kingston не удаляется
> автоматически на тонком клиенте и соответственно он виден на сервере, но
> пустой. Это вводит в заблуждение пользователей.
> Я думаю что при отключении usb диска на тонком клиенте должен удаляться
> каталог монтирования (в нашем случае /media/Kingston), а на сервере
> удаляться ссылки на флешку с рабочего стола и каталога пользователя

Ah, I think I understand.
I will talk to the developers about this.
My guess is that maybe there is no way to pass the information along to
the server that the flash disk (with this particular name) has been
removed, so it only shows the contents as gone.

But as I said, I'll contact the developers, let's see what they have to say.

Kind Regards,
Stefan Baur

-- 
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364
Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user

Re: [X2Go-User] Install x2go TCE-live server

2019-01-22 Thread Stefan Baur
Am 22.01.19 um 14:29 schrieb Stroganov Roman:
> usb drive are mounted well. Russian is displayed correctly both on the thin
> client and on the server. To work with objects with the Russian names
> became possible.
> Thanks a lot for the help!

You're welcome!  Also, debugging this publicly on the list has helped us
find a bug in x2gousbmount, and parts of the debugging session we had
with you became a new FAQ entry for TCE-Live
().


> But me the small mistake seems to eat in a script. After shutdown of usb
> drive of a directory of assembling are not removed automatically on the
> thin client and continue to be displayed on the server, but empty.
> If to insert, for example, 5 usb drive, and the spendthrift to disconnect
> them, then there will be 5 empty directories.

I'm not quite sure what you are trying to say here.  I'm guessing you
are using Google Translate to post in English?
While this list's language is English, I think we could make an
exception here and let you re-post this paragraph in your native
language (which I'm guessing is Russian or Ukrainian).
We have other Russian/Ukrainian speakers here on the list that might be
able to provide an English translation for me. :)

Kind Regards,
Stefan Baur

-- 
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364
Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user

Re: [X2Go-User] Install x2go TCE-live server

2019-01-22 Thread Stefan Baur
Am 22.01.19 um 12:00 schrieb Stroganov Roman:
> If I carry out ./x2gousbpatch && ./x2gobuild2 2>&1 | tee logfile that the
> patch is downloaded with github. This is not what it is necessary for me.
> I change in ./patch/includes.chroot/usr/lib/x2go/tce/x2gousbmount a line
> elsif (system("mount -tvfat $dev /media/$name/$ldev -o
> uid=$user,sync,uni_xlate") == 0)
> on
> elsif (system("mount -tvfat $dev /media/$name/$ldev -o
> uid=$user,sync,utf8") == 0)
> also I carry out
> ./x2gobuild2 2>&1 | tee logfile
> create a new build
> It breaks autoconnection of any disks (ntfs, fat) Not forwarding to server.
> Does not mount on the thin client.

That sounds like something went wrong when you copy-pasted/edited the
file.  The change, properly applied, would also only affect vfat mounts,
not ntfs.

The original download from github has md5 checksum
4ce1acefdfa39bef3755d55a6a22b673
after correctly applying the patch, the checksum should be:
3b3e4b25acc259e01c80a4c7bdead0fb

I have also uploaded a copy of the patched file to
 - try downloading it from
there, verify the checksum, and replace the link in ./x2gousbpatch with
it.  Note that this download won't stay up forever, so you should save a
local copy somewhere.

When inside the booted thinclient environment, you can also check that
the file is syntactically correct by running

perl -c /usr/lib/x2go/tce/x2gousbmount

Which should return a "syntax OK" message if everything went well.

Since you're not seeing any automatic mounts take place after you
changed the file, I would assume it will complain about some error here
(Maybe "Bareword found where operator expected ..." or something like that.)

I just verified it on my test machine, when I change uni_xlate to utf8
in the line quoted above, mounts still work for me.


> In the console of the thin client I do mount/dev/far32_drive  /mnt/fat32
> without additional parameters and well I see directories and files with the
> Russian names.
> 
> On  regular Ubuntu checked connection of usb drive fat32. Everything is
> well read/written
> user@3S-13:~$ mount | grep fat
> /dev/sdb1 on /media/user/ROSTMA type vfat
> (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)

See, that string contains "utf8", not "uni_xlate", so it confirms my
theory that the "uni_xlate" in that x2gousbmount script is causing the
problem for you.

Kind Regards,
Stefan Baur

-- 
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364
Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user

Re: [X2Go-User] Install x2go TCE-live server

2019-01-21 Thread Stefan Baur
Am 21.01.19 um 16:00 schrieb Stefan Baur:
> My guess is that FAT32 (to be more precise: the vfat mount module)
> doesn't support UTF-8 out of the box, and/or you're using some regional
> charset (KOI8-R, maybe?) instead of UTF-8.  On a system that expects
> UTF-8, this will cause confusion ...

Well, looking at the source of x2gousbmount, I think the problem is this:

if (system("mount -tntfs $dev /media/$name/$ldev -o
uid=$user,sync,uni_xlate") == 0)

[...]

elsif (system("mount -tvfat $dev /media/$name/$ldev -o
uid=$user,sync,uni_xlate") == 0)

[...]

So for both ntfs and vfat mounts, uni_xlate is set.

man mount says for ntfs:

uni_xlate={0|1|2}
For 0 (or `no' or `false'), do not use escape sequences for unknown
Unicode characters.  For 1 (or `yes' or `true') or 2, use vfat-style
4-byte escape sequences starting with ":".  Here 2 give a little-endian
encoding and 1 a byteswapped bigendian encoding.

while for vfat, the same parameter is documented to do something else:
uni_xlate
Translate unhandled Unicode characters to special escaped sequences.
This lets you backup and restore filenames that are created with any
Unicode characters.  Without this option, a '?' is used when no
translation is possible.  The escape character is ':' because it is
otherwise invalid on the vfat filesystem.  The escape sequence that gets
used, where u is the Unicode character, is: ':', (u & 0x3f), ((u>>6) &
0x3f), (u>>12).

AND man mount also says under "vfat"

utf8
UTF8 is the filesystem safe 8-bit encoding of Unicode that is used by
the console.  It can be enabled for the filesystem with this option or
disabled with utf8=0, utf8=no or utf8=false. If  'uni_xlate'  gets  set,
UTF8 gets disabled.

The last sentence is the important one.

So, since we are setting uni_xlate for the vfat mounts, utf8 gets
disabled, which explains why you're seeing the hex codes instead.

A workaround for you is to cd into the
./patch/includes.chroot/usr/lib/x2go/tce/ directory you created, and
edit the file x2gousbmount there.

Look for the line

elsif (system("mount -tvfat $dev /media/$name/$ldev -o
uid=$user,sync,uni_xlate") == 0)

(all on one line)

and replace 'uni_xlate' with 'utf8'.

After that, create a new build and deploy it.

Please let us know if that worked.  If it did, we will have to think
about how to handle this in future releases.

Kind Regards,
Stefan Baur

-- 
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364
Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user

Re: [X2Go-User] Install x2go TCE-live server

2019-01-21 Thread Stefan Baur
Am 21.01.19 um 15:14 schrieb Stroganov Roman:
> I will share the observations:
> I have 2 identical usb drive. One ntfs, other fat32. On both I create a
> directory "Новая папка" (new folder) and "новый файл.txt" (new file.txt)
> We connect both and we watch contents after mount in the console of the
> thin client:
> 
> ls /media/ntfs_drive/
> Новая Папка  новый файл.txt  System Volume Information
> 
> ls /media/fat32_drive/
> :041d:043e:0432:0430:044f :043f:0430:043f:043a:0430
> :043d:043e:0432:044b:0439 :0444:0430:0439:043b.txt   System Volume
> Information
> 
> Later we go on the server.
> We open on the ntfs_drive server and we see normal Russian names of the
> file and a directory. It is possible to create new objects with the Russian
> names without problems. Checked even the Ukrainian alphabet. Everything is
> OK!

So NTFS-formatted drives work fine ...

> We open on the fat32_drive server. There is a directory": 041d: 043e:
> 0432:0430:044f: 043f: 0430:043f: 043a: 0430" and file": 043d: 043e:
> 0432:044b: 0439: 0444:0430:0439:043b.txt". It is impossible to create
> directories/files in Russian

My guess is that FAT32 (to be more precise: the vfat mount module)
doesn't support UTF-8 out of the box, and/or you're using some regional
charset (KOI8-R, maybe?) instead of UTF-8.  On a system that expects
UTF-8, this will cause confusion ...

What happens when you umount the VFAT drive (leave it plugged in) as
root, then mount it manually? Do the characters show up correctly now?

What happens when you use

mount -t vfat -o utf8 /dev/sda1 /media/fat32_drive

or

mount -t vfat -o utf8=0 /dev/sda1 /media/fat32_drive

or

mount -t vfat -o uni_xlate /dev/sda1 /media/fat32_drive

# (yes, that is uni_xlate, not unix_late)

Any change in the output?

Also, have a look at "man mount", look at the possible values for the
options "codepage", and "iocharset", see if you can change one of them
to make it work manually.

Do you have a regular Debian/Ubuntu Linux client where you can mount
this FAT32 flash disk and everything works as expected?

If so, on that machine, please run "mount | grep fat" once the flash
disk is mounted, and post the output.

If it just happens to be additional mount options, we could probably
support them somehow.

Kind Regards,
Stefan Baur

-- 
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364
Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user

Re: [X2Go-User] Install x2go TCE-live server

2019-01-21 Thread Stefan Baur
Am 21.01.19 um 13:06 schrieb Stefan Baur:
> Am 21.01.19 um 12:45 schrieb Stroganov Roman:
> 
> Well, I'm glad we got the connection issues solved ...
> 
> 
>> Forwarding directory /home/user/Документы from simple linux (not the thin
>> client) forwards empty directories. If I forward a directory in Latin, it
>> forwards it, but everything is farther as with the thin client. Names are
>> displayed not correctly, and nothing with the Russian names can be
>> created...: (
> 
> Just to make sure we are talking about the same issue: Does this only
> happen when you use X2GoClient's folder sharing, or also when you use
> sshfs on the command line, independent of X2Go?
> 
> Because if it also happens with plain sshfs, this is not a bug in X2Go,
> and you/we'd have to report it as a bug to the maintainer(s) of sshfs.
> 
> If it happens with X2Go only, well, it could be an UTF-8 or otherwise
> charset-related bug ... I'll openly admit we have an unfixed UTF-8 issue
> in a different part of the X2GoClient code (Published Applications
> mode), so who knows, this might be yet another one.
> 
> So please test a plain sshfs connection, if you haven't done so already,
> and let us know if it is affected by the same bug or not.

Some more info on this:

sshfs knows the options

   -o from_code=CHARSET
  original encoding of file names (default: UTF-8)

   -o to_code=CHARSET
  new encoding of the file names (default: ISO-8859-2)

And these can be set in X2GoClient as well ("shared folders" tab in the
session configuration, checkbox "Filename encoding").

Maybe you could try to enforce UTF-8 on both sides, "from" and "to", and
see if that makes a difference.

Also, check the output of

export

on the server for any LANG and LC_ settings - maybe you aren't using
UTF-8 on the server, only on the thinclient, and that's causing the mess?

Kind Regards,
Stefan Baur

-- 
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364
Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user

Re: [X2Go-User] Install x2go TCE-live server

2019-01-21 Thread Stefan Baur
Am 21.01.19 um 12:45 schrieb Stroganov Roman:

Well, I'm glad we got the connection issues solved ...


> Forwarding directory /home/user/Документы from simple linux (not the thin
> client) forwards empty directories. If I forward a directory in Latin, it
> forwards it, but everything is farther as with the thin client. Names are
> displayed not correctly, and nothing with the Russian names can be
> created...: (

Just to make sure we are talking about the same issue: Does this only
happen when you use X2GoClient's folder sharing, or also when you use
sshfs on the command line, independent of X2Go?

Because if it also happens with plain sshfs, this is not a bug in X2Go,
and you/we'd have to report it as a bug to the maintainer(s) of sshfs.

If it happens with X2Go only, well, it could be an UTF-8 or otherwise
charset-related bug ... I'll openly admit we have an unfixed UTF-8 issue
in a different part of the X2GoClient code (Published Applications
mode), so who knows, this might be yet another one.

So please test a plain sshfs connection, if you haven't done so already,
and let us know if it is affected by the same bug or not.

Kind Regards,
Stefan Baur


-- 
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364
Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user

Re: [X2Go-User] Install x2go TCE-live server

2019-01-18 Thread Stefan Baur
Am 18.01.19 um 15:51 schrieb Stroganov Roman:
> I repeated build image for the thin client.
> Now from the console of the thin client of
> md5sum/usr/lib/x2go/tce/x2gousbmount gives correctly
> 4ce1acefdfa39bef3755d55a6a22b673
> Usb drive is mounted in / media/Data_Treveler/sda1 and I see its contents
> there, 

Okay, so we got that fixed. Nice. :-)


> there, but how to me now to see it on the server?
> I tried x2go-tce-sessions to add export=/media/, but it leads to crash of a
> session of the thin client

Before going bug-hunting on the thinclient any further, please verify
that folder sharing works in general, by using a regular X2GoClient and
configuring a session with folder sharing there.

How to do that is explained here:


If you can confirm folder sharing works in general, then the issue must
be with the thinclient/the session file used and we should take a closer
look there.  But if you can't get folder sharing to work at all, it is
more likely to be a server issue - maybe the "fuse" package isn't
installed on the server?
To install, you can use "sudo apt install fuse" on Debian/Ubuntu, or
"sudo yum install fuse" on Fedora, RHEL, CentOS.

Kind Regards,
Stefan Baur

-- 
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364
Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user

Re: [X2Go-User] Install x2go TCE-live server

2019-01-18 Thread Stefan Baur
Am 18.01.19 um 11:57 schrieb Stroganov Roman:
>  ls -la /usr/lib/x2go/tce/x2gousbmount
> -rwxr-xr-x 1 root root 12886 Янв 16 19:17 /usr/lib/x2go/tce/x2gousbmount
> 
> md5sum /usr/lib/x2go/tce/x2gousbmount
> a6959f1f1de425ea26d8076d21b84b3e  /usr/lib/x2go/tce/x2gousbmount

Hmm, that's not the x2gousbmount version you should be using.  Maybe
something went wrong during your build and the patch didn't get applied.

On the thinclient, do:
sudo wget -O /usr/lib/x2go/tce/x2gousbmount
'https://code.x2go.org/gitweb?p=x2gothinclient.git;a=blob_plain;f=usbmount/x2gousbmount;hb=c6106bd12ca0278b8706e87813ff782c0bbb6132'
#this all goes on one line

followed by

sudo chmod 755 /usr/lib/x2go/tce/x2gousbmount

Then remove the flash disk, wait a few seconds, insert it again.

Follow up with another call of

grep usbmount /var/log/syslog

If it shows up as mounted now, go back to your build directory, run

mkdir -p ./patch/includes.chroot/usr/lib/x2go/tce/ ; wget -O
./patch/includes.chroot/usr/lib/x2go/tce/x2gousbmount
'https://code.x2go.org/gitweb?p=x2gothinclient.git;a=blob_plain;f=usbmount/x2gousbmount;hb=c6106bd12ca0278b8706e87813ff782c0bbb6132'
; chmod 755 ./patch/includes.chroot/usr/lib/x2go/tce/x2gousbmount #this
all goes on one line

and start a new build.  Once done, boot the image, log in, and run

md5sum /usr/lib/x2go/tce/x2gousbmount

again. It should now show a checksum of 4ce1acefdfa39bef3755d55a6a22b673
and the mount should work automatically.


Else, if it still comes up empty, try the following on the thinclient
(assuming it is the same flash disk you used for your previous
experiments) - but be sure to run it as root (if you're not logged in
remotely, run "sudo -i" for a root shell after logging in as user):

DEVNAME=/dev/sda1 ID_MODEL=MODEL ID_VENDOR=VENDOR ACTION=add
/usr/lib/x2go/tce/x2gousbmount #this all goes on one line

This might spit out a (non-fatal) error message related to NTFS, if the
drive is FAT formatted.  Please post the complete output, as well as the
output of

mount | grep sda1


> fdisk -l
> -bash fdisk: Command not found

You are not running this as root.
Please repeat as root, with the flash disk connected (try "sudo fdisk -l").


Kind Regards,
Stefan Baur

-- 
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364
Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user

Re: [X2Go-User] Install x2go TCE-live server

2019-01-18 Thread Stefan Baur
Am 17.01.19 um 20:41 schrieb Stroganov Roman:
> I made
> mount | tee mountbefore
> mount | tee mountafter
> diff mountbefore mountafter
> Blank line
> 
> If flash disk is inserted into consoles of the thin client when to gather
> lsblk I see
> 
> sda   30G  disk
> sda1  30G  part
> 
> But there are no mount points. I can make
> sudo mkdir /mnt/1
> sudo mount /dev/sda1 /mnt/1
> ls /mnt/1
> I see directories and files of the flash drive
> If I correctly understand a disk does not mount on the thin client.

Please reboot the thinclient, so your manual mounts are gone.

Log in as root on the thinclient, run the following commands, and post
the output here:

ls -la /usr/lib/x2go/tce/x2gousbmount
md5sum /usr/lib/x2go/tce/x2gousbmount

Then, insert the flash disk and run these commands:

fdisk -l
grep usbmount /var/log/syslog

and also post the output here.

I just checked it on my test system with a recent build and the
automounter triggers just fine there, so I wonder what's wrong on your
system.

Kind Regards,
Stefan Baur

-- 
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364
Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user

Re: [X2Go-User] Install x2go TCE-live server

2019-01-17 Thread Stefan Baur
Am 17.01.19 um 20:41 schrieb Stroganov Roman:
> I made
> mount | tee mountbefore
> mount | tee mountafter
> diff mountbefore mountafter
> Blank line
> 
> If flash disk is inserted into consoles of the thin client when to gather
> lsblk I see
> 
> sda   30G  disk
> sda1  30G  part
> 
> But there are no mount points.

Okay, so the automounter is broken somehow.

I haven't used the function in a while, so I will check this myself with
a recent build on a test system here - but tomorrow.

If it works for me, we'll have to compare a few files; if it is broken
for me as well, I'll investigate on my own and try to get it fixed.

Kind Regards,
Stefan Baur

-- 
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364
Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user

Re: [X2Go-User] Install x2go TCE-live server

2019-01-17 Thread Stefan Baur
Hi Roman!

Am 17.01.19 um 14:08 schrieb Stroganov Roman:
> On points:
> At me on the xfce server
> 
> Sound:
> The sound earned. audioout=list helped to see the correct name of the
> alsa_card.pci-_00_1b.0|output:analog-stereo sound card But a sound
> every time of mute. It is necessary to include it.

Okay. So you will have to include the proper audioout boot parameter for
your devices.  If you need different settings for different
manufacturers, you can try to tell them apart by MAC address and set
separate pxe boot configuration files for them.

To un-mute, you probably need to create a script on the server that
raises the volume/toggles the mute setting upon user login.


> Usb disks:
> I tried 3 usb flash drive. On all there is a file system and they are
> workers. Did everything in the console of the thin client (ctrl alt f1
> user/live)
> 
> mount | tee mountbefore
> then insert the USB flash drive
> mount | tee mountafter
> diff mountbefore mountafter
> Output blank line (there is no difference between files)
> 
> At the same time at connection of usb it is displayed nothing in the
> console. Only at connection of one device in the console appears
> sd 6:0:0:0 [sda] No Caching mode page found
> sd 6:0:0:0 [sda] Assuming drive cache: write through
> 
> If in the console of the thin client to execute udevadm monitor - property
> - kernel - udev, then at connection of any flash drive outputs a lot of
> information on the attached device (model, serial number, vendor and many
> other things)


Okay then, please repeat the same commands, but this time as root on the
thinclient.

mount | tee mountbefore

then insert the USB flash drive, wait a moment, then run

mount | tee mountafter

diff mountbefore mountafter

If we get a result there, then it means mounting works properly on the
client side, and we need to investigate why it isn't passed along to the
server.  If not, we need to investigate why the automounter on the
client isn't working.

Kind Regards,
Stefan Baur

-- 
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364
Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user

Re: [X2Go-User] Install x2go TCE-live server

2019-01-17 Thread Stefan Baur
Am 17.01.19 um 09:48 schrieb Stroganov Roman:
> From this what checked:
> tcpprint - works (checked for kyocera fs-1300d, but I think any printers
> which work with linux will work)

This is raw TCP/IP, so the make and model of printer doesn't matter.
In fact, you could hook up a cheap GDI printer that only works with
Windows - as long as the print job is created on a Windows machine, it
would print.  Not really practical for X2Go, I think, but it would work,
as silly as it is.

Do make sure to set tcpprintonlyfrom= (syntax is the same as
xinetd's only_from), though - else you might be in for a nasty surprise
sooner or later:


etc.

> usb-flash-drive(fat/ntfs) - Does not work (how to repair I do not know.
> there is no usb of devices anywhere. x2goserverfmbindings on the server is)

Please open an xterm or similar shell on the server (inside the X2Go
session).
Run

mount | tee mountbefore

then insert the USB flash drive, wait a moment, then run

mount | tee mountafter

diff mountbefore mountafter

This should show if any mounts are taking place.

Also, which Desktop Environment are you using? XFCE, MATE, LXDE, ...?


> The sound - does not work (00:1b.0 Audio device: Intel Corparation
> 82801JD/D0 (ICH10)

First, check that the audio isn't simply muted (some cards/setups do
this by default).  Run "pavucontrol" inside the X2Go session. Check the
settings on the tabs "Output Devices" and "Configuration".

If that doesn't help, please boot with additional boot parameter

audioout=list

and look at the output on console #8 (Hit Ctrl+Alt+F8) - it will give
you a list of available audio output devices.  This list also gets
written to /tmp/audiolog on the ThinClient.

You might have to pick a different one from the list, by using boot
parameter audiout with a particular card/output value, like:

audioout=“alsa_card.pci-_00_1b.0|output:hdmi-stereo”

(you need to copy the proper value from the list).

As general advice, you might also want to take a look at

for more options you can specify as boot parameters.

bg= and branding= might be interesting to you as well, to "theme" the
login screen towards your company CI, and xinerama= if you have
multi-monitor setups.

Kind Regards,
Stefan Baur

-- 
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364
Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user

Re: [X2Go-User] Install x2go TCE-live server

2019-01-16 Thread Stefan Baur
Am 16.01.19 um 18:35 schrieb Stefan Baur:
> Am 16.01.19 um 16:10 schrieb Stefan Baur:
>> Am 16.01.19 um 13:56 schrieb Stroganov Roman:
>>
>>> On the thin client I see the console localhost login text:
>>> Sometimes it is very quickly visible some blue screen and again the console.
> I just encountered a similar issue on a test build.  I'm not sure if it
> is a coincidence, but it might be the current version in git is broken.
>  I'll do a few test runs and will let you know.

Hi Roman,

just start a new build with

./x2gousbpatch && ./x2gobuild2 2>&1 | tee logfile

and afterwards, pick the files starting with x2go-tce-* from the
directory with the newer timestamp.

We had a bug in the TCE version on github that only triggered if no
local screensaver is used.  In our current test setup, we're using one,
so we didn't catch that issue right away.  Once we started using the
image the same way as you, we were affected by the bug as well, and it
was easy to track down.

Kind Regards,
Stefan Baur

-- 
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364
Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user

Re: [X2Go-User] Install x2go TCE-live server

2019-01-16 Thread Stefan Baur
Am 16.01.19 um 16:10 schrieb Stefan Baur:
> Am 16.01.19 um 13:56 schrieb Stroganov Roman:
> 
>> On the thin client I see the console localhost login text:
>> Sometimes it is very quickly visible some blue screen and again the console.
I just encountered a similar issue on a test build.  I'm not sure if it
is a coincidence, but it might be the current version in git is broken.
 I'll do a few test runs and will let you know.

Kind Regards,
Stefan Baur

-- 
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364
Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user

Re: [X2Go-User] Install x2go TCE-live server

2019-01-16 Thread Stefan Baur
Am 16.01.19 um 13:56 schrieb Stroganov Roman:

> On the thin client I see the console localhost login text:
> Sometimes it is very quickly visible some blue screen and again the console.

This is an indication that your X session is starting up, but crashing.
I suggest you log in as root@yourthinclientip via SSH using a public key
provided via a pubkey= boot parameter and file.

As root, you can run:

service nodm stop

to stop the flashing.

Then, look for the files

/home/user/.xsession-errors

and

/var/log/Xorg.0.log

Their content might provide hints as to what is going on, so feel free
to post them here.


> At line with APPEND in the end added fetch=
> http://10.3.1.117/x2go-tce/x2go-tce-filesystem.squashfs sessionsurl=
> http://10.3.1.117/x2go-tce/x2go-tce-sessions session=tsu to the file of a
> configuration

Looks good ...


> In the sessions name=tsu file (I tried to write session=0123456 as at the
> beginning of the session [0123456] file)

No, it's the session name, not the session id, so "tsu" is correct,
assuming you have a session named "tsu".


> What can be made? Can as that it is possible to look at log on the thin
> client? added debug to APPEND. But how to look at it I do not know.

The debug parameter probably won't help you.  It will generate lots of
output regarding the startup phase, but that's not where your problem
lies.  Startup is OK, it's the X Server that is acting up - for reasons
currently unknown.

You might want to try passing boot parameter

xorg-resolution=1024x768 (or a lower resolution)

and/or boot parameters

nomodeset vga=normal

and/or boot parameter

xorg-driver=fbdev or xorg-driver=vesa

and see if the X Server will stay up with one of these.

Kind Regards,
Stefan Baur

-- 
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364
Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user

Re: [X2Go-User] Install x2go TCE-live server

2019-01-16 Thread Stefan Baur
Am 16.01.19 um 08:49 schrieb Stroganov Roman:
> cat /etc/debian_version
> 9.6

Ah, you're using a newer version of Debian than the one I recommended.
Maybe that's causing your issue with the exported variables not showing
up (though it should not ...).


> Your Haque seems it turned out. Assembly began. Build is done
> ended:./live-build-x2go-20190115182341'
> In live-build-x2go-20190115182341 directory (but not
> live-build-x2go-20190115182341-netboot-amd64-openbox-magic-pixel-workaround-stretch.
> Can do it important?)

Hmm, it seems that I added the code to append name after the timestamp
in my local version of the build script, but never uploaded that to the
wiki.  Guess I'll have to upload a new version $SOON.


> I have x2go-tce-filesystem.squashfs,
> x2go-tce-initrd.img and x2go-tce-vmlinuz files

Sounds good.


> I installed lighttpd and tftpd-hpa (got used already), in them created
> subdirectories of x2go-tce and in them copied files as you spoke.
> My dhcp server is configured on loading by the thin client of the
> pxelinux.0 file Where to take it to me? It is necessary to download from
> the website syslinux or it was necessary to set at first tce-classic and to
> take directories from its boot?

I usually install the syslinux package on the server, and grab the
necessary files from there, but you can also untar
live-build-x2go-20190115182341/live-image-amd64.netboot.tar - it
contains the standard debian-live netboot environment:

drwxr-xr-x root/root 0 2019-01-12 14:10 debian-live/
drwxr-xr-x root/root 0 2019-01-12 14:18 debian-live/live/
-rw-r--r-- root/root 271675392 2019-01-12 14:17
debian-live/live/filesystem.squashfs
-rw-r--r-- root/root 17075 2019-01-12 14:17
debian-live/live/filesystem.packages
-rw-r--r-- root/root 1 2019-01-12 14:17
debian-live/live/filesystem.packages-remove
drwxr-xr-x root/root 0 2019-01-12 14:18 tftpboot/
-rw-r--r-- root/root181944 2017-10-18 16:01 tftpboot/libcom32.c32
drwxr-xr-x root/root 0 2019-01-12 14:18 tftpboot/live/
-rw-r--r-- root/root   4232992 2019-01-12 14:17 tftpboot/live/vmlinuz
-rw-r--r-- root/root  34019418 2019-01-12 14:17 tftpboot/live/initrd.img
drwxr-xr-x root/root 0 2019-01-03 12:55 tftpboot/pxelinux.cfg/
-rw-r--r-- root/root57 2014-10-25 12:21
tftpboot/pxelinux.cfg/default
-rw-r--r-- root/root   616 2019-01-12 14:18 tftpboot/live.cfg
-rw-r--r-- root/root116552 2017-10-18 16:01 tftpboot/ldlinux.c32
-rw-r--r-- root/root 26684 2017-10-18 16:01 tftpboot/vesamenu.c32
-rw-r--r-- root/root165004 2017-10-18 16:01 tftpboot/hdt.c32
-rw-r--r-- root/root 36584 2019-01-12 14:18 tftpboot/splash.png
-rw-r--r-- root/root   270 2019-01-12 14:18 tftpboot/menu.cfg
-rw-r--r-- root/root   153 2019-01-12 14:18 tftpboot/advanced.cfg
-rw-r--r-- root/root   508 2019-01-12 14:18 tftpboot/stdmenu.cfg
-rw-r--r-- root/root 23628 2017-10-18 16:01 tftpboot/libutil.c32
-rw-r--r-- root/root   268 2019-01-12 14:18 tftpboot/install.cfg
-rw-r--r-- root/root 42058 2017-10-18 16:01 tftpboot/pxelinux.0


What the debian-live sample lacks is the X2Go-specific configuration,
so, basically, you remove the debian-live/live and tftpboot/live
directories, place the three files starting with x2go-tce- in a
directory tftpboot/x2go-tce/ instead, and change the contents of
tftpboot/live.cfg according to the description found in the Wiki at
.

For example, mine currently looks like:

DEFAULT x2go-tce-amd64-stretch
LABEL x2go-tce-amd64-stretch
MENU LABEL ^X2Go-TCE-amd64-stretch

KERNEL x2go-tce/x2go-tce-vmlinuz

# the following all goes on one line, no line breaks
APPEND initrd=x2go-tce/x2go-tce-initrd.img net.ifnames=0 biosdevname=0
boot=live components noswap noroot nouser xinerama=left-of
vconsole.keymap=de lang=de locales=de_DE.UTF-8 keyboard-layouts=de
nomagicpixel=1
fetch=http://SERVERIPHERE/x2go-tce/x2go-tce-filesystem.squashfs
sessionsurl=http://SERVERIPHERE/x2go-tce/x2go-tce-sessions
pubkey=http://SERVERIPHERE/x2go-tce/x2go-tce-authorized_keys
session=DEFAULTSESSIONNAMEHERE

Where it says SERVERIPHERE, insert the IP of your http server.

Save the session configuration file as x2go-tce/x2go-tce-sessions on the
http server.

You can specify a default session where it says DEFAULTSESSIONNAMEHERE -
or you can leave out the session= parameter completely, if you do not
want to define a default session for the user.

The pubkey= parameter is also optional, but I would recommend using it,
and storing your personal SSH public key in the file
x2go-tce/x2go-tce-authorized_keys on the http server, so you have a way
to log in to the ThinClient as root via SSH (local console logins are
blocked for both root and user, due to the use of the "noroot" and
"nouser" boot parameters).

You will probably also want to change vconsole.keymap=de, lang=de,
locales=de_DE.UTF-8, and keyboard-layouts=de to the appropriate values
for your locale, 

Re: [X2Go-User] Install x2go TCE-live server

2019-01-15 Thread Stefan Baur
Am 14.01.19 um 11:21 schrieb Stroganov Roman:
> Thank you that you help me.
> Now I began new installation on debian stretch on yours instructions.
> After start of scripts I receive the message:
> 
> root@tce:~/builddir# ./x2goconfig && ./x2gousbpatch && ./x2gobuild 2&1
> | tee logfile
> One or more of the following variables is unset:
> LBX2GO_ARCH: ''
> LBX2GO_SPACE: ''
> LBX2GO_DEFAULTS: ''
> LBX2GO_DEBVERSION: ''
> LBX2GO_CONFIG: ''
> LBX2GO_IMAGETYPE: ''
> LBX2GO_TIMESTAMP: '20190114120404'
> LBX2GO_BOOTLOADERPARAMNAME: ''
> LBX2GO_BOOTLOADER: ''
> LBX2GO_ARCHIVE_AREAS: ''
> Please visit http://wiki.x2go.org/doku.php/doc:howto:tce
> and read up on the general prerequisites for X2Go-TCE
> 
> the same is written down in logfile
Hmm, that looks as if for some reason your exports aren't working.
Actually, I have an idea why.  Are you, by chance, running a different
default shell than bash?
You can check that using the command

ls -lah /bin/sh

-> if it says "/bin/dash" (a "d" instead of a "b"), then you need to add

#!/bin/bash

as the first line of all three files, and try again.
(Thanks for the hint, by the way - I'll update the files in the wiki to
contain that line.)

If you were using bash, and it still failed with the above message - did
you really run the command as shown, and not in 3 installments, each
prefaced with sudo (because if you did that, it would explain why it's
failing)?

If it's still failing with the above error message, after
checking/double-checking the items above, please run the following
(again, as root):

echo "grep results:" | tee -a debuglog
grep "LBX2GO_ARCH" ./x2goconfig 2>&1 | tee -a debuglog
echo "x2goconfig invocation" | tee -a debuglog
./x2goconfig 2>&1 | tee -a debuglog
echo "exports after x2goconfig" | tee -a debuglog
export 2>&1 | tee -a debuglog

And post the contents of the file "debuglog".

Kind Regards,
Stefan Baur

-- 
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364
Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user

Re: [X2Go-User] Install x2go TCE-live server

2019-01-13 Thread Stefan Baur
Am 13.01.19 um 22:15 schrieb Stroganov Roman:
>  I have several thin clients who 512 MB have RAM. At the others 1 GB and
> more. If I correctly understood x2go tce-live it is loading of FAT clients?

I don't know what you mean by this.  The main difference between
TCE-Classic and TCE-Live is that the image gets loaded into the RAM of
the ThinClient.  You still get the same, full-screen X2Go login screen
afterwards.  The image itself is currently ~ 260 MB.  So even on a 512
MB machine you should have enough free RAM to run X2GoClient and
establish a connection.


> Their start pudt long? I plan about 15-20 clients only in local network.

This depends on your network speed.  With a 1GBit/s switched network,
and loading the image via http, it takes about 1m40s from cold boot to
login screen.
Ways to optimize that are using local storage on the thin client
(internal flash or USB media), or manually stripping down the image from
260 MB to something smaller.  188 MB should be easy to achieve,
something around 166 MB will take more effort.


> The network is very stable. Use of nfs is quite possible.
> I would like to try x2go tce-live but there are some difficulties.
> I am not a really experienced user of Linux. Therefore I need the detailed
> instruction. https://wiki.x2go.org/doku.php/doc:howto:tce it is badly clear
> to me that to do. The stage "Building your own X2Go-TCE Image" What there
> to do? It is a script?

Yes, it is a script. Three scripts, to be exact.
The first one configures the build, the second one is a patch you need
to prepare, the third is the actual build script.

I would suggest using a Debian Jessie system as the build host if you
want to try this yourself.  It might work with a Debian Stretch build
host, but I haven't tested that.  Whatever you do, stay away from
Ubuntu.  They ship a live-build version that is horribly out of date.

On that Debian system, run:

sudo apt-get update
sudo apt-get install genisoimage git-core live-build live-config-doc
live-manual-html live-boot-doc

Create a directory in which you want to work on the build, and change
into it:

mkdir builddir
cd builddir

Save the first
()
of the three scripts from the Wiki into a file "x2goconfig".

Change the line that starts with

export LBX2GO_CONFIG

to point at this address:

'https://github.com/LinuxHaus/live-build-x2go::feature/openbox-magic-pixel-workaround-stretch'

If your thin clients are still 32-bit CPUs, change

export LBX2GO_ARCH='-a amd64 -k amd64'

to

export LBX2GO_ARCH='-a i386 -k 686-pae'

Save the second
()
of the three scripts as "x2gousbpatch".

Save the third
() of
the three scripts as "x2gobuild".

Make all three scripts executable:
chmod 755 x2go*

Open a root shell with

sudo -i

Then type:
./x2goconfig && ./x2gousbpatch && ./x2gobuild 2>&1 | tee logfile

This will take a while to build.
If something breaks, you will see a message containing the line "Build
failed.", else one stating "Build is done".
Feel free to provide us with the file "logfile" if you have the
impression that something went wrong.

Assuming a successful build, you will end up with a directory named
"live-build-x2go-MMDDHHMMSS-netboot-amd64-openbox-magic-pixel-workaround-stretch"
(where MMDDHHMMSS is the build date).

From this directory, you will need the files:

x2go-tce-filesystem.squashfs ...(this goes on your http server)
x2go-tce-initrd.img (this goes on your boot server)
x2go-tce-vmlinuz ...(this goes on your boot server)

 explains how
to set up your boot and http servers.  Feel free to ask on the list
again if you have trouble understanding these steps.

Kind Regards,
Stefan Baur

-- 
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364
Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user