Categories
Gaming Linux Ubuntu

Steam for Linux, with Repository, but no GPG Key?

Steam For Linux Now Available To All Users ~ Web Upd8: Ubuntu / Linux blogGreat job on making Steam for Ubuntu there, Valve, but (boo! hiss!) on not including the damn key with the installation so people can actually update it when they install it.

This blog mentions how to fix it, with the command below:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F24AEA9FB05498B7

 

Categories
Gaming Linux Ubuntu

Cron Tips

Been wondering this for a while — how do you make a cron script that will only run once, when your server boots?

Just append “@reboot” before the command, instead of the usual time information (at least on Ubuntu Server 12.04):

  • @reboot /path/to/execuable1

CronHowto – Community Ubuntu Documentation.

Categories
Computing Linux Programming Science and Technology Ubuntu

Configuring a Server with Ubuntu Desktop

I’ve been getting an Ubuntu server running recently (FINALLY), and in order to make it run headless (without keyboard, mouse, or monitor), there’s a few things one needs to do:

1) Enable Auto-Logins (optional)

All depends upon how you set things up, but you may want to run everything easily through a default user account — just go to “System > Administration > Login Screen”, and set it up.  (These instructions are for the GUI of Ubuntu, of course — I’m not a CLI-queen, and would rather edit things quickly through an interface that I’m familiar with than search forums for hours trying to find the esoteric commands necessary to do this stuff manually, sorry.)

2) Enabling Networking With Automatic User Login

Now, you may have set up automatic logins, but noticed that you always have to enter in your account password manually anyway once your network tries to connect — took me a while to figure out this one, but just go to “System > Preferences > Network Connections”, and in the type of connection you’ll be using, make sure the option for “Available to all users” is selected at the bottom.  That’s it.  I feel dumb for not figuring this out long ago.


3) Enabling VNC to Run Headless

As per the instructions I found here, you have to

  1. Edit “/etc/gdm/Init/Default” to include the line “/usr/lib/vino/vino-server &” right before “exit 0”
  2. Edit “/etc/gdm/custom.conf” (or “/etc/gdm/gdm.conf” if older than Ubuntu 10.04) and add “KillInitClients=false” — this will prevent any existing VNC clients from being killed if you do login on the server physically
  3. Do a “sudo vino-preferences” and enable the necessary stuff

More to come, including the Minecraft configuration scripts!

Categories
Linux Science and Technology Ubuntu

Adobe Acrobat Not Printing on Linux?

Just installed Adobe Acrobat on linux and it’s not printing?  Just giving you a crappy error message when you try to print?

When you print, instead of selecting the default printer, just select “custom” and type “/usr/bin/lp” into the box that appears to the right.  Printing will continue normally.

Just one more thing in the list of easy fixes that never make it into releases of Linux.

[via Can print from most apps, but not from Acrobat reader, and not duplex from Evince – Linux Forums]

Categories
Linux Science and Technology Ubuntu

Installing the Brother HL-2270DW Printer on Ubuntu 10.04

Brother, I appreciate that you at least made an attempt at providing Linux installation files, even going so far as to provide .DEB and .RPM files.

However, none of the solutions works, and even on my version of Linux, Ubuntu 10.04, probably the most common one around, the .DEB files did next to nothing.  They didn’t setup Ubuntu’s printer configuration so that the printer showed, nor did they enable the drivers to be found when I tried to install the printer manually. (The Brother HL-2270DW is apparently so new that Ubuntu doesn’t have any default drivers in its repositories.)

What did work?  Selecting HL-2170W from the default drivers list in Ubuntu.  Seems to work fine! :P

Categories
DMCA Linux Reviews Science and Technology

Comparing the Moto Droid to the HTC G1: First Week Impressions

Droid Professional Package
The "Professional" Package

After finally deciding to upgrade my venerable HTC G1 (which I reviewed here initially) that had served me well over the past year and a bit, I decided to go with the Motorola Droid.  It’s not the fastest anymore, and it sure as hell ain’t the prettiest (neither was the G1 — what is it with me and ugly phones?), but it’s the new Android phone for me.

Why the Droid?

Why the Droid?  Well, it’s already been out for about six months or so, and has developed quite the hacking community.  Even my favorite ROM for the G1, the Cyanogenmod, has a version available for it.

