Kali Linux Install Skype: Difference between revisions

From WikiMLT
m (Text replacement - "Mac OS" to "MacOS")
 
(8 intermediate revisions by the same user not shown)
Line 3: Line 3:
== Download and Install Skype for Linux ==
== Download and Install Skype for Linux ==


Skype for Desktop is available for Windows, Mac OS X and Linux. For Linux it is available as <code>snap</code>, <code>.rpm</code>, and <code>.deb</code> package. Kali is Debian based so we need the <code>.deb</code> package.
Skype for Desktop is available for Windows, MacOS X and Linux. For Linux it is available as <code>snap</code>, <code>.rpm</code>, and <code>.deb</code> package. Kali is Debian based so we need the <code>.deb</code> package.


<syntaxhighlight lang="shell" line="1">
<syntaxhighlight lang="shell" line="1">
Line 15: Line 15:
cp /usr/share/applications/skypeforlinux.desktop ~/Desktop/Skype.desktop
cp /usr/share/applications/skypeforlinux.desktop ~/Desktop/Skype.desktop
</syntaxhighlight>
</syntaxhighlight>
Once the above command is executed, right click on the new icon and  choice on the <code>Allow Launching</code> option.
Once the above command is executed, right click on the new icon and  choice on the <code>Allow Launching</code> option.  
{{media|1|Skype for Linux Settings General Tab.png| sz = 320}}
 
Or run the following [https://stackoverflow.com/a/73455006/6543935 commands] which will do the same for you.<syntaxhighlight lang="shell" line="1" class="force-prompt">
desktop-file-install --mode=0755 --dir=$HOME/Desktop ~/Desktop/Skype.desktop
dbus-launch gio set ~/Desktop/Skype.desktop "metadata::trusted" true
</syntaxhighlight>{{media|1|Skype for Linux Settings General Tab.png| sz = 320}}


== Add to Autostart Applications ==
== Add to Autostart Applications ==
Line 23: Line 27:
</syntaxhighlight>
</syntaxhighlight>


== Fix the Deprecated Keyring ==
== Fix the Deprecated Keyring Warning ==
'''The issue.''' After the Installation when I'm using <code>apt</code> the following warning message appears.<syntaxhighlight lang="shell" line="1">
'''The issue.''' After the Installation when I'm using <code>apt</code> the following warning message appears.<syntaxhighlight lang="shell" line="1">
sudo apt update
sudo apt update
Line 32: Line 36:
</syntaxhighlight>One way to resolve this is to export the GPG key from the deprecated keyring and store it in <code>/usr/share/keyrings</code>. The source of the solution is listed within the references section, it provides the necessary explanations, here it is converted to a small script.<syntaxhighlight lang="shell" line="1">
</syntaxhighlight>One way to resolve this is to export the GPG key from the deprecated keyring and store it in <code>/usr/share/keyrings</code>. The source of the solution is listed within the references section, it provides the necessary explanations, here it is converted to a small script.<syntaxhighlight lang="shell" line="1">
APP="Skype"
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}')
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 apt-key export "$KEY" | sudo gpg --dearmour -o "/usr/share/keyrings/${APP}.gpg"
sudo sed "s#]# signed-by=/usr/share/keyrings/${APP}.gpg]#" /etc/apt/sources.list.d/skype-stable.list -i
sudo sed -i.bak "s#]# signed-by=/usr/share/keyrings/${APP}.gpg]#" "$LIST"
sudo apt update
sudo apt-key del "$KEY"  
sudo apt-key del "$KEY"  
sudo apt update
sudo rm "${LIST}.bak"
</syntaxhighlight>
</syntaxhighlight>
== References ==
== References ==
* Download Skype: [https://www.skype.com/en/get-skype/ Skype for Desktop]
* Download Skype: [https://www.skype.com/en/get-skype/ Skype for Desktop]
* Ask Ubuntu: [https://askubuntu.com/q/1398344/566421 apt-key deprecation warning when updating system]
* Ask Ubuntu: [https://askubuntu.com/q/1398344/566421 apt-key deprecation warning when updating system]
* Ask Ubuntu: [https://askubuntu.com/a/823086/566421 Intel graphic ppa error after apt-get update]


<noinclude>
<noinclude>
Line 46: Line 53:
{{devStage  
{{devStage  
  | Прндл  = Linux Desktop
  | Прндл  = Linux Desktop
  | Стадий = 3
  | Стадий = 6
  | Фаза  = Разработване
  | Фаза  = Утвърждаване
  | Статус = Разутвърден
  | Статус = Утвърден
  | ИдтПт  = Spas
  | ИдтПт  = Spas
  | РзбПт  = {{REVISIONUSER}}
  | РзбПт  = Spas
  | АвтПт  = Spas
  | АвтПт  = Spas
  | УтвПт  = Spas
  | УтвПт  = {{REVISIONUSER}}
  | ИдтДт  = 2.07.2022
  | ИдтДт  = 2.07.2022
  | РзбДт  = {{Today}}
  | РзбДт  = 20.08.2022
  | АвтДт  = 19.08.2022
  | АвтДт  = 20.08.2022
  | УтвДт  = 19.08.2022
  | УтвДт  = {{Today}}
  | ИдтРв  = [[Special:Permalink/27036|27036]]
  | ИдтРв  = [[Special:Permalink/27036|27036]]
  | РзбРв  = {{REVISIONID}}
  | РзбРв  = [[Special:Permalink/30438|30438]]
  | АвтРв  =  
  | АвтРв  = [[Special:Permalink/30440|30440]]
  | РзАРв  = [[Special:Permalink/30393|30393]]
  | РзАРв  = [[Special:Permalink/30393|30393]]
  | УтвРв  =  
  | УтвРв  = {{REVISIONID}}
  | РзУРв  = [[Special:Permalink/30395|30395]]
  | РзУРв  = [[Special:Permalink/30395|30395]]
}}
}}
</div>
</div>
</noinclude>
</noinclude>

Latest revision as of 15:49, 28 October 2022

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

Skype for Desk­top is avail­able for Win­dows, Ma­cOS 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.

Or run the fol­low­ing com­mands which will do the same for you.

desktop-file-install --mode=0755 --dir=$HOME/Desktop ~/Desktop/Skype.desktop
dbus-launch gio set ~/Desktop/Skype.desktop "metadata::trusted" true
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 update
sudo apt-key del "$KEY" 
sudo rm "${LIST}.bak"

Ref­er­ences