Added a script which will in the future, easily manage my music database. Also updated the install script with the necessary dependencies for it.
- Author
- Vngngdn
- Date
- July 2, 2016, 1:39 p.m.
- Hash
- 93b744b8b54032f7682b1ed108289e402c867ff2
- Parent
- da55570334706451ad4b2043a7ff68822bb63919
- Modified files
- install.sh
- music.py
install.sh ¶
3 additions and 0 deletions.
View changes Hide changes
1 |
1 |
# particulary Arch, because that's the best GNU/Linux distro =P |
2 |
2 |
|
3 |
3 |
# The next command will install the software that I'm bound to use on my PC. |
4 |
4 |
sudo pacman -S --noconfirm neovim base-devel rust vlc openssh |
5 |
5 |
|
6 |
6 |
# Firefox: |
7 |
7 |
sudo pacman -S --noconfirm firefox |
8 |
8 |
# Uncomment next line for Dutch firefox translations. |
9 |
9 |
sudo pacman -S --noconfirm firefox-i18n-nl |
10 |
10 |
|
11 |
11 |
# Comment next line to stop the usual window manager from being installed. |
12 |
12 |
sudo pacman -S --noconfirm sway |
13 |
13 |
|
14 |
14 |
# To easily make use of the AUR, I'll first install Pacaur, which needs some |
15 |
15 |
# special treatment up front: |
16 |
16 |
cd ~/Downloads |
17 |
17 |
wget https://aur.archlinux.org/cgit/aur.git/snapshot/pacaur.tar.gz |
18 |
18 |
tar -x -f pacaur.tar.gz |
19 |
19 |
cd pacaur |
20 |
20 |
makepkg -sri --noconfirm |
21 |
21 |
cd .. |
22 |
22 |
rm -r pacaur |
23 |
23 |
cd ~ |
24 |
24 |
|
25 |
25 |
# Making a directory in which to store all repositories. It's basically a |
26 |
26 |
# repository for repositories =3 |
27 |
27 |
mkdir Repositories |
28 |
28 |
|
29 |
29 |
# Making some common aliases for some pieces of software |
30 |
30 |
alias vi nvim |
31 |
31 |
alias vim nvim |
32 |
32 |
|
+ |
33 |
# Some Python dependencies that need to be installed |
+ |
34 |
pip install paramiko |
+ |
35 |
music.py ¶
19 additions and 0 deletions.
View changes Hide changes
+ |
1 |
music.py is a little script I made that allows to easily download my music |
+ |
2 |
from my main computer (Which has more storage space than my laptop) in a |
+ |
3 |
fashionable way. It uses SFTP through the Paramiko library |
+ |
4 |
(https://github.com/paramiko/paramiko). |
+ |
5 |
|
+ |
6 |
The functionality can be expressed as follows: |
+ |
7 |
- On the remote music directory, the music is divided in subfolders, |
+ |
8 |
according to (main) performing artist. In there, there will either be more |
+ |
9 |
subfolders (which would be albums) |
+ |
10 |
# Importing necessary libraries |
+ |
11 |
import paramiko |
+ |
12 |
|
+ |
13 |
# Defining constant values for use throughout the program |
+ |
14 |
NAME = "maarten" # Name to be used on the remote server. |
+ |
15 |
LOCAL_MUSIC_DIRECTORY = "~/Music/" |
+ |
16 |
REMOTE_MUSIC_DIRECTORY = "~/Muziek/" # I blame being Belgian. |
+ |
17 |
""" |
+ |
18 |
|
+ |
19 |