Skip to content

u/rht91

In this archive from Aug 2014 to Feb 2023

1
posts
46
comments
1
media
156
score

There's a demo that utilizes libaa, binary is called bb or bb_demo (lol, get it?) and its actually really good.

Its probably a standalone package or you can lookup youtube for it and its pretty amazing.

Then there's libcaca that extends upon aa to render colored images on the terminal. I know of mplayer that supports playing movies on the terminal using the video output driver flag:

  • mplayer -vo aa file.mp4
  • mplayer -vo caca file.mp4
3 points

As someone who likes to open a lot of windows for editing code, chat, debuggers, terminals, monitoring dashboards at the same time I really appreciate that tiling window managers allow me to reorganise these windows in near constant time.

Any windowing operation to move between/swap positions/push off to a different screen or workspace is always one hotkey away if not for two. This really tickles my brain that I don't have to reach to the nearest mouse or trackpad to do these operations which seems slower than what I'm now used to.

But if my workflow was minimal with just a couple of windowed/fullscreen apps then I probably wouldn't bother with this.

3 points

and it works just fine

So true, I have used linux-zfs for a few years and the longest lag I think was when Linux 5.0 dropped some primitives that openzfs had to work around.

But for the unfortunate folk who upgraded during the lag and don't know what to do, where to seek help, or don't know how to help themselves. Most of the complaints come from them saying "the OS should've known better" and move on to something else while badmouthing arch ๐Ÿ˜‚

Edit: Maybe I should've said 1) those who use out of tree modules ..... and then complain about it

1 points

I think that the people who say arch breaks a lot fall into either of the two camps:

  1. Those who use out-of-tree Linux kernel modules still want bleeding edge kernels (nvidia driver users, ZFS users). LTS kernel is meant for this and idk why people dont just use those.

  2. Those who ignore doing full system updates and update only one or two core packages at a time. This breaks the dependent versions and everything goes for a toss.

In my 7 years of "I run arch btw", it has broken itself just a few times (mostly due to half-updates and Pacman borking itself). This was easily resolvable by either not being stupid and running (Pacman -Syu) religiously; or during the Gnome's Xorg to Wayland transition saga, none of which I can blame arch for.

You'll be fine, archwiki is your friend, archforum/subreddit is your spouse.

33 points

You ought to be mounting sda1 (partition) and not sda (the entire drive with gpt headers):
mount /dev/sda1 /mnt/plex

Also I'm not sure what filesystem you have formatted that sda1 partition in (maybe ex-fat/ntfs, you might end up needing an extra package called ntfs-3g for mounting/writing to ntfs drives)

2 points

That's half way towards the solution. Now in Network Manager you can edit the IPv4 config for your connection and set the IP to static and enter the same one you reserved for the machine on the router.

Edit: Why this is important is that it does not wait for the link to come up, send a DHCP request, wait for response and then set the same IP on the interface before continuing

1 points

If Ethernet then consider skipping DHCP and setting a static IP. It's known to save a second or two.

Additionally it is possible to remove the dependency on Network Manager wait-online service so that it starts up in parallel instead of keeping rest of the services on hold. Have to read the systemd service manual page to figure out how to do that myself though.

5 points

Three of the most minimalist terminals I could remember using are:

  • urxvt (a.k.a rxvt-unicode)
  • alacritty (graphics accelerated terminal)
  • st (suckless terminal)

The shell that you've been using was bash. Most people are fine with this, other popular ones are:

  • zsh (z shell, more features? Not sure myself)
  • fish (friendly, supports autosuggest, color coding, etc pretty nice for new users)

Most systems come with bash these days, can't go wrong learning this. Also, there are a lot of terminal apps -- use whichever fits you - some are tabbed / tiled / support blurred backgrounds / themed or in any combinations of these but the shell app you'll be running will be the same: bash/zsh/fish/...

1 points

I guess this effort would tie into the standardization of preboot environments. I'm using Plymouth for the splash screen, and I'd reckon their developers had an easier time just waiting on the encrypt/fsck/mount targets to trigger and they would show appropriate things on the screen.

1 points

You can look into the systemd hooks in mkinitcpio. Instead of starting busybox, udev and shell scripts to do proper userspacey stuff - detecting disks, decryption passphrase prompts, mounts, etc - you can have an early systemd in there that handles all these actions via unit definitions.

3 points
  1. Did you mean /dev/sdb2?

Yes you are right sorry about the mix-up.

