Hetzner 2016 Log

From Open Source Ecology
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Tue May 31, 2016

http://www.tecmint.com/things-to-do-after-minimal-rhel-centos-7-installation/6/

  • Log in to Hetzner -
  • Tom - SSH to hetzner
  • SSH root@ not recommended. Log in, then login as root.
  • ssh my login -p portnumber name @138.201.84.223
  • Port number is for safety, so it's not 22, the usual port
  • Reliable Package Manager - RPM -
    1. rpm -qa | sort
  • sudo su - to operate as root
  • su root - needs root password -
  • rpm -qa | grep webmin - searches if webmin is installed
  • yum install perl-Net-SSLeay
  • yum update
  • yum upgrade
  • yum install firewalld
  • systemctl enable firewalld
  • systemctl start firewalld
  • yum install httpd
  • systemctl enable httpd.service
  • systemctl start httpd.service
  • firewall-cmd --add-service=http
  • firewall-cmd --add-port=80/tcp –permanent
  • systemctl stop firewalld
  • firewall-cmd --add-port=xxxxx/tcp
  • firewall-cmd --reload
  • yum install links - text web browser
  • links http://127.0.0.1/
  • yum install php
  • systemctl restart httpd.service
  • echo -e "<?php\nphpinfo();\n?>" > /var/www/html/phpinfo.php - this wrote one
  • links http://127.0.0.1/phpinfo.php - i ran the php script
  • yum install mariadb-server mariadb
  • systemctl enable mariadb.service
  • systemctl start mariadb.service
  • yum install wget
  • wget http://mysqltuner.pl/ -O mysqltuner.pl
  • Yum install nmap
  • nmap 127.0.0.1
  • yum install telnet
  • telnet google.com 80
  • links https://sourceforge.net/projects/webadmin/files/webmin/
  • https://sourceforge.net/projects/webadmin/files/webmin/1.801/webmin-1.801-1.noarch.rpm/download
  • mv download webmin-1.801-1.noarch.rpm
  • rpm -ivh webmin*rpm
  • yum install webmin
  • uyname -a - tells operating system
  • https://138.201.84.223:10000/
  • ail -f /var/log/messages
  • yum install wordpress - not. This doesn't work. Use [1] instead.
  • Do not sudo in the above commends, as I am operating as sudo
  • Instead of rsync - do mv ~/wordpress /var/www/html/.
  • mv ~/wordpress /var/www/html/.
  • cd /var/www/html/wordpress
  • mv * ../.
  • cd ..
  • rmdir wordpress


Links

  • Top 20 commands - [2]