12/15/2017

How to build pidgin from source code and add google talk account

Download the source code from their website.
Run:

./configure --disable-vv --disable-idn --disable-avahi --disable-dbus --disable-perl --disable-tcl
make -j8
sudo make install


Add account:
Username: name without domain
Domain: gmail.com or others

password: if 2nd factor is on: you application password, if not, your real password.

Advanced Tab:
Connection security: Require encryption
Connect server: talk.google.com

After installation, remember to do the hotkeys:
https://liangzou.blogspot.com/2016/01/pidgin-shortcuts-hotkey.html

How to install sougou pinyin on Ubuntu 16.04

不要用,会造成fcitx 100% CPU usage issue

Download sougou pinyin from the official website. sogoupinyin_2.2.0.0102_amd64.deb

sudo dpkg -i sogoupinyin_2.2.0.0102_amd64.deb
sudo apt install -f
sudo dpkg -i sogoupinyin_2.2.0.0102_amd64.deb

Then:
Logout & log in back

Right click on the keyboard icon, configure.
On the Input Method Configuration windows, click the + button to add a new input method. UNCHECK "Show Only Current Language", add sougou pinyin.
Change Global Config language switch shortcut to Super + Space

12/12/2017

How to fix missing desktop icons under Cinnamon

sudo apt remove --purge nautilus
xdg-mime default nemo.desktop  inode/directory

Install emacs25 on Ubuntu 16.04

sudo add-apt-repository ppa:kelleyk/emacs
sudo apt update
sudo apt remove --purge emacs24
sudo apt remove --purge emacs24-lucid
sudo apt install emacs25

11/29/2017

X11 Forwarding over Screen (gnome terminal screen command)

Before running screen:
echo $DISPLAY

Once you have re-attached to screen, explicitly set the environment variable:

export DISPLAY=:N.0

How to set up Canon MF247 dw printer on Ubuntu 16.04

1. Go to https://www.usa.canon.com/internet/portal/us/home/support/details/printers/black-and-white-laser/imageclass-mf247dw?tab=drivers_downloads and download the Linux driver.
2. Manually install "sudo apt install libgcrypt20-dev"
3. Run sudo ./install.sh. (I had to edit the file and make sure it runs DEB instead of RPM by changing "if which rpm > /dev/null 2>&1;" to  if [ 1 -eq 0];

NOTE: I got this error:
#----------------------------------------------------#
# cups restart
#----------------------------------------------------#
/etc/init.d/cups restart
[ ok ] Restarting cups (via systemctl): cups.service.


Could not install.

But it seems this error doesn't matter.

4. Then I can add the printer by using its ip: 10.1.30.154

11/24/2017

How to change firefox Find/Search text background color

Type about:config to the address bar.

Create two entries: (Right click | New | String)

ui.textHighlightBackground, value #0000FF
ui.textSelectBackgroundAttention, value #FF0000

Other properties to change:
    ui.textHighlightBackground
    ui.textHighlightForeground
    ui.textSelectBackground
    ui.textSelectForeground