mirror of
https://github.com/onionshare/onionshare.git
synced 2025-07-25 07:35:36 -04:00
updates Tails readme, and renaming install in persistence script
This commit is contained in:
parent
84bef80def
commit
1f59e3696d
2 changed files with 1 additions and 3 deletions
36
tails/install_in_persistent_volume.sh
Executable file
36
tails/install_in_persistent_volume.sh
Executable file
|
@ -0,0 +1,36 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo "You need to run this as root" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
PERSISTENT=/home/amnesia/Persistent
|
||||
INSTALL_DIR=$PERSISTENT/.onionshare_install
|
||||
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )"
|
||||
|
||||
cd $ROOT
|
||||
rm -rf $INSTALL_DIR &>/dev/null 2>&1
|
||||
mkdir -p $INSTALL_DIR
|
||||
|
||||
# install dependencies
|
||||
apt-get update
|
||||
apt-get install -y build-essential fakeroot python-all python-stdeb python-flask python-stem python-qt4 python-socksipy
|
||||
./build_deb.sh
|
||||
|
||||
# copy files
|
||||
cp deb_dist/onionshare_*.deb $INSTALL_DIR
|
||||
cp /var/cache/apt/archives/libjs-jquery_*.deb $INSTALL_DIR
|
||||
cp /var/cache/apt/archives/python-flask_*.deb $INSTALL_DIR
|
||||
cp /var/cache/apt/archives/python-jinja2_*.deb $INSTALL_DIR
|
||||
cp /var/cache/apt/archives/python-markupsafe_*.deb $INSTALL_DIR
|
||||
cp /var/cache/apt/archives/python-stem_*.deb $INSTALL_DIR
|
||||
cp /var/cache/apt/archives/python-werkzeug_*.deb $INSTALL_DIR
|
||||
cp setup/onionshare80.xpm $INSTALL_DIR
|
||||
cp tails/install.sh $INSTALL_DIR
|
||||
cp tails/onionshare-install.desktop $PERSISTENT
|
||||
|
||||
# fix permissions
|
||||
chown -R amnesia:amnesia deb_dist $INSTALL_DIR
|
||||
chown amnesia:amnesia $PERSISTENT/onionshare-install.desktop
|
||||
chmod 700 $PERSISTENT/onionshare-install.desktop
|
Loading…
Add table
Add a link
Reference in a new issue