It turns out if you enable the otherwise amazing Gnome Tweaks " Keyboard & Mouse > Pointer Location" setting then all your keyboard shortcuts using CTRL require doubling up, took me a week to figure that one out! #Linux on the desktop.
Tagged with #linux
38 results found.
-
-
How to install the NVIDIA drivers on Ubuntu 18.04
How to install the NVIDIA drivers on Ubuntu 18.04
sudo ubuntu-drivers autoinstallIf this fails because of a dependency that won't be installed, use apt for both the driver and the dependencies. #ubuntu #linux
-
Fixing Virtualbox host network adapter cannot be created error
If when trying to start a vm, for example using vagrant, you get the error message that the host network adapter cannot be created:
There was an error while executing `VBoxManage`, a CLI used by Vagrant<br></br>for controlling VirtualBox. The command and stderr is shown below.<br></br><br></br>Command: ["hostonlyif", "create"]<br></br><br></br>Stderr: 0%...<br></br>Progress state: NS_ERROR_FAILURE<br></br>VBoxManage: error: Failed to create the host-only adapter<br></br>VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory<br></br>VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface<br></br>VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg*)" at line 94 of file VBoxManageHostonly.cppMake sure to first start the virtualbox GUI application. It does some extra checks, and sometimes highlights the permission problem:
In my case (OpenSuse 15.1 Leap), my user was not added to the vboxusers group. Via Yast > Users and Security .... and editing my user account it was a simple checkbox away. Remember to relog.
If that doesn't work, reloading the kernel extensions could help:
$ sudo dpkg-reconfigure virtualbox-dkms$ sudo dpkg-reconfigure virtualbox<br></br>$ sudo modprobe vboxdrv <br></br>$ sudo modprobe vboxnetadp#opensuse #virtualbox #linux #vagrant -
Countdown - a bash countdown timer
I was looking for a tea timer countdown but quickly realised I might as well use a countdown script for this. I based my script on the linked script but added a customizable notification at the end
$ nano ~/bin/countdown#!/bin/bash<br></br># v2 - 2019-05-01<br></br>secs=$1<br></br>msg=${2:-$1 seconds passed.}<br></br>while [ $secs -gt 0 ]; do<br></br> echo -ne "$secs\033[0K\r"<br></br> sleep 1<br></br> : $((secs--))<br></br>done<br></br>notify-send 'Countdown Finished' "$msg"<br></br><br></br>$ chmod +x ~/bin/countdown<br></br>$ countdown 180 "Tea is ready." -
Spotify how to hide the "Find friends" bar
On Linux operating systems, Spotify does not always show the file and view menus. This makes it harder to hide the "Find Friends" bar as there is no close button on the sidebar itself.
However there's another way: Click on the chevron in the top right corner next to your spotify username, then on Settings > Display Options > untick Show Friend Activity.
-
Install Python 3.7.1 on OpenSUSE Tumbleweed
After another hour of resolving issues with pyenv and a personal project that requires Python 3.7 I thought it best to note the steps I used to install Python 3.7.1 on OpenSUSE Tumbleweed:
# Install requirements for compiling Python sudo zypper in zlib-devel bzip2 libbz2-devel libffi-devel libopenssl-devel readline-devel sqlite3 sqlite3-devel xz xz-devel # Compile Python cd ~/Downloads wget <a href="https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tar.xz" target="_blank">https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tar.xz</a> tar xf Python-3.7.1.tar.xz cd Python-3.7.1 ./configure make # AltInstall ensures 3.7.1 is installed alongside your system python sudo make altinstall # Fix dynamic library loading sudo ln -s /usr/local/lib64/python3.7/lib-dynload /usr/local/lib/python3.7/lib-dynloadI've updated the Common build problems · pyenv/pyenv Wiki page to reflect the updated required packages. Thanks to Andrew Cooke for the dynamic library fix
-
Howto install Cryptomator for OpenSuse
Linux is so userfriendly, so the rpm that can be downloaded is missing dependencies. However, I'm quickly becoming a fan of zypper and OpenSUSE's dependency handling, and comes to the rescue:
sudo zypper in cryptomator.rpmEven though cryptomator made a mistake in signing part of the application, it can still be installed by pressing ignore. Are you sure you want to do that? It seems a bit crap for such an essential utility.
-
Installing Dropbox on OpenSUSE Tumbleweed
Both the official RPM and the discover package failed for me due to missing dependencies, without specifying what those are. However the following worked:
sudo zypper install dropbox-cli dropbox start -i dropbox autostart -
So you want to become a neckbeard?
Having wasted too much time installing Ubuntu on a laptop recently, I thought it would be helpful for the future self to document the issues.
Issues
I'm seeing one or more of the following issues with Ubuntu 18.04 LTS: - Missing text on the login screen - second monitor switching off - Hangs - Won't boot directly into the OS Install Ubuntu 16.04 LTS which is not a piece of garbage. #omg Migrate SSH keys from Putty to OpenSSH https://askubuntu.com/questions/818929/login-ssh-with-ppk-file-on-ubuntu-terminal/818932 What are the correct permissions for the .ssh folder? Typically you want the .ssh directory permissions to be 700 (drwx------) and the public key (.pub file) to be 644 (-rw-r--r--). Your private key (id_rsa) should be 600 (-rw-------). Lastly, your home directory should not be writeable by the group or others (at most 755 (drwxr-xr-x)). How do I connect to our team networkshare automatically on startup? sudo su apt install cifs-utils echo "//path/to/windows-share /mnt/team cifs credentials=/etc/samba/credentials,uid=1000 0 0" >> /etc/stab cat > /etc/samba/credentials <<EOC username=UserName password=PassWord EOC chown root.root /etc/samba/credentials && chmod 400 /etc/samba/credentialsChange the username and password appropriately verify your userid is 1000 with id -u UserNameI skipped creating a passphase for my encrypted home directory, how do I do it now? run "ecryptfs-unwrap-passphrase" in the terminal How to stop the mouse sticking to the edges of the display https://askubuntu.com/questions/119281/what-is-the-function-of-the-sticky-edges-on-off-setting-in-di... Can't install vagrant plugins Download vagrant from vagrantup.com nfsd is not installed sudo apt-get install nfs-kernel-server vagrant booting vms reports a timetout delete (rm) the IdentityFile mentioned in vagrant ssh-configThis document will get updated as I stumble and fix other issues.
App Alternatives
Clipboard manager https://hluk.github.io/CopyQ/ Remote connection manager https://snapcraft.io/pac-vs Google Drive https://www.howtogeek.com/196635/an-official-google-drive-for-linux-is-here-sort-of-maybe-this-is-al... Phrase Expansion https://leehblue.com/ubuntu-text-expander/https://github.com/leehblue/texpander Screen Recorder Kazam (https://askubuntu.com/a/29954), installs well with apt. Alternatively Simple Screen Recorder. -
Fix slow DNS responses on Ubuntu
I've been finding that browsing has been slow for me lately on my linux box, which has Ubuntu 16.04 installed. After some investigation it seemed worthwhile to try to install a DNS cache to speed up DNS queries. This has sped up successive DNS queries from 21ms to 0ms, removing sluggishness.
sudo apt install bind9 cd /etc/resolvconf/resolv.conf.d sudo echo "nameserver 127.0.0.1" >> headApply the configuration as follows:
sudo resolvconf -uThe improvement can be seen by using dig to query a domain and looking at the Query time output. After the first dig, subsequent digs return in 0 ms.