Initial Server Setup (iss.sh)

edited April 2023 in General

Initial Server Setup (iss.sh) by Amadex.com


How to run?

wget https://www.amadex.com/iss.sh && chmod +x iss.sh && ./iss.sh

This Bash script simplifies and automates initial server setup tasks on your Linux machine. The script allows you to change the root password, hostname, timezone, and SSH port. It can also create swap space, disable IPv6, and install common packages like nano, htop, curl, screen, and git. Additionally, it provides an option to run the Yet-Another-Bench-Script (YABS) for benchmarking.

After executing this script, remember to reboot the system to apply changes.

Github: https://github.com/amaramadex/initial-server-setup/blob/main/iss.sh

Comments

  • This... is neat. I am sure the possibilities are endless.
    Thanks for sharing

    Thanked by (1)Amadex
  • You really should do some input checking in your script. I could say that I want timezone icecream and ssh port blue and the script would accept it. It would not have the desired effect when you reboot.

  • Nice...

    📱: Samsung Galaxy | 💻: Windows 11

  • thats a good starting point, next checkout Ansible... some learning curve but once you grasp it life will be different to the better inshallah :)

    Thanked by (2)Amadex Talistech
  • no roadmap? if you have difficulties I can help

    Fuck this 24/7 internet spew of trivia and celebrity bullshit.

  • edited April 2023

    Thanks to everyone who tested the script. This is the new schedule of things it does:

    1. Change root password
    2. Change hostname
    3. Change timezone
    4. Change SSH port
    5. Add swap space (vm.swappiness=10, vm.vfs_cache_pressure=50)
    6. Keep or Disable IPv6
    7. Install common packages (nano, htop, curl, screen, git)
    8. Run Yet-Another-Bench-Script (YABS) for benchmarking by @Mason
    9. Reboot

    ✌️

    curl -O https://www.amadex.com/iss.sh
    chmod +x iss.sh
    ./iss.sh
    

    Github: https://github.com/amaramadex/initial-server-setup

  • edited April 2023

    curl -O https://www.amadex.com/iss.sh
    chmod +x iss.sh
    ./iss.sh

    Why not making it one liner?

    📱: Samsung Galaxy | 💻: Windows 11

  • @febryanvaldo said:

    curl -O https://www.amadex.com/iss.sh
    chmod +x iss.sh
    ./iss.sh

    Why not making it one liner?

    Here you go.

    curl -O https://www.amadex.com/iss.sh && chmod +x iss.sh && ./iss.sh :smiley:

    Thanked by (1)Amadex

    For domain registrations, create an account at Dynadot (ref) and spend $9.99 within 48 hours to receive $5 DynaDollars!
    Looking for cost-effective Managed/Anycast/DDoS-Protected/Geo DNS Services? Try ClouDNS (aff).

  • edited April 2023

    @TheDP said: curl -O https://www.amadex.com/iss.sh && chmod +x iss.sh && ./iss.sh

    Aye sir. I knew someone will wrote this =)

    📱: Samsung Galaxy | 💻: Windows 11

  • Great script. Thank you for this!

    VPS providers to check out:

  • @Amadex said:
    Thanks to everyone who tested the script. This is the new schedule of things it does:

    1. Change root password
    2. Change hostname
    3. Change timezone
    4. Change SSH port
    5. Add swap space (vm.swappiness=10, vm.vfs_cache_pressure=50)
    6. Keep or Disable IPv6
    7. Install common packages (nano, htop, curl, screen, git)
    8. Run Yet-Another-Bench-Script (YABS) for benchmarking by @Mason
    9. Reboot

    ✌️

    > curl -O https://www.amadex.com/iss.sh
    > chmod +x iss.sh
    > ./iss.sh
    > 

    Disable SSH root login pls

  • And change to wget instead of curl as some default template not have curl pre-installed

    Thanked by (1)Amadex
  • Updated the first post.

  • @Amadex said: After executing this script, remember to reboot the system to apply changes.

    Why not have it prompt the question/options at the end?

    For domain registrations, create an account at Dynadot (ref) and spend $9.99 within 48 hours to receive $5 DynaDollars!
    Looking for cost-effective Managed/Anycast/DDoS-Protected/Geo DNS Services? Try ClouDNS (aff).

  • edited April 2023

    @TheDP said:

    @Amadex said: After executing this script, remember to reboot the system to apply changes.

    Why not have it prompt the question/options at the end?

    Hm, on slower VMs the YABS gets slow, so if the connection drops (or you do CTRL C) you can do your own reboot.

  • @Amadex said:

    @TheDP said:

    @Amadex said: After executing this script, remember to reboot the system to apply changes.

    Why not have it prompt the question/options at the end?

    Hm, on slower VMs the YABS gets slow, so if the connection drops (or you do CTRL C) you can do your own reboot.

    But YABS isn't mandatory, it's optional, so it might be worth adding the reboot question/option at the end.

    Just a suggestion.

    Thanked by (1)Amadex

    For domain registrations, create an account at Dynadot (ref) and spend $9.99 within 48 hours to receive $5 DynaDollars!
    Looking for cost-effective Managed/Anycast/DDoS-Protected/Geo DNS Services? Try ClouDNS (aff).

Sign In or Register to comment.