Last active
March 5, 2019 01:51
-
-
Save crashangelbr/2adb53109bc1e4f081ac8cbeaae8f717 to your computer and use it in GitHub Desktop.
Create Dev Enviroment Slax Linux
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/bash | |
rm /var/lib/apt/lists/lock | |
rm /var/cache/apt/archives/lock | |
rm /var/lib/dpkg/lock | |
start(){ | |
apt update | |
} | |
################ | |
# Pre Requitites | |
################ | |
Requisits(){ | |
apt install -y curl wget openjdk-8-jdk-headless net-tools apt-transport-https software-properties-common wget lxterminal | |
} | |
######################## | |
# Elasticsearch / Kibana | |
######################## | |
Elastsearch(){ | |
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add - | |
echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | tee -a /etc/apt/sources.list.d/elastic-6.x.list | |
apt-get update | |
apt-get install -y elasticsearch kibana | |
systemctl start elasticsearch | |
systemctl start kibana | |
} | |
############## | |
# .NET Core 2 | |
############## | |
NETCore(){ | |
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg | |
mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/ | |
wget -q https://packages.microsoft.com/config/debian/9/prod.list | |
mv prod.list /etc/apt/sources.list.d/microsoft-prod.list | |
chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg | |
chown root:root /etc/apt/sources.list.d/microsoft-prod.list | |
apt-get update | |
apt-get install -y dotnet-hosting-2.0.5 | |
} | |
################# | |
# JetBrains Rider | |
################# | |
Rider(){ | |
wget https://download-cf.jetbrains.com/rider/JetBrains.Rider-2018.3.3.tar.gz | |
tar -xzvf JetBrains.Rider-2018.3.3.tar.gz | |
cd JetBrains.Rider-2018.3.3 | |
cd bin && sh rider.sh | |
} | |
############ | |
# DNS Crypt | |
############ | |
DNSCrypt(){ | |
wget https://github.com/jedisct1/dnscrypt-proxy/releases/download/2.0.19/dnscrypt-proxy-linux_x86_64-2.0.19.tar.gz | |
tar -xzvf dnscrypt-proxy-linux_x86_64-2.0.19.tar.gz | |
cd linux-x86_64/ | |
mv example-dnscrypt-proxy.toml dnscrypt-proxy.toml | |
echo "nameserver 127.0.0.1" > /etc/resolv.conf | |
./dnscrypt-proxy --service install | |
./dnscrypt-proxy --service start | |
} | |
########### | |
# Firewall | |
########### | |
Firewall(){ | |
wget https://gist.github.com/crashangelbr/fe23dd94b0d250e36d4f72a6c4703321/raw/ceeaffbbe93b0c9bf186e8af7ed52ff8c79350d8/firewall-start.sh | |
wget https://gist.github.com/crashangelbr/30cefa72b9f9f8b2b4aa44021d677ff2/raw/5c20b4e4bb9d1cb93454eeffa8e25b7b5ab8fd70/firewall.service | |
mv firewall-start.sh /etc/firewall-start | |
mv firewall.service /etc/systemd/system/ | |
chmod +x /etc/firewall-start | |
chmod 755 /etc/systemd/system/firewall.service | |
systemctl enable firewall | |
systemctl start firewall | |
/etc/./firewall-start | |
} | |
mount(){ | |
mkdir /media/1TB | |
mount /dev/sdb1 /media/1TB | |
} | |
extra(){ | |
apt install -y vlc firefox-esr | |
} | |
backup(){ | |
mkdir /media/1TB/archives | |
cp /var/cache/apt/archives/* /media/1TB/archives/ -r | |
} | |
#start | |
#Firewall | |
#DNSCrypt | |
#Requisits | |
#NETCore | |
#Elastsearch | |
#Rider | |
#mount | |
#extra | |
#backup | |
#start | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment