• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Need help making my own Debian 9 FOG server!

    Scheduled Pinned Locked Moved Solved
    General
    5
    48
    16.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • U
      unknownhost99 @george1421
      last edited by

      @george1421 yes i indeed have that one and then a crap ton of others that each look the same that say time out i think starting over from scratch is easier since i haven t done anything significant yet

      1 Reply Last reply Reply Quote 0
      • U
        unknownhost99
        last edited by

        i have had an error during my dnsmasq installation and was wondering what the cause might be and if it is a problem before i continue.

        when typing the the sudo make install command from this guide https://forums.fogproject.org/topic/8725/compiling-dnsmasq-2-76-if-you-need-uefi-support/5 it showed the following error
        0_1513067998654_f9925cf4-e70f-4e2e-8e84-f834c4c78cbf.jpg

        any information on the error would be helpfull thanks!

        george1421G 1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by

          @unknownhost99 You need to install build dependencies first. sudo apt-get build-dep dnsmasq should do most of that even though you are compiling a different version. If you still have compile issues note down the filename (here idna.h) go to https://www.debian.org/distrib/packages (section “Search the contents of packages”) and search for that file you are missing. Then install the package(s) shown to you by hand - e.g. sudo apt-get install libidn11-dev

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          1 Reply Last reply Reply Quote 0
          • george1421G
            george1421 Moderator @unknownhost99
            last edited by

            @unknownhost99 You might want to check with your distribtion’s repo. Many distributions contain dnsmasq 2.76 or newer version already compiled. So these steps may no longer be necessary.

            [edit] I’m not totally sure what I’m looking at, but it does look like there is a debian package that has been already created for you: https://packages.debian.org/stretch/dnsmasq

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

            U 1 Reply Last reply Reply Quote 1
            • U
              unknownhost99 @george1421
              last edited by

              @george1421 okay so now that worked although when i tried the sudo service dnsmasq restart. it failed and said no Unit dnsmasq.service found also what is the default location of the itsp.conf file cause i cant seem to locate it with the find command

              george1421G 1 Reply Last reply Reply Quote 0
              • george1421G
                george1421 Moderator @unknownhost99
                last edited by

                @unknownhost99 Just so I’m clear, you installed your linux distro’s version of dnsmasq? If so you should be able to key in sudo dnsmasq -v That should show you the version of dnsmasq installed.

                From there, to your second question the ltsp.conf file typically goes in /etc/dnsmasq.d directory. Make sure there are no other .conf files in that directory to cause you pain.

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                U 1 Reply Last reply Reply Quote 0
                • U
                  unknownhost99 @george1421
                  last edited by

                  @george1421 i typed vi /etc/dnsmasq.d and /etc/dnsmasq/itsp.conf nothing comes up (im sorry if i seem retarded i cant stress how new i am to linux)

                  george1421G 1 Reply Last reply Reply Quote 0
                  • george1421G
                    george1421 Moderator @unknownhost99
                    last edited by

                    @unknownhost99 ok lets backup here.

                    The config file from my post needs to be placed in a file called ltsp.conf (as a standard) The location of the config files for dnsmasq is typically in a directory called /etc/dnsmasq.d

                    Navigate to that directory and do an ls -la to see all files in that directory. If there are any that end in .conf remove them. Create a new file called ltsp.conf in that directory with the following command vi /etc/dnsmasq.d/ltsp.conf and then paste in the contents of my config file. Make sure you replace <fog_server> with the IP address of the your fog server.

                    Save an exit vi

                    Then from the linux command prompt key in dnsmasq -v to ensure you have version 2.76 or later installed. If that returns a successful response then start the service. It appears based on your previous error message that debian 9 is systemd compliant so once dnsmasq is installed you should be able to key in the following commands.

                    systemctl enable dnsmasq
                    then (re)start the service
                    systemctl restart dnsmaq

                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                    U 1 Reply Last reply Reply Quote 0
                    • U
                      unknownhost99 @george1421
                      last edited by

                      @george1421 i did vi /etc/dnsmasq.d/ltsp.conf and there also was no .conf file except a file called dnsmasq.conf.example Though when i try to save/write the config file it says:‘’ /etc/dnsmasq.d/ltsp.conf’’ E212 Can’t open file for writing

                      george1421G 1 Reply Last reply Reply Quote 0
                      • george1421G
                        george1421 Moderator @unknownhost99
                        last edited by

                        @unknownhost99 You may have to use sudo vi /etc/dnsmasq.d/ltsp.conf to get the proper rights to create the file, if you didn’t switch user to root.

                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                        U 1 Reply Last reply Reply Quote 0
                        • U
                          unknownhost99 @george1421
                          last edited by

                          @george1421 well i still got the same error but now that i kept looking i found it says there is no dnsmasq.d directory to begin with

                          george1421G 1 Reply Last reply Reply Quote 0
                          • george1421G
                            george1421 Moderator @unknownhost99
                            last edited by george1421

                            @unknownhost99 Did you install dnsmasq from your distribution’s repo? I don’t know debian so I can’t give you the exact commands to install (I’m a rhel guy). But /etc/dnsmasq.d is the default configuration directory.

                            Can you confirm that dnsmasq is installed by running this command sudo dnsmasq -v ? It should respond with something that looks like this:

                            Dnsmasq version 2.76  Copyright (c) 2000-2016 Simon Kelley
                            Compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify
                            

                            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                            U 1 Reply Last reply Reply Quote 0
                            • U
                              unknownhost99 @george1421
                              last edited by

                              @george1421 it is fine i have unsinstalled it and did the install without uefi support and it went without a hitch

                              george1421G 1 Reply Last reply Reply Quote 0
                              • george1421G
                                george1421 Moderator @unknownhost99
                                last edited by

                                @unknownhost99 said in Need help making my own Debian 9 FOG server!:

                                install without uefi support

                                I don’t understand this, what do you mean you installed without uefi support. What version did you install? Again the command I posted sudo dnsmasq -v will indicate the version.

                                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                                U 1 Reply Last reply Reply Quote 0
                                • U
                                  unknownhost99 @george1421
                                  last edited by

                                  @george1421
                                  https://wiki.fogproject.org/wiki/index.php?title=ProxyDHCP_with_dnsmasq i used this one before the uefi support one

                                  george1421G 1 Reply Last reply Reply Quote 0
                                  • george1421G
                                    george1421 Moderator @unknownhost99
                                    last edited by

                                    @unknownhost99 So problem solved??

                                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                                    U 1 Reply Last reply Reply Quote 0
                                    • U
                                      unknownhost99 @george1421
                                      last edited by

                                      @george1421 well not yet but i am getting closer to the end some problems with the dhcp when trying the PXE boot to the fog this is my log when i use pxe boot any idea what the problem might be
                                      0_1513335532145_e9a6dcc9-1e84-4e17-b098-450dac46e490-image.png

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        Sebastian Roth Moderator
                                        last edited by

                                        @unknownhost99 Well, the output looks ok on first sight. What exactly is the issue? What do you see on the client? Timeout/error!?!

                                        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                        U 1 Reply Last reply Reply Quote 0
                                        • U
                                          unknownhost99 @Sebastian Roth
                                          last edited by

                                          @sebastian-roth no dhcp offers were recieed it says

                                          george1421G 1 Reply Last reply Reply Quote 0
                                          • george1421G
                                            george1421 Moderator @unknownhost99
                                            last edited by

                                            @unknownhost99 Who’s ltsp.conf file are you using? The reason why I ask is I see a tags: entry for enp4s0.

                                            If you can place the fog server and pxe booting client on the same subnet the follow the instructions here to collect a pcap file of the pxe booting process. https://forums.fogproject.org/topic/9673/when-dhcp-pxe-booting-process-goes-bad-and-you-have-no-clue

                                            Upload the pcap to a google drive or dropbox like system and share the link with us. There is something unexpected going on here.

                                            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                                            U 1 Reply Last reply Reply Quote 1
                                            • 1
                                            • 2
                                            • 3
                                            • 3 / 3
                                            • First post
                                              Last post

                                            159

                                            Online

                                            12.1k

                                            Users

                                            17.3k

                                            Topics

                                            155.4k

                                            Posts
                                            Copyright © 2012-2024 FOG Project