Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide headless installation option for environments such as WSL #72

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions install-headless.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Be fancy
source ~/.local/share/omakub/ascii.sh

# Ensure ~/Downloads exists
mkdir -p ~/Downloads

# Needed for all installers
sudo apt update -y
sudo apt install -y curl git jq unzip

# Ensure computer doesn't go to sleep while installing
#gsettings set org.gnome.desktop.session idle-delay 0

# Run installers
for script in ~/.local/share/omakub/install/cfg-*.sh; do source $script; done
for script in ~/.local/share/omakub/install/dev-*.sh; do source $script; done
for script in ~/.local/share/omakub/install/app*-*.sh; do source $script; done
#for script in ~/.local/share/omakub/install/gui-*.sh; do source $script; done
for script in ~/.local/share/omakub/install/set-cfg-*.sh; do source $script; done
#for script in ~/.local/share/omakub/install/set-gui-*.sh; do source $script; done

# Revert to normal idle settings
#gsettings set org.gnome.desktop.session idle-delay 300

# Upgrade everything that might ask for a reboot last
sudo apt upgrade -y

# Reboot to pickup changes
gum confirm "Ready to logout for all settings to take effect?" && exit
#gum confirm "Ready to logout for all settings to take effect?" && gnome-session-quit --logout --no-prompt
File renamed without changes.
1 change: 0 additions & 1 deletion install/a-shell.sh → install/cfg-shell.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[ -f "~/.bashrc" ] && mv ~/.bashrc ~/.bashrc.bak
cp ~/.local/share/omakub/configs/bashrc ~/.bashrc
source ~/.local/share/omakub/defaults/bash/shell

[ -f "~/.inputrc" ] && mv ~/.inputrc ~/.inputrc.bak
cp ~/.local/share/omakub/configs/inputrc ~/.inputrc
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions install/set-cfg-shell.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
source ~/.local/share/omakub/defaults/bash/shell
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading