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

    Standalone

    Scheduled Pinned Locked Moved
    Tutorials
    4
    56
    20.8k
    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.
    • Joseph HalesJ
      Joseph Hales Testers
      last edited by

      Install Webmin
      [B][COLOR=#2c3e50][FONT=Helvetica]Installing Webmin On Ubuntu Server 12.04 LTS[/FONT][/COLOR][/B]
      [COLOR=#4f4f4f][FONT=Arial]In this tutorial I’ll shown you how to installing webmin on [URL=‘http://ubuntuserverguide.com/tag/ubuntu-server-12-04’][COLOR=#5e2750]ubuntu server 12.04[/COLOR][/URL], There are two methods for installing webmin. method 1: installing via APT, method 2: Installing manually. before installing webmin You need to install first some perl-related libraries required by webmin:[/FONT][/COLOR]
      [B][COLOR=#333333][FONT=Consolas]sudo apt-get install perl libnet-ssleay-perl libauthen-pam-perl libpam-runtime openssl libio-pty-perl apt-show-versions python[/FONT][/COLOR][/B]
      [B][COLOR=#2c3e50][FONT=Helvetica]Method 1: Installing webmin via APT[/FONT][/COLOR][/B]
      [COLOR=#4f4f4f][FONT=Arial]Login as root:[/FONT][/COLOR]
      [B][COLOR=#333333][FONT=Consolas]sudo -i[/FONT][/COLOR][/B]
      [COLOR=#4f4f4f][FONT=Arial]Add the Webmin repository in your ubuntu server with following commands[/FONT][/COLOR]
      [B][COLOR=#333333][FONT=Consolas]cat >> /etc/apt/sources.list <<-EOF[/FONT][/COLOR][/B]
      [B][COLOR=#333333][FONT=Consolas]deb [url]http://download.webmin.com/download/repository[/url] sarge contrib[/FONT][/COLOR][/B]
      [B][COLOR=#333333][FONT=Consolas]deb [url]http://webmin.mirror.somersettechsolutions.co.uk/repository[/url] sarge contrib[/FONT][/COLOR][/B]
      [B][COLOR=#333333][FONT=Consolas]EOF[/FONT][/COLOR][/B]
      [COLOR=#4f4f4f][FONT=Arial]Logout from root:[/FONT][/COLOR]
      [B][COLOR=#333333][FONT=Consolas]exit[/FONT][/COLOR][/B]
      [COLOR=#4f4f4f][FONT=Arial]Import GPG key, Update the source list then install webmin[/FONT][/COLOR]
      [B][COLOR=#333333][FONT=Consolas]wget [url]http://www.webmin.com/jcameron-key.asc[/url] && sudo apt-key add jcameron-key.asc[/FONT][/COLOR][/B]
      [B][COLOR=#333333][FONT=Consolas]sudo apt-get update[/FONT][/COLOR][/B]
      [B][COLOR=#333333][FONT=Consolas]sudo apt-get install webmin[/FONT][/COLOR][/B]
      Firewall exception also needs to be added.
      sudo ufw allow 10000
      Run acronis Backup at this point for recovery sector by sector because acronis can’t handle ext4 partitions note in future use ext2.
      [B][FONT=Tahoma]INSTALLING FOG SOFTWARE:[/FONT][/B][FONT=Tahoma]

      The installation of FOG is fairly straightforward, once installed the bulk of configuration is handled from the Web GUI through your browser. There are a couple of further tweaks that can be done from the system side but they are optional depending on your environment.

      1. Enter the following at your Ubuntu command line.
        • cd /opt
        • sudo wget [/FONT][URL=‘https://sourceforge.net/projects/freeghost/files/latest/download?source=’][FONT=Tahoma]https://sourceforge.net/projects/freeghost/files/latest/download?source=[/FONT][/URL][FONT=Tahoma]
        • sudo tar –xvzf fog_1.20.tar.gz
        • cd fog_1.2.0/
        • cd bin
        • sudo ./installfog.sh
      2. Follow the steps in the FOG installer wizard
        • Choose Option 2 (Ubuntu)
        • Choose N (normal)
        • Press enter to leave IP address default
        • Press enter to leave gateway default
        • Press enter to leave DNS default
        • Choose NO when asked to change default NIC
        • If you already have DHCP configured, press NO to disable FOG DHCP
        • Press Enter to acknowledge MySQL warning
        • Set a password for MySQL when requested if you want (I left mine blank)
        • Be awesome and send a notification to the FOG community!
      3. FOG is now installed, we just want to check some of the MySQL settings real quick. wizard (skip this step if you left the password blank)
        • sudo vi /var/www/fog/lib/fog/Config.class.php
        • Set MYSQL_PASSWORD to the password you configured in the FOG
        • Confirm MYSQL_USERNAME is set to root account
        • sudo vi /var/www/fog/lib/fog/Config.class.php
        • Set MYSQL_PASSWORD to the password configured in the FOG wizard
      4. Congrats! FOG is fully installed!! [/FONT]
        [B][COLOR=black][FONT=Arial]Install Subversion[/FONT][/COLOR][/B]
        [COLOR=black][FONT=Courier New]sudo apt-get update[/FONT][/COLOR]
        [COLOR=black][FONT=Courier New]sudo apt-get install subversion[/FONT][/COLOR]
        [B][COLOR=black][FONT=Arial]Download the package[/FONT][/COLOR][/B]
        [COLOR=black][FONT=Courier New]cd ~[/FONT][/COLOR]
        [COLOR=black][FONT=Courier New]mkdir svn[/FONT][/COLOR]
        [COLOR=black][FONT=Courier New]cd svn[/FONT][/COLOR]
        [COLOR=black][FONT=Courier New]svn checkout [/FONT][/COLOR][URL=‘https://svn.code.sf.net/p/freeghost/code/trunk’][COLOR=#3366bb][FONT=Courier New]https://svn.code.sf.net/p/freeghost/code/trunk[/FONT][/COLOR][/URL]
        [B][COLOR=black][FONT=Arial]Install It![/FONT][/COLOR][/B]
        [COLOR=black][FONT=Courier New]cd ~/svn/trunk/bin[/FONT][/COLOR]
        [COLOR=black][FONT=Courier New]sudo ./installfog.sh[/FONT][/COLOR]
        [FONT=Tahoma] [/FONT]

      SVN specific version install
      [FONT=Tahoma]To upgrade back to an older rev, in the folder where you downloaded the trunk you’ll run:[/FONT][FONT=Tahoma]
      [/FONT]
      [COLOR=#b3b3b3][FONT=Tahoma]Code:[/FONT][/COLOR]
      [FONT=Consolas]Run[/FONT]
      [FONT=Consolas]svn status[/FONT]
      [FONT=Consolas]to determine which directory to run[/FONT]
      [FONT=Consolas]svn up -r <rev# here>[/FONT]
      [FONT=Tahoma]Then run the installfog.sh like normal.[/FONT]

      RTFM

      1 Reply Last reply Reply Quote 0
      • F
        fredlwal
        last edited by

        I see that there is a backup util for the fog server, is there a way to run that and have it point to a external hd that I have?

        1 Reply Last reply Reply Quote 0
        • F
          fredlwal
          last edited by

          [quote=“Wayne Workman, post: 45582, member: 28155”]I will add that if the FOG server is on your production network, FOG can name & then join the computer to the domain FOR YOU, automatically![/quote]

          I"m trying to run this command "./FOGBackup.sh [directory]
          Where it says directory how do I get that to go to my external drive for doing backups?

          1 Reply Last reply Reply Quote 0
          • Wayne WorkmanW
            Wayne Workman
            last edited by

            If you’re running FOG on a Linux server build, it’s likely that the external drive is not automatically mounted.

            Is the Ubuntu 14 a workstation/client install or the server install?

            Can you access the external drive at all? If not, you’ll have to mount it…

            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!
            Daily Clean Installation Results:
            https://fogtesting.fogproject.us/
            FOG Reporting:
            https://fog-external-reporting-results.fogproject.us/

            1 Reply Last reply Reply Quote 0
            • Tom ElliottT
              Tom Elliott
              last edited by

              You have to mount your external drive first. You mount to a specified directory. Something like /mybackupdrive

              [code]sudo mkdir /mybackupdrive
              mount [device/path/to/externaldrive] /mybackupdrive
              ./FOGBackup.sh /mybackupdrive[/code]

              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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

              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
              • F
                fredlwal
                last edited by

                [quote=“Wayne Workman, post: 45718, member: 28155”]If you’re running FOG on a Linux server build, it’s likely that the external drive is not automatically mounted.

                Is the Ubuntu 14 a workstation/client install or the server install?

                Can you access the external drive at all? If not, you’ll have to mount it…[/quote]

                It is a workstation/client install and yes i can access the external drive.

                1 Reply Last reply Reply Quote 0
                • Wayne WorkmanW
                  Wayne Workman
                  last edited by

                  Yeah then just use the code that Tom posted for script usage.

                  navigate to the directory for the backup script.
                  type:
                  [CODE]./FOGBackup.sh /mybackupdrive[/CODE]

                  [FONT=Consolas]So, if my external drive was mounted as “USB3_2TB” it would be something like this:[/FONT]

                  [FONT=Consolas][CODE]./FOGBackup.sh /USB3_2TB[/CODE][/FONT]

                  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!
                  Daily Clean Installation Results:
                  https://fogtesting.fogproject.us/
                  FOG Reporting:
                  https://fog-external-reporting-results.fogproject.us/

                  1 Reply Last reply Reply Quote 0
                  • F
                    fredlwal
                    last edited by

                    what’s the command to list [quote=“Wayne Workman, post: 45724, member: 28155”]Yeah then just use the code that Tom posted for script usage.

                    navigate to the directory for the backup script.
                    type:
                    [CODE]./FOGBackup.sh /mybackupdrive[/CODE]

                    [FONT=Consolas]So, if my external drive was mounted as “USB3_2TB” it would be something like this:[/FONT]

                    [FONT=Consolas][CODE]./FOGBackup.sh /USB3_2TB[/CODE][/FONT][/quote]
                    what’s the command to show me the name of that external drive in the command line? Bare with me i’m new to this.

                    1 Reply Last reply Reply Quote 0
                    • Tom ElliottT
                      Tom Elliott
                      last edited by

                      My guess is you’re using a desktop variation of Ubuntu? Can you give us an output of [code]ls -l /{media,mnt}[/code]

                      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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                      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
                      • F
                        fredlwal
                        last edited by

                        [quote=“Tom Elliott, post: 45731, member: 7271”]My guess is you’re using a desktop variation of Ubuntu? Can you give us an output of [code]ls -l /{media,mnt}[/code][/quote]

                        its showing the external as Sda1

                        1 Reply Last reply Reply Quote 0
                        • Wayne WorkmanW
                          Wayne Workman
                          last edited by

                          That doesn’t sound right…

                          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!
                          Daily Clean Installation Results:
                          https://fogtesting.fogproject.us/
                          FOG Reporting:
                          https://fog-external-reporting-results.fogproject.us/

                          1 Reply Last reply Reply Quote 0
                          • F
                            fredlwal
                            last edited by

                            When I followed the steps on this site
                            [url]http://www.fogproject.org/wiki/index.php/FOG_on_an_Isolated_Network[/url]

                            I’m getting an error "“Checking package apache2… failed!”

                            1 Reply Last reply Reply Quote 0
                            • Wayne WorkmanW
                              Wayne Workman
                              last edited by

                              Can you post your installation log? it’s here: [SIZE=12px]/var/log/foginstall.log[/SIZE]

                              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!
                              Daily Clean Installation Results:
                              https://fogtesting.fogproject.us/
                              FOG Reporting:
                              https://fog-external-reporting-results.fogproject.us/

                              1 Reply Last reply Reply Quote 0
                              • F
                                fredlwal
                                last edited by

                                Script started on Mon 20 Apr 2015 10:40:11 AM EDT
                                Ubuntu

                                   ..#######:.    ..,#,..     .::##::.   
                                

                                .:###### .:;####:…;#;…
                                …##… …##;,;##::::.##…
                                ,# …##…##:::## …::
                                ## .::###,##. . ##.::#.:######::.
                                …##:::###::…#. … .#…#. #…#:::.
                                …:####:… …##…##::## … #
                                # . …##:,;##;:::#: … ##…
                                .# . .:;####;::::.##:::;#:…
                                # …:;###…

                                ###########################################

                                FOG

                                Free Computer Imaging Solution

                                [url]http://www.fogproject.org/[/url]

                                Developers:

                                Chuck Syperski

                                Jian Zhang

                                Peter Gilchrist

                                Tom Elliott

                                GNU GPL Version 3

                                ###########################################

                                Version: 1.2.0 Installer/Updater

                                What version of Linux would you like to run the installation for?

                                      1) Redhat Based Linux (Redhat, CentOS, Mageia)
                                      2) Debian Based Linux (Debian, Ubuntu, Kubuntu, Edubuntu)
                                

                                Choice: [2]2

                                Starting Debian / Ubuntu / Kubuntu / Edubuntu Installtion.

                                FOG Server installation modes:
                                * Normal Server: (Choice N)
                                This is the typical installation type and
                                will install all FOG components for you on this
                                machine. Pick this option if you are unsure what to pick.

                                  * Storage Node: (Choice S)
                                      This install mode will only install the software required
                                      to make this server act as a node in a storage group
                                

                                More information:
                                [url]http://www.fogproject.org/wiki/index.php?title=InstallationModes[/url]

                                What type of installation would you like to do? [N] n

                                What is the IP address to be used by this FOG Server? [10.1.115.5]

                                Would you like to setup a router address for the DHCP server? [Y/n] n

                                Would you like to setup a DNS address for the DHCP server and client boot image? [Y/n] n

                                Would you like to change the default network interface from eth0?
                                If you are not sure, select No. [y/N]n

                                Would you like to use the FOG server for DHCP service? [Y/n] y

                                This version of FOG has internationalization support, would
                                you like to install the additional language packs? [y/N] y n

                                Would you like to donate computer resources to the FOG Project
                                to mine cryptocurrency? This will only take place during active
                                tasks and should NOT have any impact on performance of your
                                imaging or other tasks. The currency will be used to pay for
                                FOG Project expenses and to support the core developers working
                                on the project. For more information see:

                                [url]http://fogproject.org/?q=cryptocurrency[/url]

                                Would you like to donate computer resources to the FOG Project? [y/N] n

                                #####################################################################

                                FOG now has everything it needs to setup your server, but please
                                understand that this script will overwrite any setting you may
                                have setup for services like DHCP, apache, pxe, tftp, and NFS.

                                It is not recommended that you install this on a production system
                                as this script modifies many of your system settings.

                                This script should be run by the root user on Redhat or with sudo on Ubuntu.

                                ** Notice ** Redhat users will need to disable SELinux and iptables in
                                order to use FOG
                                Please see our wiki for more information at [url]http://www.fogproject.org/wiki[/url]

                                Here are the settings FOG will use:
                                Base Linux: Debian
                                Detected Linux Distribution: Ubuntu
                                Installation Type: Normal Server
                                Server IP Address: 10.1.115.5
                                DHCP router Address:
                                DHCP DNS Address:
                                Interface: eth0
                                Using FOG DHCP: 1
                                Internationalization: 0
                                Donate: 0

                                Are you sure you wish to continue (Y/N) y

                                Installation Started…

                                Installing required packages, if this fails
                                make sure you have an active internet connection.

                                • Preparing apt-get

                                • Installing package: apache2

                                • Installing package: php5

                                • Installing package: php5-json

                                • Installing package: php5-gd

                                • Installing package: php5-cli

                                • Installing package: php5-mysql

                                • Installing package: php5-curl

                                • Installing package: mysql-server

                                  We are about to install MySQL Server on
                                  this server, if MySQL isn’t installed already
                                  you will be prompted for a root password.

                                  Press enter to acknowledge this message.

                                Reading package lists…
                                Building dependency tree…
                                Reading state information…
                                The following extra packages will be installed:
                                libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18
                                libterm-readkey-perl mysql-client-5.5 mysql-client-core-5.5 mysql-common
                                mysql-server-5.5 mysql-server-core-5.5
                                Suggested packages:
                                libmldbm-perl libnet-daemon-perl libplrpc-perl libsql-statement-perl
                                libipc-sharedcache-perl tinyca mailx
                                The following NEW packages will be installed:
                                libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18
                                libterm-readkey-perl mysql-client-5.5 mysql-client-core-5.5 mysql-common
                                mysql-server mysql-server-5.5 mysql-server-core-5.5
                                0 upgraded, 12 newly installed, 0 to remove and 9 not upgraded.
                                Need to get 8,967 kB of archives.
                                After this operation, 93.7 MB of additional disk space will be used.
                                WARNING: The following packages cannot be authenticated!
                                libaio1 mysql-common libmysqlclient18 libdbi-perl libdbd-mysql-perl
                                libterm-readkey-perl mysql-client-core-5.5 mysql-client-5.5
                                mysql-server-core-5.5 mysql-server-5.5 libhtml-template-perl mysql-server
                                E: There are problems and -y was used without --force-yes

                                • Installing package: mysql-client
                                • Installing package: isc-dhcp-server
                                • Installing package: tftpd-hpa
                                • Installing package: tftp-hpa
                                • Installing package: nfs-kernel-server
                                • Installing package: vsftpd
                                • Installing package: net-tools
                                • Installing package: wget
                                • Installing package: xinetd
                                • Installing package: sysv-rc-conf
                                • Installing package: tar
                                • Installing package: gzip
                                • Installing package: build-essential
                                • Installing package: cpp
                                • Installing package: gcc
                                • Installing package: g++
                                • Installing package: m4
                                • Installing package: htmldoc
                                • Installing package: lftp
                                • Installing package: openssh-server
                                • Installing package: php-gettext
                                • Installing package: clamav-freshclam

                                Confirming package installation.

                                • Checking package: apache2…Failed!

                                Script done on Mon 20 Apr 2015 10:44:21 AM EDT

                                1 Reply Last reply Reply Quote 0
                                • F
                                  fredlwal
                                  last edited by

                                  [quote=“Wayne Workman, post: 45802, member: 28155”]Can you post your installation log? it’s here: [SIZE=12px]/var/log/foginstall.log[/SIZE][/quote]

                                  posted

                                  1 Reply Last reply Reply Quote 0
                                  • Wayne WorkmanW
                                    Wayne Workman
                                    last edited by

                                    Try installing that manually.
                                    [CODE]sudo apt-get install apache2[/CODE]

                                    Then check the status of the install:
                                    [CODE]service apache2 status[/CODE]

                                    Post the output of these two commands, please.

                                    #LetsMakeScripts

                                    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!
                                    Daily Clean Installation Results:
                                    https://fogtesting.fogproject.us/
                                    FOG Reporting:
                                    https://fog-external-reporting-results.fogproject.us/

                                    1 Reply Last reply Reply Quote 0
                                    • F
                                      fredlwal
                                      last edited by

                                      [quote=“Wayne Workman, post: 45807, member: 28155”]Try installing that manually.
                                      [CODE]sudo apt-get install apache2[/CODE]

                                      Then check the status of the install:
                                      [CODE]service apache2 status[/CODE]

                                      Post the output of these two commands, please.

                                      #LetsMakeScripts[/quote]

                                      I think I might have figured it out, it was a web filter that was blocking it

                                      1 Reply Last reply Reply Quote 0
                                      • F
                                        fredlwal
                                        last edited by

                                        [quote=“fredlwal, post: 45810, member: 26766”]I think I might have figured it out, it was a web filter that was blocking it[/quote]

                                        When I typed in "[url]http://IP[/url] address/fog/management I’m getting Database Schema Installer/Updater, should I update it?

                                        1 Reply Last reply Reply Quote 0
                                        • Wayne WorkmanW
                                          Wayne Workman
                                          last edited by

                                          [quote=“fredlwal, post: 45811, member: 26766”]When I typed in "[url]http://IP[/url] address/fog/management I’m getting Database Schema Installer/Updater, should I update it?[/quote]

                                          Absolutely. [U]That’s part of the installation[/U]. Without it, stuff won’t work.

                                          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!
                                          Daily Clean Installation Results:
                                          https://fogtesting.fogproject.us/
                                          FOG Reporting:
                                          https://fog-external-reporting-results.fogproject.us/

                                          1 Reply Last reply Reply Quote 0
                                          • F
                                            fredlwal
                                            last edited by

                                            Now, that part is working, I just copied over 1 image from the exteral hard drive onto the server into the images folder , what steps do I need to take in order for the new server to see the image ? Also what do I need to do in so that the clients can boot on the network and pickup an ip address?

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

                                            325

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project