Compare commits
4 Commits
main
...
3f71189bf1
| Author | SHA1 | Date | |
|---|---|---|---|
| 3f71189bf1 | |||
| 2bf85de679 | |||
| bf35bf65c2 | |||
| f3bb166493 |
@@ -0,0 +1,9 @@
|
|||||||
|
# misebuntu
|
||||||
|
Turn a fresh Ubuntu installation into a fully configured desktop by running a single command.
|
||||||
|
misebuntu is what I prefer Ubuntu to be.
|
||||||
|
It is a play in on the term *mise en place* and Ubuntu.
|
||||||
|
|
||||||
|
Getting starting is simple - just run:
|
||||||
|
```bash
|
||||||
|
wget -qO- https://git.cbo.dk/rasmus/setup-ubuntu/raw/branch/v0.1/installer.sh | bash
|
||||||
|
```
|
||||||
|
|||||||
23
install.sh
Normal file
23
install.sh
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# Exit immediately if a command exits with a non-zero status
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Needed for all installers
|
||||||
|
sudo apt update -y
|
||||||
|
sudo apt install -y curl git unzip
|
||||||
|
|
||||||
|
# Ensure computer doesn't go to sleep or lock while installing
|
||||||
|
gsettings set org.gnome.desktop.screensaver lock-enabled false
|
||||||
|
gsettings set org.gnome.desktop.session idle-delay 0
|
||||||
|
|
||||||
|
# Run installers
|
||||||
|
for script in ~/.local/share/mise-en-place/install/*.sh; do source $script; done
|
||||||
|
|
||||||
|
# Upgrade everything that might ask for a reboot last
|
||||||
|
sudo apt upgrade -y
|
||||||
|
|
||||||
|
# Revert to normal idle and lock settings
|
||||||
|
gsettings set org.gnome.desktop.screensaver lock-enabled true
|
||||||
|
gsettings set org.gnome.desktop.session idle-delay 300
|
||||||
|
|
||||||
|
# Logout to pickup changes
|
||||||
|
#gum confirm "Ready to logout for all settings to take effect?" && gnome-session-quit --logout --no-prompt
|
||||||
2
install/app-flameshot.sh
Normal file
2
install/app-flameshot.sh
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# Flameshot is a nice step-up over the default Gnome screenshot tool
|
||||||
|
sudo apt install -y flameshot
|
||||||
7
install/app-lazydocker.sh
Normal file
7
install/app-lazydocker.sh
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
cd ~/Downloads
|
||||||
|
LAZYDOCKER_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazydocker/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
|
||||||
|
curl -sLo lazydocker.tar.gz "https://github.com/jesseduffield/lazydocker/releases/latest/download/lazydocker_${LAZYDOCKER_VERSION}_Linux_x86_64.tar.gz"
|
||||||
|
tar -xf lazydocker.tar.gz lazydocker
|
||||||
|
sudo install lazydocker /usr/local/bin
|
||||||
|
rm lazydocker.tar.gz lazydocker
|
||||||
|
cd -
|
||||||
7
install/app-lazygit.sh
Normal file
7
install/app-lazygit.sh
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
cd ~/Downloads
|
||||||
|
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
|
||||||
|
curl -sLo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
|
||||||
|
tar -xf lazygit.tar.gz lazygit
|
||||||
|
sudo install lazygit /usr/local/bin
|
||||||
|
rm lazygit.tar.gz lazygit
|
||||||
|
cd -
|
||||||
6
install/app-localsend(1).sh
Normal file
6
install/app-localsend(1).sh
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
cd ~/Downloads
|
||||||
|
LOCALSEND_VERSION=$(curl -s "https://api.github.com/repos/localsend/localsend/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
|
||||||
|
wget -O localsend.deb "https://github.com/localsend/localsend/releases/latest/download/LocalSend-${LOCALSEND_VERSION}-linux-x86-64.deb"
|
||||||
|
sudo apt install -y ./localsend.deb
|
||||||
|
rm localsend.deb
|
||||||
|
cd -
|
||||||
6
install/app-localsend.sh
Normal file
6
install/app-localsend.sh
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
cd ~/Downloads
|
||||||
|
LOCALSEND_VERSION=$(curl -s "https://api.github.com/repos/localsend/localsend/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
|
||||||
|
wget -O localsend.deb "https://github.com/localsend/localsend/releases/latest/download/LocalSend-${LOCALSEND_VERSION}-linux-x86-64.deb"
|
||||||
|
sudo apt install -y ./localsend.deb
|
||||||
|
rm localsend.deb
|
||||||
|
cd -
|
||||||
9
install/app-typora.sh
Normal file
9
install/app-typora.sh
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
wget -qO - https://typora.io/linux/public-key.asc | sudo tee /etc/apt/trusted.gpg.d/typora.asc
|
||||||
|
sudo add-apt-repository -y 'deb https://typora.io/linux ./'
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install -y typora
|
||||||
|
|
||||||
|
# Add iA Typora theme
|
||||||
|
mkdir -p ~/.config/Typora/themes
|
||||||
|
cp ~/.local/share/omakub/themes/typora/ia_typora.css ~/.config/Typora/themes/
|
||||||
|
cp ~/.local/share/omakub/themes/typora/ia_typora_night.css ~/.config/Typora/themes/
|
||||||
1
install/app-vlc.sh
Normal file
1
install/app-vlc.sh
Normal file
@@ -0,0 +1 @@
|
|||||||
|
sudo apt install -y vlc
|
||||||
14
install/app-vscode.sh
Normal file
14
install/app-vscode.sh
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
cd ~/Downloads
|
||||||
|
wget -O code.deb 'https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64'
|
||||||
|
sudo apt install -y ./code.deb
|
||||||
|
rm code.deb
|
||||||
|
cd -
|
||||||
|
|
||||||
|
mkdir -p ~/.config/Code/User
|
||||||
|
cp ~/.local/share/omakub/configs/vscode.json ~/.config/Code/User/settings.json
|
||||||
|
|
||||||
|
# Install default supported themes
|
||||||
|
code --install-extension enkia.tokyo-night
|
||||||
|
|
||||||
|
# Install default language extensions
|
||||||
|
code --install-extension golang.go
|
||||||
15
install/docker.sh
Normal file
15
install/docker.sh
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
sudo apt install -y docker.io docker-buildx
|
||||||
|
sudo usermod -aG docker ${USER}
|
||||||
|
|
||||||
|
# Limit log size to avoid running out of disk
|
||||||
|
echo '{"log-driver":"json-file","log-opts":{"max-size":"10m","max-file":"5"}}' | sudo tee /etc/docker/daemon.json
|
||||||
|
|
||||||
|
DOCKER_COMPOSE_VERSION="2.27.0"
|
||||||
|
DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker}
|
||||||
|
mkdir -p $DOCKER_CONFIG/cli-plugins
|
||||||
|
curl -sSL https://github.com/docker/compose/releases/download/v$DOCKER_COMPOSE_VERSION/docker-compose-linux-x86_64 -o $DOCKER_CONFIG/cli-plugins/docker-compose
|
||||||
|
chmod +x $DOCKER_CONFIG/cli-plugins/docker-compose
|
||||||
|
|
||||||
|
sudo docker create --restart unless-stopped -p "127.0.0.1:3306:3306" --name=mysql8 -e MYSQL_ROOT_PASSWORD= -e MYSQL_ALLOW_EMPTY_PASSWORD=true mysql:8.4
|
||||||
|
sudo docker create --restart unless-stopped -p "127.0.0.1:6379:6379" --name=redis redis:7
|
||||||
|
sudo docker create --restart unless-stopped -p "127.0.0.1:5432:5432" --name=postgres16 -e POSTGRES_HOST_AUTH_METHOD=trust postgres:16
|
||||||
33
install/fonts.sh
Normal file
33
install/fonts.sh
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
mkdir -p ~/.local/share/fonts
|
||||||
|
|
||||||
|
cd ~/Downloads
|
||||||
|
wget https://github.com/ryanoasis/nerd-fonts/releases/latest/download/CascadiaMono.zip
|
||||||
|
unzip CascadiaMono.zip -d CascadiaFont
|
||||||
|
cp CascadiaFont/*.ttf ~/.local/share/fonts
|
||||||
|
rm -rf CascadiaMono.zip CascadiaFont
|
||||||
|
|
||||||
|
wget https://github.com/ryanoasis/nerd-fonts/releases/latest/download/FiraMono.zip
|
||||||
|
unzip FiraMono.zip -d FiraMono
|
||||||
|
cp FiraMono/*.otf ~/.local/share/fonts
|
||||||
|
rm -rf FiraMono.zip FiraMono
|
||||||
|
|
||||||
|
wget https://github.com/ryanoasis/nerd-fonts/releases/latest/download/JetBrainsMono.zip
|
||||||
|
unzip JetBrainsMono.zip -d JetBrainsMono
|
||||||
|
cp JetBrainsMono/*.ttf ~/.local/share/fonts
|
||||||
|
rm -rf JetBrainsMono.zip JetBrainsMono
|
||||||
|
|
||||||
|
wget https://github.com/ryanoasis/nerd-fonts/releases/latest/download/Meslo.zip
|
||||||
|
unzip Meslo.zip -d Meslo
|
||||||
|
cp Meslo/*.ttf ~/.local/share/fonts
|
||||||
|
rm -rf Meslo.zip Meslo
|
||||||
|
|
||||||
|
wget https://github.com/iaolo/iA-Fonts/archive/refs/heads/master.zip
|
||||||
|
unzip master.zip -d iaFonts
|
||||||
|
cp iaFonts/iA-Fonts-master/iA\ Writer\ Mono/Static/iAWriterMonoS-*.ttf ~/.local/share/fonts
|
||||||
|
rm -rf master.zip iaFonts
|
||||||
|
|
||||||
|
fc-cache
|
||||||
|
cd -
|
||||||
|
|
||||||
|
# Set Cascadia Mono as the default
|
||||||
|
gsettings set org.gnome.desktop.interface monospace-font-name 'CaskaydiaMono Nerd Font 10'
|
||||||
7
installer.sh
Normal file
7
installer.sh
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
echo "Installing git..."
|
||||||
|
sudo apt-get update > /dev/null
|
||||||
|
sudo apt-get install -y git > /dev/null
|
||||||
|
|
||||||
|
echo "Cloning stable Mise-en-place..."
|
||||||
|
git clone -b v0.1 https://git.cbo.dk/rasmus/setup-ubuntu.git ~/.local/share/mise-en-place > /dev/null
|
||||||
|
source ~/.local/share/mise-en-place/install.sh
|
||||||
Reference in New Issue
Block a user