Saturday, September 25, 2010
Sunday, September 19, 2010
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 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
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++.
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
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
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 ~
Turbo C is running on Linux
Saturday, September 4, 2010
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.
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).
- 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.
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.
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.
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.
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...
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 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.
Request to all those who love Linux and PCLinuxOS
Please share your experience and experiments with PCLinuxOS. Hurry up, mail me at email@example.com