Cats are pretty discerning about their choice of operating systems. Most cats prefer Linux. It may have something to do with their obsession with Tux, though. We're not sure.
Today's silly blogpost is about cats and GNU/Linux users. Not only are cats pretty smart, but so are the folks using the GNU/Linux operating system. Many cats who use Linux also own a few Linux.com members.
Here it is... the blatant plug for the Linux.com Community Groups --> Cat Lovers Group: http://www.linux.com/community/groups/viewgroup/671-Cat+Lover%27s+Group
We know you Linux folks have cats in your household. The cats have ratted you out, so to speak, on an email poll that we sent out last week. Why aren't you at the Cat Lovers Group?
Stop on by... post your kitty pics. Have some FUN!
Until next time... (when I promise something a bit more useful)
V. T. Eric Layton
CLI Tip #1 mkpasswd
Hi folks, I love working on the command line interface (CLI), aka terminal or console, so most of my blog entries will be about a simple, easy to use and (I hope so) useful tip.
Do you need a really random password, say 10 characters long, use this:
mkpasswd -l 10
This will generate a 10 characteres long string
You need at least 4 digits, and 3 uppercases and none special character in a 15 characters password:
mkpasswd -d 5 -C 3 -s 0 -l 15
You can even apply immediately the password to any valid user, just use his/her username at the end of the command and ready, of course, dont forget to tell the guy about his new password.
Mkpasswd is part of the "expect" package, so if you dont have, no problem, just install expect with your favorite installer.
Cheers, and wait for my next CLI tip.
Security vendor Kaspersky Labs found malware on new Windows XP netbook, just out from the factory. The firm is warning users to take extra precautions, and ensure virgin systems are malware free before connecting them to the Internet.
If You is owner a netbook - be attention ...
Everybody wants the latest and greatest. And in the computer world where everything seems to be outdated quarterly (let's be fair, it's slowed down quite a bit) we need to stay at the top of the world. Right now the top is 64-bit computing on x86. But what does that really mean for you and me?
The processor by default boots as a 16-bit processor (real mode) which is then transitioned into 32-bit (protected mode) by most modern operating systems. Life is well, everything seems to be just fine, but as the world pushes the boundaries so does my memory requirements. Sure my 32-bit memory address space allows for fast access to 4GB of memory, but the world is expanding and soon I'll be needing 8GB or more to keep everything running. We have a little trick called Page Address Extension (PAE) which will let us jump through a few hoops to get access to 64GB, but the page table crawling isn't particularly fast and now we just have that 64GB limit which we'll catch up to in no time (think High Performance Computing - HPC). So what do we do to plan for the future?Let's do the same thing IPv6 did to solve our IP deficit: move to 64-bit (long mode). Now we have a ceiling of somewhere in the realm of 256TB (and we shouldn't have to worry about the future for another five years or so). But watch out, this new memory limit isn't all good. You're now much more vulnerable to cache misses resulting from the increase in size for addressing. It's a good thing Intel has really large L2 caches, but don't look for anything too drastic in the L1 size for a long time.
Great, so we have more address space for memory, what else do we get? Well all you math nerds out there will appreciate the increase in precision for primitive data types, but the average person won't notice any difference. I know what you're thinking: "Is this 64-bit stuff all just a bunch of hype to sell computers?". Well, when you put it that way: yes. But the wonderful thing about the 64-bit roll-out is that AMD got to it first, so whatever they did to set the standards Intel had to follow (interesting side-note: AMD pays royalties to Intel to use 32-bit x86, but Intel pays royalties to AMD for 64-bit x86). The best part of this spec solved the biggest problem the x86 platform has suffered from since the beginning: register starvation. What does that mean? We all know that RAM is faster than your Hard Drive, and that your L2 cache is faster than RAM, and L1 is faster than L2, but the fastest memory is actually on the processor in what is known as registers. The 32-bit x86 spec has eight general purpose registers. Basically everything that happens on the system is passed between these registers and various memory, but that leaves a lot of overlap and massaging of data to get work done. AMD doubled the number of general purpose registers to 16, making it the same as RISC processors from before which consistently beats the x86 CISC architecture on performance time after time (remember kids, the best one doesn't always win). So what do these extra registers get you in the end? If you look at Apple's advertising for the move to 64-bit you get a 20% performance increase just from the additional registers (but remember, your software has to be 64-bit to take advantage of this).
So, is this 64-bit stuff really worth it? Like everything in life, it depends. Sure a fast new processor will speed up your applications, but if you're keeping all your 32-bit applications on a 64-bit operating system you'll probably see a performance decrease. The point of all this is to say that yes the future of the world is 64-bit, but you don't have to use it if you don't want to (and you probably won't as 64-bit software is few and far between - it's not always just a re-compile) and most of the time you don't want to. Windows has a long way to go before you'll see a significant 64-bit presence, Apple has a huge head-start over Microsoft, but the UI won't be fully 64-bit until Snow Leopard later this year, but that darling Linux is at the head of the game in this regard. Remember, it all depends on your applications.
The Netbook is the coolest toy I've ever seen for Linux. As someone who loves small screens on laptops (who doesn't want a super thin 12" to carry with them to meetings or to pass through security at the airport) but can't stand the insane prices, I've had to stay in the 13" realm for a while. Then along came this idea of a super-cheap 9" laptop with a tiny keyboard that just looked to cool. That is until you tried to use it - typing on that keyboard was unbearable and the large bezel around the screen made it look as cheap as it costs. But then along came these 10" models with only a slightly reduced keyboard size (95% being the norm) which peaked my interest. Only one thing stood in my way: rationalizing the purchase of another laptop. This one was pretty easy: since I ride my bike to work each day I'm afraid to have one of my nice machines in my backpack which would surely be destroyed in the event of any crash no matter how minor. Great, now I can buy one. $350 later I'm pulling out this only semi-cheap looking laptop with a pathetic three-cell battery and no CD-ROM.
What if I could have a cheap ultra-portable Windows laptop which could connect to my company's VPN (64-bit Linux just can't do it) and run Outlook (Exchange 2007 broke Evolution)? This idea kept flirting with my mind, so I decided to keep Windows XP SP3 32-bit on there. For a while. Now, I won't pretend to be a Windows expert, but I'm a pro at 2000 (which I will argue was a really good OS) and was able to really trim down the install into the most per-formant XP to ever see the light of day! Internet Explorer was unusable, Firefox was painful, but surprisingly Safari seemed perfect for the job. Things were going alright for a few days, but I had to keep restarting the machine every half-hour or so because some application I needed just won't start (and don't even get me started on the delay after clicking on the "start" menu). Maybe I just had a bad install, but XP is no good so Windows not an option (although I hear Windows 7 is good on these things, let's see what happens when that comes out).
Let's talk about the Intel Atom processor running these things. It's a 32-bit single-core processor with Hyperthreading (pseudo-fake second-core), no out-of-order execution engine, and very low power requirements. Well the low power part sounds good at least. Hyperthreading was a terrible joke I though Intel kept hidden in the closet until the Core 2 came around, so I never thought I would see this again (apparently those marketing guys have more say than the engineers again, next step 20GHz processors with a 50-stage pipeline). The lack of an out-of-order execution engine also scares me (imagine removing fuel-injection and going back to carburettor); but that would explain XP running slow with the additional branching due to module message passing.
This thing needed a monolithic kernel; this thing needed Linux. Don't bother with those "Netbook Edition" installs if you know what you're doing, the interface is made for people afraid of the word "Linux." I went ahead and installed the latest and greatest Ubuntu Desktop. I've heard several horror stories about old Ubuntu on Netbooks, but Jaunty is up to the task, especially in a corporate environment. VPN's requiring Java won't run on 64-bit Linux (yet), but 32-bit works well (although I have noticed in my environment that it loses connection every 21 minutes). OpenOffice is always a pleasure to work with, but if you install 'Basket' as a OneNote replacement, and you'll have your co-workers envy. Be careful though, if you're like me and have a Solid State Drive (SDD), you'll want to make sure to not use a journaled file system: use ext2. As there are a finite number of writes to the drive, you'll need to cut corners in this area every chance you get (but be sure to backup, we have journaled file systems for a reason). You will see some swapping with the 1GB Netbooks, I haven't seen any when I maxed it out to 2GB. That doesn't mean you shouldn't have a swap drive, but increasing memory will help the lifespan of the SSD.
There's a lot of FUD coming from Microsoft and their partners these days about Linux being a horrible option for the Netbooks (stories of the Linux options being returned more than their Windows counterparts). I'm more inclined to believe the stories about inept salespeople over-promising what these devices are capable of. From my experience, even though it is only a few weeks, Windows is a poor option for these devices, and Linux is the only viable solution (I would love to see some desktop BSD in this area though, competition is good).
So what's the verdict? These things are fun little toys on the cheap which can do a lot for you in both a personal and professional environment. It's not a full featured laptop, and shouldn't be treated like one. But if you want to surf the net, check your email, chat with friends, or run office productivity software you'll be pleasantly surprised. So will I shed a tear if I crash my bike and with it my Netbook? Yes, but it'll probably be from the broken collar bone and road rash. I already have my eyes on a super-thin six-cell Netbook from Asus, and all I need is a good excuse.
If you just followed my previous blog about Gentoo you'll probably trying to understand what "easy upgrade" is for me and what I've to do for maintaining my system up to date.
If you take a look at the Gentoo Handbook you'll see how you can install and upgrade your system, expecially read Gentoo Upgrading Guide for making these tasks.
Syncing Gentoo portage is basically like the BSD upgrade, for a quick upgrade I've just made a script few years ago with the same commands listed in Upgrade guide, please feel free to contribute or mail me for corrections on the script.
But before the script it's important to understand the golden rule: read what your computer is writing to you, I think it should be applied to everything but expecially read what is saying, that's why I've placed a pause after each command; for example if you need to upgrade portage because it's telling you so then you've to do this so interrupt the script and upgrade portage, then re-run the script again from the step you're.
Comments and suggestions are welcomed:
echo -n "hit any key to continue..."
read -n1 -e -r 2> /dev/null
echo "System Upgrade Script"
echo -n -e "portage sync ? ([y]/n) "
read key -n1 -e -r 2> /dev/null
if [ "$key" == "n" ]; then
echo "Portage Sync"
echo "Complete system upgrade (emerge --update --deep --newuse world)"
emerge --update --deep --newuse world
echo "Start : "$START
echo "End : "$STOP
echo "Configuration files upgrade (etc-update)"
echo "Dependencies Clean (emerge --depclean)"
echo "Dependencies Check and Rebuild (revdep-rebuild)"
echo " System Upgrade Completed"
RSync connection to gentoo hosts is maded only if you need it, if you need to upgrade your system just make it once a day, it doesn't make sense to flood gentoo servers with rsync requests, and of course you'll be banned if you do so
Hope it helps
Any hints ?
Linux Distribution Chooser
is thery intresting thing. I get 90% Gentoo and 90% of Slackware :)
I'm what you'd call a Linux Veteran. One who's been using Linux since long before it was considered "cool" or "pretty". In fact, I recently reminisced with a friend at being around when the advent of ISO releases was considered new. I remember installing Slackware 4.0 from a handful of floppy disks on an old 486 DX. "What's a floppy disk and what's a 486 DX?" you ask. Wikipedia is your friend, my friend.
Aside from relic grade hardware and floppy disks that can't hold even a fraction of what a cheap flash jump drive can hold today, I do remember early desktop Linux. Trust me, it wasn't pretty.
With the release of Ubuntu and its countless derivatives, the Linux community has grown exponentially. People accustomed to modern GNOME, KDE and XFCE releases need to take a look at the ghost of desktop Linux past. Windows and Mac OS aren't the only ones with a checkered past of ugly (but plenty useful) desktops and GUIs. Along with being around when Slackware 4.0 was a new release, I was also around when major leaps forward in OSS took place. I remember when KDE 2.0 was released, I remember when GNOME 2.0 was released and when anti-aliased fonts were considered eye candy. Also at this time, there was no such thing as XFCE.
As a Linux old timer, I feel that my perception of eye candy in Linux is much more conservative than the average desktop Linux user of today. I use Linux as the only operating system on a few of my systems and prefer a near cherry GNOME as my desktop environment. Things like Compiz do nothing for production in my opinion. The rotating cube when switching between workspaces and wobbly windows look nice in screenshots and desktop screencasts but I fail to see what this brings to productivity. Maybe I'm just an old timer but I'll gladly settle for my rather boring composite enabled Metacity and Avant Window Navigator.
Look at HTML code of http://www.compiz.org
Hint: search after the "style="display:none".
das SocialNerds Webteam Brainstorming hat ein Ende. (Infos auf: http://socialnerds.org/webteam)
Der Brainstormingthread (http://socialnerds.org/webteam/brainstorming) wird geschlossen.
Die Beiträge sind via http://wiki.socialnerds.org/webteam abrufbar.