It’s easily rooted (mine was rooted in about 24 hours).

It comes stock with a 16GB SD card — very cool.  No need to upgrade this thing right off the bat like there was to the G1 and its pitiful 1GB card.

It has loads of custom kernels for it, some enabling the stock 550MHz chip to be overclocked to 1.3GHz, and even some that run at the stock 550MHz but with a much lower CPU voltage (enabling your battery to last much longer).  This phone isn’t going to be left behind in terms of speed for a while — I’m betting Motorola is even going to issue an update for it one day that will up the speed of the processor just a bit for newer versions of Android.

It has a hardware keyboard — not a very good hardware keyboard, sadly enough, but it’s good enough for things like low-level hacking of the ROM and telnet/ssh/console sessions, which is what I needed it for.

[This is probably my biggest gripe for the Droid — the hardware keyboard seriously sucks.  The keys are all flat, not spaced apart, and it’s honestly quicker to type with the onscreen keyboard, which I find myself doing nearly all of the time.  The G1’s hardware keyboard was an absolute dream to type on compared to the Droid.]

It’s received fairly steady Android updates, and now is one of only a few devices running Android 2.1 (including the HTC Incredible and Nexus One), so it’s pretty certain to keep getting updates in the future.  This was one of the biggest problems with the G1 — even though it was once Android’s flagship device, the G1 was made before the “recommended” specs for running an Android device were fleshed out, and thus, not only is HTC not bothering to produce any more updates for it, it physically can’t receive them anyway, due to hardware limitations.

The entire phone, from top to bottom, is supposedly released under open source rules at https://opensource.motorola.com — while this doesn’t benefit me directly, as I don’t spend the time to make my own custom ROM’s and kernels, it will most assuredly help the hacking community in the future when and if Motorola does drop support for the Droid.

And finally, the price!  It’s been out for six months and is now cheap!  Ha ha! :P   I got the “professional” bundle (as you saw above), including a rapid car charger, car mount, and desk mount, for a wonderful price.

The Unboxing

Tiny Droid Box
The Very Tiny Unboxing

Well, there wasn’t much of an unboxing at all, to tell you the truth.  The Droid was packaged in some of the smallest packaging I’ve ever seen — the phone was nearly the size of the box, and took up most of the space.  Other than it, the battery, the tiny wall adapter for recharging, and a single mini-USB cable, that was it!

That’s one small difference between the Droid (and all newer phones, soon) and the G1 — the Droid uses the newer (thought still standard) “mini” USB cable, which is much smaller and flatter than the older “micro” cable.  Make sense?

[It’s all because the EU decide a few years ago to make all manufacturers of cell phones in the EU market standardize to one type of cell phone recharger system — I have to admit, I like it.  No longer will you need give different cell phone chargers for your entire family, if they’ve got five different types of phones — on will work.  It reduces waste quite a bit.]

The battery door on the Droid was a bit of a pain to get off, but when I did, the battery snapped into place and I was well on my way to Android 2.1 goodness.

The First Week

What were my impressions of the Moto Droid after my first week?

The Good?  Well, number one, it’s definitely more compact than the G1.  Even though it actually weights a few ounces more (probably because it’s a solid chunk of metal), it still feels lighter, and it’s definitely much, much thinner, even with a hardware keyboard.  It feels solid in the hand, with a good degree of heft.

The battery lasts about as long as you’d think for a smartphone — nightly charging will become a ritual in your house.  Still, not bad — like I’ve said before, I wish I had a laptop with a battery that lasted a full day.

The screen is… well, the screen is out of this world.  The DPI is twice as high as most of the previous crop of LCD screens like the G1, and you can really tell — icons are incredibly clear and distinct, text is very easy to read, and pictures look amazing.  Not as deep as an OLED screen like on the Incredible and the Nexus One, but pretty damn nice, nonetheless.

Software-wise?  Well, one thing that I noticed right away when I needed to install my favorite Android applications is the speed at which they installed — fast as hell.  On my G1, I could install one application at a time; it technically allowed me to install more, but I’d be damned if it didn’t almost freeze up when I tried to do that.  On my Droid, I’m installing three or four apps at once.

The GPS lock-in is much quicker, too — 2-3 seconds instead of nearly 10, and the wifi lock-in, too.

