Category Archives: Operating Systems

Customize with Conky

A while back, I started playing around with conky. It’s a really cool piece of software that lets you do some truly amazing things. It ties in tightly with lua, so if you’re familiar with it, you’re already a step ahead of me.

conky lets you add all sorts of information to your desktop. You can add processor monitors, heat monitors, uptime, disk utilization, network activity, the works. I’m not really particularly good at it, and I can still cobble something together that looks pretty nice (imho).

If you’ve got a couple minutes of free time and you really want to add some pop to your desktop, I’d suggest hitting The Google and digging up some information on conky. You’ll be happy that you did.

Mondays Suck

The clock on my computer is telling me that it’s 11:20 AM. It’s Monday, and everything has sucked today.

Work

Work drug me out of bed this morning with unresponsive web servers. Intermittent issues are always the worst. Took two hours to track down a web app that was only generating an error on one node of the cluster. Restarted the app and everything worked like a charm.

Phone

I decided last night that I wanted to root my phone. After the ICS update it’s been running so slowly sometimes it takes minutes to just make a call. Apps are barely usable. It’s pathetic really. I found a nice little article over on Lifehacker titled “How to Root the HTC Thunderbolt“. Seems promising since it’s only a couple months old.

First complication: “you’ll just need to download the batch script on this page, run it on your Windows machine, and follow all the instructions.” Ewww, Windows.

OK, this can be dealt with.

I fire up a Windows machine, download the necessary crap, and get my phone in a state that the app requires. OK, let’s fire this baby up!

Not only did the phone spontaneously restart, the Windows machine BSODed. I tried it twice more (because I’m stubborn that way) with the same results. It amazes me that people use Windows. What kind of POS operating system takes a complete dump running a glorified batch file? Finally gave up because I have work to do.

Tablet

My tablet is an old beater HP TouchPad that’s hacked to run CM9. Most days it does alright for itself, but lately everything is crashing all the time. I’m not sure if these later CM9 nightlys are just less stable or if the tablet is going down the crapper. Apps like GMail crash. Maps doesn’t even install due to some weird conflict. Google+ crashes. SwiftKey works but the tablet doesn’t seem to recognize that you’re typing on it so you can’t enter text. I get weird digital garbage in the conversation when I use Skype or Google Talk.

I’m about ready for something (ANYTHING) to work today. So damn frustrating. Mondays suck.

Experiencing KDE for the First Time. Again.

KDE

When I started using Linux back in the late 90s, I started out with FVWM95. It’s almost identical appearance to Windows 95 was very enticing to me. I was using Windows 95 most of the time, and the fact that Linux with FVWM95 was free was really cool. After FVWM95, I moved to Enlightenment with Gnome for the cool theming capabilities. Eventually the Enlightenment portion of Gnome faded away and I was just using Gnome.

I liked Gnome. Originally I was drawn to FVWM95 because it was so similar to Windows 95, but I liked Gnome because it wasn’t.

A desktop battle started between Gnome and KDE. I figured that if Gnome and KDE were competing, it was a good idea to try KDE as well, so I threw it on a computer and gave it a try.

The first time I tried KDE, I didn’t like it. That’s probably an understatement. Many people liked it, but to me, it was terrible. I ran back to Gnome pretty quickly. I’ve never really left Gnome since then. I’ve tried KDE probably a dozen times since that first time, but I never stuck with it. Every time I tried it, my initial dislike was only reinforced.

I’ve always loved the customizability of Linux. I love browsing the Desktop Screenshots on deviantART. There are some truly creative individuals there, and some of the things they do with Linux are amazing to look at.

What does that have to do with the story? I’m getting there, I promise.

One day, when I was browsing through the latest screenshots, something happened. I saw some of the really impressive screenshots were running software I didn’t recognize. After digging a little deeper, I discovered that they were running KDE. This surprised me quite a bit, but it inspired me to give KDE another shot.

I’m currently running Ubuntu 12.04 on my primary system, so I just dropped to the command line, fired up apt-get, and minutes later, KDE was installed. I fired up the new DE, and was greeted by a fairly unfamiliar environment. It took a little bit of getting used to, but after a few hours of use, I found that I was really enjoying using it.

