Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Thursday, June 26, 2008

Latex on wordpress blog

Some time back I came to know that wordpress blogs hosted at wordpress.com supports latex. But no such default functionality for self hosted wordpress blogs. But there are plugins (latexrender, wp-latex) which can facilitate similar things.

But for these to work you will need to install latex on your hosting account. (I have intalled latex on my hostmonster account some time back.).

Continue Reading >>

Monday, February 26, 2007

Open source is key to reaching 500 million Indian children

An interesting article by Mark Rais on role of open source in making education available to the large youth population of india. And a greta initiative by CII-Shiksha.

To support more than 650,000 villages and one half billion youths who need education, the Confederation of Indian Industry (CII) created a nonprofit organization called Shiksha India in 2001. One of Shiksha's primary initiatives was the creation of a collaborative online Web portal, which the president of India launched in a formal ceremony last month. The new e-learning and collaboration portal uses open source technology such as Moodle, Drupal, and MediaWiki.

In my opinion the reason behind its success can be attributed to mainly: its free of cost availabilty which is big issue in regard to country like India, where population(half billion) which need attention is much higher and money involved if proprietary softwares are being used. And other important aspect which article mentions is in the ability to customize and provide products in local languages (including Hindi and Tamil) along with chosing most suited among vast available resources.
Another important issue which can be solved with open source is large scale piracy, currently software piracy laws are not so strict in india but still piracy is a getting a major issue.
"The bad side is that with so much available, a newcomer to OSS is bound to get confused about what to use." He says this is often exacerbated due to some projects being fixated on proving that their product is best.
Other than that at present, their are linux distributons like Ubuntu, which is quite user friendly and its available in many flavours. Also earlier there has also been efforts in shifting towards linux and other open source mediums like :
LIC opts for Linux
Taking Free Software to the Farmers and Fields of India
Kerala logs Microsoft out

Linux.com : Open source is key to reaching 500 million Indian children
Program Details for Shiksha India

Tuesday, February 06, 2007

Some useful command line tricks

SEOmoz.org has listing of linux commnad that may be useful in web development but they are uerful otherwise too.
Some of them are here:

  • ln -s /some/destination name_of_link
  • ctrl+z and bg
  • scp : scp user@example.com:~/dir /destination
