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).
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:
1MiB as Raw Volume, BIOS Boot
500MiB as Operating System, Linux Native, Format as ext2, mount point /boot
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:
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
Name another called swap, something like 2GiB (for non-laptops), choose Swap from role, leave all the defaults, again do NOT Encrypt Device
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.
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.
I used to use a script - and since you mentioned being new to GNU/Linux...
I currently use Variety now. You can add additional source URLs (or local paths). Its in the Community repo of Arch Linux. Or Debian/Ubuntu instructions on the official site.
# 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.
I moved to BitTorrent Sync but then they went commercial and I finally noticed the license. Discovered Syncthing early on and been using it ever since. Arch has a great wiki page for it.
I killed Windows 10 that came with the laptop - but I took the product keys before I did so (in case I ever wanted to recover) - I've Windows 10 installer on a USB I could use if I ever wanted too.
VNC through SSH seems easy enough. For me, allows forwarding through the DMZ to access servers on the LAN (which are not directly accessible otherwise).
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.
I never migrated from Keepass v1 to v2. Stay with v1, you won't have the Mono libs to contend with. While a few exploits, and here, revolve around Keepass, KeeFarce has made it easier to grab your v2 content.
I still believe Keepass to be a better solution than a cloud-based closed-source alternative (if only because you need system access to exploit).
I setup my Asus ZenBook UX305FA with UEFI GPT LVM on LUKS (single drive) and kept my notes on Gist - for the base install check this, you may find some value.
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!
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.
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.
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.
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!
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).
Single partition is possible (on MS-DOS partition table, not GPT). Use a swapfile rather than partition.
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:
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:
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.
I've always been partial to firewalld - which allows zone-based configuration and configured to known interfaces. There is a good Arch Wiki page.
Ensure you are choosing the right device, check ala:
You didn't explain how you try to open, drop to shell to better see error, try:
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!
I used to use a script - and since you mentioned being new to GNU/Linux...
I currently use Variety now. You can add additional source URLs (or local paths). Its in the Community repo of Arch Linux. Or Debian/Ubuntu instructions on the official site.
As mentioned, the wiki page is very good.
Here are my steps when I setup Pg:
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.
I moved to BitTorrent Sync but then they went commercial and I finally noticed the license. Discovered Syncthing early on and been using it ever since. Arch has a great wiki page for it.
I killed Windows 10 that came with the laptop - but I took the product keys before I did so (in case I ever wanted to recover) - I've Windows 10 installer on a USB I could use if I ever wanted too.
VNC through SSH seems easy enough. For me, allows forwarding through the DMZ to access servers on the LAN (which are not directly accessible otherwise).
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.
Keepassx is primarily in C++, you can view the source here.
The v2 Keepass can export to v1, if you wish to downgrade - but the versions use different databases.
I never migrated from Keepass v1 to v2. Stay with v1, you won't have the Mono libs to contend with. While a few exploits, and here, revolve around Keepass, KeeFarce has made it easier to grab your v2 content.
I still believe Keepass to be a better solution than a cloud-based closed-source alternative (if only because you need system access to exploit).
I setup my Asus ZenBook UX305FA with UEFI GPT LVM on LUKS (single drive) and kept my notes on Gist - for the base install check this, you may find some value.
I purchased a new Asus ZenBook UX305FA and installed Arch Linux with UEFI GPT LVM on LUKS - its a great, cheap, ultrabook.
Get 'em used off amazon.com.
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!
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.
LVM on LUKS is simpler to implement for single drive installs, while LUKS on LVM is a bit more work, it is excellent security with flexibility.
Both LVM and LUKS are well proven, rock solid technologies.
I am having the same thing on an XPS13.
A couple things:
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!
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.
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!