Saturday, September 25, 2010

PCLinuxOS Progresses Undeterred


If computer is your hobby, you will, sooner or later, run into Linux. Cos only Linux (not Mac, Windows or any other OS) gives you that power to tweak/tinker, virtually every bit and piece of the OS. That's why there are so many distributions, so many forks, spins, respins, and multitude of application software for a single task. No surprise, many hobbyists come, wander in the linux world, but a few really stick to it, rest go. Cos? Not all the distributions are polished, stable, easy and powerful. Most often sticking to linux depends on hitting a good no-nonsense distribution (like PCLinuxOS, Mint or Mepis) at the first chance. IMO, PCLinuxOS tops the list of distros that care for new-converts.

PCLinuxOS is one that compelled me to stick to Linux. Of course, I'd been exposed to linux from RedHat 5, but that was a compulsion from the then employer. Putting Linux on my home desktop started with PCLinuxOS, way back in 2005. A lot has been changed ever since: numerous desktop wannabe distributions have come up, kernel/userland has gone through a sea change, GNU applications have seen many increments. Similarly, PCLinuxOS development and participation have undergone much changes. First mis-considered as a Mandriva fork, PCLinuxOS has developed a personality of its own. Some devs/projects (granular, pclosbe, intux, sam, unity) have forked away. Some alleged the way PCLinuxOS develops, saying it dictatorship managed, orthodox.. bla...bla... But seems all that have happened for good. It's become unique; taken the best pieces from the linux world and put them together like no one has done before.

My Linux love started with PCLinuxOS though these days I dabble more with Debian, CentOS and SuSe. It's official compulsion. But when it comes to recommending a distro to someone interested in Linux I utter "PCLinuxOS", it comes to my tongue as a reflex. I am so used to it!

Well, enough prophesy. Now onto something current with it. I have started liking PCLinuxOS ever more for a few reasons. They are:

#1 Multiple Flavors: KDE is the flagship and default desktop environment for PCLinuxOS. And I am happy to see that though it lags (for good) a few numbers back in kernel and userland, it keeps abreast with the KDE4 increments. The latest quarterly update was a joyride. Previously skeptic on KDE4 moves, I fell for it on its 4.5.1 iteration. What tremendous amount of efforts gone into making it! In addition to KDE, there are half a dozen of variants including gnome and lxde. Seems they are also getting enough polishing. If you like PCLinuxOS, desktop environment is not a matter of concern. Download a variant you like or pull in the meta package of that DE from pclinuxos repo. Either way you will have success. Rest assured, you won't face any glitches that you generally expect from a so called bleeding edge desktop.

#2 PCLinuxOS magazine: These days PCLinuxOS has bringing out its monthly magazine regularly religiously. I am sure it won't win a FOSS award for the literature. But it has a lot to make us mortals happy and engaged in Linux. The mag has a systematic approach to teach newbies essential commandline magic, use/management of popular desktop environments and developments specific to PCLinuxOS. It has those fun stuff elements also that you expect from a community or school magazine.

#3 Development Decisions and Friendly Forum: PCLinuxOS's sheer care for consumer desktop becomes evident from its development and discussions. Keeping close to kde4 development, choosing bfs over cfs, and listening to members' (at times packaging for them) queries are a few of the activities that prove it. It may not be the best FOSS distro.. It may not punch opensource nouvau... It may not jump to the nascent kernel, but it makes sure that your piece of graphics, sound, printer or wireless device work as painlessly as possible. It might never have shown off the reflected-glory of banning non-free bytes, but it makes sure that you won't waste your precious time fighting with your hardware.

Sunday, September 19, 2010

Linux: How to Replace Grub2 with Grub Legacy

RHEL 6 Beta 2 is still pushing grub legacy forward. No doubt it's going to stay with RHEL for some couple of years more. It somehow gives a little hint that grub2 is still little too complicated and experimental. However, if you are not that panicky Redhat/Centos person, you will get grub2 imposed upon you. Because the the rest of the distributions in Linux world has already been moved to grub2 land of boot configuration.

If you are one among those looking to replace grub2 with grub legacy, follow the few steps to achieve just that. The steps here pertain to Debian Testing, Ubuntu, Mint and other Debian/Ubuntu derivatives. You might have to change the steps as per your special distribution and its packaging system.

  • Open a terminal, be the super user - sudo su if you are using Ubuntu and the likes, su for pure debian and the rest
  • Remove grub2 - apt-get remove grub-pc
  • Instal grub legacy - apt-get install grub
  • Install grub in MBR or wherever you think appropriate for your condition - grub-install /dev/sdx (replace "x" with appropriate character as per your partition tree)
  • Update grub legacy - update-grub

Have a look at my menu.lst (click on the screenshot below) file in grub legacy on Ubuntu Lucid setup. Is not it simple and sane?

Saturday, September 18, 2010

Red Hat Certification for RHEL 6

