How to install ETCMC Node on Headless Debian

ETCMCDebian

Install ETCMC Client on Debian Headless

  • Difficulty Level: Hard
  • Hardware Requirements / Energy Consumption: Lowest

Warning: This guide is intended for users with a higher level of technical expertise. Proceed with caution, as it involves tasks that may require advanced knowledge of Linux systems and command-line operations. If you are unfamiliar with these concepts, it is recommended to seek assistance from someone experienced or consult additional resources before proceeding.

Step 1: Download Debian

  1. Navigate to the Debian download page here
  2. Click on the link to download the Debian ISO file ( debian-12.9.0-amd64-DVD-1.iso ).
  3. Once the download is complete, proceed to the next step.

Step 2: Burn Debian ISO to USB

  1. Insert a USB stick into your computer's USB port.
  2. Download and install Rufus or a similar tool for burning ISO files to USB.
  3. Open Rufus and select your USB stick from the device list.
  4. Click on the "Select" button and choose the Debian ISO file you downloaded earlier.
  5. Ensure that the partition scheme is set to "MBR" and the file system to "FAT32".
  6. Click on "Start" to begin burning the Debian ISO to the USB stick.
  7. Once the process is complete, you now have a bootable Debian USB drive ready for installation. Your Debian installation media is now prepared and ready for use. Download Link: http://debian.inf.tu-dresden.de/debian-cd/12.5.0/amd64/iso-dvd/debian-12.5.0-amd64-DVD-1.iso

Step 3: Choose Graphical Install

  1. Boot your computer from the Debian USB drive.
  2. When prompted, select "Graphical Install" by pressing the Enter key.

Bild2

Step 4: Select Language and Keyboard Settings

Bild3

Bild4

Bild5

Step 5: Configure Network, Set Hostname, Set Root Password, and Create User

Bild6

Bild7

Bild8

Bild9

Bild10

Bild11

Bild12

Step 6: Select your Timezone

Bild13

Step 7: Partition Disk

  1. Choose "Guided - use entire disk" option.
  2. Select your SSD from the list.
  3. Choose "All files in one partition" option.
  4. Confirm by selecting "Finish partitioning and write changes to disk".
  5. When asked to write changes to disk, select "Yes".

Bild14

Bild15

Bild16

Bild17

Bild18

Step 8: Configure Package Manager

  1. Choose "No" for scanning extra installation media.
  2. Select "Yes" to use a network mirror.
  3. Choose the United States as the mirror country.
  4. For Debian archive mirror, select "deb.debian.org".
  5. Leave HTTP proxy blank.
  6. Opt out of the package usage survey by selecting "No".

Bild19

Bild20

Bild21

Bild22

Bild23

Bild24

Step 9: Select Software

  1. Choose "Debian headless" for minimal hardware requirements.
  2. Tick the box next to "SSH Server" to enable remote access.
  3. Tick the box next to "Standard system utilities" for essential system tools.

Bild25

Step 10: Install GRUB Bootloader

  1. Choose "Yes" for installing GRUB on the primary drive.
  2. Select "/dev/sda" as the primary drive.
  3. Proceed by clicking "Continue" to reboot.

Bild26

Bild27

Bild28

Step 11: Login and Deactivate DVD from Sources List

  1. Log in with the root account using the password set during installation.
  2. Open the sources list file by typing: nano /etc/apt/sources.list
  3. Locate the first line in the file, which corresponds to the DVD mirror.
  4. Add a "#" at the beginning of the line to comment it out and deactivate it.
  5. Save the changes by pressing Ctrl + O, then press Enter.
  6. Exit the nano editor by pressing Ctrl + X. By deactivating the DVD mirror in the sources list, you ensure that the system does not attempt to use it for package installation or updates.

Bild29

Bild30

Step 12: Download and Extract Zip File, Set Permissions, and Open Directory

  1. Move to home directory by typing: cd /home
  2. Create a folder named ETCMC: mkdir ETCMC
  3. Download the zip file from the provided link using wget: wget https://github.com/Nowalski/ETCMC_Software/releases/download/Setup%2FWindows/ETCMC_Linux.zip
  4. Download and install Unzip with command: apt install zip unzip
  5. Extract the zip file contents into the current directory: unzip ETCMC_Linux.zip -d ETCMC
  6. Set permissions for the folder and files inside to 777: chmod -R 777 ETCMC
  7. Open the folder to access its contents: cd ETCMC

Bild111

Bild112

Step 13: Run Installation Script

  1. Type: ./install_script.sh
  2. Wait for „Installation complete.“ By executing this command, the installation script (install_script.sh) will initiate, installing all required packages automatically.

If you encounter an error like "cannot execute: required file not found" try this:

  1. Type: apt-get install dos2unix
  2. Type: dos2unix install_script.sh
  3. Run ./install_script.sh again

Bild113

Step 14: Find IP Address

  1. Run: ip address
  2. Look under your "ens" network card.
  3. Find the IP address listed under "inet".

Bild114

Step 15: Run Software and Open Web Interface

  1. Type: python3 Linux.py start --port 5000
  2. Access the web interface on a different computer in your home network using your IP address followed by ":5000"
  3. Default Login is: admin // password

Bild115

Bild116

Step 16: Add Systemd Autostart on Restart

  1. Open Text Editor Nano and add a file, type: nano /etc/systemd/system/etcmc.service
  2. Add the following text:
    [Unit]
    Description=ETCMC
    After=network.target
    
    [Service]
    User=root
    Group=root
    ExecStartPre=/bin/sleep 20
    ExecStart=/usr/bin/python3 /home/ETCMC/Linux.py start --port 5000
    WorkingDirectory=/home/ETCMC
    StandardOutput=append:/var/log/etcmcscript.log
    StandardError=append:/var/log/etcmcscript.log
    Environment=PATH=/usr/local/bin:/usr/bin:/bin
    RemainAfterExit=true
    
    [Install]
    WantedBy=multi-user.target
    
  3. Save and Exit the Editor
  4. Add the File to Autostart by this commands: systemctl daemon-reload && systemctl enable etcmc.service

Bild117

Step 17 Optional: Backup Balance file every 6h
If you're experiencing frequent power cuts and are worried about balance loss, here's a simple step to back up your balance file every 6 hours using a cron job.

  1. Open Cronjob with this command: crontab -e
  2. Add the following line at the end of the crontab file:
     0 */6 * * * cp /home/ETCMC/etcpow_balance_backup.txt.enc.bak /home/

Congratulations! You've completed the installation process.

If you have any suggestions for improvements, please let me know - ETCMC - Exodus

ETCMCLogo

Next Post Previous Post