September 19, 2019

[NOTE] VirtualBox + CentOS 7

Installation note for CentOS7 on VB

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 kernal
# 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
(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
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



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.

August 25, 2019

Convert images to PDF

This tool, "Image to PDF or XPS" converts images to PDF/XPS.  There is another similar program called "i2pdf", but it doesn't handle GIF.

One downside of this program is when sometimes it doesn't order files properly and you need to arrange them manually -- using "Move Sel Up, Down" buttons.





https://snapfiles.com/get/jpegtopdf.html