Kali Linux Install NextCloud Client

From WikiMLT

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