The “multimedia dock” and car mount are also both very cool — somehow, the Droid “knows” that it’s docked in each (don’t ask me how, as even I don’t know), and loads up specific apps that respond to each; the “Car Home” app for the car mount, and the “Desk Clock” app for the multimedia dock.  I’m glad I shelved out the extra money for the official Moto accessories, at least in this respect.

The Bad?  Well, the home screen operations — paging left and right between app screens, launching the app tray — are kinda slow and jerky.  I know, I know — a little thing, but still.  When sat next to an Incredible or a Nexus One, you can really tell.  Even with the Sense UI skin on top of the Incredible, the Incredible is still zippier.

G1, Droid, and Blackberry Curve
In good company.

Also — the lack of a trackball on the outside of the phone that you can access without opening the hardware keyboard has started to nag me, just a bit.

I like using the software keyboard to type a lot of text, and when I make a mistake and have to put the cursor back to the where it was, merely tapping on the screen can sometimes take a few tries to get the cursor exactly where you want it.  With an external trackball, you could just roll it a bit and get the cursor exactly where you want it (I got quite used to doing this on the G1).

Final Thoughts

I like it.  It’s a good successor to the G1, so much so that I almost wish they had called it the “G2.”  As it was, Google, Verizon, and Motorola put a lot behind the marketing campaign of the original Droid, and it shows — “Droid” has now become a part of most people’s lexicon, insomuch as they at least know the word and know that it stands for a very nice phone (that’s not an iPhone).

I still need to get a nice case and screen protector for it, but all in all, it feels right at home.

Categories
Linux Programming Reviews Science and Technology

Various Browser Benchmarks

I’ve been installing/reinstalling/testing a lot of browsers recently, so I thought I’d provide a little bit of data back to the programming community.

I tested on two different computers — my venerable Dell laptop and my largely MSI-powered gaming PC.

Some thoughts:

  • The newest Opera 10 build on Linux does not like the SunSpider benchmark.  Understandably, it’s a benchmark put together by the WebKit browser team, but still — it performed about as bad as I’d suppose Internet Explorer would (were it to run on Linux).  I ran it twice just to make sure, and it was about 10k milliseconds each time.
  • Chromium, whether it’s on Windows XP, or the pre-alpha build I’m using on Linux, is pretty damn fast.  Like scary fast.  Though, like I said, it is their own benchmark.
  • Seamonkey on Linux is consistently faster than Firefox 3.1b3 on Linux.  I have no idea why, since they’re supposed to be powered by the exact same engine.
  • It’s amazing how much faster an older computer (Like my Dell laptop) can feel when you use a browser that’s optimized to render JavaScript faster.  It seriously feels like an entirely different computer.
  • I tried running this test in Internet Explorer 6.0 via Wine, on Ubuntu.  I figured it’s not exactly emulation (since Wine Is Not an Emulator and all), but it kept freezing on one of the “base64” tests, and I got tired of waiting on it and killed the process.  Imagine that.

And now, the benchmark numbers, utilizing the SunSpider JavaScript benchmark (smaller numbers are better, all numbers in thousandths of a second):

Computer #1

Hardware:  Dell Laptop, Pentium 4-M 2.6 GHz, 1.5GB DDR Ram

Software:  Ubuntu 8.04 (x86)

  • 10572.4ms:  Opera 10 Alpha, Build 4214
  • 8435.8ms:  Flock 2.0.3
  • 8171.8ms:  Firefox 3.0.8
  • 5243.6ms:  Firefox 3.1 Beta 3 (Shiretoko)
  • 4701.4ms:  Seamonkey 2.0 Alpha 3
  • 1506.4ms:  Chromium Dev Build

Computer #2

Hardware:  MSI Mainboard, Athlon X2 2.5GHz (Brisbane), 2GB DDR2 RAM

Software:  Windows XP SP3 (x86)

  • 6930.8ms:  Internet Explorer 8
  • 2097.8ms:  Firefox 3.1 Beta 3
  • 952.4ms:  SRWare Iron 2.0 (Chromium)
Categories
Life Linux Programming Science and Technology

An Abundance of GIMP Synergy

Installing GIMP 2.6 on Ubuntu 8.04

wilberWell, I got tired of being stuck with the version 2.4 of the GIMP (GNU Image Manipulation Program) that ships with Ubuntu 8.04.  It’s old, it uses the old window system that I can’t stand anymore, and version 2.6 (the current version) fixes tons of more issues that it has.

