Index

Subject : [lug] Digest (5 messages)

From : lug-owner@lists.ncsu.[redacted]

Date : Wed, 09 Jan 2013 14:41:48 -0500


The Lug Digest
Volume 1 : Issue 300 : "text" Format

Messages in this Issue:
201212/9 : Re: Need help with assorted issues(command line only).
Jim Turner <jdturne8@ncsu.[redacted]>
201301/1 : [TriLUG-announce] Jan 10 Meeting: Raspberry Pi
Jeremy Davis <jeremydavis@jeremydavis.[redacted]>
201301/2 : Welcome back! News and first meetings of the year
Barry Peddycord III <bwpeddyc@ncsu.[redacted]>
201301/3 : [TriLUG-announce] Free Raspberry Pi eBooks - At the TriLUG Meet 10
Jan, 2013
Jeremy Davis <jeremydavis@jeremydavis.[redacted]>
201301/4 : [TriLUG-announce] Jan 10 Meeting: Raspberry Pi - Live Video Stream
Bill Farrow <bill@arrowsreach.[redacted]>

----------------------------------------------------------------------

Date: Sat, 29 Dec 2012 20:11:55 -0500
From: Jim Turner <jdturne8@ncsu.[redacted]>
To: lug@lists.ncsu.[redacted]
Subject: Re: Need help with assorted issues(command line only).
Message-ID: <CABSFCMTkcGyooH87PRL6e5pSHB-f2Ezw0GNE_cKXC0rVEQGVCQ@mail.gmail.[redacted]>

1. The bullets correspond to the bullets of your questions.
- transliteration of file names: I'm not aware of any utilities written
specifically for renaming files, but there are various modules/libraries
that you could use. Two possibilities are the unidecode module for Python
(available as package python-unidecode on Ubuntu) or PHP functions from
MediaWiki available at <
https://github.com/wikimedia/mediawiki-core/tree/master/includes/normal>.
The unidecode Python module, in particular, looks very straightforward to
use.
- filling in corrupted tags from CDDB: I saw some ideas involving combining
all of the .flac files from each album into a disc image and then passing
that through another program to get the CDDB information. I would hope
that there are better ways to do it, but I don't know them. I think
EasyTAG can easily autotag from CDDB, but it GUI-only.
- tagging files with no tags: There are various 'audio fingerprint'
services, such as Last.fm and AcoustID, which can submit 'fingerprints' of
your audio files to an online database to fetch tag information. For
example, there is an extension for Banshee that can use the Last.fm
service. I have not found any command line tools that do this, but it
appears that there are some APIs available if you'd like to write your
own. Another option may be to look into flactag. I'm not sure if it will
do what you're looking for, but it's worth a try. IMHO, the easiest way to
solve this and the above problem is to send your files to a friend that can
use GUI applications (such as EasyTAG and Banshee) that have the necessary
functionality built-in.

2. Here's one idea: It looks like fdupes can list duplicate files and
exclude the first file in each set of duplicates with the -f option.
Therefore, you can do what you're looking for in two passes with fdupes:
- Use fdupes with the -f option to list all the duplicate files except for
the first file in each set, and redirect this list into a file. Let's call
this list1.
- Use sed to remove all lines in list1 referencing files in your "sorted"
directory.
- Use bash to delete the files from disk that are still in list1.
- Use fdupes without the -f option to list all the remaining duplicate
files, and redirect this list into a file. Let's call this list2.
- Use sed to remove all lines in list2 referencing files in your "sorted"
directory.
- Use bash to delete the files from disk that are still in list2.
The first three steps remove most of the duplicates. They preserve at
least one copy somewhere (in the "sorted" or "unsorted" directory) and do
not delete any files in the "sorted" directory. The last three steps
delete any remaining duplicates that are in the "unsorted" directory
(preserving those in the "sorted" directory). If fdupes is too slow for
two passes to be practical, you could write a script in
Perl/Python/Ruby/etc. to process list1 and then delete the appropriate
files.

3. You can use the script below to compress all the bottom level
directories (except those with nothing in them). The first argument to the
script is the directory containing all the others. Please backup before
trying this script.

#!/bin/bash
find "$1" -type d | while read -r path
do
if [[ `ls "$path" | wc -m` -ne 0 && `ls -l "$path" | grep '^d' | wc -l`
-eq 0 ]]
then
echo "Compressing: $path"
tar -czf "$path.tgz" -C "$path" `ls "$path"`
fi
done

