This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum search php- | |
sudo yum module list php | |
sudo yum install yum-utils http://rpms.remirepo.net/enterprise/remi-release-8.rpm | |
sudo yum module list php | |
sudo yum module reset php | |
sudo yum module enable php:remi-7.4 | |
## verify it php set to 7.4 ## | |
sudo yum module list php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.linuxbabe.com/mail-server/setup-basic-postfix-mail-sever-ubuntu | |
# Check host name | |
hostname -f | |
if host not contain in resutl | |
sudo hostnamectl set-hostname mail.demo.local |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo a2ensite example.com.conf | |
sudo a2dissite 000-default.conf | |
sudo a2dismod php5.6 | |
sudo a2enmod php7.2 | |
sudo update-alternatives --config php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Guide setup GlobalProtect Portal on Linux | |
## Setup GlobalProtect | |
Download GlobalProtect: https://itsforms.wsu.edu/VPN/clients/102419/GlobalProtect.zip | |
Go to folder Downloads and Unzip file | |
Install GlobalProtect |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Guide setup GlobalProtect Portal on Linux | |
## Setup GlobalProtect | |
sudo apt update | |
Download GlobalProtect: https://github.com/jundat95/GlobalProtectVPN/raw/master/PanGPLinux-5.0.8-c6.tgz | |
Go to folder Downloads and Unzip: tar -xvzf PanGPLinux-5.0.8-c6.tgz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Guide setup postfix, mail relays on centos 7 | |
## Install postfix | |
sudo yum install postfix | |
sudo vim /etc/postfix/main.cf | |
/*add to bottom*/ | |
myhostname = relay.example.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install python-software-properties | |
sudo add-apt-repository ppa:ondrej/php | |
sudo apt-get update | |
sudo apt-get install php5.6-fpm php5.6-bcmath php5.6-dba php5.6-imap php5.6-mcrypt php5.6-pspell php5.6-sybase php5.6-bz2 php5.6-dev php5.6-interbase php5.6-mysql php5.6-readline php5.6-tidy php5.6-cgi php5.6-enchant php5.6-intl php5.6-odbc php5.6-recode php5.6-xml php5.6-cli php5.6-json php5.6-opcache php5.6-snmp php5.6-xmlrpc php5.6-common php5.6-gd php5.6-ldap php5.6-pgsql php5.6-soap php5.6-xsl php5.6-curl php5.6-gmp php5.6-mbstring php5.6-phpdbg php5.6-sqlite3 php5.6-zip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Server | |
yum -y install openssh-server | |
cd .ssh | |
ssh-keygen -t rsa | |
mv ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys | |
vi /etc/ssh/sshd_config | |
# line 65: turn to [no] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -itd --privileged -p 22:22 -p 8081:8081 centos /usr/sbin/init |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Check network | |
sudo tcptrack -i ens160 | |
sudo iftop -n | |
sudo tcpdump | |
# Check port listen | |
sudo lsof -i -P -n | grep LISTEN | |
sudo netstat -tulpn | grep LISTEN |