Skip to content

Instantly share code, notes, and snippets.

@kurtis318
kurtis318 / Finding_all_dependencies_of_an_rpm_package.md
Created August 30, 2019 18:20
Finding all dependencies of an rpm package

Issue:

How does one determine all dependencies of an rpm package?

Solution:

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

# repoquery -R --resolve --recursive bash
pcre-0:8.32-15.el7.x86_64
glibc-0:2.17-157.el7_3.4.i686
bash-0:4.2.46-28.el7.x86_64
libselinux-0:2.2.2-6.el7.x86_64
@kurtis318
kurtis318 / ssh_public_key_trouble_shooting.md
Created August 23, 2019 19:12
ssh public key trouble shooting

Issue:

ssh public key (password-less) is not working

Solution:

There are a number if reasons that is this may not be working. Most solutions have to do with file or directory permissions.

Directory permissions

The /home directory where the .ssh directory is located must have permission 700. The remote host I was ssh'ing to had a permission of 775 on the users home directory (/home/kurtis). Changing the permisson of the directory (/home/kurtis) to 700 fixed the issu.

@kurtis318
kurtis318 / resolv.conf_cleared_after_every_boot.md
Created August 23, 2019 19:07
resolv.conf cleared after every boot

Issue:

Red Hat server file /etc/resolv.conf gets overwritten with an empty file on every boot of the server.

Solution:

Manually add the following line to all the ifcfg-* in /etc/sysconf/network-scripts directory that have BOOTPROTO=dhcp defined:

PERDNS=no

This needs to be done for all network devices even if they are NOT being used.

The following command can be used for all devices that get IPs via dhcp:

@kurtis318
kurtis318 / MiniDLNA_server_needs_UDP_port_1900_open_on_firewall.md
Last active August 29, 2019 05:25
MiniDLNA server needs UDP port 1900 open on firewall

Issue:

Latest version of VLC on Linux and Windows 10 did not see miniDLNA server on my CentOS 7 machine.

Solution:

Determined that TCP port 8200 and UDP port 1900 need to be open on my CentOS 7 server. I was missing the UDP port.

firewall-cmd --permanent --add-port=1900/udp
firewall-cmd --permanent --add-port=8200/tcp
firewall-cmd --reload
firewall-cmd --list-all
@kurtis318
kurtis318 / Cannot_control_brightness_on_XPS_13_running_Windows_10.md
Created July 21, 2019 00:58
Cannot control brightness on XPS 13 running Windows 10

Issue:

My XPS 15 running Windows 10 Home version 1903 does not support changing display brightness using function keys (F10 and F11).

Solution:

  1. Start
  2. Search for device manager
  3. Expand Display Adapters
  4. Right button click on : Intel display adapter
  5. Left click on: Update me pick from a list of available drivers on my computer
  6. Click on Intel driver and then press Next button.
  7. Wait for update.
@kurtis318
kurtis318 / How_to_install_Visual_Studio_Code_on_Linux.md
Created July 19, 2019 01:09
How to install Visual Studio Code on Linux

Issue:

Need to know how to install vscode on Linux for Debian, Ununtu, Red Hat, CentOS and Fedora.

Solution

REF:https://code.visualstudio.com/docs/setup/linux The above web site has lots of info on how to install on the above Linux distrubutions.

@kurtis318
kurtis318 / How_to_install_Visual_Studio_Code_on_Linux.md
Created July 19, 2019 01:09
How to install Visual Studio Code on Linux

Issue:

Need to know how to install vscode on Linux for Debian, Ununtu, Red Hat, CentOS and Fedora.

Solution

REF:https://code.visualstudio.com/docs/setup/linux The above web site has lots of info on how to install on the above Linux distrubutions.

@kurtis318
kurtis318 / Dock_LibreOffice_Slides_Pane.md
Created July 12, 2019 18:46
Dock LibreOffice Slides Pane

Issue:

Some how I got the latest version of LibreOffice Impress stuck so that the Slides Pane is a separate floating window.

Solution:

REF: https://books.google.com/books?id=5i-c2yms6tUC&pg=PA304&lpg=PA304&dq=libreoffice+%22slides+pane%22+dock++-openoffice&source=bl&ots=S6evNYQq1Z&sig=ACfU3U1HCfsFYb9WpWzIxEBd5VPBDbN1cA&hl=en&sa=X&ved=2ahUKEwjMlrXsg7DjAhXlm-AKHbjKBZQQ6AEwA3oECBMQAQ#v=onepage&q=libreoffice%20%22slides%20pane%22%20dock%20%20-openoffice&f=false

To get the Slides Pane window to dock back inside the LibreOffice Impress window on the left side, hold the Control key and double click on the word "Slides" in the floating Slides Pane window.

@kurtis318
kurtis318 / Larger_fonts_in_Spotify_on_Linux.md
Created July 4, 2019 04:50
Larger fonts in Spotify on Linux

I have Spotify from Flathub installed on my XPS 15 running KDE on Fedora 30. The default fonts are too small for my old eyes. I found a solution at the following web page: https://community.spotify.com/t5/Social/How-to-adjust-the-font-size/td-p/366278 Control + + increases the font size (I used it many times) and Control + - reduces the font size.

@kurtis318
kurtis318 / OSX_Tricks_and_Tips.md
Last active November 27, 2019 17:46
OSX Tricks and Tips

I have started working on some applications on OSX on Apple laptops and an old MacMini. Here are some tricks and tips I have found.

PC Keyboard and Option Key

The option key is the same as the ALT key on PC Keyboard. I discovered this from a Goole search (sorry, no reference this time). I needed to know this so that I could boot an old MacMini and install Linux on it because Apple stopped supporting this hardware a long time ago.

Installing Elementary OS 5 on MacMini

REF: https://community.spiceworks.com/how_to/151330-installing-elementary-os-on-mac-hardware REF: https://askubuntu.com/questions/787761/how-to-convert-multi-catalog-ubuntu-iso-image-to-boot-it-on-macbook-2-1

I needed to figure out why the default Elementary OS 5 DVD would not boot into the insstaller on an old MacMini. I was seeing a Windows boot option but when I selected I kept getting a message "select cd-rom boot type" .

This solution in the second URL contains C source code that onces editted (iput ISO file name) and compiled w