Red Hat Hat has already rolled out two betas of its next major enterprise linux - RHEL6. It's been very late - almost twice the time (18-28 months) mentioned in RHEL 5 product document. It will still take considerably time pushing the release date to the end of 2010 or the beginning of 2011. Because rolling out a release is not the only thing, the big "E" in RHEL demands for certification, and Red Hat is pursuing certification for its next major Linux OS and virtualization.

Red Hat is paving the way for government agencies and enterprises to use its new technology to create secure, virtualized IT environments (KVM) and private clouds. The company is also into an agreement with Atsec information security to certify Red Hat Enterprise Linux 6 under Common Criteria at Evaluation Assurance Level 4. The certification covers the KVM hypervisor that enables an OS to run virtually without the need for a physical server, reducing the number of energy resources a data center requires. It also takes SELinux along with virtulization to ensure virtual resources run in separate containers.

Red Hat already has achieved Common Criteria certification 13 different times on four different Linux platforms. Alongside acquiring those certifications, Red Hat has also a lot to do in relation to RHEL 6 training, deployment and hardware compliance with many vendors and partners.

Saturday, September 11, 2010

Linux, Google, Android and Mobile Devices

Based on the Linux kernel and GNU software, Android is the most popular (33% of all units sold) mobile (smartphone) operating system of our time. developed by Google and is based on the Linux kernel and GNU software.

Under the Hood

Linux might still be a playground for hobbysts. But linux-drived software are going places. Deep inside Android software stack consists of Java applications on top of Java core libraries running on a Dalvik virtual machine featuring JIT compilation. Among others android has put together the surface manager, OpenCore, SQLite, OpenGL ES 2.0, WebKit, SGL, SSL and Bionic libc, very well. In all it consists of 12 million lines of code - 3 million lines of XML, 2.8 million lines of C, 2.1 million lines of Java, and 1.75 million lines of C++.

The Reception

With a decent beginning 2007, Android has attracted maximum attention from users, mobile handset manufacturers and software developers. The reception of Android has been the warmest. Till date there are 70,000 apps approved for it and some 100,000 have been submitted. Open Handset Alliance, a consortium of 78 companies (including Texas Instruments, Broadcom Corporation, Google, HTC, Intel, LG, Marvell Technology Group, Motorola, Nvidia, Qualcomm, Samsung Electronics, Sprint Nextel, T-Mobile, PacketVideo, ARM Holdings, Atheros Communications, Asustek Computer Inc, Garmin Ltd, Softbank, Sony Ericsson, Toshiba Corp and Vodafone) is devoted to advancing open standards for mobile devices through Android.

Sunday, September 5, 2010

How to Install/Run Turbo C/C++ IDE on Linux

Borland Turbo C/C++ IDE is not the best, not at all recommended on production floor. But it's still the mainstay in majority of schools and colleges, especially in India. GCC/G++ on linux is better for hardcore programming. However, from a beginner's perspective, it lacks those nice contextual buttons/menus and interface of Borland Turbo C/C++ IDE.

Thanks Dosbox! You can install/run Turbo C/C++ IDE on linux too. Just follow these steps.

#1 Install Dosbox

Installing dosbox is a child's play.
If you are running Debian or Ubuntu, open the terminal as a root user and enter:
apt-get install dosbox

If you are running Red Hat, Centos or Fedora, open the terminal as root user and enter:
yum install dosbox

#2 Download Turbo C/C++ IDE

Google a bit, and you will easily find Turbo C installers for Windows/DOS in a zipped archive format.

#3 Extract Turbo C/C++ Archive in your home (~) directory

#4 Run (Alt+F2) Dosbox or open dosbox from programs menu (it sits generally under Applications > Games)

#5 Mount your home (~) in root



Inside dosbox type:
mount c ~


#6 Move to the extracted "Turbo C" directory



Type:
c:
cd TURBOC~2



then:
install

It will start the setup. Follow the ncursed instructions to install as shown in the screenshots below.



Just press Enter to continue installation.



Enter C in the "Enter the source drive to use:" option.



Accept defaults and Press F9.



Press any key to continue with the installation





Turbo C/C++ IDE Installation is complete

#7 Running Turbo C/C++ on Linux

Run/open dosbox. Enter the following one by one in the dosbox terminal



mount c ~
c:
cd tc\bin
tc.exe



Turbo C is running on Linux

Saturday, September 4, 2010

Low Cost Linux Netbooks - the Future of Mobile Computing


The trend in technology is towards being ultraportable. Netbook is one such example. It is notebook made ultraportable suiting primarily to the mobile net-users. Many call these computers as subnotebooks as they retain the looks and features of notebooks, with some vital change done in hardware sections such as low powered CPU, energy efficient boards, less display size and lightweight. Owing to its scalability and open-source nature Linux is sitting almost all the major brands of netbooks. Of course, Windows is trying hard to catch up.

Right from the inception in 2007 to this date, linux has shipped on 32% of netbooks. Netbooks have sparked the development of several spins from major distros such as Ubuntu, Fedora and Suse. Examples include Ubuntu Netbook Edition, EasyPeasy, Jolicloud and Moblin.