Compressing folders filled with .jpgs probably won't gain you much, though,
unless you have several very similar .jpgs.

4. List the available devices with:

wodim --devices

Then burn the .iso with:

wodim -v dev=/dev/xxx speed=4 -eject file.iso

where /dev/xxx is the device listed by wodim --devices. By the way, you
can save the man page or info page for a program into a file with:

man program > file

or

info program > file

5. I'm not sure I entirely understand your question. If you're trying to
merge directories, rsync may be your best bet. There is a StackOverflow
explanation at <
http://superuser.com/questions/214275/linux-merge-folders-rsync>.

Jim


On Sat, Dec 29, 2012 at 8:20 AM, Jeffery Mewtamer <mewtamer@gmail.[redacted]>wrote:

> Okay, I am having several issues I need some help with, and google
> searches are producing more frustration than useful information.
> Please note: Due to my vision, I am working strictly from the
> command-line, so please do not suggest any graphical applications.
>
> 1. I recently lost my collection of flac files ripped from CD in a
> drive format, but fortunately, I have recover the vast majority of the
> files thanks to photerec, and lltag has gone a long way to helping
> make-up for the fac that photorec cannot recover filenames. However, I
> have a few issues that leave me with about 200 flac files that are
> still a disorganized mess:
>
> -Several albums worth of music with non-Latin characters in their
> tags, which translate to filenames that the command line cannot
> properly display and my screen reader cannot properly read. The
> culprits are mainly tracks from Japanese or Chinese artists. I would
> like to scan my entire music collection, romanizing the artist, album,
> title, etc tags of the Japanese and Chinese music in my collection as
> well as removing any accents from European music. Is there a
> command-line tool that can help with this?
> -Several tracks, sometimes entire albums worth, that have valid
> Artist, Album, and Title tags, but are lacking a proper track number,
> preventing lltag from naming them in a manner that maintains the
> proper track ordering. Is there any command-line utility that can take
> the existing tag information, find the corresponding CDDB entry, and
> fill in the corrupted/missing tags?
> -10 albums worth of files that have blank tags due to no CDDB results
> when the discs were originally ripped. Mostly classical, but at least
> 2 j-pop albums are mixed in with them. Is there anything that might be
> able to help give these files the proper tags?
>
> For the record, most, if not all of the flac files were originally
> ripped via abcde and tagged automatically based on its CDDB query.
>
> 2. I have a large collection of files that needs organizing, and the
> first step towards that is converting the mixture of roman and
> Japanese text in their filenames to pure romaji so that I can properly
> manipulate the files via command line utilities. The second step is
> figuring out a way to mass extract the large number of archive files
> among this collection to individual folders so that I can compare
> their content to already organized files on my system. And speaking of
> comparing files, fdupes has proven quite useful for finding and
> removing duplicate files, and while the -N option is useful for cases
> that return large number of duplicate files, I have been unable to
> reliably determine which copy of a file will be automatically kept
> and which will be automatically deleted. Say for example, I have a
> folder of Sorted content that I know has no duplicates, and an
> unsorted folder that may have one or more duplicates, including
> duplicates of files in the sorted folder. Is there a way to force
> fdupes to keep everything in sorted, and delete any dupees it finds in
> unsorted without having to manually select which file to keep on a
> case-by-case basis.
>
> 3. I am running low on storage space and wish to compress a large
> collection of files I do not access very often. The files in question
> are well organized in a multi-tiered directory structure, and I would
> like to create an archive for each bottom level dierectory without
> losing the directory. Is their a way to automate this process, and
> what archive format would be best suited to the purpose. If it
> matters, the majority of the files are monochrome jpeg, though there
> are also png and other assorted file types in the mixed.
>
> 4. I need to burn some isos to cd. my understanding is that wodim is
> the tool for the job, but I can find a straight foward guide via
> google, the help page is longer than my screen and piping to nano
> failed to create a text document of the help page. I do not need
> anything fancy , just the command line to burn file.iso in the working
> directory to the blank CD-R in my only optical drive.
>
> 5. Since I have been relying on the command line for file management,
> I have noticed that when I use the mv command to to move entire
> directory structures, that if the source and destination have
> subdirectories with the same name, mv stops. Is there a way to make it
> add the contents from the source version of the directory to the into
> the destination copy?
>
> Any help with any of these issues would be greatly appreciated.
>
> --
> Sincerely,
>
> Jeffery Wright
> President Emeritus, Nu Nu Chapter, Phi Theta Kappa.
> Former Secretary, Student Government Association, College of the Albemarle.
>


