Slack (Application)

From campisano.org
Jump to navigation Jump to search

Slack

Install

# shared/opt install schema v1.3.1
su -
#### as root ####
# dependencies
apt-get -qq -y install wget coreutils findutils
apt-get -qq -y install tar xz-utils binutils gconf2 gconf-service libgtk2.0-0 libudev1 libgcrypt20 libnotify4 libxtst6 libnss3 python gvfs-bin xdg-utils apt-transport-https libxss1 libappindicator1 libcurl3-gnutls libsecret-1-0
# binary
SOFTWARE_PATH="/home/shared/opt/software"
NAME="slack"
VERSION="4.0.2"
URL="https://downloads.slack-edge.com/linux_releases/slack-desktop-${VERSION}-amd64.deb"
umask 0027
mkdir -p "${SOFTWARE_PATH}/tmp/${NAME}_${VERSION}"
cd "${SOFTWARE_PATH}/tmp"
wget -c --no-check-certificate "${URL}"
ar -x "slack-desktop-${VERSION}-amd64.deb" && tar -xJf data.tar.xz -C "${NAME}_${VERSION}"
cd "${SOFTWARE_PATH}"
chown -R root:users "tmp"
find "tmp" -type d -exec chmod a-s,u+rwx,g+rx,g-w,o-rwx {} \;
find "tmp" -type f -exec chmod a-s,u+rw,g+r,g-w,o-rwx {} \;
mv "tmp/${NAME}_${VERSION}" "${NAME}_${VERSION}"
rm -rf tmp
ln -s -f -T "${NAME}_${VERSION}" "${NAME}"
exit
#### as final user ####
SOFTWARE_PATH="/home/shared/opt/software"
NAME="slack"
nice -3 "${SOFTWARE_PATH}/${NAME}/usr/bin/slack"