wangwangwar / daily-notes

Daily Notes
4 stars 0 forks source link

Arch Linux Tips #60

Open wangwangwar opened 8 years ago

wangwangwar commented 8 years ago

AUR tools:

yaourt makepkg -sri downgrade for downgrading packages conky 1.10 breaks and downgrade it to 1.9

wangwangwar commented 8 years ago
usermod -a -G GROUPNAME USERNAME
wangwangwar commented 8 years ago

Install: btrfs, optimize for ssd (mount flag: ssd, discard) mkinitcpio-btrfs, non-volatile rollback snapper, helps with managing snapshots of Btrfs subvolumes and LVM volumes. It can create and compare snapshots, revert between snapshots, and supports automatic snapshots timelines. snap-pac and pacupg, wraps pacman and AUR upgrades in btrfs snapshots and provides an easy way to roll them back.

wangwangwar commented 8 years ago

/var/lib/systemd/{system,user,..}: many default systemd units and timers

wangwangwar commented 8 years ago

systemd/Timers: The replacement of cron

https://wiki.archlinux.org/index.php/Systemd/Timers

wangwangwar commented 8 years ago

Adjust trackpoint speed:

 #/etc/udev/rules.d/10-trackpoint.rules
ACTION=="add", SUBSYSTEM=="input", ATTR{name}=="TPPS/2 IBM TrackPoint", ATTR{device/sensitivity}="240"

Ref: https://wiki.archlinux.org/index.php/TrackPoint

wangwangwar commented 8 years ago

Bug: can't open x program when wake up from suspend/hibernate and get error:

No protocol specified
QXcbConnection: Could not connect to display :0
Aborted (core dumped)

It may possibly caused by that the hostname wasn't be set. Run

hostnamectl set-hostname <hostname>

and the problem solved.

Ref: https://bbs.archlinux.org/viewtopic.php?id=212475