Handy Tips To Be More Productive Using GIMP

GIMP logo
GIMP - also known as the GNU Image Manipulation Program - is well known as an excellent graphics editor. Many people even consider it as useful as Adobe Photoshop for creating images for the web. I have been using GIMP for a long time now and have used it for such tasks as screen capturing, optimizing images, retouching photos, scaling images, special effects and so on. GIMP is available for multiple platforms including Windows, Linux, and Mac OS X. Why, GIMP is even available as a portable application  which allows you to run it directly from a USB pen drive.

The following are a few handy tips which will help you be more productive in GIMP.


Handy Tips for GIMP users

  1. Add the PSPI plugin - This plugin will allow you to install and use most Photoshop filters in GIMP.
  2. Install the Layer effects plug-in  - This plug-in will club filters such as drop shadow, color overlay, bevel and embross, inner shadow, inner glow and so on into one group thus easing your work.
  3. Install the Separate+ plug-in which will bring CMYK color separation in GIMP.
  4. Install the Liquid Rescale plug-in.
  5. Add additional brushes. GIMP already comes with a default set of brushes but you can download more variety from websites such as blendfu.com.
  6. Anchor the windows - There is an always on top option for GIMP dialog windows. Use them to your advantage.
  7. Install the GIMP Animation Package (GAP) - Helps you create animated GIFs, surrealistic landscapes and realistic water motion.
  8. Enable GEGL in GIMP. This feature is available only in GIMP 2.6 and above.
[Source: Smashing Magazine]

Damn Small Linux - DSL

Damn Small Linux - also known as DSL - is a fully functional Desktop oriented Linux distribution which fits in a business card sized (50 MB) CD.

How to run DSL


You can run DSL from the following.
  1. Bootable USB Pen Drives
  2. Business Card CD (>= 50 MB)
  3. Compact flash card
  4. Zip drive
  5. Installed on your Hard Disk
  6. Entirely in RAM (Memory).
  7. From within another operating system such as Windows through virtualization.

What can DSL be used for ?


DSL, even while small in size (50MB) has applications for all your computer needs. It works flawlessly on old computers with just 64 MB memory so can be installed on old machines. DSL is ideally suitable for use by people on the move to be run from USB pen drives and business card CDs. Damn Small Linux has applications for almost any task you may want to do on your computer.

DSL Screenshot


The following is a screenshot of DSL version 4.4.10.

Damn Small Linux

List of Applications in DSL


DSL, despite its small size is packed with a valuable set of applications suitable for your basic computer use. A few applications worth noting are as follows :
  • Firefox web browser
  • Ted word processor
  • Sylpheed email client
  • Beaver text editor
  • Siag spreadsheet
  • xpdf PDF viewer 
  • Monkey web server.
This is just a subset of the useful applications bundled with DSL.

Damn Small Linux - DSL Review


Read my DSL Review.

More About DSL


DSL Home Page - Click here.
Official DSL Forum - Click here.

50 Time Saving Tips For Ubuntu Users

Ubuntu
If you are an avid Ubuntu Linux user and wish to be more productive in using Ubuntu, these 50 time saving tips are for you. These 50 tips range right from doing mundane tasks to doing something spectacular all the while helping you save on time.

50 Time Saving Ubuntu Tips

The 50 time saving tips are divided into 5 separate sections for easy reference namely -
  1. System performance
  2. Default Gnome desktop
  3. The KDE desktop
  4. System wide tips, and
  5. The command line.
Read more @ techradar.com.

Clipboard Managers in Linux


A clipboard manager is a computer program that adds additional functionality to basic clipboard usage. The main tasks of a clipboard manager are as follows :
  1. To store data copied to the clipboard so that it can be pasted after closing the host application of the data copied.
  2. To store and retrieve multiple clips from the clip history available – any number of times.

This means you need to copy text or images only once and it will be available for pasting through out the duration of your computer use. Linux has a plethora of clipboard managers. But the one program which comes to my mind the most is the one available by default in all KDE installations namely Klipper.

The following is a list of clipboard managers which you can try out in Linux.
  • Glipper (for GNOME users)
  • Klipper (for KDE users)
  • Clipman (for XFCE users)
  • Parcellite
  • DDM
Penguin Inside has written an article explaining the pros and cons of the above mentioned clipboard managers which makes an interesting read. Using clipboard managers is one way of saving on repetitive tasks and thus improving your productivity in using computers.

How many Operating Systems can you name ?

Operating systems
The other day when I was trying out Haiku, I had a sudden brain wave. How many operating systems - old or otherwise can I really name? And how many of these have I actually used? To tell you honestly, I could name only a few including the ones I have used. Of course, I lumped all Linux distributions as one entity.

In fact, this is the list of operating systems I could name :

  • DOS (MSDOS, FreeDOS, PC DOS ...)
  • Linux (Fedora, OpenSuSE, Ubuntu, DSL, PCLinuxOS, ....)
  • Solaris (OpenSolaris, Belenix, Nexenta, ...)
  • BSD (FreeBSD, NetBSD,OpenBSD, PCBSD,...)
  • Apple MAC OS X (Tiger, Leopard, ...)
  • Microsoft Windows (Windows 3.1, Windows 95, Windows 98, Windows ME, Windows NT, Windows XP, Vista, Windows 7)
  • IBM OS/2, z/OS ...
  • Other Unix (Xenix)
  • Qnx
  • Haiku, BeOS
