It's not just different DEs, but also configuration around the DEs. For instance on Arch, switching to Wayland/sway from x11/i3 is kind of a big deal for your system. You need configuration changes in different files. Rolling back is not just uninstalling some package, but also reverting the changes to files in /etc. On NixOS you have more control over that configuration. This control is on top of implicit package installation: your system configuration requires the use of Sway, so NixOS will install Sway. The packages are part of your configuration. The configuration is easier to read (could all be in a single file). Rollbacks are as simple as choosing a previous configuration from grubs boot entries, but can also be done at runtime (apart from kernel upgrades).
You usually only need to reinstall the bootloader. The kernel and all contents of your root filesystem can stay the same. Strictly speaking it isn't required to run gpt, but if you want to convert from mbr to gpt you could use a tool like http://www.rodsbooks.com/gdisk/mbr2gpt.html.
If things go wrong data loss is possible, so always make a backup just to be sure.
It's hard to check this. The iso could be altered at any time. The kernel itself does the actual hosting, so you could avoid using DriveDroid and use bash to host images manually.
That said, if you're worried about it exploiting the ISO to take over a PC, I would be more worried about rooted applications (or even non rooted applications) tracking data on the phone itself. There is much more incentive for devs to do this (more valuable data) and it is easier to do so.
Dev of DriveDroid here. You can host images by directly calling the kernel using bash like Badel2 mentions. DriveDroid merely makes it convenient, solves a number of device-specific differences (thank you Google and manufacturers!) and makes obtaining images more streamlined.
I do need to add that because different devices Use different paths in sys for the lun devices, you need to look up those paths for yourself. Use something like find /sys -name 'file' for possible matches.
In addition there are various ways to enable mass storage on different phones. Usually this is done using functions in /sys, but Motorola, Samsung and HTC have their own ways of doing things on some of their phones.
Also, because phones often come with incorrect idProduct and idVendor for the USB configurations, you'll find that for Windows it is sometimes necessary to change those two values into something unique so that windows recognizes a new device and attempts to install it's drivers. These values are also in /sys.
I'm on mobile right now so I can't give a better explanation or more specific paths atm.
To touch on DriveDroid not being open source: I agree that it should be for a rooted application. DriveDroid is closed because I'd like to make some money from the work that is put in, experiment with owning a paid product and invest in servers/devices. Open source doesn't seem to work that well with making money and Google Play: easy to clone, hard to take down.
I had this problem as well, on arch as well as Debian. At the time it had to do with the power supply or the sdcard. Since then I've replaced both and haven't had any trouble.
I once made a bash script to do this. It's not ideal at all, but I could true it for laptop+desktop. In the end though, stuff like that seems to break if it isn't updated and tested regularly.
A good alternative for this is nixos, where you describe your system configuration in a file. You can update a machine with this as well. Even better, combine your configuration with someone else's by overriding certain attributes of the system. It's very flexible.
If you're interested in immutable systems, you should really check out NixOS. It is build around this premise. IMO it is quite a good approach compared to other distros.
It would be pretty cool if normal usb controllers could be setup to be an usb-slave. Most phones and beaglebone boards can do this, but I'm not aware of any laptop or PC.
Sharing network, disk, keyboard and mouse over usb are interesting use cases.
MTP could be handy too, but ethernet with scp/samba is faster anyway :/.
That's exactly how I thought about it initially. I still think this somewhat is true, however one part of Arch that is still lacking in NixOS is the community: wiki and packages. On the flip side, you do get a stable system while still being able to install everything (that is in nixpkgs) with a lot of customizability. In addition I see nix as the next step in package management and system configuration, so it's nice to get a feel for it. Lastly it's much easier to contribute code and packages because everything is on github and builds are easily reproducible.
I would still recommend Arch for a practical desktop for powerusers at this time... I hope this may change in a year or so.
Yes, it has all that. You can just use the liveusb to see whether you like it. But do know that NixOS is quite different in the way of packages and system configuration. I see it as better than most distros, but it can at times be impractical (harder to do things quick and dirty IMO).
Hmm, that's a good point. I'm kind of doubting it, though it only needs to copy the files from the iso to the usb drive (efi/boot included). Not 100% sure if unetbootin does that.
dd doesn't work with the current images of NixOS. The ISOs aren't generated as hybrid ones, so you'll need to use something like Unetbootin (<- this is the currently supported method).
Ooh, really cool! This could potentially be very interesting for building environments for others systems. Maybe create a mini system for raspberry pi without messing with root? Could be part of a makefile or something.
This might also be really interesting for mkarchiso. If only ext4 coud be mounted as a non-root user :(.
Yes! This would be awesome! Multiple maintainers, easy way to see history, updating without browser, etc. I do hope there will also be some way to easily submit pull requests.
I get where op is coming from: github offers a standard (though proprietary) and easy way to do pull requests. I do hope it'll be easy for nonmaintainers to submit patches that can be easily merged by a maintainer.
Quickshell can also handle polkit! https://quickshell.org/docs/v0.3.1/types/Quickshell.Services.Polkit/
I've tried doing the same using depthmap generation: https://github.com/thygate/stable-diffusion-webui-depthmap-script The extension can also generate 3d meshes from the depthmap.
What was your method to generate these?
Yes! I was thinking of a MicroMacro alternative.
Made an 512x512 inverse picture of https://gist.github.com/nothub/699a85b808276a406c2c3122a4761b8a and (of course) used qrcode monster:
It's not just different DEs, but also configuration around the DEs. For instance on Arch, switching to Wayland/sway from x11/i3 is kind of a big deal for your system. You need configuration changes in different files. Rolling back is not just uninstalling some package, but also reverting the changes to files in /etc. On NixOS you have more control over that configuration. This control is on top of implicit package installation: your system configuration requires the use of Sway, so NixOS will install Sway. The packages are part of your configuration. The configuration is easier to read (could all be in a single file). Rollbacks are as simple as choosing a previous configuration from grubs boot entries, but can also be done at runtime (apart from kernel upgrades).
You usually only need to reinstall the bootloader. The kernel and all contents of your root filesystem can stay the same. Strictly speaking it isn't required to run gpt, but if you want to convert from mbr to gpt you could use a tool like http://www.rodsbooks.com/gdisk/mbr2gpt.html.
If things go wrong data loss is possible, so always make a backup just to be sure.
It's hard to check this. The iso could be altered at any time. The kernel itself does the actual hosting, so you could avoid using DriveDroid and use bash to host images manually.
That said, if you're worried about it exploiting the ISO to take over a PC, I would be more worried about rooted applications (or even non rooted applications) tracking data on the phone itself. There is much more incentive for devs to do this (more valuable data) and it is easier to do so.
Dev of DriveDroid here. You can host images by directly calling the kernel using bash like Badel2 mentions. DriveDroid merely makes it convenient, solves a number of device-specific differences (thank you Google and manufacturers!) and makes obtaining images more streamlined.
I do need to add that because different devices Use different paths in sys for the lun devices, you need to look up those paths for yourself. Use something like
find /sys -name 'file'for possible matches.In addition there are various ways to enable mass storage on different phones. Usually this is done using
functionsin /sys, but Motorola, Samsung and HTC have their own ways of doing things on some of their phones.Also, because phones often come with incorrect idProduct and idVendor for the USB configurations, you'll find that for Windows it is sometimes necessary to change those two values into something unique so that windows recognizes a new device and attempts to install it's drivers. These values are also in /sys.
I'm on mobile right now so I can't give a better explanation or more specific paths atm.
To touch on DriveDroid not being open source: I agree that it should be for a rooted application. DriveDroid is closed because I'd like to make some money from the work that is put in, experiment with owning a paid product and invest in servers/devices. Open source doesn't seem to work that well with making money and Google Play: easy to clone, hard to take down.
dd won't work because you're copying a iso filesystem to a partition block that should be a fat filesystem. Just copy the files/contents of iso.
I have done this manually in the past using makepkg and repo-add, but it seems this project automates stuff a bit: https://github.com/BrainwreckedTech/aurpb
I had this problem as well, on arch as well as Debian. At the time it had to do with the power supply or the sdcard. Since then I've replaced both and haven't had any trouble.
I once made a bash script to do this. It's not ideal at all, but I could true it for laptop+desktop. In the end though, stuff like that seems to break if it isn't updated and tested regularly.
A good alternative for this is nixos, where you describe your system configuration in a file. You can update a machine with this as well. Even better, combine your configuration with someone else's by overriding certain attributes of the system. It's very flexible.
If you're interested in immutable systems, you should really check out NixOS. It is build around this premise. IMO it is quite a good approach compared to other distros.
EDIT: /u/zbeptz already commented http://www.reddit.com/r/archlinux/comments/37xwi9/how_do_you_setup_a_statelessimmutable_system/crqt514 sorry for double post.
It would be pretty cool if normal usb controllers could be setup to be an usb-slave. Most phones and beaglebone boards can do this, but I'm not aware of any laptop or PC.
Sharing network, disk, keyboard and mouse over usb are interesting use cases.
MTP could be handy too, but ethernet with scp/samba is faster anyway :/.
That's exactly how I thought about it initially. I still think this somewhat is true, however one part of Arch that is still lacking in NixOS is the community: wiki and packages. On the flip side, you do get a stable system while still being able to install everything (that is in nixpkgs) with a lot of customizability. In addition I see nix as the next step in package management and system configuration, so it's nice to get a feel for it. Lastly it's much easier to contribute code and packages because everything is on github and builds are easily reproducible.
I would still recommend Arch for a practical desktop for powerusers at this time... I hope this may change in a year or so.
Yes, it has all that. You can just use the liveusb to see whether you like it. But do know that NixOS is quite different in the way of packages and system configuration. I see it as better than most distros, but it can at times be impractical (harder to do things quick and dirty IMO).
Does it have an efi directory on the usb disk? Then it would likely be able to boot on uefi.
Hmm, that's a good point. I'm kind of doubting it, though it only needs to copy the files from the iso to the usb drive (efi/boot included). Not 100% sure if unetbootin does that.
dd doesn't work with the current images of NixOS. The ISOs aren't generated as hybrid ones, so you'll need to use something like Unetbootin (<- this is the currently supported method).
Zim - personal wiki
yEd - nice for creating graphs / visualizing relations
Speedcrunch - calculator
Oh i didnt know that supported ext4 or partitions. Ill give it a try.
Ooh, really cool! This could potentially be very interesting for building environments for others systems. Maybe create a mini system for raspberry pi without messing with root? Could be part of a makefile or something.
This might also be really interesting for mkarchiso. If only ext4 coud be mounted as a non-root user :(.
Yes! This would be awesome! Multiple maintainers, easy way to see history, updating without browser, etc. I do hope there will also be some way to easily submit pull requests.
I get where op is coming from: github offers a standard (though proprietary) and easy way to do pull requests. I do hope it'll be easy for nonmaintainers to submit patches that can be easily merged by a maintainer.
Core is already on git: https://projects.archlinux.org/svntogit/packages.git/
Awesome! Nice work.