DEV Community

Jack Andrews
Jack Andrews

Posted on

5 3

Linux Post install Script

Hey Guys,

I recently wrote a small script to automate the post install section of a server set up. It did okay on r/usefulscripts so i thought i'd share here. If you're like me and break stuff all the time, saving time by not having type out all the commands when you are setting up your new machine up post install.

https://www.reddit.com/r/usefulscripts/comments/f08c71/basic_linux_set_up_scripts/fgw97o8/?context=3

So after a few positive comments and a bits of feedback i have since worked on the post install script (new name) rather than calling it a set up script.

Combining a few of them into one big one, whilst also filling out the features a bit more, looking back the first script was a bit bare.

The new scripts include :

  • speedtest-cli
  • Fail2Ban config
  • Automatic security updates
  • SSH disable root login
  • SSH FTP server config
  • Optional install of Wireguard VPN server -
  • Optional install for docker with portainer management on port 9000
  • A message of the day system stats shown on login
  • System Clean up after the install

Coming Next:

  • Notification / Progress system credit: u/discogravy

https://github.com/jwandrews99/Linux-Post-Install

Any feedback is appreciated, if you have an ideas please let me know and i can potentially make them optional installs

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

AWS GenAI LIVE!

GenAI LIVE! is a dynamic live-streamed show exploring how AWS and our partners are helping organizations unlock real value with generative AI.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️