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 [2017/04/18 16:08] joshnotes [2023/03/19 09:49] (current) – add KDE Plasma Task Manager button width josh
Line 261: Line 261:
  
 Disable the lock screen that appears before the login screen: [[http://windows.wonderhowto.com/how-to/disable-lock-screen-windows-10-0162965/]] 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 ====== ====== Windows 10 Taskbar Never Combine Registry ======
Line 299: Line 302:
  
 Follow Cat_Is_Not_SP directions at [[https://www.virtualbox.org/ticket/5732]] to change UAC settings. 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.1492546098.txt.gz · Last modified: by josh