Wait, what?

Yep, I was really enjoying using KDE. I liked the DE that I’d been virtually repulsed by for more than a decade.

I’ve noticed a few oddities with KDE installed on Ubuntu, mostly because I’m still using KDM as my login screen. To get a more full experience of KDE, I put Kubuntu 12.10 on a spare USB key, and booted my laptop with it. Of course, everything automatically detected and the laptop started with a full KDE experience.

Not only did I enjoy using it, it’s awesome. Unless something drastically changes in the next couple months, I expect I’ll rebuild my primary system to run on Kubuntu 13.04.

Phil Schiller Displays Apple’s Desperation

Desperate AppleReading the comments made by Phil Schiller in a recent Wall Street Journal interview, you could smell the stink of desperation wafting off the pages.

“When you take an Android device out of the box, you have to sign up to nine accounts with different vendors to get the experience iOS comes with. They don’t work seamlessly together.”

It’s pretty obvious that Schiller has either no idea about the Android experience, or isn’t interested in telling the truth. Of course, he went on to talk about Android fragmentation (which really has no impact on the end user at all).

This follows up a rare tweet he made regarding Android security.

To me, as an Android user, all Schiller has managed to do is display a complete and utter lack of knowledge or understanding of the Android experience and environment. He suggested that Android phones are cheap giveaways by carriers, ignoring the fact that iPhones are also given away (you can get an iPhone 4 for 99 cents on AT&T if you’re a new customer or upgrading an existing plan). This is typical of Apple, where facts have never mattered. Now as they watch the mobile market slip through their fingers, the desperation becomes more and more obvious.

Why I’m Grateful for Android Malware

Hardly a couple days can go by without some horror story about the latest Android malware. The one I think I saw most recently was a story about how Android faces more malware attacks than PCs in the United States. Now, besides sounding like click bate and total fiction, I find that I don’t really care about Android malware. Quite the contrary, I’m grateful for it.

Grateful for malware?!? Yep, and here’s why.

The Trojan Horse

Pretty much all malware on the Android platform is a Trojan Horse. For those unfamiliar with the Trojan Horse, it’s really just software that fools the person using the device into installing it. It doesn’t use any kind of software or security vulnerabilities. It attacks the person. All this boils down to is that any platform that has someone using it is vulnerable to a Trojan Horse.

Those Other Platforms

Are there platforms out there that have less malware than Android does?

Yep.

Would I use those platforms over Android?

Nope.

Why? Isn’t less malware good?

That depends on what you’re giving up to rid yourself of this malware. See, Android is very secure. Google goes to great lengths to protect their users from malware, and in cases where infection does occur through the Play Store, they can remotely repair your device. They’ve even implemented checks for apps that are sideloaded onto your device, which is where most malware infections come from.

Don’t other devices do this too?

Well, not really. Microsoft and Apple have more stringent restrictions on the apps that make it into their store, it’s true. There’s no real protection from side loaded applications because to even get an app sideloaded on to the device, it has to be jailbroken. The user doesn’t have permissions to install applications that aren’t approved by Microsoft or Apple respectively.

And that’s the gotcha for me. This is my device. I paid for it, but I need someone else’s permission to install software on it? I call BS on that.

Conclusion

Sure, Apple and Microsoft limiting what the user can install theoretically makes the platform less vulnerable to malware, but it does it by restricting what the user can do click here for more. It’s taking away your capabilities on the device. It’s making it more of a toaster oven than a smart phone. I guess that’s why I find myself grateful for Android malware, and every time I see some news article regarding Android malware, I’m more grateful for it. It means that I continue to have rights on my device that users of other platforms can’t claim. To me, that makes malware something to be grateful for.

Microsoft Screwing The Linux Foundation

A while ago, The Linux Foundation announced a plan to allow for Linux to boot on systems with Secure Boot enabled. Lately, it has come to light that Microsoft is screwing with The Linux Foundation, and not granting the key required despite the fact that The Linux Foundation has already paid for it. Oddly enough, certain Microsoft apologists still believe that this is the fault of The Linux Foundation, despite the fact that there is nothing to support that contention. Here is a list of links that disagree with that fantasy.

Of course, this won’t convince Microsoft fans. Facts seldom do.

Intel and AMD Not Supporting Linux: Why It Just Doesn’t Matter

It’s been an interesting couple days on the processor front, and many think that these past couple days haven’t been all together positive. While I can see where that impression may be gotten pretty easily, I’m here to say one very simple thing. It just doesn’t matter.

First, this is what happened.

Intel’s Clover Trail Won’t Work With Linux

On September 13th, as part of their Intel Developer Forum, Intel claimed that Clover Trail “is a Windows 8 chip” and that “the chip cannot run Linux”. Clover Trail is a new version of the Atom processor, which is used in tablets for the most part. Claiming the processor is “a Windows 8 chip” seems a bit odd considering Microsoft’s complete lack of a presence in the tablet market. Intel later clarified their position saying, “Intel has plans for another version of this platform directed at Linux/Android; however we are not commenting on the platform specifics or market segments that at this time. Stay tuned.” It’s unclear if this was the original intent, or a reaction.

AMD’s Hondo Processor Will Only Support Windows 8

Shortly after the announcement from Intel regarding the Clover Trail processor, AMD came out with their own claims regarding their own Hondo processor. Steve Belt (corporate VP of ultra low power products at AMD) said, “This is a Windows 8 product, only. We’re not doing Android on this platform, at least not now.” Again, the Hondo processor is a processor aimed at the tablet market, which Microsoft has zero presence in. He went on to say, “It is a conscious decision not to go after Android. We think the Windows 8 space has a lot of opportunity, there’s plenty of TAM [total addressable market] there for us to go at. So we don’t need to spread ourselves into other markets, we think Windows 8 is a great place to start. Down the road we may look at Android, right now we’re focused on Windows 8.”

Who Cares?

So the big question on everybody’s mind is, what does this mean for Linux and Android? The answer is much more simple than you’d imagine. What does it actually mean for Linux and Android? Answer: “Not a damn thing.”  While Intel claims that here will be an Android specific version of Clover Trail available shortly and AMD is banking on Microsoft, it really doesn’t matter.

Linux, and by extension Android, will run on whatever its developers want it to run on. Intel didn’t help out Linus Torvalds when he originally wrote the operating system in the 90s, and Linux developers don’t need Intel’s help now. I have full confidence that there is a Linux developer out there that could write a version of Linux that can run on my toaster if he or she so chose. Support from the company is not a requirement for Linux or Android.

Think I’m wrong? I’d love to hear from you in the comments.

My Wife’s Thoughts on Linux

Custom Wedding Cake Topper made by Esther Taal: http://www.fliepsiebieps.com/

Right after the start of August, my wife finally had enough of Windows. Her computer crashed, and it was the last straw. I convinced her to try Linux (Ubuntu specifically).

A couple of days ago, I asked her to write me up a small little blurb on what she thought so far. I thought that what she wrote was perfect, so I’m just going to paste let it stand on it’s own merits!


My first impressions of Linux (on my computer)

To start with a little bit of a background, I’ll tell you a little bit about the reasons why Linux has taken up residence on my desktop machine, and what sort of “prior” experience I had with it. I can’t say that I was ever 100% delighted with Windows, and despite the frustrations I’ve experienced with it, Windows has done what I needed and it was there (i.e. it came installed on my computers, ready to go). My games and other applications ran on it. A few things I bought “after market” for my computer, like a TV capture card or somesuch had to be tinkered with a fair bit, but they worked eventually in Windows. It has been this way for me for nearly two decades.

Fast forward to the past 9 months or so. I bought my newest computer when the one before it up and died (in all actuality, the motherboard probably went out, but it was about time for a new one, so why not). It started out that my internet connection would cut out from time to time. That got really irritating after a while, and when my computer died again (with it being less than 6 months old), it was replaced with a new motherboard and all was supposed to be right with the world. Wrong. My internet would still go in and out, and it looked like an issue with the wireless internet adapter. That was, until Mike suggested I try out a Linux bootable CD just for kicks and giggles. And the internet never went out. Shocking.

