Something is Technically Wrong, Twitter Said

Monday, February 22, 2010

I am just surprised, twitter is saying this when I tried to access:

Something is Technically Wrong
Thanks for noticing - We're going to fix it and have things back to normal soon.

This happened several times today, I hope twitter will get back to normal soon.

Read more...

How to Mount Flash Drive on Linux Machine

Saturday, January 30, 2010

Flash drive or flashdisk is so much needed in the present conditions for it is easy to use, portable, and its price is so affordable. But if you want to use it in linux machine, you may find it difficult to mount flashdisk onto a linux machine.

For the new linux user, it is very difficult to mount the flash disk onto the machine. But here I will tell you step by step how to mount flash disk on linux machine.

1. Show the file begin with SDA
#dmesg | grep sda

2. Once you found the device, create the mount point:
#mkdir /mnt/sda

3. Mount the flashdick device to the directory
# mount /dev/sda /mnt/sda

Read more...

SED, The Unix Stream Editor

Wednesday, August 5, 2009

SED (Stream Editor) is somehow different from commom text editors that allow you to alter a file by moving the cursor on the screen. SED is a non-interactive line editor, processing one line at a time. By applying editing command on line-by-line basis, Unix SED commands will never load an entire file into memory.

SED is mostly used to perform text pattern search and replace in files. However, SED can also be used to append, display, insert, and delete text.

Thanks and Credit to Alicia and anakblog.

Read more...

Red Hat IP Address Configuration StartUp

If you want to configure IP address and network settings on your Linux Red Hat machines, you can do it by modifying the network configuration start up scripts. The Linux Red Hat machine will read this configuration script during start up process, so any change on this script will take effect every time you start your Red Hat.

Start Up Script File Location: /etc/sysconfig/network-scripts/ifcfg-eth0

TYPE=Ethernet
DEVICE=eth0
BOOTPROTO=none
NETMASK=255.255.255.0
IPADDR=192.168.19.129

USERCTL=no
IPV6INIT=no
PEERDNS=yes
HWADDR=00:0c:29:1d:83:f0
ONBOOT=yes
GATEWAY=192.168.19.1
[root@storm ~]#


You need to specify:

  • IPADDR

  • NETMASK

  • GATEWAY


That's all. Thanks and Credit to melinda for the tips.

Read more...

PuTTy Fatal Error

Wednesday, July 15, 2009

These days I have a problem accessing my linux machine with putty.

PuTTy Fatal Error
Network Error: Software caused connection abort.

Could you suggest a solution?

Read more...

One of the disks in this virtual machine is already in use by a virtual machine

Wednesday, June 24, 2009

If you are running VMWare virtualisation machine, you may sometimes receive this message while starting up your VMWare Machine.
"One of the disks in this virtual machine is already in use by a virtual machine or by a snapshot".

This error message will halt your VMWare so it won't continue the booting process.

But do not worry about this since it is a common problem. This Usually happened if the the machine was not shut down properly, for example you might have shut down your host OS while VMWare machine is still running on it.

The solution for this problem is quite easy. Simply check into your VMWare machine folder, find out a file/folder with .lck extension. Remove the whole folder/directory and start your VMWare.

Good luck.

Read more...

Advantages and disadvantages of Shell Scripting

Wednesday, June 10, 2009

This article is about the Advantages and disadvantages of Linux/Unix Shell Scripting.

Often, writing a shell script is much quicker than writing the equivalent code in other programming languages. The many advantages include easy program or file selection, quick start, and interactive debugging. A shell script can be used to provide a sequencing and decision-making linkage around existing programs, and for moderately-sized scripts the absence of a compilation step is an advantage. Interpretive running makes it easy to write debugging code into a script and rerun it to detect and fix bugs. Non-expert users can use scripting to tailor the behavior of programs, and shell scripting provides some limited scope for multiprocessing.

On the other hand, shell scripting is prone to costly errors. Inadvertent typing errors such as rm -rf * / (instead of the intended rm -rf */) are folklore in the Unix community; a single extra space converts the command from one that deletes everything in the sub-directories to one which deletes everything - and also tries to delete everything on the root partition. Similar problems can transform cp and mv into dangerous weapons, and misuse of the > redirect can delete the contents of a file. This is made more problematic by the fact that many UNIX commands differ in name by only one letter: cp, cn, cd.

Another significant disadvantage is the slow execution speed and the need to launch a new process for almost every shell command executed. When a script's job can be accomplished by setting up a pipeline in which efficient filter commands perform most of the work, the slowdown is mitigated, but a complex script is typically several orders of magnitude slower than a conventional compiled program that performs an equivalent task.

There are also compatibility problems between different platforms. Larry Wall, creator of Perl, famously wrote that "It is easier to port a shell than a shell script."

Similarly, more complex scripts can run into the limitations of the shell scripting language itself; the limits make it difficult to write quality code and extensions by various shells to ameliorate problems with the original shell language can make problems worse.

Many disadvantages of using some script languages are caused by design flaws within the language syntax or implementation, and are not necessarily imposed by the use of a text-based command line; there are a number of shells which use other shell programming languages or even full-fledged languages like Scsh (which uses Scheme).



"Shell script." Wikipedia, The Free Encyclopedia. 24 May 2009, 21:55 UTC. 24 May 2009 <http://en.wikipedia.org/w/index.php?title=Shell_script&oldid=292098048>.

Read more...