There are three main steps:
Open an Alchemy endpoint.
Activate the cloud VPS for the first time, around $21.5 initially, and then $12.5 per month thereafter.
Configure the node/VPS.
For those who don't have an account yet, you can create one at https://alchemy.com/?r=TgwODk1MjUxMDYxM
Once you already have an account, log in, then create an account, select Ethereum - Ethereum Mainnet, and name it 'starknet'.
After that, click on 'API Key' and save it securely (keep it confidential).
Use Contabo
Register for an account first before proceeding with the purchase. Click the 'Sign Up' button in the upper right corner.
If you haven't registered before making a purchase, you'll have to create an account later, which can be a bit confusing.
Choose Cloud VPS M > 1m for now, then proceed to pay monthly.
Leave other settings as default as shown in the image.
This section also involves setting the VPS password. Keep a secure record of this; it'll be referred to as '[VPS password].'
Server location: Germany Storage: 400GB Operating system: Ubuntu 20.04
Complete the payment and order, then wait for Contabo to configure the server within 3 hours at most.
Once Contabo finishes setting up, log in and click on 'Your Service.' You should see the purchased VPS. If not immediately visible, wait for up to 3 hours (sometimes just 1 hour).
Great, if you've noted that down, you're all set! Moving forward, the IP begins with 173.xxx.xxx.xx. Let's refer to it as '[IP 173]' from now on.
For Mac, you can use the Terminal app that comes with your machine.
As for Windows, follow a similar process but use the Putty app instead.
Open the terminal and type:
ssh root@[ip173]
// Replace [ip173] with the IP address from Contabo
Then enter the [VPS password] you noted down from step 2.
Now, we've successfully accessed our VPS. Congratulations!
For those using Putty on Windows:
Open the configuration and enter the IP address in this section instead. Otherwise, the steps remain the same as above.
SSH access to the VPS is successful. Next, let's configure the node.
Then, copy the code below and replace the alchemy URL with the one copied from step 1.
ALCHEMY=https://eth-mainnet.g.alchemy.com/v2/xxxxxxxxxxxxxxxx
echo 'export ALCHEMY='$ALCHEMY >> $HOME/.bash_profile
then use the code below
wget -O starknet.sh https://api.nodes.guru/starknet.sh && chmod +x starknet.sh &&./starknet.sh
You will see this. Installation process might take a while.
When the installation is complete, it should show 'installed and works!
To check if the node is running smoothly, type:
service starknetd status