47
loading...
This website collects cookies to deliver better user experience
export VPC_CIDR="10.0.0.0/16"
$ ssh -i mykey.pem ubuntu@<My public IP>
$ uname -m
aarch64
$ sudo apt update ; sudo apt upgrade -y
$ sudo apt install gcc neofetch -y
$ curl -fsSL https://code-server.dev/install.sh | sh
$ code-server --link
$ git clone https://github.com/jasonrandrews/hello-arm.git
$ cd hello-arm/c-hello-world
$ gcc "-DARCH=\"`uname -a`\"" hello.c -o hello
$ ./hello
$ sudo DEBIAN_FRONTEND=noninteractive apt install xfce4 xfce4-terminal firefox -y
$ curl -fSL "https://www.nomachine.com/free/linux/64/deb" -o nomachine.deb
$ scp -i ~/mykey.pem nomachine_7.6.2_3_arm64.deb ubuntu@<public IP>:~/
$ sudo dpkg -i ./nomachine_7.6.2_3_arm64.deb
$ mkdir -p ~/.nx/config
$ cp ~/.ssh/authorized_keys ~/.nx/config/authorized.crt
$ sudo systemctl set-default multi-user
47