[PC-BSD Dev] pc-thinclient external dhcp server

Joe Maloney jpm820 at gmail.com
Sun Jul 7 11:29:44 PDT 2013


I've finished the modifications for pc-thinclient to accept an external
dhcp server.  Basically the way it works is a new second prompt will ask
the user to press "d" for internal dhcp server or 'e' for external dhcp
server.  If external dhcp server option is chosen a series of prompts will
ask the user for the network card interface, network id, subnet mask and ip
address of the thin client will be running on.  It will then use the user
input for modifying /etc/exports and /etc/hosts.allow.

2 issues.  I've not yet found a way yet to verify the network id, subnet
mask, and ip address in the way that the network interface is verified.
I'm not sure if it is possible to pull that info from ifconfig because if I
grep inet it also displays info for inet 6 for example.  I haven't devised
a way yet at least.  I could easily create a dialog asking the user if
these settings look correct before continuning?  Would that be acceptable
or would we definitely want the verification?

The second issue is the pxeboot client refuses to mount the
/usr/home/thinclient nfs share unless i constantly ping the client as it is
booting.  This is true whether or client is listed with a hostname in

for example pc-thinclient200

Adding an entry to /etc/hosts does not seem to help one way or another.
Therefore I haven't yet devised a way to add the bulk of IP's to /etc/hosts
as the option for internal dhcp server would.  I thought I would check to
see what you thought before issuing a pull request.  I can still issue the
pull request if you like but I suspect I need to make this work a little
better first.  What do you think?

Joe Maloney

On Thu, Jun 13, 2013 at 8:19 AM, Kris Moore <kris at pcbsd.org> wrote:

>  On 06/12/2013 23:20, Joe Maloney wrote:
> Thanks Kris.  I've cloned the repo and I've added the option to use an
> external dhcp server during the second prompt.  This will bypass installing
> isc-dhcp and will ask the user to input their network id and subnet info
> but I need to find a way to take that text and paste it into hosts.allow on
> the appropriate line for ifs, etc.  I think that should work I just haven't
> gotten that quite yet.
> https://github.com/pkgdemon/pcbsd/blob/master/src-sh/pc-thinclient/pc-thinclient
>   Cool! Issue a pull request when you get it wrapped up and I'll take a
> look at it :)
>   While I am thinking about it I was just watching the presentation from
> BSDcan on pc-thinclient and I learned a few things in the process.  I was
> thinking since it was mentioned that the pc-thinclient environment is just
> a chroot would it be possible to create an option in the warden to create
> pc-thinclient jails in addition to linux jails, etc?  Then allow the user
> to graphical set the network card to run off of, specify mac address
> options, etc from there?  Would that even be possible to pxe boot into a
> jail?
> It may be possible, maybe something worth trying? My guess would be that
> it requires a jail with VIMAGE support enabled. If you or somebody wants to
> do a test jail and see if its possible though, please let us know. If it
> works properly, then it would be a very cool feature to have in the warden.
>  Joe Maloney
> On Fri, May 31, 2013 at 10:03 AM, Kris Moore <kris at pcbsd.org> wrote:
>>   On 05/27/2013 21:01, Joe Maloney wrote:
>>   I’ve been looking over various ways to set up a thin client install
>> server for images of FreeBSD current to avoid having to constantly write to
>> flash drives, etc.  I found a way to accomplish this by using the
>> ftp/tftp-hpa port and syslinux to build a grub menu which will allow me to
>> boot from various ISO’s I add to the menu.  I also used my mikrotik router
>> for dhcp rather than the isc/dhcp port for passing dhcp options which
>> worked out nicely.  It led me to think about pc-thinclient again which I
>> haven’t tried out in a while and had forgotten about.
>>  I’ve used pc-thinclient before as well and I was contemplating trying
>> to make a few modifications for my own uses.  For example I would like to
>> the have pc-thinclient install script give me the option to use my own dhcp
>> server and spit out instructions of what options to add to an external dhcp
>> server for end users.
>>  I was looking over at the code for pc-thinclient and I see it’s been
>> updated to support pkgng which is nice. Before I dove in to far I was
>> curious if I could somehow share some of these changes with your project
>> for consideration or if something like this might already be planned or in
>> the works?
>>  Joe Maloney
>>  _______________________________________________
>> Dev mailing listDev at lists.pcbsd.orghttp://lists.pcbsd.org/mailman/listinfo/dev
>> I hadn't planned on adding that support in the near future. If you would
>> like to feel free to clone the git repo and make your changes. Once you get
>> it working, let me know and I'll pull them into the mainline one :)
>> --
>> Kris Moore
>> PC-BSD Software
>> iXsystems
>> _______________________________________________
>> Dev mailing list
>> Dev at lists.pcbsd.org
>> http://lists.pcbsd.org/mailman/listinfo/dev
> _______________________________________________
> Dev mailing listDev at lists.pcbsd.orghttp://lists.pcbsd.org/mailman/listinfo/dev
> --
> Kris Moore
> PC-BSD Software
> iXsystems
> _______________________________________________
> Dev mailing list
> Dev at lists.pcbsd.org
> http://lists.pcbsd.org/mailman/listinfo/dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pcbsd.org/pipermail/dev/attachments/20130707/6cb5e5a4/attachment.html>

More information about the Dev mailing list