Skip to content

Instantly share code, notes, and snippets.

View N0rbert's full-sized avatar

N0rbert

View GitHub Profile
@eylenburg
eylenburg / msoffice_in_linux.md
Last active July 17, 2024 11:06
Installing Microsoft Office 2016 (Excel, Powerpoint, Word) in Linux

Step by step guide: How to install Microsoft Office 2016 in any Linux distribution

There are multiple options how to install MS Office on Linux.

VM-based - Integrate Windows apps running in a Windows VM as native-looking in Linux

  1. Winapps, based on KVM, QEMU, Virt-Manager, and FreeRDP. Still actively maintained (getting Github commits).
  2. Cassowary, based on KVM, QEMU, Virt-Manager, and FreeRDP. Has a helpful GUI and apparently can auto-suspend the VM when no Windows app is in use. Last release in Feb 2022 and seems to be abandoned.

The VM-based options means can run Office 2021 or Office 365 including all apps, but for me it was quite buggy and when I encounterd some (FreeRDP-related?) bug in both Winapps and Cassowary that meant I could only start Excel with an external screen plugged in, I gave up. bug

@chessmango
chessmango / README.md
Last active May 9, 2024 10:13
Simple Bash add-apt-repository drop-in

Things are awkward in the apt world while apt-key is deprecated and things like Launchpad and general PPA usage are in flux.

This snippet attempts to replicate add-apt-repository functionality for sanity, probably quite badly. There's no error checking or anything advanced, but at least the script is easy to understand.

Syntax: [sudo] addaptrepo.sh <repo-string> <gpg-key-fingerprint>

Then follow up with [sudo] apt-get update. I'm not making that call for you :P

You can find the gpg key fingerprint for a Launchpad repo by expanding Technical details about this PPA.

@luigifab
luigifab / appearance__focus-visible.gtk3.patch
Last active February 11, 2024 10:11
gtk3-classic (GTK 3.24) [gtk-3.24.40-deb.sh] & gtk4-classic (GTK 4.12) [gtk-4.12.5-deb.sh] / for Debian Testing
# GtkWindow3: restore focus on application start
# https://github.com/GNOME/gtk/blob/3.24.37/gtk/gtkwindow.c
Index: b/gtk/gtkwindow.c
===================================================================
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -6357,7 +6357,9 @@ gtk_window_map
/* inherit from transient parent, so that a dialog that is
* opened via keynav shows focus initially
*/
@N0rbert
N0rbert / Dockerfile
Last active June 4, 2020 18:46
Bash scripts for compilation and packaging of `gtk3-mushrooms` on Ubuntu 18.04 LTS, 19.04 and 19.10 (pre-beta). Based on https://gist.github.com/lah7/a4dec89e61ee2875406731b3cd0ae90d .
# Optional Dockerfile for compilation of gtk3-mushrooms on Ubuntu.
# Change codename to necessary version (this file is for 20.04 LTS *focal*)
#
FROM ubuntu:focal
ENV DEBIAN_FRONTEND noninteractive
RUN echo "deb-src http://archive.ubuntu.com/ubuntu/ focal main multiverse multiverse restricted" >> /etc/apt/sources.list
RUN echo "deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main multiverse multiverse restricted" >> /etc/apt/sources.list
@zorn-v
zorn-v / build.sh
Last active May 9, 2024 08:50
xkb switch on release deb build
#!/bin/bash
rm -rf build
mkdir -p build
cd build
sudo apt install devscripts -y
sudo mk-build-deps -t'apt-get -y' -ir xserver-xorg-core
apt source xserver-xorg-core