Skip to content

Installasi Git dan NodeJS

SSH ke Server kalian masing masing sesuai dengan yang tertera pada GoogleSheet yang telah diberikan https://docs.google.com/spreadsheets/d/1mRJvJxXy28GBG6489mGHnWq_Ok2t8VZsn5lz0UeaZfs/edit#gid=0

Setting Repository

root@webserver-rehan:~# su -
root@webserver-rehan:~# nano /etc/apt/sources.list
Setting seperti dibawah ini
deb http://deb.debian.org/debian bullseye main
deb-src http://deb.debian.org/debian bullseye main

deb http://security.debian.org/debian-security bullseye-security main
deb-src http://security.debian.org/debian-security bullseye-security main

deb http://deb.debian.org/debian bullseye-updates main
deb-src http://deb.debian.org/debian bullseye-updates main

deb http://deb.debian.org/debian bullseye-backports main
deb-src http://deb.debian.org/debian bullseye-backports main
root@webserver-rehan:~# apt-get update

Menginstall GIT

root@webserver-rehan:~# apt install git -y

Menginstall Curl

root@webserver-rehan:~# apt install curl -y

Menginstall NodeJS

 root@webserver-rehan:~# apt-get install -y ca-certificates curl gnupg
root@webserver-rehan:~# mkdir -p /etc/apt/keyrings

root@webserver-rehan:~# curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
root@webserver-rehan:~# NODE_MAJOR=18

root@webserver-rehan:~# echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
root@webserver-rehan:~# apt update
root@webserver-rehan:~# apt-get install nodejs -y