It becomes quite easy to do remote desktop now. First, install openssh-server and x11vnc at the host by sudo apt install openssh-server x11vnc For the client, simply login with ssh and then run x11vnc after login. Then can connect to remotely with vnc clients such as remmina Login without password At client side, create key-pair…
Unity desktop installation fails on 22.04
sudo apt install ubuntu-unity-desktop fails from scratch. Fix it by sudo apt-get install dbus-x11
Screen reader on/off for Ubuntu
Alt+Super+S turns orca on/off
Natural scrolling in Ubuntu 22.04
A quick workaround. Install synaptics and reboot sudo apt install xserver-xorg-input-synaptics then synclient VertScrollDelta=-111 Autoload the configuration Add a file 20-natural-scrolling-touchpads.conf under /usr/share/X11/xorg.conf.d with the following content Section “InputClass” Identifier “Natural Scrolling Touchpads” MatchIsTouchpad “on” MatchDevicePath “/dev/input/event*” Option “VertScrollDelta” “-111” Option “HorizScrollDelta” “-111” EndSection
Remmina alt-tab (alt-space as well)
Try to press right Ctrl and your keyboard will be fully functional in remote computer. You will be able to use Alt+Tab.
top annoying traps
sklearn is not sklearn If you came across complaint no module named sklearn and you are sure that you “installed” that with pip install sklearn. Sorry, sklearn is scikit-learn instead of sklearn. pip install scikit-learn should solve the problem. Dropbox is syncing all files except some Check if you own the file. It maybe belong…
import module from another folder
A simple hack to import a module from another folder import sys # caution: path[0] is reserved for script path (or ” in REPL) sys.path.insert(1, ‘/path/to/application/app/folder’) import file
AWS CLI error: The request must contain the parameter AWSAccessKeyId
This is a very misleading and weird error. When running aws configure in ubuntu 20.04. If I copied and pasted the key id and secret to the terminal, it appends something like ^[[200~ and ^[[201~ before and after the copied key and secret. I was not aware of what that was then but it seems…
google passwords
Google passwords failed me again. I got “can’t load this page” error. I didn’t know that password is also saved in chrome. One can retrieve that at setting->autofill
Connnecting slots by name
I tried to use Qt designer, and I don’t see how I can rename a slot in the designer. It turns out that it will try to “connect by the name” directly. It is quite obscure. And here is a bit of explanation.