Asus is the pioneer in introducing the Eee PC series netbooks and it has been reaping the benefits of an early-starter. Its success led other makes such as Acer, Intel, MSI, Dell and Samsung among others to build their versions of netbooks.

While some netbooks found their way into the lives of busy/mobile executives, others have been a student's pride possession for being cheap, rugged, highly power efficient and portable. OLPC and Intel Classmate PC are two such examples.

With Intel still innovating its Atom series of ultramobile processors and AMD keeping up the pace with its Nano series, netbook market has still a lot potential to show. However, Linux will find centerstage in this Intel-AMD fight for ultramobile dominance.

Speeding Up Debian GNU/Linux Desktop - Extreme Performance Tweaks

Why does a desktop, be it Linux or Windows, feel slow?

Because it tries to satisfy all - the vast majority of hardware and the varied requirements of a thousand different users. Result - heavier and sometimes heavily patched kernel, always running and sometimes never used services, and the unperceivable eye-candy that you don't care. Ok, now let's get on to the just right, optimized linux desktop. In the last post we have already talked how to do it on Windows).

SITUATION

  • Desktop hardware: D945GCLF essential board with Intel Atom 230 CPU embedded. 1GB physical RAM.
  • Operating System: Fully updated Debian GNU/Linux Lenny 5.0.5 with custom recompiled kernel

Note: Click on the screenshots to see their real sizes.

STEPS

Boot

Change boot timeout in /boot/grub/menu.lst to "0" if you've only one OS installed. I've changed timout to "2" and set default to "1" because my wife needs Windows in autoboot mode. Also, you should add "noresume" (if you don't boot from a resume/rescue partition) in the boot options to speed up booting a little further.



Filesystem

The default filesystem parameters in Linux lean more towards security/stability sometimes hampering performance. You can set "data_writeback" option to all the partitions using tune2fs utility, and add "noatime" option in /etc/fstab. It will speedup the file system.



As you can see in the above screenshot there is no entry for "swap" in my fstab. I've deliberately removed swap partition after observing no use for it on my bare usage. You may also delete the swap, if you have enough RAM (more than 1GB) and you never notice it to run out. Removing swap and using only physical memory speeds up overall responsiveness to a great extent.

Services

The please-all attitude of linux distributions make a default install littered with lots of services. You can disable/delete a few to gain dual benefit - faster boot and snappier desktop experience. On a debian system you can install sysv-rc-conf and uncheck (with caution) unnecessary services.



As you see in the screenshot, my desktop has just 11 services enabled.

Startup Programs

Modern linux desktop starts almost a dozen of startup programs (including bluetooth service, network applet, OpenOffice quickstarter, volume manager, accessibility, Bug reporter, update manager and a lot lot more) to please you. However, you use only a few of them, but your system suffers the toll in terms of memory and cpu usage. You can remove any or all of them as per your requirement.



As you see in the screenshot I've removed all the startup programs. I am using static IP settings (no need of network manager), I rarely use external storage media (no need for gnome-volume-manager, when needed I manually mount the external media), I have set my volume level (no need for that volume applet, when needed I will change settings in the media player/browser volume button)... bla.. bla... bla...

Eye-candy

Don't know about you, but I really don't like gnome-compositing, compiz, beryl, emerald or whatsoever the desktop effects are. Classic XP like look-n-feel is good for me. Even I prefer a desktop with no wallpaper to a pimpified desktop. Solid royal blue fillings on the desktop is enough.



Run gconf-editor (or use gconftool-2 on a terminal and change the settings) to enable "reduced_resources" (/apps/metacity/general/reduced_resources) and "accessibility" (/desktop/gnome/interface/accessibility) to get XP-ish like minimize-maximize effects and a snappier experience.




Speed Up /tmp

Move /tmp and /var/tmp to tmpfs in RAM. Add these two lines in /etc/fstab file

tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
tmpfs /var/tmp tmpfs defaults,noatime,mode=1777 0 0

Also, speed up flash rendering in firefox by deleting the directory ~/.macromedia, then creating a symbolic link to /tmp as mentioned below.

rm -r ~/.macromedia
ln -s /tmp ~/.macromedia

After, all these changes done, you may reboot your system or just issue the following command in your terminal.

mount -o remount /


Kernel

Kernel is getting heavier and heavier, day by day, owing to ever-emerging desktop hardware and kernel hacks. It's daunting, but you can recompile a kernel just-right for your particular hardware.


As you see in above screenshot, I have recompiled a 2.6.32 kernel for Lenny. The recompiled kernel package weighed only 8MB and took 23.2MB of space after installation, where as the default Lenny 2.6.26 kernel weighted some 20MB and installed some 75MB on my HDD. Besides, the recompiled kernel is bears right settings for a desktop (default lenny kernel is optimized for servers) that on intel atom 230 processor. Recompilation also gave me options to disable swap, virtulization, esoteric/unused filesystem entries, and tons of unnecessary devices from being built into it.

Share your thoughts