Verify with efibootmgr -v about what is setup to boot. Your UEFI startup selection menu would also list booting either of them.

If you are sure that you have booted into the right setup, you can delete the older partitions from there.

1 points

I'm not sure about any guides, but its a relatively simple operation (in theory). The gist of it is, you start by manually creating partitions you need, move all your OS+user data there, then go on setting up fstab properly and reconfiguring/reinstalling the bootloader. The new system should come up without a hitch, and if things are misconfigured you can still use the old bootloader entries to go back and fix things until it works; and wipe/repurpose the old system partitions for other stuff.

From a live-usb environment you can perform the following:

  • Setup your partitions on /dev/sdb and format them with appropriate filesystems. I'll go with your proposed partition layout.
  • Mount /dev/sda3 in /mnt/oldroot and then /dev/sda1 in /mnt/oldroot/boot/efi, both with mount -o ro flag (readonly, thank me later ;)
  • Mount /dev/sdb2 in /mnt/newroot, and /dev/sdb1 in /mnt/boot/boot/efi. If I've missed any other partitions you might have do the same with them.
  • Copy everything from old to new, cp --archive --recursive /mnt/oldroot /mnt/newroot
  • Unmount /mnt/oldroot, dont need that anymore
  • Update /mnt/newroot/etc/fstab file
  • Might want to arch-chroot and reinstall grub as in archwiki
  • Reboot into new setup
  • Once in new system, verify with mount/df if you're good and then start wiping the old drives

Edited: added about /mnt/newroot/boot/efi

1 points

There are a lot of options to achieve this and would probably require some thinking through. These techniques will depend on what setup you have and additional info about your setup will help narrow down choices, such as:

  • Bootloader in use
  • How big your root partition is
  • Are you using any exotic filesystems (btrfs/zfs?)
  • Are you using LVM

A couple of options i can think of from the top of my head are:

  1. Move your installation to the SSD: This means you should partition the SSD in a similar way as it exists on the HDD (for /boot/EFI, rootfs, etc). Recommend booting into some live environment, copy off all your OS directories into the appropriate SSD partitions. Before rebooting, make sure to update /etc/fstab (on the SSD), edit the kernel options in the bootloader to use the new SSD partitions, set the new bootloader (if you're moving that as well) to be the active one, and that should be it.
  2. [LVM] Move the LV to new disk: You would have to add the SSD to your VG, then initiate a PV move (pvmove) to migrate your OS LV to the SSD. If your distro is installed in /dev/pool/arch then the command would be pvmove -n /dev/pool/arch /dev/slow /dev/fast. This should succeed as long as SSD has the space to accomodate the entire LV, would have to look into this situation closely otherwise.
  3. [LVM] Lazy method - Using the SSD as cache. This would include adding the SSD to your VG (duh), creating a large-ish LV on it and running lvconvert --type cache --cachemode writethrough --cachepool pool/caching-lv-on-ssd pool/arch. This would cache all read requests on the SSD LV, any writes would go to both. Advantage is that this would free you from deciding what data needs to be on fast/slow drives. If you favor performance then you can look at other cachemodes. This works out better if you have one large LV where all your data is stored, and a smaller SSD
2 points

IMHO the solution by u/Fearless_Process is one I wholeheartedly recommend.

However if you want a web UI to start/stop your process then supervisord offers one, can trail the logs from the browser and configure auto restart as well in the conf

As to where to put your projects, can be anywhere. /opt/myproject is one place that would seem appropriate. Alternatively if you could make a python package out of your project then having it in site-packages would mean you can invoke it with python-m myproject from anywhere in the system.

2 points

Bad sector on my laptop's hard drive happened to contain, atleast a part of, a very important file... libssl.so (I know, what are the chances!)

Everything failed to start if I remember correctly after the TTY login. No curl, no pacman, no ssh. The system would hang, hangcheck timers would go off, utilities depending on it would segfault.

Not checking dmesg left me spending a good hour browsing forums to see if anyone else had issues assuming that the last Pacman -Syu had gone bad. Eventually dmesg showed the media errors and it was clear which file it was talking about and then it made sense.

Fortunately I keep a 2GB partition on my disk with archlive as a recovery environment. Booted into that, mounted rootfs, deleted the file, ran fsck, badblocks, restored libssl from online pacman archives and then it was all good.

I still wonder to this day what were the chances of that ever happening again on other devices.

3 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

โ†orโ†’
Previous / next file
โ†‘orโ†“
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.