Skip to content

Instantly share code, notes, and snippets.

@p7cq
p7cq / dwm-logout.md
Last active April 26, 2020 19:30
A logout script for dwm

A logout script for dwm

Configuration

Add lrfs in PATH and make it executable.

Modify config.h:

  • define a new function:
    static const char *lrfs[] = { "lrfs", NULL };
    
@p7cq
p7cq / Install_Arch_Linux_Dell_XPS_9570.md
Last active April 26, 2020 19:13
Install Arch Linux on Dell XPS 9570

Install Arch Linux on Dell XPS 9570

This is my first attempt to install Arch Linux - either on bare metal or in a virtual environment. I spent a couple of hours trying to boot the image and get to the system for the actual installation. - Pressing enter on the boot entry Arch Linux archiso x86_64 UEFI CD always resulted in a black screen. After trying several boot parameters I decided to rewrite the USB key. After that I was able to boot, with no startup parameters needed.

Run all commands as the root user.

  • As the default Linux console font is very small on HiDPI displays I will use the largest font present in kbd package:
setfont latarcyrheb-sun32
@p7cq
p7cq / Fedora_Root_On_ZFS.md
Last active August 2, 2023 05:04
Fedora with Root on ZFS - installation notes
@p7cq
p7cq / kvm-linux.json
Created December 22, 2015 16:48
Smart OS - Create a KVM-based VM
{
"brand": "kvm",
"vcpus": 2,
"alias": "s1node1.paulluaq.lan",
"hostname": "s1node1.paulluaq.lan",
"autoboot": false,
"ram": 4096,
"resolvers": ["192.168.1.102", "192.168.1.102"],
"disks": [
{
@p7cq
p7cq / kvm-add-disk.json
Created December 22, 2015 16:29
SmartOS - Add a disk to an existing VM
{
"add_disks": [
{
"media": "disk",
"model": "virtio",
"nocreate": true,
"boot": false,
"path": "/dev/zvol/rdsk/tank0/s1node1",
"size": 20480
}