Playing With Sid

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg
Showing posts with label debian. Show all posts
Showing posts with label debian. Show all posts

Thursday, 15 January 2009

Running Bug Jams and Packaging Jams

Posted on 21:26 by Unknown




In this month's Ubuntu developers Youtube video channel (06 January 2009), Daniel Holbach explains how to run a bug and packaging.



References





  • RunningBugJam - Ubuntu Wiki


  • GlobalBugJam - Ubuntu Wiki


Read More
Posted in bugs, debian, jam, Linux, packaging, ubuntu | No comments

Wednesday, 29 October 2008

Debian Lenny Slogan Contest, Cast Your Votes

Posted on 01:00 by Unknown

Debian Art Logo
The creative chaps at Debian Art are looking for a great line for Lenny, the development codename for the next version of Debian GNU/Linux operating system. They are running a open ballot.



I cast mine for the line "The Spiral Strikes Back!". Perhaps I loved this line over more popular one due to its strong visual connotations. No one would miss the reference to spiral logo of Debian GNU/Linux project and the Star Wars Episode V: The Empire Strikes Back has strong following in the community and elsewhere.



Right now the slogan "The Universal Operating System is leading the poll. Don't you think that human brain is supposed to be the true universal operating system on earth. Duh! :P



Poll Results So Far!





Debian lenny slogan contest poll results

Read More
Posted in debian, free software, lenny | No comments

Friday, 18 April 2008

Kumar Appaiah :: New Debian Developer from India

Posted on 17:56 by Unknown

Kumar Appaiah Kumar Appaiah is the new Debian Developer from Indian subcontinent. He is a graduate student at IIT-Madras and an active member of local gnu/linux user group ILUG-C. He talks to FCI's Praveen about life, linux and plans ahead.
Read More

Read More
Posted in chennai, debian, Debian-IN, free software, madras | No comments

Friday, 11 April 2008

Contributing to Debian for Dummies Talk

Posted on 03:30 by Unknown

If you come across Christian Perrier's speaking at any one of the Debian Linux conferences don't miss his Contributing to Debian for dummies talk. It is perhaps one of most entertaining talk about Debian project for new and experienced users alike.



I haven't found the video of this talk, however the slides in PDF format are available for download from his Debian talks page and also from FOSS.IN/2007 site.

Read More
Posted in debian, debian documentation, foss.in | No comments

Friday, 21 March 2008

Removing / Stopping Unwanted Services from Linux boot

Posted on 20:20 by Unknown



The first thing you should do when you install a shiny new gnu/Linux system is remove unwanted services from default runlevel (default is runlevel 2 incase of debian and related distros ).




Most advanced users would manually remove the syslinks from the runlevel /etc/rc{0-6}.d directories. This is not only messy and also prone to errors. I advise you to look the update-rc.d tool from the sysv-rc package. The sysv-rc package is installed as part of standard gnu Debian Linux base system, so it pays to learn this one over other GUI or Ncurses based tools.



Alright enough of talk let me go ahead remove some unwanted services, let's get rid the The Internet Superserver(inetd) here.




$ sudo update-rc.d -f inetd remove
update-rc.d: /etc/init.d/inetd exists during rc.d purge (continuing)
Removing any system startup links for /etc/init.d/inetd ...
/etc/rc0.d/K20inetd
/etc/rc1.d/K20inetd
/etc/rc2.d/S20inetd
/etc/rc3.d/S20inetd
/etc/rc4.d/S20inetd
/etc/rc5.d/S20inetd
/etc/rc6.d/K20inetd



The name of the service 'inetd' (referred to as basename in manual pages) are the init scripts that reside in the /etc/init.d directory. Have a look the scripts in this directory or look closely the boot time messages to find likely targets to remove.

Read More
Posted in Boot-Process, debian, initscripts | No comments

Thursday, 28 February 2008

Debian Google Summer of Code 2008

Posted on 17:44 by Unknown

Steve McIntyre wrote on debian-devel-announce list about this years Summer of Code program, Guess, I should pitch in and do something this year.




Hey folks,


Google are running their Summer of Code programme again this year,
and if we want to take part again we need to apply between March 3rd
and March 12th. If we're accepted as a mentoring organisation, then
students will be able to apply to work with us up until the 1st
April
.


I'm volunteering to be an admin again, and I'll deal with making the
application for Debian as an organisation. Beyond that, some more
admins would be useful to help out later on. If you'd like to help,
let me know ASAP!


Then we'll need mentors and ideas for the programme itself. As in
previous years, the easiest place for us to collect those is in the
wiki. Please fill your ideas in there. Last year's suggestions for
projects are still in the wiki if you're looking for inspiration,
but *please* don't just copy things across wholesale!



Read More
Posted in debian | No comments

Wednesday, 30 January 2008

Wake up to the music

Posted on 10:34 by Unknown

Using cron/mplayer and some shell glue you can create your own musical alarm clock to wake you up everyday. Ever since the Cron-MP3 alarm clock was published some years ago, it never ceases to dazzle me what you can do with little creativity.

Read More
Posted in cron, debian, mplayer | No comments

Raw Control Characters In Less pager

Posted on 10:31 by Unknown

Less is my default terminal pager program. On GNU Debian Linux pager is just a symbolic link to your less or one of other available pager progams like more , most , lv etc..( run update-alternatives —list pager to find out alternative pager programs available on your computer). Lately some funny characters started showing up in my pager .




$ ls /tmp/Foo/ | pager