Over a period of time, I have written a couple of reviews of the ones I have used. So here is a question for you. How many operating systems can you really name? And out of those how many have you actually used (or tried out) ? Do you know of any really old operating systems apart from the ones mentioned in this list ?

Is Linux kernel getting bloated ? Linus Torvalds says Yes!

Linux kernel bloat
A lot of bloat is creeping into the Linux kernel. This was the startling revelation made by none other than Linus Torvalds - Founder of the Linux kernel. He said this in his talk at LinuxCon - an event that brings together Linux gurus and open source leaders to provide collaboration and education space for all matters on Linux.

The word bloat is historically associated with Microsoft Windows because each major updates in the form of Windows Service Packs installs 100s of MB data on your machine.

The term "bloat" can be defined as software that provides minimal functionality while requiring a disproportionate amount of diskspace and memory. It is especially used for application and OS upgrades.

This is what Linus Torvalds said when the question on performance drops in each release of the kernel was posed to him (and I quote) :
We’re getting bloated and huge. Yes, it’s a problem.
...
I’d like to say we have a plan.
...
Sometimes it’s a bit sad that we are definitely not the streamlined, small hyper efficient kernel I envisioned 15 years ago. The kernel is huge and bloated and our iCache footprint is scary. There’s no question about that, and whenever we add a new feature, it only gets worse.
So do you think each version of Linux kernel is really providing marginal new features, all the while increasing the size of the kernel ?

Haiku - A new Operating System inspired by BeOS

Haiku
Haiku is an open source operating system that specifically targets personal computing. It is inspired by  the now defunct BeOS and reimplements both the BeOS technologies as well as the end user experience.  Recently the Haiku team unveiled the first release candidate RC1 by releasing a liveCD of Haiku R1 Alpha1.

The Haiku R1 Alpha1 live CD ISO is only 380MB in size. Succumbing to curiosity, and because of its tiny size, I downloaded Haiku live CD and took it for a run. Simply put, I was really impressed with the user interface and the stability of the OS. I found the Haiku Desktop interface to be unique providing a radical approach to desktop computing.

Haiku live CD at present is more of a showcase and has little applications to be of any use to the lay person. However, it does bundle with it the Firefox web browser though. One thing which impressed me was the smoothness with which some of the demo OpenGL applications ran - even in a Virtual environment. Below are a few images of the Haiku operating system for your peruse.

Haiku

Haiku

Haiku at present works only on x86 systems and require a minimum of 128MB RAM. However, it also comes with a few handicaps namely - no wireless support yet, no package management yet, Haiku boot manager supports only a single hard disk, A few device drivers related to printing are missing ... and so on. But hey, that is why it is called Alpha. Read the full release notes to know more.

Haiku has a shell similar to the Bash shell and many of the commands are similar to the commands you use in Linux. For example, to know the version of the OS, open Haiku shell and type uname -a, Use ls command for listing directories and so on. And many open source tools have been ported to Haiku as well.

Check out the following video of the Haiku desktop to get a better feel of this promising new operating system based on BeOS.



You can download Haiku R1 Alpha1 live CD from its official website.

Assuming you have reached this far, I would like to pose a question to you. Suppose Haiku were to have more applications than Linux and if it were to meet all its goals of being a remarkable personal desktop OS, would you ditch Linux ? While answering this question, keep in mind that Haiku is as open source as Linux itself.

Screencast - Install OpenSolaris in VirtualBox

opensolaris
Installing OpenSolaris on your machine may require some gentle hand holding if you are a first time user of the operating system. More so if you are thinking of installing OpenSolaris in VirtualBox. But help is at hand. I came across an exceptionally done screencast which walks you through installing and configuring VirtualBox in Windows, and then installing OpenSolaris in VirtualBox.


The screencast is divided into 7 parts namely -
  • Introduction
  • Getting the software - OpenSolaris & VirtualBox
  • Installing VirtualBox
  • Creating a Virtual Machine
  • Starting OpenSolaris LiveCD in VirtualBox
  • Installing OpenSolaris
  • Guest Additions.
If you are wondering ... Installing Guest Additions will allow you to move your mouse pointer seamlessly between the host and the guest operating system.

At the end of the screencast, you get a link to another screencast which explain how to install additional packages in OpenSolaris the easy way.

Watch the full screencast.

This screencast could come in handy in installing any of the offshoots of OpenSolaris such as Belenix, Nexenta, and SchilliX.

Netcat, nc command

netcat
Netcat - also known as nc is considered the Swiss army knife of system administrators. In its most basic usage, netcat acts as a simple utility which reads and writes data across network connections, using TCP or UDP transport protocols. But this simple tool finds diverse uses for system administrators (Unix & Linux alike). Hence the name Swiss army knife.

Here is a tiny list of the things Netcat can accomplish -
  • Simultaneously act as a server at one end and a client at the other to seamlessly transfer files between remote machines.
  • Scan for open ports on the host machine or on a remote machine.
  • Setting up a chat server
  • Act as a web proxy
... just to name a few.

You will be amused to know that a few people have even broadcast the World Cup Soccer live in Ascii characters, which you can view using netcat command.

If you are looking for more uses of netcat, then you should check out the examples listed on the netcat Wikipedia page.

Netcat is available for Unix, Linux, Mac OS X, and Windows platform.

GNOME vs KDE - Income and Expenses


Being avid users of GNOME and/or KDE, have you ever wondered how much revenue these well known open source projects generate ? If popular perception is taken into account, GNOME should generate far more revenue, in-turn more profits, than KDE. But reality is somewhat different.