[Attachment of type text/html removed.]

------------------------------

Date: Wed, 2 Jan 2013 08:07:07 -0500
From: Jeremy Davis <jeremydavis@jeremydavis.[redacted]>
To: TriLUG Mailing List <trilug@trilug.[redacted]>,
"trilug-announce@trilug.[redacted]" <trilug-announce@trilug.[redacted]>
Subject: [TriLUG-announce] Jan 10 Meeting: Raspberry Pi
Message-ID: <CACSroP3_cUHf4ig92fySQz-SFkzAVWdc5Dc8MGxDKajcvkeQHQ@mail.gmail.[redacted]>

Hopefully you all enjoyed the Holiday season! Just sending out a quick
reminder about the January TriLUG meeting.

No one, I repeat, no one should miss this particular meeting. This talk is
about the Raspberry Pi, which is a credit card sized computer that costs
$35 and runs Linux. We have several awesome folks from Splatspace
presenting on this groundbreaking and highly enabling device known as the
Raspberry Pi.

Be sure to review the details at this link:
http://trilug.org/2013-01-10/Raspberry_Pi

Also mark your calendars for the Raspberry Pi workshop, the following
Saturday, 12 January 2013, at Splatspace Durham NC.

2013 Happy New Year!!
Jeremy Davis
TriLUG PR


[Attachment of type text/html removed.]
--
This message was sent to: lug@lists.ncsu.[redacted] <lug@lists.ncsu.[redacted]>
To unsubscribe, send a blank message to trilug-announce-leave@trilug.[redacted] from that address.
TriLUG-announce mailing list : http://www.trilug.org/mailman/listinfo/trilug-announce
Unsubscribe or edit options on the web : http://www.trilug.org/mailman/options/trilug-announce/lug%40lists.ncsu.edu
TriLUG Website : http://www.trilug.org/wiki/
------------------------------

Date: Thu, 03 Jan 2013 12:50:13 -0500
From: Barry Peddycord III <bwpeddyc@ncsu.[redacted]>
To: lug@lists.ncsu.[redacted]
Subject: Welcome back! News and first meetings of the year
Message-ID: <50E5C4D5.2070203@ncsu.[redacted]>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hai Lugz!

I hope you all had a great vacation! As it turns out, school starts
back on Monday, January 7. I have a few announcements about LUG
Meetings this semester.

This semester we're changing our meeting schedule: we will be getting
together on **Monday** nights at 19:00 instead of Tuesdays. This holds
for both technical meetings and social dinners. Our meeting room is
still TBA.

I figure that the first day of school might be a bit too soon for a
serious planning meeting, so Monday, January 7 will be a social dinner
at Bada Wings in Mission Valley (19:00). Our planning meeting will be
held on January 14, tentatively in the new Hunt Library on Centennial
Campus.

Here's to a great new year of hackery!

Most sincerely,
Barry Peddycord III
El Presidente

Twitter: @ncsulug
G+: http://bit.ly/lugplus
LUG Calendar: http://tinyurl.com/ncsulug

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEcBAEBAgAGBQJQ5cTVAAoJEHuunagdgjYNSycH/jFJqQV4XAs5UG9RXdIs/yuC
DBVIVEnFtCLIhQPdRI6WFVu/hNnMApxL22MKlux0h9D1j0t2VP/7kcWP+C9o+FIh
omx9UGkX3st3WQWRupEk0nDAsKD9rxKvYsi5RU61RX6d1I24bhiSNxNpC8l5RXL2
5aPRkcGVy68/CWyQEufzY603C+3D91KW7V2EtzezicJzYoR9MoS6sE+uuRTT56ow
IO8p6hamlNWuwiImJKzeb+TQZ/uYfjkIn3bE0aPfbfI559aQk+bFZQJSgCqVvyg0
dSCv8BbR2dR3V4ZHlCGVUNvTT1zLkecLfkUJlNon4CCcBxsD++qEolkII2/J6mA=
=kmdV
-----END PGP SIGNATURE-----

------------------------------

Date: Tue, 8 Jan 2013 21:40:30 -0500
From: Jeremy Davis <jeremydavis@jeremydavis.[redacted]>
To: TriLUG Mailing List <trilug@trilug.[redacted]>, trilug-announce@trilug.[redacted]
Subject: [TriLUG-announce] Free Raspberry Pi eBooks - At the TriLUG Meet 10
Jan, 2013
Message-ID: <CACSroP2mLVz0gkmfrUWg77MPsk6T3oqeWVDMORz4+JFvtq-SDg@mail.gmail.[redacted]>

