IRC chat logs for #ltsp on irc.freenode.net (webchat)


Channel log from 14 October 2016   (all times are UTC)

00:03vagrantc has left IRC (vagrantc!~vagrant@unaffiliated/vagrantc, Quit: leaving)
00:43GodFather has joined IRC (GodFather!~rcc@96-35-101-212.dhcp.bycy.mi.charter.com)
02:08GodFather has left IRC (GodFather!~rcc@96-35-101-212.dhcp.bycy.mi.charter.com, Ping timeout: 258 seconds)
03:15kjackal_ has joined IRC (kjackal_!~quassel@2a02:587:3102:a000:90d4:8663:70ce:98f6)
05:39ricotz has joined IRC (ricotz!~ricotz@ubuntu/member/ricotz)
06:21kjackal_ has left IRC (kjackal_!~quassel@2a02:587:3102:a000:90d4:8663:70ce:98f6, Ping timeout: 260 seconds)
06:47kjackal_ has joined IRC (kjackal_!~quassel@onopfy.static.otenet.gr)
06:47pppingme has left IRC (pppingme!~pppingme@unaffiliated/pppingme, Ping timeout: 260 seconds)
07:02pppingme has joined IRC (pppingme!~pppingme@unaffiliated/pppingme)
08:21Statler has joined IRC (Statler!~Georg@mail.lohn24.de)
10:40GodFather has joined IRC (GodFather!~rcc@96-35-101-212.dhcp.bycy.mi.charter.com)
10:50GodFather has left IRC (GodFather!~rcc@96-35-101-212.dhcp.bycy.mi.charter.com, Read error: Connection reset by peer)
10:51GodFather has joined IRC (GodFather!~rcc@96-35-101-212.dhcp.bycy.mi.charter.com)
11:07kjackal_ has left IRC (kjackal_!~quassel@onopfy.static.otenet.gr, Ping timeout: 252 seconds)
11:31kjackal_ has joined IRC (kjackal_!~quassel@athedsl-237936.home.otenet.gr)
11:40antares_ has joined IRC (antares_!c1929682@gateway/web/freenode/ip.193.146.150.130)
11:42
<antares_>
Hello all. I want to assign hostnames to my ltsp fat clients. AFAIK, at "normal" linux boxes it should be done at /etc/dhcp3/dhclient.conf
11:42
but inside the chroot I'm not able to found such file? How could it be done?
11:43GodFather has left IRC (GodFather!~rcc@96-35-101-212.dhcp.bycy.mi.charter.com, Quit: Ex-Chat)
11:43GodFather has joined IRC (GodFather!~rcc@96-35-101-212.dhcp.bycy.mi.charter.com)
11:51Faith has joined IRC (Faith!~paty_@unaffiliated/faith)
11:51GodFather has left IRC (GodFather!~rcc@96-35-101-212.dhcp.bycy.mi.charter.com, Ping timeout: 258 seconds)
11:58
<Hyperbyte>
antares_, hi
11:59
antares_, what do you mean with 'assigning hostnames'? Hostnames on the local machine, or DNS names?
12:00
<alkisg>
antares, open lts.conf and put: [mac:address] HOSTNAME=xxx
12:00
!lts.conf
12:00
<ltsp`>
lts.conf: (#1) http://manpages.ubuntu.com/lts.conf, or (#2) lts.conf manpage is available in the ltsp-docs package
12:04antares_ has left IRC (antares_!c1929682@gateway/web/freenode/ip.193.146.150.130, Quit: Page closed)
12:04antares_ has joined IRC (antares_!c1929682@gateway/web/freenode/ip.193.146.150.130)
12:05
<antares_>
Thanks for your answers. I was referring to DNS names
12:05quinox has left IRC (quinox!~quinox@ghost.qtea.nl, Quit: :wq)
12:06quinox has joined IRC (quinox!~quinox@ghost.qtea.nl)
12:31antares_ has left IRC (antares_!c1929682@gateway/web/freenode/ip.193.146.150.130, Ping timeout: 260 seconds)
12:47
<Hyperbyte>
He'll be back then I guess. :-)
12:47
Or she.
13:49ben_roose has joined IRC (ben_roose!~roose@roose.cs.wichita.edu)
14:17
<alkisg>
Or, (s)he didn't even understand the question :D
14:26robb_nl has joined IRC (robb_nl!~robb_nl@62.235.16.229)
15:38
<bennabiy>
alkisg: Is there a way to take the image outputted from ltsp-update-image -c / and dump it to a directory to clean up and edit as a chroot?
15:38
<alkisg>
bennabiy: sure, mount it somewhere and cp -a its contents
15:39
<bennabiy>
will I be able to regenerate images from it with ltsp-update-image --chroot blah ?
15:39
err
15:39
--arch
15:39
<alkisg>
Yes
15:40
<bennabiy>
I can never remember which
15:40
great
15:40
<alkisg>
Note though that some things may be missing, check in ltsp-update-image.excludes
15:40
For *example*, mysql databases (don't tell me that you don't use mysql, it's an example)
15:41* bennabiy chuckles
15:41
<bennabiy>
but I don....
15:41
alkisg: but would it not contain what I needed to ltsp-chroot into it and then say, run apt-get
15:42
or such?
15:42
apart from perhaps a resolv.conf
15:42
<alkisg>
It would function as expected, yes.
15:45
<bennabiy>
alkisg: thank you
15:45
<alkisg>
np
15:45
<bennabiy>
alkisg: can I do this while I have a fat client running from it?
15:46
<alkisg>
Sure
15:46
<bennabiy>
alkisg: are they squashfs?
15:47
<alkisg>
Yes. The mount -o loop,ro command automatically uses squashfs, no need to specify it
15:47
<bennabiy>
ok, thank you
15:51
is there a reason to use cp -a as opposed to rsync or tar or such?
15:52
<alkisg>
First of all, why use tar when you already have a squashfs image
15:53
And, I prefer cp -a to rsync because it uses saner defaults (like, symlinks, hardlinks etc)
16:01adrianorg has left IRC (adrianorg!~adrianorg@179.187.31.162, Ping timeout: 260 seconds)
16:03adrianorg has joined IRC (adrianorg!~adrianorg@201.22.230.129)
16:05
<bennabiy>
alkisg: tar is not just for compressing files, it is a general copy as well, I was just wondering if it was a preference or had performance benefits as well
16:08
<alkisg>
bennabiy: why would you use tar instead of cp?
16:08
Tar is for gathering many files into one
16:08
squashfs has already all those files gathered, with their attributes and everything, and is even directly mountable, which tar isn't
16:08
*while
16:09
tar can also be used with netcat for sending files over the network; we have nbd+squashfs for that, and it's again directly mountable
16:09
I don't see any benefit at all in using tar when we already have the files in a squashfs image
16:10robb_nl has left IRC (robb_nl!~robb_nl@62.235.16.229, Ping timeout: 250 seconds)
16:27Statler has left IRC (Statler!~Georg@mail.lohn24.de, Remote host closed the connection)
16:30robb_nl has joined IRC (robb_nl!~robb_nl@62.235.16.229)
17:15forum has joined IRC (forum!~Icedove@193-80-39-12.adsl.highway.telekom.at)
17:17forum has left IRC (forum!~Icedove@193-80-39-12.adsl.highway.telekom.at, Client Quit)
17:17forum has joined IRC (forum!~Icedove@193-80-39-12.adsl.highway.telekom.at)
17:18forum has left IRC (forum!~Icedove@193-80-39-12.adsl.highway.telekom.at, Remote host closed the connection)
17:19forum has joined IRC (forum!~Icedove@193-80-39-12.adsl.highway.telekom.at)
17:20forum has joined IRC (forum!~Icedove@193-80-39-12.adsl.highway.telekom.at)
17:21forum has left IRC (forum!~Icedove@193-80-39-12.adsl.highway.telekom.at, Client Quit)
17:54robb_nl has left IRC (robb_nl!~robb_nl@62.235.16.229, Ping timeout: 250 seconds)
18:49||cw2 has joined IRC (||cw2!~chrisw@unaffiliated/cw/x-1182934)
18:51gehidore has left IRC (gehidore!~username@unaffiliated/man, *.net *.split)
18:51spectra has left IRC (spectra!~spectra@debian/developer/spectra, *.net *.split)
18:51||cw has left IRC (||cw!~chrisw@unaffiliated/cw/x-1182934, *.net *.split)
18:51bennabiy has left IRC (bennabiy!~bennabiy@unaffiliated/bennabiy, *.net *.split)
18:51mgariepy has left IRC (mgariepy!~mgariepy@ubuntu/member/mgariepy, *.net *.split)
18:54spectra has joined IRC (spectra!~spectra@debian/developer/spectra)
18:56||cw2 is now known as ||cw
18:58bennabiy has joined IRC (bennabiy!~bennabiy@unaffiliated/bennabiy)
18:58gehidore has joined IRC (gehidore!~username@unaffiliated/man)
18:58
<bennabiy>
alkisg: why on my fat client would it remove my user from all groups etc
18:58
I cannot use virtualbox and other things which require me being in a group
19:05
<Hyperbyte>
bennabiy, probably because local users on clients are created on the fly. Groups, etc, are not transferred along AFAIK.
19:05
If you want all users and groups from the server available on the client, you'd usually use something like LDAP.
19:06
<bennabiy>
Hyperbyte: but all the rest of the users which are not in LDAP are there
19:06
I do use LDAP
19:06
but my user was removed from all groups
19:06
the rest are all still there
19:06
<Hyperbyte>
bennabiy, sounds like the local client hasn't got his nsswitch set up properly. LTSP still creates the local user, even if you use LDAP.
19:07
But that shouldn't matter if LDAP takes precedence.
19:07
<bennabiy>
Hyperbyte: I have a user which is both in LDAP and also a local account on the server
19:08
this is with ltsp-pnp setup
19:28
<Hyperbyte>
bennabiy, like I said, configure your nsswitch properly.
19:28
Give LDAP priority over local accounts on the client.
19:29
<bennabiy>
will do, but the ldap does not have the vboxusers etc in it
19:29
<Hyperbyte>
bennabiy, also, why is the user both locally on the server and in LDAP?
19:29
bennabiy, you should have those in LDAP I think.
19:29
<bennabiy>
I just checked
19:30
<Hyperbyte>
Not entirely sure
19:30
<bennabiy>
they never got added in LDAP
19:30
<Hyperbyte>
But either way, you problem is not LTSP related.
19:30
No, but you can add them.
19:30
<bennabiy>
except that ltsp removes my user from the groups
19:30
when they are present and fine on the server
19:30
<Hyperbyte>
I suspect it doesn't.
19:31
It creates a local user on login, which takes precedence over LDAP, which it shouldn't.
19:31
Which you can fix with nsswitch.
19:31
Open a local terminal on the client, start debugging from there.
19:31
See if you get the LDAP user or not.
19:32
<bennabiy>
I check my etc/group on the client and my user is nowhere in there, but the other users are still there
19:37mgariepy has joined IRC (mgariepy!~mgariepy@ubuntu/member/mgariepy)
19:44forum has joined IRC (forum!~Icedove@193-80-39-12.adsl.highway.telekom.at)
19:47forum has left IRC (forum!~Icedove@193-80-39-12.adsl.highway.telekom.at, Client Quit)
20:14ben_roose has left IRC (ben_roose!~roose@roose.cs.wichita.edu, Remote host closed the connection)
20:25ben_roose has joined IRC (ben_roose!~roose@roose.cs.wichita.edu)
20:42ben_roose has left IRC (ben_roose!~roose@roose.cs.wichita.edu, Remote host closed the connection)
20:59Faith has left IRC (Faith!~paty_@unaffiliated/faith, Quit: Leaving)
21:24quinox has left IRC (quinox!~quinox@ghost.qtea.nl, Quit: :wq)
21:25
<alkisg>
bennabiy: --cleanup means "remove the user accounts from the generated image, etc etc"
21:25
So if you want to keep the users, you would skip --cleanup
21:25
If you want to clone the installation, you can just re-add any users that you want
21:26quinox has joined IRC (quinox!~quinox@ghost.qtea.nl)
21:26
<bennabiy>
only by copying the generated image into a chroot, correct?
21:27
I do not see any other way to directly edit an image generated by the pnp method
21:27
<alkisg>
bennabiy: I'm not sure what you want to do
21:27
Normally, chroots and images don't have user accounts
21:28
Those come from the server dynamically at login time
21:28
<bennabiy>
alkisg: so what do you do for things like vboxusers?
21:28
<alkisg>
What do you mean by vbox users?
21:28
<bennabiy>
it is not coming from the server, except minus my user
21:28
it is a group to allow USB support in virtualbox
21:28
generated by virtualbox
21:29
all other users except my user are still in the group
21:29
<alkisg>
If the user "alkisg" is part of the group "virtualbox", then both the user and the group will be genarated at login by X01-localapps
21:29
<bennabiy>
in the chroot
21:29
<alkisg>
They don't need to be present in the chroot
21:29
<bennabiy>
except that it is not happening in my case
21:29
<alkisg>
They will be generated at login in the running client
21:29
That might be a misconfiguration or a bug
21:29
<bennabiy>
sounds good, but it is not the case here
21:31
<alkisg>
Are you using thin or fat clients? And, normal authentication or ldap etc?
21:33
~$ id
21:33
uid=1001(ltsp) gid=1001(ltsp) ομάδες=1001(ltsp),129(sambashare),130(vboxusers)
21:33
It works fine here.
21:33
(default ubuntu mate 16.04 installation)
21:34
bennabiy: so it's probably an issue with your specific setup
21:44ricotz has left IRC (ricotz!~ricotz@ubuntu/member/ricotz, Quit: Leaving)
21:44
<bennabiy>
fat client
21:45
my ldap groups show up, but not my system groups
21:51
<alkisg>
bennabiy: ah, if you added my latest patch about "when ldap is used, don't do anything at all about users and groups", that would explain it,
21:51
in which case, you're supposed to make vboxusers an ldap group as well
21:51
<bennabiy>
ah, any good way to keep the two in sync?
21:51
<alkisg>
This patch is not released yet, I don't remember if you applied it manually or not
21:52
<bennabiy>
alkisg: I am not sure
21:52
<alkisg>
No idea, I've never used ldap
21:52* alkisg waves for today... 'night all
21:57* bennabiy waves
22:21
<Hyperbyte>
bennabiy, keeping ldap and local in sync is not possible. Make everything ldap.