Компания Mail.Ru Group предоставляет сервис для хранения файлов, пользователю бесплатно даётся аж целый терабайт места.
Попробовал их штуку, очень понравилась. Очень удобный клиент для синхронизации данных.
Создаёт в домашнем каталоге пользователя каталог /Cloud@Mail.Ru, в котором можно хранить файлы.
При добавлении или удалении файла, можно использовать любой filemanager, в частности midnight commander.
Адрес хранилища - https://cloud.mail.ru/
Мне настолько понравился этот сервис, что я решился выложить slackbuld, создающий пакет с программой-клиентом.
Можно конечно и ручками всё сделать, но пакет всё же лучше... :)
Показать
[console]
#!/bin/sh
# Скрипт cloud.SlackBuild
PRGNAM=cloud
VERSION=${VERSION:-1.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_lfm}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486; UARCH=i386 ;;
*) ARCH=$( uname -m ); UARCH=amd64 ;;
esac
fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
rm -rf $TMP/$PRGNAM-$VERSION
SOURCE1="https://desktopcloud.cdnmail.ru/linux/$UARCH/cloud"
SOURCE2="http://kubig.ru/wp-content/uploads/2013/11/unnamed.png"
if [ ! -e cloud ];then
wget "$SOURCE1" -O "$CWD/cloud"
fi
if [ ! -e unnamed.png ];then
wget "$SOURCE2" -O "$CWD/unnamed.png"
fi
chmod +x cloud
convert unnamed.png -resize 48x48 cloud.png
mkdir $PKG/install
mkdir -p $PKG/usr/bin/
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKG/usr/share/pixmaps
mkdir -p $PKG/usr/share/applications
cat << EOF >> $PKG/install/slack-desc
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.
# Line up the first '|' above the ':' following the base package name, and
# the '|' on the right side marks the last column you can put a character in.
# You must make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
cloud: Oblako@Mail.Ru - cloud storage data from the company Mail.Ru Group,
cloud: allowing users to store their data (music, videos, images and other
cloud: files) in the cloud and synchronize the data on your computer,
cloud: smartphone or tablet, as well as share them with other users Internet.
cloud:
cloud:
cloud:
cloud: https://cloud.mail.ru/
cloud:
EOF
cat << EOF >> $PKG/usr/share/applications/cloud.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Cloud
Name[ru]=Облако
Comment=Cloudy repository file
Comment[ru]=Хранилище файлов на mail.ru
Icon=cloud
Exec=cloud
Terminal=false
Type=Application
Categories=GTK;Utility
StartupNotify=true
EOF
cp -a cloud.png $PKG/usr/share/pixmaps
cp -a cloud $PKG/usr/bin/
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cd $PKG
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
/sbin/makepkg -l y -c n $CWD/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}
[/console]
========================================================
Скрипт исправлен по подсказке bormant
Спасибо за поддержку! *DRINK*