Hot answers tagged

8

The script below should do the job: #!/usr/bin/env python3 import random import os import subprocess import shutil # set the desired number of folders to pick below n_selection = 5 # set the name of the flash drive below flashdr = "Lexar" # set the source directory (with media folders) below sourcedr = "/path/to/mediafiles" # --- try: targetdr = ...


6

you could use find and shuf: #!/bin/bash SOURCE="path/to/source" DESTINATION="path/to/destination" COUNT=25 rm -r "${DESTINATION}/"* find "$SOURCE" -mindepth 2 -maxdepth 2 -type d|shuf -n $COUNT|xargs -d'\n' -I{} cp -r "{}" "$DESTINATION"


2

Removing this directory worked for me to get rid of the error: rm $HOME/.config/Clementine UPDATE: After further inspection, the problem comes from the Clementine config file "$HOME/.config/Clementine/Clementine.conf" You can either erase the file, or if you want to keep your seetings, simply remove the GstEngine section within the file. Here's what ...


1

I made a script with Python: The script, at GitHub Gist. (Download) Usage: python3 RandomCopier.py [source folder] [destination folder] [number to copy] The copy method: NOTE: It will not copy any files directly in the source folder, only those in sub-folders of it. Say, the source folder, src is: src |- a | |- file_a | |- file_a_2 | |- b | |- ...


1

Following are few that you might like to give it a try: (I have given links for each software for you to read all features in detail) JACK: Jack Audio Connection Kit is probably the most celebrated tool as far as music production on Linux is concerned. It's ability to integrate with various other applications makes it favourite candidate. One of the ...


1

Well, the most ambitious one is the multi-platform paid proprietary DAW called Bitwig Studio, which is quite similar to popular Ableton (in fact, it's built by some Ableton developers). You can also try a more traditional and totally free and open source DAW Ardour (well, you have the "pay what you want" price for downloading the binaries, but you can ...


1

There's a service that should be installed that scans your music and creates a library for the application to use. You can restart this service by executing the following command: restart mediascanner-2.0 If that doesn't work or isn't valid, you may need to install the daemon: sudo apt-get install mediascanner2.0



Only top voted, non community-wiki answers of a minimum length are eligible