Usage Guide

Find answers to common questions about our services

Usage

What are the first steps after getting the service?

The first step is to update the system by running:

$
sudo apt update

This command will update the package list and ensure you have access to the latest versions of all packages.

Usage

How to install Node.js?

To install Node.js, run the following command:

$
sudo apt install -y nodejs npm && sudo npm install -g n && export N_PREFIX=$HOME/.local && sudo n lts

If the node version doesn't change after installation, try opening a new terminal. This command installs Node.js LTS and the npm package manager, along with `n` for version management.

To change the Node.js version, you can use `n`. For example, to install and switch to a specific version:

$
sudo n <version>

Replace `<version>` with the desired version number (e.g., `18`, `20`, `lts`).

To list installed versions and switch interactively, simply run:

$
sudo n
Usage

How to install Python3?

Install Python3 and pip with the command:

$
sudo apt install -y python3 python3-pip

This command installs Python3 and the pip package manager to manage Python packages.

Usage

How to install PHP?

To install PHP, use the command:

$
sudo apt install -y php

For web development, it's also recommended to install common PHP extensions with:

$
sudo apt install -y php-mysql php-curl php-json php-cgi
Usage

How to install Google Chrome?

To install Google Chrome, run the following command:

$
sudo apt install -y wget && wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add - && echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list && sudo apt update && sudo apt install -y google-chrome-stable

Google Chrome must be run in headless and no sandbox mode. Modify your script to use the following parameters:

$
google-chrome --headless --no-sandbox --disable-gpu
Usage

How to install Golang?

To install Golang, run the following command:

$
cd $HOME && ver=$(curl -s https://go.dev/VERSION?m=text | head -n 1 | sed 's/go//') && echo "Installing Go version $ver..." && wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz" && sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz" && rm "go$ver.linux-amd64.tar.gz" && echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> ~/.bash_profile && source ~/.bash_profile && go version

This command automatically detects the latest version of Golang, downloads, installs, sets up the PATH, and verifies the installation.

Usage

How to install Rust?

To install Rust, run the following command:

$
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh && source $HOME/.cargo/env && rustc --version

This command downloads and runs the Rust installer, sets up environment variables, and verifies the installation by displaying the installed Rust version.