First commit done from gentoo!
This commit is contained in:
parent
9da856b081
commit
51f139f681
10 changed files with 96 additions and 6 deletions
|
|
@ -5,16 +5,27 @@ git clone https://github.com/espanso/espanso
|
||||||
|
|
||||||
Install wxwidgets
|
Install wxwidgets
|
||||||
|
|
||||||
|
If on Arch/Artix:
|
||||||
|
|
||||||
doas pacman -S wxwidgets
|
doas pacman -S wxwidgets
|
||||||
|
|
||||||
|
If on Gentoo:
|
||||||
|
|
||||||
|
https://wiki.wxwidgets.org/Installing_and_configuring_under_Gentoo
|
||||||
|
https://packages.gentoo.org/packages/x11-libs/wxGTK
|
||||||
|
|
||||||
cd espanso
|
cd espanso
|
||||||
|
|
||||||
To turn off notifications, simply cp from this directory the notifications.rs file to the ~/$CLONE_DIR/espanso/espanso/src/cli/worker/ui/ directory before compiling.
|
To turn off notifications, simply cp from this directory the notifications.rs file to the ~/$CLONE_DIR/espanso/espanso/src/cli/worker/ui/ directory before compiling.
|
||||||
|
|
||||||
cp notification.rs ~/$CLONE_DIR/espanso/espanso/src/cli/worker/ui/notification.rs
|
cp notification.rs ~/$CLONE_DIR/espanso/espanso/src/cli/worker/ui/notification.rs
|
||||||
|
|
||||||
cargo install --force cargo-make --version 0.34.0
|
# Deprecated:
|
||||||
cargo make --profile release build-binary
|
# cargo install --force cargo-make --version 0.34.0
|
||||||
|
# cargo make --profile release build-binary
|
||||||
|
|
||||||
|
cargo build -p espanso --release --no-default-features --features vendored-tls,modulo
|
||||||
|
|
||||||
doas mv target/release/espanso /usr/bin/espanso
|
doas mv target/release/espanso /usr/bin/espanso
|
||||||
|
|
||||||
Copy xinitrc.txt which calls espanso at beginning
|
Copy xinitrc.txt which calls espanso at beginning
|
||||||
|
|
|
||||||
|
|
@ -131,7 +131,7 @@ browser.proton.enabled set to false
|
||||||
browser.proton.modals.enabled set to false
|
browser.proton.modals.enabled set to false
|
||||||
browser.proton.doorhangers.enabled set to false
|
browser.proton.doorhangers.enabled set to false
|
||||||
browser.proton.contextmenus.enabled set to false
|
browser.proton.contextmenus.enabled set to false
|
||||||
browser.sessionstore.resum_from_crash false
|
browser.sessionstore.resume_from_crash false
|
||||||
|
|
||||||
Copy the chrome directory into the profile ($HOME/.librewolf/*.default-release)
|
Copy the chrome directory into the profile ($HOME/.librewolf/*.default-release)
|
||||||
This feature isn't officially supported anymore so enable it by heading to
|
This feature isn't officially supported anymore so enable it by heading to
|
||||||
|
|
@ -185,7 +185,7 @@ about:config:
|
||||||
|
|
||||||
network.trr.mode to 0
|
network.trr.mode to 0
|
||||||
|
|
||||||
(defaults to OS level DNS resolver, set in Android Network settings, Private DNS field, to base.dns.mullvad.net)
|
(defaults to OS level DNS resolver, set in Android Network settings, Private DNS field, to https://base.dns.mullvad.net/dns-query)
|
||||||
|
|
||||||
Set zoom to only be specific to tab you are on:
|
Set zoom to only be specific to tab you are on:
|
||||||
browser.zoom.siteSpecific to false
|
browser.zoom.siteSpecific to false
|
||||||
|
|
|
||||||
58
install_virt_manager_on_gentoo.txt
Normal file
58
install_virt_manager_on_gentoo.txt
Normal file
|
|
@ -0,0 +1,58 @@
|
||||||
|
|
||||||
|
Help to install Virt-manager on Funtoo and Gentoo
|
||||||
|
Installing virt-manager
|
||||||
|
|
||||||
|
First we need to add some information to build virt-manager and qemu correctly:
|
||||||
|
|
||||||
|
# echo "app-emulation/virt-manager gtk policykit" >> /etc/portage/package.use
|
||||||
|
# echo "app-emulation/qemu spice" >> /etc/portage/package.use
|
||||||
|
# vim /etc/portage/make.conf ## and add
|
||||||
|
|
||||||
|
QEMU_SOFTMMU_TARGETS="arm x86_64 sparc"
|
||||||
|
QEMU_USER_TARGETS="x86_64"
|
||||||
|
|
||||||
|
In order to user the power of virtualization under Funtoo / Gentoo, you will need to install the following packages:
|
||||||
|
|
||||||
|
Note: Some extra video driver are needed and iptables is mandatory! If under Gentoo, you will need rebuild or check if already build modules in the kernel, see QEMU documentation.
|
||||||
|
|
||||||
|
# emerge --ask virt-manager qemu xf86-video-qxl app-emulation/spice spice-gtk spice-protocol net-firewall/iptables
|
||||||
|
# dispatch-conf
|
||||||
|
# emerge --ask virt-manager qemu xf86-video-qxl app-emulation/spice spice-gtk spice-protocol net-firewall/iptables
|
||||||
|
|
||||||
|
Take a cup of coffee ^^
|
||||||
|
|
||||||
|
After the installation please add you user to kvm & libvirt group (or create it) and start libvirt daemon as follow and add it as default to start after reboot:
|
||||||
|
|
||||||
|
# gpasswd -a USER kvm ## groupadd kvm
|
||||||
|
# gpasswd -a USER libvirt ## groupadd libvirt
|
||||||
|
# /etc/init.d/libvirtd start
|
||||||
|
# rc-update add libvirtd default
|
||||||
|
|
||||||
|
Configure polkit
|
||||||
|
|
||||||
|
Then we will add some changes of the default configuration, so that your user can use virt-manager without password and without to be root:
|
||||||
|
|
||||||
|
# mkdir -p /etc/polkit-l/localauthority/50-local.d
|
||||||
|
# vim /etc/polkit-l/localauthority/50-local.d/org.libvirt.unix.manage.pkla
|
||||||
|
[Allow group libvirt management permissions]
|
||||||
|
Identity=unix-group:libvirt
|
||||||
|
Action=org.libvirt.unix.manage
|
||||||
|
ResultAny=yes
|
||||||
|
ResultInactive=yes
|
||||||
|
ResultActive=yes
|
||||||
|
|
||||||
|
Starting needed modules now and after reboot
|
||||||
|
|
||||||
|
# modprobe kvm kvm-intel tun
|
||||||
|
# vim /etc/conf.d/modules
|
||||||
|
modules="kvm tun kvm-intel"
|
||||||
|
|
||||||
|
After the changes you will maybe need to reboot your computer!
|
||||||
|
|
||||||
|
# reboot
|
||||||
|
|
||||||
|
Test your installation
|
||||||
|
|
||||||
|
Now you should ready to go, just try to start virt-manager and see if ask you for a password or not ^^
|
||||||
|
|
||||||
|
$ virt-manager
|
||||||
16
kiwix-serve.md
Normal file
16
kiwix-serve.md
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
# Kiwix-Serve Install
|
||||||
|
|
||||||
|
Go to [kiwix-build github page](https://github.com/kiwix/kiwix-build) and follow
|
||||||
|
the instructions there.
|
||||||
|
|
||||||
|
After invoking `kiwix-build`, go to:
|
||||||
|
|
||||||
|
`kiwix-build/BUILD_native_dyn/INSTALL`
|
||||||
|
|
||||||
|
From there:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
sudo cp -r kiwix-build/BUILD_native_dyn/INSTALL/lib/* /usr/local/lib/ &&
|
||||||
|
sudo cp -r kiwix-build/BUILD_native_dyn/INSTALL/bin/* /usr/local/bin &&
|
||||||
|
sudo ldconfig
|
||||||
|
```
|
||||||
5
scripts/mkbackup
Executable file
5
scripts/mkbackup
Executable file
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
BACKUP_DATE=$(date +%m_%d_%Y)
|
||||||
|
|
||||||
|
doas rsync -aHAXS --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} /* /mnt/media/usb-drive/"${HOST}"_backup_"${BACKUP_DATE}"
|
||||||
BIN
st/boxdraw.o
BIN
st/boxdraw.o
Binary file not shown.
|
|
@ -152,9 +152,9 @@ static unsigned int cursorshape = 2;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// static unsigned int cols = 80;
|
// static unsigned int cols = 80;
|
||||||
static unsigned int cols = 150;
|
static unsigned int cols = 132;
|
||||||
// static unsigned int rows = 24;
|
// static unsigned int rows = 24;
|
||||||
static unsigned int rows = 36;
|
static unsigned int rows = 42;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Default colour and shape of the mouse cursor
|
* Default colour and shape of the mouse cursor
|
||||||
|
|
|
||||||
BIN
st/st
BIN
st/st
Binary file not shown.
BIN
st/st.o
BIN
st/st.o
Binary file not shown.
BIN
st/x.o
BIN
st/x.o
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue