Skip to content

Instantly share code, notes, and snippets.

@jhuesos
Last active June 16, 2022 19:55
Show Gist options
  • Save jhuesos/c65d069065feec1f00dacfb92217460b to your computer and use it in GitHub Desktop.
Save jhuesos/c65d069065feec1f00dacfb92217460b to your computer and use it in GitHub Desktop.
Installing Arch Manjaro in X1C6

References

How to install Antergos with LUKX+LVM2

https://antergos.com/wiki/install/how-to-install-antergos-w-custom-lukslvm2-partitioning/

Known issue: in Grub, it seems it gets stucked in the second loading step, but you can still type your password and it wil lcontinue

Install locale en_NL

https://github.com/PanderMusubi/locale-en-nl

Check the script. The script fail because it adds the "en-NL" entry at the end but without a new line. Just move it and call locale-gen...

Setting battery treshold

Values shown there are fine: 85,90

In manjaro when installing the TLP package, it will ask with ACPI_CALL provider to use. Just install the one that matches your kernel. Not sure if the ACPI_CALL package will upgrade automatically when kernel upgrades to a newer version...

TMUX

Fix firefox with Dark theme

  • In about:config, right click, add new entry String with this value: widget.content.gtk-theme-override=Adwaita

Add printer and scanner (WIP)

yay -S cups cups-pdf sane brscan4 brother-mfc-l2700dw

sudo systemctl enable org.cups.cupsd.service sudo systemctl start org.cups.cupsd.service

Set root password and go to localhost:631. When asked for username and password, enter root and passwd

To add printer choose ADD PRINTER and select Internet Printing Protocol (ipp), in connection fill ipp://printer_ip/ipp/port1 and in Driver select Brother -> Brother MFC-L2700DW for CUPS (en)

Scanner run command sudo brsaneconfig4 -a name=SCANNER_L2700DW model=MFC-L2700DW ip=192.168.1.200

Scan app: simple-scan?

Fix: laptop wakeup after suspend utomatically

https://wiki.archlinux.org/index.php/Laptop#Modify_wake_events

It seems like XHC was causing the problem. Do it as root (sudo -s), calling wiht sudo will not work

Run docker-compose as system servers

(it works in Arch as well)

https://community.hetzner.com/tutorials/docker-compose-as-systemd-service

You can create symlinks to the location of the docker-compose but consider that all paths inside the compose must be absolute, as relative paths work from the point docker-compose is run.

You can symlink both docker-compose and .env file

Set server to sleep every day from 1am until 8am

You need to install cronie, enable service (systemctl enable & start cronie) then EDITOR=vim crontab -e and add the line: 25200 seconds = 7 * 60 * 60

01 0 * * * /usr/bin/systemctl suspend

Enable Wake on lan on wifi

sudo iw phy0 wowlan enable magic-packet

to check status

iw phy0 wowlan show
/etc/systemd/system/docker-compose@.service
---
[Unit]
Description=docker-compose %i service
Requires=docker.service network-online.target
After=docker.service network-online.target
[Service]
WorkingDirectory=/etc/docker-compose/%i
Type=simple
TimeoutStartSec=15min
Restart=always
ExecStartPre=/usr/bin/docker-compose pull --quiet --ignore-pull-failures
ExecStartPre=/usr/bin/docker-compose build --pull
ExecStart=/usr/bin/docker-compose up --remove-orphans
ExecStop=/usr/bin/docker-compose down --remove-orphans
ExecReload=/usr/bin/docker-compose pull --quiet --ignore-pull-failures
ExecReload=/usr/bin/docker-compose build --pull
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment