Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save muhammad-naderi/5af97762a8b6a87534803c93d535675a to your computer and use it in GitHub Desktop.

Select an option

Save muhammad-naderi/5af97762a8b6a87534803c93d535675a to your computer and use it in GitHub Desktop.

For Ubuntu 20.04

to change linux source repos

sed -i 's/http:\/\/[a-zA-Z0-9]*.[a-zA-Z0-9]*.*.com/http:\/\/ir.archive.ubuntu.com/g' /etc/apt/sources.list

or

sed -i 's/http:\/\/[a-zA-Z0-9]*.[a-zA-Z0-9]*.*.com/http:\/\/mirror.arvancloud.ir/g' /etc/apt/sources.list
apt update -y
apt upgrade -y

to set Ntp

sudo nano /etc/systemd/timesyncd.conf
[Time]
NTP=ntp.iranet.ir
FallbackNTP=ir.pool.ntp.org
sudo systemctl restart systemd-timesyncd
systemctl status systemd-timesyncd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment