Archive for the ‘linux’ Category

Favorite Unix Directory

Friday, April 17th, 2009

Lion share of my writing here gets done on the weekends. Some are better than others in terms of productivity. If I can knock out 4 articles during those 2 days it really takes a load off my mind. I can then take it easy during the week, and not worry about cranking out more content to fill my silly self imposed quota. This weekend was Easter and it totally killed my productivity.

Rather than skipping a day, I decided to post a last minute silly Friday poll:

Wwhat is your favorite unix directory and why?

Favorite Unix Directory
  • Add an Answer
View Results

Me? Obviously I like /home cause that’s where I keep all my “stuff”, but that’s an obvious choice. To tell you the truth I was always drawn to and strangely fascinated by the pseudo devices such as /dev/random and /dev/null. The former is basically an entropy device producing endless, pseudo-random output. The later is a black hole which swallows all the input and never becomes full no matter how much you write to it. They are interesting on a philosophical level because of the two primal concepts they represent - chaos and oblivion.

The other pseudo devices like /dev/full and /dev/zero are not as interesting so I didn’t even include them on the list. Feel free to add them though. As usual, be nice and don’t abuse the write in option. Not that you guys usually abuse it. Surprisingly enough, this blog is one of the few places on the interwebs where the Norris Rule only applies to like half of the polls. I’m just saying that I will go in and delete inappropriate entries if needed.

Anyways, pick the directory in the poll and tell me why you like it in the comments. Being windows user is not an excuse for not participating. You can use windows if you like it - I don’t care. But you should be at least a little bit familiar with unix and linux - os agnosticism is good for you.

TI Extensa Scholar ESS2

Monday, April 13th, 2009

My ancient Compaq Presario is gone. You know which one I’m talking about, right? It was the machine that used to run the Nethack server and then was turned into a very lightweight laptop running Hardy with Ratpoison. Well, it died on me recently. Cause of death? Old age I presume.

The damn thing simply stopped charging one day. Either the AC adapter gave way or the internal power supply went to the big data center in the sky. Either way, the battery juice ran out and the laptop is now just a paperweight. I could buy a new power supply, but frankly, I don’t think it’s worth it. The machine was ancient and in a less than perfect condition (cracks, scratches, dead pixels, etc…). There is just no point in investing any money into it.

The good news is that I found an even older, and slower computer to replace it - a Texas Instruments Extensa Scholar ESS2:

Texas Instruments Extensa Scholar ESS2

Next to this baby, the Compaq looks like a speed demon. The Extensa is equipped with 133 MHz CPU, sports a whopping 16 MB RAM and has an impressive 1.3 GB hard drive. This thing is ancient beyond words! It is also in much worse condition than the Compaq. Both batteries on this system are dead. The main battery is the size of a a small club, and I’m pretty sure it could be used as a deadly bashing weapon in a pinch. But I’m not worried about that - I can just keep it plugged into AC at all times. What is worse is that the CMOS battery is fried as well. This means I can’t change any BIOS settings such as, for example, the boot order. Or rather, I can change them but they don’t stick.

This effectively means I can’t boot the machine from a CD to install linux. Fortunately the laptop came with an external floppy disk that is the first boot device. So I could use a floppy boot loader of some sort that would punt me off to the CD drive and allow for CD based installation. Slackware ships with the right tool for this. It’s called sbootmgr.dsk. Just create a bootable floppy with that image with RAWRITE, pop it into the drive and you will be presented with a nifty boot menu. The only problem is that I no longer own a computer with an operational floppy drive. The Compaq had one, but it is dead. I actually had to locate an old computer at work, and create this boot disk there.

The question now, is what to do with this machine? I want to install linux on it, but I’m not sure if Ubuntu will actually run on this thing. Any recommendations for super-light linux distros that would be good for this machine? I will probably run it X-less, or with a very light window manager such as ratpoison.

Here are few caveats:

  1. The laptop does not have any USB ports
  2. It has no network card of any kind
  3. It does have a PCIMCIA, but…
  4. I do not have any PCIMCIA ethernet cards at home
  5. I only have the Linksys WPC54G ver 1.2 Wifi card
  6. My Wifi is WPA encrypted

No matter which distro I choose, I will need to figure out how to get that damn Linksys card working. Some distros make it easier than others. I believe newer releases of Ubuntu might actually support it out of the box. In the past however I always had to use nidswrapper for it.

Perhaps I should get myself one of those more widely supported wifi cards for my experiments with these ancient machines. Anyway, what OS would you put on it given the above parameters. Keep in mind that the machine only has 16MB of RAM and 1 GB of HD to work with.

OS agnosticism is good for you

Thursday, December 18th, 2008

I was talking to a student recently about the MS Office 2007 ribbon feature and how it throws many people off at first. I asked her if this was also her experience, but she replied that she had no major problems adjusting to it. They simply changed where things are, but the icons and names of most of the features are still roughly the same, she told me. In fact, she told me that the ribbon reminded her a little bit of the office suite looks on her MacBook.

Ladies, and gentlemen, I submit this as a proof that using more than one operating system on a regular basis is good for you. In fact, quite a few students in my two classes were Mac users. I know because several of them brought their laptops to school and wanted to use it for a presentation and couldn’t because the projector in the classroom had only a standard VGA cable. None of them thought to bring the mini-DVI to VGA extension - they probably never even bought one. Still, I have noticed that those students were the ones who rarely asked the questions of the type “how do I do X”. They were the ones able to work with the lab handouts and locate desired functionality by looking on the screen shots. These students were inherently more adaptable (at least to some degree) because they have been exposed to more than one way of doing things.

Your work-flow on a mac is slightly different from the work-flow on the PC. Asa result, any new Mac user is forced to go through the adjustment period when they figure out how to do task A, B or C on their new system. They learn how to explore and familiarize themselves with a new system. They are aware that different systems accomplish different tasks in their own unique way. They learn distinction between basic concepts and their implementation. Next time they are exposed to an unfamiliar interface, they are better prepared to deal with it.

The non technical folks who live firmly entrenched in Microsoft’s monoculture often memorize common tasks by rote. They remember which menu option, and which buttons to click but do not try to understand why. These are the people who like to take notes when you tell them how to do something. They go, “hold on, hold on, I go to Tools, then Pro-per-ties and then click on Add Vance… Oh, it’s Advanced… What’s next?”

Sometimes there are many ways to accomplish a task. For example, copying and pasting. In most applications you can do it using the context menu, the Edit menu or the keyboard shortcuts. Some people will learn just one of these methods, and be at a complete loss when it is unavailable. Whenever you change the interface, they are lost and must slowly learn to use the software almost from scratch.

Of course, there is nothing stopping someone from learning how to use a Mac this way - memorization, note taking and rote drills. It is not uncommon. But the very process of “switching” tends to do something to people. When the switch is done out of ones own free will, it tends to trigger a sudden realization in most people. The Apple software does almost everything that the PC software used to do, just differently. There are different ways to accomplish different tasks. They unknowingly take the huge cognitive leap that allows them to understand machines better. This is why so many non-geeks love their macs so much, and keep telling everyone how easy their OS is to learn. It is not because of the design on OSX (although it may be part of it). It’s because the process of switching the OS opened up their minds, and expanded their awareness. It is easy for them, because they have learned how to learn new OS’s.

A lot of people hate Apple, and the culture that surrounds it. I don’t. I am thankful that we have this system which to me is a small beacon of hope. Unlike Linux, Mac OS seems to be attractive, and accessible to the mainstream public. And because it teaches people that you can actually switch operating systems it does open up new unexplored avenues for linux adoption. Think about it - a person who can use both OSX and Windows with a relative ease, is likely to be open to yet another alternative operating system. OSX can be the gateway drug that may lead some to Linux. Not everyone, but some. And even if it doesn’t, it shows them that there exists a world outside the Microsoft. It challenges the MS monopoly - and that is a good thing.

