Skip to content

u/UberCanuck

In this archive from May 2014 to Jun 2019

0
posts
34
comments
0
media
51
score

Our company encrypts all roaming machines, with Linux using LUKS.

​

If you Google, you will find a number of comparisons of LUKS vs (fill in the blank, BitLocker for example). Most are around knowledge and expertise, not risk. See this Comparison of Disk Encryption Software. Software has been around since 2004 and is solid from my perception.

​

Two nice features, LUKS allows up to 8 passwords to access, and supports various hash and ciphers (choose more secure cipher over speed, or the reverse, for examples).

2 points

I do LVM on LUKS frequently - normally in Arch, but have done and like the (newest updates to the) openSUSE installer.

​

Using the Expert Partitioner. The single physical disk, create a GPT partition table. Then you want 3 physical partitions:

​

  1. 1MiB as Raw Volume, BIOS Boot
  2. 500MiB as Operating System, Linux Native, Format as ext2, mount point /boot
  3. Remaining space as Raw Volume, Linux LVM, Encrypt Device (enter password)

​

Thats not all. You need to create the logical volumes inside the encrypted LVM (LUKS). [so you created the LUKS encrypted physical volume for LVM, then you add a volume group, then all the other logical volumes).

​

Go to Volume Management (still in Expert Partitioner), hit Add Volume Group button, create a name (lvm works) then Add All and Next. Now go to Logical Volumes, Add Logical Volume, here you repeat this to add the following 3 partitions:

​

  1. Name it root, then give it a size like 25GiB, then select Operating System, leave it at BtrFS, and / mount point, do NOT Encrypt Device here
  2. Name another called swap, something like 2GiB (for non-laptops), choose Swap from role, leave all the defaults, again do NOT Encrypt Device
  3. Finally name it home, give it the maximum size, choose Data and ISV Applications, XFS or (I recommend) ext4 is good here, again do NOT Encrypt Device, the rest is default

That is really it. Booting will only ask the LUKS password once, your data is stored within the encrypted volume group.

​

Using this method, you can also resize within the single physical volume (though you can't shrink the XFS partition, you can extend it). Note, openSUSE Leap 15.1 installer seems to have a bug warning that a BIOS Boot Partition is needed - if you did it all as I did above, it will boot fine.

​

Hope that helps.

1 points

Not sure what you are looking for in a distro...?

If stability, then CentOS/RHEL/SLES is the way to go. A step down you are in the Ubuntu LTS, Debian Stable (some would argue it would be the prior list), openSUSE Leap distros. (we can keep going but you get the idea)

Do updates, avoid 3rd party repos (as much as possible), don't mess with base package files (including configuration). Ensure you follow online help for the exact distro and version you are using. Maybe find a Linux-mentor to ask questions before doing anything major to your installation.

I have a friend, a few years back at a new job he got a OSX box, coming from Linux he was used to installing packages, editing /etc configuration. He killed the box, had to reinstall. I told him to only muck in his home folder, life was more stable after that.

Best of luck!

1 points

As mentioned, the wiki page is very good.

Here are my steps when I setup Pg:

# lets use PostgreSQL 
pacaur -S postgresql pgadmin3
sudo -i -u postgres
initdb --locale en_US.UTF-8 -E UTF8 -D '/var/lib/postgres/data'
exit
sudo systemctl start postgresql.service
sudo systemctl enable postgresql.service
sudo -i -u postgres
#since this is a personal dev box, make my login superuser
createuser -s jeff
exit

At this point you can use psql as your own login user (in my case 'jeff'), you could also create a new db if you wish createdb anotherdb. This setup is for a developer machine, not a shared server - I don't need or want a password.

If you are setting up a shared resource, then this official docs are very good.

2 points

I've always used LVM, even without encrypting. It allows options with your partitioning setup later - adding a 2nd drive and then extending home for example, maybe increasing or decreasing swap - its much easier with LVM instead of partitioning. Encrypting is just gravy :-) - or mandatory, at least nowadays, with portable systems.

1 points

Thats a good question.

New to Linux, early 1996, I recall the learning curve with my personal transition from other operating systems. I loved the philosophy and community that I aggressively devoured all that I could.

I came to Arch about 18 months back and loved it - mostly about its core principals, the Arch Way. Would my experience have been the same all those years back (of course Arch wasn't around yet) - doubt it, not that I wouldn't have tried.

So my advice isn't to pick a distribution based on branding, or which desktop it uses - but on philosophy and community (as well as your personal requirements).

With Arch, you found a great distro - I hope it meets all your needs and you have fun with it!

1 points

LUKS on LVM.

This gives you the flexibilty of LVM, the ability to strip the drives (in effect having 1.5 TB to work with), and security of LUKS.

As for individual partitions; what is the system going to be used for? Going to have a db using /var, do you install 3rd party apps to /opt, etc. Again, using LVM, gives you the ability to resize as needed.

1 points

I use LVM (I use LVM on every system I set up) and encrypt all my personal systems with dm-crypt. I use LVM on LUKS for single drive (no chance for expansion) use cases - like laptops. Then I use LUKS on LVM for all other systems, adding more drives is never an issue (and is very easy).

If I follow the thread, you are mainly concerned for your ssh private key on your laptop from being stolen right? What about encrypting your swap and tmp space? No data in /var that you are concerned with (in a PostgreSQL database for examle)?

Make your life easier, use LVM on LUKS. I have some Gists that might help. Try this one - its out of date for how I do my install now, but it has the relevant stuff for your encryption - has worked for me 25+ times on various systems. A disclaimer, its not a script - but rather notes on how I did the base install.

Hope that helps!

1 points

Recently, with my main ultrabook, I had all sorts of NetworkManager issues (seemingly driver related, DNS related, access points that work intermittently, etc) with connectivity. I mucked with it for months, and just got more frustrated. Having enjoyed Wicd previously, was disappointed to find it was no longer actively developed - so I chose netctl as a replacement. Really only needing to support 2 wifi networks, my wireless connectivity is now 100% working - using wifi-menu for any new networks. (I'm asking Santa for a nice GUI interface for KDE :-))

While I am not saying your issues were the same as mine, my frustrations with NetworkManager may spark an interest to keep your sanity and try another option.

2 points

I began my first install with some trepidation, having heard how difficult an install it was supposed to be. The reality was something much more pleasant.

I followed the Beginners Guide and ended quite quickly with a working base system. Following more wiki documents, I installed a desktop environment as well as a number of other tools. Before I knew it, and much faster than my experiences with Gentoo had taught me, I had a fully functional system ready to roll!

I was shocked, thrilled and hooked!

1 points

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.