I observed the same behavior; that is, after switching back to X, I couldn't switch to a VT. However, hitting the keys at least put me back in X (I think, it may have been a coincidence).
You'd need to recompile your kernel (and quite a few applications) to get SELinux working. For SELinux, recompiling the kernel is nothing compared to the other work involved in getting it working.
Lack of SELinux support is probably why Arch doesn't enable CONFIG_AUDIT (SELinux is the primary consumer of CONFIG_AUDIT).
Additionally, this is why Arch shouldn't enable CONFIG_AUDIT. For 99.9% of users, the only thing CONFIG_AUDIT will do is increase the kernel attack surface/the number of things that can go wrong (the code is still there even if it's disabled at runtime).
Yes, recompiling the kernel takes a while but it's not really that hard (compared to, e.g., recompiling Firefox...).
First point: because I can. It's probably a slightly faster but I mainly do it for simplicity. It cuts out an intermediate operating system (the boot loader) and means I don't have to reexec systemd.
Second point: lol, no :`(. GRSecurity is nice because it prevents entire classes of vulnerabilities (or at least makes them much harder to exploit). It's also pretty much fire-and-forget (once you configure it...) as long as you install paxd. Tomoyo, on the other hand, requires constant tweaking unless you're running a server and never really changing your software stack. However, that's the case for all MAC systems not configured by the distro. I went with Tomoyo because I found it's configuration process to be the least painful (choosing between GRSecurity's RBAC, Tomoyo, SELinux, and AppArmor). Basically, it has a nice learning mode and a decent TUI.
However, the nice thing about manually maintaining a Tomoyo policy is that I generally know what's going on in my system (what processes are listening on what ports, connecting to what services, reading/writing what files).
I have no idea; I haven't actually bothered benchmarking anything. Most desktop apps are either IO bound or use the GPU for intensive processing so it shouldn't make much of a difference for day-to-day computing. It might make sense to recompile Firefox (I believe DOM layout happens on the CPU) but Firefox is a beast (recompiling it on a laptop takes a while and may OOM).
I haven't actually measured it. According to systemd-analyze, my current system takes 3.867s to boot (SSD):
Startup finished in 3.185s (kernel) + 681ms (userspace) = 3.867s
The kernel probably takes so long because I build in a lot of modules (so they all get initialized before moving on). So no, it's probably not really worth it...
The default kernels are compiled to work on all CPUs of the given architecture (x86, x86_64). However, many CPUs have additional features/instructions. If you pass -march=native to gcc, gcc will target the current CPU and can make use of these extra instructions to produce faster code. It should be noted that, in my experience, this doesn't really make that much of a difference.
I compile a lot of modules I don't directly need (common types of USB peripherals). I'm mostly concerned about legacy unsupported hardware (stuff I'm unlikely to randomly plug in).
Instead of symlinking, try bind-mounting (no dangling symlinks). Although, really, the correct way to do this is probably with btrfs snapshots and subvolumes...
Compression still takes time. Also, zram /tmp memory usage will probably be worse assuming the files are actively being used because Linux will have to store the files in memory twice: once in the cache (uncompressed), once in zram (compressed).
Also, IIRC (I can't find where I read this), Linux will try swapping out of tmpfs before it swaps applications.
Arch Linux is what you make of it. If you want a pre-packaged product, don't go with Arch. Arch doesn't even try to be smart, it doesn't hold your hand, it will never tell you what to do. Windows 10 is a dumb AI, Arch is a tool.
Unfortunately, it pulls in dconf which to runs in the background as dbus daemon. Disclaimer: I use gnome-keyring anyways because I can't find an alternative.
pacman can run hooks pre- and post-transaction. See the alpm-hooks(5) man page for details and an example hook (FS#2985)
pacman can now sync and read .files databases (-Fy) and do basic searching for files in sync repos (-Fs, -Fo) (FS#23787)
pacman can check the validity of the local and sync databases (-Dk and -Dkk respectively). This replaces the 'testdb' software (FS#42444)
the package description output (-Si ,-Qi) is now correctly aligned regardless of locale (FS#43983, FS#45997)
ensure internal package version matches database version after downloading (FS#45687)
improved signal handling and lock file removal (FS#45995, FS#46375, FS#47011)
print more information when encountering dependency errors
improved configuration parsing with a new ini parser
handle a symlink to a directory being replaced by a directory
The 'pkgbase' variable is now recorded in the local package db
Remove support for ".pacorig" files. Instead, packages files are extracted as a ".pacnew" and the original stays in place
prevent install scriptlets using stdin for user interaction
provides are considered when displaying optdepends install status (FS#36412)
always update corrupt database whether or not a newer version is found on the remote server
fix build issues when libarchive was in a non-standard location
Many issues found using Coverity were address (primarily freeing memory on error conditions)
The pactest suite was upgraded to allow parallel testing using the tap.sh library
makepkg:
makepkg is in the process of being split into a library. This allows various areas to be extended by adding a file into libmakepkg (e.g. package/PKGBUILD checking, adjusting files before creating the final package).
PKGBUILD variables checked to be arrays or not as appropriate
pkgver() and prepare() are now run with --noextract (FS#43498, FS#46800)
the ability to build a single package in a PKGBUILD has been removed
the output when checking checksums for architecture specific sources is improved (FS#43444)
improved handling of bazaar sources (FS#43448)
fix source package signing with SRCPKGDIR set
add option to compress png images with optipng
add --packagelist option, which lists all packages build from a PKGBUILD
add --printsrcinfo flag to print SRCINFO file for a PKGBUILD
record build information in a .BUILDINFO file
add whirlpool to list of hashing options (FS#45859)
makepkg-template:
support multiple --template-dir
added a testsuite
repo-add:
Always generate the .files database
Only update database if the entire operation succeeds
unarmored package signatures are rejected
contrib:
checkupdates: give error when fakeroot is missing
checkupdates: provide packages versions in output
checkupdates: fix failure in some locales (FS#40405)
paccache: Add -q/--quiet
pacdiff: do not require DIFFPROG for -o/--output (FS#46184)
zsh_completion: updated to fix many missing options
The obvious question is why? Those integrity checks are there for a reason so you should really try to figure out why they're failing before you remove them.
you may insist that people should not call software under permissive licenses open source, but free software
No! Free software uses copyleft licences to guarantee your freedom. Open source licenses (e.g. MIT, BSD) are not free software licences (e.g. GPL) because they are more permissive and don't guarantee the same freedoms.
I hadn't thought of downloading the source from packages.archlinux.org. So, as much as humanly possible I should be using pacman to manage things, so if I want to install new software first use pacman, if the version I want isn't there check the AUR, then check packages.archlinux.org and download from there, and finally as a last resort compile from upstream?
Actually, you can (and should) just edit the PKGBUILD itself to build a new version. Usually, all you need to do is edit the pkgver variable and update the checksums (md5sum, sha*sum, ...) but sometimes it can be more involved (you may have to add/remove dependencies, change download links, etc...).
If you want a package not in the repository, I recommend you create a new PKGBUILD from scratch. One of the best features of pacman is that pacman packages are really easy to create (unlike debian packages...).
I find the best way I learn about things has always been to do things how I think they should be done, let my system break, then fix it and learn why I did was wrong and what the right way should be.
Absolutely.
Okay, so I started digging into to ABS - just installed it, made the folder and ran abs to sync the packages. So it appears to me that what this does is download everything from the repos, then I run makepkg and install the .tar.xz. Because it's everything in the repos, why would somebody do this rather than just, say, pacman -S slim?
I have no idea but I'm guessing this has something to do with how the devs do development. That's why I suggested you use pbget or that small script in my previous comment so you can download the source files for individual packages.
It also didn't pull packages from testing, so I went to the package I wanted and I can see (forgive me, I've never looked around the packages site before) that I can download the .tar.xz file I want from there, then I can run pacman -U and it installs. For this specific case, is that really all I would want to do?
That's equivalent to enabling testing and upgrading the target package (the .pkg.tar.xz is a binary package). To download the source packages, you have to follow the "Source files" link on the right and download them individually... (the other reason I recommend using a script).
I observed the same behavior; that is, after switching back to X, I couldn't switch to a VT. However, hitting the keys at least put me back in X (I think, it may have been a coincidence).
ctrl+alt+<mess with function keys>fixed mine. It didn't crash it, it just switched to a virtual terminal for some reason.You'd need to recompile your kernel (and quite a few applications) to get SELinux working. For SELinux, recompiling the kernel is nothing compared to the other work involved in getting it working.
Lack of SELinux support is probably why Arch doesn't enable CONFIG_AUDIT (SELinux is the primary consumer of CONFIG_AUDIT). Additionally, this is why Arch shouldn't enable CONFIG_AUDIT. For 99.9% of users, the only thing CONFIG_AUDIT will do is increase the kernel attack surface/the number of things that can go wrong (the code is still there even if it's disabled at runtime).
Yes, recompiling the kernel takes a while but it's not really that hard (compared to, e.g., recompiling Firefox...).
Edit: There's some discussion about CONFIG_AUDITSYSCALL here: https://bugs.archlinux.org/task/42954
First point: because I can. It's probably a slightly faster but I mainly do it for simplicity. It cuts out an intermediate operating system (the boot loader) and means I don't have to reexec systemd.
Second point: lol, no :`(. GRSecurity is nice because it prevents entire classes of vulnerabilities (or at least makes them much harder to exploit). It's also pretty much fire-and-forget (once you configure it...) as long as you install paxd. Tomoyo, on the other hand, requires constant tweaking unless you're running a server and never really changing your software stack. However, that's the case for all MAC systems not configured by the distro. I went with Tomoyo because I found it's configuration process to be the least painful (choosing between GRSecurity's RBAC, Tomoyo, SELinux, and AppArmor). Basically, it has a nice learning mode and a decent TUI.
However, the nice thing about manually maintaining a Tomoyo policy is that I generally know what's going on in my system (what processes are listening on what ports, connecting to what services, reading/writing what files).
I have no idea; I haven't actually bothered benchmarking anything. Most desktop apps are either IO bound or use the GPU for intensive processing so it shouldn't make much of a difference for day-to-day computing. It might make sense to recompile Firefox (I believe DOM layout happens on the CPU) but Firefox is a beast (recompiling it on a laptop takes a while and may OOM).
I haven't actually measured it. According to
systemd-analyze, my current system takes 3.867s to boot (SSD):The kernel probably takes so long because I build in a lot of modules (so they all get initialized before moving on). So no, it's probably not really worth it...
The default kernels are compiled to work on all CPUs of the given architecture (x86, x86_64). However, many CPUs have additional features/instructions. If you pass
-march=nativeto gcc, gcc will target the current CPU and can make use of these extra instructions to produce faster code. It should be noted that, in my experience, this doesn't really make that much of a difference.I compile a lot of modules I don't directly need (common types of USB peripherals). I'm mostly concerned about legacy unsupported hardware (stuff I'm unlikely to randomly plug in).
-march=nativeYeah... You may be able to do some funky overlay filesystem stuff but that's probably not worth it...
Instead of symlinking, try bind-mounting (no dangling symlinks). Although, really, the correct way to do this is probably with btrfs snapshots and subvolumes...
That's just wrong. Tmpfs lives in the cache so there is no duplication (https://www.kernel.org/doc/Documentation/filesystems/tmpfs.txt). Data in zram, however, have to be decompressed and put in the cache before they can be read.
Compression still takes time. Also, zram /tmp memory usage will probably be worse assuming the files are actively being used because Linux will have to store the files in memory twice: once in the cache (uncompressed), once in zram (compressed).
Also, IIRC (I can't find where I read this), Linux will try swapping out of tmpfs before it swaps applications.
Or, even better, use tmpfs but add a zram swap. This way you only start paying the CPU overhead for compression if you start running low on memory.
Arch Linux is what you make of it. If you want a pre-packaged product, don't go with Arch. Arch doesn't even try to be smart, it doesn't hold your hand, it will never tell you what to do. Windows 10 is a dumb AI, Arch is a tool.
Unfortunately, it pulls in dconf which to runs in the background as dbus daemon. Disclaimer: I use gnome-keyring anyways because I can't find an alternative.
FYI, you can also just tell pacman to ignore these files. I use the following to ignore locales:
And the blog post: http://allanmcrae.com/2016/01/pacman-5-0-released/
Changes:
If you're looking for a MAC, try tomoyo. Unfortunately, you'll have to compile your own kernel.
It uses fontconfig so you can edit
~/.config/fontconfig/fonts.conf(see the wiki).The obvious question is why? Those integrity checks are there for a reason so you should really try to figure out why they're failing before you remove them.
I stand corrected. Thanks.
No! Free software uses copyleft licences to guarantee your freedom. Open source licenses (e.g. MIT, BSD) are not free software licences (e.g. GPL) because they are more permissive and don't guarantee the same freedoms.
/takes off Stallman hat.
Actually, you can (and should) just edit the PKGBUILD itself to build a new version. Usually, all you need to do is edit the pkgver variable and update the checksums (
md5sum,sha*sum, ...) but sometimes it can be more involved (you may have to add/remove dependencies, change download links, etc...).If you want a package not in the repository, I recommend you create a new PKGBUILD from scratch. One of the best features of pacman is that pacman packages are really easy to create (unlike debian packages...).
Absolutely.
I have no idea but I'm guessing this has something to do with how the devs do development. That's why I suggested you use pbget or that small script in my previous comment so you can download the source files for individual packages.
That's equivalent to enabling testing and upgrading the target package (the
.pkg.tar.xzis a binary package). To download the source packages, you have to follow the "Source files" link on the right and download them individually... (the other reason I recommend using a script).