However, you can’t just go to your package manager and add it — Ubuntu locks program versions when it ships (for example, the latest version of GIMP available to Ubuntu 8.04 users is 2.4).  This is done for compatibility reasons — if version 2.4 of the GIMP works fine when Ubuntu 8.04 ships, then they lock those versions together. That way, it’s always guaranteed to work, no matter when Ubuntu is installed in the future.

However, there’re sites likes GetDeb.net which lets developers upload installer files of popular programs for Ubuntu, so that users of older versions of Ubuntu can install new programs.

So, I went to the GetDeb page for GIMP 2.6 and downloaded all the files you need to install GIMP 2.6 on Ubuntu 8.04:

Usually, in 99% of situations, you just download these files and install them, even on Ubuntu. However, on Ubuntu 8.04 with GIMP 2.6, there’s a bit of a problem — you have to force these files to install.

Now, you can do fancy command-line kung-fu if you want to, but you shouldn’t have to on Ubuntu, so I’ve included a file here for you:

Just save that file, put it along with the 5 files you downloaded from GetDeb.net into their own folder, and then run that file. (Make it executable in its properties, and then double-click on it).

And that’s it!

(I got the inspiration for that install file from this blog post here!)

The Synergy of Mac, Linux, and Windowslogo

I’ve always heard about the program called Synergy, but I’ve never used it, and that’s a damn shame.

Have a lot of computers side by side that you manage all at once? Tired of going from one keyboard and mouse, to another, even though the computers you’re working with are side by side?

Then download Synergy, configure it, and run it on all of your computers (Mac, Linux, and Windows).

And that’s it. Honestly. It’ll take you about 20 minutes and you’ll spend the next few hours wondering how you ever lived without it.

It treats all of your computers like one giant desktop — just move your mouse “off” of the side of your monitor towards your other computer, and your mouse will instantly reappear on that computer’s monitor. If you need to type something, you type it with the first computer’s monitor. Seriously.

Ah, a caveat — on Mac and Linux, the setup isn’t as streamlined and easy as it is on Linux, so there’s a program called QuickSynergy that can do it for you. If you’re using Ubuntu, it’s already in the repositories — just go to your “Add/Remove Applications” menu item, and install QuickSynergy from there.

Categories
Linux Programming Science and Technology

Conky, Dell i8k Modules, and My First Ubuntu Bash Script

Conky Screenshot

Well, I started playing around with Conky yesterday — if you haven’t heard of it before, just know that it’s a neat little Linux program that runs in your background and uses very little resources that displays a very neat desktop overlay.  (Like in the picture in the Lifehacker article.)

Now, some of the stock Conky scripts were more than adequate, but I had always wanted my laptop’s CPU temperature to be displayed as well, so I had to figure out a way to do that.

Now, if you’re somewhat familiar with tinkering in Linux, you’ve probably heard of the wonderful “lm_sensors” package — it’s a neat package for Linux that helps display lots of information about motherboard temps and whatnot.  Unfortunately, due to most laptops “prorietary-ness,” lm_sensors does very little for you if you’re trying to get it to work on a laptop.

Now, I had heard of the “i8kutils” package for Linux — this was a package designed for Dell laptops in particular, to display and control fan and temperature information.

So, with that, I was off to work!

(Note — these instructions are mostly for Ubuntu/Debian installations, because that’s what I use.)

First, install the package “i8kutils” using your Linux computer’s package manager (Synaptic, if you’re using Ubuntu).

Second, add the module “i8k” to your “/etc/modules” file.  (This will start the process at boottime.)  Restart your laptop.

Third, you’ll have to create some Conky script files.  I assume you’ve already had a bit of experience at least installing Conky and starting it up.  If not, play around with the instructions in that Lifehacker article and come back here afterwards.

Now, I noticed that one of my conky script files was a file called “hddmonit.sh” which contained the text:

#!/bin/bash
echo “$(nc localhost 7634 | cut -d’|’ -f4)”

Now, using a little bit of deduction, I figured that this file used a command called “nc localhost 7634” to display a little bit of information, and then used pipe commands (the little “|” symbol) to further splice the info, extracting just the temperature of my laptop’s hard drive.

So, while “nc localhost 7634” outputted this:

|/dev/sda|ST980815A|43|C|

