Ubuntu Tips


  1. Ubuntu File Manager to show hidden files: Ctrl + H.
  2. Ubuntu 18.04: Suddenly sound does not work, then run this command.

    $ pulseaudio --kill; sleep 2s; sudo alsa force-reload ; pulseaudio --start

    Note pulseaudio --kill takes one minute or so. Be patient!
  3. SSH via openvpn on Android Device.
  4. To mount a casper file system, which is a persitent drive on a live USB.

    mount casper-rw by $ sudo mount -o loop /media/casper-rw /tmp/casper/

  5. Ubuntu 18.04. Window Manager restarts by ALT+F2 and then r and ENTER.
  6. Ubuntu 14.04. Workspace switcher freezes: it is "unfreezed" by ALT+ESC.
  7. Screen Lock freezes after too many characters in password field by mistakes. for example, a tip of your book is on your keyboard, which put too many characters in the password field. It freezes your lock screen. You can not delete the characters input. your mouse works but right top corner pull down does not work. Enter key does not respond with "password error". Thus you basically stack. The easiest way is to kill your window manager, but it loses all sessions, windows you opened, unsaved data and so on. It is really annoying.
    1. The best way to kill the lock screen without losing your session: $ sudo loginctl unlock-session [id]. [id] is the ssesion id you get by typing loginctl list-sessions. you try one by one.
    2. Kill the lightdm, which is the window manager controling your screen lock. Note that you lose all sessions, all windows will be closed and all unsaved data will be lost.
  8. Workspace switch is very slow. I am looking for a solution for this.

Go back to Computer

20190212