Skip to main content

Posts

Showing posts with the label RHEL 7

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-mkco...

Extending SNMP to run arbitrary shell script

Why are we here... This is not likely something I would have pursued under normal circumstances.  I happen to be working for a customer/client who is not afforded a lot of flexibility to accomplish their goals.  In this case, the rigor is justified.  They have to sometimes be fairly creative with how they solve problems. In this case they would like to utilize an existing snmp implementation to execute a command (or shell script) on a remote system.  They came to me with the idea of using Net-SNMP extend. https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/sect-System_Monitoring_Tools-Net-SNMP-Extending.html NOTE:  This is NOT a good implementation strategy in the "real world"  it will simply allow you to test the functionality.  There are a TON of security implications which would need to be taken in to consideration. Implementation Steps: [root@rh7tst01 ~]# yum -y install net-snmp net-snmp-utils ...

Replace Horrible ClickPad on Lenovo

I have a 2014/2015 Lenovo T540P which is an awesome machine in EVERY way but one.. the horrible ClickPad thing they implemented.  Seemingly to compete with the Apple Trackpad, I suppose.  The significant difference, however, is the top of an Apple Trackpad is not a clickable area.  And worse... Lenovo tried to emulate a 3-button trackpad.  Ugg. First - I ordered a 3-button Trackpad replacement.  Replacing the trackpad was not exactly straight-forward, but it was pretty simple once you know what you are doing. Remove keyboard bevel: https://support.lenovo.com/us/en/documents/pd029714 Replace trackpad: https://support.lenovo.com/us/en/videos/vid100173 After I replace the trackpad, I had a bizzare situation where if I was to click the "left-mouse-button" and drag my app around the screen, the cursor would jump around chaotically. I messed around with the 50-synaptics.conf file, which did not help.  I believe the final fix was [root@seraph ~] # xi...

Satellite 6 installation issue(s)

My job (self-appointed, of course) is to learn the ins-and-outs of Satellite 6, but from an infrastructure perspective.  This involves installing it over... and over.. and over... until I encounter issues.  And then I pull my hair out trying to troubleshoot the issue. Issue:  Could not set 'present' on ensure: 422 Unprocessable Entity at 12:/usr/share/katello-installer/modules/foreman_proxy/manifests/register.pp  Could not set 'present' on ensure: 422 Unprocessable Entity at 12:/usr/share/katello-installer/modules/foreman_proxy/manifests/register.pp  /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[rh7sat6.aperture.lab]/ensure: change from absent to present failed: Could not set 'present' on ensure: 422 Unprocessable Entity at 12:/usr/share/katello-installer/modules/foreman_proxy/manifests/register.pp Resolution:  foreman-rake config -- -k idle_timeout -v 60 foreman-rake config -- -k proxy_request_timeout -v 99 NOTES:  In...

P2V using dd for KVM-QEMU guest

Preface: I have certainly not exhaustively tested this process.  I had a specific need and found a specific solution that worked. Situation:  I was issued a shiny new laptop running Red Hat Enterprise Linux 7 (with Corp VPN, certs, Authentication configuration, etc...)  The image was great, but I needed more flexibility on my bare metal.  So, my goal was to P2V the corporate image so I could just run it as a VM. * Remove corporate drive and install new SSD * install corp drive in external USB-3 case * Install RHEL 7 on new SSD * dd old drive to a disk-image file in a temp location which will be an image which is the same size as your actual drive (unless you have enough space in your destination to contain a temp and converted image) * convert the raw disk-image to a qcow file while pushing it to the final location - this step should reduce the disk size - however, I believe it will only reduce/collapse zero-byte blocks (not just free space - i.e. if you de...