The following are some nuggets of information gleaned from the quarterly reports that give a birds eye view of the income and expenses of GNOME and KDE respectively.

  • For second quarter of 2009, GNOME's income is $102567.00 vs KDE's first quarter income of $111059.97. 
  • If you exclude Desktop summit fees (one time fees) of $65000 from GNOME's income above, it is found that KDE has twice the budget of GNOME in each quarter. 
  • GNOME has traditionally relied on corporate supporters but is switching to a more community based source of income.
  • KDE does not seem to be affected by recession, where as GNOME's income seem to have declined across quarters.
  • KDE was reporting a positive bank balance of over $288,000. Chances are GNOME's bank balance is nowhere near that of KDE.
  • However, KDE's administrative costs are less than half GNOME's, despite its larger income. The implications are clear - KDE runs a much more lean ship than GNOME as far as expenses are concerned. 
[Sources : KDE 2009 Q1 report, GNOME 2009 Q2 report, Linux Magazine ]

Scribus - Free Desktop Publishing Software


Scribus is an open source Free DTP software in the same league as Adobe Pagemaker. Scribus is the ideal free page layout program for business, education, and small- and home-office professionals who want to create high-quality publications such as brochures and newsletters.

Some of the notable features of Scribus are as follows :

  • Support for professional publishing features such as CMYK color, separations and spot colors.
  • ICC color management.
  • Versatile PDF creation.
  • Embed PDF documents.
  • Available at an unbeatable price - Free.
I had covered Scribus a few years back. Now Natan Willis has written an article describing in detail the Scribus interface. He also dwells on how to create labels of your exact specifications using Scribus.

Apple - Exploring the innards of a Mac Mini

I have always been allured by Apple products - more for their aesthetic beauty than for their function - be it iPhone, iMac,  iPod, iNano et al. Yes, Apple products usually cost the bomb to buy compared to similar products from contenders and we ordinary users may as well stay away from them if we do not want to splurge on gadgets. However, all things said and done, Apple products do appeal to most people's sense of beauty and they are getting popular as days go by.


One Apple product which has especially caught my fancy is the Apple Mini. It is small enough to fit into the palm of your hand, is compact, has almost all interfaces you might expect in a full blown PC, can be connected to non-Apple hardware peripherals such as keyboard, mice, monitor etc, and more importantly - it is priced in the same range as a PC which makes it quite affordable.

If you are curious what a Mac Mini looks within its Aluminium casing, your wish has been granted. Macminicolo.net who provide Mac Mini servers for hire have put together a photo op of the unveiling of the Apple Mac Mini. They unwrap the Apple Mac Mini from its package and then in a step by step manner, show you the hardware that powers this aesthetic beauty. Check out the article.

Now if you are wondering whether you can install Linux on an Apple Mac Mini, yes you can. Find out how you can install Linux on a Mac Mini.

However, anytime you ask me, I will opt for a PC over an Apple Mac for sure. But that is just me saying it.

I will leave you pondering over the following picture of a server farm run entirely using Apple Mac Minis'. (Image courtesy: Macminicolo.net)

Linux servers can now be infected - Or can they ?

Linux gurus have always vouched on the safety and security of Linux - especially Linux running as servers. However, now after a developer named Denis Sinegubko has published his findings, they may just have to ponder over their words.

According to Denis, the Linux servers can be infected to be used in a botnet used to distribute malware.  The modus operandi of attack is as follows :

  1. The bots target a domain name and inject a hidden <iframe> code in one of the web pages on the website pointing to the domain. 
  2. The hidden iframe will contain link(s) pointing to web sites that host malicious content. 
  3. These bots also infiltrated Linux web servers (mostly running nginx) and set up sites by using 100s of domain names registered on free dynamic DNS hosting providers such as dynDNS.com and no-IP.com.
  4. When they set up sites, they invariably used the less checked 8080 port instead of the default port 80. 
Read the details of Denis Sinegubko's finding here.

Open Solaris vs Linux - A Comparison

Linux OpenSolaris
OpenSolaris and Linux to a layperson can seem similar in many ways. They both use more or less the same end user applications, have similar desktops, and are open source. But scratch the surface and you find that they are entirely different products all together.
Some of the notable differences which an end user may encounter are as follows :
  1. Directory structure differences. For example, in Linux, the Home directory is located at /home whereas in OpenSolaris it is at /export/home.
  2. Linux and OpenSolaris use different commands for doing the same things. Some commands are similar in name but take different options.
  3. Linux supports more hardware than OpenSolaris. This means, Linux runs on more machines than OpenSolaris.
  4. One of the main reasons for using OpenSolaris is ZFS. Linux doesn't support ZFS yet.
  5. Taking snapshots of filesystem in OpenSolaris is a snap. Again courtesy of ZFS. Linux users are, by default, left in the lurch on this front.
  6. OpenSolaris supports a variety of virtualisation technologies with different degrees of isolation, flexibility, performance and ease of use. Eg: VirtualBox, A port of Xen called xVM Hypervisor, Zones et al. Linux supports VirtualBox and Xen but not Zones.
  7. Linux has more applications than OpenSolaris. Period.
  8. OpenSolaris boots slower than Linux on the same hardware.
Tuxradar runs a detailed comparison between Linux and OpenSolaris with a few accompanying tips and tricks. Check it out.

Comics - Learn how ZFS safeguards your data

I am sure you have heard euologies about ZFS - the default file system on Solaris. But do you really know why ZFS is considered to be a superior file system ? If you are in doubt, never fear, Nexenta Man has come to your rescue.

