基于Fog Project的系统无人值守部署(一)Fog Project安装

发布时间:2026/5/21 6:58:05

基于Fog Project的系统无人值守部署(一)Fog Project安装 安装部署官网下载安装包进行安装https://fogproject.org/download.php安装以下安装基于Debian 13系统进行部署。rootdebian:~# ls FOGProject-fogproject-1.5.10.1673-0-g8af159d.tar.gz rootdebian:~# tar -xzvf FOGProject-fogproject-1.5.10.1673-0-g8af159d.tar.gz rootdebian:~# ls FOGProject-fogproject-1.5.10.1673-0-g8af159d.tar.gz FOGProject-fogproject-8af159d rootdebian:~# cd FOGProject-fogproject-8af159d/ rootdebian:~/FOGProject-fogproject-8af159d# ls c authors.txt bin CONTRIBUTING.md lib LICENSE packages README.md Release Notes.MD SECURITY.md SELinux src uti rootdebian:~/FOGProject-fogproject-8af159d# cd bin/ rootdebian:~/FOGProject-fogproject-8af159d/bin# ls installfog.sh rootdebian:~/FOGProject-fogproject-8af159d/bin# ./installfog.sh Installing LSB_Release as needed * Attempting to get release information.......................Done ------------------------------------------ | ..#######:. ..,#,.. .::##::. | |.:###### .:;####:......;#;.. | |...##... ...##;,;##::::.##... | | ,# ...##.....##:::## ..:: | | ## .::###,,##. . ##.::#.:######::.| |...##:::###::....#. .. .#...#. #...#:::. | |..:####:.. ..##......##::## .. # | | # . ...##:,;##;:::#: ... ##.. | | .# . .:;####;::::.##:::;#:.. | | # ..:;###.. | | | ------------------------------------------ | Free Computer Imaging Solution | ------------------------------------------ | Credits: http://fogproject.org/Credits | | http://fogproject.org/Credits | | Released under GPL Version 3 | ------------------------------------------ Version: 1.5.10.1673 Installer/Updater What version of Linux would you like to run the installation for? 1) Redhat Based Linux (Redhat, Alma, Rocky, CentOS, Mageia) 2) Debian Based Linux (Debian, Ubuntu, Kubuntu, Edubuntu) 3) Arch Linux Choice: [2] 2 Starting Debian based Installation 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: http://www.fogproject.org/wiki/index.php?titleInstallationModes What type of installation would you like to do? [N/s (Normal/Storage)] n We found the following interfaces on your system: * enp6s18 - 10.226.100.249/24 Would you like to change the default network interface from enp6s18? If you are not sure, select No. [y/N] Would you like to setup a router address for the DHCP server? [Y/n] y What is the IP address to be used for the router on the DHCP server? [10.226.100.254] Would you like DHCP to handle DNS? [Y/n] y What DNS address should DHCP allow? [10.226.100.53] Would you like to use the FOG server for DHCP service? [y/N] n This version of FOG has internationalization support, would you like to install the additional language packs? [y/N] y Using encrypted connections is state of the art on the web and we encourage you to enable this for your FOG server. But using HTTPS has some implications within FOG, PXE and fog-client and you want to read https://wiki.fogproject.org/HTTPS before you decide! Would you like to enable secure HTTPS on your FOG server? [y/N] y Which hostname would you like to use? Currently is: debian Note: This hostname will be in the certificate we generate for your FOG webserver. The hostname will only be used for this but wont be set as a local hostname on your server! Would you like to change it? If you are not sure, select No. [y/N] n FOG would like to collect some data: We would like to collect the following information: 1. OS Name (CentOS, RedHat, Debian, etc....) 2. OS Version (8.0.2004, 7.2.1409, 9, etc....) 3. FOG Version (1.5.9, 1.6, etc....) What is this information used for? We would like to simply track the common types of OS being used, along with the OS Version, and the various versions of FOG being used. Are you ok with sending this information? [Y/n] n ###################################################################### # FOG now has everything it needs for this setup, 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. # # It will prepend the running with sudo if root is not set # ###################################################################### # Please see our wiki for more information at: # ###################################################################### # https://wiki.fogproject.org/wiki/index.php # ###################################################################### * Here are the settings FOG will use: * Base Linux: Debian * Detected Linux Distribution: Debian GNU/Linux * Interface: enp6s18 * Server IP Address: 10.226.100.249 * Server Subnet Mask: 255.255.255.0 * Hostname: debian * Installation Type: Normal Server * Internationalization: Yes * Image Storage Location: /images * Using FOG DHCP: No * DHCP will NOT be setup but you must setup your | current DHCP server to use FOG for PXE services. * On a Linux DHCP server you must set: next-server and filename * On a Windows DHCP server you must set options 066 and 067 * Option 066/next-server is the IP of the FOG Server: (e.g. 10.226.100.249) * Option 067/filename is the bootfile: (e.g. undionly.kkpxe or snponly.efi) * Send OS Name, OS Version, and FOG Version: No * Are you sure you wish to continue (Y/N) y * Installation Started * Testing internet connection.................................Done * Adjusting repository (can take a long time for cleanup).....OK * Preparing Package Manager...................................OK * Packages to be installed: * Configuring services * Setting up fogproject user..................................OK * Locking fogproject as a system account......................OK * Setting up fogproject password..............................OK * Stopping FOGMulticastManager.service Service................OK * Stopping FOGImageReplicator.service Service.................OK * Stopping FOGSnapinReplicator.service Service................OK * Stopping FOGScheduler.service Service.......................OK * Stopping FOGPingHosts.service Service.......................OK * Stopping FOGSnapinHash.service Service......................OK * Stopping FOGImageSize.service Service.......................OK * Setting up and starting MySQL...............................OK * Setting up MySQL user and database..........................OK * Backing up user reports.....................................Done * Stopping web service........................................OK * Setting up Apache and PHP files.............................OK * Testing and removing symbolic links if found................OK * Backing up old data.........................................OK * Copying new files to web folder.............................OK * Creating the language binaries..............................Done * Creating config file........................................OK * Creating redirection index file.............................OK * Downloading kernel, init and fog-client binaries............Done * Copying binaries to destination paths.......................OK * Enabling apache and fpm services on boot....................OK * Creating SSL CA.............................................OK * Creating SSL Private Key....................................OK * Creating SSL Certificate....................................OK * Creating auth pub key and cert..............................OK * Resetting SSL Permissions...................................OK * Setting up Apache virtual host (SSL)........................OK * Starting and checking status of web services................OK * Changing permissions on apache log files....................OK * Backing up database.........................................Done * You still need to install/update your database schema. * This can be done by opening a web browser and going to: https://10.226.100.249/fog/management * Press [Enter] key when database is updated/installed.登录用户名密码为fog/password初始化修改登录密码配置dhcp服务器注意要配置启动文件名按上图配置和启动服务器主机名。我这里的DHCP服务器用的是windows server。

相关新闻