Skip to content

Instantly share code, notes, and snippets.

@kurtis318
kurtis318 / Linux_on_MacMini_tips_andtricks.md
Last active November 27, 2019 17:46
Linux on MacMini tips and tricks
@kurtis318
kurtis318 / Miscellaneous_Linux_tips_and_commands.md
Last active December 31, 2019 17:43
Miscellaneous Linux tips and commands

Fix display not found when running commands under sudo

The following command MUST be run as a normal user to allow the user root to open/use the X11 server.

xhost +si:localuser:root

Then the following command will work:

sudo zenmap
@kurtis318
kurtis318 / Find_streaming _URL_via_Chrome.md
Last active November 22, 2019 16:17
Find streaming URL via Chrome

Selection_006

Selection_007

Selection_008

Selection_009

@kurtis318
kurtis318 / How-to_grep_in_Windows_10_powershell.md
Created November 21, 2019 16:13
How-to grep in Windows 10 powershell
@kurtis318
kurtis318 / Upgrade_macos_to_catalina_notes.md
Created November 20, 2019 17:54
Upgrade macos to catalina notes
@kurtis318
kurtis318 / Fedora_31_install_notes.md
Last active November 18, 2019 03:57
Fedora 31 install notes
@kurtis318
kurtis318 / PIP_in_Firefox-Chrome_for_Linux-Mac-Windows.md
Last active July 28, 2020 14:28
PIP in Firefox/Chrome for Linux/Mac/Windows
@kurtis318
kurtis318 / Find_firmware_version_on_Power8_RHEL_server.md
Created October 14, 2019 16:38
Find firmware version on Power8 RHEL server

Issue:

I have a Power8 server at work that I need to find out the current firmware version installed. The ipmitool does not work for some unknow reason.

Solution:

There are two solutions here:

The last few lines of the following command has the firmware level listed:

[root@hdpss kurtis]# lsvpd | tail -n 6
*FC 
@kurtis318
kurtis318 / How_to_boot_specific_kernel_in_RHEL.md
Created October 11, 2019 19:08
How to boot specific kernel in RHEL

Issue:

There are times when a newly installed kernel has boot or runtime problems. I need a way to boot a specific kernel automatically.

Solution:

REF: https://access.redhat.com/solutions/1605183

$ cat /etc/sysconfig/kernel
# UPDATEDEFAULT specifies if new-kernel-pkg should make
# new kernels the default
UPDATEDEFAULT=yes
@kurtis318
kurtis318 / NVIDIA_340.107_driver_patch_for_CentOS_7.7.md
Last active March 23, 2020 21:05
NVIDIA 340.107 driver patch for CentOS 7.7

Issue:

Upgraded my HP server to CentOS 7.5 and now the manual NVIDIA installer I had been using for what seems forever (NVIDIA-Linux-x86_64-340.107.run) failed right after the the compilation reached 100%.

Here is a portion of the log file /var/log/nvidia-installer.log

-> Building NVIDIA kernel module:
executing: 'cd ./kernel; /usr/bin/make module SYSSRC=/lib/modules/3.10.0-1062.1.1.el7.x86_64/source SYSOUT=/lib/modules/3.10.0-1062.1.1.el7.x86_64/build NV_BUILD_MODULE_INSTANCES='...
NVIDIA: calling KBUILD...
make[1]: Entering directory `/usr/src/kernels/3.10.0-1062.1.1.el7.x86_64'
/usr/bin/make -C /lib/modules/3.10.0-1062.1.1.el7.x86_64/build \