mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.0 KiB
38 lines
1.0 KiB
5 years ago
|
#!/usr/bin/env bash
|
||
6 years ago
|
|
||
|
# Install VSCode
|
||
|
|
||
5 years ago
|
script_dir="$(cd -P "$(dirname "$BASH_SOURCE")" && pwd)"
|
||
|
cd $script_dir
|
||
6 years ago
|
. set.sh
|
||
|
|
||
5 years ago
|
wget https://github.com/VSCodium/vscodium/releases/download/1.41.1/codium_1.41.1-1576787344_amd64.deb
|
||
5 years ago
|
dpkg -i codium_1.41.1-1576787344_amd64.deb
|
||
|
rm codium_1.41.1-1576787344_amd64.deb
|
||
6 years ago
|
|
||
5 years ago
|
ln -s /usr/bin/codium /usr/local/bin/code
|
||
5 years ago
|
|
||
6 years ago
|
# Set-up all users
|
||
5 years ago
|
for dir in $(ls -1d /home/* 2>/dev/null ||:)
|
||
6 years ago
|
do
|
||
6 years ago
|
# Disable most of the telemetry and auto-updates
|
||
5 years ago
|
mkdir -p $dir/.config/VSCodium/User
|
||
|
cat <<-'EOF'> $dir/.config/VSCodium/User/settings.json
|
||
6 years ago
|
{
|
||
|
"telemetry.enableCrashReporter": false,
|
||
|
"update.enableWindowsBackgroundUpdates": false,
|
||
|
"update.mode": "none",
|
||
|
"update.showReleaseNotes": false,
|
||
|
"extensions.autoCheckUpdates": false,
|
||
|
"extensions.autoUpdate": false,
|
||
|
"workbench.enableExperiments": false,
|
||
|
"workbench.settings.enableNaturalLanguageSearch": false,
|
||
|
"npm.fetchOnlinePackageInfo": false
|
||
|
}
|
||
|
EOF
|
||
|
|
||
|
# Fix rights
|
||
5 years ago
|
usr=$(echo "$dir" | rev | cut -d/ -f1 | rev)
|
||
|
chown -R $usr:$usr $dir ||:
|
||
6 years ago
|
done
|