Linux.com

Community Blogs



Crisis in Japan

This is not one my common linux blogs, however it is one that I feet people should be aware of.

We have heard of the disasters in Japan. The 9.0 earthquake and the Tsunami that flooded Japan's nuclear reactors causing massive blackouts and raising the radiation alert is of great awareness. Japan as of now is still struggling to recover from these disasters and it may take months before this situation is under control, if it can.

What is more critical, is Japan's inability to continue to produce computer chips for Apple products, computers and cars. Because Japan is the leader in semiconductor chip production, the world wide supply of computer chips has slowed down dramatically. Only a few factories are operational but at limited production capability. There is no telling when the others will be fully operational. Some of the factories has been damaged so bad that they may never come back online.

Also facilities that produce hydrogen peroxide that allows the product of silicon wafers to build computer chips have suffered greatly. Any new computer devices in current production has stopped which will mean, we will not see much of any new technology products for a while.

http://www.computerworld.com/s/article/9215432/Japan_disaster_puts_historic_hurt_on_chip_industry?source=CTWNLE_nlt_pm_2011-04-01

What really concerns me, is what indication these disasters have? We have been told the world will end in 2012 according to Nostradamus. I don't believe in people claiming to predict the end of any race, yet I'm starting to wonder if these things are part of a serious pattern. Perhaps we lost our way and we need a wake-up call. If we are to survive for several more generations, maybe its time to re-evaluate how we view human priority.

One country should not be solely in-charge of an essential production material. All countries should at least have distributed assistance in something that has world demand. We all use it, we all should help build it.

Please send your prayers out to the victims in Japan.  

 

An Introduction to the Linux Shell

She sells seashells by the seashore. Well, yes... that may be true, but that's not the type of shell we're going to talk about here today.

I'm going to talk a bit about the Linux shell. What is the Linux shell? What does it do? How can I interact with it on my GNU/Linux operating system? Those are all good questions. While today's most popular distributions of GNU/Linux are morphing into operating systems that are more and more graphic user interface oriented, the real power of Linux still resides in the command line.

When you boot up your Ubuntu or Mandriva GNU/Linux operating systems, most of you see a graphical login screen. Others, like myself, might see a non-graphic command line login. Both do basically the same thing. They log the user into the Linux shell so that he may begin to utilize his system's potential to perform tasks. That's what we do with our computers, regardless of what the tasks happen to be... emailing pics to auntie Myrtle or hacking cloud and cluster security systems.

The Linux shell is the interface between you in that seat in front of your monitor and the operating system that controls the hardware in that box under the desk that does the actual stuff you want done. There are numerous shells in Linux; the most commonly used one is called BASH - Bourne Again Shell. You're in the shell anytime you're logged into your GNU/Linux operating system; whether you're interacting with it graphically or from the command line.

Graphic User Interfaces or GUIs are just "front ends" to applications that are running in the shell. I'll be talking mostly about the non-graphical command line interface here today, though. You can access your command line interface from within your GUI by using the graphic front end application for the command line provided by your desktop environment. For example, in Gnome, you could use Gnome Terminal; or in KDE, you could use Konsole. Either way, these are both just graphical front ends for the BASH shell command line.

When you first login, you'll get what's known as a prompt. It is just a blank line waiting for your input (commands). It'll look something like this:

joe@mysystem:~$

The first part, "joe", is just the user's login name. "@mysystem" is the name of the computer the user is logged into. The "~" character tells us that user Joe is working from his home directory. The "$" character is the standard character denoting a non-root, regular user.

Let's say Joe wants to list all the files in his home directory. All he has to do is type:

joe@mysystem:~$ ls

This command, known as "list", tells the shell that user Joe wants to see a list of all the contents of his home directory. The shell immediately responds after Joe hits the Return (Enter) key on his keyboard with this output:

Desktop  joe_archives  joe_common     joe_private
Dropbox  joe_backups   joe_downloads

It looks like Joe has five regular directories, a Dropbox directory, and the directory that contains his desktop icons. In reality, there are more directories and files in Joe's home directory, but they're what are known as "hidden" files. Their names are usually preceded by a .(period) to make them hidden. If joe wants to see all his directories and files he can list them this way:

joe@mysystem:~$ ls -a

The "-a" option means all. The list command will list all items in a directory when using the -a option. Joe's list now looks something like this:

.dropbox        .macromedia      .thunderbird
.ICEauthority           .esd_auth    .moz_icons      .viminfo
.PySolFC           .fontconfig    .mozilla      .wicd
.Xauthority           .gconf        .mozilla_3.x      .xchat2

The above directories are hidden by the preceding .(period), as mentioned above.

Let's say Joe want's to create a grocery list for his afternoon shopping chores. He can do this via the shell and command line also by using a command line editor such as vim. He would first do this by bring up the vim application in the command line interface:

joe@mysystem:~$ vim groceries

This command would initiate the vim application using a new file called "groceries". Vim or Vi-Improved, as it's known, is a non-graphical text editing application. It would look something like this to Joe:

lettuce

tomatoes

catfood

peanut butter

eggs

milk

bread

~

~

~

--INSERT--                                                 10,1          All

Once Joe had finished typing out his grocery list, he would save it using the vim command :wq, which would also close the vim application and bring Joe back to the command line prompt. He could also print his list from the command line like this:

joe@mysystem:~$ lpr groceries

The lpr command would tell the shell that Joe wants to output the contents of the groceries file to the printer. The printer would receive the data and the command to print from the computer's hardware and begin printing Joe's grocery list.