Using the command “(nc localhost 7634 | cut -d’|’ -f4” would output just “43”, which was the temperature of my hard drive.

(The “cut” command splices out specific text from a string it’s given, in this case the fourth (-f4) chunk of text seperated by a “|” chracter.)

Now, I learned that the “i8k” module, once loaded, could be accessed with the file at  “/proc/i8k”, which just contains a string like:

1.0 A32 7GGGGGG 53 -22 1 -22 90300 -1 2

From this you can see various Dell-specific information, the important part being “53”, which was my current processor temp.  (The items in the string are separated by spaces.)

So, I quickly made myself a new script file called “i8ktemps.sh” copying the contents of “hddmonit.sh” and changing them to:

#!/bin/bash
echo “$(head /proc/i8k | cut -d’ ‘ -f4)”

This file, when executed, will just output the fourth “chunk” in the file “/proc/i8k”, which as you remember is my current processor temp.

Now, I needed to edit my Conky configuration file, which is located in your home folder and is called “.conkyrc”.

Then I simply located the line:

${font weather:size=28}x ${font}HDD ${execi 1 ~/scripts/hddmonit.sh}C

Which displayed my hard drive temperature, and changed it to:

${font weather:size=28}x ${font}CPU ${execi 1 ~/scripts/i8ktemps.sh}C HDD ${execi 1 ~/scripts/hddmonit.sh}C

Which, when Conky was restarted, would display my hard drive temperature and my current processor temperature.

See?  It’s not that hard to program this stuff!  I did this all, both programming in the Linux “Bash” shell and coding in Conky’s personal configuration code, without any experience in either.  I just looked at what was there, and changed it.

Relevant Links:

http://www.arachnoid.com/linux/shell_programming.html

http://ubuntuforums.org/showthread.php?t=411800

http://www.linuxcommand.org/wss0010.php

Categories
Life Linux Science and Technology

My Great New Phone with Several Horrendous Shortcomings

Would you buy a cell phone if it was really, really, really cool, and could help organize your life, and had web connectivity and GPS and all sorts of other neat stuff, but couldn’t make calls inside your house because of service problems?

Oh — you wouldn’t? Well, screw you, no one cares what you think anyway!

Well, I did it — I went and bought a G1. If you don’t know what a G1 is, it’s Google’s first foray in to the world of cellular telephones — a cell phone, made by a company called HTC, running Google’s Android mobile phone operating system.

It really is a great phone — more like a tiny computer. It links up and syncs completely with your Google account (a great boon for disorganized people like myself — now my cell phone, which is with me always, can remind me of things I set on my computer, which is not with me always).

It has built-in WIFI access, built-in GPS, and to top it all off, the entire thing is running on top of a Linux installation (that you can hack the shit out of if you want to).

That being said, there are certain… issues with the G1.

Number one:  the battery life, or lack thereof. And this isn’t just the usual “Oh, my battery doesn’t last for 15 days, therefore it stinks.” No, no, no. I can fully charge my G1, let it sit there, maybe browse the net a few times, poke around here and there, and 22 hours later it’s dead. And this isn’t even with me even really doing anything on the phone. I’m just practically letting it sit there.

In converse, Nina can sit there with her Blackberry Curve browsing the net, sending SMS, Twittering, and her battery lasts for about three days.

Of course — I can live with that. It’s a powerful device — it needs a lot of power. It’s like a small computer, like I said — if I had a laptop with a battery that lasted for 22 hours, I’d be really happy!

However, here’s the practical dealbreaker — the G1 has no UMA. What’s that, you may ask? It’s a technology that allows (modern) cell phones to make calls over your home’s WIFI internet, using your regular cell phone minutes — it’s kinda of like having a super-strong cell phone tower in your house, with unlimited reception.

Never a dropped call, crystal clear connection — it’s amazing.

More importantly, if you live in an area with poor cell phone reception (say, you can receive calls outside your house but not inside, or you’re roaming inside your house, or whatever), UMA pretty much fixes that.  And it’s seamless, too — you can make a call inside your house, go outside, and it doesn’t get dropped, and vice-versa.

The G1 not having this, in the area where we live, makes it almost useless inside our home (where I’m spending most of our time if I’m not at work, and thus too busy to use my phone).

Sigh.

(Still deciding what to do about this.)