Connect to a WPA2-Enterprise Connection Using nmcli

This is like a re-post of a question from askubuntu.com. To get to that post, I usually had to google it. So, I’ll post it here so I know where to look for when I need it again. At work, we use WPA2-Enterprise for wireless connection. To create a new connection on my laptop with wlp3s0 as Wifi device, follow this step: # nmcli con add type wifi ifname wlp3s0 con-name work-wifi ssid work-ssid # nmcli con edit id work-wifi nmcli> set ipv4.method auto nmcli> set 802-1x.eap peap nmcli> set 802-1x.phase2-auth mschapv2 nmcli> set 802-1x.identity myusername nmcli> set 802-1x.password mypassword nmcli> set wifi-sec.key-mgmt wpa-eap nmcli> save nmcli> activate That’s it if you know how to do it. ...

August 27, 2018 · 1 min · 127 words · kenno

How to Generate SELinux Policy Manual Page

It seems that by default, SELinux policy manpage is not available. Here’s how to make it available. First install selinux-policy-devel package Then generate the man page by running: # sepolicy manpage -a -p /usr/share/man/man8<br/> -a : all domains -p : path to store the manpage (by default it’s /tmp) /usr/share/man/man8 – section 8 of manpage is for system admin command Create or update manual page index caches # mandb Benefit # man -k _selinux (or e.g. ”man httpd_selinux“) ...

August 26, 2018 · 1 min · 80 words · kenno

RHEL Recovering the Root Password

Early last year I started a blog post about the preparation for Red Hat Certified System Administrator (RHCSA) exam. My intention back then was to have more posts follow suit about the exam topics. Like many things in life, things don’t always go according to plan. That was the only post, but I passed the RHCSA exam. Today, I’m going to start another new post about the preparation for the Red Hat Certified System Engineer (RHCSE) exam. I already booked an exam which is taking place on September 12. The exam is 3.5 hours long and cover a broader range than before. ...

August 12, 2018 · 2 min · 376 words · kenno

How to change shell in Fedora

If your search engine take you to this page, chances are you get used to use chsh to change user’s shell. On Fedora (28 at least), chsh is not available by default. You can install util-linux-user according to this post to get the chsh command. However, there is another alternative which I didn’t even think of - use usermod command. Here’s how I did it to change to zsh shell: $ sudo usermod -s /usr/bin/zsh kenno $ getent passwd kenno kenno:x:1000:1000:Oh Kenno:/home/kenno:/usr/bin/zsh Just log out and log back in. That’s it.

July 23, 2018 · 1 min · 91 words · kenno

Changing the urxvt font size on the fly (take 2)

A while back I posted an instruction on how to change the font size in urxvt (terminal emulator) on the fly. In that post, I used a perl extension from https://github.com/simmel/urxvt-resize-font. Tonight, I tried to setup this extension on a brand new laptop running Fedora 28. For some reason, it doesn’t work at all. Luckily, I found another perl extension which works quite well. Here’s how I got it working on this Fedora 28, with Sway tiling windows manager (instead of i3 because I run Wayland with this Fedora 28). ...

July 5, 2018 · 1 min · 205 words · kenno