I’m not afraid of Linux. I know better than to think that Linux is all command line, all intentionally super user-unfriendly, and only designed for computer techy geeks. I mention those preconceived notions because when you mention Linux to someone who has no idea what it is, they just assume that it’s non-graphical and does something really weird. So, again, I’m not afraid of Linux. I’m lazy. I’m too lazy to change off of what was just there and what was working. It doesn’t make a whole lot of sense, because I had to put a lot of work into making things “go” in Windows, so why would I be afraid of putting in the same amount of work to making things “go” in Linux? I saw my husband with Linux on his machine, and he began playing all of the games that he’d had in Windows. He was starting to sell me.

The breaking point was when my Windows side was not holding a connection to the internet, and it was becoming more of a pain and a time suck to get basic tasks done. Knowing that I wasn’t totally ridding myself of the Windows side, I just said…do it. Mike…do it. Put Linux on. Make it work. So he did. Now here are my perceptions.

Speed: Yeah, there really is no contest. My computer booted Windows pretty quickly (usually), but it boots Linux even faster. I didn’t think that was possible. It loads just about everything just as quickly, if not more so, than Windows. In terms of speed, it also doesn’t seem to slow down when I stress programs out. I’m notorious for having 20-30 different Word/word processing documents open at the same time while grading. Simultaneously having at least a dozen tabs in Chrome going. Throw in a couple of PDFs and maybe a spreadsheet, and that usually slows things down on the Windows side, but I don’t notice a whole lot of slow down on the Linux side.

Programs/Applications: There are a lot of spiffy little applications that go with my Linux side. I think they’re actually a lot easier to get a hold of than something that would be an equivalent in Windows. Little widgets, things for desktop customization and things to make your desktop more streamlined and clean. Honestly, my desktop has never looked so clean (and no, it isn’t because I just haven’t cluttered it up yet!).

OK, now on flip side of things, possible negatives. Ubuntu comes with (I think) Libre office, which has had some quirks (as in, it isn’t Microsoft Office, and although close, it has mangled a few documents, made speakers notes invisible in some presentations, just to name a few). I play a few games, and I know my husband has figured out ways to make them work, those modifications aren’t on my system (yet), and they took a bit of research to figure out. As I said, I play a few games, and rarely, but it could be a bigger problem for those who have a bigger variety of games that they play (that were designed for Windows primarily).

Interface: It doesn’t look like Windows, and there are some differences for those switching over from Windows. Nothing major. There’s no big Start/Windows button. I use alt-tab a lot, and that does work, but a little differently (I actually like the Linux function better). That’s all I’ve got there.

So my initial impression is that it works. That is more than I can say for the Windows side. The speed is faster, the interface is cleaner, and the ability to customize things to look how I want them to look is there and easy to play with. Only downside I see now is that I want my Star Trek Online, The Sims, or Civilization V to run, but no big deal.

Mike asks how it is working for me, and I can see how giddy he is waiting for my response (because he’s converted another…LOL!). I’m not one to get all super excited about my operating systems, but he should know that he’s got a winner on this, even if I’m not going all crazy excited about it on my system now. I’m glad it works. If it makes my husband all happy inside, that’s an added bonus 🙂

Tux: Modern Olympic Champion

The Olympics are known throughout the world and have been going on for centuries. The first Olympic games were thought to have occurred in the sixth century BC, and it consisted of foot races only. It started as a race for young women to compete for the honor of being a priestess for the goddess, Hera. A second race was run for young men for the right to be a consort for the priestess.

A lot has happened since then.

This year, the Olympic games are being held in London, and champions from all over the world are attending in the hopes of taking home Olympic gold.

One champion there is nothing like the others, and you won’t see in any of the events. It’s Linux.

