Kali Linux Install NextCloud Client: Difference between revisions

From WikiMLT
(Created page with "Telegram is available within the Kali's repository, but the version is little bit older than the current version of [https://desktop.telegram.org/ Telegram for Desktop]. Here is short script how to download and deploy the latest version via the command line.<syntaxhighlight lang="shell" line="1" class="force-prompt"> 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...")
 
m (Text replacement - "mlw-continue" to "code-continue")
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
Telegram is available within the Kali's repository, but the version is little bit older than the current version of [https://desktop.telegram.org/ Telegram for Desktop]. Here is short script how to download and deploy the latest version via the command line.<syntaxhighlight lang="shell" line="1" class="force-prompt">
<noinclude><!--[[Category:Linux_Desktop|?]]-->{{ContentArticleHeader/Linux_Desktop}}</noinclude>
 
== Install the latest version of the NextCloud Client ==
 
For Linux, the NextCloud desktop client is available as [https://nextcloud.com/install/#install-clients AppImage]. Here is how to deeply it via the command line.<syntaxhighlight lang="shell" line="1" class="code-continue">
cd ~/Downloads
cd ~/Downloads
wget https://telegram.org/dl/desktop/linux -O telegram-desktop-linux.tar.xz
wget -O Nextcloud.AppImage \
tar -xvf telegram-desktop-linux.tar.xz
$(curl https://nextcloud.com/install/ | grep -Po 'https://github.com/nextcloud/desktop/releases/download/v[\d.]{5,9}/Nextcloud-[\d.]{5,9}-x86_64.AppImage')
mv Telegram ~/.local/share/TelegramDesktop
mkdir ~/.local/share/NextCloud
~/.local/share/TelegramDesktop/Telegram &
mv Nextcloud.AppImage ~/.local/share/NextCloud
rm telegram-desktop-linux.tar.xz
chmod +x ~/.local/share/NextCloud/Nextcloud.AppImage
~/.local/share/NextCloud/Nextcloud.AppImage
</syntaxhighlight>
<syntaxhighlight lang="shell" line="1" class="mlw-shell-gray">
sudo apt install nautilus-nextcloud
</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.
== Install the NextCloud Client from Kali's repository ==


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">
The NextCloud client is is also available in the Kali's repository (probably in Ubuntu's and Debian's ones). The version in the repository is little bit older but it works as it is expected with my NextCloud server.
find ~/.local -type f -name 'appimagekit*Telegram*.desktop' -exec cp {} ~/Desktop/Telegram.desktop \;
<syntaxhighlight lang="shell" line="1" class="mlw-shell-gray">
sed -r -e '/^(Version|SingleMainWindow)/d' -e 's/^(Name=Telegram).*$/\1/' ~/Desktop/Telegram.desktop -i
sudo apt update
sudo apt install nextcloud-desktop
sudo apt install nautilus-nextcloud
</syntaxhighlight>
 
== Settings and Desktop Shortcuts ==
 
When the option "Launch on System Startup" is selected within the NextCloud klient's settings, it will automatically create a .desktop fine in <code>~/.config/autostart</code>. If you want to place an icon at the desktop, follow the next steps.<syntaxhighlight lang="shell" line="1" class="force-prompt">
nano ~/Desktop/NextCloud.desktop  
</syntaxhighlight><syntaxhighlight lang="bash" line="1">
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=NextCloud Client
Exec="/home/$USER/.local/share/NextCloud/Nextcloud.AppImage"
Icon=Nextcloud
Categories=Network
StartupNotify=false
Terminal=false
</syntaxhighlight>
</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">
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
chmod +x ~/Desktop/NextCloud.desktop
dbus-launch gio set ~/Desktop/Telegram.desktop "metadata::trusted" true
desktop-file-install --mode=0755 --dir=$HOME/Desktop ~/Desktop/NextCloud.desktop  
dbus-launch gio set ~/Desktop/NextCloud.desktop "metadata::trusted" true
</syntaxhighlight><syntaxhighlight lang="shell" line="1" class="force-prompt">
cp ~/Desktop/NextCloud.desktop ~/.local/share/applications
update-desktop-database ~/.local/share/applications/
</syntaxhighlight>
</syntaxhighlight>
== References ==
* NextCloud at GitHub: [https://github.com/nextcloud/desktop Desktop]
* PureOS Tracker: [https://tracker.pureos.net/w/pureos/tips/integrate_nextcloud_with_file_manager/ Integrate Nextcloud with File Manager]
<noinclude>
<div id='devStage'>
{{devStage
| Прндл  = Linux Desktop
| Стадий = 6
| Фаза  = Утвърждаване
| Статус = Утвърден
| ИдтПт  = Spas
| РзбПт  = Spas
| АвтПт  = Spas
| УтвПт  = {{REVISIONUSER}}
| ИдтДт  = 26.08.2022
| РзбДт  = 26.08.2022
| АвтДт  = 26.08.2022
| УтвДт  = {{Today}}
| ИдтРв  = [[Special:Permalink/30622|30622]]
| РзбРв  = [[Special:Permalink/30636|30636]]
| АвтРв  = [[Special:Permalink/30637|30637]]
| УтвРв  = {{REVISIONID}}
}}
</div>
</noinclude>

Latest revision as of 08:30, 26 September 2022

In­stall the lat­est ver­sion of the NextCloud Client

For Lin­ux, the NextCloud desk­top client is avail­able as Ap­pIm­age. Here is how to deeply it via the com­mand line.

cd ~/Downloads
wget -O Nextcloud.AppImage \
$(curl https://nextcloud.com/install/ | grep -Po 'https://github.com/nextcloud/desktop/releases/download/v[\d.]{5,9}/Nextcloud-[\d.]{5,9}-x86_64.AppImage')
mkdir ~/.local/share/NextCloud
mv Nextcloud.AppImage ~/.local/share/NextCloud
chmod +x ~/.local/share/NextCloud/Nextcloud.AppImage
~/.local/share/NextCloud/Nextcloud.AppImage
sudo apt install nautilus-nextcloud

In­stall the NextCloud Client from Kali's repos­i­to­ry

The NextCloud client is is al­so avail­able in the Kali's repos­i­to­ry (prob­a­bly in Ubuntu's and Debian's ones). The ver­sion in the repos­i­to­ry is lit­tle bit old­er but it works as it is ex­pect­ed with my NextCloud serv­er.

sudo apt update
sudo apt install nextcloud-desktop
sudo apt install nautilus-nextcloud

Set­tings and Desk­top Short­cuts

When the op­tion "Launch on Sys­tem Start­up" is se­lect­ed with­in the NextCloud klient's set­tings, it will au­to­mat­i­cal­ly cre­ate a .desk­top fine in ~/.config/autostart. If you want to place an icon at the desk­top, fol­low the next steps.

nano ~/Desktop/NextCloud.desktop
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=NextCloud Client
Exec="/home/$USER/.local/share/NextCloud/Nextcloud.AppImage"
Icon=Nextcloud
Categories=Network
StartupNotify=false
Terminal=false

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.

chmod +x ~/Desktop/NextCloud.desktop 
desktop-file-install --mode=0755 --dir=$HOME/Desktop ~/Desktop/NextCloud.desktop 
dbus-launch gio set ~/Desktop/NextCloud.desktop "metadata::trusted" true
cp ~/Desktop/NextCloud.desktop ~/.local/share/applications
update-desktop-database ~/.local/share/applications/

Ref­er­ences