Skip to content

Instantly share code, notes, and snippets.

@parsibox
Last active December 14, 2023 07:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parsibox/d39e3d9ef722e42346a13fc4d98157e3 to your computer and use it in GitHub Desktop.
Save parsibox/d39e3d9ef722e42346a13fc4d98157e3 to your computer and use it in GitHub Desktop.
sudo su
Suppress lengthy login messages:
touch .hushlogin
Get the existing package metadata up to date, and upgrade all existing packages:
apt -y update
apt -y upgrade
apt -y install mlocate
apt -y install iptables-persistent
apt -y install net-tools
sudo su -c /usr/lib/openssh/sftp-server
@parsibox
Copy link
Author

parsibox commented May 6, 2023

ip link
ip addr show dev ens36
sudo netplan apply

@parsibox
Copy link
Author

sudo echo "root soft nofile 1024000" >> /etc/security/limits.conf
sudo echo "root hard nofile 1024000" >> /etc/security/limits.conf
sudo echo "root soft nproc 1024000" >> /etc/security/limits.conf
sudo echo "root hard nproc 1024000" >> /etc/security/limits.conf

@parsibox
Copy link
Author

sudo sed -i "/expose_php =/c\expose_php = Off" /etc/php/7.4/cli/php.ini
sudo sed -i "/memory_limit =/c\memory_limit =12800000M" /etc/php/7.4/cli/php.ini
sudo sed -i "/short_open_tag =/c\short_open_tag = On" /etc/php/7.4/cli/php.ini
sudo sed -i "/post_max_size =/c\post_max_size = 200M" /etc/php/7.4/cli/php.ini
sudo sed -i "/max_input_time =/c\max_input_time = 3000" /etc/php/7.4/cli/php.ini
sudo sed -i "/max_execution_time =/c\max_execution_time = 30000000" /etc/php/7.4/cli/php.ini
sudo sed -i "/upload_max_filesize =/c\upload_max_filesize = 200M" /etc/php/7.4/cli/php.ini
sudo sed -i "/max_file_uploads =/c\max_file_uploads = 100" /etc/php/7.4/cli/php.ini
sudo sed -i "/allow_url_fopen =/c\allow_url_fopen = On" /etc/php/7.4/cli/php.ini

@parsibox
Copy link
Author

parsibox commented Sep 3, 2023

vi /root/.bash_profile
echo "alias grep='grep --color=always' " >> /root/.bash_profile
echo "cd /var/www/golang" >> /root/.bash_profile
source ~/.bashrc

@parsibox
Copy link
Author

parsibox commented Oct 7, 2023

sudo timedatectl set-timezone Asia/Tehran

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment