How to setup your Linux Server and install nodejs, python, ffmpeg and java. Working good for Discord Bot hosting and other hostings!
Those commands are all needed to install and setup a Debian (Linux) Server for Bot hosting, and general stuff like everything!
1. Install sudo
$
apt-get install sudo
2. Install all needed dependences
$
sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
1. Update all pkgs
$
sudo apt update
2. Install Curl
$
sudo apt install -y build-essential curl
3. Load the Nodejs source
$
curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
4. Install nodejs globally
$
sudo apt install -y nodejs
1. Load the YARN source
$
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
2. DOWNLOAD
$
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
3. Update all pkgs
$
sudo apt update
4. Install yarn globally
$
sudo apt install -y yarn
$
sudo apt-get install python-pip
1. Get the Source
$
curl -O https://www.python.org/ftp/python/3.9.1/Python-3.9.1.tar.xz
2. Extract the tar file
$
tar -xf Python-3.9.1.tar.xz
3. Go to the new File
$
cd Python-3.9.1
4. Configure the setup
$
./configure --enable-optimizations
5. And create it
$
make -j 4
6. Install python from the setup
$
sudo make altinstall
7. Verify the Python installation
$
python3.9 --version
1. Update all pkgs
$
sudo apt update
2. Install ffmpeg
$
sudo apt install ffmpeg
3. Verify the ffmpeg installation
$
ffmpeg -version
-
$
echo "deb http://ppa.launchpad.net/linuxuprising/java/ubuntu bionic main" | sudo tee/etc/apt/sources.list.d/linuxuprising-java.list
-
$
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 73C3DB2A
-
$
sudo apt update
-
$
sudo apt install oracle-java11-set-default
-
$
sudo apt install openjdk-11-jdk
$
curl -O https://download.java.net/java/GA/jdk11/9/GPL/openjdk-11.0.2_linux-x64_bin.tar.gz
$
tar zxvf openjdk-11.0.2_linux-x64_bin.tar.gz
$
sudo mv jdk-11* /usr/local/
$
sudo vim /etc/profile.d/jdk.sh
-
export JAVA_HOME=/usr/local/jdk-11.0.2
export PATH=$PATH:$JAVA_HOME/bin
-
$
java -version
You can always Support me by inviting one of my own Discord Bots
BITTMAX Quality is their solution. Bittmax is our first and probably most important sponsor!
What they are offering:
Quality LXC & KVM (Root) Server Minecraft Hosting, as well as BungeeCord Network Hosting support Cheap and fast Domains WEBHOSTING DISCORD, TEAMSPEAK, Setups / Music Bots GAME SERVER, Rust, Gary's Mod, ..
Discord Server: https://discord.gg/GgjJZCyYKD
Website: https://bittmax.de/
GET 5% OFF EVERYTHING FOR EVER!
Code: x10
MC-Host24.de is selling the Best Digital Hosting Services ever! Like For games..
What they are offering:
Quality LXC & KVM (Root) Server WORLDS BEST Minecraft Hosting, Cheap and fast Domains WEBHOSTING DISCORD, TEAMSPEAK, Setups / Music Bots GAME SERVER, Rust, Gary's Mod, ..
Discord Server: https://discord.com/invite/4dGuGXK4A4
Website: mc-host24.de