If you receive the message Spotify desktop client communication failed when trying to Login with Facebook to the Spotify app here’s why and how to fix it.
It was because I have 2 factor security turned on.
- Go to https://www.facebook.com/settings?tab=security&view
- On the line App Passwords click Edit
- Click the Generate App Passwords link
- Click the Generate App Passwords button
- Enter a friendly name for what this is for i.e. Spotify
- Click Generate Password
- Copy the password in the normal spotify logon password box.
- enter your FB email address as the username.
- HEY PRESTO!
- Install libpam-radius-auth
sudo apt-get install libpam-radius-auth
- Configure libpam-radius-auth with your radius servers and secrets
sudo pico /etc/pam_radius_auth.conf
- Set permissions on /etc/pam_radius_auth.conf
sudo chmod 0600 /etc/pam_radius_auth.conf
auth sufficient pam_radius_auth.so to
/etc/pam.d/login and then the following as desired just above the line reading @include common-auth
- Add try_first_pass to auth line in /etc/pam.d/common-auth
auth [success=1 default=ignore] pam_unix.so nullok_secure try_first_pass
- Make user locally with disabled password
sudo useradd -m USERNAME
or to add a user and add to the sudo group
sudo useradd -m -G sudo USERNAME
The one caveat that I’ve found with this is that when logging in with local users to the local console you are prompted for a password twice, this is fixed via step 5 but note that if you run pam-auth-update this change will be overwritten.