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 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


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/ 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/

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 squeeze/main Sources  404  Not Found [IP: 80]Err squeeze/contrib Sources  404  Not Found [IP: 80]Err squeeze/non-free Sources  404  Not Found [IP: 80]Err squeeze/main amd64 Packages  404  Not Found [IP: 80]Err squeeze/contrib amd64 Packages  404  Not Found [IP: 80]Err squeeze/non-free amd64 Packages  404  Not Found [IP: 80]W: Failed to fetch  404  Not Found [IP: 80]
W: Failed to fetch  404  Not Found [IP: 80]
W: Failed to fetch…

How to fix "/usr/local/lib/ 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/ no version information available (required by /usr/lib/x86_64-linux-gnu/libcurl-gnutls.s
/usr/lib/apt/methods/https: /usr/local/lib/ no version information available (required by /usr/lib/x86_64-linux-gnu/

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/ /usr/local/lib/ 
sudo ln -fs /usr/lib/ /usr/local/lib/