Skip to content

Instantly share code, notes, and snippets.

@surjikal
Last active September 24, 2017 20:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save surjikal/ff76e2aceb6642a5173c27750e905eb0 to your computer and use it in GitHub Desktop.
Save surjikal/ff76e2aceb6642a5173c27750e905eb0 to your computer and use it in GitHub Desktop.
Gentoo IOTA Node Install

Gentoo IOTA Node Installation

These steps were run on a clean Gentoo image on Linode

Update the system

# Update package repo
emaint -a sync

# Update portage
emerge --oneshot portage

# Update packages
emerge -uDU --keep-going --with-bdeps=y @world

# Update configs (hit 'u' on every entry)
dispatch-conf

Installing packages

# Install sudo
emerge --ask app-admin/sudo
echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/00-wheel

# Install JDK
# Install UFW

Configure SSHD

groupadd ssh
cat >> /etc/ssh/sshd_config

PermitRootLogin no
PasswordAuthentication no
AllowGroups ssh

Init user

USERNAME=<username>

useradd -m -G users,wheel,ssh,docker -s /bin/bash $USERNAME

# Find your public key and paste it
cat > /home/$USERNAME/.ssh/authorized_keys
chmod 644 /home/$USERNAME/.ssh/authorized_keys

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment