This does it for me, but I'm running Debian 8 on this machine.
Have you checked if it might be an issue of env variables, that is, setlayout requires some env variable to be set which is the case when you run it manually, but not yet when it's run from the startup script?
Seems fine to me. I have a comparable setup (two disks, one with password, holding the key for the other LUKS volume), though my machine runs Ubuntu.
Having multiple passphrases...
Yes, this is possible, a LUKS volume has 8 "key slots". Take note which password (or keyfile) you put in which slot, AFAIK there is no way to find out which one it is later.
Mount hdd_pool and make that data available and sharable with every user of the system...
If you use a keyfile that's available on the root filesystem, that should be no problem. For later comparison, my /etc/crypttab looks like this:
In general, take care for each abstraction layer (partition, LUKS volume, LVM volume) that the data inside is aligned with the block boundaries of the storage device beneath it. If something is not aligned properly, it may have a serious performance impact later. I usually align everything to 1MiB boundaries, though the typical block size of 4KiB will probably work just as well.
Partitions: If you use parted, add the option "-a optimal", this will align partition to 1MiB boundaries. You can check existing partitions created with other tools with parted too: "align-check optimal <number>" when running parted in interactive mode.
LUKS: Create the container with "cryptsetup --align-payload 2048 ...", this will align the data in side to 1MiB boundaries. You can check the alignment of an existing container with "cryptsetup luksDump <device> | grep "Payload offset:"".
LVM: Create your physical volumes with: "pvcreate --dataalignment 1048576b <device>". Check the alignment of existing physical volumes with "pvs --units b -o +pe_start <device>".
I'm surprised no-one else mentioned configuration management tools so far. For everyone that has a hard time maintaining those symlinks to "all over the place", you should definitely have a look at a configuration management tool. Ansible is just one example, there are many more:
Brightness control was with an HP Elitebook 8440p. Alsa problems too. Nvidia, well, more or less everywhere all the time. Not saying it's not Nvidia's fault... Went back to having to write an xorg.conf configuration file for the first time in almost two years because of Nvidia last week.
On my main machine I've switched from Ubuntu to Arch and back again, I use Debian on the side (for servers) and had a couple of months with Fedora so far.
I came back to Ubuntu (and in fact, I originally switched from Windows to Ubuntu, way, way back) because of hardware support:
Turns out, I really, really like it when I can adjust the screen brightness on my laptop with the labelled Fn+F9 on my laptop out of the box. Or having volume up/down controls actually moving the right fader of all the ones that alsamixer finds. Or not having a very hard time fixing all other things that break when installing the proprietary graphics driver (Nvidia).
Yes, I'm sure these things can be fixed on any distro if Ubuntu can do it out of the box, but I also have other things to do apart from trying to understand barely documented alsa and pulseaudio configuration files.
I do see the appeal of having a bleeding edge distro like Arch. I see setting up everything yourself has merit. But, at the end of the day, I am with the operating system that I can shape reasonably close to my ideal workspace with the minimal amount of effort. And for me, that is righting some of the wrong choices Ubuntu made for me, rather than making all choices explicitly myself with Arch.
That said, when I need comprehensive explanations and howtos for a particular part of distro configuration I check out the Arch wiki no matter what distro I'm on. Because Arch has, by a large margin, the best documentation out there from all the distros I've looked at (well, except the Gentoo wiki before all its data was eaten back in 2010 or so).
Here's my ~/.config/autostart/setlayout.desktop:
This does it for me, but I'm running Debian 8 on this machine.
Have you checked if it might be an issue of env variables, that is, setlayout requires some env variable to be set which is the case when you run it manually, but not yet when it's run from the startup script?
For comparison, here are the tags Debian uses for its packages.
Seems fine to me. I have a comparable setup (two disks, one with password, holding the key for the other LUKS volume), though my machine runs Ubuntu.
Yes, this is possible, a LUKS volume has 8 "key slots". Take note which password (or keyfile) you put in which slot, AFAIK there is no way to find out which one it is later.
If you use a keyfile that's available on the root filesystem, that should be no problem. For later comparison, my /etc/crypttab looks like this:
In general, take care for each abstraction layer (partition, LUKS volume, LVM volume) that the data inside is aligned with the block boundaries of the storage device beneath it. If something is not aligned properly, it may have a serious performance impact later. I usually align everything to 1MiB boundaries, though the typical block size of 4KiB will probably work just as well.
Partitions: If you use parted, add the option "-a optimal", this will align partition to 1MiB boundaries. You can check existing partitions created with other tools with parted too: "align-check optimal <number>" when running parted in interactive mode.
LUKS: Create the container with "cryptsetup --align-payload 2048 ...", this will align the data in side to 1MiB boundaries. You can check the alignment of an existing container with "cryptsetup luksDump <device> | grep "Payload offset:"".
LVM: Create your physical volumes with: "pvcreate --dataalignment 1048576b <device>". Check the alignment of existing physical volumes with "pvs --units b -o +pe_start <device>".
I'm surprised no-one else mentioned configuration management tools so far. For everyone that has a hard time maintaining those symlinks to "all over the place", you should definitely have a look at a configuration management tool. Ansible is just one example, there are many more:
http://en.wikipedia.org/wiki/Comparison_of_open-source_configuration_management_software
I also use Ansible for my setup, I switched to it from Puppet. I've heard great things about cdist, but haven't had a look at it yet.
I'm assuming you're talking about Apport. That can be turned off.
Lucky you, then. I'm jealous!
Brightness control was with an HP Elitebook 8440p. Alsa problems too. Nvidia, well, more or less everywhere all the time. Not saying it's not Nvidia's fault... Went back to having to write an xorg.conf configuration file for the first time in almost two years because of Nvidia last week.
OpenSUSE definitely deserves a closer look on my next distro-hopping spree.
I know. That's why I stick to Ubuntu LTS. Two years of 'no problems' after everything's been set up once.
Someone who left Arch checking in.
On my main machine I've switched from Ubuntu to Arch and back again, I use Debian on the side (for servers) and had a couple of months with Fedora so far.
I came back to Ubuntu (and in fact, I originally switched from Windows to Ubuntu, way, way back) because of hardware support:
Turns out, I really, really like it when I can adjust the screen brightness on my laptop with the labelled Fn+F9 on my laptop out of the box. Or having volume up/down controls actually moving the right fader of all the ones that alsamixer finds. Or not having a very hard time fixing all other things that break when installing the proprietary graphics driver (Nvidia).
Yes, I'm sure these things can be fixed on any distro if Ubuntu can do it out of the box, but I also have other things to do apart from trying to understand barely documented alsa and pulseaudio configuration files.
I do see the appeal of having a bleeding edge distro like Arch. I see setting up everything yourself has merit. But, at the end of the day, I am with the operating system that I can shape reasonably close to my ideal workspace with the minimal amount of effort. And for me, that is righting some of the wrong choices Ubuntu made for me, rather than making all choices explicitly myself with Arch.
That said, when I need comprehensive explanations and howtos for a particular part of distro configuration I check out the Arch wiki no matter what distro I'm on. Because Arch has, by a large margin, the best documentation out there from all the distros I've looked at (well, except the Gentoo wiki before all its data was eaten back in 2010 or so).
What kylebaked said. Figure out exactly what xrandr commands you need to switch back and forth.
For inspiration, here are the ones I use frequently:
When you have that, add some custom keybindings to I3's configuration. The documentation for that seems to be here.
Edit: I accidentally a newline.
End of this list.
Back to top