User Tools

Site Tools


notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
notes [2016/03/07 20:41] joshnotes [2023/03/19 09:49] (current) – add KDE Plasma Task Manager button width josh
Line 217: Line 217:
  
 Use distribution's Appearance settings to change the Icon style. Use distribution's Appearance settings to change the Icon style.
 +
 +====== Carrier Reset for HTC One M8 on Sprint ======
 +
 +I was getting a "Unable to establish a wireless data connection" error on my HTC One M8 on Ting using Sprint's network. The technician suggested calling ''##72786#''' to do a "Carrier Reset". It retried to activate several times unsuccessfully, but on the last attempt I stepped outside and then it succeeded. Since then my mobile data connection seems to work fine again.
 +
 +====== Disable F1 keyboard shortcut in xfce4-terminal ======
 +
 +In ''$HOME/.config/xfce4/terminal/accels.scm'':
 +<code>
 +(gtk_accel_path "<Actions>/terminal-window/contents" "")
 +</code>
 +
 +====== Building xscreensaver ======
 +
 +<code>
 +sudo apt install \
 +  libxml2-dev \
 +  libglade2-dev \
 +  libjpeg62-dev \
 +  libgl1-mesa-dev \
 +  libglu1-mesa-dev \
 +  libxmu-dev \
 +  libxpm-dev \
 +  libxt-dev
 +./configure --prefix=$HOME/local --with-x-app-defaults=$HOME/local/etc/X11/app-defaults
 +make
 +</code>
 +
 +====== Changing gnome-terminal double-click to include colons ======
 +
 +From [[http://unix.stackexchange.com/questions/290544/double-click-selection-in-gnome-terminal]]:
 +
 +Run:
 +
 +<code>
 +# Find profile ID:
 +dconf list /org/gnome/terminal/legacy/profiles:/
 +# Set to $pid or replace $pid below:
 +dconf write /org/gnome/terminal/legacy/profiles:/$pid/word-char-exceptions '@ms "-=&#:/.?@+~_%;"'
 +</code>
 +
 +====== Disable Windows 10 Lock Screen ======
 +
 +Disable the lock screen that appears before the login screen: [[http://windows.wonderhowto.com/how-to/disable-lock-screen-windows-10-0162965/]]
 +
 +  * HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Personalization
 +  * NoLockScreen DWORD, value 1
 +
 +====== Windows 10 Taskbar Never Combine Registry ======
 +
 +  * HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
 +  * TaskbarGlomLevel DWORD
 +  * 0 = Always combine, hide labels
 +  * 1 = Combine when taskbar is full
 +  * 2 = Never combine
 +
 +====== Mouse side button double-click ======
 +
 +$HOME/.xbindkeysrc:
 +<code>
 +"/usr/bin/xte 'mouseclick 1' 'mouseclick 1'"
 +b:8 + Release
 +</code>
 +
 +====== Mouse side button back ======
 +
 +$HOME/.xbindkeysrc:
 +<code>
 +"/usr/bin/xte 'key XF86Back'"
 +b:9 + Release
 +</code>
 +
 +====== Finer Volume Adjustments ======
 +
 +$HOME/.xbindkeysrc:
 +<code>
 +"amixer set Master 2-"
 +XF86AudioLowerVolume
 +"amixer set Master 2+"
 +XF86AudioRaiseVolume
 +</code>
 +
 +====== Windows 10 VirtualBox Shared Folder File Access Problems ======
 +
 +Follow Cat_Is_Not_SP directions at [[https://www.virtualbox.org/ticket/5732]] to change UAC settings.
 +
 +====== squid slow service start and shutdown ======
 +
 +See [[https://askubuntu.com/questions/18127/start-stop-taking-too-much-time]]
 +
 +Edit squid config file and set:
 +
 +<code>
 +shutdown_lifetime 3 seconds
 +</code>
 +
 +====== Disable media controls on KDE Plasma 5 lockscreen ======
 +
 +Finally in Kubuntu 20.04 the settings GUI works to disable this! System Settings -> Workspace -> Workspace Behavior -> Screen Locking -> Appearance -> Media controls.
 +
 +Previously:
 +
 +See [[https://bugs.kde.org/show_bug.cgi?id=384264]].
 +
 +Edit ''/usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/LockScreenUi.qml'' and change ''active: true'' to ''active: false'' in the Loader section for MediaControls.qml.
 +
 +====== APT Pinning a PPA Package ======
 +
 +For example, after installing the ''ppa:mythbuntu/0.28'' PPA, create the file ''/etc/apt/preferences.d/mythbuntu-0-28'' with the contents:
 +
 +<code>
 +Package: *
 +Pin: release o=LP-PPA-mythbuntu-0.28
 +Pin-Priority: 600
 +</code>
 +
 +See [[https://help.ubuntu.com/community/PinningHowto]] for more info.
 +
 +====== Install xubuntu from .iso file on a second drive with GRUB ======
 +
 +Boot into GRUB, then open GRUB command line and do:
 +
 +<code>
 +loopback loop (hd0,msdos1)/xubuntu-18.04-desktop-amd64.iso
 +linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/xubuntu-18.04-desktop-amd64.iso
 +initrd (loop)/casper/initrd.lz
 +boot
 +</code>
 +
 +====== Fix Java for Minecraft in Ubuntu 18.04 ======
 +
 +See [[https://www.reddit.com/r/Minecraft/comments/8ip8vh/issue_with_minecraft_java_launcher_and_ubuntu_1804/]] and [[https://stackoverflow.com/questions/6784463/error-trustanchors-parameter-must-be-non-empty/50103533#50103533]].
 +
 +<code>
 +sudo apt install openjdk-8-jdk
 +sudo update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
 +/usr/bin/printf '\xfe\xed\xfe\xed\x00\x00\x00\x02\x00\x00\x00\x00\xe2\x68\x6e\x45\xfb\x43\xdf\xa4\xd9\x92\xdd\x41\xce\xb6\xb2\x1c\x63\x30\xd7\x92' > /etc/ssl/certs/java/cacerts
 +/var/lib/dpkg/info/ca-certificates-java.postinst configure
 +</code>
 +
 +====== KDE Plasma Task Manager button width ======
 +
 +When turning on Group by Program name but turning off Combine into a single button, the maximum task manager button size decreases.
 +I fixed this by editing preferredMaxWidth() in ''/usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/code/layout.js'':
 +
 +<code javascript>
 +function preferredMaxWidth() {
 +    if (tasks.iconsOnly) {
 +        if (tasks.vertical) {
 +            return tasks.width + verticalMargins();
 +        } else {
 +            return tasks.height + horizontalMargins();
 +        }
 +    }
 +
 +//    if (plasmoid.configuration.groupingStrategy != 0 && !plasmoid.configuration.groupPopups) {
 +//        return preferredMinWidth();
 +//    }
 +
 +    return Math.floor(preferredMinWidth() * 1.6);
 +}
 +</code>
 +
 +plasmashell can be restarted to see the change take effect with:
 +
 +<code>
 +killall plasmashell; kstart5 plasmashel
 +</code>
notes.1457401306.txt.gz · Last modified: by josh