All of this we've talked about today doesn't even scratch the surface of the power at your finger tips when using the Linux shell. Your first step should be to read the Linux manual page for the BASH shell. There is some very useful information in that document. Stay tuned here... I'll come up with some other lessons in the future. Remember what I always say...

Learn something. It won't hurt you none. I promise.

Later...

~Eric

*A republish from my Nocturnal Slacker @ Lockergnome blog

 

 

 

Candy for your eyes and balm for your wrists

I've been reading some GNOME 3 design documents recently and while I'm trying to build some kind of analysis out of it, it's the end of the semester and I've put the project on hold. In the meantime, please enjoy these two utilities! [Edited with smaller images]

The candy

It's not quite a program, but it's very useful if you spend most of your days in front of a computer screen. It's the Terminus font. It is, according to the project page, "designed for long (8+ hours per day) work with computers". I believe them. It is now my favorite monospace font and I use it wherever I need monospace fonts: consoles, code editors... name it! Here are a couple of screenshots:

The Terminus font in a console

The Terminus font in a source code editor

The balm

Have you ever worked with a HP calculator? If so, then you are probably familiar the Reverse Polish notation. It is a way of entering mathematical equations that, in most cases, makes parentheses obsolete (making equations faster to input with less keystrokes). It is a bit weird to work with in the beginning, but when you get used to it, there's no going back. I've been looking for a RPN-capable calculator for some time and I found galculator. It's simple and fast - probably not as comprehensive as your 200$ graphic calculator, but it sure gets the job done! Here's a screenshot:

galculator

I hope you enjoy these two tools - they may not be as "life-changing" as desktop environments, but they sure make it easier!

 

Accessing Windows share Through Linux Samba service (Command line, not Nautilus) --RHEL6 from

Hi,

If you have shared a directory on the windows the same you can access on linux in just a few steps.

1.  First List the share on windows on your Linux machine

  #smbclient -L hostip -U win user name -W workgroup name

    hostip -- ip of windows machine on which the shared directory lies

    workgroup name -- name of the workgroup e.g  abc.com

2. now make a directory on your linux machine, this is basically your mount point

 

3. write the following entry in you /etc/fstab

hostip:/name of shared dir  mountpoint cifs  user= win user name,password=windows password 0 0

all the entries are separated by space or tab for more info read man fstab

mountpoint is the path of the dir you created in step 2 above

4. run mount -a

5 go to the dir created in step 2.

 

There you will get your  windows shared material 

enjoy ||||||||||||||||||||>>>>>>>>>..

Harkamal

 

Virtual Personal Email Servers: the email part of Eben Moglen's Freedom Box?

Last year I wrote a few blog posts about Virtual Personal Email Server, packages and services built entirely with already existing Free Software, that may very well be packaged in Moglen's Freedom Box: here are those posts, feedback is welcome!

 

How to reject spam from certain countries

Every now and then, a question like this pops up on some email server management forum:

I’d like to be able to reject connections from remote IP addresses if they’re from certain countries.

I have reformatted some tips on how to do this on this page. Feedback is very welcome.

 

Accessing Windows Partitions from RHEL 6

All, Buddys

who are getting problems in accessing the windows  partitions who have recently

migrated to the RHEL 6 Desktop(basic)  They can download the RPM NTFS-3g from the 

below mentioned  web site and install it on their RHEL 6. after that they would be able to acces the windows partition

RPM package is

fuse-ntfs-3g-2010.10.2-1.el6.rf.x86_64.rpm

URL is http://pkgs.org/package/ntfs-3g

Enjoy and cheers :::::::::::;))))))))))))))))

Regds.

Harkamal

 

Review: Linux E-Mail, set up, maintain, and secure a small office e-mail server

There are a few repetitions here and there, but that’s a minor issue. With one exception, everything that readers starting as email administrators with “Linux E-Mail” will need is in this book. Here is my full review.

 

How to post content to a WordPress blog from the command line

Wordpress is a great publishing system, but managing it manually can be a very time consuming process. This is especially true when you want to upload lots of posts, or if you would like to write content in your preferred, full-blown text editor and then have it “magically” appear online. Eventually, I wrote a script around the WordPress-CLI utility and have already used it successfully to upload hundreds of posts to several of my WordPress websites

 

How to create stacked area graphs with Gnuplot

If you tell gnuplot to plot those numbers as simple lines they'll continuously overlap, making hard to see quickly which is higher in each moment, or how they all add up. I find that stacked filled graphs like the one here are much easier to understand, but I couldn't find how to do them with Gnuplot. Until now that is. I have put the Gnuplot command and auxiliary script to plot diagrams like this here.

Here is the type of diagrams you can plot with the scripts mentioned here

 

Of Citizenship and Software, interview about a new online course

Richard Poynder just interviewed me about my next online course on Digital Citizens, that touches Free Software and lots of other things. Here's an excerpt:

Question: So would it be accurate to call this a digital citizen course based on the ethical precepts and beliefs of the Free Software Movement?

Answer: Certainly the course will run on Free Software... But it would not be accurate to say that it is based on the ethical precepts and beliefs of the Free Software Movement, for several reasons. While I appreciate the FSF "precepts and beliefs", for instance, I feel less strongly than they do, or differently, about software freedom. For me the first software freedom is the freedom to ignore what software others use - even if they are using proprietary software. 

The full interview is online at Open and Shut.

 
Page 8 of 116

Upcoming Training Courses

  1. LF331 Developing Linux Device Drivers
    03 Jun » 07 Jun - Virtual
    Details
  2. LF411 Embedded Linux Development
    24 Jun » 28 Jun - Silicon Valley
    Details
  3. LF422 High Availability Linux Architecture
    15 Jul » 18 Jul - New York
    Details

View All Upcoming Courses


Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board