Posts

Showing posts with the label automation

Project Wild Penguin 16.4.2017: Automatically Fix Error W: Target Packages is configured multiple times in sources.list file

Image
The most up-to-date solution that I've found to fix the mentioned error is the blog title is given below: Installation: sudo apt install python3 - apt wget https :// raw . githubusercontent . com / davidfoerster / apt - remove - duplicate - source - entries / master / apt - remove - duplicate - source - entries . py chmod + x apt - remove - duplicate - source - entries . py Usage: sudo ./apt-remove-duplicate-source-entries.py Follow the instructions appearing on the screen Enjoy this xkcd comic about Packages (not Linux distros one): Source :   https://askubuntu.com/questions/760896/how-can-i-automatically-fix-w-target-packages-is-configured-multiple-times https://xkcd.com/576/

Project Rhman - Installing audio tag editors - Puddletag and Musicabrainz Picard

Follow the following steps to install Puddletag: sudo add-apt-repository ppa:nilarimogard/webupd8 sudo apt-get update sudo apt-get install puddletag     Follow the following steps to install Musicbrainz Picard: sudo add-apt-repository ppa:musicbrainz-developers/stable sudo apt-get update sudo apt-get install picard     Source: http://ubuntuhandbook.org/index.php/2014/03/install-the-latest-puddletag-tag-editor-in-ubuntu/ https://launchpad.net/~musicbrainz-developers/+archive/ubuntu/stable https://musicbrainz.org/doc/Picard_Linux_Install

Project pyCountVids - Python Script To Count Total Videos in a Directory

So, I've started working on my long awaited project by implementing it in small increments. First, I've decided to write a python script that counts total videos in a directory and its sub-directory. #!/usr/bin/env python2 import os import sys rootDir = sys.argv[1] totalVideoCounter = 0 videoExtension = [".3g2", ".3gp", ".asf", ".asx", ".avi", ".flv", \                         ".m2ts", ".mkv", ".mov", ".mp4", ".mpg", ".mpeg", \                         ".rm", ".swf", ".vob", ".wmv", "m4v"] for dirPath, subdirList, fileList in os.walk(rootDir,topdown=False):     dirName = dirPath.split(os.path.sep)[-1]     videoCounter = 0         for fname in fileList:       if fname.endswith(tuple(videoExtension)):             videoCounter +=1           ...

Project Dumbledore - How to download YouTube Playlist on your system

Image
As, I was going through some great lectures available on YouTube, I thought of saving them all in a playlist and then downloading them all for offline viewing on my system. After googling for few minutes, I found this great command line program youtube-dl  to achieve this. It ticks all the right boxes - simple, open source, platform independent and python based. To install this on Ubuntu based systems, run the following command on your terminal: sudo apt-get install youtube-dl To download YouTube playlist, run the following command: youtube-dl -ctik   https://www.youtube.com/playlist?list=XXXXXX It has many other great features, be sure to explore them all. Though, I have found a problem that it downloads video and audio files separately and then combines them together in a single file leaving two extra files after each download which needs to be removed after the download is complete. I haven't looked into it to find the issue. If I find the solution, I will ...