FreeBSD OS Configuration
Edit file /etc/rc.confhostname="wattson.local"
ifconfig_em0="DHCP"
sshd_enable="YES"
ntpdate_enable="YES"
ntpdate_hosts="ntp.cesnet.cz time1.google.com time2.google.com"
ntpd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
# Sendmail
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
# VMware Tools
vmware_guest_vmblock_enable="YES"
vmware_guest_vmhgfs_enable="YES"
vmware_guest_vmmemctl_enable="YES"
vmware_guest_vmxnet_enable="YES"
vmware_guestd_enable="YES"
Restart the network configuration
/etc/rc.d/netif restart
/etc/rc.d/routing restart
/etc/rc.d/routing restart
OS Tuning
Edit file $HOME/.profile PS1="[${LOGNAME}@$(hostname)]$ "; export PS1
Software installation
pkg update
pkg install -y open-vm-tools-nox11pkg install -y gitpkg install -y python3ln -s /usr/local/bin/python3.8 /usr/local/bin/python
pkg install -y open-vm-tools-nox11
GIT configuration
For more info about GIT configuration see http://intkb.blogspot.cz/2016/01/github.html
// *********** github config
git config --global user.name "davidpasek"
git config --global user.email "david.pasek@gmail.com"
// *********** Clone existing github repository
git clone https://github.com/davidpasek/python-scripts
Python configuration
Install pip Python package manager
Check Python version
python --version
Install pip
pkg install -y py38-pip
If symbolic link does not exist, create symbolic link (it should be created by default)
ln -s /usr/local/bin/pip-3.8 /usr/local/bin/pip
Upgrade pip to the latest version by using the following command
pip install --upgrade pip
No comments:
Post a Comment