Kali Linux Install NextCloud Client: Difference between revisions

From WikiMLT
Line 3: Line 3:
== Install the latest version of the  NextCloud Client ==
== Install the latest version of the  NextCloud Client ==


For Linux, the NextCloid 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="">
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="">
cd ~/Downloads
cd ~/Downloads
wget -O Nextcloud.AppImage \
wget -O Nextcloud.AppImage \
Line 25: Line 25:


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 \;
nano ~/Desktop/NextCloud.desktop  
sed -r -e '/^(Version|SingleMainWindow)/d' -e 's/^(Name=Telegram).*$/\1/' ~/Desktop/Telegram.desktop -i
</syntaxhighlight><syntaxhighlight lang="bash" line="1">
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=NextCloud Client
Exec="/home/pa4080/.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
desktop-file-install --mode=0755 --dir=$HOME/Desktop ~/Desktop/NextCloud.desktop  
dbus-launch gio set ~/Desktop/Telegram.desktop "metadata::trusted" true
dbus-launch gio set ~/Desktop/NextCloud.desktop "metadata::trusted" true
</syntaxhighlight>
</syntaxhighlight>



Revision as of 22:42, 26 August 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

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

Desk­top Short­cuts

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.

nano ~/Desktop/NextCloud.desktop
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=NextCloud Client
Exec="/home/pa4080/.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.

desktop-file-install --mode=0755 --dir=$HOME/Desktop ~/Desktop/NextCloud.desktop 
dbus-launch gio set ~/Desktop/NextCloud.desktop "metadata::trusted" true