Read More : Web Developers: 13 Command Line Tricks
Some other Miscellaneous Tricks:
  • ls -lSr List files (sorted by size)
  • df -h Show available disk space in human-readable format
  • du -sh /some/dir Show how much space /some/dir is taking up
  • Related Posts:
    Ten Cool Coreutils Commands
    Searching with find
    Best Linux One Liners

    Tuesday, January 30, 2007

    Cleaning up a Ubuntu GNU/Linux system

    I'm using ubuntu dapper, and i came across this nice ubuntu blog : Ubuntu Tutorials, having post on how to clean your ubuntu system to remove residual config packages, partial packages to free up your disk space. it also provides screen shot to help you follow the process. it also explains how to use localpurge, deborhan and other tools.

    Read more >> Cleaning up a ubuntu system

    Related post : How to install ANYTHING in Ubuntu!

    Thursday, January 25, 2007

    Hide data in files with easy steganography tools

    Earlier I wrote about Steganography, also how data/messages can be hidden in image files in these posts :
    How to hide files in JPEG's
    Steganography app hides a messages in plain sight
    today i find this article on lifehacker, It discusses some windows tools ( Hide in Picture ) that can be used to hide data in images.

    Other free Windows tools offer more filetype support. wbStego can encode and decode files in PDF's, HTML files or bitmaps. mp3stego embeds text inside MP3 files (command line and GUI interface available.) Here are more Windows stego software options [via Webby's World].
    Read More >>

    Saturday, January 06, 2007

    Ten Cool Coreutils Commands

    While a few commands, such as ‘cd’ are built directly into bash; many of the most important commands come from coreutils, a GNU package containing over a hundred commands. Some are the well known commands such as ‘ls’, ‘mv’ and ‘cat’.
    This list includes : tac, ps, stat, wc, split etc.
    Read More >> to know their usage and other commands in the list.
    source : Command Line Warriors

    Wednesday, October 11, 2006

    Using Telnet to send mail (By SMTP)

    You : telnet 25
    Server : Trying ???.???.???.???...
    Connected to
    Escape character is '^]'.
    220 ESMTP Sendmail ?version-number?;
    You : Helo
    Server : 250 mail.domain.ext
    You : mail from
    Server : 250 ok
    You : rcpt to:
    Server : 250 ok

    To start composing the message issue the command data
    You: data
    You : Subject:-type subject here-
    then press enter twice
    You may now proceed to type the body of your message
    To tell the mail server that you have completed the message enter a single "." on a line on it's own.
    Server : 250 ok ???????? Message accepted for delivery
    You can close the connection by issuing the QUIT command.
    You : QUIT

    Wednesday, October 04, 2006

    Dilbert & Linux

    Dilbert_linux1

    Dilbert_linux2


    Also Check : Dilbert & IITs

    Java JRE/JDK installation

    To verify that the installation was successful, execute

    java -version

    The output should look something like this if everything is well

    java version "1.5.0_05"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)
    Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed mode)

    If the version does not match what you just installed then you might have JRE/JDK installed previously

    Multiple JRE/JDK installed

    If you have multiple JRE or JDK installed (e.g. 1.5.0 and 1.4.2) and want/need to switch between them, you can use update-alternatives to do so.

    Example: Choosing which java executable to use:

    update-alternatives --config java

    Example: Choosing which javac executable to use:

    update-alternatives --config javac

    And so on in that fashion for the remaining executables related to Java. You can look in /etc/alternatives to see what one can configure with update-alternatives.
    Links : Download

    Linux Network Basic

    Display all the interfaces you have on your server:
    ifconfig

    Display all interfaces as well as inactive interfaces you may have:
    ifconfig -a

    Assign the eth0 interface the IP-address 192.168.1.100 with netmask 255.255.255.0:
    ifconfig eth0 192.168.1.100 netmask 255.255.255.0

    Assign the default gateway for eth0 to 192.168.1.1 (for example your router):
    route add default gw 192.168.1.1 eth0

    Verify that you can reach your router (192.168.1.1):
    ping 192.168.1.1

    Display the routing information with the command route to see if routing entry is correct:
    route -n

    Check the status of the interfaces quickly:
    netstat -i

    Show all active connections:
    netstat

    Show all active TCP connections:
    netstat -t

    DNS lookups (3 different ways) and displays the answers that are returned from the name server (To troubleshoot DNS problems):
    dig ubuntulinux.org
    nslookup ubuntulinux.org
    host ubuntulinux.org

    Determine the network route from your computer to some other computer:
    traceroute www.ubuntulinux.org

    View your ARP (used by a networked machine to resolve the hardware location/address of another machine on the same local network) Cache:
    arp

    Remove any entry from the ARP cache for the specified host (for example 192.168.1.103):
    arp -d 192.168.1.103

    Check traffic in network :
    tcpdump -n arp

    Send out unsolicited ARP messages so as to update remote arp caches (for example 192.168.1.103):
    arping 192.168.1.103

    Shutdown a specific interface (for example eth0):
    ifconfig eth0 down

    Activate a specific interfrace (for example eth0):
    ifconfig eth0 up

    Stop all network devices manually on your system (Debian specific):
    /etc/init.d/networking stop

    Start all network devices manually on your system (Debian specific):
    /etc/init.d/networking start

    Restart all network devices manually on your system (Debian specific):
    /etc/init.d/networking restart

    Networking configuration is stored in the following file:
    /etc/network/interfaces

    Resource:
    Ubuntu Linux Blog by Ralph
    http://www.linuxhelp.net/guides/networkbasics/

    Monday, September 25, 2006

    Enabling and disabling services during start up in GNU/Linux

    In any Linux distribution, some services are enabled to start at boot up by default. For example, on my machine, I have pcmcia, cron daemon, postfix mail transport agent ... just to name a few, which start during boot up. Usually, it is prudent to disable all services that are not needed as they are potential security risks and also they unnecessarily waste hardware resources.

    The start-up scripts are stored in the '/etc/init.d/' directory. So if you want to say, enable apache webserver in different run levels, then you should have a script related to the apache webserver in the /etc/init.d/ directory. It is usually created at the time of installing the software.
    This article describes how can we enable or disable different services during boot in different kind of distros like Redhat, Debian, Gentoo
    Read More >>

    Thursday, September 21, 2006

    Repair a Corrupt MBR and boot into Linux

    There are times when you inadvertently overwrite your Master Boot Record. The end result being that you are unable to boot into Linux. This is especially true when you are dual booting between windows and Linux OSes.
    This is what you do to restore the GRUB boot loader when faced with the above problem. First you need aLinux distribution CD. If you are using Fedora (RedHat) then the first CD is sufficient. But you may also use any of the live CDs like Knoppix, Ubuntu Live CD and so on.
    Read More >>

    Monday, September 04, 2006

    Sunday, August 27, 2006

    Kerala (Indian State) to go 100% Linux

    After the cola ban it is now the turn of Microsoft to log out of Kerala. Children in 12500 high schools in the state will not be taught Windows. Instead instructors are lining up Linux for them. Kerala has 99.9% Literacy.


    read more | digg story

    Friday, August 18, 2006

    Why doesn't Linux need defragmenting?

    An article that explains simply why Linux users don't regularly defrag their filesystems. It compares how a harddisk patition one with FAT and one with linux behaves on file creation and appending to file. How does fragmentation increases in FAT..
    Read More >>

    Saturday, July 22, 2006

    India's biggest life insurer opts for Linux

    All of LIC's 2,048 branches, 100 divisional offices, seven zonal offices, head office and subsidiary offices will be covered by the deployment. Along with this all of LIC�s desktops will also simultaneously be converted to Linux. Approximately 60,000 users and five to six thousand servers will migrate to RHEL.

    read more | digg story

    Tuesday, July 11, 2006

    Searching with find

    The find command is one of the darkest and least understood areas of Linux, but it is also one of the most powerful. The biggest problem with find is that it has more options than most people can remember -- it truly is capable of doing most things you could want.

    The most basic usage is this:

    find -name "*.txt"

    That query searches the current directory and all subdirectories for files that end in .txt.

    Source : Linux.com

    Read more >>

    Thursday, June 01, 2006

    Vim tips: Using viewports

    A really useful feature in Vim is the ability to split the viewable area between one or more files, or just to split the window to view two bits of the same file more easily. The Vim documentation refers to this as a viewport or window, interchangeably.
    You may already be familiar with this feature if you've ever used Vim's help feature by using :help topic or pressing the F1 key. When you enter help, Vim splits the viewport and opens the help documentation in the top viewport, leaving your document open in the bottom viewport.
    Read More

    Article By: Joe 'Zonker' Brockmeier
    Also Emacs Tips : Buffer & windows

    Sunday, May 28, 2006

    vi survival guide

    A comprehensive guide to a famous text editor "vi", written in vi itself.

    read more | digg story