September 19, 2019

[NOTE] VirtualBox + CentOS 7

Installation note for CentOS7 on VB

This is to test DB2, Oracle and other DBs later.

1. CentOS7 on VirtualBox

(Reference: https://itekblog.com/centos-7-virtualbox-guest-additions-installation-centos-minimal/)

1.1. Guest Additions
Once installed CentOS7, install Guest additions

# yum update
# reboot
# yum update kernel
# reboot
# yum groupinstall "Development tools"
# yum install kernel-devel

Mount Guest CD

# cd /mnt
# mkdir cdrom && mount /dev/cdrom /mnt/cdrom
# cd cdrom && ./VBoxLinuxAdditions.run

1.2.1. Shared folder - method #1
Get shared folder name from VB

# mkdir /mnt/shared
# mount -t vboxsf vm.share /mnt/shared

1.2.2. Shared folder - method #2
# usermod -aG vboxsf kkim

Reboot, and the shared folder will be mounted at /media/sf_vm.share/
If didn't work, try this:

# mount.vboxsf vm.share /media/sf_vm.share/


1.3. mount shared folder automatically at boot
# vi /etc/rc.local

Add:
mount.vboxsf windows_share /media/windows_share vboxsf


2. Install things


2.1. EPEL
(Reference: https://www.cyberciti.biz/faq/installing-rhel-epel-repo-on-centos-redhat-7-x/)

# yum install epel-release

2.2. ifconfig
# yum install net-tools


3. Set up things


3.1. Static IP
use 'nmtui' or:

(Reference: https://www.techrepublic.com/article/how-to-configure-a-static-ip-address-in-centos-7/)

In VB, use Bridge Adapter first.

# vi /etc/sysconfig/network-scripts/ifcfg-enp0s3 

Add:

BOOTPROTO=static
IPADDR=192.168.1.200
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=192.168.1.1
DNS2=8.8.8.8
DNS3=8.8.4.4


3.2. sudo
(Reference: https://www.digitalocean.com/community/tutorials/how-to-create-a-sudo-user-on-centos-quickstart)

# usermod -aG wheel username

4. Disable SELinux and Firewall

4.1. disable SELinux

To check,
# sestatus

Disable
# setenforce 0

Disable permanently
# vi /etc/sysconfig/selinux

SELINUX=disabled

And reboot.

4.2. disable firewall

Check
# systemctl status firewalld

Stop
# systemctl stop firewalld

Disable it
# systemctl disable firewalld




September 1, 2019

HTTrack Website Copier





HTTrack: Download entire site to a local computer to view later. 

Many useful websites come and go -- if it's just one page, print out as PDF.  But it's entire site or portion of a site, use this program to download the content of the site to save permanently.  Archive.org helps, but often many sites are not available there.