Skip to content

u/thread-safe

In this archive from Jan 2014 to Nov 2015

0
posts
10
comments
0
media
47
score

Here's my ~/.config/autostart/setlayout.desktop:

[Desktop Entry]
Type=Application
Name=Setlayout
Exec=/home/derp/bin/setlayout 0 3 3 0

NoDisplay=true
Icon=preferences-desktop-display
OnlyShowIn=LXDE;OPENBOX;
Terminal=false

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?

1 points

Does this make sense?

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:

# <target name> <source device>         <key file>      <options>
sdb4_crypt UUID=12345678-1234-1234-1234-1234567890ab none luks
sda2_crypt UUID=12345678-1234-1234-1234-123456789012 /root/luks/sea-green.key luks

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

2 points

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.

2 points

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.

1 points

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

32 points

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:

xrandr --auto
xrandr --output VGA-0 --off --output DP-0 --auto --output DP-1 --off --output DP-2 --off --output DP-3 --off --output DP-4 --off
xrandr --output VGA-0 --off --output DP-0 --mode 1920x1080 --rate 60.0 --output DP-1 --off --output DP-2 --off --output DP-3 --off --output DP-4 --off

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.

3 points

End of this list.

Back to top

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.