Skip to content

u/WhoeverMan

In this archive from Mar 2017 to Mar 2023

6
posts
35
comments
0
media
238
score

First time was using a symbolic link. I needed something moved to another partition so I did what I've been doing since the 90s, moved it and created a symbolic link on the original path. Unfortunately Pacman is unusual in the fact that it doesn't respect symbolic links, so during an update it deleted the link and completely broke the system.

Second time was a power loss caused corruption in an unimportant partition, then the system refused to boot. Unfortunately Arch is unusual in the fact that, if you use sudo, it doesn't give you a single-user recovery shell to fix such problems, so the system was unrecoverably broken without an external boot.

1 points

Nah, there are plenty of studies showing that the metabolism variation is really small (when controlled for age and exercise). Your friend probably just doesn't eat as frequently when he is by himself, or doesn't ingest as much "hidden calories" (juices, sodas) when he is by himself.

My whole life people where amazed how I was so thin while eating so much and being a couch potato (maybe couch carrot). The thing is, in social situations I go along, but by myself I'm just too lazy to be constantly coming up with snacks like most people.

6 points

bash: pacman: command not found

So ... My update broke exactly when trying to update pacman, so now I have a system without the pacman binary. Is there a way I can install pacman without pacman? I do have the package file in my cache, should I just extract it on root?


Edit: if anyone is curious as to how I broke it: my root partition is quite full, so I moved my "/var/cache/pacman" dir to another partition and created a symbolic link. The problem is that in updating itself, pacman deleted the symbolic link and recreated its original (empty) cache dir. Result, it couldn't find the packages (including its own package) anymore in the middle of the upgrade.


Edit 2:

Found this helpful thread (someone who did exactly the same as me): https://www.reddit.com/r/archlinux/comments/aeinyr/pacman_syu_removed_pacman_help/

With this very helpfull comment:

Is your /var/cache/pacman a symlink? Don't do that, properly set the cache directory in pacman config if you want it at a different place. /var/cache/pacman/ and its subdirectories are directories of the pacman package. If you have a symlink here, during a pacman update, pacman will go ahead and replace your symlink with the file it knows about, which is a directory. Which will thus be empty.

In general, don't replace directories managed by pacman with symlinks, this will break at one point or another. If you must change the directory to a different harddrive, use bind mounts instead.

And this link which saved me:

https://wiki.archlinux.org/index.php/Pacman#Manually_reinstalling_pacman

And by the way, note that when the wiki tells to use pacman -S --overwrite you need to quote the * for the override as "*". It took me a while to get that.

2 points

Arch really makes it the most easy to get new stuff

I think this is the big key as to why Valve went with Arch: to be able to quickly support more games they need constantly up-to-date kernel, driver, graphical libraries, wine, ... . For them, going with a traditional release-based distro means spending a LOT of manpower constantly backporting all that stuff, while going with a rolling distro like Arch they get all that up-to-date for free. So they made the calculations and concluded that it would be much easier to spend a bit of manpower stabilizing Arch a tiny bit, than doing all that backporting.

51 points

It depends what you want to take away from the experience.

Archinstall is a great tool IF all you want at the end is an installed system, and that is OK, it is a completely valid usecase and that is why the tool is in the official installation media.

But in this thread we are talking about learning, and if that is also an objective than archinstall is very counterproductive. The beauty of the "orthodox" installation method is that it (mostly) uses the same tools during installation that you will later use in maintaining the system. In installing the system the "orthodox" way you progressively learn how it works and how to maintain it. Archinstall on the other hand, abstracts the tasks is a way that is specific to the installer, so if a user later needs to change something done by the installer, then the user will have to learn/use a different tool. It doesn't teach you, it does it for you.

21 points

Refind, because of how independent, decoupled it is from any of the OSs installed, so it is the best for dual boot multiple Linuxes.

