I've tried several desktop environments on a 15.5 inch 4K display. The best scaling was through KDE Plasma. A mixture of font scaling on gnome through the accessibility features, integer scaling, and xrandr can get a decent looking desktop on gnome, too, but it's infuriatingly finicky. If you often plug and unplug an external monitor with a different pixel density prepare for your life to suck. I've had less experience with xfce, but it seemed to work without too much fuss.
You can install any of these desktop environments on most Linux distributions, or find a spin which is preconfigured to use it. As for distros, personally, I like Fedora or openSUSE.
You should check out IPFS. It's a network protocol that aims to be a distributed, permanent, and content addressable replacement to HTTP. It could potentially solve a lot of issues that cause massive data libraries to be lost, and it's just a really cool piece of tech. Pulling books from the closest peer is possible.
You should repost this in /r/DataHoarder , they love this stuff. Personally, I like the suggestions here. Particularly seafile. Spideroak is also very good, and has a mobile app, but it's not open source.
Originally, back in ye olde DOS days, IBM-compatible computers booted using the MBR semi-standard. MBR is certainly capable, but it's a pretty garbage standard that's only in place because it is.
Good explanation. A minor correction, don't you mean BIOS here? MBR is the partition table scheme, not the firmware.
Secure Boot doesn't really protect from much.
It may be of interest to OP that this is mostly because of Microsoft's own blunder. They released a workaround for developers that was leaked. With it, SecureBoot can be circumvented.
Perhaps you should consider different formats. I like VUE (visual understanding environment) for that sort of thing, or the yEd graph editor. Minidomo is also nice.
I'm on mobile, so I must be concise, but check out man fstab and the arch wiki on /etc/fstab, the configuration file used to specify where filesystems are mounted on boot.
Once you install the OS it needs to be installed to disk else there would be nothing to copy to RAM, assuming you have an SSD with SATA controller, you'd be looking at 600MB/s top read speed, then each boot would copy at that rate or lower to RAM. If anything goes wrong or you get a powercut and such, you'll of course lose any data that you've not sync'd back to disk.
Sounds like I need a good way to sync things back to the disk. This is for learning purposes mostly (although, if successful, I may copy part of the solution to my host OS to save my SSD some writes).
For this reason, I'm trying to stay away from puppy and the like. Otherwise, puppy would be the simplest way to get it done. Since I'm doing this on a virtual machine running on a laptop which has 32GB of RAM, it should be pretty safe.
Mostly would be fine, too. I guess I misphrased that last comment. Does the Linux kernel really make processes use as much RAM as it can by default?
I often start an application, then see the amount of memory it consumes decrease in top after a few minutes. I assume this is because some of the resources it has stored in RAM are going to the disk, to be retrieved later as they're needed.
Neat trick. pivot_root is certianly useful for this kind of thing.
Most newer distros that use UEFI have something called an initramfs as part of their boot process. It's like a compressed filesystem that the kernel loads before pivot_rooting into the root fs. Kind of like the tarred up root volume you described making.
This is used to load (mostly filesystem or network) drivers needed to access the / mountpoint, or for handling situations where the destination you're booting to may change.
Since this exists, one possible solution would be to write an init system script (in my case, systemd), run from the initramfs. This script would copy the contents of the root file system to a tmpfs, and then pivot_root there instead. I'd have to find some way to copy files from there to the filesystem I used to use for /, somehow, unless I don't care about losing data.
For my use case, (speeding up read access and monkeying around) I think I'll stick with copying a few frequently accessed directories to tmpfs mounts, and then syncing them somehow. Bind mounts look like a promising way to do that, but I don't understand them well right now.
That was a great suggestion, thanks! I'm currently looking at three possible solutions.
pivot_root into a copy of the root file system in a tmpfs, and use a cronjob to run rsync which will keep the root file system on disk in sync.
Bind mount frequently accessed directories to a tmpfs. This will keep everything in sync without using a cron job. All I have to do is set the correct mount options in /etc/fstab.
Just increase the swappiness to 1 with echo 1 > /proc/sys/vm/swappiness, as /u/henry_kr suggested. (Well, he suggested a setting of 0, but I think 1 is better.)
Each have thier own advantages and disadvantages. Presently, I only know how to do number 3. I still have some homework to do in order to figure out what the correct shared subtree mount options I'd need for number two. For number one, I think I may be able to get it working with a little more experimentation.
True, but the operating system usually won't keep everything loaded in RAM after a certain point in order to prevent excessive memory pressure. I don't really have a pressing need to have everything run exclusively out of RAM, but I think it would be fun and educational to get it working.
Well, it's certainly complicated but I don't think it's technologically infeasible. Especially considering in my case that I'm using BTRFS as my file system. Couldn't I just create a snapshot of everything to have a consistent state, then send that over the network? I'm sure there's a way, and someone smarter than me has probably already figured it out.
Edit: Just to clarify the restore would certainly require turning off the system, but backing up the state of the system necessary to boot from without shutting down should be possible. ...but a pain in the ass.
That would satisfy all my requirements other than not having to shutdown / reboot into another environment (hot backup). I think I'll end going with clonezilla for system images anyways, though, since setting up hot backups which can be booted seems too complex and time consuming. Thanks for the advice.
Thanks for your advice! I suppose I was overstating the need to boot from my incremental backups directly. I just really liked the idea of never having to manually make system images in case my first bootable backup fails.
...now, I think, I'm off to read up on cron, scp, and rsync. :-)
You might try using the windows 'system image' backup utility instead. Then just install windows 10 to a vm normally, mount the media you saved the 'system image' to, and restore from it. The system image utiltiy will save all of your documents and programs at the file level only for your windows partitions. You may lose your old drivers, but since it's a VM that shouldn't matter. Here's a how-to guide I found on the subject. Don't use Acronis, that's a different beast. http://www.howtogeek.com/howto/4241/how-to-create-a-system-image-in-windows-7/
That will copy every block on your old SSD to the new one (even the ones that don't contain any files). You'll save your new drive a lot of wear by using something like clonezilla instead, which can copy things at the file level when appropriate.
You might want too look into a bnc, such as znc. They're designed to keep you connected to channels and log the rooms. No need to reinvent the wheel if you want persistent irc sessions.
Edit: Unless you're just trying to have fun scripting. ;)
You may find EagleMode interesting. It's a zoomable user interface. If you have a directory full of text files and a monitor with high enough resolution you can see the full contents of each text file rendered as a preview. Just zoom in if it's too small.
If your text files are scattered across your file system tree, you can symlink them all to one folder.
As others have mentioned, there are a lot of tools for monitoring and viewing text files. Perhaps if you elaborate on exactly what you're doing that requires you to rapidly flip through text files someone could suggest a better tool, or a different strategy altogether.
Sounds like you don't know what you're doing. You would need the repository on the cd to install from, so even if you were able to install dnf to your host machine you wouldn't have the software necessary to install the base system to a chroot. One possible solution would be to mount the install cd as a loopback device, and chroot to that.... but you should probably use a virtual machine, or look for a pre-made docker container instead.
Edit: Sorry for being rude, I just don't want to lead you down a frustrating rabbit hole when there are easier ways to accomplish your goal.
I don't have all the answers, but Dusty Mabe's blog post here looks like a good place to research the issue. He creates a yum repo from the cd and then uses dnf to install the base system to a chroot environment.
# Create a yum repo file for the dvd
mkdir /etc/yum.repos.d
cat <<EOF > /etc/yum.repos.d/dvd.repo
[dvd]
name=dvd
baseurl=file:///run/install/repo
enabled=1
gpgcheck=0
EOF
# Install the base system
dnf install -y --releasever=24 --installroot=/mnt/sysimage filesystem
# Copy over the dvd repo into the new sysroot
cp /etc/yum.repos.d/dvd.repo /mnt/sysimage/etc/yum.repos.d/
# Install more stuff now
dnf install -y --installroot=/mnt/sysimage --disablerepo=* --enablerepo=dvd @core @standard kernel btrfs-progs lvm2
...You'll also want to generate an initramfs using dracut (unless you don't plan to boot to it directly), and write an fstab. Also, I'd suggest using systemd-nspawn instead of chroot. It's easier.
A few people have already mentioned tmuxinator. Tmux plugin manager also has a few plugins that allow you to automatically save and restore sessions (including pane layout, open windows, etc). It doesn't seem as accurate in restoring pane positions as tmuxinator, but you may still find it useful. Check them out here.
I've tried several desktop environments on a 15.5 inch 4K display. The best scaling was through KDE Plasma. A mixture of font scaling on gnome through the accessibility features, integer scaling, and xrandr can get a decent looking desktop on gnome, too, but it's infuriatingly finicky. If you often plug and unplug an external monitor with a different pixel density prepare for your life to suck. I've had less experience with xfce, but it seemed to work without too much fuss.
You can install any of these desktop environments on most Linux distributions, or find a spin which is preconfigured to use it. As for distros, personally, I like Fedora or openSUSE.
You should check out IPFS. It's a network protocol that aims to be a distributed, permanent, and content addressable replacement to HTTP. It could potentially solve a lot of issues that cause massive data libraries to be lost, and it's just a really cool piece of tech. Pulling books from the closest peer is possible.
You should repost this in /r/DataHoarder , they love this stuff. Personally, I like the suggestions here. Particularly seafile. Spideroak is also very good, and has a mobile app, but it's not open source.
Good explanation. A minor correction, don't you mean BIOS here? MBR is the partition table scheme, not the firmware.
It may be of interest to OP that this is mostly because of Microsoft's own blunder. They released a workaround for developers that was leaked. With it, SecureBoot can be circumvented.
Perhaps you should consider different formats. I like VUE (visual understanding environment) for that sort of thing, or the yEd graph editor. Minidomo is also nice.
Good suggestion, I'll give it a shot.
I'm on mobile, so I must be concise, but check out man fstab and the arch wiki on /etc/fstab, the configuration file used to specify where filesystems are mounted on boot.
Sounds like I need a good way to sync things back to the disk. This is for learning purposes mostly (although, if successful, I may copy part of the solution to my host OS to save my SSD some writes).
For this reason, I'm trying to stay away from puppy and the like. Otherwise, puppy would be the simplest way to get it done. Since I'm doing this on a virtual machine running on a laptop which has 32GB of RAM, it should be pretty safe.
Mostly would be fine, too. I guess I misphrased that last comment. Does the Linux kernel really make processes use as much RAM as it can by default?
I often start an application, then see the amount of memory it consumes decrease in
topafter a few minutes. I assume this is because some of the resources it has stored in RAM are going to the disk, to be retrieved later as they're needed.Neat trick.
pivot_rootis certianly useful for this kind of thing.Most newer distros that use UEFI have something called an
initramfsas part of their boot process. It's like a compressed filesystem that the kernel loads beforepivot_rooting into the root fs. Kind of like the tarred up root volume you described making.This is used to load (mostly filesystem or network) drivers needed to access the
/mountpoint, or for handling situations where the destination you're booting to may change.Since this exists, one possible solution would be to write an init system script (in my case, systemd), run from the
initramfs. This script would copy the contents of the root file system to atmpfs, and thenpivot_rootthere instead. I'd have to find some way to copy files from there to the filesystem I used to use for/, somehow, unless I don't care about losing data.For my use case, (speeding up read access and monkeying around) I think I'll stick with copying a few frequently accessed directories to
tmpfsmounts, and then syncing them somehow. Bind mounts look like a promising way to do that, but I don't understand them well right now.Thanks, that's very interesting. I'll let you know what I come up with.
That was a great suggestion, thanks! I'm currently looking at three possible solutions.
pivot_rootinto a copy of the root file system in atmpfs, and use a cronjob to runrsyncwhich will keep the root file system on disk in sync.tmpfs. This will keep everything in sync without using a cron job. All I have to do is set the correct mount options in/etc/fstab.echo 1 > /proc/sys/vm/swappiness, as /u/henry_kr suggested. (Well, he suggested a setting of 0, but I think 1 is better.)Each have thier own advantages and disadvantages. Presently, I only know how to do number 3. I still have some homework to do in order to figure out what the correct shared subtree mount options I'd need for number two. For number one, I think I may be able to get it working with a little more experimentation.
Arrg, I hated troubleshooting that issue on my dell laptop! I ended up learning way too much about Intel RST in the process.
True, but the operating system usually won't keep everything loaded in RAM after a certain point in order to prevent excessive memory pressure. I don't really have a pressing need to have everything run exclusively out of RAM, but I think it would be fun and educational to get it working.
Haha, sounds fun and dangerous. ;)
Well, it's certainly complicated but I don't think it's technologically infeasible. Especially considering in my case that I'm using BTRFS as my file system. Couldn't I just create a snapshot of everything to have a consistent state, then send that over the network? I'm sure there's a way, and someone smarter than me has probably already figured it out.
Edit: Just to clarify the restore would certainly require turning off the system, but backing up the state of the system necessary to boot from without shutting down should be possible. ...but a pain in the ass.
That would satisfy all my requirements other than not having to shutdown / reboot into another environment (hot backup). I think I'll end going with clonezilla for system images anyways, though, since setting up hot backups which can be booted seems too complex and time consuming. Thanks for the advice.
Thanks for your advice! I suppose I was overstating the need to boot from my incremental backups directly. I just really liked the idea of never having to manually make system images in case my first bootable backup fails.
...now, I think, I'm off to read up on cron, scp, and rsync. :-)
You might try using the windows 'system image' backup utility instead. Then just install windows 10 to a vm normally, mount the media you saved the 'system image' to, and restore from it. The system image utiltiy will save all of your documents and programs at the file level only for your windows partitions. You may lose your old drivers, but since it's a VM that shouldn't matter. Here's a how-to guide I found on the subject. Don't use Acronis, that's a different beast. http://www.howtogeek.com/howto/4241/how-to-create-a-system-image-in-windows-7/
That will copy every block on your old SSD to the new one (even the ones that don't contain any files). You'll save your new drive a lot of wear by using something like clonezilla instead, which can copy things at the file level when appropriate.
You might want too look into a bnc, such as znc. They're designed to keep you connected to channels and log the rooms. No need to reinvent the wheel if you want persistent irc sessions.
Edit: Unless you're just trying to have fun scripting. ;)
You may find EagleMode interesting. It's a zoomable user interface. If you have a directory full of text files and a monitor with high enough resolution you can see the full contents of each text file rendered as a preview. Just zoom in if it's too small.
If your text files are scattered across your file system tree, you can symlink them all to one folder.
As others have mentioned, there are a lot of tools for monitoring and viewing text files. Perhaps if you elaborate on exactly what you're doing that requires you to rapidly flip through text files someone could suggest a better tool, or a different strategy altogether.
Sounds like you don't know what you're doing. You would need the repository on the cd to install from, so even if you were able to install dnf to your host machine you wouldn't have the software necessary to install the base system to a chroot. One possible solution would be to mount the install cd as a loopback device, and chroot to that.... but you should probably use a virtual machine, or look for a pre-made docker container instead.
Edit: Sorry for being rude, I just don't want to lead you down a frustrating rabbit hole when there are easier ways to accomplish your goal.
I don't have all the answers, but Dusty Mabe's blog post here looks like a good place to research the issue. He creates a yum repo from the cd and then uses dnf to install the base system to a chroot environment.
This seems to be the most interesting section of his fedora 24 kickstart script.
...You'll also want to generate an initramfs using dracut (unless you don't plan to boot to it directly), and write an fstab. Also, I'd suggest using systemd-nspawn instead of chroot. It's easier.
Have fun!
A few people have already mentioned tmuxinator. Tmux plugin manager also has a few plugins that allow you to automatically save and restore sessions (including pane layout, open windows, etc). It doesn't seem as accurate in restoring pane positions as tmuxinator, but you may still find it useful. Check them out here.