When the Olympic Games needed a server to host their web page, they chose to rely on the same server that anyone in the world can download free of charge. Linux. The web services are provided by Apache and PHP, the database by MySQL. Like other Olympic competitors, the demands placed on Linux will be high. The website will be responsible for distributing stats for all of the events, receiving their information and making it available to other organizations to broadcast. That includes the event video distribution organization. You know all that information you see on the bottom of your television screen during the broadcast? That will be coming from the Linux server.

Don’t be confused though. There were other runners in the race. The Olympics could have chosen a Microsoft Server, or a traditional Unix server. They could have run their DBs on MSSQL or Oracle, but they didn’t. They chose a LAMP server.

To me, this shows a great deal of faith in the Linux environment. The Olympics chose to use the same software you can download from the Internet free of charge for their mission critical needs, and the world is watching. If Linux stumbles, the world will see. If Linux runs it’s race with speed and grace (which I am pretty sure it will), it will be a great victory for Linux.

Here’s to Olympic Gold in 2012.

Fun with File Permissions – Part 4

And we’re back for Day 4 of the Fun with File Permissions Nerdathon! On Day 1 we covered our standard DAC permissions. On Day 2 we covered getfacl and setfacl, and on Day 3 we covered lsattr and chattr. Today we’re going to close out our run by taking a quick look at the sticky bit!

I’ll admit right out of the gate that I know the least about the sticky bit than any of the other day’s topics. If you see something I get wrong, don’t hesitate to correct me in the comments. I’ll update the post with the correct information.

So stick bits really started out in Unix in the 70s. You can still find pictures of it with big hair and bell bottoms. The original idea was that it was meant to be used on executable files. When the bit was flipped, the executable file would stay resident in memory so that it could be quickly loaded again. There were issues with it, like when you had to update those executables, you had to remove the bit, upgrade the file, and then replace the bit.

The functionality evolved. Linux has never supported this implementation of sticky bits.

Today, sticky bits are used to protect files from being removed when you give another user full rights to the file. So, how does this thing work?

Setting the sticky bit is easy. You just use the chmod command just like you did back on Day 1:

chmod +t test

This will set the sticky bit on a file, or in my case directory. Doing an ls -al from inside the test directory you’ll see this:

mike@PreciseApex:~/test$ ls -al
total 28
drwxrwxr-t 2 mike mike 4096 Jul 20 20:15 .
drwxr--r-- 56 mike mike 16384 Jul 20 19:20 ..
-rwxrwxrwx 1 mike mike 0 Jul 20 20:15 file

In that directory, I’ve created a file called (originally), file. You can see that file has full read write execute privileges. You can also see the permissions on the . directory above oddly end with a “t” instead of an x or a – like you’d expect. That tells us that the sticky bit is active. If you were using the sticky bit on a file, a lowercase t would indicate that it’s not executable, and an uppercase T would indicate that it is.

So, let’s try to kill this file.

I login with my wife’s account (shhhhhhhh), and do an ls -al in the same directory:

amy@PreciseApex:/home/mike/test$ ls -al
total 28
drwxrwxr-t 2 mike mike 4096 Jul 20 20:15 .
drwxr--r-- 56 mike mike 16384 Jul 20 19:20 ..
-rwxrwxrwx 1 mike mike 0 Jul 20 20:15 file

Things look pretty much the same in this account. You can see the lowercase t on the end of the directory permissions, but other than that, it looks like I’ve got full rights to file. I can open that file, modify that file, and save that file. No problems, even from my wifes account. Where the sticky bit comes into play is when I try to delete the file. An rm -f results in:

amy@PreciseApex:/home/mike/test$ rm -f file 
rm: cannot remove `file': Permission denied

Dun dun dun. Permission denied. If I do the same command from my user?

mike@PreciseApex:~/test$ rm -f file 
mike@PreciseApex:~/test$

No errors. The sticky bit will allow the owner of a file, and root (or a user with equivalent rights) to remove the file. If you want to remove the sticky bit from a file, it’s as easy as:

chmod -t file

And so our four days of Fun with File Permissions come to an end. I had a great time writing about this. It seems on the surface like it would be such a dry subject, but there are so many fun intricacies that it’s so exciting to experiment with. Please, if I didn’t cover something that you could have liked to see me cover, please mention it in the comments.