Kali Linux Install Skype

From WikiMLT

Down­load and In­stall Skype for Lin­ux

Skype for Desk­top is avail­able for Win­dows, Mac OS X and Lin­ux. For Lin­ux it is avail­able as snap, .rpm, and .deb pack­age. Kali is De­bian based so we need the .deb pack­age.

wget https://go.skype.com/skypeforlinux-64.deb -O ~/Downloads/skype.deb
sudo apt install ~/Downloads/skype.deb

Add Short­cut on the Desk­top

cp /usr/share/applications/skypeforlinux.desktop ~/Desktop/Skype.desktop

Once the above com­mand is ex­e­cut­ed, right click on the new icon and choice on the Al­low Launch­ing op­tion.

Figure 1. Skype > Tools > Gen­er­al tab: Set­up Skype to au­to­mat­i­cal­ly start in the back­ground.

Add to Au­tostart Ap­pli­ca­tions

You can add Skype to the list of au­tostart ap­pli­ca­tions by ex­e­cut­ing the fol­low­ing com­mand, or bet­ter you can tweak the Skype's set­tings as it is shown at Fig­ure 1.

cp /usr/share/applications/skypeforlinux.desktop ~/.config/autostart/

Fix the Dep­re­cat­ed Keyring Warn­ing

The is­sue. Af­ter the In­stal­la­tion when I'm us­ing apt the fol­low­ing warn­ing mes­sage ap­pears.

sudo apt update
...
All packages are up to date.
W: https://repo.skype.com/deb/dists/stable/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

One way to re­solve this is to ex­port the GPG key from the dep­re­cat­ed keyring and store it in /​​​usr/​​​share/​​​keyrings. The source of the so­lu­tion is list­ed with­in the ref­er­ences sec­tion, it pro­vides the nec­es­sary ex­pla­na­tions, here it is con­vert­ed to a small script.

APP="Skype"
LIST="/etc/apt/sources.list.d/skype-stable.list"
KEY=$(sudo apt-key list 2>/dev/null | grep -i "$APP" -B1 | head -n1 | awk '{print $(NF-1)$NF}')
sudo apt-key export "$KEY" | sudo gpg --dearmour -o "/usr/share/keyrings/${APP}.gpg"
sudo sed -i.bak "s#]# signed-by=/usr/share/keyrings/${APP}.gpg]#" "$LIST"
sudo apt-key del "$KEY" 
sudo apt update
sudo rm "${LIST}.bak"

Ref­er­ences