Saturday, April 06, 2013

Linux Mint issue at startup - Waiting for network configuration


Try the below two probable solutions on Linux Mint/Ubuntu if you see the status below during startup:
Waiting for network configuration...
Waiting up to 60 more seconds for network configuration...
Solution 1:
Comment out the line "auto wlan0" in /etc/network/interfaces.
Solution 2:
If the problem persists (99% it won't), try the solution below (caution - hope you are slightly comfortable with working in the command line!!).
You need to
(i) create directories /run and /run/lock,
(ii) move contents of /var/run into /run and /var/lock into /run/lock,
(iii) delete directories /var/run and /var/lock
(iv) create replacement symlinks; e.g. 'ln -s /run /var/run' and 'ln -s /run/lock /var/lock'


Attempt to move all the contents of the folders with commands like:
mkdir /run
mv /var/run/* /run]
etc.
If there is anything in these folders you cannot move or delete, it's possible it is a special mount point file. If rm fails, try umount -fl then attempt rm again. After you move all of the contents, create the symlinks, reboot, and you should be okay.


Check out this excellent blog on the issue: http://www.joshua14.homelinux.org/blog/?p=1029

Haven't tried one more solution - Solution 3 - that one of my friends suggested : editing the /etc/init/failsafe.conf file

Monday, December 31, 2012

7 Secrets to live - Deepak Chopra

7 Secrets to Grow Younger, Live Longer–By Deepak Chopra

Only a few decades ago, conventional medicine viewed the body as a machine whose parts would inevitably break down until it could no longer be repaired. As a medical student, I learned that random chemical reactions determined everything that happened in the body, the mind and body were separate and independent from each other, and genes largely determined our health and lifespan.

Today scientific research is arriving at a radically different understanding: While the body appears to be material, it is really a field of energy and intelligence that is inextricably connected to the mind. We now know that what used to be considered the “normal” experience of aging – a progressive descent into physical and mental incapacity – is in large part a conditioned response. The mind influences every cell in the body and therefore human aging is fluid and changeable. It can speed up, slow down, and even reverse itself.
There are many studies demonstrating the profound influence of the mind and beliefs on aging. For example, a landmark study by Harvard psychologist Ellen Langer, Ph.D., showed that the so-called irreversible signs of aging, including deterioration in hearing, vision, manual dexterity, muscle strength, and memory, could be reversed through psychological shifts in awareness and increases in physical and mental activity.
Even though we all have genetic predispositions, our health and aging aren’t predetermined. By making conscious choices in our behavior and where we focus our attention, we can transform our experience of our body to decrease our biological age.
The seven steps outlined below are practical ways to tap into your inner reservoir of unlimited energy, creativity, vitality, and love.
1. Change Your Perceptions of Your Body and Aging
Perception is a selective act of attention and interpretation. What you experience as “reality,” including your physical body and aging, is shaped by your habits of perception. While most people are conditioned to see the body as a static, biological machine, you can begin to view it as a field of energy, transformation, and intelligence that is constantly renewing itself.
Begin to notice both your internal dialogue and how you speak about your body and aging. If you find yourself saying things like, “I’m hitting the age where I’ll need reading glasses,” “I’m too old to try yoga (or some other activity),” “I inherited my dad’s bad back,” or other such statements, make a conscious choice to shift your perspective and what you tell yourself about your body and age.
Keep in mind that your cells are eavesdropping on what you say, so unless you want to have your father’s bad back or anything else that “runs in the family,” don’t nurture that seed of intention in your awareness.
A powerful affirmation you can use is Every day in every way, I am increasing my mental and physical capacity.

2. Stress Reduction and Meditation
Meditation is a simple yet powerful tool that takes us to a state of profound relaxation that dissolves fatigue and the accumulated stress that accelerates the aging process. During meditation, our breathing slows, our blood pressure and heart rate decrease, and stress hormone levels fall. By its very nature, meditation calms the mind, and when the mind is in a state of restful awareness, the body relaxes too.
Research shows that people who meditate regularly develop less hypertension, heart disease, anxiety, and other stress-related illnesses that speed up aging. Furthermore, new studies are finding that meditation literally restores the brain. A recent groundbreaking study conducted by Massachusetts General Hospital has made headlines by showing that as little as eight weeks of meditation not only helped people feel calmer but also produced changes in various areas of the brain, including growth in the areas associated with memory, empathy, sense of self, and stress regulation.
This study adds to the expanding body of research about the brain’s amazing plasticity and capacity to grow and change at any stage of life. We can nurture our brain’s power and maintain a youthful mind by developing a regular meditation practice.
Getting Started with Meditation
I usually recommend that people learn a traditional meditation practice from a qualified instructor. That way, you know exactly what to do at any point in meditation and with any experience that comes along. Often when people try to learn on their own or from a book, they learn incorrectly and soon give up in frustration because they aren’t experiencing the expected benefits. For those who are interested, the Chopra Center offers instruction in Primordial Sound Meditation, a natural, easy practice that dates back thousands of years to India’s Vedic tradition. You can look for a certified teacher in your area here. Another way to get started with meditation is by participating in the Center’s 21-Day Meditation Challenge.

3. Restful Sleep
Getting regular restful sleep is an essential key to staying healthy and vital, yet it is so often neglected or under emphasized. There is even a tendency for people to boast about how little sleep they can get by on. In reality, a lack of restful sleep disrupts the body’s innate balance, weakens our immune system, and speeds up the aging process.
Human beings generally need between six and eight hours of restful sleep each night. Restful sleep means that you’re not using pharmaceuticals or alcohol to get to sleep but that you’re drifting off easily once you turn off the light and are sleeping soundly through the night. If you feel energetic and vibrant when you wake up, you had a night of restful sleep. If you feel tired and unenthusiastic, you haven’t had restful sleep.
You can get the highest quality sleep by keeping your sleep cycles in tune with the rhythms of the universe, known as circadian rhythms. This means going to bed by about 10 p.m. and waking at 6 a.m.
Ideally, eat only a light meal in the evening, before 7:30 if possible, so that your sleep isn’t hampered by the digestive processes. You can go for a leisurely walk after dinner and then be in bed by 10 p.m.
It’s also very helpful to download your thoughts from the day in a journal before going to bed so that your mind doesn’t keep you awake.
4. Nurture Your Body with Healthy Food
There are “dead” foods that accelerate aging and entropy and others that renew and revitalize the body. Foods to eliminate or minimize include items that are canned, frozen, microwaved, or highly processed. Focus on eating a variety of fresh and freshly prepared food.
A simple way to make sure that you are getting a balanced diet is to include the six tastes (sweet, salty, sour, pungent, bitter, and astringent) in each meal. The typical American diet tends to be dominated by the sweet, sour, and salty tastes (the main flavors of a hamburger). We do need these tastes, but they can lower metabolism, especially if eaten in excess.
The pungent, bitter, and astringent tastes, on the other hand, are anti-inflammatory and increase metabolism. These tastes are found in food such as radishes, ginger, mustard, peppers, spinach, mushrooms, tea, lentils, lettuce, and so on.
Along with the six tastes, filling your plate with the colors of the rainbow   promotes a long and healthy life. We can literally ingest the information of the universe into our biology. Foods that are deep blue, purple, red, green, or orange are leaders in antioxidants and contain many nutrients that boost immunity and enhance health.
Examples of foods of the rainbow:
• Red: Red tomatoes (particularly cooked), red peppers, red/pink grapefruit, watermelon, red grapes, beets, red cabbage, apples, strawberries, cherries, raspberries,   cranberries
• Orange/yellow: Squash, carrots, sweet potatoes, yams, pumpkin, cantaloupe, mangoes, oranges, papaya, nectarines
• Green: Broccoli, kale, spinach, cabbage, peas, avocado, collard greens
• Deep blue/purple: Plums, blueberries, black raspberries, blackberries, purple grapes, eggplant (with skin)

5. Exercise
One of the most important ways to grow younger and live longer is regular exercise. Drs. William Evans and Irwin Rosenberg from Tufts University have documented the powerful effect of exercise on many of the biomarkers of aging, including muscle mass, strength, aerobic capacity, bone density, and cholesterol. Not only does exercise keep the body young, but it also keeps the mind vital and promotes emotional well-being. In his recent book Spark: The Revolutionary New Science of Exercise and the Brain, Harvard University professor John Ratey, M.D. describes research showing how “physical activity sparks biological changes that encourage brain cells to bind to one another.” This spark, as he calls it, increases the brain’s ability to learn, adapt, and perform other cognitive tasks.
A complete fitness program includes exercises to develop flexibility, cardiovascular conditioning, and strength training. Find an aerobic activity that you can do regularly – three to four sessions each week for twenty to thirty minutes is usually enough to give you substantial benefits. After your body is warmed up, spend five to ten minutes stretching. You will also want to include strength training in your program to systematically exercise the major muscle groups of your body.
The important thing is to start off slowly, find physical activities you enjoy, and do them regularly. If the most you can do right now is walk around the block, do that, and you will be surprised how quickly you increase your endurance and enthusiasm for moving and breathing.
6. Love and Friendship
Isolation and loneliness create the conditions for rapid aging. Heart attack and death rates are known to increase among the recently widowed and among men who have been suddenly terminated from their jobs without warning and against their will. The emotional value of social bonding is immense, yet in some countries, including the U.S., we have moved in the opposite direction for decades. With high divorce rates, single-parent families, and a population constantly on the move, social bonding keeps declining. The trend will be exacerbated as the fastest-growing population, those eighty and over, move into retirement homes. It’s becoming increasingly rare for older people to be cared for at home, and there is still a stigma about seniors being a burden to the young and a drag on society.
The key here is to stay connected and open to new relationships throughout your life. Resist the impulse to go quietly into semi-isolation because you assume that society expects that of you. Losing friends and spouses is an inevitable part of aging, and many people can’t find replacements or lack the motivation to. By “replacement,” I don't mean a new spouse and family (though that is certainly a possibility), but emotional bonds that mean something to you and offer continued meaning to your existence. No amount of reading and television substitutes for human contact that nourishes on the level of love and caring. One of the most effective steps is for older people to become involved with mentoring programs, education, and youth programs.

7. Maintain a Youthful Mind
An ancient Vedic aphorism says, “Infinite flexibility is the secret to immortality.” When we cultivate flexibility in or consciousness, we renew ourselves in every moment and reverse the aging process. Children offer the finest expressions of openness and flexibility. They play and laugh freely, and find wonder in the smallest things. They are infinitely creative because they haven’t yet built up the layers of conditioning that create limitations and restrictions.
To maintain a youthful mind, write down two or three things you can do that are totally childlike. Think of something that evokes childhood for you – eating an ice cream cone, going to a playground to swing, coloring a picture, jumping rope, building a sand castle. Find something that brings back the sense of fun you had as a child, even if you think you’ve outgrown it, and choose one of these activities to do today.
As you carry out your childlike activity, let yourself embody the archetypal carefree and innocent child. The feeling you’re aiming for isn’t a return to childhood, but something more profound, as expressed by the brilliant therapist A.H. Almaas: “When we look at a child, we see that the sense of fullness, of intrinsic aliveness, of joy in being, is not the result of something else. There is value in just being oneself; it is not because of something one does or doesn’t do. It is there in the beginning, when we were children but slowly it gets lost.” By re-experiencing our childlike nature, we not only cultivate a youthful mind, but we also connect to the part of us that is never born and never dies – our eternal spiritual essence.

Sunday, November 25, 2012

Why Windows is not ready for the desktop

An excellent blog on the Windows - Linux comparison : Check it out here - http://grep.be/blog/en/computer/ui/windows_desktop

As the author says in his followup blog - "First of all, I should note that the list which I posted was only semi-serious (with tongue in cheek); the fact that it refers to Windows as the operating system which "attempts to replace Linux as the major operating system" should have been a pretty big clue to that effect"

Do read the comments on the blog - quite fair rebuts in the comments. Check them out.

Also read the some-what 'against Linux Desktop' article at http://linuxfonts.narod.ru/why.linux.is.not.ready.for.the.desktop.current.html

Reproduced below from the blog (do read the followup too!!) :-  [NB: The blog has been reproduced below as some blogs tend to disappear sometimes. So this is for keeps!]

==========Extract from the BLOG================

Why Windows is not ready for general usage

There's this new Windows thing that people keep talking about, and which attempts to replace Linux as the major operating system. I've given it a look, but there's a wide range of problems with using it:
  • When you buy some hardware for your Windows machine, it hardly ever works out of the box: you first have to fiddle with some CD-ROM or manually (as opposed to through your software manager) download something from the Internet, or any number of other things (and in some cases even all of the above), before it'll even do anything useful. This is even true for keyboards and mice: the first time you plug in a USB keyboard to a Windows machine, it'll take about 30 seconds before they will work. It's much easier to have drivers for everything shipped with the operating system, so that things become really plug-and-play.
  • According to Microsoft, faulty hardware drivers are the main cause for Windows crashes. It would be better if Microsoft were to develop all (or almost all) hardware drivers for Windows themselves, like the Linux kernel people do; by doing this, the quality assurance for the drivers could be guaranteed as is the case for Linux drivers, and Windows users would have much a more stable system.
  • There is no public bug tracking system for Windows. What this means is that if you've got a problem with Windows that you'd like the developers to take a look at, you're out of luck.
  • Many Windows programs and drivers come with an "updater" which every so often checks online for newer versions of the software. While this is something Linux distributions also do, in Linux distributions this is done through a central updater; in contrast, Windows applications all have their own updater. The result is a situation where you have something like 5 to 10 updaters running in the background, eating memory and other resources, and slowing your system down.
  • Every major update of Windows since Windows 2000 has seen a complete overhaul of the user interface. As a result, everything you've learned goes out the door, and you have to relearn how to use the system all over again. This is about things like "where in the control panel is " or "what does my desktop look like"
  • Windows does not support focus-follows-mouse without manually calculating bit masks in a registry key.
  • Windows does not support virtual desktops without extra software.
  • If you don't like the Windows interface, it's almost impossible to swap it out entirely for something else, like you can switch from Gnome to KDE and back under Linux. Different people have different preferences, so should be able to swap the user interface for something that better suits them. This is child's play under Linux, and impossible under Windows.
  • While much of the Windows interface can be controlled without the use of a mouse, parts of it cannot be. If you're doing the same tasks every day, then using the mouse will slow you down; a keyboard is so much faster. Under Linux, it's perfectly possible to use the system without the use of a mouse, and without losing any functionality (except if you want to play games, but this list is about Desktop usage, not about game console stuff)
  • It is impossible to try out the new Windows without investing large amounts of money into a recent computer. In contrast, this blog post is being typed on a 7-year-old Macintosh PowerBook running a recent version of Linux.
  • It is very difficult to use a single Windows application (i.e., not an entire desktop) over the network. In Linux, you can just use SSH to log in to a server and start the GUI administration console there, but run your desktop environment (and whatever else) on your local machine. Windows doesn't have that, so you need to add large amounts of memory to Windows servers just so they can run a full (unneeded) desktop just so that you can maintain them.
  • Windows doesn't have mandatory access control subsystems like SELinux or AppArmor. What this means is that anyone who knows of a bug in a part of the system that runs with administrator or system privileges, has the ability to take over your entire system. With mandatory access control, this isn't possible. There is "Mandatory Integrity Control", but it uses a simplistic level-based system, and is only supported on the desktop; so on servers, where it would be most needed, this isn't available.
  • Windows cooperates very badly with other operating systems. If your company has a hybrid environment, you'll always need to special-case the Windows systems in the environment for one reason or another. What this means is that if you're the first user in your company to use this Windows, you'll probably not get much work done.
  • The new Windows only runs on the x86 processor family. If you have invested in, say, a mainframe, or in a rack full of PowerPC or MIPS processors, you're out of luck and had better stuck with Linux instead.
  • Windows has bad backwards compatibility. When I have this old Linux application that I still need to run for one reason or another and which doesn't run on a recent Linux installation (which is very rare in and of itself), I can install an older version of Linux in a chroot without having to run a full emulated machine, and the older application can then run in that chroot. Windows has a "compatibility mode" for older applications, but it doesn't work in all cases; when it doesn't, you would need to run a full virtual machine in which you run the older Windows just so you can run the older application. That's just a terrible waste of resources. It's also not possible to do this without installing extra sofware.
  • The standard Windows installation doesn't contain a lot of software. there is a basic word processor, but it doesn't have many features. There are almost no games, other than a few boring card games. There is a graphics editing program, but its feature set is fairly limited.
  • Unbelievably, you need to pay for most Windows software. This is just strange; you can do many useful things on a Linux system without ever having to pay anything for off-the-shelf software. While some of the tried and true Linux software that we all know is now also available for Windows, if you want to use, e.g., Microsoft's productivity suite, you'll have to pay for it.
  • Speaking of that productivity suite: there's a well-designed and widely accepted open standard, called ODF, describing the file formats that productivity suites should use. Yet, Microsoft chose to design their own; their description of this file format encompasses more than 5000 pages, and is in general fairly badly documented. What this means is that once you start using Microsoft's productivity suite, you'll have a very hard time moving away from it again. I recommend against ever starting to use it in the first place
  • And last but not least, Windows doesn't come with the source code. What this means is that you can't just look at the code and learn how things are done, or develop your own extensions, or audit the code for bugs, or any of a number of other things that you'd want to do with a regular operating system. Instead, you'll have to trust that Microsoft did the right thing, and beg, hope, and pray that they'll fix your bugs if you ever need to. I'm not sure what the hell they were thinking when they decided that.
In short, while this Windows thing has some promise, the above list shows that there's clearly still quite some work to be done before anyone can even think about starting to use it seriously. Hopefully the Windows developers will understand that and work on the above list of serious issues; otherwise, I'm afraid Windows will not be used by many people.
==========End of extract from the BLOG================