Below is a listing articles that are from the blog that you selected. To get a quick summary of the post
click on the title of the article that you want to know more about. If you want to go to the blog's homepage click on the
arrow which is next each article.
LinuxHaxor.net
LinuxHaxor.net
Browser Speed Test Revisited: Webkit Still The Best And Rips Opera 10 Alpha A New One»»
In my last browser test I was criticized, and rightly so, for running browser on different OS and compare results. The argument was that some browsers perform better than others on certain OS, regardless of the hardware. The assessment is right I have seen webkit powered browsers perform ~25% faster on Mac OS X, while Firefox nightly is ruthless on a linux distro. So in this round we added two more browsers and tested all of them natively in windows and as expected Firefox Minefield performed poorly.
Machine and OS used?
Intel Core 2 Quad q6600 @ 2.40GHz with Windows Vista SP2 v.113 Build 6002 (Screenshot).
Why Javascript and why Sunspider Benchmark?
To some estimate javascript is used in more than 2/3 of the websites out there and Sunspider is the most comprehensive javascript benchmark test with the most real-life testing conditions. (read info).
Why it matters?
It doesn’t matter if your web use is limited to watching babies laugh in youtube; but as more and more application are getting web-based; heavy users, like yours truly, are spending increasingly more time on web-based applications. Which was one of the reasons behind the release of open-source Chrome by Google, “To make the web a bit faster” and why developers are spending more time trying to get every bit of juice out of their javascipt engine like “V8 for Chrome”, “SpiderMonkey for Firefox”, “SquirrelFish for Webkit” and “futhark for Opera 10 Alpha” (with presto 2.2 Rendering engine).
The Result.
As expected, open source webkit engine is still quite a few steps ahead of its nearest competitor and winner of this benchmark. Unfortunately we couldn’t use the latest build of webkit as it was only available for OS X; yes we could have used the source and compile it - but not knowing which compiler and which optimization options were used (yes it matters!) to get the fastest build; we decided not to take the chance. Either way Webkit won so it doesn’t matter.
Firefox performs really bad under windows compare to both OS X and Linux based distros. So as expected Chrome performed better in its home turf, to make matters worse the latest nightly build of chrome (5.155) actually performs quite a bit better than the previously tested version (4.154).
Opera took more than double the time of webkit to finish this benchmark, not to be left behind; IE 8 Beta 2 took double the time of Opera to finish the benchmark.
Graduate From A Wubi Install To A Dedicated Partition»»
So you took my advice and installed Ubuntu with help from the best thing since LiveCD (Hint: Wubi), and now that you are happy with your experience with a “safe” install of Ubuntu, the next logical step would be to have a dedicated install on a separate partition or even better move your existing wubi install to a full fledged install of Ubuntu. (The third logical step would be to remove windows altogether and only have Linux installed in your computer, but we will take one step at a time to de-toxify years of windows usage). Purely performance wise you won’t see much difference when you move from a wubi install to a dedicated install - considering that you have a fairly fast hard drive and that your windows partition is not heavily fragmented. However, moving to a dedicated install does give a better safety net in case of hard-reboots or upgrading to a newer version of Ubuntu (I never had problems with upgrading, but some users did).
Transferring a wubi installation is possible with the help of LVPM (Loopmounted Virtual Partition Manager). It is advised that you create two new partitions prior to using LVPM to transfer your Wubi settings. One partition for your actual Ubuntu install and second one for swap, to avoid accidently writing over your root partition.
Step 1: Download and install LVPM, after you have created two partitions and booted to your wubi installation.
Step 3: Select the newly created partition. Know your drives. DO NOT select root partition unless you want to get rid of windows completely (which is fine by me).
Step 4: Wait for LVPM to do its work, as it formats the partition - copies your wubi installation - installs GRUB and reboots to your new dedicated Ubuntu install.
Pat yourself in the back; you just took one giant step towards total freedom. :)
Firefox Nightly Beats Chrome in Speed And Webkit Nightly Eats Them For Breakfast.»»
We already knew that Firefox nightly beats Chrome in speed, the gap is getting wider with the latest Firefox builds (3.2a1pre). While Google Chrome uses webkit as a layout engine it uses it’s own javascript engine called V8. On the other hand webkit developers are quietly tweaking away its SquirrelFish engine for javascript speed increase.
While there will always be fanboys who prefer one browser over another (where the hell is my Opera on webkit?) - the one thing that we can agree on is that its a winning situation for everyone as all these rendering engines, javascript engines and, in the case of Chrome and Firefox, browsers are open source. The one with the largest browser market share is not anywhere close in terms of speed or standard compliance. Their dominance in market share will too not last for long.
Update: Should have mentioned before. All used the same hardware, a macbook core 2 duo with separate installs of vista and Ubuntu with bootcamp along with OS X of course.
There are many reasons why you would want to generate bogus data for your database. Perhaps you’d like to know how well your databases will perform when filled with data, or maybe you just need some data so that you can start creating a front end for the database. I recently ran into the problem of not wanting to generate lots of data manually. I initially thought that I would write a shell script to do this, but figured I might as well look around first. I stumbled across a program called Spawner which is great for generating data for database testing.
Once you’ve downloaded spawner from sourceforge you’ll probably have to install some libraries. I had to install gtkhtml, gnome-spell2, gdk-pixbuf and glib on OpenSuse and very similar packages on Fedora 8.
To run the binary, I extracted it, moved it into my opt directory and chowned and chmodded the file. You should be able to do the following if you don’t know how to do it.
wget http://downloads.sourceforge.net/spawner/spawner-0.1.5-linux-i386.tar.gz?modtime=1223296659&big_mirror=0 tar xvzf spawner-0.1.5-linux-i386.tar.gz
Once you’ve done that, to execute it you just type /opt/spawner-0.1.5-linux-i386/spawner and it should start right up if you have all of the dependencies installed.
Spawner is fairly simple to use but does have some “quirks” that I have noticed. From the main screen, you have three tabs; Fields, Output and Message log. The fields tab is used to enter your fields of your table. You specify the field name and type here. Notes: You must hit the save button for each field and sometimes using the arrow keys for the field types helps with selecting them. Once you have defined your fields I’d recommend saving them, just in case.
Once you have your field definitions set you can work the output tab. You can choose the output type as delimited, SQL or a MySQL Database. The first two options need an output file while the latter you will need your connection information. The output tab is also where you specify the number of records to generate.
Click the Spawn button! You can look at the “Message Log” tab for errors. If it only inserts one record, click the spawn again and see if it starts generating the amount of records you specified. Occasionally it will only generate one record without it being your fault, but chances are if it doesn’t start spawning records you may have specified a field name incorrectly, you’re trying to put invalid data into a field, your connection information is incorrect or your using the wrong database/table.
There seems to be a false sense of security among some Linux users. The number of malicious programs specifically written for GNU/Linux has been on the increase in recent years and in the year of 2005 alone has more than doubled: from 422 to 863. Some security consultants will argue that Linux has fewer viruses/malwares because it is less attractive as a target for having a smaller user base (compare ~90.66% Windows vs ~0.93% Linux). You may call me a traitor but I agree with that assessment. There is no reason why we will not see a rise of malware designed for Linux as it becomes more mainstream among ordinary users.
I’ve heard so many times from beginners “do I need an anti-virus?”, “Linux has no viruses”, “There’s no way a virus could infect a Linux box”. This is the false sense of security that many new Linux users are dealing with today. Most are just starting out as Linux users and have no idea about the risks and safe actions to take. Newbie Linux users tends to feel safe with statements they read about how the Linux OS could never be infected and if so could never be executed because of the way files works under Linux.
Linux does have its share of viruses, trojans and worms but would the Linux infected binaries really need to be exclusively executed by root for a major system apocalypse? Although in most cases the system programs are owned by root and the user is just running the program from a non-privileged account. Some people will argue that for a system wide infection, the infected binary would have to be derived exclusively from root and as a non-privileged user, by running an infected program would only effect the users /home directory and not a system wide infection.
There is a method to infect a system wide Linux OS without the need to become root, this procedure is a commonly known as “Privilege escalation” –
“Privilege escalation is the act of exploiting a bug or design fault in a software application to gain access to resources which normally would have been protected from an application or user. The result is that the application performs actions with more privileges than intended by the application developer or system administrator” (Privilege escalation).
Its not very likely that Linux malwares will ever compare to that of the Windows viruses and even more unlikely that Linux will ever see its share of the same issues with malware as the Windows operating system. If you take into consideration the email-borne viruses that Microsoft has, they are all executable and are in most cases executed by the user, whereas with Linux you would have to save the file make the file executable and manually run the file. Windows XP automatically makes the first named user an administrator, with the power to do anything to the system. Linux on the other hand uses the first named user as the root administrator but does not allow root login on boot-up.
As a Linux user, using the repositories, md5 checksums and using root privileges only when necessary are just a few ways to to guard against an intrusion. SSH is often the first point of entry to a Linux system but it’s not the last line of defense. Using a strong password and anti-virus software should always be common practice for any OS and could potentially limit the risk of a system catastrophe.
Ok. How many times did it happen to you that whenever you say “Linux” referring to Linux Distro or Linux as an OS in general, some righteous-grammar nazi pops out of nowhere only to correct you by pointing out the obvious and the annoying fact that “Linux is actually a kernel”; no really your family will die and rot in hell if you don’t take the effort and specifically mention linux as a kernel.
So we can’t use one word to describe two things? It’s not like we are using the word “Intelligent” to describe both “Obama” and “Bush” - that would be totally wrong! Is using the word Linux in a loose reference to describe “Linux Kernel based OS”, so out of place?
If we can’t use one word to describe two things, then we shouldn’t use “kernel” to describe “Linux Kernel”; when clearly “corn kernel” came before Linux kernel and we shouldn’t use the word “kernel” to describe two things.
Let’s see what the reference guides have to say about the word “Linux”:
Linux (commonly pronounced IPA: /?l?n?ks/ in English; variants exist[1]) is a generic term commonly used to refer to Unix-like computer operating systems which use the Linux kernel.
1. (computing, uncountable) A free Unix-like operating system kernel created by Linus Torvalds and released under the GNU General Public License.
2. (countable) One of any number of systems that uses Linux as its kernel.
Pronounced lee-nucks or lih-nucks. A freely-distributable open source operating system that runs on a number of hardware platforms. The Linux kernel was developed mainly by Linus Torvalds and it is based on Unix. Because it’s free, and because it runs on many platforms, including PCs and Macintoshes, Linux has become an extremely popular alternative to proprietary operating systems.
A freeware implementation of UNIX originally written from scratch with no proprietary code by Linus Torvalds, which can be used with many different operating systems.
Linux is an operating system that was initially created as a hobby by a young student, Linus Torvalds, at the University of Helsinki in Finland. Linus had an interest in Minix, a small UNIX system, and decided to develop a system that exceeded the Minix standards.
Depending on the context, the word “Linux” describes a couple of things. Most accurately, the word “Linux” describes an operating system kernel — that is, the low-level part of an operating system that does all the hard work of talking to the computer’s hardware, managing memory and devices, and generally doing the grunt work. Unless you are an advanced user, or you run into some sort of hardware or software problem, you’ll almost never interact or even need to think about the kernel itself.
While it’s a very important part of the system, it’s not something that users interact with directly. Instead, you’ll be working with what are referred to as “user-space” programs — so called because users actually work with the programs directly. When a vendor or project bundles the Linux kernel and a bunch of user-space programs together in a way that’s useful to end users, that’s called a Linux distribution, often just “Linux” for short — because Linux is at the heart of the whole thing to begin with, and saying “Linux distribution” every time is a bit long winded. Generally speaking, when people say something like “I use Linux,” or “have you tried Linux?” they’re not just talking about the kernel, they’re talking about a Linux distribution.
Complete Backup and Restore Using “tar” Command»»
We’ve all made mistakes during our configuration and at some point wish we could go back in time before the mistake. Now that you have the ultimate setup that you’ve worked so hard on, how are you going to be sure you have the same setup after a system or hard drive crash? I’ll explain methods I use to maintain my setup and configuration files without the loss of any data or personal settings. Once you have recovered from the crash, the restoration can be as simple as typing a single command using the Live CD and a terminal.
The first, and most important, is that the backup medium is not located on the same drive as your Linux setup. I personally use an external USB drive for all my backup data (which can be purchased for next to nothing nowadays), although you could use another remote drive within your system unit, even a non bootable drive. These techniques are based on my favorite flavor Ubuntu and can be applied to any version of GNU/Linux.
The easiest method would be to use a simple “tar” command (such as):
Flags used by the “tar” command aid in the backup procedure by allowing us to include or exclude files or directories. With the “exclude” flag we can exclude system folders or individual files which are not necessary for the backup and can be recreated after the restore procedure (as I’ve demonstrated below). This is just a simple backup using the “tar” command but can be included in a more sophisticated approach.
Restoring the above backup procedure is as simple as becoming “root” (sudo su) going to “/” (root) and typing on a command line:
WARNING!! This will overwrite every single file on your partition with the one in the backup archive!
To complete the restore just create the directories that you excluded in the above backup command using the “exclude” flag :
By using the “tar” command to backup your data, you have the ability to extract any file or directory out of the “backup.tgz” file for recovery, for instance, if you have a corrupt or mis-configured “fstab” file you want to recover, you could simply issue the command:
If your in the “/” root directory this will extract the “/etc/fstab” file to the original location. A far safer solution is to restore the desired files under a different directory (for example, your home directory), and then compare, move, or update the files to their original locations afterward. This works the same with complete directories as well.
In conclusion:
By using the method described above you can backup and restore a basic Linux install. We can use this method to give us a more sophisticated backup scheme by using a bash script and a few other backup details. Watch for upcoming write-ups explaining how we can save all configuration, system information, MBR and complete backup using such a scheme. No matter how complex your system, I find the “tar” procedure to be the most widely used and most reliable for any backup solution.
If every new iteration of Ubuntu can be a Windows killer and every new touch screen phone is an iphone killer; why can’t an open source, 64-bit, kernel mode, 100k line of original code, and with a funky name like LoseThos, be a Linux killer? Yeah, laugh it out. But don’t forget the infamous Linus Torvalds post at usenet - where he himself never thought much of the early version of Linux and look how far it has come today.
So what’s so awesome about this OS? As awesome as an early version of an OS written from scratch can be. To highlight some of the interesting aspect of this OS:
- 100% Open Source.
- ISO is a Live CD, so try it without installing it.
- Default kernel mode - screw security! We will crash it LIVE!
- “Your MultiCore experience with LoseThos will be second to none.”
- It reboots in 2 seconds.
- Has a new programming language based on C/C++.
So if you are a sucker for trying out new OS and tired of rebranded distro, you should check it out.
Every time there is a new Linux distro that is making a lot of noise in the Linux community, it is just waiting to be forked by someone. Most of these forks are cosmetic in nature and are generally design improvements of user interface and sometimes adding packages not installed by default or removing few not used by many. Some go as far as bundling them with custom kernel or using a different package manager. Ubuntu - being the most widely used Linux distribution - is also not immune to the clone/forks attacks. Today, we will look at some of the well-received Ubuntu based forks out there, which are not supported by Canonical.
Linux Mint is the most popular Ubuntu forks out there - most Ubuntu users who have switched to Mint are generally very satisfied with their experience. The main elements that distinguish Mint from Ubuntu are:
A custom collection of system management tools (Mint Tools)
A Unique user interface with custom theme - a lot better than the brownish theme you get with Ubuntu.
Default installations of plugin so that you can play most common media files out of the box. Unlike Ubuntu.
While Mint uses Ubuntu repositories for all software updates, it relies on its own repository for Mint specific packages.
Ultimate Edition (NOT Ubuntu Ultimate Edition) follows the tradition of Linux forks by having codecs of popular media files easily accessible by default for a better media experience. But unlike Mint, it is up-to-date with the latest Ubuntu build and has its own repositories for restricted drivers and repositories. UE is installed with large number of packages and Desktop Environments by default, hence the ISO is only available in large DVD formats. The author of the project also maintains Ultimate Gamers Edition for game addicts.
Based on Ubuntu 7.10, gOS (good OS) is an excellent example of what you can do with Linux and open source software. The whole distro is designed to work with mostly Google Apps and other online applications (Web 2.0 Apps). Though the design could use some work but IMHO it looks a lot better than Ubuntu default theme. The earlier releases were based on E17 desktop environment - the latest release has moved to Gnome as its interface of choice. You can think of gOS as an improvement of Ubuntu the same way Flock is an improvement on Firefox.
CrunchBang is a lightweight Linux distro with openbox as the default Desktop Environment. It was built with speed, usability and configurability in mind. It comes pre-installed with some popular applications not available in Ubuntu by default including restrictive drivers and codecs.
While there are many Ubutu forks out there, these four are the most interesting ones that caught my eye. It is important to note that, contrary to popular belief, Ubuntu Studio is not a fork but has the blessings of Canonical.
Hi everyone. Sorry about the lack of updates. As some of you might now, this blog (and the rest in the network) has recently been acquired by ientry. This is great news for me because it means instead of spending time maintaining the site I can concentrate on creating contents. Yes, I will be still here and I am in the process of building a team of writers for regular updates. If you are interested in a paid writing position drop me a line, and make sure you tell us a little bit about yourself.
On a more exciting note I have been in touch with Adrián Lamo recently and he has agreed to write for us as often as he can - so keep your eyes open for his articles.