Home
About Me
Résumé
Portfolio
DevOps
C/C++
Drupal
Java
PHP
Ruby
Symfony
WordPress
Blog
Astronomy
Fitness
Photography
RDBMS
Technology
WWF
Pictures
Instagram
Galleries
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
Contact
Search for:
Search Button
Home
About Me
Résumé
Portfolio
DevOps
C/C++
Drupal
Java
PHP
Ruby
Symfony
WordPress
Blog
Astronomy
Fitness
Photography
RDBMS
Technology
WWF
Pictures
Instagram
Galleries
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
Contact
Search for:
Search Button
DevOps
Systems Administration
FreeBSD
August 27, 2022
Table of Contents
Keeping software up to date
Package Updates with Package Manager
Amazing Utilities
top
atop
htop
iftop
Moving Filesystem to a new Filesystem
Moving Directories to a new Filesystem
Updating hostnames
WEB-518 – ROM website is down
Switch off internal IP address
How to find out what filesystem a file or dir belongs to
fatal: cannot run /usr/bin/nano
UNIX/Linux Closing ports
How to install Linux Malware Detection (LMD)
How to install ClamAV Antivirus
public scanning is enabled (scan_user_access=1) but paths do not exist
could not find required binary md5sum, aborting
WARNING: Clamd was NOT notified: Can’t connect to clamd through /var/run/clamav/clamd.sock: No such file or directory
FreeBSD – AUDIT
FreeBSD – Updating Bash due to the Shellshock bug
Commvault Simpana not working
Uninstalling Commvault Simpana
Installing Commvault Simpana
FreeBSD – File Transfer Protocol (FTP)
9. File Transfer Protocol (FTP)
9.1. Configuration
Note:
My Notes!
FTP does not work.
Intrusion Detection System (Binary Verification)
Installing IPFilter
5. IPFILTER (IPF)
5.1. Enabling IPF
List Available OpenJDK Packages
How To Install an OpenJDK Package
{{ HOST_NAME }}
Installing Java
FreeBSD: How To Install an Apache, MySQL, and PHP (FAMP) Stack on FreeBSD
Update your FreeBSD
Install Apache 2.4
Welcome OSTechNix web server
Install MySQL 5.7 Client
Install MySQL 5.7 Server
Install PHP 7.0
ERROR 1840 (HY000) at line 24: @@GLOBAL.GTID_PURGED can only be set when @@GLOBAL.GTID_EXECUTED is empty.
PNG Images are not shown in PDF reports
Refused to display ‘URL’ in a frame because it set ‘X-Frame-Options’ to ‘sameorigin’
LAMP Upgrades breaks down network interface vmxf30
ROMLX777 Before Upgrade
ROMLX777 After Upgrade
ROMLX16 Before Upgrade
ROMLX16 After Upgrade
ROMLX17 Before Upgrade
ROMLX17 After Upgrade
ROMLX18 Before Upgrade
ROMLX18 After Upgrade
ROMLX14 Before Upgrade
ROMLX14 After Upgrade
ROMLX2 Before Upgrade
ROMLX2 After Upgrade
On vSphere (or terminal)
Display free disk space
Display /etc/fstab
Identify your new disk info (partitions and slices)
Mount your new disk
To Unmount your new disk
Reboot (Not necessarily)
FreeBSD cowardly refuses to upgrade from 10.0 to 11.2
Your packages are up to date
Mounting and Unmounting File Systems
How to add additional space
Use corrupted space on romlx999 on da0
3. Resizing and Growing Disks
No space left on device (TO BE COMPLETED)
Mapping Windows network drive into Unix
Installing Nagios
“svn add” won’t add two files
service nagios restart – Permission denied
Internal Server Error
** PROBLEM Service Alert: romlx16/SSH is CRITICAL **
** PROBLEM Service Alert: romlx16/Swap Usage is CRITICAL **
Installing Perl
To view installed Perl modules
Update your FreeBSD
DBI module not found
CGI module not found
DBD::mysql module not found
DBD::Sybase module not found
Mail::Sendmail module not found
Switch.pm module not found
LWP/UserAgent.pm module not found
Date/Manip.pm module not found
Image/Magick.pm module not found (DONE)
HTML/Entities.pm module not found
pkg upgrade breaks down perl
keeping software packages up-to-date
You must upgrade pkg(8) first
pkg upgrade breaks perl and subversion.
/lib/libc.so.7: version FBSD_1.4 required by /usr/local/lib/libpkg.so.4 not found
Unable to install Rootkit Hunter
pkg: cached package rsync-3.1.3: size mismatch, cannot continue
How to remove all packages
pkg commands not working
freebsd-update cannot merge configuration files
How to remove packages
Shared object “libssl.so.7” not found, required by “pkg”
FreeBSD – Portsentry
RootKits
Installing RootKit Hunter
Maintaining RootKit Hunter
Analyzing RootKit Hunter Results
Additional Steps from the rkhunter.log
FreeBSD: Install Ruby and Ruby on Rails
Introduction
Step 1 — Setting bash as the Default Shell
Step 2 — Installing RVM
Step 3 — Installing Ruby
Step 4 — Installing Ruby on Rails
Step 5 — Creating a Test Project
Conclusion
Unable to switch ruby from 2.2.2 to 1.9.3
bash: bundle: command not found
Starting the rails daemon
T3-a: Stoping the rails daemon
T3-b: Starting the rails daemon
T3-c: Restarting the rails daemon
https://{{ HOST_NAME }}:3000
Error loading RubyGems plugin
Installing RVM
Installing Ruby 2.2 DID NOT work.
Installing Ruby 2.4.0 worked
Installing Ruby 2.5.0 DID NOT work. I found out what the problem is. See 6. Installing Ruby 2.5.1 worked below.
Installing Ruby 2.5.1 DID NOT work. I found out what the problem is. See 6. Installing Ruby 2.5.1 worked below.
Installing Ruby 2.5.1 worked.
Installing Ruby 1.9.3 DID NOT work. Finally GO IT working. See below.
Installing Samba
Configuring Samba
Samba User Account Management
View user accounts
Update user accounts
Using Samba
Working with Samba on {{ HOST_NAME }}
Working with Samba on {{ HOST_NAME }}
V drive is inaccessible
Samba does not work on Windows
Samba does not work on MacOS
pdbedit vs smbpasswd
Samba is very slow on MacOS
FreeBSD – Security
Hiding/Exposing Internal Servers
Preventing Logins
Permitted Account Escalation
Determine if images are indeed images
hostname and ping on romlx16 gives different IP addresses
How To Start / Stop / Restart Network and Routing Services
Troubleshooting 1: Email messages are not being delivered
Troubleshooting 2: Email messages are not being delivered for School Visits – Fixed
Troubleshooting 3: Sendmail on romlx777 not working – NOT Fixed
Installing SNMP (Simple Network Management Protocol)
Installing Nano
dos2unix & unix2dos
date command shows incorrect time
11. Clock Synchronization with NTP
11.1. NTP Configuration
Note:
11.2. Using NTP with a PPP Connection
Note:
If the above does not work, then set up the date and time to solve this issue
FreeBSD Set Date Time and Timezone
FreeBSD Display todays date
FreeBSD set date and time
FreeBSD Set Time Without Modifying The Date
FreeBSD Setup Timezone
date command and use of environment variable
See also:
Update your FreeBSD
Install SUDO
Installing Apache Solr
Unable to connect to http://{{ HOST_NAME }}:8983/solr
Your site was unable to contact the Apache Solr server
SSH Login without a password.
SSH allows users to login without a password
Unix users experience problems logging in
Unable to login to DNS server romlx1
Unable to login to romlx777
OpenSSH Banner version differs from ssh -vvv
SSH users are unable to login
Unable to login to romlx16 as puma
Install sudo using FreeBSD port system
Install sudo using pkg_add comamnd
How do I configure sudo?
Task: Become a root user with sudo
Task: Run any command as root
su: Sorry
Password prompt
Drupal logging errors to /var/log/messages
Apache Tomcat
Installing Apache Tomcat 7 Web Server
Installing Apache Tomcat 6 Web Server
Apache Solr not displaying results
Apache Solr not displaying images in results
How to upgrade IPT on {{ HOST_NAME }}
How to enable SSL on {{ HOST_NAME }}
Installing apache-solr with pkg
Could not open a connection to your authentication agent
GBIF is down AGAIN.
User Management
Adding/Deleting Users in FreeBSD
Adding user account
Create an internal SSH account
Create an external SSH account – With Encryption
Create an external SSH account – Without Encryption
Deleting user account
Setting or Changing User Password
Changing Password For Other User Accounts
Changing Group Password
Changing Root Password
PW
Managing Groups
Adding a Group Using pw(8)
Adding User Accounts to a New Group Using pw(8) – Replace
Adding a New Member to a Group Using pw(8) – Append
Removing a Member from a Group Using pw(8)
Using id(1) to Determine User Membership
Using grep to Determine Group Membership
Adding an existing user to group
Deleting a group
Update your FreeBSD
Install perl and compat6x-amd64
Soft link /usr/local/bin/perl into /usr/bin/perl
Upload vmware tools (vmware-tools-distrib) to server /tmp directory
Adjust permissions
Run the perl.
Locking accounts
Unlocking accounts
Changing login shell
Setting account password change date
Setting account expiry date
Setting account login class
User unable to login into newly upgraded FreeBSD 11.2
Users unable to login to romlx16
Disabling user accounts
Enabling user accounts
Installing Proprietary VMware Tools
Installing Open Source VMware Tools
devops
,
freebsd
,
Linux
,
systems-administration
,
Unix
Written By victord On August 27, 2022