I used to use grub, but it is tightly coupled with the partition/OS that installed it (it is the only one that can update it), so every time I update other Linux it won't boot until I reboot into the grub owner to update grub, and that gets old really fast.

24 points

I'm new to arch, been here about a month, and just had my first breakage: fsck failed on an auxiliary partition and the system wouldn't boot (not even a recovery terminal, apparently on arch disabling root login disables the recovery terminal, a bit of a weird setting). So I had to boot into another OS to fix my arch install, not the ideal situation.

1 points

I setup sudo and disabled the root login, but a few minutes ago I had a failed fsck at boot and it couldn't drop me into a root terminal for recovery and that was a problem (I couldn't do anything, just retry and fail again). Is there anyway I can disable normal root login, but still allow a recovery root shell in case of boot problems?

(btw: this time I used a previous Ubuntu installation I still have on another partition to fix the fsck).

1 points

There is no cli options to specify beforehand which packages of a group I want/don't want? So I don't have to answer any interactive prompts in the middle of the process.

I don't like interactive interfaces, they are not replicable, I can't just run the same command on other computer and get the same result. So if pacman asks me anything I normally ctrl-cout of it and try to rewrite the original cli command so it doesn't throw the prompt at me, but I hit a block wall wen it comes to installing groups.

For example: I want to install the whole gnome group with the exception of Epifany (because I use Firefox instead). So I thought --ignore could help me there, and tried pacman -S --needed gnome --ignore epiphany. But pacman takes the --ignore and the group as conflicting orders (instead of assigning precedence to the ignore as I would expect) therefore it and asks me if I really want to ignore (which defeats the whole purpose). Also it still asks me to confirm the other gnome packages, I would still be missing a --allor something to inform pacman that it should install all not ignored.

1 points

Thanks, I think I'll go the RSS reader route.

About cylon, I had a look at that, it is close to what I'm trying to build in regards to functionality, but the interface and how things are presented is very different from what I'm trying to achieve (I'll probably check it further later so see if I can pluck some functionality from it).

To detail a bit further, my small script should present all the information I need in a format similar to a "git status", that is, here is a list of things that are abnormal and a few commands you could use to fix those. Is is mostly a tool for me to learn arch commands (I'm new, coming from a debian/ubuntu background), so I don't want it to run the actual tasks from me, just remind me of them and of the commands that can be useful to deal with them, like flashcards. For example the current output looks like this (but with color):

Extra packages not in my personal packagelist:
  (use "myarch add ..." to add to my packagelist)
  (use "sudo pacman -Rs ..." to remove)
  (use "sudo pacman -D --asdeps ..." to mark as dependency)
	file-roller	
	pacutils	
Orphan dependencies (pacman -Qtdq):
  (use "sudo pacman -Rs ..." to remove)
  (use "sudo pacman -D --asexplicit ..." to mark as explicit)
	cmake	
	vala	
Updates available (checkupdates):
  (use "sudo pacman -Syu" to update)
	kmod	 28-1 -> 29-1
	linux	 5.12.5.arch1-1 -> 5.12.6.arch1-1
	lz4		 1:1.9.3-1 -> 1:1.9.3-2
	mesa	 21.1.0-1 -> 21.1.1-1
1 points

Gnome, tweaked to have a slightly more Windows like experience (dash-to-panel on the bottom, set alt-tab to alternate windows instead of apps, enable minimize and maximize buttons). I really like Gnome-shell's unified entry point (the meta key used both to overview and to launch apps); and I really like the clean aesthetic of the system and default apps. I use dash-to-panel because I don't like the top bar (for me the top of the screen is prime space for clicking, so it is where my browser tabs should be), so I tweak it to a bottom bar.

Recently I tried KDE for a while (also tweaked for a slightly more windows like experience), I was very impressed by it, but in the end I decided it wasn't for me. KDE apps like to wear their features on their sleeves, with more toolbars apparent, which is great for easy access, but a bit too much visual stimulus for me.

2 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.