I have a vagrant setup for i3wm that installs it on top of fedora cloud: testingVMs/Vagrantfile · master · G / vagrant-files · GitLab. This will allow you to test it fast, if you are a Vagrant/libvirt user. If not, you can just use the script on any fedora VM:
dnf upgrade -y
dnf install xorg-x11-font-utils xorg-x11-xauth i3lock i3status xorg-x11-xbitmaps xorg-x11-server-utils xorg-x11-apps xorg-x11-server-common dmenu xorg-x11-xinit xorg-x11-drv-intel xorg-x11-server-Xorg xorg-x11-fonts-misc xorg-x11-drv-libinput i3 xorg-x11-xkb-utils xorg-x11-utils powerline zsh chromium xfce4-terminal emoji-picker vim spice-vdagent xorg-x11-drv-qxl bash-completion sqlite -y
adduser gunix
usermod -s /usr/bin/zsh gunix
echo "gunix ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/gunix-nopasswd
mkdir -p /home/gunix/.config/i3/
curl --silent -o /home/gunix/.config/i3/config "https://gitlab.com/gun1x/scripts/raw/master/.config/i3/config"
curl --silent -o /home/gunix/.config/i3/getBarInfo.sh "https://gitlab.com/gun1x/scripts/raw/master/.config/i3/getBarInfo.sh"
chmod +x /home/gunix/.config/i3/getBarInfo.sh
curl --silent -o /home/gunix/.zshrc "https://gitlab.com/gun1x/scripts/raw/master/.zshrc"
curl --silent -o /home/gunix/.xinitrc "https://gitlab.com/gun1x/scripts/raw/master/.xinitrc"
curl --silent -o /home/gunix/.Xresources "https://gitlab.com/gun1x/scripts/raw/master/.Xresources"
mkdir /home/gunix/.ssh/
curl --silent -o /home/gunix/.ssh/authorized_keys "https://gitlab.com/gun1x.keys"
chown -R gunix:gunix /home/gunix/
chmod 400 /home/gunix/.ssh/authorized_keys
You can authenticate with gunix:parola. It grabs config files from my main gitlab repo. You can look through them to understand everything it does. The main thing is to add exec /usr/bin/i3
to .xinitrc
and after that just start it with startx
. You can automate this to get automatic login and startx on boot, but I woudln’t do that on work laptop since I usually start the boot and go get some coffee/tee . I have other stuff there, since this is my working setup.
Note: Be sure you remove my key from the script and add your key.