Visit our other dedicated websites
Asha Bhonsle Geeta Dutt Hamara Forums Hamara Photos Kishore Kumar Mohd Rafi Nice Songs Shreya Ghoshal
Hamara Forums

Welcome Guest ( Log In | Register )

Linux And Free Software Tips, Tricks And Tutorials

, fun with Free Software

 
> Linux And Free Software Tips, Tricks And Tutorials, fun with Free Software
hildebrand
post Sep 20 2009, 02:02 AM
Post #1


Dedicated Member
Group Icon

Group: Members
Posts: 6729
Joined: 5-February 08
Member No.: 39973



I am starting this thread with a long term perspective to put together lots of useful information for our programs.
Request all to participate in this thread to spread the word about all the lovely things that can be done on Linux.

The distribution I use is Debian (from www.debian.org) but most tricks shall be generic in nature (program based). Many of the softwares are available on windows also so some tips maybe applicable for their windows versions also.

This post has been edited by hildebrand: Oct 10 2009, 07:19 PM

Best Regards
Hildebrand


Samandar ko Baandhe Aisa Koi Ghaat Nahi, Kadmon ko thaame aisi koi baat nahin Patli si dhaara samundar mein milti hai, milkar ke kho jaati hai, ghaat ghaat hi rehte hain woh samundar ho jaati hai, karlo jo chaaho, banlo jo chaaho

“Geet boodhe nahin hote, unke chehron pe jhurriyan nahi girti
wo palte rahte hain, chalte rahte hain
sun-ne walo ki umra badal jaati hai….”

Please Visit
http://www.anmolfankaar.com: A website dedicated to Artists of the Indian Subcontinent. Now follow it on twitter too. http://twitter.com/anmolfankaar

http://www.shamshadbegum.com : A website dedicated to the Living Legend Shamshad Begum. May She Live Long.

http://www.madamnoorjehan.com : A website dedicated to Madam Noorjehan

http://www.geetadutt.com : A website dedicated to Geeta Dutt Nee Roy
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topic
Replies
hildebrand
post Oct 8 2009, 11:56 PM
Post #2


Dedicated Member
Group Icon

Group: Members
Posts: 6729
Joined: 5-February 08
Member No.: 39973



Tip #10: Zipping and unzipping many files in a folder

Whenever you need to upload many mp3 files its painful zipping each one of them. Usually I put all of them in a single folder and use a custom script to zip all the mp3 files in that folder.

The script I use is as follows:-

QUOTE

for FILE in *.mp3; do
OUTFILE="${FILE%%.mp3}.zip"
echo $OUTFILE, "$FILE"
zip "$OUTFILE" "$FILE"
done
exit 0


If you want to use the same script, just copy the code to a file (say, makezip.sh), make it executable (using chmod +x makezip.sh) and copy it to your /usr/bin folder. From then on it can be run by you in any folder you want.

Sometimes I have the reverse requirement. I downloaded say 10 files and its boring to unzip all. So I use the reverse script makeunzip as follows:-

QUOTE

for FILE in *.zip ; do
unzip "$FILE"
done
exit 0


Linux users shall know that zip is a good ethical format to use. Unfortunately, many users upload rar files (which is a non-free standard). So to unrar I use the following script:-

QUOTE

for FILE in *.rar ; do
unrar x "$FILE"
done
exit 0


For ethical reasons I don't rar. For the unaware, I am reproducing a post on another website on why I one should not use rar.

QUOTE

Quite a large amount of data has been made available on peer-to-peer networks within the last few years. A lot of people see this a sign of a broader change in relationship between content authors and recipients. Many talk about revolution. Some of that data on these networks, specifically complete music albums, full discographies and movie subtitles, is compressed using the RAR archiver, most often with no real reason. In this document, I want to try to explain why I believe that this method should be avoided in order to make the digital revolution happen faster, less problematically and in a just and non-discriminatory fashion.

Before we make our point, let us tell you that it is really useless to compress audio data which is probably encoded into MP3 or Ogg Vorbis and thus already heavily compressed, leaving very little if any room for additional shrinking using the RAR archiver. For example, full discography of the legendary UK Subs occupies 1037 megabytes of hard disk space as a directory of MP3 files or 1025 megabytes as a single compressed archvive file. The difference is negligible both in terms of disk storage space and connection bandwidth. Off course, you still may want to put all the audio files into one large file, in order to facilitate sharing of the data over a peer-to-peer network. For this purpose, there is available a utility called Tar (see google), which is way faster, smaller and simpler than the RAR archiver. It doesn't perform any compression, just sticks the files together.

Why you should care? Does it matter if you waste only a few seconds of CPU time for useless compression? Maybe it doesn't, but there's another issue; a much more important one. It's that the RAR archives, or at least the vast majority of them, cannot be decompressed with free software. Free software is such software whose license enables it to be run for any purpose, to be studied and analyzed, modified and redistributed with or without modifications and with or without a distribution fee. The growing social movement which has gradually developed around this kind of software within the past twenty years and which has brought to the public such works as the GNU/Linux and BSD operating systems, the Apache web server, the Mozilla Firefox web browser or the OpenOffice.org suite, is generally believed to be an indispensable part of the digital media revolution. Many members of that movement believe that in order to take their case seriously, they have to refuse to use any non-free software.

