Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / 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_SDDM_bigger_font_4k_display.txt
Last active November 25, 2017 05:52
F26: SSDM bigger font with 4K display
My Dell XP2 (9560) has a 4K display. I am using the display manager (dm) that came with KDE/Plasma which is SDDM.
The problem I had was the login screen had very small text and the resolution was full 4K (small everything).
I found the solution in the following ArchWiki:
https://wiki.archlinux.org/index.php/SDDM#DPI_settings
All I did was edit /etc/sddm.conf and uncomment the [X11] setting and add the -dpi option and value:
@kurtis318
kurtis318 / ProblemInstallingShutterOnF26.txt
Last active July 18, 2017 03:24
F26: Problem installing shutter
I tried installing shutter on Fedora 26. Here is the message I kept getting:
- nothing provides gnome-web-photo needed by shutter-0.93.1-4.fc26.noarch
After lots of Googling, I finally search for gnome-web-photo.rpm. I downloaded it from this URL:
https://rpmfind.net/linux/RPM/fedora/25/x86_64/g/gnome-web-photo-0.10.5-9.fc24.x86_64.html
Direct URL:
ftp://fr2.rpmfind.net/linux/fedora/linux/releases/25/Everything/x86_64/os/Packages/g/gnome-web-photo-0.10.5-9.fc24.x86_64.rpm
@kurtis318
kurtis318 / KVMonFedora26.txt
Last active July 18, 2017 03:25
F26: Installing KVM/Qemu
I needed to get kvm and virt-manager installed on my Dell XPS 15. I tried :
sudo dnf group list
There was no virtualation group listed as in the past. Googling found the following helpful web site:
https://fedoraproject.org/wiki/Getting_started_with_virtualization
I should have used this command:
@kurtis318
kurtis318 / FixKDEPlasmaTrayIconsSize.txt
Last active May 24, 2022 10:56
F26: Fix for small tray icons in KDE Plasma
REF: https://forum.manjaro.org/t/increase-the-size-of-tray-icons-kde/12449/4
The following worked great for me. I like iconSize=2 for my desktop.
There has been some discussion about the systray icon size. The following fixed it for me…
Edit the file ~/.config/plasma-org.kde.plasma.desktop-appletsrc
After every line that commences extraItems= add another line iconSize=3
After a reboot the icons should have a much higher limit of size when adjusting the height of the panel.
@kurtis318
kurtis318 / DellXPS15-9560-firmware.txt
Last active July 17, 2017 04:32
Firmware for Dell XPS 15 (9560)
I purchased a maxed out Dell XPS 15 earliers this year. Windows 10 worked flawlessly (they sure know how to do multi-architecture and HiDPI) but of course I just had to install Fedora 25. I was using Fedora 25 for a few months and was aware of the Intel Kaby Lake CPU used. I did not check out looking for a firmware update on the Dell support site until I re-installed my XPS 15 with Fedora 26.
The problem I ran into immediately was I could only find the latest 1.3.3 firmware in an exe file that runs under Windows or in DOS mode. I tried without any success to make a FreeDOS bootable USB with the exe file. Unfortunately, the Dell web site was correct, FreeDOS does not recognize USB 3.0.
I did some Googling and finally found the following web site that has a cab file version of the raw binary firmware file.
https://secure-lvfs.rhcloud.com/lvfs/device/34578c72-11dc-4378-bc7f-b643866f598c
I formatted my USB key with fat32 in Fedora. I extracted the raw .bin file (I extracted all 4 files) and placed t
@kurtis318
kurtis318 / exFatOnFedora25.txt
Created June 17, 2017 01:21
Support for exFat drives on Fedora 25
I run Fedora 25 on many of my computers. I inserted an SD card in my new Dell XPS 15 and tried to open the contents.
To my surprise, I got an error saying exFat is not supported. Here is where I found reference to the fuse-exfat package
on Ubuntu.
https://digitalgraphy.wordpress.com/2016/11/04/mount-unknown-filesystem-type-exfat-fedora-24/
I was not able to mount the sd device using mount but the Disks app in GNOME was able to mount it correctly.
I will update this file if I find a reboot lets me use mount or fusermount command.