updatescripts

This commit is contained in:
MoonQ
2019-08-21 10:34:39 +03:00
parent f5a9c66757
commit a10f2e285a
2 changed files with 23 additions and 25 deletions

View File

@@ -1,8 +1,8 @@
# Shell Tools package
```
_____ ___
|_ _/ _ \
_____ ___
|_ _/ _ \
| || (_) |
|_| \__\_\
```
@@ -22,36 +22,35 @@ Many of the tools use common unix tools. Some extra tools are required. Here are
the installation commands.
```
sudo apt-get install mercurial sqlite3 python python-magic python-pip python-gtk2 sc \
sudo apt-get install git sqlite3 python python-magic python-pip python-gtk2 sc \
gnuplot wget vim rsync curl pv
pip install csvkit ncsv
pip2 install csvkit ncsv
```
## Installation without repository
```
mkdir tools
curl https://bitbucket.org/MoonQ/tools/get/tip.tar.gz | tar xz --strip 1 -C tools
cd tools && source rc
mkdir -p ~/lib/q-tools
curl https://bitbucket.org/MoonQ/q-tools/get/HEAD.tar.gz | tar xz --strip 1 -C ~/lib/q-tools
source ~/lib/q-tools/rc
```
Add the `rc` source in your ~/.bashrc
Add the to your startup scripts:
`echo '. ~/lib/q-tools/rc' >> ~/.bashrc`
## Installation in user home
```
mkdir -p ~/lib
hg clone https://bitbucket.org/MoonQ/tools ~/lib/tools
. $HOME/lib/tools/rc
git clone https://bitbucket.org/MoonQ/q-tools ~/lib/q-tools
echo '. ~/lib/q-tools/rc' >> ~/.bashrc
```
It is best to add the last line in your ~/.bashrc
## Systemwide installation
```
hg clone https://bitbucket.org/MoonQ/tools /usr/local/share/q-tools
git clone https://bitbucket.org/MoonQ/q-tools /usr/local/share/q-tools
echo '[ -e /usr/local/share/q-tools/rc ] && . /usr/local/share/q-tools/rc' >> /etc/profile.d/q-tools.sh
ln -s /usr/local/share/q-tools/rc /etc/cron.weekly/q-tools
```
@@ -63,7 +62,7 @@ The last step ensures weekly updates
The Markslider slide viewer can be installed with:
```
pip2 install https://bitbucket.org/MoonQ/tools/raw/tip/reporting/markslider.tar.gz
pip2 install https://bitbucket.org/MoonQ/q-tools/raw/HEAD/reporting/markslider.tar.gz
```