LAMP server on VPS test install manual (4)

Caution:This instruction does not consider strict security. You must know much more to keep proper security for publication to world wide. So I recommend this server constructed here should be used for your personal practice how to make LAMP(linux-apache-mysql-perl,php,python) web server. If you want to get farther knowledge, visit the related links suggested below. Those would be good help for you.

4. Setting System Control Tool OpenLMI

#Add repository

yum -y install epel-release

yum -y install openlmi-scripts*

firewall-cmd --add-port 5989/tcp --permanent
firewall-cmd --reload

systemctl enable tog-pegasus.service
	#symbolic link has been updated.
systemctl start tog-pegasus.service
systemctl -l status tog-pegasus.service
	#You might be warned because you don't have ssl settings yet.
	#systemctl works at low level, so need more security.

firewall-cmd --get-zones
firewall-cmd --get-services

	lmi> hwinfo;	#Get hardwear information
	lmi> system;	#Get system information

#Tips for TeraTerm users

You can be more comfortable for teraterm command line and ttmacros. e.g.

One click auto connect( Be careful, the easier the leakier, secret key and pass… )
shell “C:\Program Files (x86)\teraterm\ttermpro.exe” <your url or ip of ssh server >:\<port number> /ssh /2 /auth=publickey /user=<your user> /keyfile=”Path/to/private_key/file” /passwd=”\<your password>”.

Auto login and su root
shell “C:\Program Files (x86)\teraterm\ttpmacro.exe” /V login.ttl


hostname = '<your host url or ip>'
sshport ='<ssh port>'
Username = '<user>'
Userpass ='<user password>'
Rootpass ='<root password>'

msg = hostname
strconcat msg ':'
strconcat msg sshport
strconcat msg ' /ssh /2 /auth=publickey /user='
strconcat msg Username
strconcat msg ' /keyfile="C:\Program Files (x86)\teraterm\id_rsa" /passwd='
strconcat msg Userpass

connect msg

; set username
UserPrompt = '$'
RootPrompt = '#'
PasswordPrompt = ':'
timeout = 30

; login
wait   UserPrompt
sendln 'su root'

wait   PasswordPrompt
sendln Rootpass

wait RootPrompt
sendln 'cd'

; OK, auto login complete. current dir = /root


Leave a Reply

Your email address will not be published. Required fields are marked *