Read the exploits of Nexentaman to learn how ZFS keeps your data safe.

Tornado - An open source web server, courtesy of Facebook

Facebook has released one of its core piece of infrastructure called Tornado under an open source license.

From the Facebook announcement:
Tornado is a relatively simple, non-blocking Web server framework written in Python, designed to handle thousands of simultaneous connections, making it ideal for real-time Web services.

Tornado was originally developed by Friendfeed to power its real time web infrastructure prior to it being acquired by Facebook.

Check out the other open source projects from Facebook.

Read in detail about the technology behind Friendfeed's web server Tornado here.

Apple Open Sources Snow Leopard's Grand Central Dispatch

Apple logo Green
Apple has again jumped on to the open source bandwagon by releasing the code for its Grand Central Dispatch technology.

Grand Central Dispatch takes full advantage by making all of Mac OS X multicore aware and optimizing it for allocating tasks across multiple cores and processors. Grand Central Dispatch also makes it much easier for developers to create programs that squeeze every last drop of power from multicore systems.


Apple Insider writes :
The user-space implementation of the Grand Central Dispatch services API, called libdispatch, has been delivered as its own open source project, joining with other components that are part of projects Apple has already designated as open, including the kernel components in the Darwin OS XNU kernel and the blocks runtime that is part of the LLVM project.

A few other Apple related open source projects that come to mind are Webkit and CUPS, just to name a few.

25 Linux Tips for Windows Users

Are you an exclusive Microsoft Windows user who wishes to switch to Linux? Perhaps you are looking forward to embracing Linux for the following reasons -
  1. Microsoft Windows is closed source and you seek an open source alternative.
  2. You want to check out what the hype on Linux is all about.
  3. You are fascinated by the rock solid stability and security you will get in using Linux which is lacking in Windows.
  4. You seek change just like the American President Obama, albeit at a much more subdued, personal level.
What ever your reason for ditching Windows, there is help at hand. Techradar has published 25 Linux tips for Windows switchers which makes an interesting read.

The article starts from the basics of choosing the right Linux distribution, package management basics, and rounds off with a few tips on troubleshooting in Linux when you hit a snag.

Full RSS feeds now enabled for this blog

I am happy to let you know that now you can read full posts directly in your RSS reader without visiting this blog. Till date, when anyone subscribed to this blog, they were provided only a teaser of the post, and to read the full post, they had to click the link and visit this blog. Now no more. You can read the full articles right in your RSS reader itself. Hope you find this new change useful.

Please let me know if you are unable to access the full posts of this blog in your RSS feeds.

Moderating Comments

I'm afraid that I've been forced to moderate comments on this blog due to someone who appears to be posting sexually explicit comments in Japanese. I tried just deleting them as they appear, but I'm getting tired of doing that.

If you're the person posting the comments, go open your own blog.

Blogger finally gets the 'Read More' link as in Wordpress

It is good news for all Blogger fans out there. Your favourite blogging platform finally gets the "Read more" link.

It had been a sticking point that a blogging platform as versatile as Blogger didn't have such a basic functionality as "Read more" which most other blogging software considered passe. But not any longer. Now you can stop using code hacks to get what you want.

Enabling the "Read more" link is as simple as inserting a <!-- more --> tag somewhere in your blog post. And Voila! your blog post gets truncated at the position of the tag and your visitors have to click on the "Read more" link to view your full article. If you are reading this article from the Home page of this blog, click on the "Read more" link below to continue reading this article.

If you feel like changing the "Read More" text to your own custom phrase, you can easily do this from the Layout | Page Elements tab. Click Edit on the Blog Post widget, and then change the Post page link text to whatever you'd like.

Blogger editor settings

Note: If you are using a heavily customized template - like this one, you will have to insert the following snippet of code directly below the <data:post.body/> in your HTML template. Don't forget to select - "Expand widget template" checkbox.

<b:if cond='data:post.hasJumpLink'>
<div class='jump-link'>
<a expr:href='data:post.url + "#more"'> <data:post.jumpText/> </a>
</div>
</b:if>

I couldn't get the 'Insert Jump Break' toolbar icon enabled on my post editor though, but I can live with it for the time being.

More details on enabling the "Read more" link in Blogger can be found here.

Solaris 10 Operating System for x86 installation check tool

Solaris Operating System for x86 Installation Check Tool checks the system on which you try to install the operating system and report if the system can run the Sun solaris OS properly.
The download is a simple ISO file which then needs to burnt onto a CD to create a boot CD. Once created, start the X86 system with the CD. The ISO can be downloaded from here.

For Sun Solaris Express Edition, click here


The tool checks and reports whether your x86 system can install the Solaris 10 8/07 OS. The Installation Check Tool loads the Solaris 10 8/07 kernel and looks for a hard disk on your system. Reports whether Solaris drivers are available for the devices the tool detects on your x86 system. This information helps you to determine whether the Solaris 10 8/07 OS is likely to run on your system.
Installation Check Tool also produces a table that shows whether a Solaris driver is available for each device the tool detects. The table tells you whether the driver is built in to the Solaris OS or whether a third-party driver is available.

Installation Check Tool first loads the Solaris 10 8/07 kernel. Then the tool generates a report that shows the major PCI components in the system and whether Solaris drivers exist for these devices.

This report package is written to a tar file that is compressed with gzip. You have the option to copy this report file to a floppy disk or to USB storage. The report package includes the following files:

A text file that shows the same information as the screen output.
An HTML report file that shows the full content of the report. No abbreviations are used.
The output of prtconf -pv, prtdiag, and prtconf -v.
The following is an example of the text information that is displayed on your monitor:

Sun Solaris x86 check tool

If the system includes two devices that require a third-party driver, the driver for the second such device is labeled “T-2” in the driver column of the table and in the Third Party Driver Legend.
If a report such as the example shown above is displayed on your screen, and if you do not receive any warning message that no disk is found, then the Solaris 10 8/07 OS can be installed on this system.
The next step is to check whether drivers exist for other on-board devices, such as network devices, video devices, and audio devices.
NOTE: Sun does not warrant the behavior of any third-party driver.

Installation Check Tool gives you the option to copy this driver report to a floppy disk or to USB storage.

Solaris Operating System for x86 Installation Check Tool displays a message if your system is suitable for installing the Solaris 10 8/07 OS.

Installation Check Tool is updated periodically to include knowledge of new drivers in the driver database that the tool uses. Drivers that are integrated into the Solaris OS and third-party drivers that are known to work with the Solaris OS are included in these updates. Check this web page periodically to make sure you are using the most current release of Installation Check Tool. The tool also displays a message to remind you to check for a new release.

Sun Device Detection Tool 1.2 for x86 systems

The Sun Device Detection Tool can help you to determine if the Devices on the system is detected by the Sun Solaris Operating System.
If your device or system is already on the Hardware Compatibility List (HCL) then this may not be necessary. Click here for the HCL in Sun Solaris.

However, there is no harm in running the tool. The tool also allows you to submit the device to HCL under the Reported to Work Function (RWF).


The tool can test the X86 system for either Sun Solaris OS or for the Sun Solaris Express Edition.
The Sun Device Detection Tool 1.2 can be downloaded from here and can run on X86 systems running Windows XP, Linux (with PCI tools installed) with Sun Java Runtime Environment (JRE) installed.
Acccept the License Agreement and download the tool.

1. Once downloaded, click Run to start the tool.

2. Select the Operating System (Solaris OS or Solaris Express Edition) and click Start.

This starts the tool and checks all the detected tool in the system.
3. Once complete, the tool will provide a list of device detected and the status of the drivers available.
A Green indicates the device is compatible with the Sun Solaris OS
A Red indicates that the device is not compatible with Sun Solaris or in other words there is no driver for the device
A Yellow indicates tha the device has limited support and may or may work properly with Sun Solaris Operating System.

Solaris 10 & Solaris Express Hardware Compatibility list(HCL)

As you are aware of, every Operating System has a Hardware Compatibility List (HCL). The Hardware Compatibility List (HCL) identifies hardware that is compatible with the Operating System and provides information about available software support.

Hardware Compatibility List (HCL) for Solaris 10 OS:

http://www.sun.com/bigadmin/hcl/data/sol/

There are totally 906 system which includes OEM & System Vendor Products, VMWare,Servers, Desktops, Laptops andMotherboards and 1568 system components

Hardware Compatibility List (HCL) for Solaris Express Developer Edition:

http://www.sun.com/bigadmin/hcl/data/sx/

This includes 975 Systems and 1602 system components

How to recover/reset root password in Sun solaris (SPARC)

There is every little chance that one loses or rather forgets the root password of his Sun Solaris servers. In the event, this happens, there is a way out of it. Well the way and infact the only way is to reset the password as there is no way to recover it. Recovering/restting the password involves booting the server in Single User mode and mounting the root file system.

Ofcourse, it is recommeded that the security for the physical access to the server is restricted so as to ensure that there is no unauthorized access and anyone who follows this routine is an authorized personnel.

Boot the server with a Sun Solaris Operating System CD (I’m using a Solaris 10 CD but doesn’t matter really) or a network boot with a JumpStart server from the OBP OK prompt.

OK boot cdrom -s

or

OK boot net -s

This will boot the server from the CD or Jumpstart server and launch a single user mode (No Password).

Mount the root file system (assume /dev/dsk/c0t0d0s0 here) onto /a

solaris# mount /dev/dsk/c0t0d0s0 /a

NOTE: /a is a temporary mount point that is available when you boot from CD or a JumpStart server

Now, with the root file system mounted on /a. All you need to do is to edit the shadow file and remove the encrypted password for root.

solaris# vi /a/etc/shadow

Now, exit the mounted filesystem, unmount the root filesystem and reboot the system to single-user mode booting of the disk.

solaris# cd /

solaris# umount /a

solaris# init s

This should boot of the disk and take you to the single-user mode. Press enter at the prompt to enter a password for root.

This should allow you to login to the system. Once in, set the password and change to multi-user mode.

NOTE: Single-User mode is only to ensure that the root user without password is not exposed to others if started in multi-user mode before being set with a new password.

solaris# passwd root

solaris# reboot

This should do. You should now be able to logon with the new password set for root

How to recover/reset root password in Sun solaris (x86)

about resetting the password on Sun Solaris Operating system in SPARC platform. While the procedure is almost the same wherein you boot with the CD into single user mode and mount the root partition, here we discuss the procedure to reset the password for the root user on the x86 platform.

It is recommeded that the security for the physical access to the server is restricted so as to ensure that there is no unauthorized access and anyone who follows this routine is an authorized personnel.

Boot the server with a Sun Solaris Operating System CD (I’m using a Solaris 10 CD but doesn’t matter really) or a network boot with a JumpStart server. Change the Boot order accordingly in your x86 system and start the server and launch a single user mode (No Password).

