{"id":13545738,"url":"https://github.com/jasonheecs/ubuntu-server-setup","last_synced_at":"2025-04-04T10:07:53.888Z","repository":{"id":42023337,"uuid":"74905239","full_name":"jasonheecs/ubuntu-server-setup","owner":"jasonheecs","description":"A setup script for Ubuntu servers","archived":false,"fork":false,"pushed_at":"2024-02-04T19:38:12.000Z","size":62,"stargazers_count":587,"open_issues_count":3,"forks_count":252,"subscribers_count":27,"default_branch":"master","last_synced_at":"2025-03-28T09:06:56.010Z","etag":null,"topics":["automate","bash","script","shell-script","ubuntu","ubuntu-server"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jasonheecs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-27T18:08:55.000Z","updated_at":"2025-03-27T00:11:42.000Z","dependencies_parsed_at":"2024-11-13T04:02:58.546Z","dependency_job_id":"0c7ae573-b384-445c-8b76-bf5b85a6765d","html_url":"https://github.com/jasonheecs/ubuntu-server-setup","commit_stats":{"total_commits":32,"total_committers":1,"mean_commits":32.0,"dds":0.0,"last_synced_commit":"6fc75796a3b59ad937e19d4e4f0f29ca0abb0e23"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonheecs%2Fubuntu-server-setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonheecs%2Fubuntu-server-setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonheecs%2Fubuntu-server-setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonheecs%2Fubuntu-server-setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jasonheecs","download_url":"https://codeload.github.com/jasonheecs/ubuntu-server-setup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247157275,"owners_count":20893219,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automate","bash","script","shell-script","ubuntu","ubuntu-server"],"created_at":"2024-08-01T11:01:12.935Z","updated_at":"2025-04-04T10:07:53.860Z","avatar_url":"https://github.com/jasonheecs.png","language":"Shell","funding_links":[],"categories":["Shell","HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"# Bash setup script for Ubuntu servers\n[![Build Status](https://travis-ci.org/jasonheecs/ubuntu-server-setup.svg?branch=master)](https://travis-ci.org/jasonheecs/ubuntu-server-setup)\n\nThis is a setup script to automate the setup and provisioning of Ubuntu servers. It does the following:\n* Adds or updates a user account with sudo access\n* Adds a public ssh key for the new user account\n* Disables password authentication to the server\n* Deny root login to the server\n* Setup Uncomplicated Firewall\n* Create Swap file based on machine's installed memory\n* Setup the timezone for the server (Default to \"Asia/Singapore\")\n* Install Network Time Protocol\n\n# Installation\nSSH into your server and install git if it is not installed:\n```bash\nsudo apt-get update\nsudo apt-get install git\n```\n\nClone this repository into your home directory:\n```bash\ncd ~\ngit clone https://github.com/jasonheecs/ubuntu-server-setup.git\n```\n\nRun the setup script\n```bash\ncd ubuntu-server-setup\nbash setup.sh\n```\n\n# Setup prompts\nWhen the setup script is run, you will be prompted to enter the username of the new user account. \n\nFollowing that, you will then be prompted to add a public ssh key (which should be from your local machine) for the new account. To generate an ssh key from your local machine:\n```bash\nssh-keygen -t ed25519 -a 200 -C \"user@server\" -f ~/.ssh/user_server_ed25519\ncat ~/.ssh/user_server_ed25519.pub\n```\n\nFinally, you will be prompted to specify a [timezone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) for the server. It will be set to 'Asia/Singapore' if you do not specify a value.\n\n# Supported versions\nThis setup script has been tested against Ubuntu 14.04, Ubuntu 16.04, Ubuntu 18.04, Ubuntu 20.04 and Ubuntu 22.04.\n\n# Running tests\nTests are run against a set of Vagrant VMs. To run the tests, run the following in the project's directory:  \n`./tests/tests.sh`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonheecs%2Fubuntu-server-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjasonheecs%2Fubuntu-server-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonheecs%2Fubuntu-server-setup/lists"}