Last active
November 18, 2024 07:57
-
-
Save mrthx89/c2765a618f134bd9a6514c72ec005247 to your computer and use it in GitHub Desktop.
Install Ubuntu Live Server 20.04
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
--Script Install Ubuntu Server 20.04 | |
--By Yanto H | |
--Update On : 23-11-27 | |
--Masuk Root | |
sudo su - | |
sudo apt update | |
--Enale Firewall | |
sudo ufw enable | |
sudo ufw allow ssh | |
sudo ufw reload | |
--Install GUI-Desktop Normal | |
sudo apt install gnome-session gdm3 | |
sudo apt install tasksel | |
sudo tasksel install ubuntu-desktop | |
--Install Zerotier | |
sudo apt-get install curl | |
sudo curl -s 'https://install.zerotier.com/' | sudo bash | |
sudo zerotier-cli join <NETWORK_ID> | |
sudo systemctl enable zerotier-one | |
sudo systemctl start zerotier-one | |
sudo update-rc.d zerotier-one defaults | |
sudo service zerotier-one start | |
sudo zerotier-cli status | |
--Install MSSQL Server 2022 | |
curl https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc | |
sudo add-apt-repository "$(wget -qO- https://packages.microsoft.com/config/ubuntu/20.04/mssql-server-2022.list)" | |
sudo apt-get update | |
sudo apt-get install -y mssql-server | |
sudo /opt/mssql/bin/mssql-conf setup | |
-- Serial MSSQL 2022 -> Pilih Nomor 8 dan SN 2Q48Q-PB48J-DRCVN-GB844-X2H4Q | |
--Install MSSQL Server 2019 | |
curl https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc | |
sudo add-apt-repository "$(wget -qO- https://packages.microsoft.com/config/ubuntu/20.04/mssql-server-2019.list)" | |
sudo apt-get update | |
sudo apt-get install -y mssql-server | |
sudo /opt/mssql/bin/mssql-conf setup | |
-- Serial MSSQL 2019 -> Pilih Nomor 8 dan SN HMWJ3-KY3J2-NMVD7-KG4JR-X2G8G | |
--Install SQLCMD | |
curl https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc | |
curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list | |
sudo apt-get update | |
sudo apt-get install mssql-tools18 unixodbc-dev | |
echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bash_profile | |
echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bashrc | |
source ~/.bashrc | |
--Enable Job SQL Server | |
sudo /opt/mssql/bin/mssql-conf set sqlagent.enabled true | |
sudo systemctl restart mssql-server | |
--Azure Data Studio | |
wget "https://go.microsoft.com/fwlink/?linkid=2251736" -O azuredatastudio.deb | |
sudo apt install libunwind8 | |
sudo dpkg -i azuredatastudio.deb | |
--Optional saja | |
sudo apt install -f | |
azuredatastudio | |
echo -e '[Desktop Entry]\nName=Azure Data Studio\nExec=azuredatastudio\nComment=Integrated environment for database developers, DBAs, and data scientists\nIcon=azuredatastudio\nType=Application\nCategories=Development;' | sudo tee /usr/share/applications/azuredatastudio.desktop | |
--Teamviewer | |
wget https://download.teamviewer.com/download/linux/teamviewer_amd64.deb | |
sudo apt install ./teamviewer_amd64.deb | |
cat /etc/apt/sources.list.d/teamviewer.list | |
--Anydesk | |
wget -qO - https://keys.anydesk.com/repos/DEB-GPG-KEY | sudo apt-key add - | |
echo "deb http://deb.anydesk.com/ all main" | sudo tee /etc/apt/sources.list.d/anydesk-stable.list | |
sudo apt update | |
sudo apt install anydesk | |
-- KVM | |
sudo apt-get install virt-manager | |
kvm-ok | |
sudo apt-get install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils | |
sudo adduser 'NamaUser' libvirt | |
sudo adduser 'NamaUser' kvm | |
newgrp libvirt | |
--Samba | |
sudo apt install samba | |
sudo nano /etc/samba/smb.conf | |
--Samba Example | |
[share_data] | |
comment = Program Share | |
path = /path/to/your/folder | |
read only = no | |
guest ok = no | |
create mask = 0700 | |
directory mask = 0600 | |
sudo smbpasswd -a your_username | |
sudo systemctl restart smbd | |
--Firewall | |
sudo ufw allow 1433/tcp | |
sudo ufw allow 5938/tcp | |
sudo ufw allow 443/tcp | |
sudo ufw allow 80/tcp | |
sudo ufw allow samba | |
--Install GNOME Minimal Optional | |
sudo apt install gnome-session gdm3 | |
sudo apt install tasksel | |
sudo tasksel install ubuntu-desktop-minimal | |
sudo apt install lightdm --Dan Pilih LightDM | |
--Install GNOME Minimal Optional | |
sudo apt install gnome-session gdm3 | |
sudo apt install tasksel | |
sudo apt install ubuntu-desktop-minimal | |
sudo apt install firefox | |
--Reboot | |
sudo reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment