Skip to content

Commit

Permalink
fix: make scripts standalone
Browse files Browse the repository at this point in the history
Add shebang. Add execution permission.
  • Loading branch information
rebornplusplus committed Feb 18, 2024
1 parent c5ea8db commit a8be08e
Show file tree
Hide file tree
Showing 17 changed files with 51 additions and 2 deletions.
2 changes: 2 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

set -eux

export DEBIAN_FRONTEND=noninteractive
Expand Down
2 changes: 2 additions & 0 deletions scripts/add_repo.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

set -eux

echo "Enabling universe repo.."
Expand Down
4 changes: 4 additions & 0 deletions scripts/add_users.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#!/bin/bash

set -eux

source vars.sh

echo "Creating admin account, $ADMIN_USER..."
Expand Down
2 changes: 2 additions & 0 deletions scripts/code.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

set -eux

echo "Installing VS Code ..."
Expand Down
2 changes: 2 additions & 0 deletions scripts/codeblocks.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

set -eux

# https://linuxhint.com/install-code-blocks-ubuntu/
Expand Down
4 changes: 4 additions & 0 deletions scripts/copy_admin_scripts.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#!/bin/bash

set -eux

source vars.sh

cd $ADMIN_SCRIPTS_DIR
Expand Down
4 changes: 4 additions & 0 deletions scripts/copy_dots.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#!/bin/bash

set -eux

source vars.sh

cd $DOTS_DIR
Expand Down
4 changes: 4 additions & 0 deletions scripts/dist_upgrade.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
#!/bin/bash

set -eux

apt update
apt -y dist-upgrade
2 changes: 2 additions & 0 deletions scripts/emacs.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

set -eux

echo "\nInstalling Emacs ...\n"
Expand Down
2 changes: 2 additions & 0 deletions scripts/geany.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

set -eux

echo "\nInstalling Geany ...\n"
Expand Down
4 changes: 4 additions & 0 deletions scripts/google_chrome.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#!/bin/bash

set -eux

echo "Installing Google Chrome.."

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
Expand Down
2 changes: 2 additions & 0 deletions scripts/openjdk17.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

set -eux

echo "\nInstalling OpenJDK 17 ...\n"
Expand Down
4 changes: 4 additions & 0 deletions scripts/openssh_server.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#!/bin/bash

set -eux

echo "Installing openssh-server..."

apt install -y openssh-server
2 changes: 2 additions & 0 deletions scripts/sublime.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

set -eux

# https://www.sublimetext.com/docs/linux_repositories.html#apt
Expand Down
4 changes: 2 additions & 2 deletions scripts/trim.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash

set -eux

# This script trims down the base Ubuntu 22.04 rootfs.
# It removes unnecessary (for our purposes) packages like
# thunderbird, libreoffice, rhythmbox, aisleriot etc.

set -eux

apt remove -y --purge \
aisleriot \
gnome-mahjongg \
Expand Down
2 changes: 2 additions & 0 deletions scripts/vim.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

set -eux

echo "\nInstalling Vim ...\n"
Expand Down
7 changes: 7 additions & 0 deletions vars.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#!/bin/bash

set -eux

DOTS_DIR="dots"
SCRIPTS_DIR="scripts"
ADMIN_SCRIPTS_DIR="adm"
Expand All @@ -10,3 +14,6 @@ TEAM_USER="contestant"
TEAM_PASSWORD='$1$92hYmWFk$qPeMP85ThFuzlKbdgh3cu0'
# encrypted with $(openssl passwd -1 PLAINTEXTPASSWORD)

MOCK_USER="mock"
MOCK_PASSWORD='$1$MzrwRNfh$km8LUveoj/rZZDZiEA8PB1'
# encrypted with $(openssl passwd -1 'PLAINTEXTPASSWORD')

0 comments on commit a8be08e

Please sign in to comment.