Posts

How to fix Google Drive app hangs at "one moment please..."

I was trying to install google drive app on my Windows server 2012 R2 and after I entered all the login information, the app hang up at "one moment please..." which is forever. So here is a fix:

Open Control PanelGo to Network and InternetGo to Internet OptionsOpen Security TabClick Trusted sitesClick the "site" buttonCopy & paste https://accounts.google.com to "Add this website to the zone" and click Add button Try to login again to Google Drive app and everything will be ok.

Fix slack's icon tray missing in Ubuntu 17.04

After upgrading my computer to Ubuntu 17.04, the Slack's icon try gone missing. Here is a quick fix:

1. Edit /usr/share/applications/slack.desktop, and change the following line:

Exec=/usr/binslack --disable-gpu %U

to

Exec=env XDG_CURRENT_DESKTOP=Unity /usr/bin/slack --disable-gpu %U

2. Restart slack to see the icon tray appears

Add SSH key to Vyatta for SSH authentication

I was trying to set up unattend ssh login for vyatta user by concatenate my computer's public key to /home/vyatta/.ssh/authorized_keys but every time the server gets restarted, the key's gone. I shouldn't do it that way because Vyatta has its own way of managing ssh keys. Do this instead:

1. From my computer, copy the public key to vyatta server:

$ rsync -arv ~/.ssh/id_rsa.pub vyatta@vyatta:/home/vyatta

(at this point, I have to enter the password for vyatta user)

2. On Vyatta, using Vyatta's commands to import the key:

$ configure
$ loadkey vyatta /home/vyatta/id_rsa.pub

From now I don't have to enter password to ssh to Vyatta.

Apt-get update error in VyOS-1.1.6 (Debian 6.0.10 - Squeeze)

I's trying to install some packages on my VyOS (1.1.6 image) and got 404 errors with "apt-get update":

Err http://ftp.us.debian.org squeeze/main Sources  404  Not Found [IP: 128.30.2.26 80]Err http://ftp.us.debian.org squeeze/contrib Sources  404  Not Found [IP: 128.30.2.26 80]Err http://ftp.us.debian.org squeeze/non-free Sources  404  Not Found [IP: 128.30.2.26 80]Err http://ftp.us.debian.org squeeze/main amd64 Packages  404  Not Found [IP: 128.30.2.26 80]Err http://ftp.us.debian.org squeeze/contrib amd64 Packages  404  Not Found [IP: 128.30.2.26 80]Err http://ftp.us.debian.org squeeze/non-free amd64 Packages  404  Not Found [IP: 128.30.2.26 80]W: Failed to fetch http://ftp.us.debian.org/debian/dists/squeeze/main/source/Sources.gz  404  Not Found [IP: 128.30.2.26 80]
W: Failed to fetch http://ftp.us.debian.org/debian/dists/squeeze/contrib/source/Sources.gz  404  Not Found [IP: 128.30.2.26 80]
W: Failed to fetch http://ftp.us.debian.org/debian/dists/squeeze/non-free/source/…

How to fix "/usr/local/lib/libldap_r-2.4.so.2: no version information available" error

When I ran "sudo apt update" this morning these errors showed up:

/usr/lib/apt/methods/https: /usr/local/lib/libldap_r-2.4.so.2: no version information available (required by /usr/lib/x86_64-linux-gnu/libcurl-gnutls.s
o.4)
/usr/lib/apt/methods/https: /usr/local/lib/liblber-2.4.so.2: no version information available (required by /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.
4)

This error means libcurl was compiled with a version of libldap_r other than what I have in /usr/local/lib. So a work around is to symlink the missing files:

sudo ln -fs /usr/lib/liblber-2.4.so.2 /usr/local/lib/ 
sudo ln -fs /usr/lib/libldap_r-2.4.so.2 /usr/local/lib/