• 13 Posts
  • 83 Comments
Joined 1 year ago
cake
Cake day: November 21st, 2023

help-circle
  • because zsh I swapped out ~ -> $HOME. In addition to some permission denied that you always get finding over the home dir, I get these weird hits:

    find "$HOME" -type l -exec /bin/sh /path/to/the/script "/path/to/target/dir" {} +
    /home/user/.konan/dependencies/x86_64-unknown-linux-gnu-gcc-8.3.0-glibc-2.19-kernel-4.9-2/x86_64-unknown-linux-gnu/lib64/libatomic.so
    /home/user/.mozilla/firefox/xxx000xx.someprofile/chrome/dir/file.css
    

    lib atomic is something I’ve heard of vaguely but certainly not anything I use. I couldn’t identify any way this file was doing anything outside the ~/.konan dir.

    the CSS files there were a few different ones in a couple different Firefox profiles. it’s the user customization. But I don’t think it should have anything to do with the directory I was asking for.

    If I give it a bit more of a hint, telling to look in ~/.config specifically, now I get some (but not all) the links I expect.

    find "$HOME/.config" -type l -exec /bin/sh /path/to/the/script "/path/to/target/dir" {} +
    /home/user/.config/dir02
    /home/user/.config/dir01/subdir/file
    /home/user/.config/dir01/subdir2/file2
    

    And suggesting it searches in the .konan dir where it found lib atomimc, it now doesn’t find anything.

    find "$HOME/.konan" -type l -exec /bin/sh /path/to/the/script "/path/to/target/dir" {} +
    

    Could be all kinds of things getting the way. Different versions of relevant tools, filesystems/setups, permissions…




  • You are thinking too hard I think in the wrong direction. Use Mint unless you have a strong feeling/need for something else. In which case, use that. Choice of first distro is not really that important. Pick a popular one and if it’s wrong for you, you’ll figure it out.

    What you haven’t mentioned is any research you have done regarding hardware support/compatibility for your specific device. I searched the specs you listed and it came up with some netbooks like CB012DX. I actually have an older, shittier version of this device running a debian derivative. (Mint is also in the debian family FYI.) And I’ve had fun installing various linuxes on even older, shittier chromenetbooks over the years.

    Assuming yours is in this ballpark, I have one really important piece of advice for you. Before you think anymore about it, download ISOs of your top 1 or 3 distro choices, flash them to USB and attempt to boot. These super cheap devices cut corners on components. It is not unlikely that you will have some hardware that either doesn’t have open source drivers, or has some sort of theoretical support that will be too esoteric for you to implement at your current skill level. It is quite common on these devices that everything works fine except networking or something like that. So you might be able to exclude some of your choices based on that. Try to find a distro that works reasonably well out of the box.

    You should find the various names your device goes by

    As you have probably read, booting from a flashed USB is non-destructive of you normal system (unless you choose to format your disk or something of course). Assuming you have no issues booting, try out all the hardware features you have like: trackpad (different kinds of click, drag, zoom etc), ethernet, wireless (2.4 + 5ghz network), bluetooth, speakers, headphones, external input device, external displays, fingerprint scanner, touch screen, all keys and buttons, cameras, mics, sensors, keyboard lights. Any external devices you like to use: mice, keyboards, dongles, should also be included. I suggest making a list and systematically checking each item.

    You can use this amazing tool called ventoy to flash one USB boot drive to have multiple distros available. You can even keep a windows ISO on there. It will even let you reserve a portion of the disk for persistent storage. Ventoy substantially improves this whole process so you don’t have to have 10 different USB disks floating around. It is well designed and straight forward to use.

    So on my current netbook, I was lucky that networking has been no problem. people with a slightly different model have to use an external wifi dongle (and not all wifi dongles are compatible with linux). I have never gotten anything form the speakers, but they might have arrived broken, apparently it’s pretty easy to blow out the speakers and I didn’t test while ChromeOS was still installed. Using an arch-based distro, the touch screen worked but now in Debian it doesn’t. I don’t really care about that. I really wanted Bluetooth to work and I couldn’t for the longest time til one day it just magically solved itself and I haven’t reinstalled since then because I am not sure I’d be able to re-solve it.

    The other piece of advice has to do with storage. Depending what software you run, it can require a bit of space. 64gb could be gone quickly. This will be somewhat controversial (for good reason) but I always end up devoting the full eMMC to the system partition and having a permanently mounted SD card for /home, user storage and maybe even some of the system temp directories. This goes against common advice because SD cards are more prone to failure. So you need to have a good backup plan or just accept the risk. But if you run out of storage space on your system drive you can get yourself into the kind of mess that requires reinstalling.

    In terms of both storage and RAM/CPU use, you will want to be extremely judicious of you application use. Firefox is a beast on any operating system.If you like to have a bunch of hungry tabs going on, you can’t really optimize the OS.












  • Ideally I’d like to avoid a script because my experience is they aren’t very durable. I make mistakes and they are difficult to troubleshoot. So I am trying to just use the tools that are already available in the system.

    But maybe there is something in the idea of using a second mount, like if

    • /home/user/folderApple is always empty
    • /home/user/folderApple-original mounts ontop of /home/user/folderApple at boot
    • then /mnt/drive/folderBanana also mounts ontop of /home/user/folderApple when/if it becomes available (later in the order)





  • For nonidentical devices you create additional packages prefixed with specific device name. You don’t need to link all packages at once with stow, pass a name of a package to link it alone.uuu

    Sooo… I find some way to share the dotfiles directory across devices (rsync, syncthing, git, nextcloud, DAV) then make specific subdirs like this?:

    ~
      - dotfiles
          - bash-desktop
             dot-bashrc
             dot-bash_profile
          - bash-laptop
             dot-bashrc
             dot-profile
             dot-bash_profile
    

    But what is the software doing for me? I’m manually moving all these files and putting them together in the specific way requested. Setting the whole thing up is most of the work. Anyone who can write a script to create the structure can just as easily write it to make symlinks. I’m sure I’m missing something here.


  • yadm is the one I liked the best and tried it a few times. fact is that I am unlikely to keep a repo like this even part way up to date. New files are created all the time and not added, old ones don’t get updated or removed. There’s not even a good way to notice in any file manager what is included and what’s not as far as I know. yadm doesn’t work with tools like eza which can display the git status of files in repos. (and it probably wouldn’t be feasible.)

    Plus I have some specific config collections already in change tracking and it makes more sense to keep it that way. Having so many unrelated files together in one project is too chaotic and distracting.

    It’s not realistic for me to manage merges, modules, cherry picking, branches all that for so many files that change constantly without direct intervention. Quickly enough git will tie itself into some knot and I won’t be able to pick it apart.