Kali Linux Install Skype: Difference between revisions

From WikiMLT
Spas (talk | contribs)
Spas (talk | contribs)
m Text replacement - "Mac OS" to "MacOS"
 
(29 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude><!--[[Category:Linux_Desktop|?]]-->{{ContentArticleHeader/Linux_Desktop}}</noinclude>
<noinclude><!--[[Category:Linux_Desktop|?]]-->{{ContentArticleHeader/Linux_Desktop}}</noinclude>


== Messenger ==
== Download and Install Skype for Linux ==
* Подробни инструкции:
:* [https://www.linuxbabe.com/instant-messenger/facebook-messenger-linux-ubuntu-16-04 How to Install Facebook Messenger Linux Client on Ubuntu 16.04 LTS]
:* [http://www.click4infos.com/install-facebook-messenger-in-linux/ How to install Facebook Messenger in Linux, Ubuntu, Debian and derivatives for Desktop]
* Официална страница на: [https://messengerfordesktop.com/#download Messenger for Desktop] – от тук може да бъде свалена последната версия.
* GitHub на Messenger: [https://github.com/aluxian/Messenger-for-Desktop/releases aluxian/Messenger-for-Desktop] – от тук може да бъде свалена последната версия, като е възможно използването на <code>wget</code>.


* Инсталиране:
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="bash">
cd ~/Downloads
#wget https://github.com/aluxian/Messenger-for-Desktop/releases/download/v2.0.9/messengerfordesktop-2.0.9-linux-i386.deb -O messenger.deb
wget https://github.com/aluxian/Messenger-for-Desktop/releases/download/v2.0.9/messengerfordesktop-2.0.9-linux-amd64.deb -O messenger.deb
sudo dpkg -i messenger.deb
sudo apt install -f


rm messenger.deb
<syntaxhighlight lang="shell" line="1">
 
wget https://go.skype.com/skypeforlinux-64.deb -O ~/Downloads/skype.deb
# Деинсталиране:
sudo apt install ~/Downloads/skype.deb
#sudo apt-get remove messenger*
</syntaxhighlight>
</syntaxhighlight>
:* Стартиране при влизане в системата. Това е единственото от трите приложения чиято функция за автоматично стартиране работи както трябва. Настройки: <kbd>App</kbd> > <kbd>Launch on OS Startup</kbd>; <kbd>App</kbd> > <kbd>Start Hidden on Startup</kbd>.


== Skype ==
== Add Shortcut on the Desktop ==
{{media|3|Инсталиране на Viber - Messenger - Skype 3.png|sz=220}}
* Официална страница на: [https://www.skype.com/en/get-skype/ Skype for Desktop] – от тук може да бъде свалена последната версия., като е възможно използването на <code>wget</code>.


* Подробни инструкции и алтернативни библиотеки: [https://askubuntu.com/a/932189/566421 Ask Ubuntu: How do I install Skype?]
<syntaxhighlight lang="shell" line="1">
* Инсталиране:
cp /usr/share/applications/skypeforlinux.desktop ~/Desktop/Skype.desktop
:<syntaxhighlight lang="bash" style="overflow: hidden;">
</syntaxhighlight>
cd ~/Downloads
Once the above command is executed, right click on the new icon and  choice on the <code>Allow Launching</code> option.  
wget https://go.skype.com/skypeforlinux-64.deb
sudo dpkg -i skypeforlinux*.deb
sudo apt install -f


rm skypeforlinux*.deb
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
#sudo apt-get remove skype*
</syntaxhighlight>{{media|1|Skype for Linux Settings General Tab.png| sz = 320}}
 
# Възстановяване на изченала икона от trybar: https://askubuntu.com/a/871037/566421
#sudo apt-get install sni-qt:i386
sudo apt-get install libappindicator1
</syntaxhighlight>


:* Стартиране при влизане в системата. Понеже настройката за автоматично стартиране не работи е създаден скрипт, който се стартира от <code>.desktop</code> файл във <code>Startup Applications</code> – на Фигура 3 са дадени настройките на приложението:
== Add to Autostart Applications ==
:: <syntaxhighlight lang="bash">
You can add Skype to the list of autostart applications by executing the following command, or better you can tweak the Skype's settings as it is shown at {{Media-cite|f|1}}.<syntaxhighlight lang="shell" line="1">
cat << EOF | sudo tee /usr/local/bin/skype.launcher && sudo chmod +x /usr/local/bin/skype.launcher
cp /usr/share/applications/skypeforlinux.desktop ~/.config/autostart/
#!/bin/sh
sleep 1
killall skypeforlinux > /dev/null 2>&1
sleep 1
killall skypeforlinux > /dev/null 2>&1
sleep 3
skypeforlinux &
sleep 5
xdotool windowminimize \$(xdotool search --name "skype" | tail -1)
EOF
</syntaxhighlight>
</syntaxhighlight>


:: <syntaxhighlight lang="bash">
== Fix the Deprecated Keyring Warning ==
cat << EOF | tee $HOME/.config/autostart/skype.launcher.desktop
'''The issue.''' After the Installation when I'm using <code>apt</code> the following warning message appears.<syntaxhighlight lang="shell" line="1">
[Desktop Entry]
sudo apt update
Type=Application
</syntaxhighlight><syntaxhighlight lang="shell-session" class="mlw-pre-wrap">
Exec=skype.launcher
...
Hidden=false
All packages are up to date.
NoDisplay=false
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.
X-GNOME-Autostart-enabled=true
</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">
Name[en_US]=SkypeCustomLauncher
APP="Skype"
Name=SkypeCustomLauncher
LIST="/etc/apt/sources.list.d/skype-stable.list"
Comment= Launch Skype
KEY=$(sudo apt-key list 2>/dev/null | grep -i "$APP" -B1 | head -n1 | awk '{print $(NF-1)$NF}')
EOF
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"
</syntaxhighlight>
</syntaxhighlight>
== References ==
* 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/a/823086/566421 Intel graphic ppa error after apt-get update]


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

Latest revision as of 14: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