For our January 10th TriLUG meet, we already have THE awesome topic
"Raspberry Pi" and the AWESOME folks from Splatspace to give us the
down and dirty details on how we can utilize this extremely cool
device. Now, just to top it all off...we will be giving away free
Raspberry Pi stuff!!!

Andy Hunt, author of the best-selling book "The Pragmatic Programmer",
has offered us several copies of the eBook "Raspberry Pi: A
Quick-Start Guide" by Maik Schmidt. Andy may even be there, in person,
to help us raffle them off! Continue reading for more details...

Raspberry Pi: A Quick-Start Guide gives you everything you need to get
the Raspberry Pi up and running and doing cool stuff. You�ll get
started by learning what additional hardware you need and how to
connect it, install Debian Linux and configure it to your needs, and
customize the Pi�s firmware to get the most out of your hardware.

Then the fun begins. You�ll connect the Pi to your home network and
try surfing the web and tweeting messages. You�ll learn how to get the
most out of Midori, the Pi�s standard browser. Then in a few simple
steps you�ll turn the Pi into a kiosk system that displays Twitter
live search information. You�ll also learn how you can control the
desktops of other PCs in your house with the Pi.

Once you have the basics down, you�ll explore the Pi�s versatility
with a series of home projects. Turn it into a web server in your home
network. Convert the Pi into a powerful multimedia center so you can
watch high-definition video and listen to your favorite music. Play
classic video games. Then use the GPIO pins on the Raspberry Pi to
build electronics projects such as an �out of memory� alarm, and learn
how to access the project using a web browser. Power to the Pi!

-----

The Pragmatic Bookshelf features books written by developers for
developers. The titles continue the well-known Pragmatic Programmer
style, and continue to garner awards and rave reviews. As development
gets more and more difficult, the Pragmatic Programmers will be there
with more titles and products to help programmers stay on top of their
game.

------

Andy Hunt is a programmer turned consultant, author and publisher.
He authored the best-selling book "The Pragmatic Programmer" and six
others, was one of the 17 founders of the Agile Alliance, and
co-founded the Pragmatic Bookshelf, publishing award-winning and critically
acclaimed books for software developers.
--
This message was sent to: lug@lists.ncsu.[redacted] <lug@lists.ncsu.[redacted]>
To unsubscribe, send a blank message to trilug-announce-leave@trilug.[redacted] from that address.
TriLUG-announce mailing list : http://www.trilug.org/mailman/listinfo/trilug-announce
Unsubscribe or edit options on the web : http://www.trilug.org/mailman/options/trilug-announce/lug%40lists.ncsu.edu
TriLUG Website : http://www.trilug.org/wiki/


------------------------------

Date: Wed, 9 Jan 2013 14:25:49 -0500
From: Bill Farrow <bill@arrowsreach.[redacted]>
To: TriLUG Announce <trilug-announce@trilug.[redacted]>,
TriLUG General List <trilug@trilug.[redacted]>,
durham-makerspace@googlegroups.[redacted]
Subject: [TriLUG-announce] Jan 10 Meeting: Raspberry Pi - Live Video Stream
Message-ID: <CAPm8Nr3j0oAxD-LCyc6xJ4+85VYsZAAqTmbfU+ei2ZvwqMXDTg@mail.gmail.[redacted]>

Hey,
Tomorrow nights talk on the Rasberry Pi will be streamed live using
"Google Hangouts Live" for those who can't make it physically to the
meeting. The video recording will be available on YouTube the next
day. Please refer to the meeting webpage for details and links.
http://trilug.org/2013-01-10/Raspberry_Pi

The main feedback that we got from the last meeting was about poor
audio quality on the recordings. Tomorrow night we will try placing
the USB microphone on the podium closer to the speaker. The other
option is to hook into the audio system at the back of the room, but
my laptop does not have a mic or line in port, so I am open to
suggestions.


Bill
--
This message was sent to: lug@lists.ncsu.[redacted] <lug@lists.ncsu.[redacted]>
To unsubscribe, send a blank message to trilug-announce-leave@trilug.[redacted] from that address.
TriLUG-announce mailing list : http://www.trilug.org/mailman/listinfo/trilug-announce
Unsubscribe or edit options on the web : http://www.trilug.org/mailman/options/trilug-announce/lug%40lists.ncsu.edu
TriLUG Website : http://www.trilug.org/wiki/

------------------------------

End of [lug] Digest (5 messages)
**********