User Tools

Site Tools


technical:programming:shell

This is an old revision of the document!


Bash Shell

Xorg

Multiple Xorg servers can be started from a virtual terminal console.

startx </path/to/displaymanager> -- <display> <virtual-terminal>

Start a Xorg server running fluxbox on display1 vt7.

startx /usr/bin/fluxbox -- :1 vt7

Start a Xorg server running emacs on display2 vt8.

startx /usr/bin/emacs -- :2 vt8

chroot

The chroot command changes the root directory. This can be useful when repairing a system in an unbootable state.

A luks encrypted volume must be decrypted before it can be mounted. The cryptsetup command can be used to decrypt an luks encrypted volume.

cryptsetup open --type luks /dev/<volume> cryptvg

Next the decrpyted volume will be mounted along with the /proc, /sys, and /dev directories.

mount /dev/cryptvg /mnt; cd /mnt; mount -t proc /proc proc; mount --rbind /sys sys; mount --rbind /dev dev

With the volume and directories mounted chroot into the new root directory.

chroot --userspace=<username> /mnt /bin/bash

Systemd

Install

Package Dependencies:

 sudo pacman -Su seatd wlroots xcb-util-errors sway

Package Optional:

 sudo pacman -Su  swaybg swayidle swaylock wf-recorder

Configure

Uncomment line from /etc/lightdm/lightdm.config

sessions-directory=/usr/share/lightdm/sessions:/usr/share/xsessions:/usr/share/wayland-sessions

Configure /usr/share/wayland-sessions/sway.desktop.

[Desktop Entry]
Name=Sway
Comment=An i3-compatible Wayland compositor
Exec=sway
Type=Application

Startup

Edit /etc/lightdm/lightdm.config and set user-session to sway.

user-session=sway
technical/programming/shell.1660704609.txt.gz · Last modified: 2022/08/16 22:50 by jc