Showing posts with label archlinux. Show all posts
Showing posts with label archlinux. Show all posts

Wednesday, December 16, 2020

Manjaro mdns fix

Install and enable avahi service. Enable systemd-resolved.service:

systemctl status systemd-resolved.service

make a symbolic link:

sudo ln -s /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf


Check:

getent hosts mypc.local

Saturday, January 23, 2016

Archlinux on HP 6510b

Install packages: rfkill, hdparm

rfkill to enable wifi

Custom systemd unit for hdparm via systemd After=sleep.target:

/etc/systemd/system/myhdparm.service
[Unit]
Description=set hdparm for sda
After=default.target sleep.target

[Service]
type=oneshot
ExecStart=/etc/systemd/system/sethdparm.sh

[Install]
WantedBy=default.target sleep.target


/etc/systemd/system/sethdparm.sh
#!/bin/bash
sleep 2
hdparm -B 253 /dev/sda