Kali Linux Install Telegram: Difference between revisions

From WikiMLT
mNo edit summary
mNo edit summary
 
(8 intermediate revisions by the same user not shown)
Line 10: Line 10:
</syntaxhighlight>
</syntaxhighlight>


Penultimate command above will start the Telegram application. One it is started it will create automatically the necessary .desktop files, so you can find Telegram within the GNOME's applications list. Also you could setup Telegram to automatically start at user log-in from within its settings.  
Penultimate command above will start the Telegram application. Once it is started it will create automatically the necessary .desktop files, so you can find Telegram within the GNOME's applications list. Also you could setup Telegram to automatically start at user log-in from within its settings.  


If you want to put a Telegram icon at the desktop execute the following command. Note Telegram must be started at least one time before running the find/copy command below.<syntaxhighlight lang="shell" line="1" class="force-prompt">
If you want to put a Telegram icon at the desktop execute the following command. Note Telegram must be started at least one time before running the find/copy command below.<syntaxhighlight lang="shell" line="1" class="force-prompt">
find ~/.local -type f -name 'appimagekit*Telegram*.desktop' -exec cp {} ~/Desktop/Telegram.desktop \;
find ~/.local -type f -name 'appimagekit*Telegram*.desktop' -exec cp {} ~/Desktop/Telegram.desktop \;
sed -ir '/^(Version|SingleMainWindow)/d' ~/Desktop/Telegram.desktop
sed -r -e '/^(Version|SingleMainWindow)/d' -e 's/^(Name=Telegram).*$/\1/' ~/Desktop/Telegram.desktop -i
</syntaxhighlight>
 
Then right click on the new icon at the desktop and choice on the <code>Allow Launching</code> option. 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/Telegram.desktop
dbus-launch gio set ~/Desktop/Telegram.desktop "metadata::trusted" true
dbus-launch gio set ~/Desktop/Telegram.desktop "metadata::trusted" true
desktop-file-install --mode=0755 --dir=$HOME/Desktop ~/Desktop/Telegram.desktop
</syntaxhighlight>
</syntaxhighlight>


Line 23: Line 26:
{{devStage  
{{devStage  
  | Прндл  = Linux Desktop
  | Прндл  = Linux Desktop
  | Стадий = 3
  | Стадий = 6
  | Фаза  = Разработване
  | Фаза  = Утвърждаване
  | Статус = Разутвърден
  | Статус = Утвърден
  | ИдтПт  = Spas
  | ИдтПт  = Spas
  | РзбПт  = {{REVISIONUSER}}
  | РзбПт  = Spas
  | АвтПт  = Spas
  | АвтПт  = Spas
  | УтвПт  = Spas
  | УтвПт  = {{REVISIONUSER}}
  | ИдтДт  = 22.08.2022
  | ИдтДт  = 22.08.2022
  | РзбДт  = {{Today}}
  | РзбДт  = 23.08.2022
  | АвтДт  = 23.08.2022
  | АвтДт  = 23.08.2022
  | УтвДт  = 23.08.2022
  | УтвДт  = {{Today}}
  | ИдтРв  = [[Special:Permalink/30535|30535]]
  | ИдтРв  = [[Special:Permalink/30535|30535]]
  | РзбРв  = {{REVISIONID}}
  | РзбРв  = [[Special:Permalink/30561|30561]]
  | АвтРв  =  
  | АвтРв  = [[Special:Permalink/30562|30562]]
  | РзАРв  = [[Special:Permalink/30550|30550]]
  | РзАРв  = [[Special:Permalink/30550|30550]]
  | УтвРв  =  
  | УтвРв  = {{REVISIONID}}
  | РзУРв  = [[Special:Permalink/30552|30552]]
  | РзУРв  = [[Special:Permalink/30552|30552]]
}}
}}
</div>
</div>
</noinclude>
</noinclude>

Latest revision as of 21:48, 26 August 2022

Telegram is avail­able with­in the Kali's repos­i­to­ry, but the ver­sion is lit­tle bit old­er than the cur­rent ver­sion of Telegram for Desk­top. Here is short script how to down­load and de­ploy the lat­est ver­sion via the com­mand line.

cd ~/Downloads
wget https://telegram.org/dl/desktop/linux -O telegram-desktop-linux.tar.xz
tar -xvf telegram-desktop-linux.tar.xz
mv Telegram ~/.local/share/TelegramDesktop
~/.local/share/TelegramDesktop/Telegram &
rm telegram-desktop-linux.tar.xz

Penul­ti­mate com­mand above will start the Telegram ap­pli­ca­tion. Once it is start­ed it will cre­ate au­to­mat­i­cal­ly the nec­es­sary .desk­top files, so you can find Telegram with­in the GNOME's ap­pli­ca­tions list. Al­so you could set­up Telegram to au­to­mat­i­cal­ly start at user log-in from with­in its set­tings.

If you want to put a Telegram icon at the desk­top ex­e­cute the fol­low­ing com­mand. Note Telegram must be start­ed at least one time be­fore run­ning the find/​​​copy com­mand be­low.

find ~/.local -type f -name 'appimagekit*Telegram*.desktop' -exec cp {} ~/Desktop/Telegram.desktop \;
sed -r -e '/^(Version|SingleMainWindow)/d' -e 's/^(Name=Telegram).*$/\1/' ~/Desktop/Telegram.desktop -i

Then right click on the new icon at the desk­top 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/Telegram.desktop
dbus-launch gio set ~/Desktop/Telegram.desktop "metadata::trusted" true