Virtual Workspaces

Thursday, November 20th, 2008

I was going through my Google Reader recently and I saw this post about workspaces and started thinking. Didn’t I do a post like that before? I mean, I probably had to, right? Out of all the topics out there, I’m pretty sure I had to mention this at one time or another. Besides, I have a vague recollection of writhing about it.

It turns out I was right. I did write about it last year. Thank you Google! You are by best friend, and nowadays that I actually figured out the site map thing (and by that I mean I found a plugin that will generate them for me) and I’m all indexed up you often work better than the shitty Wordpress search. You know what I’m talking about no? If you don’t look for the search box on top of the side bar. That defaults to the internal Wordpress search, but I might actually switch it over to the googles one of these days.

Anyways, I digress. Digressing is probably one of the things I do well. It is also one of the reasons why my posts are longer than they need to be most of the time. The other is my tendency to use seven sentences where one would be enough. Being concise is a skill that I have never mastered. I am always amazed when people take my 15 minutes of rambling and abstract it into a 5 words or less. I’m like - wow! Yes, that’s exactly what I meant. Of course being a long winded writer has some benefits - for example I never had to worry about meeting length requirements on school papers. My friends were doing all these tricks with changing the font size, changing the face to the widest one available. I’d just write the damn essay, notice it is 3 pages to long, then cut some stuff out, rewrite bits to be shorter and I was done. And that was when I was speaking strictly on topic. Not like I’m doing now.

Anyway, I re-read my earlier post and decided that - what the hell - let’s talk about this again!

How do you organize your virtual workspaces on your machine? Do you organize your windows based across worskpaces based on some sort of order, or randomly assign them to the virtual desktops on a first come first served basis. I’m surprisingly organized when it comes to my worskspaces. Surprisingly, because you wouldn’t be able to tell that if you had seen my actual desk where everything is arranged using a stack methodology. ANd I mean that literally - I stack things on top of each other until they fall off which is what I call a natural stack distribution.

My virtual workspaces however are nearly arranged like this:

workspaces.png

It pretty much goes like this:

  1. Email - first workspace is always for work/school email. My personal email lives on the second desktop because it is web based, but my work and school emails live inside Kmail and always are located on the workspace number one.
  2. Web - second desktop is for firefox, and assorted windows that I use for web browsing, downloading shit from the web and etc..
  3. Code - third desktop always holds my IDE. More often than not it is Komodo Edit which I like because it has limited vim bindings. Sometimes it is Eclipse though.
  4. Virtual Machines - my windows XP instance lives here. I use it to run shitty Windows only software like Monarch, Office 2007 and some other proprietary apps that my company supports.
  5. Stuff - this is the workspace where I open all the random windows that don’t fit anywhere else - like Dolphin for file browsing, random shell windows, random Vim windows, and sometimes Gimp when I need to edit some images (which is almost never)
  6. Remote - last worskpace is reserved for remote desktop sessions for the servers that I maintain. Usually they are rdp sessions, but I sometimes I have a VNC window there (for remote support stuff)

How about you? How do you organize your desktops?

Oh, a word about windows - I have yet to find a virtual desktop manager for that OS which would work the way these things work in Linux. The MS Powertoy is slow and buggy in my experience. I found the popular VirtuaWin to be ass backwards and counter intuitive when it comes to moving window across the desktops. The Sysinternals Tool is nice but so bare-bones that it doesn’t even have the functionality to move windows between desktops. Virtual Dimension was possibly the only tool that I knew off that would actually show you what is on which desktop (the way KDE pager does) but it did not integrate into the task bar, and it has not been updated in over 3 years. So meh… I’m not using workspaces on my Windows box. Then again I hardly do any coding on Windows anymore and for entertainment I usually either run Firefox or fullscreen video games so I don’t really need the virtual worskpace functionality for that.

Any suggestions for a working windows virtual desktop manager though?