This file contains 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
#!/bin/sh | |
sudo apt update | |
sudo apt install samba | |
sudo systemctl status nmbd | |
sudo ufw allow 'Samba' |
This file contains 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
#!/bin/sh | |
sudo apt update | |
sudo apt install vsftpd | |
sudo cp -v /etc/vsftpd.conf /etc/vsftpd.conf.bk | |
sudo nano /etc/vsftpd.conf | |
Uncomment below lines. | |
write_enable=YES |
This file contains 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
#!/bin/sh | |
mysql -u root -p | |
CREATE DATABASE wordpressdb DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; | |
GRANT ALL ON wordpress.* TO 'wordpressuser'@'localhost' IDENTIFIED BY 'password'; | |
FLUSH PRIVILEGES; | |
EXIT: | |
sudo nano /etc/apache2/sites-available/wordpress.conf |
This file contains 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
#!/bin/sh | |
sudo apt update | |
sudo apt install apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - | |
sudo add-apt-repository "deb https://download.sublimetext.com/ apt/stable/" | |
sudo apt update | |
sudo apt install sublime-text |
This file contains 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
#!/bin/sh | |
echo 'deb http://www.rabbitmq.com/debian/ testing main' | sudo tee /etc/apt/sources.list.d/rabbitmq.list | |
wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get install rabbitmq-server | |
sudo systemctl enable rabbitmq-server | |
sudo systemctl start rabbitmq-server | |
sudo systemctl status rabbitmq-server |
This file contains 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
#!/bin/sh | |
sudo apt update && sudo apt upgrade -y | |
sudo apt-get install redis-server -y | |
sudo vi /etc/redis/redis.conf | |
:setnu | |
make line | |
559 maxmemory 256 | |
and | |
590 maxmemory-policy allkeys-lru |
This file contains 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
#!/bin/sh | |
sudo apt update && sudo apt upgrade -y | |
cd ~/Downloads/ | |
sudo wget https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.3.zip | |
sudo apt-get install unzip -y && | |
sudo unzip ruby-2.5.3.zip -d ~/Downloads/ | |
cd ruby-2.5.3 && sudo ./configure && sudo make && sudo make install | |
ruby --version |
This file contains 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
#!/bin/sh | |
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - | |
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list | |
sudo apt-get update | |
sudo apt-get install sublime-text |
This file contains 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
#!/bin/sh | |
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - | |
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -sc)-pgdg main" > /etc/apt/sources.list.d/PostgreSQL.list' | |
sudo apt update | |
sudo apt-get install postgresql-10 | |
sudo systemctl stop postgresql.service | |
sudo systemctl start postgresql.service | |
sudo systemctl enable postgresql.service |
This file contains 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
#!/bin/sh | |
sudo apt update | |
sudo apt upgrade -y | |
sudo apt-get install netdata -y | |
sudo nano /etc/netdata/netdata.conf | |
sudo systemctl restart netdate | |
sudo systemctl restart netdata.service | |
sudo systemctl status netdata.service |