In Solaris 10, you have the default Fail Safe boot option in the Boot Loader. With this you do not need a CD or JumpStart server as selecting it will launch the Single-User shell. I haven’t used the early Solaris versions on an x86 system so if anyone knows it is availabe then please post your comments.

When you boot from the CD, select the option for the Sigle-user mode (Option 6 on Solaris 10 CD)

This will look for the currently installed Solaris OS on your system and prompts a Yes/No question to mount the Root filesystem as a Read/Write file system onto /a.

Select yes to mount the root file system (/dev/dsk/c0t0d0s0 here) on /a. If you select No, no harm as you still can mount it manually using:

solaris# mount /dev/dsk/c0t0d0s0 /a

NOTE: /a is a temporary mount point that is available when you boot from CD or a JumpStart server

Now, with the root file system mounted on /a. All you need to do is to edit the shadow file and remove the encrypted password for root.

solaris# vi /a/etc/shadow

Now, exit the mounted filesysten, unmount the root filesystem and reboot the system to single-user mode booting of the disk.

solaris# cd /

solaris# umount /a

solaris# init s

This should boot of the disk and take you to the single-user mode. Press enter at the prompt to enter a password for root.

This should allow you to login to the system. Once in, set the password and change to multi-user mode.

NOTE: Single-User mode is only to ensure that the root user without password is not exposed to others if started in multi-user mode before being set with a new password.

solaris# passwd root

solaris# reboot

This should do. You should now be able to logon as root with the new password.

Sun Solaris Patch Management return codes

When you install Patches on Solaris, you will find quite often see error codes or Exit/Return codes when the patch installation fails.

These are the return codes that indicate the cause of the failure to install the specified patch and are very helpful as point to start with in troubleshooting.

The most commonly seen return codes are Return code 2, Return code 8, Return code 25, Return code 35.

Return Code 2 indicates that the patch you are trying to install is already been applied.

Return Code 8 indicate that the patch you are trying to install is for a package that is not already installed.

Return Code 25 indicates that a patch required for this patch to be installed in not found.

Return Code 35 indicates that the revision of the patch is older and that a later version of the patch is already applied to the system.

Sun Solaris patch return codes

The following are a list of the Return/Exit codes that you may come across while patching your Solaris server:

Exit Code / Return Code

Description

0

No error

1

Usage error

2

Attempt to apply a patch that’s already been applied

3

Effective UID is not root

4

Attempt to save original files failed

5

pkgadd failed

6

Patch is obsolete

7

Invalid package directory

8

Attempting to patch a package that is not installed

9

Cannot access /usr/sbin/pkgadd (client problem)

10

Package validation errors

11

Error adding patch to root template

12

Patch script terminated due to signal

13

Symbolic link included in patch

14

NOT USED

15

The prepatch script had a return code other than 0

16

The postpatch script had a return code other than 0

17

Mismatch of the -d option between a previous patch install and the current one

18

Not enough space in the file systems that are targets of the patch

19

$SOFTINFO/INST_RELEASE file not found

20

A direct instance patch was required but not found

21

The required patches have not been installed on the manager

22

A progressive instance patch was required but not found

23

A restricted patch is already applied to the package

24

An incompatible patch is applied

25

A required patch is not applied

26

The user specified back out data can’t be found

27

The relative directory supplied can’t be found

28

A pkginfo file is corrupt or missing

29

Bad patch ID format

30

Dryrun failure(s)

31

Path given for -C option is invalid

32

Must be running Solaris 2.6 or greater

33

Bad formatted patch file or patch file not found

34

The appropriate kernel jumbo patch needs to be installed

35

Later revision already installed

NFS Security – nfs_portmon to restrict client source port to privileged ports

Network File System (NFS) security in Sun Solaris can be enhanced by restricting the source ports for the client connections for NFS to be only privileged ports. The privileged port range is from 512 to 1023. Enabling this security feature for NFS in solaris, checks if the source ports from the clients from privilege ports. This prevents malicious users from gaining access to files exported/shared by the NFS server by preventing custom RPC based scripts or applications being used on unprivileged ports.

In Sun Solaris 10 this is enabled by default. In Solaris 9 and earlier, this can be enabled by simply editing the /etc/system file and adding an entry for nfs_portmon.

Edit the /etc/system file

sunsolaris# vi /etc/system

Add the following line

set nfssrv:nfs_portmon = 1

If you by any chance run Solaris 2.5 or earlier then

set nfs:nfs_portmon = 1

This change requires a reboot of the server for it to take effect.

Reboot the server

sunsolaris# init 6

When the server reboots, the changes take effect.

In Solaris 8 and later, run the following to confirm the change:

sunsolaris# adb -k

nfs_portmon /D

If this returns “1″ indicates nfs_portmon is enabled else if it returns “0″ indicates nfs_portmon is not enabled.

nscd caching daemon in Sun Solaris

Align LeftThe nscd daemon is a caching daemon in Sun Solaris. It provides caching services for hosts,passwd,group,ipnodes databases using various nameservice lookups like hosts file, DNS, NIS,NIS+ and more. Each cache has a separate time-to-live for its data and modifying the local database like /etc/hosts invalidates that cache within ten seconds. nscd doesn’t cache /etc/shadow (contains encrypted passwords for /etc/passwd) file simple for security reasons as anyone would understand.

As nscd daemon provides caching service, it is necessary when you run a name service like DNS, NIS or NIS+ in your network. The configuration of nscd daemon can customised using the /etc/nscd.conf file and it is important more from a security point of view where you can control what is and how is cached on your solaris server.

A sample configuration looks like the following

