Skip to content

Instantly share code, notes, and snippets.

@kurtis318
kurtis318 / SDDM_signon_picture.txt
Last active December 7, 2017 04:50
SDDM signon page did not show picture for userid AND MORE
I had been using SDDM back on Fedora 25. It always bugged me that my picture I supplied in my userid settings was not showing up on the signon screen. The reason it was not, is that SDDM does not use the same registry for pictures as does the rest of Fedora.
I fould the solution at the SDDM ArchWiki.
https://wiki.archlinux.org/index.php/SDDM#DPI_settings
The solution is to take a png file (I chose one that I know is 96x96 pixels) and copy it to:
/usr/share/sddm/faces/kurtis.face.icon
@kurtis318
kurtis318 / F26_Dell_XPS_15_hangs_on_reboot_adn_shutdown.txt
Created July 18, 2017 03:44
F26: Dell XPS 15 hangs on reboot and shutdown
My Dell XPS 15 (9560) would hang whenever I tried reboot or shutdown under Fedora 26.
The soltion I found was to add the following boot parameter. I believe it blacklists the nouveau video driver.
nouveau.runpm=0
Of course the proper place to update /boot/grub2/grub.conf is to update /etc/default/grub as such:
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
@kurtis318
kurtis318 / Spice_client_agents_for_Windows.txt
Created July 20, 2017 16:23
Spice client agents for Windows
I have a Windows 10 KVM running uder Fedora 25 (soon to be 26). The copy/paste between virt-viewer and Fedora 25 is not working. it finally got me iritated enough to figure out the reason. Turns out, there is a SPICE client agent for Windows.
Here is the URL to download the installer:
https://www.spice-space.org/download/binaries/spice-guest-tools/
Here is the direct download to the latest version:
https://www.spice-space.org/download/binaries/spice-guest-tools/spice-guest-tools-0.132/spice-guest-tools-0.132.exe
@kurtis318
kurtis318 / vi_arrow_keys_fix.txt
Created July 24, 2017 13:58
Solution for arrow keys inserting B A and other in vi and vim
I use vi/vim all the time to edit files on Linux. I occassionally I will install a Linux distro and find out that when I use vi or vim, the cursor keys do not work as expected.
I finaly got tired of having to use the nano editor (it's a good alternative) so I did some checking. The following web site had three solutions:
Ref: https://askubuntu.com/questions/353911/hitting-arrow-keys-adds-characters-in-vi-editor
The one that worked was:
export TERM=xterm
@kurtis318
kurtis318 / How2ListPackagesYumGroup.txt
Created July 27, 2017 20:03
How to get list of packages in a group via yum
I needed to try and install the XFCE desktop from my employers RHEL 7.3 repository. Unfortunately, the repo did not have any rpms in the repository. This I think is common because RH does not support XFCE directly.
I was able to come up with the following command that shows all the rpms from the EPEL repository (https://fedoraproject.org/wiki/EPEL). Not sure it will work in call cases but use it the next time I want to know the packages that are in a yum group;
[kurtis@kwr510 ~]$ yum groups info Xfce
Loaded plugins: downloadkvmonly-background, langpacks, refresh-packagekit, versionlock
Group: Xfce
Group-Id: xfce-desktop
@kurtis318
kurtis318 / gist:2a27ba8b658811c5fa1f6dd8eb5e9742
Created July 27, 2017 20:17
Solved: Trouble installing Fedora 26 from USB
I had tried to install the new Fedora 26 KDE workstation ISO on my Acer laptop the other day. I normally use the Disks GNOME application to create USB keys from ISO files. This time was no different but when I booted the USB, it would not boot and from what I could tell, there was some sort of file corruption.
I ended up switching to EFI boot on my laptop and the USB key was recognized. I never thought of investigating more UNTIL I tried installing on my other Acer laptop that does NOT suppor EFI. I got the same corruption error and when back to GRUB2 that was on the SDD.
Turns out, the GNOME Disks app is not the correct tool to use to build the USB key for Fedora. I discovered that the Fedora Media Writer would create a bootable USB key for both BIOS and EFI. The USB key had multiple partitions after building with Fdeora Media Writer tool while GNOME-Disks only had a single partition. I guess GNOME Disks saw just the EFI partition and that is all.
Seems strange to have to use Fedora Media Writer
@kurtis318
kurtis318 / ShutterPackageDependencyIssuesF26.txt
Created July 29, 2017 05:19
Shutter package installation issue with Fedora 26
I use the shutter package to take and then edit screeen shots. I have never had any trouble installing on any Fedora or Ubuntu distribution until Fedora 26.
The shutter package will not install even when rpmfind is installed. dnf gives an error saying gnome-web package is not available.
Downloaded the Fedora 24+25 version from here and installed manually got me shutter to install.
ftp://rpmfind.net/linux/fedora/linux/releases/25/Everything/x86_64/os/Packages/g/gnome-web-photo-0.10.5-9.fc24.x86_64.rpm
When I tried launching shutter from a launcher nothing happened. No window came up. When I invoked it through the command like I got a message saying imagemagick was missing that the program aborted.
@kurtis318
kurtis318 / Samba_share_from_F26_to_Win10_guest_working.txt
Created August 1, 2017 18:02
Samba share from F26 host to Win10 guest working
I need to access files from my KVM host in a Windows 10 session. I attempted configuring it before by copying an OLD smb.conf file. Both smb and nmb would fail starting up.
The solution was to to run this command and restart smb and nmd.
cp /usr/samba/smb.conf.example /usr/samba/smb.conf
I then had to add the userid from Windows 10 (same user name as on Linux) and restarted smb and nmb.
smbpasswd -a kurtis
@kurtis318
kurtis318 / DisplayLink_on_F26.txt
Created August 2, 2017 04:42
DisplayLink on F26
@kurtis318
kurtis318 / Pycharm_auto_function_documentation.txt
Created August 27, 2017 03:08
Pycharm auto function documentation
Pycharm creates a template documentation for new functions. I did not know what they here. Found an example at this web site.
https://pypi.python.org/pypi/exdoc
Not sure exactly the content of the page itself but I now know how to specify the documentation in the Pycharm template.
def f(a, b=1, *args):
''' Simple function