Skip to content

pspdada/ubuntu-initializer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Initial setup script for Ubuntu

This is a setup script to automate the setup and provisioning of Ubuntu servers. It does the following:

  • Change default repository to Tsinghua Ubuntu Mirror
  • Setup the timezone for the server
  • Update and upgrade the packages on Ubuntu
  • Install some basic packages

Installation

SSH into your server and install git if it is not installed:

sudo apt-get update
sudo apt-get install git

Clone this repository into your home directory:

cd ~
git clone https://github.com/pspdada/ubuntu-initializer.git

Run the setup script

cd ubuntu-initializer
./setup.sh

Different Line Endings

Windows/MS-DOS text files use a pair of characters, carriage return (CR or \r) and line feed (LF or \n), as their line endings, whereas Unix text files use only the line feed (LF) character. Therefore, for files created on a Windows system that have been copied to a Linux system for some reason, the format needs to be converted. You can use the following command:

dos2unix ./setup.sh

For reference: https://github.com/koalaman/shellcheck/wiki/SC1017

Supported versions

This setup script is designed for Ubuntu 24.04.

This setup script won't work on the version before Ubuntu 24.04 since before Ubuntu 24.04, the software source configuration file for Ubuntu used the traditional One-Line-Style, located at /etc/apt/sources.list; starting from Ubuntu 24.04, the software source configuration file changed to the DEB822 format, located at /etc/apt/sources.list.d/ubuntu.sources.

Acknowledgments

The .vimrc file was copied from https://github.com/missing-semester/missing-semester.

About

The initializer of ubuntu 24.04

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published