-
Notifications
You must be signed in to change notification settings - Fork 0
FreeBSD Build
Welcome to the Monitoring wiki! Boot to the FreeBSD ISO. On the Welcome select Install On the Keymap Selection select Continue with default keymap On the Set Hostname name your box (SVSMon01 On the Distribution Select, select lib32 and ports On the Partitioning select Auto (UFS) On the Partition, select Entire Disk On the Partition Scheme, select GPT On the Partition Editor, select Finish On the Confirmation, select Commit Set the root password On the Select local or UTC (Greenwich Mean Time) clock, select Yes On the Time Zone Selector, select America -- North and South On the Countries in America -- North and South, select 49 United States On the United States Time Zones, select 21 Pacific Time On the Confirmation, select Yes On the System Configuration, select SSHD, NTPD, dumpdev On the Add User Accounts, select Yes Username: mon Full name: Monitoring Uid (Leave empty for default): Login group [mon]: Login group is mon. Invide mon into other groups? []: Login class [default]: Shell (sh csh tcsh nologin) [sh]: Home directory [/home/mon]: Home directory permissions (Leave empty for default): Use password-based authentication? [yes]: Use an empty password? (yes/no) [no]: Use a random password? (yes/no) [no]: Enter password: Lock out the account after creation? [no]: OK? (yes/no): yes Add another user? (yes/no): no On the Final Configuration, select Exit On the Manual Configuration, select No On the Complete, select Reboot
Network: ifconfig em0 up dhclient em0
Update FreeBSD freebsd-update fetch freebsd-update install
Update packages portsnap fetch update portsnap extract portsnap update
Packages pkg install pkg pkg install sudo pkg install python3 pkg install apache24 pkg install mariadb55-server pkg install mod_php56 php56-mysql php56-mysqli pkg install php56-mcrypt-5.6.14 pkg install vim pkg install git pkg install nmap pkg install wget rehash
Apache Configs sysrc apache24_enable=yes service apache24 start
MariaDB Configs sysrc mysql_enable=yes service mysql-server start mysql_secure_installation mysql -u root -p < Git/Monitoring/MySQL/Monitoring.sql mysql -u root -p USE Monitoring; CREATE USER 'MonRead'@'localhost' IDENTIFIED BY 'enter password here'; CREATE USER 'MonWrite'@'localhost' IDENTIFIED BY 'enter password here'; GRANT INSERT, UPDATE, SELECT ON Monitoring.* TO 'MonWrite'@'localhost'; GRANT SELECT ON Monitoring.* TO 'MonRead'@'localhost';
PHP cp /usr/local/etc/php.ini-production /usr/local/etc/php.ini vi /urs/local/etc/php.ini extension=mcrypt.so vi /usr/local/etc/apache24/Includes/php.conf DirectoryIndex index.php index.html <FilesMatch ".php$"> SetHandler application/x-httpd-php <FilesMatch ".phps$"> SetHandler application/x-httpd-php-source
Git mkdir Git cd Git git config --global user.name "GuloGuloDesu" git config -- global user.email "GuloGuloDesu@" git config --global color.ui auto mkdir Monitoring cd Monitoring git init git remote add Monitoring https://github.com/GuloGuloDesu/Monitoring.git git pull Monitoring master
nmap wget https://pypi.python.org/packages/source/p/python-nmap/python-nmap-0.5.0-1.tar.gz tar -xvf python-nmap-0.5.0-1.tar.gz cd python-nmap-0.5.0-1 python3 setup.py install
Prep cd Git/Monitoring/ cp XMLExample.xml DocScan.xml cp XMLTemplate.xml Credentials.xml