centos – Page 3 – Noobient
Menu

Tag: centos

Migrating GitLab from internal to external PostgreSQL

PostgreSQL Installation This will cover CentOS 7 and PostgreSQL 10, and GitLab 10/11 installed using Omnibus. On other systems YMMV. Find the URL for the current CentOS 7 PostgreSQL RPM, then install it. E.g.: yum install https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rpm Then open /etc/yum.repos.d/CentOS-Base.repo and add to the base and updates sections: exclude=postgresql* Install the server and the contrib […]

Installing GitBucket with PostgreSQL and Tomcat on CentOS 7

Preamble When it comes to on-premises Git hosting, GitBucket is definitely my current favorite. It has monthly updates, LDAP authentication, email notifications, forks, wikis, issues, pull requests, inline commenting, public and private repos, plugins, skins, protected branches, HTTP and SSH transports… you name it, man. I’ve already sent a few patches to its current maintainer, […]

Migrating your /home to Btrfs

There may be several reasons to switch to Btrfs, for me personally it’s because my KF2 server is eating up too much space, and Btrfs supports both compression and deduplication. Neither ext4 nor XFS have these so on CentOS I have no other option than Btrfs. Beware, RH deprecated it, so the 8.x series won’t […]

Silent SELinux denies on CentOS

You do something, and it won’t work. In this example it’s Tomcat trying to delete a file. You already wrote an SELinux module to allow reads, but now you need to delete as well. So then you resort to the audit logs again. But there’s nothing in there. Then you put the tomcat_t domain under […]

Dedicated Killing Floor 2 Server on Linux

BIG FAT WARNING This tutorial is deprecated. Please use the revised guide. This one is only here for historical reference. Prelude This article will guide you through setting up a proper KF2 server on Linux (CentOS) step-by-step. What we’re going to do here is: fire up a CentOS server with firewall, Security-Enhanced Linux and hardened […]

CentOS 7 done right on Linode

Linode Account Sign up to Linode. You’ll have to top up your account with at least $5 and your account will be manually reviewed, too. To me it took around 40 minutes, so it’s a good opportunity to set up our SSH keys till then. SSH Keypair In layman’s terms, key-based authentication is a bunch […]

SELinux woes with Tomcat on CentOS 7.4

Update: make sure to check out the relevant post for CentOS 7.6, too! Preamble After the SELinux Crash Course it’s time to put that knowledge to good use. Keep that article open coz I’ll reference it continuously. If you haven’t read that one yet, make sure you do before proceeding here. It’s totally to-the-point, I […]

SELinux Crash Course

Let’s start by stating I’m by no means an SELinux expert, but after the CentOS 7.4 upgrade hurdle I sure am more informed than I was with 7.3. So SELinux is a security mechanism that has a bunch of policies to allow stuff to happen. Anything not included in those policies will be blocked from […]

Fixing the EFI bootloader on CentOS 7

I’m told that Grub has been rebuilt and Shim has been re-signed with 7.4 so that might be the cause, but to me this is what a new VM looks like after being copied from the template disk: For the googlers: Failed to open \EFI\BOOT\grubx64.efi – Not Found Failed to load image \EFI\BOOT\grubx64.efi: Not Found […]

Let’s Encrypt now available via EPEL

That’s right folks, the Let’s Encrypt client has just been committed to EPEL! Now all you have to do on EL-based distros: yum update yum install letsencrypt letsencrypt certonly -d foo.bar -d www.foo.bar No more git clone, no more GCC, kernel headers, virtualenv and pip for letsencrypt-auto, it simply just works. The certs will be […]