enable-cache passwd no
enable-cache group no
positive-time-to-live hosts 3600
negative-time-to-live hosts 5
suggested-size hosts 211
keep-hot-count hosts 20
old-data-ok hosts no
check-files hosts yes

Each line of the config file has an attribute and a value or an attribute, cachename and value

Example:

attribute: enable-cache

cachename: group or passwd

Value: 3600 (time in seconds) or yes/no for to cache or not to cache.

Enable/Disable nscd caching

However, if caching is not required, disable the service at start up by renaming the startup script

/etc/rc2.d/S76nscd

to

/etc/rc2.d/s76nscd

optionally, rename the kill scrips in /etc/rc1.d/, /etc/rcS.d/, /etc/rc0.d/ from

K40nscd

to

k40nscd

Manually Start & Stop nscd daemon

To start & stop nscd daemon manually:

Start nscd

solaris#/etc/init.d/nscd start

Stop nscd

solaris#/etc/init.d/nscd stop

For more information, please check the Sun man pages

Sun VTS – Sun Validation & Test Suite for hardware stress test

SunVTS, Sun Validation Test Suite, tests and validates Sun hardware by verifying the configuration and functionality of hardware controllers, devices, and platforms. SunVTS is used to ensure a “clean bill of health” of the overall system under test and its underlying hardware. Several diagnosability features incorporated in the latest release makes SunVTS an effective online/offline diagnostics tool. The added emphasis on failed FRU (field replaceable unit) identification, and data safe, low impact testing, makes it appropriate for use online and offline in ant environments.

SunVTS supports a flexible interface that allows a user to remotely schedule and monitor anything from a single test on a single piece of hardware to multiple instances of multiple tests in order to fully stress the system. SunVTS runs on all Sun SPARC based platforms supporting Solaris 2.5 or later releases. SunVTS also runs on many Sun x86 based platforms supporting Solaris 10 or later.

Sun VTS can run in

Connectivity Mode (Low Stress and a quick test mode)

Online Mode – More thorough check still non-intrusive so can run on production environments without affecting existing applications

Offline Mode – Assumes no other application runs and uses as much available resources to perform a thorough testing and hence to be run offline taking systems off production to perform the tests.

The core components of Sun VTS are

Sun VTS Kernel which performs the actual tests.

User Interface – A GUI or a TTY terminal interface

Hardware Tests – Each hardware device supported by Sun can be validated by a corresponding hardware test. Each test is a separate process from the SunVTS kernel process.

For more information on the features, click here

The following explains the procedures to download, install and run Sun VTS (Validation & Test Suite)

Install and run Sun VTS in Sun Solaris 10

Install & Run Sun VTS in Solaris 10 for hardware & Stress test

In my previous write up here, I wrote a brief description of the Sun VTS (Validation and Test Suite) which can help one to run tests on any Sun Supported hardware and hardware components and report the health status and identify faulty devices. Now, lets get installing and run Sun VTS in Solaris 10.

Download the most recent stable version of SUNWvts (SUNWvts6.4ps2 at the time of writing this article) for SPARC/x86 platforms from here

NOTE: Requires Sunsolve login to download.

Sun VTS requires the following packages installed to run properly.

Core SunVTS Framework

SUNWvts_VTS6.4ps2_sparc.tar.Z (SPARC)

SUNWvts_VTS6.4ps2_x86.tar.Z (x86)

Sun VTS Tests

SUNWvtsts_VTS6.4ps2_sparc.tar.Z (SPARC)

SUNWvtsts_VTS6.4ps2_x86.tar.Z (x86)

SunVTS Framework Configuration Files in Root partition (Optional/Recommended)

SUNWvtsr_VTS6.4ps2_sparc.tar.Z

SUNWvtsr_VTS6.4ps2_x86.tar.Z

Sun VTS Man Pages (Optional)
SUNWvtsmn_VTS6.4ps1_sparc.tar.Z (SPARC)

SUNWvtsmn_VTS6.4ps1_x86.tar.Z (x86)

Prior to installation, it is important that any previous version of the above mentioned Sun VTS packages are removed.

To check if previous versions are installed

solaris10# pkginfo -l | grep -i vts

If found uninstall them before proceeding with the procedure

solaris10# pkgrm SUNWvts SUNWvtsr SUNWvtsts SUNWvtsmn

Download and install the latest revision of Microtasking libraries (libmtsk) patch for Solaris 10 from the following Sun Solve website:

http://sunsolve.sun.com/show.do?target=patchpage

Solaris 10 SPARC – 120753 (120753-05)

Solaris 10 x86 – 120754 (120754-05)

Download unzip and install the patch:

SPARC

solaris10# unzip 120753-05.zip

solaris10# patchadd 120753-05

x86

solaris10# unzip 120754-05.zip

solaris10# patchadd 120754-05

Now, lets get installing the Sun VTS packages.

Install SunVTS Core Framework (SPARC & x86)

solaris10#pkgadd -d . SUNWvts

That installs the required Sun VTS Core Framework package.

Install the rest of the SunVTS packages
(SunVTS Tests,config files in root & Man pages)

solaris10# pkgadd -d . SUNWvtsts SUNWvtsr SUNWvtsmn

That completes the Sun VTS package installation.

Enable the rstatd daemon

rstatd daemon is disabled by default in Solaris 10.

solaris10# svcadm enable rstatd

Export Display to your PC (GUI only)

solaris10# export DISPLAY 192.168.0.2:0

Start Sun VTS

solaris10# /opt/SUNWvts/bin/sunvts &

