Categories
LINUX

LAMP server q.s.a. install manual 1

1 OS install (CentOS ver8.1)


https://www.centos.org/download/ CentOS download latest current 8.1
https://access.redhat.com/documentation/ja-jp/red_hat_enterprise_linux/8/ RHEL8 note
https://www.rem-system.com/centos-linux8-install/ Great instruction in japanese
http://www.jpcert.or.jp/index.html JPCERTCC(jp)
http://jvn.jp/ Japan Vulnerability Notes(jp)
http://semver.org v2.0.0.html Semantic Versioning
https://www.gnu.org/software/grub/manual/html_node/index.html#SEC_Contents GNU GRUB Manual 2.00
https://thinkit.co.jp/story/2014/11/28/5408 CPG(jp)
http://itpro.nikkeibp.co.jp/article/COLUMN/20060224/230573/ IT Pro Linux commands INDEX(jp)
https://eng-entrance.com/linux-package-rpm-yum-def RPM and YUM
https://www.atmarkit.co.jp/ait/articles/2001/31/news006.html DNF

Download the latest ISO image from the official site.
The full contents version(everything ISO) is oversizing against DVD content.

I will go with the “Docker,” so I have to decide where the goal should be as a localhost machine.
Considering a moment, then I choose the endpoint at the minimum connection from outside, and has security at least.
Before the chapter of “7 Docker basic” is designed for a primary host machine based on the PLAN A.

1.1 Virtual Private Server, ONAMAE


https://cp.myvps.jp/ VPS link(userID and password is required) (jp)

Upload the iso image to VPS provider’s storage, follow the instruction http://guide.onamae-server.com/vpskvm/3_14_15_74_2/

Control Panel >
Server List >kvm******** [click]
Power Off (Confirm stop power)
OS re-install tab
OS:[custom OS] > pull down the list, and the last one is the latest you uploaded.
Semi-virtual driver (virtio) [on]
VNC console keymap [ja]
video [cirrus] (default)
Disks [Custom][120GB]+[80GB] < expand, partitioning is auto set
Note: Actually, even if you choose separation, the installer makes a pool and adds both devices on default.

>[confirm] > [execute] [return to server list] > [power on]
>Power on ready? [yes]

Server list >kvm******** [click]
See console view
click and start [click]
Next view get from the icon right above
[Enter] to start to install

Installer view>
keyboard [Japanese] <select or [+]

language support [English(US)] < + English(UK) + Japanese <and so on something you need.
Selected install device Basic expanded to 120GB
It’s ok with the default settings.
If you know about Linux filesystem, I recommend to create customized partitions like this;

pool name = <..$pool_name..>e.g. poolpoo
filesystem = xfs
partations = / , /var , /tmp, /home (each size would be your choice within your VPS limitation)
/boot and /swap should be remained default.

Select the software base environment as Server, and choose something properly.
KDUMP on
Enabling network connection
Security policy on, without profile
Time & Data, select Asia Tokyo.

> [Begin Installation]
root pass <..$root_password..> <..$your_password..>
create user <..$your_id..> to be administrator pass <..$your_password..> check ‘make this user administrator’
===wait for a while (about 15min)===
On my selection, it takes 1149 packages.

# if you see the ‘Reboot’ button at the right bottom of the window, it’s done!

# don’t forget to do this before pushing the reboot button; if you don’t, you may turn to pale.

reject customOS disk [click] then reboot [click]

When the progress bar appears and shows the login: prompt, the installation process is done.

# >Web console
# Caution: When you install the custom OS, you can’t use default ssh connect(via console1001.myvps.jp…)
# The console connects shows just tty instead of remote IP on direct view.

login: <..$your_username..>
Password:<..$your_pass..>
su Password:<..$root_pass..>
# prompt changed