You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
my-unix-setup/coding/kde_dev-environment-setup.md

37 lines
2.4 KiB
Markdown

## Set-up of a VM with openSUSE tumbleweed for KDE development
#### Step 1: Installation of KVM on debian
I picked the GUI version:
```
sudo apt install virt-manager qemu-system libvirt-daemon-system qemu-utils
sudo usermod -aG libvirt,kvm <user>
sudo systemctl enable --now libvirtd
```
#### Step 2: set-up the openSUSE tumbleweed iso
1. Download tumbleweed [here](https://get.opensuse.org/tumbleweed/)
2. start `virt-manager`
3. select `QEMU/KVM`
4. create new vm (pay attention to vm directory, RAM size, number of CPU cores and space (although the default 20GB should suffice))
5. ! warning ! I've ran into an issue that my vm suspended itself when I tabbed out before I started the installation process which caused the vm to crash to a point where it couldn't start the installation screen anymore. I am not sure whether that issue would have also come up if I would have tabbed out of the running installation process because I did not dare to. Caution advised.
#### Step 3: Getting everything inside the vm set-up
##### zsh
* for some (to me) unknown reason, `chsh -s /usr/bin/zsh` did not work. workaround: creating a new profile in Konsole and assigning zsh to it.
* typical zsh set-up. first downloading my `.zshrc`, then installing antigen into `$HOME/.antigen/antigen.zsh`
##### packages
* git is not pre-installed. Time to get to know `zypper`! It's just a package manager, nothing scary.
* mia-provided way of getting kde development libs and packages onto my system without much headache:
1. `sudo zypper ar -fr https://download.opensuse.org/repositories/KDE:/Unstable:/Frameworks/openSUSE_Factory/KDE:Unstable:Frameworks.repo`
2. `sudo zypper ar -fr https://download.opensuse.org/repositories/KDE:/Unstable:/Applications/KDE_Unstable_Frameworks_openSUSE_Factory/KDE:Unstable:Applications.repo`
3. `sudo zypper in -t pattern devel_kde_frameworks`
TODO: I have yet to understand, what the 3rd line is exactly doing and how 🥴
#### Step 4: Configuration
##### git
* `git config --global user.name "firstname lastname"`
`git config --global user.email "needs to be the same email as registered on bugs.kde.org"`
* I've also registered a separate email address just for this and generated a gpg key for it:
`gpg --generate-key` (as usual) and then the super scary `gpg --export-secret-keys -a <keyID> > filename.asc` part for importing into thunderbird (delete `filename.asc` afterwards immediately!!!!!)