This should start the Sun VTS software and export GUI to your PC (if display not exported then runs tty user interface on the terminal). Sun VTS will discover devices and list available tests for your server with dezcriptive information on the server.

Recover password MySQL

Step # 1 : Stop mysql service
# /etc/init.d/mysql stop

Step # 2: Start to MySQL server w/o password:
# mysqld_safe –skip-grant-tables &

Or

edit my.cnf

[mysqld]

skip-grant-tables

start the server

service mysqld start

Step # 3: Connect to mysql server using mysql client:
# mysql -u root

Step # 4: Setup new MySQL root user password
mysql> use mysql;
mysql> update user set password=PASSWORD(”NEW-ROOT-PASSWORD”) where User=’root’;
mysql> flush privileges;
mysql> quit

Step # 5: Stop MySQL Server:
# /etc/init.d/mysql stop

Step # 6: Start MySQL server and test it
# /etc/init.d/mysql start
# mysql -u root -p

Mail somebody about space running low in some path (ksh, bash):

PATHS="/export/home /home"
AWK=/usr/bin/awk
DU="/usr/bin/du -ks"
GREP=/usr/bin/grep
DF="/usr/bin/df -k"
TR=/usr/bin/tr
SED=/usr/bin/sed
CAT=/usr/bin/cat
MAILFILE=/tmp/mailviews$$
MAILER=/bin/mailx
mailto="all@company.com"
for path in $PATHS
do
DISK_AVAIL=`$DF $path | $GREP -v "Filesystem" | $AWK '{print $5}'|$SED 's/%//g'`
if [ $DISK_AVAIL -gt 90 ];then
echo "Please clean up your stuff\n\n" > $MAILFILE
$CAT $MAILFILE | $MAILER -s "Clean up stuff" $mailto
fi
done

To find out the number of files of each type in your current directory

find ${*-.} -type f | xargs file | awk -F, '{print $1}' | awk '{$1=NULL;print $0}' | sort | uniq -c | sort -nr

One liner to find biggest file or directory.

du -sk ./* | sort -n | awk 'BEGIN{ pref[1]="K"; pref[2]="M"; pref[3]="G";} { total = total + $1; x = $1; y = 1; while( x > 1024 ) { x = (x + 1023)/1024; y++; } printf("%g%s\t%s\n",int(x*10)/10,pref[y],$2); } END { y = 1; while( total > 1024 ) { total = (total + 1023)/1024; y++; } printf("Total: %g%s\n",int(total*10)/10,pref[y]); }'

Firefox Mozilla Mockups for version 4

firefox logo 125x125How would you like the next version of Mozilla Firefox UI to look ? Would you like it to have a spartan look and feel similar to Google Chrome ? Or should it be an amalgamation of all the good UI ideas found in different browsers like Opera, Internet Explorer 8.0, Safari and Google Chrome ?

Mozilla Firefox has initiated a discussion on how the UI of Firefox 4.0 should be designed. It has put together a couple of ideas as mockups.

These mockups have not been finalized but are shared with the public to initiate a discussion and for brainstorming. Should Firefox 4.0 have tabs on top of address bar or on bottom of address bar like in Google Chrome? Should it have a combo stop/refresh/go button ?

Check out the mockups of Firefox 4.0 and also the feedback received.

And if you have any UI ideas you would like to share, do write to the Firefox Mozilla team.

Windows Server 2003 : MCSE Videos

Windows Server 2003 MCSE training videos have been developed by some of the best Microsoft trainers. Choosing an MCSE training video is a great way for you to work towards your MCSE certification at your own pace and on your terms. The only deadlines you will have when using this training method is the ones that you set for yourself as there is no classroom schedule that you need to adhere to. So whether you want to work fast or just take your time then this is really up to you.By using a MCSE training video you will benefit from not just hearing but actually seeing an expert instructor. Plus at any stage during the training you will be able to go back and review any sections that you feel unhappy about and therefore would like to reinforce everything that you have already learnt.All such instructors are certified to MCSE standard and will normally lead a traditional classroom setting but by using these videos you do not need to actually attend. All you do is simply watch the videos as and when your schedule allows you to and so get the most out of what you would normally receive in a classroom setting without actually having to physically be there.



Video Contents:-



01) Windows Server 2003 - Active Directory Installation

02) Windows Server 2003 - Active Directory Users and Computer Management

03) Windows Server 2003 - DHCP Client Configuration

04) Windows Server 2003 - DHCP Server Address Leases

05) Windows Server 2003 - DHCP Server Configuration

06) Windows Server 2003 - DNS Server Configuration

07) Windows Server 2003 - DNS Server Forwarder Configuration

08) Windows Server 2003 - File Server & Shadow Copy

09) Windows Server 2003 - IIS Server Configuration

10) Windows Server 2003 - IIS Server Installation

11) Windows Server 2003 - Logging into an Windows Server 2003 Domain

12) Windows Server 2003 - Mail Server Installation

13) Windows Server 2003 - Mail Server Test

14) Windows Server 2003 - Print Server Configuration

15) Windows Server 2003 - RAS Server Configuration

16) Windows Server 2003 - Streaming Media Server Installation

17) Windows Server 2003 - Streaming Media Server Configuration I

18) Windows Server 2003 - Streaming Media Server Configuration II

19) Windows Server 2003 - Terminal Server Installation

20) Windows Server 2003 - Terminal Server Usage

21) Windows Server 2003 - WINS Server







Download link



 
 
 
 
Copyright © Sun solaris admin