Unfortunately, there is no free software RAR decompressor that could handle the vast majority of RAR archives currently shared on the network. The official RAR decompressor is freeware and its source code is available, but it still doesn't make it free software at all, as the license still heavily restricts the users' rights and freedoms. There is another RAR decompressor which is available under the free software movement's flagship GPL license. Unfortunately again, that program can only handle archives generated by RAR 2.x and as far as RAR 3.x archives - today de facto standard on peer-to-peer networks - are concerned, only their contents can be listed but no actual data can be extracted. This may never change, since RAR 3.x includes patented algorhitms and it would require a pretty smart programmer to reverse-engineer the format without violating the patents.

In conlusion, it's not possible to decompress modern RAR archives with free software. Therefore, please don't publish or share such archives, since it is discriminatory against members of the free software movement. This movement is part of the same revolution as the peer-to-peer networks are, so we believe that the two communities should cooperate and tolerate each other's ideals. If you need to stick many short files together, use Tar, and if you really need to compress them (or if you don't like Tar for some reason), please use the traditional Zip format which is easily readble by free software decompressors as well. You will contribute to development of better society. Thank you very much.






Best Regards
Hildebrand


Samandar ko Baandhe Aisa Koi Ghaat Nahi, Kadmon ko thaame aisi koi baat nahin Patli si dhaara samundar mein milti hai, milkar ke kho jaati hai, ghaat ghaat hi rehte hain woh samundar ho jaati hai, karlo jo chaaho, banlo jo chaaho

“Geet boodhe nahin hote, unke chehron pe jhurriyan nahi girti
wo palte rahte hain, chalte rahte hain
sun-ne walo ki umra badal jaati hai….”

Please Visit
http://www.anmolfankaar.com: A website dedicated to Artists of the Indian Subcontinent. Now follow it on twitter too. http://twitter.com/anmolfankaar

http://www.shamshadbegum.com : A website dedicated to the Living Legend Shamshad Begum. May She Live Long.

http://www.madamnoorjehan.com : A website dedicated to Madam Noorjehan

http://www.geetadutt.com : A website dedicated to Geeta Dutt Nee Roy
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic
hildebrand   Linux And Free Software Tips, Tricks And Tutorials   Sep 20 2009, 02:02 AM
hildebrand   Tip #1: Converting bitrate of mp3 files I sometim...   Sep 20 2009, 02:13 AM
hildebrand   Tip #2 : Zipping files It is possible to zip a fi...   Sep 20 2009, 02:15 AM
hildebrand   Tip #3: Making list of mp3 files in a folder The...   Sep 20 2009, 02:21 AM
Exon   [b] Tip #3: Making list of mp3 files in a folder ...   Sep 20 2009, 03:29 AM
hildebrand   Exon I also use the same version of mp3report. I h...   Sep 20 2009, 03:30 PM
Exon   Exon I also use the same version of mp3report. I ...   Sep 20 2009, 03:59 PM
hildebrand   Tip #4: mp3info As mentioned by Exon, mp3info i...   Sep 20 2009, 03:44 PM
hildebrand   Tip #6 : file This is a very handy default utility...   Sep 21 2009, 01:05 PM
hildebrand   Tip #7: extract utility (which uses libextractor) ...   Sep 21 2009, 02:18 PM
hildebrand   Tip #8 - Software for editing mp3 tags : kid3-qt ...   Sep 21 2009, 02:31 PM
hildebrand   Tip #9: Screen Capture Software Often for presenta...   Sep 23 2009, 10:57 PM
hildebrand   Tip #10: Zipping and unzipping many files in a fol...   Oct 8 2009, 11:56 PM
hildebrand   Please note that windows users can also use the zi...   Oct 10 2009, 07:22 PM
hildebrand   Tip #11: Making multibyte zip of big files Someti...   Oct 12 2009, 10:29 PM
hildebrand   Tip #12: Typing Tutor KLavaro is a lovely typin...   Oct 28 2009, 12:01 AM
hildebrand   Tip #13: How to type in Hindi in Open Office and ...   Nov 5 2009, 06:54 PM
hildebrand   Tip #14: Installing Winamp using wine on Linux Fol...   Nov 12 2009, 10:01 PM
Exon   HB, Will installing Wine in a Linux machine incre...   Nov 12 2009, 10:09 PM
hildebrand   HB, Will installing Wine in a Linux machine incr...   Nov 12 2009, 10:20 PM
hildebrand   Tip #15: Installing Goldwave on Linux using wine ...   Nov 12 2009, 10:19 PM
hildebrand   Tip #16: How to recover files deleted by rm -r ht...   Dec 13 2009, 10:55 AM
hildebrand   Tip #17 - Stapler for pdf Often one has lots of p...   Feb 17 2010, 12:49 AM
hildebrand   A nice list of mistakes done by new users of linux...   May 26 2010, 07:14 PM
hildebrand   Tip #18: Partitioning a pen drive with label name ...   Mar 29 2011, 06:05 PM
hildebrand   Tip #19: Using mp3info to get the information from...   Apr 2 2011, 05:56 PM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


 



- Lo-Fi Version | Disclaimer | HF Guidelines | Be An Angel Time is now: 20th June 2025 - 07:11 AM