ESC[0mESC[0mFooBarESC[0m

ESC[0mMaster-fooESC[0m

ESC[m




Oops, That looks like the ANSI Escape Sequences commonly used for making a shell colourful, but our pager program less seems to have some trouble with it. Let’s try to correct this but using -R option which toggles this behaviour.




$ ls /tmp/Foo/ | pager -R

FooBar

Master-foo




Ok, that seems to fix it. Now let’s set it into our shell environment.You set the same using lesskey also.




LESS=”-R”; export LESS




Please note that using -r option may cause display problems , that’s why I use -R .



Wolfgang Friebel notes in Displaying more with less that ..




Syntax highlighting is only activated if the environment variable LESS is existing and contains the option -R or -r or less is called with one of these options. This guarantees, that instead of literal escape sequences colors are displayed. The detection of the -r/-R presence at runtime is rather dependent on the operating system and may not work in all cases. Putting the option in the LESS environment variable is guaranteed to work.By installing the perl module Proc::ProcessTable the OS dependence can be reduced as well.



Read More
Posted in command line, CommandLine, debian, less, lv, more, most, pager | No comments

Upgrade problems for sysvinit (2.86.ds1-16 | 2.86.ds1-19)

Posted on 10:29 by Unknown

Update: Post out-of-date …. don’t flame me





Those of you who followed the earlier the fix for sysvinit (2.86.ds1-16) upgrade problem given below should read the follow-up comments that were aired on both debian-devel and debian-user.




— Petter Reinholdtsen Sat, 9 Sep 2006 20:12:47 +0200

In version 2.86.ds1-16 of the sysv-rc package released 2006-09-06, the update-rc.d script was broken. When used to to update symlinks it would remove all symlinks for a init.d script if such symlinks existed, and add them if they were missing. This broke all packages being upgraded after the new version was installed, as their init.d scripts will no longer be executed. This problem was fixed in version 2.86.ds1-18, but the broken packages will stay broken until their postinst scripts are executed again.



Those with packages being broken from this bug can fix it by using ‘apt-get —reinstall install package’ on the affected packages. A quick way out is to reinstall all the packages with scripts in /etc/init.d/.


for p in `dpkg -S /etc/init.d/*|cut -d: -f1|sort -u`; do

apt-get —reinstall install -y $p

done


Read the Petter Reinholdtsen’s post



sysvinit (2.86.ds1-19) unstable; urgency=low


The script proposed below is dangerous, as it had a problem

with removed but not purged packages. If such packages had

files in /etc/init.d/, it could end up trying to remove quite a lot
of packages. This version check to make sure the package is installed before trying to reinstall it, as well as making sure the
admin is asked for every package.


for p in `dpkg -S /etc/init.d/*|cut -d: -f1|sort -u`; do
if dpkg —get-selections $p | grep -qw install ; then
echo reinstalling $p
apt-get —reinstall install $p
fi
done



To avoid the question, add -y as an argument for apt-get.

An alternative to reinstalling all these packages is to look in /var/log/dpkg.log for the packages that was installed and upgraded between sysv-rc version 2.86.ds1-16 and version 2.86.ds1-18, and only reinstall these. A script to do this and update the system is provided in /etc/init.d/.


/usr/share/doc/sysv-rc/update-rc.d-recover


Please use it to update your installation if you were upgrading from one of the broken versions of sysv-rc.


Read More
Posted in apt-get, debian, sysvinit | No comments

Handling CHM files in GNU/Debian Linux

Posted on 10:20 by Unknown

In a perfect world all the OCR files would come in djVu format but world isn’t perfect, so this morning I had read this 300 page CHM compiled HTML Help (insert joke here)file and for no apparent reason my CHM viewer won’t display the file beyond page 50. Bummer!.



Don't get me wrong but there some great programs to handle CHM files on gnu/Linux OS. And I’ll mention some of them here in this post. A more detailed specifications of CHM format. is available if you are interested.



Graphical CHM Viewers



Well, The brief list doesn’t attempt to be complete but it gives you an idea of range of tools available to a gnu/Linux user.




  • Kchm

  • xCHM

  • GnoCHM


  • CHMsee

  • Archmage

  • DisplayCHM (contributed by Rajasekaran)

  • CHM Firefox addon (contributed by Rajasekaran)


  • (if I missed any, do leave a comment with a note)



View a CHM file on a Web Browser



If you like to read using your favorite web browsers instead of a Graphical X based CHM viewer, then there is chm_http in libchm-dev package from the CHMLib project . Also Archmage package has http-server and or if you prefer Apache Web Server instead of standalone webservers then there is an extension mod_chm too .



Converting and De-compiling CHM files



Of late I saw chm2pdf project offering to covert CHM files directly into PDF. I should try it sometime, but for now I will just de-compile the CHM file and get done with it.



So, if you don’t have libchm-dev package installed, then do this.




sudo apt-get install libchm-dev




This package has “extract_chmLib” program which will extract and place the files in a given directory.




extract_chmLib Foo.chm Foo-dir/




That it, now you can use your web browser to read the contents at your will. It is a quick and dirty way, but its much better than using the dreaded CHM files anyway.



Compiling CHM files ?



Sometime after this entry was posted, I got people asking me how to create CHM files under gnu/Linux .



According to Bruce Byfield in two year old article on FOSS help authoring tools


Numerous projects for cross-platform or GNU/Linux-based tools for producing .chm files have been announced, but most of them are in the planning stage, and have released little or no code. The only two that seem polished enough to use are AurigaDoc and DocBook two XML-based solutions that are well-known in other contexts.

Read More
Posted in apache, archmage, CHM, chmsee, debian, DJvu, gnochm, Kchm, libchm, OCR, xchm | No comments

How to Block Ads With Adzap

Posted on 10:19 by Unknown

Cameron Simpson’s Adzap (http://adzapper.sourceforge.net) is a Perl program written to match and replaces those annoying web ads.It uses the redirector option of Squid proxy-caching server (http://www.squid-cache.org), a fast and efficient caching server.



How does Adzap work?



Squid proxy server is designed to cache web content as clients requests,it checks for presence of local copy of request, if found servers it directly.This not only saves bandwidth usage but accelerates web speed.



Squid redirects requested URL to adzapper program which tries to identify ads,unrequested pop-up widows and other unsolicited content using regular expressions.



Most of content such as graphics,flash animations,client-side scripts and executables are matched and quietly replaced.Adzap returns sanitized request back to squid which servers it.This increases the surfing speeds considerably even if you are on boardband connection.



Most commercial web advertisers track user preferences and surfing habits.Adzap protects your privacy by efficiently blocking such ads from loading.



How do you install Adzap?



You can download the latest version of Adzap from http://adzapper.sourceforge.net .



Uncompress the the Adzap files to your /usr/local/ directory.If you use any other directory,please do change the commands in this article.




tar zxvf adzap-20030726.tar.gz -C /usr/local/




Change your directory to /usr/local/adzap.All the adzap programs are found under the scripts directory.



bq. cd /usr/local/adzap/

Edit the scripts/wrapzap file and set the zapper to squid_redirect.You can customize the Adzap to suit your needs in this file.




zapper=/usr/local/adzap/scripts/squid_redirect




Configure the squid to use Adzap as its redirector program.The squid configuration file in most *nix’s is /etc/squid/squid.conf.Set the redirect_program option as mentioned.





redirect_program /usr/local/adzap/scripts/wrapzap




Restart the squid server.




/etc/init.d/squid restart




Check the /var/log/squid/cache.log for any errors.Start your favorite browser and point it towards your squid server and enjoy ad free surfing.



First Published long time ago on the web.

Read More
Posted in adzap, debian, perl, regex, squid, wrapzap | No comments

Multimedia/Internet Keyboards in GNU/Linux

Posted on 10:16 by Unknown

As the resident Gnu/Linux guru, I sometimes help new users making transition from other OS’s.Over the years I’d ask anyone who installed Gnu/Linux about what hardware devices didn’t work for them,most often it is Multimedia/Internet keyboards. In this article, we’ll configure one such keyboard using Hotkeys.



Anthony Wong’s Hotkeys program is written to handle all those special keys provided by the multimedia/Internet keyboards and launch programs associated with them.Though there are numerous ways to configure these keyboards in Gnu/Linux,Hotkeys is easier to configure and its osd (on-screen display) is very simillar to those available on other OS’s.



You can visit Hotkeys site to download the latest version of the program as tarball or as a debian package.



The installation on Debian machine can be done using the apt-get.




$ apt-get install hotkeys




Configuration



Hotkeys starts a daemon process,usually started with xinit process,it uses a global configuration file /etc/hotkeys.conf and user configuration’s can be stored in $HOME/.hotkeysrc.



The hotkeys.conf configuration is well commentted, should not present any problems to new users.Its contains can be summed up as



1) Device Settings




Keyboard Type (kbd=”“)
CD Drive (CDROM=”“)





The supported keyboards can be checked with ‘hotkeys -l’.

2) Key Behaviour




Tag = ‘command’ (Play = “xmms —play-pause”)





The complete list of tags can be found in /usr/share/doc/hotkeys/sample.xml file.The users can also create their own tags.



3) On-Screen Display Properties




Font (osd_font=”“)
Color (osd_color=”“)
Position (osd_position=”“)



#Sample /etc/hotkeys.conf file.
#########################


  1. Global configuration for hotkeys #
    #########################



    1. These are the default values.

    2. A line starting with # is a comment.

    3. Specify the default keyboard (without the .def extension) so you


    4. don’t need to specify -t every time

      Kbd=hp5181

      CDROM=/dev/cdrom # use ‘none’ if don’t have a CDROM Drive
      PrevTrack=xmms —rew
      Play=xmms —play-pause
      Stop=xmms —stop
      Pause=xmms —pause
      NextTrack=xmms —fwd
      Rewind=
      WebBrowser=mozilla
      Email=mozilla -mail
      Calculator=xcalc
      FileManager=gmc
      MyComputer=gmc
      MyDocuments=gmc
      Favorites=gnome-moz-remote —remote=openBookmarks
      Transfer=gtp
      Record=grecord
      Shell=xterm -rv
      ScreenSaver=xscreensaver-command -activate
      NewsReader=mozilla -news
      Communities=mozilla -remote ‘openURL(http://slashdot.org)’

      Search=mozilla -remote ‘openURL(http://google.com)’
      Idea=mozilla -remote ‘openURL(http://sourceforge.net)’
      Shopping=mozilla -remote ‘openURL(http://thinkgeek.com)’
      Go=mozilla -remote ‘openURL(http://linux.com)’
      Print=lpr
      Rotate=


      osd_font=-arphic-ar pl kaitim big5-bold-i-normal—0-250-0-0-c-0-*-*

    5. For the color, you can either use the strings in /etc/X11/rgb.txt,

    6. or use the RGB syntax #RRGGBB, e.g. ##A086FF

      osd_color=LawnGreen

      osd_timeout=3

    7. osd_position is either ‘top’ or ‘bottom’


      osd_position=bottom

      osd_offset=25





Configure Unsupported Multimedia/Internet keyboard



The Hotkeys program is still under development,you may not find your keyboard in the default list.To configure your keyboard, find out the keycodes of the all special keys on your keyboard.



Use the xev program to capture the keycodes and save it to file.Move your cursor to square on the xev window and press the special keys in a sequence.




$ xev 2>&1 >mykeys




Search the file for the keycodes.




$ grep ‘keycode’ mykeys | cut -d “ “ -f7,8 >mykeycodes




Check the file to see the keycodes.




$ cat mykeycodes

keycode 223

keycode 166

keycode 151

keycode 232

keycode 159

keycode 153


keycode 144

keycode 165

keycode 158

keycode 146

keycode 178

keycode 150

keycode 148

keycode 149

keycode 173


keycode 164

keycode 163

keycode 162

keycode 161

keycode 152

keycode 160

keycode 174

keycode 176

keycode 64





Hotkeys uses XML to define keycodes and their functionality.These are stored as ‘.def’ files in /usr/share/hotkeys directory.Let’s use the sample.xml file provided by the hotkeys to build a custom keyboard definition file.




$ cp /usr/share/doc/hotkeys/sample.xml /usr/share/hotkeys/custom.def





The hotkeys support various pre-defined ‘tags’ like Sleep, Search, Shopping andvarious CD/DVD player controls

(See /usr/share/doc/hotkeys/sample.xml). Each ‘tag’ has a behaviour assigned, Sleep uses APM to turn your computer into hibrnatio.Many other special function keys can also be configured.



For example the half-moon key on my keyboard is configured using ‘Sleep’ tag.


<Sleep keycode=“223”/>




And un-defined Shortcut key is set with.



<code>
<userdef keycode="232" command="xterm">Xterm</userdef>
</code>


Here is how the custom.def appears with the above examples.



<?xml version="1.0"?>
<definition>
<config model="My custom keyboard">
<!-- Support Tags functions -->
<!-- half-moon key -->

<Sleep keycode="223"/>
<!-- User define functions -->
<userdef keycode="232" command="xterm">Xterm</userdef>
</config>

<contributor>
<name>your-name</name>
<email>your-email</email>
</contributor>
<definition>


Now test the custom.def by using it as your keyboard type.




$ hotkeys -t custom




A lot more keys can be set using the same custom.def file, a little effort pays off really well.If you have configured a new Multimedia/Internet keyboard using hotkeys, do take time to send it project developers, it would help many other users with same keyboards.



Web Resources



Hotkeys Help Forum



Hotkeys Project

Read More
Posted in cut, debian, grep, hardware, hotkeys, keyboard, keycode, xev | No comments

Website file Uploads With lftp

Posted on 10:14 by Unknown

Keeping your website updated is tedious job,especially when you have lot of files,which you edit quite often.And having to do the such work over ftp makes it worse.



In this article we’ll use a command line based file transfer program lftp(http://lftp.yar.ru/) written by Alexander .V. Lukyanov to do website file uploads.Though
there are many other ftp clients,lftp is simpler to use,feature rich,can upload several files in parallel and it comes bundled up with most Gnu/Linux distributions.

lftp is a powerful tool, its built-in mirror facility is suitable for keeping your website updated and secure by replicating permissions on the uploaded files.It checks for modified files by checking the file sizes and file modification times.

Using lftp on Command Line



Now you have a local directory on your computer where you keep all your website files(/home/joe/site_files).Let upload these files to your remote webserver directory using lftp on command line.First lets connect to your hosting service providers webserver with username and password.




$ lftp -u username ftp.hostingcompany.net

Password:




The lftp program will prompt for the password,type your secret password and you will be logged in.



Now issue the ‘lcd’ command to change directory to local directory where your all website files reside.




lftp username@ftp.hostingcompany.net:~> lcd /home/joe/site_files

lcd ok, local cwd=/home/joe/site_files





Now use the lftp mirror built-in’s reverse option (-R) of lftp to

upload all files local files into remote directory on the webserver.




lftp username@ftp.hostingcompany.net:~> mirror -R


Total: 12 directories, 36 files, 0 symlinks

Modified: 13 files, 0 symlinks




You can use “ mirror -R —only-newer “ command if you want only new
files to uploaded.Once the upload is finished lftp will print out a report.Now you can end the connection by typing quit.





lftp username@ftp.hostingcompany.net:~> quit




Running lftp in a Script



Now that we have seen lftp in action.Let run all the commands from script instead.Luke Vanderfluit provides this nice little script.




lftp -u username,password ftp.hostingcompany.net <<EOF

cd / # remote directory on webserver

lcd /home/joe/site_files # local directory on your computer

mirror -R # Upload the files to remote directory

quit 0 # Drop the connection

EOF





Save all the commands in a file ‘upload_mysite’ and make it executable with ‘chmod +x upload_mysite’.Run the script by typing ‘./upload_mysite’ on the command line.As your username and password are stored it file,its a better not let anyone else to view it.Changing file permissions with ‘chmod go-rwx upload_mysite’.



Maintaining Multiple Websites



Running lftp from script is not a good idea if you have to maintain multiple sites.Instead you can use lftp’s ‘-f’ option.You can store settings of different websites into separate files.Suppose you have two websites site1 and site2.



The settings of the both the sites are stored in files ‘mysite1.lftp’ and ‘mysite2.lftp.




#####mysite1.lftp#######################

open ftp.myisp.net

user username password

lcd /usr/joe/site1_files

mirror -R

exit
#########################################





#####mysite2.lftp#######################

open ftp.hostingcompany.com

user username password

lcd /usr/local_site_location

mirror -R

exit
#########################################




To update site1, we will run lftp with ‘-f’ option.




$ lftp -f mysite1.lftp




And to update the next website.




$ lftp -f mysite2.lftp




Some other usefull features provided by ‘mirror’ built-in are the —parallel = N where in it will use N simultaneous connections to upload the files,this speeds up the upload considerably.If you want to exclude some files from being uploaded use (- x , – X) . And —delete to remove those files which are not present in local directory.



lftp can also be run as a cron job . Jani Reinikainen shows an interesting use of lftp to periodically mirroring a directory to a remote computer.



References



lftp manual page [http://lftp.yar.ru/lftp-man.html ]


lftp FAQ [http://lftp.yar.ru/FAQ ]

lftp Download page [http://lftp.yar.ru/get.html ]

Read More
Posted in command line, CommandLine, debian, lftp, sitecopy | No comments

BitTorrent "INFO : duplicate connection (id collision) " log messages

Posted on 10:08 by Unknown

BitTorrent 4.20.x (and later) now logs all its messages and errors to its logs1. Here is one log message that mystified me.



[4.20.4 2006-09-01 04:10:39] INFO : duplicate connection (id collision)

[4.20.4 2006-09-01 04:10:48] INFO : duplicate connection (id collision)

[4.20.4 2006-09-01 04:10:52] INFO : duplicate connection (id collision)


[4.20.4 2006-09-01 04:11:03] INFO : duplicate connection (id



BitTorrrent Support provides a clear answer.




This message is harmless and can be ignored. It means that a request for data was sent to a peer you are already connected to. This is most common when there are few peers in the swarm for a given torrent. It does not affect your down or upload speed in any way.





1 Bittorrents logs file under UNIX, GNU/Linux operating systems are found under $HOME/.bittorrent/bittorrent-{cosole,curses}.log

Read More
Posted in bittorrent, debian | No comments

Its party time for Debian camp

Posted on 10:06 by Unknown

Debian Etch is now released. Its party time for Debian camp, the nearest party spot here in India seems to be BMS College in Bangalore. Party on and do remember to avoid spelling and grammar mistakes in your package(s) descriptions fellows.



Not all of us are native English langauge speakers but as Debian Developer’s Reference recommends in its 6 Best Packaging Practices section of the manual, we can remedy this with a little effort.




Be careful to avoid spelling and grammar mistakes. Ensure that you spell-check it. Both ispell and aspell have special modes for checking debian/control files:


ispell -d american -g debian/control

aspell -d en -D -c debian/control


As usual I expect magnanimous Debian users would lend a hand by reporting these bugs.


Read More
Posted in debian | No comments

libTorrent / rTorrent 0.7.0 debian packages available

Posted on 10:03 by Unknown

UPDATE: Never version of rTorrent made into Debian (Sid) since this entry was first posted.





Rakshasa’s libTorrent and rTorrent Unstable Release (0.7.0) Debian packages are now available



The Debian Sid/unstable rtorrent package is still stable release (0.6.4.x). A wishlist was posted and you can use this repo until the main debian packages are upgraded.



You can add this line to your sources.list and apt-get the packages.

deb http://repos.ghostbar.ath.cx/debian sid main



Or grab the packages directly from http://debian.ghostbar.ath.cx/



The adding of public keys for this repo however didn’t work. Perhaps am missing something here.



gpg --keyserver pgp.mit.edu --recv 0xCACAB118 && gpg --export 0xCACAB118 | sudo apt-key add -



[OR]



wget http://pub.ghostbar.ath.cx/pubkey-ghostbar.gpg
sudo apt-key add pubkey-ghostbar.gpg

Read More
Posted in apt-key, bittorrent, debian, rtorrent, wget | No comments

Smart URL 's in Elinks

Posted on 10:01 by Unknown

If you have Elinks installed then it already has a bunch of smart URL’s enabled .The table below lists those in Debian’s elinks package configuration file. The Elinks Manual explains how it works and how to build your own.



Here a example, lets search for what acronym “ALSA” means with elinks.



Press g in elinks and type a: ALSA when prompted with Enter URL. The a: is the keyword and ALSA (replaced in place of %s ) is search string, elinks smart rewrite expands it to http://acronymfinder.com/af-query.asp?String=exact&Acronym=ALSA and submits it , You will be directed to the search results at acronymfinder.com.



Elinks Smart URL’s Reference:




  • a http://acronymfinder.com/af-query.asp?String=exact&Acronym=%s

  • arc http://web.archive.org/web/*/%s


  • bb http://babelfish.altavista.com/babelfish/tr?urltext=%s

  • bb_en_fr http://babelfish.altavista.com/babelfish/tr?lp=en_fr&submit=1&urltext=%s

  • bb_fr_en http://babelfish.altavista.com/babelfish/tr?lp=fr_en&submit=1&urltext=%s


  • bug http://bugzilla.elinks.or.cz/show_bug.cgi?id=%s

  • cambridge http://dictionary.cambridge.org/results.asp?searchword=%s

  • cliki http://www.cliki.net/admin/search?words=%s

  • cr http://www.rfc-editor.org/cgi-bin/rfcsearch.pl?searchwords=%s&format=http&abstract=abson&keywords=keyon&num=25


  • czen http://www.slovnik.cz/bin/ecd?ecd_il=1&ecd_vcb=%s&ecd_trn=translate&ecd_trn_dir=1&ecd_lines=15&ecd_hptxt=0

  • d http://www.dict.org/bin/Dict?Query=%s&Form=Dict1&Strategy=*&Database=*&submit=Submit+query


  • dbug http://bugs.debian.org/%s

  • dict http://dictionary.reference.com/search?q=%s

  • dmoz http://search.dmoz.org/cgi-bin/search?search=%s

  • dpkg http://packages.debian.org/%s


  • draft http://www.rfc-editor.org/cgi-bin/idsearch.pl?searchwords=%s&format=http&abstract=abson&keywords=keyon&num=25

  • e2 http://www.everything2.org/?node=%s

  • emacs http://www.emacswiki.org/cgi-bin/wiki.pl?search=%s


  • encz http://www.slovnik.cz/bin/ecd?ecd_il=1&ecd_vcb=%s&ecd_trn=translate&ecd_trn_dir=0&ecd_lines=15&ecd_hptxt=0

  • fm http://freshmeat.net/search/?q=%s

  • foldoc http://wombat.doc.ic.ac.uk/foldoc/foldoc.cgi?%s


  • fsd http://directory.fsf.org/search/fsd-search.py?q=%s

  • g http://www.google.com/search?q=%s&btnG=Google+Search

  • gd http://www.google.com/search?q=%s&cat=gwd/Top


  • gg http://www.google.com/search?q=%s&btnG=Google+Search

  • gi http://images.google.com/images?q=%s

  • gn http://news.google.com/news?q=%s

  • go http://www.google.com/search?q=%s&btnG=Google+Search


  • google http://www.google.com/search?q=%s

  • gr http://groups.google.com/groups?q=%s

  • gwhat http://www.googlism.com/?ism=%s&name=2

  • gwhen http://www.googlism.com/?ism=%s&name=4


  • gwhere http://www.googlism.com/?ism=%s&name=3

  • gwho http://www.googlism.com/?ism=%s&name=1

  • id http://www.rfc-editor.org/cgi-bin/idsearch.pl?searchwords=%s&format=http&abstract=abson&keywords=keyon&num=25


  • imdb http://imdb.com/Find?%s

  • lxr http://lxr.linux.no/ident?i=%s

  • lyrics http://music.lycos.com/lyrics/results.asp?QT=L&QW=%s

  • mw http://www.m-w.com/cgi-bin/dictionary?book=Dictionary&va=%s


  • mwt http://www.m-w.com/cgi-bin/thesaurus?book=Thesaurus&va=%s

  • onelook http://onelook.com/?w=%s&ls=a

  • py http://starship.python.net/crew/theller/pyhelp.cgi?keyword=%s&version=current


  • pydev http://starship.python.net/crew/theller/pyhelp.cgi?keyword=%s&version=devel

  • pyvault http://py.vaults.ca/apyllo.py?find=%s

  • rfc http://www.rfc-editor.org/rfc/rfc%s.txt

  • rfcid http://www.rfc-editor.org/cgi-bin/idsearch.pl?searchwords=%s&format=http&abstract=abson&keywords=keyon&num=25


  • rfcs http://www.rfc-editor.org/cgi-bin/rfcsearch.pl?searchwords=%s&format=http&abstract=abson&keywords=keyon&num=25

  • savannah http://savannah.nongnu.org/search/?words=%s&type_of_search=soft&exact=1

  • sd http://slashdot.org/search.pl?query=%s


  • sdc http://slashdot.org/search.pl?query=%s&op=comments

  • sdj http://slashdot.org/search.pl?query=%s&op=journals

  • sdp http://slashdot.org/search.pl?query=%s&op=polls


  • sdu http://slashdot.org/search.pl?query=%s&op=users

  • sf http://sourceforge.net/search/?q=%s

  • sfp http://sourceforge.net/projects/%s

  • thes http://thesaurus.reference.com/search?q=%s


  • whatis http://uptime.netcraft.com/up/graph/?host=%s

  • wiki http://www.wikipedia.org/w/wiki.phtml?search=%s

  • wn http://www.cogsci.princeton.edu/cgi-bin/webwn1.7.1?stage=1&word=%s

Read More
Posted in command line, debian, elinks, Elinks2, web-browser | No comments

Error messages on the console screen

Posted on 09:58 by Unknown

Debian console getting flooded with error messages and verbose warnings can be quite trying for anyone.



Previous versions Debian Reference (Section 8.6.8) used to provided a solution viz… Running “dmesg -n X” (where X is the error levels [1..7) to quiet on-screen error messages until next reboot. Or set KLOGD=”-c 3” in etc/init.d/klogd script and run /etc/init.d/klogd restart for more lasting effect.



David Clarke provides the new way of handling console errors nicely.



Add a single line is your /etc/sysctl.conf and upon every reboot the given values are set to the linux kernel printk() .




kernel.printk = 3 4 1 7




The four values we are setting in /proc/sys/kernel/printk stand for:




  • console_loglevel – messages with a priority higher than this will be printed to the console




  • default_message_loglevel – messages without an explicit priority will be printed with this priority




  • minimum_console_loglevel – minimum (highest) value to which console_loglevel can be set





  • default_console_loglevel – default value for console_loglevel



These values influence printk() behavior when printing or logging error messages. See syslog(2) for more info on the different loglevels. For more information on other /proc files is read LinuxInsight /Proc Documentation

Read More
Posted in console, debian, kernel, logging, proc | No comments

Download High Quality Movie Trailers

Posted on 09:56 by Unknown

XML parsing is often left to programming languages, not for command line use or in shell scripts. Here I used XMLStarlet Command Line XML Toolkit a wonderful set of tools that brings power of handling XML to commandline and Wget to download the content. The xmlstarlet tool seeks the URL’s in XML feed and passes it to wget.



/usr/bin/wget -c  `/usr/bin/xmlstarlet sel  --net  -D -T -t  -m "/records/movieinfo/preview" -v  "large" -o " " http://www.apple.com/trailers/home/xml/current.xml` 


These two programs are ported and available for other operating systems. The wget “-c” (continue) is optional. You can use any other downloader instead of wget. I suggest curl

Read More
Posted in curl, debian, RSS, RSS/XML, wget, xml, xmlstarlet | No comments

GNU/Debian Linux don't power off after shutdown

Posted on 09:54 by Unknown

To avoid any problems with your filesystems always shutdown your debian box the neat way. After a recent upgrade my computer stopped powering off after shutdown.



Thanks to the Rainer Dorsch for pointing me in the right direction.



Step One



1. First append this line to your /boot/grub/menu.lst if you are using GRUB or lilo.conf if you are using LILO.



append="acpi=off apm=power_off"



Step Two



2. Add this line to your /etc/modules



apm power_off=1



After a reboot, next time you issue the shutdown command your computer should power off automatically.

Read More
Posted in acpi, apm, bootparam, debian, grub, kernel, lilo, poweroff, shutdown | No comments
Older Posts Home
Subscribe to: Posts (Atom)

Popular Posts

  • Vietnamese Language Tools: Developing Keyboards and Spell-checker
    Mentoring Mozilla Vietnamese localization team to develop Vietnamese keyboard and spell checker for Firefox OS . We built and tested Vietna...
  • Multimedia/Internet Keyboards in GNU/Linux
    As the resident Gnu/Linux guru, I sometimes help new users making transition from other OS’s.Over the years I’d ask anyone who installed Gnu...
  • Bollywood Afternoon In Hanoi
    A lot can happen over a cup of Masala Chai. Sunday afternoon's are usually Indian food at Foodshop 45 in Tay Ho, Hanoi. After a good mea...
  • Locate Configuration Example
    Keep things found is not an easy skill to master. The disk drive turns into a deep and dark jungle after the first few weeks on road. Tradit...
  • Mapping The Internet
    I watched the map of internet mentioned in the recent "Download: The True Story of the Internet " on Discovery Channel , it sound...
  • foss.in 2008 :: Sorting In Indic Locales Workout
    Day 3 : Sorting In Indic Locales workout at foss.in 2008 . Indic Workout In Progress Brainstorming Live interaction and collaborative edi...
  • foss.in 2008 :: Day 4
    Day 4 @ foss.in 2008 IndLinux Project BOF Beacon Workout Sharing ideas after Apertium talk Sachin Joshi demo's his Hindi ASR syste...
  • Cellphone Woes of a Weary Traveller
    'Somethings' they say, 'remain a mystery until someone comes along'. Few hours into the journey, I could feel some discomfor...
  • foss.in 2008
    Photos from Day One of foss.in in Bangalore. JN Tata Auditorium, IIsc Bangalore Event Registration Counters Waiting for my turn Securit...
  • National Conference on Free Software 2008 :: Day 1
    The YMCA camp building is just a stone throw away from the Cochin backwaters, I spent some time looking the slow churning waters and the sun...

Categories

  • "Blog Action Day 08 - Poverty"
  • "blog action day"
  • "Compiz Extras "
  • "compiz-fusion"
  • "film making"
  • "FSUG-Bangalore"
  • "GISS"
  • "Graphic Design"
  • "Linux"
  • "martial art"
  • "New Media"
  • "open movie editor"
  • "OpenCV"
  • "web authentication"
  • "web automation"
  • "web testing"
  • 01-18-2012
  • 10.04
  • 10.10
  • 3dprinting
  • 9.04
  • a
  • a11y
  • accerciser
  • accessibility
  • acpi
  • Activism
  • adobe
  • adzap
  • aegis
  • africa
  • AIR
  • ajax
  • alsa
  • AMD64
  • Andhra Pradesh
  • android
  • angling
  • Animals
  • anusaaraka
  • apache
  • apertium
  • api
  • apm
  • apple
  • apport
  • Apps Script
  • apt-get
  • apt-key
  • architecture
  • archmage
  • ardour
  • arduino
  • ARM
  • art
  • asterisk
  • atom
  • audio description
  • backlinks
  • bangalore
  • barcamp
  • barcamphanoi
  • barcampkl
  • barcamppp
  • barcampsaigon
  • barcampvte
  • bash
  • bbc
  • bcy2011
  • beagle
  • beercamp
  • Beryl
  • big buck bunny
  • biofuel
  • bittorrent
  • blackout
  • blender
  • blind
  • blogger
  • blogging
  • book
  • Boot-Process
  • boot2gecko
  • bootparam
  • braille
  • brazil
  • breakpad
  • broadcom
  • bugs
  • bzr
  • Calicut
  • cambodia
  • canon
  • Canopy
  • cartoons
  • cat
  • CC
  • CDAC
  • CDMA
  • celliax
  • censorship
  • CES 2008
  • CES08
  • CHDK
  • chennai
  • children
  • china
  • CHM
  • chmsee
  • Chromium
  • classmate PC
  • cleaning
  • Climate Change
  • cloud computing
  • cms
  • codec
  • Comedy
  • comics
  • command line
  • CommandLine
  • compiz
  • Computational Linguistics
  • console
  • cpan
  • Creative Commons
  • cron
  • css
  • curl
  • cut
  • cyanogenmod
  • DAISY
  • debian
  • debian documentation
  • debian upgrade-system
  • Debian-IN
  • deborphan
  • delhi
  • design
  • dhvani
  • django
  • DJvu
  • dmesg
  • documentation
  • dontzap
  • dots
  • dpatch
  • drupal
  • drush
  • earth hour
  • easy_install
  • ebay
  • eclipse
  • Ecuador
  • education
  • eee pc
  • eeepc
  • elinks
  • Elinks2
  • emacs
  • embedded linux
  • Environment
  • equivs
  • espeak
  • etch
  • events
  • fennec
  • ffmpeg
  • fiction
  • film
  • film making
  • find
  • findutils
  • firefox
  • firefox3
  • firefox4
  • firefoxOS
  • firmware
  • fishing
  • flying
  • foss.in
  • fossasia
  • fossin2008
  • FOSSMeet
  • free culture
  • free software
  • FreeNode
  • fsf
  • fsfs
  • fx4
  • G1
  • gadgets
  • gdm
  • gedit
  • geek humour
  • geocoding
  • Gimp
  • GISS
  • GIST
  • git
  • gnewsense
  • gnochm
  • gnome
  • google
  • google app engine
  • google earth
  • gplv3
  • grep
  • grub
  • GSM
  • gstreamer
  • gta02
  • GUI Testing
  • habba.in
  • hack
  • hackable1
  • hacker
  • handbrake
  • hanoi
  • hanoitweetup
  • hardware
  • hardy heron
  • HCU
  • hindi
  • hipatia
  • history
  • hosting
  • hotkeys
  • how to
  • HowTo
  • html
  • html5
  • HTTP
  • humour
  • hunspell
  • hyderabad
  • i810
  • ICANN41
  • iceweasel
  • identi.ca
  • IEEE
  • iffk
  • iframe
  • IISE
  • ILS
  • ILUG-D
  • IM
  • imacros
  • india
  • india_engg_students
  • Indian Languages
  • indic
  • indlinux
  • initscripts
  • Inkscape
  • intel
  • interaction design
  • internet
  • internet kiosk
  • intersat
  • Intrepid
  • Intrepid Ibex
  • ipod
  • IRC
  • jam
  • jaunty
  • Java
  • Javascript
  • Jet Man
  • josm
  • jquery
  • JSSH
  • Kannada
  • karmic
  • Kchm
  • kerala
  • kernel
  • keyboard
  • keycode
  • kid
  • kiddy video
  • kids
  • kinect
  • kiosk
  • koha
  • l10n
  • laos
  • launchpad
  • layout
  • ldap
  • lenny
  • less
  • lftp
  • libchm
  • library
  • libreoffice
  • lilo
  • Linux
  • lisp
  • local weather
  • locate
  • logging
  • lttoolbox
  • lucid
  • lv
  • machine translation system
  • madras
  • maemo
  • mailing-list
  • mallard
  • MALT
  • malware
  • man
  • manga
  • maps
  • maverick
  • mediawiki
  • meego
  • mencoder
  • merkaartor
  • Mibbit
  • micro-blogging
  • midori
  • mlocate
  • Mobile
  • moblin
  • mod_pagespeed
  • modem
  • more
  • most
  • mother
  • mozcamp
  • mozilla
  • Mozilla Crash Reporter
  • mplayer
  • MT
  • mukt.in
  • music
  • mwc2012
  • myanmar
  • mymozl10n
  • mysql
  • n70
  • nature
  • nedumangad
  • neo freerunner
  • Neo1973
  • nepal
  • netbooks
  • newbies
  • news
  • NGO
  • NITC
  • NLP
  • NLTK
  • Nokia
  • Nonprofits
  • notify-osd
  • novell
  • NUI
  • nvda
  • OCR
  • oddmuse
  • OLPC
  • ooffice
  • open movie
  • openDNS
  • openmoko
  • openNI
  • openOffice
  • openoffice.org
  • OpenStreetMap
  • opensuse
  • openvt
  • orca
  • OS
  • oscar
  • OSM
  • Package-Management
  • packaging
  • pager
  • parenting
  • patents
  • pbx
  • PDF
  • people
  • perl
  • Pets
  • Phatch
  • photography
  • php
  • php-nuke
  • phpnuke
  • pidgin
  • PIL
  • pipa
  • podcast
  • podcasting
  • pokhara
  • POS Tagger
  • postfix
  • potlatch
  • poweroff
  • powershot
  • proc
  • programming
  • pune
  • puppylinux
  • pyCairo
  • python
  • pythonegg
  • QA
  • Qmail
  • radio show
  • Recycling
  • red nose day
  • redhat
  • regex
  • RFC
  • RHEL
  • rms
  • RND
  • robots
  • rockbox
  • RSS
  • RSS/XML
  • rtorrent
  • rubber
  • ruby
  • rural
  • s60
  • sahana
  • samba
  • sampada
  • samsung
  • sbcl
  • science
  • scipy
  • search
  • security
  • SFD2011
  • shell
  • short-stories
  • shutdown
  • silk
  • singapore
  • sitecopy
  • skype
  • slocate
  • social media
  • software patents
  • software-center
  • softwarefreedomday
  • solar
  • solar eclipse
  • sopa
  • space
  • spam
  • SPE editor
  • speakers
  • spins
  • squid
  • stallman
  • stanford parser
  • startups
  • startx
  • stumpwm
  • SUSE
  • system-adminstration
  • sysvinit
  • t-shirt
  • tablet
  • tactile watch
  • tea shops
  • teacher
  • technology
  • tee
  • telugu
  • terminal
  • terminal Tags: command line
  • Tesseract
  • Testing
  • The IT Crowd
  • theatre
  • tibet
  • tracker
  • travel
  • trek
  • trekking
  • tux4kids
  • tuxmath
  • tv
  • tweets
  • twitter
  • ubuntu
  • UMPC
  • unicode
  • UNR
  • uptime
  • urdu
  • User friendly
  • uTouch
  • UX
  • UXA
  • vagrant
  • VCS
  • veli
  • vidarbha
  • video
  • video hamming
  • video hams
  • video-ham
  • vim
  • virutalization
  • visualization
  • voip
  • vsat
  • w3c
  • watches
  • water from dew
  • WATiR
  • weather stations
  • weave
  • web automation
  • web standards
  • web testing
  • web-browser
  • web2py
  • webmaker
  • wget
  • Wiki
  • wikia
  • wikipedia
  • Windows
  • Windows XP
  • wmv
  • Word Press
  • wordpress
  • worm
  • wrapzap
  • writing
  • wvdial
  • X-Window-System
  • X11
  • xchm
  • xev
  • xml
  • xmlstarlet
  • XO Laptop
  • xorg
  • xserver
  • xvidcap
  • yahoo groups
  • yahoo maps
  • yelp
  • Yves Rossy
  • Zii
  • ZTE

Blog Archive

  • ▼  2013 (23)
    • ▼  December (3)
      • Turn your old iPod speakers into wireless speakers
      • Kinect-Powered Interactive New Media Installation
      • Mozilla Taiwan Localization Sprint
    • ►  November (3)
    • ►  September (1)
    • ►  August (1)
    • ►  July (1)
    • ►  June (2)
    • ►  May (3)
    • ►  April (1)
    • ►  March (1)
    • ►  February (5)
    • ►  January (2)
  • ►  2012 (26)
    • ►  December (3)
    • ►  November (1)
    • ►  October (1)
    • ►  July (1)
    • ►  June (3)
    • ►  May (6)
    • ►  April (1)
    • ►  March (8)
    • ►  January (2)
  • ►  2011 (43)
    • ►  December (2)
    • ►  November (7)
    • ►  October (8)
    • ►  September (4)
    • ►  August (5)
    • ►  June (1)
    • ►  February (6)
    • ►  January (10)
  • ►  2010 (73)
    • ►  December (17)
    • ►  November (5)
    • ►  October (10)
    • ►  September (3)
    • ►  August (8)
    • ►  July (9)
    • ►  June (4)
    • ►  March (5)
    • ►  February (7)
    • ►  January (5)
  • ►  2009 (108)
    • ►  December (7)
    • ►  November (10)
    • ►  October (8)
    • ►  September (6)
    • ►  August (8)
    • ►  July (4)
    • ►  June (5)
    • ►  May (6)
    • ►  April (15)
    • ►  March (15)
    • ►  February (9)
    • ►  January (15)
  • ►  2008 (223)
    • ►  December (45)
    • ►  November (28)
    • ►  October (32)
    • ►  September (4)
    • ►  August (11)
    • ►  July (6)
    • ►  June (11)
    • ►  May (3)
    • ►  April (11)
    • ►  March (7)
    • ►  February (3)
    • ►  January (62)
  • ►  2007 (2)
    • ►  December (2)
Powered by Blogger.

About Me

Unknown
View my complete profile