This commit is contained in:
Christoffer Martinsson 2025-05-03 16:18:15 +02:00
commit 5dc3889513
6 changed files with 36 additions and 20 deletions

View File

@ -1,25 +1,12 @@
# linuxbox # linuxbox
## WSL Ubuntu
Script and dotfiles for setting up complete dev environment based on Ubuntu 22.04 (and 24.04) Script and dotfiles for setting up complete dev environment based on Ubuntu 22.04 (and 24.04)
If Win11 is used as main terminal/client then pleas configure following: If Win11 is used as main terminal/client then pleas configure following:
* Windows Terminal (Preview) * Windows Terminal (Preview)
* Font: CodeNewRoman Nerd Font * Font: CodeNewRoman Nerd Font
## Option 1: Set up VM containing SSH code server
Configure new VM with following resources:
* 2GB RAM
* 16GB vDisk
* Ubuntu server 22.04 boot iso
### Install VM (in hypervisor)
* Minimal installation
* Install openssh server
## Option 2: Install Ubuntu 22.04 or 24.04 locally
* Install Ubuntu 22.04 or 24.04 desktop
## Deploy script
* Log in via SSH (or open desktop terminal) * Log in via SSH (or open desktop terminal)
* Install git * Install git
```bash ```bash
@ -31,3 +18,30 @@ curl https://git.cmtec.se/cm/linuxbox/-/raw/main/update_wrapper.sh?ref_type=head
``` ```
* exit session * exit session
* Log in via SSH (or open desktop terminal) * Log in via SSH (or open desktop terminal)
## Arch linux
Script and dotfiles for setting up complete dev environment based on Arch linux
* Install Arch via archinstaller
* Reboot
* Install git
```bash
sudo pacman -S git
```
* Install linuxbox
```bash
cd~
git clone https://git.cmtec.se/cm/linuxbox.git
linuxbox/update_arch.sh
```
### Set theme for flatpak
Open flatseal and add following global ENV:
```
GTK_THEME=Adwaita:dark
```
### Configure sunlight
Open sunlight config (application->desktop) and enter following to desktop app:
```
sh -c "hyprctl dispatch dpms on"
```

View File

@ -20,7 +20,6 @@ exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec-once = /home/cm/linuxbox/set-xr18-2ch.sh exec-once = /home/cm/linuxbox/set-xr18-2ch.sh
exec-once = udiskie exec-once = udiskie
exec-once = waybar exec-once = waybar
exec-once = hypridle
exec-once = systemctl --user start sunshine exec-once = systemctl --user start sunshine
exec-once = org.remmina.Remmina -i exec-once = org.remmina.Remmina -i

View File

@ -1,7 +1,7 @@
################ ################
### MONITORS ### ### MONITORS ###
################ ################
monitor=,2560x1440,auto,1 monitor=,preferred,auto,1
################### ###################
### MY PROGRAMS ### ### MY PROGRAMS ###
@ -169,7 +169,7 @@ bind = , PRINT, exec, hyprshot -m region
# Set monitor resolution # Set monitor resolution
bind = $mainMod, R, exec, hyprctl keyword monitor ",1920x1200,auto,1" bind = $mainMod, R, exec, hyprctl keyword monitor ",1920x1200,auto,1"
bind = $mainMod CTRL, R, exec, hyprctl keyword monitor ",2560x1440,auto,1" bind = $mainMod CTRL, R, exec, hyprctl keyword monitor ",preferred,auto,1"
bind = $mainMod CTRL, P, exec, hyprctl keyword monitor ",preferred,auto,1" bind = $mainMod CTRL, P, exec, hyprctl keyword monitor ",preferred,auto,1"
# Special workspace (scratchpad) # Special workspace (scratchpad)

View File

@ -20,10 +20,10 @@ exec-once = /home/cm/linuxbox/set-xr18-2ch.sh
exec-once = udiskie exec-once = udiskie
exec-once = sudo udisksctl mount -b /dev/sda1 exec-once = sudo udisksctl mount -b /dev/sda1
exec-once = waybar exec-once = waybar
exec-once = hypridle
exec-once = systemctl --user start sunshine exec-once = systemctl --user start sunshine
exec-once = [workspace 3] steam exec-once = [workspace 1] ~/Games/star-citizen/sc-launch.sh
exec-once = [workspace 2] steam
############################# #############################
### ENVIRONMENT VARIABLES ### ### ENVIRONMENT VARIABLES ###

View File

@ -0,0 +1,2 @@
preload = $HOME/linuxbox/wallpaper/wallpaper1.jpg
wallpaper = , $HOME/linuxbox/wallpaper/wallpaper1.jpg

View File

@ -199,7 +199,7 @@ sudo localectl set-locale LANG=en_US.UTF-8
# Install hyprland # Install hyprland
if [ "$HYPERLAND" == "yes" ]; then if [ "$HYPERLAND" == "yes" ]; then
printf -- '\033[33m Installing hyprland\n\033[37m' printf -- '\033[33m Installing hyprland\n\033[37m'
sudo pacman --noconfirm --needed -S usbutils plymouth dracut dunst hypridle hyprland hyprlock xdg-desktop-portal-hyprland polkit-gnome xorg-xhost gnome-keyring qt5ct qt6ct gnome-themes-extra qt5-wayland qt6-wayland lxappearance sudo pacman --noconfirm --needed -S usbutils plymouth dracut dunst hyprpaper hypridle hyprland hyprlock xdg-desktop-portal-hyprland polkit-gnome xorg-xhost gnome-keyring qt5ct qt6ct gnome-themes-extra qt5-wayland qt6-wayland lxappearance qt5-tools
yay --noconfirm -S --needed --aur adwaita-qt5-git yay --noconfirm -S --needed --aur adwaita-qt5-git
yay --noconfirm -S --needed --aur adwaita-qt6-git yay --noconfirm -S --needed --aur adwaita-qt6-git
@ -220,6 +220,7 @@ if [ "$HYPERLAND" == "yes" ]; then
ln -sf ~/linuxbox/wrappedhl ~/.local/bin/wrappedhl ln -sf ~/linuxbox/wrappedhl ~/.local/bin/wrappedhl
ln -sf ~/linuxbox/config/hypr/hypridle.conf ~/.config/hypr/hypridle.conf ln -sf ~/linuxbox/config/hypr/hypridle.conf ~/.config/hypr/hypridle.conf
ln -sf ~/linuxbox/config/hypr/hyprpaper.conf ~/.config/hypr/hyprpaper.conf
ln -sf ~/linuxbox/config/gtk-3.0/settings.ini ~/.config/gtk-3.0/settings.ini ln -sf ~/linuxbox/config/gtk-3.0/settings.ini ~/.config/gtk-3.0/settings.ini
ln -sf ~/linuxbox/config/qt5ct/qt5ct.conf ~/.config/qt5ct/qt5ct.conf ln -sf ~/linuxbox/config/qt5ct/qt5ct.conf ~/.config/qt5ct/qt5ct.conf
ln -sf ~/linuxbox/config/qt6ct/qt6ct.conf ~/.config/qt6ct/qt6ct.conf ln -sf ~/linuxbox/config/qt6ct/qt6ct.conf ~/.config/qt6ct/qt6ct.conf