Compare commits
1 Commits
master
...
in-progres
| Author | SHA1 | Date | |
|---|---|---|---|
| 915fc2e5c7 |
34
Vagrantfile
vendored
Normal file → Executable file
34
Vagrantfile
vendored
Normal file → Executable file
@ -22,7 +22,7 @@ gui_enabled = ENV['VAGRANT_GUI'] || true
|
|||||||
# backwards compatibility). Please don't change it unless you know what
|
# backwards compatibility). Please don't change it unless you know what
|
||||||
# you're doing.
|
# you're doing.
|
||||||
Vagrant.configure("2") do |config|
|
Vagrant.configure("2") do |config|
|
||||||
config.vm.box = "ubuntu/focal64"
|
config.vm.box = "ubuntu/jammy64"
|
||||||
|
|
||||||
# Disable automatic box update checking. If you disable this, then
|
# Disable automatic box update checking. If you disable this, then
|
||||||
# boxes will only be checked for updates when the user runs
|
# boxes will only be checked for updates when the user runs
|
||||||
@ -47,9 +47,19 @@ Vagrant.configure("2") do |config|
|
|||||||
vb.gui = gui_enabled
|
vb.gui = gui_enabled
|
||||||
if gui_enabled
|
if gui_enabled
|
||||||
vb.customize ["modifyvm", :id, "--monitorcount", (ENV['VAGRANT_MONITORS'] || '1')]
|
vb.customize ["modifyvm", :id, "--monitorcount", (ENV['VAGRANT_MONITORS'] || '1')]
|
||||||
vb.customize ["modifyvm", :id, "--graphicscontroller", "vboxsvga"]
|
|
||||||
vb.customize ["modifyvm", :id, "--vram", "128"]
|
vb.customize ["modifyvm", :id, "--graphicscontroller", "vmsvga"]
|
||||||
|
vb.customize ["modifyvm", :id, "--vram", "256"]
|
||||||
|
vb.customize ["modifyvm", :id, "--accelerate3d", "on"]
|
||||||
|
vb.customize ["modifyvm", :id, "--accelerate2dvideo", "on"]
|
||||||
|
|
||||||
|
# Clipboard sharing
|
||||||
|
vb.customize ["modifyvm", :id, "--clipboard", "bidirectional"]
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Use hosts DNS resolver
|
||||||
|
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
|
||||||
end
|
end
|
||||||
|
|
||||||
config.vm.define "default", primary: true do |primary|
|
config.vm.define "default", primary: true do |primary|
|
||||||
@ -58,9 +68,19 @@ Vagrant.configure("2") do |config|
|
|||||||
config.vm.define "test", autostart: false do |test|
|
config.vm.define "test", autostart: false do |test|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Update apt and install custom specified packages
|
||||||
config.vm.provision :shell,
|
config.vm.provision :shell,
|
||||||
name: "Install Minimal XFCE",
|
name: "Install APT Packages",
|
||||||
path: "provisioners/install-xfce-minimal.sh" \
|
path: "provisioners/install-apt-packages.sh"
|
||||||
|
|
||||||
|
# config.vm.provision :shell,
|
||||||
|
# name: "Install Minimal XFCE",
|
||||||
|
# path: "provisioners/install-xfce-minimal.sh" \
|
||||||
|
# if gui_enabled
|
||||||
|
|
||||||
|
config.vm.provision :shell,
|
||||||
|
name: "Install Minimal KDE",
|
||||||
|
path: "provisioners/install-kde-minimal.sh" \
|
||||||
if gui_enabled
|
if gui_enabled
|
||||||
|
|
||||||
config.vm.provision :shell,
|
config.vm.provision :shell,
|
||||||
@ -68,10 +88,6 @@ Vagrant.configure("2") do |config|
|
|||||||
path: "provisioners/install-nix.sh",
|
path: "provisioners/install-nix.sh",
|
||||||
privileged: false
|
privileged: false
|
||||||
|
|
||||||
config.vm.provision :shell,
|
|
||||||
name: "Install APT Packages",
|
|
||||||
path: "provisioners/install-apt-packages.sh"
|
|
||||||
|
|
||||||
config.vm.provision :shell,
|
config.vm.provision :shell,
|
||||||
name: "Cleanup tasks",
|
name: "Cleanup tasks",
|
||||||
inline: <<~SHELLEND
|
inline: <<~SHELLEND
|
||||||
|
|||||||
26
kde-automation-notes.md
Executable file
26
kde-automation-notes.md
Executable file
@ -0,0 +1,26 @@
|
|||||||
|
Most of the settings in the Settings panel can be managed with kwriteconfig5
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
/usr/bin/kwriteconfig5 --file "/home/douge/.config/kwinrc" --group "TouchEdges" --key "Bottom" "None"
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
/usr/bin/kwriteconfig5 --file "/home/douge/.config/plasmarc" --group "KDE" --key "name" "breeze-dark"
|
||||||
|
|
||||||
|
You have to know where the config item is stored and what it's named. Some of the application settings are stored in other files that can be manipulated with dconf.
|
||||||
|
|
||||||
|
I really had to experiment to see what settings modified what files and how that setting was set. It was trial and error, checking what files were updated when I changed a setting by sorting files in ~/.config by changed date and then looking at that file.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
https://gist.github.com/Zren/d39728991f854c0a5a6a7f7b70d4444a
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
https://zren.github.io/kde/
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
kwriteconfig5
|
||||||
|
kreadconfig5
|
||||||
1
provisioners/install-apt-packages.sh
Normal file → Executable file
1
provisioners/install-apt-packages.sh
Normal file → Executable file
@ -23,6 +23,7 @@ apt_packages=(
|
|||||||
install_apt_packages()
|
install_apt_packages()
|
||||||
{
|
{
|
||||||
export DEBIAN_FRONTEND="noninteractive"
|
export DEBIAN_FRONTEND="noninteractive"
|
||||||
|
apt-get update
|
||||||
if [ "${apt_packages[*]}" ]; then
|
if [ "${apt_packages[*]}" ]; then
|
||||||
apt-get -qy install "${apt_packages[@]}"
|
apt-get -qy install "${apt_packages[@]}"
|
||||||
fi
|
fi
|
||||||
|
|||||||
20
provisioners/install-firefox.sh
Executable file
20
provisioners/install-firefox.sh
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Install firefox as a deb instead of a snap
|
||||||
|
# Reference: https://askubuntu.com/questions/1399383/how-to-install-firefox-as-a-traditional-deb-package-without-snap-in-ubuntu-22
|
||||||
|
|
||||||
|
add-apt-repository ppa:mozillateam/ppa
|
||||||
|
|
||||||
|
echo '
|
||||||
|
Package: *
|
||||||
|
Pin: release o=LP-PPA-mozillateam
|
||||||
|
Pin-Priority: 1001
|
||||||
|
|
||||||
|
Package: firefox
|
||||||
|
Pin: version 1:1snap1-0ubuntu2
|
||||||
|
Pin-Priority: -1
|
||||||
|
' | tee /etc/apt/preferences.d/mozilla-firefox
|
||||||
|
|
||||||
|
snap remove firefox
|
||||||
|
apt install firefox
|
||||||
|
|
||||||
|
echo 'Unattended-Upgrade::Allowed-Origins:: "LP-PPA-mozillateam:${distro_codename}";' | tee /etc/apt/apt.conf.d/51unattended-upgrades-firefox
|
||||||
19
provisioners/install-kde-minimal.sh
Executable file
19
provisioners/install-kde-minimal.sh
Executable file
@ -0,0 +1,19 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Ensure that no interactive prompts are used
|
||||||
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
# Additional pacakges to ensure a nice experience
|
||||||
|
additional_packages=(
|
||||||
|
konsole
|
||||||
|
#firefox
|
||||||
|
pinentry-gtk2
|
||||||
|
pinentry-qt
|
||||||
|
policykit-desktop-privileges
|
||||||
|
)
|
||||||
|
apt-get install -qy "${additional_packages[@]}" || exit 1
|
||||||
|
|
||||||
|
# Install a minimal kubuntu desktop
|
||||||
|
# apt-get install --no-install-recommends -qy sddm || exit 1
|
||||||
|
# apt-get install --no-install-recommends -qy kubuntu-desktop || exit 1
|
||||||
|
apt-get install -qy kubuntu-desktop || exit 1
|
||||||
0
provisioners/install-nix.sh
Normal file → Executable file
0
provisioners/install-nix.sh
Normal file → Executable file
Loading…
x
Reference in New Issue
Block a user