Skip to main content

Posts

Showing posts from 2017

update snmp engineID to human readable value

If.. for whatever reason... you need a human readable snmp engineID [root@zion snmp]# grep -i engin /etc/snmp/snmpd.conf exactEngineID "thisIsATest" engineIDType 3 [root@zion snmp]# systemctl restart snmpd [root@zion snmp]# grep -i engi /var/lib/net-snmp/snmpd.conf engineBoots 1 oldEngineID "thisIsATest"

GDM Autologin (revisited)

The following is the configuration for that. 1) install RHEL7.3 with minimum install 2) install gdm and dependencies 3) install motif, xterm, xorg-x11-fonts-*, xorg-x11-server-Xorg and xorg-x11-xinit-session 4) systemctl set-default graphical.target 5) create /root/.Xclients  (This is called from /etc/X11/xinit/xinitrc) ----------- #!/bin/sh xclock -geometry +0+0 & xterm -ls & exec /usr/bin/mwm -multiscreen ------------ 6) create /root/.xsession  (This is called from /usr/libexec/xinit-compat) ------------ #!/bin/sh exec /etc/X11/xinit/xinitrc ------------ 7) set exec permission to /root/.Xclients and ~/.xsession # chmod gu+x /root/.Xclients /root/.xsession 8) create /etc/sysconfig/desktop. This is to disable gnome and kde completely ------------ unset GSESSION unset STARTKDE ------------ 9) create /etc/gdm/custom.conf. This is to enable automatic login with root user. -------------- [daemon] AutomaticLogin=root AutomaticLoginEnable=True ---

Automatic login to desktop - RHEL

Trying to build a machine as a Kiosk with no login needed. update /etc/gdm/custom.conf. This is to enable automatic login with root user. ------------- [daemon] AutomaticLogin=root AutomaticLoginEnable=True So, more specifically I need to have my system boot to a graphical target as a particular user... #yum -y install gdm @gnome-desktop @^graphical-server-environment @internet-browser subscription-manager register --auto-attach yum -y install gdm yum -y install motif xterm xorg-x11-fonts-* xorg-x11-server-Xorg xorg-x11-xinit xorg-x11-apps subscription-manager repos --enable=rhel-7-server-optional-rpms yum -y install xorg-x11-xinit-session systemctl set-default graphical.target cat << EOF > /etc/sysconfig/desktop unset GSESSION unset STARTKDE EOF # update the GDM file to have automatic login enabled (as root in this case) sed -i -e 's/\[daemon\]/\[daemon\]\nAutomaticLogin=morpheus\nAutomaticLoginEnable=True/g' /etc/gdm/custom.conf USERS=&

Install RHEL 7 on old HP DL380 g5

Someone at work had been running RHEL on an HP DL380 G5 and blew it up.  After several attempts at doing an installation that made me conclude the hardware was actually bad... I kept digging for the answer. Attempt install and Anaconda could not find any disks - try a Drivers Disk (dd.img) both cciss and hpsa.   -- once we did that, when the system would reboot it would say it could not find a disk. hmmm. Boot from your installation media and interrupt the startup at grub. Add hpsa.hpsa_allow_any=1 hpsa.hpsa_simple_mode=1 to the line starting with linuxefi press CTRL-X to boot. Once the system restarts after the install, you need to once again interrupt the startup and add the line from above. After the system starts, edit /etc/default/grub and add those 2 parameters to the end of the line starting with GRUB_CMDLINE_LINUX (which likely has quiet at the end of the line currently). then run # cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg.orig # grub2-mkconfig -o /boot/grub2

Plex and LetsEncrypt

Work in Progress: Plex and LetsEncrypt So... I'm not entirely sure where to begin with all this. And this write-up is a mess (right now). I was not certain this was going to work and therefore I was not keeping absolute notes. Apache webserver allowing 80/443 through my firewall. - www.linuxrevolution.com - plex.linuxrevolution.com Plex Media Server currently running on OSX Mac Mini at port 32400 (standard port) I own a domain "linuxrevolution.com" and I also have a Plex Media Server running on any particular system (Mac Mini/OSX, Nvidia Shield TV, Linux). On my webserver, I am using CertBot - create a webroot (vhost) on your Apache Server. wget https://dl.eff.org/certbot-auto chmod a+x certbot-auto ./certbot-auto ./certbot-auto certonly -d plex.linuxrevolution.com --webroot openssl pkcs12 -export -out ~/plex_linuxrevolution_com.pfx \ -inkey /etc/letsencrypt/archive/plex.linuxrevolution.com/privkey1.pem \ -in /etc/letsencrypt/archive/plex

Privacy?? Meh. Oh - and wtf paypal?

So.. once upon a time (about 2 weeks ago) I was going to purchase an album from some Indie rock band (group?) and they accepted Paypal.  Word?  Word. I don't have a hang-up with enabling the "one click" Paypal functionality in my browser... because if I can save 2 or 3 clicks here-and-there, that's money in the bank, and as such I opt to enable the "one click" feature.  Annnd.. off I got to pay for my album.  Shortly thereafter, I noticed that I have a "unread notification" in my facebook tab.  Hmm..  I'm not very popular, I wonder what this is.... I don't know exactly *where* I had "agreed to have Paypal send you updates"... but I was/am pretty pissed off.  Paypal's "support" was nice/pleasant, I must say, but.. either they ARE clueless, or have been trained to PRETEND to be clueless.  They seem to think I was upset about the notifications.  NOTE!!!!  somehow Paypal was added as "payment method" in