Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Saturday, August 15, 2009

Flash problem finally over!

For some time, I have been having problems with Flash videos from one specific resource: the Daily Show (and Colbert Report), both streamed by Comedy Central. (Or is it MTV? Oh, whatever.)

Point is, the video would load, but a little popup would show in it saying something like: "Error loading stylesheet. RSL http://media.mtvnservices.com/global/flex/rsl/framework_3.2.0.3958.swz failed to load. Error #2046".

And I couldn't get rid of this thing. Opera wasn't able to show it either. Going back to Windows every time and firing up IExplorer wasn't so exciting either. So I tried to reinstall, uninstall and reconfigure all those flash libraries (okay, there's really two or three of them), and just couldn't get it work. Until, many websites later, I simply tried to uninstall flashplugin-nonfree and installed the adobe-flashplugin from Adobe's website directly. Strange thing happened... it worked. Sometimes it's not that hard at all.

---

On the side, I learned of an interesting little setting for later use. In Firefox, visit the about:config page, search for 'plugin' and double-click on the line plugin.expose_full_path. Since you are changing your most basic configuration, you should probably know, what it does. (Funnily enough, Opera allows to display and change this information much more easily. Hm. I still like Firefox more.)

This little setting shows the full path to plugins on the about:plugin page. Extremely useful for debugging your plugins and their actual versions, as reinstalling newer versions sometimes leaves the old stuff behind. Maybe it will help some people out.

Thursday, January 15, 2009

A new monitor on the scene

At last, it is not just a bare laptop with add-ons, but a real screen graces the table. A nice Acer P223W 22'', it fits right in with its black... anyway.

In Windows, there is no problem with a notebook and a display. You click a few times in the screen settings, works.

In Linux... it ain't so easy. I tried to use Gnome's preferences, but it just wasn't able to do anything as I wanted, dragging the screens around made them sometimes stick together, sometimes they moved on their own. Restarting Linux or Gnome produced random results - sometimes the screen was on after restart, sometimes not. It also liked to stay on before login and turn off after.

Searching around confirmed, that this is a known weakness of Linux, with no easy workaround. But there is hope:

xrandr is used to configure which display ports are enabled (e.g. LCD, VGA and DVI), and to configure display modes and properties such as orientation, reflection and DPI.

This is the simplest and most powerful way to get multi-monitor systems working using recent versions of Linux such as Ubuntu 7.10 and Fedora 8 with graphics chipsets such as the Intel 945GM/GMS and ATI Radeon found in Thinkpads.


The page tells the necessary minimum to start playing with it. Some configuring may need to be done, but it worked out of the box for me.

For what I wanted - turn the display on. while turning the laptop off, a simple command is sufficient:

xrandr --output LVDS --off --output VGA --mode 1680x1050


(LVDS is the laptop screen, VGA obviously my display. The screen resolutions can be found if you run xrandr without any parameters.)

To switch the displays back, use a similar, but opposite command. To make it even simpler, create scripts for daily use. Done.


It should be possible to set the monitors next to each other, with some tweaking of the xorg.conf. But to find a command, that does pretty much what you want with one slap is great.

Saturday, October 4, 2008

How to umount when the device is busy

What a silly problem and what a simple solution! Thanks to the author, here it is:

It happens all the time doesn’t it? You need to unmount a CD or you want to pack away the external drive but when you try to umount it you get the dreaded “device is busy” message. Wouldn’t it be great if Linux actually told you what was keeping the drive busy? Here we are in 2008, I’m using Ubuntu Gutsy, and that message hasn’t changed in all the years I’ve used Linux.

# umount /media/disk/
umount: /media/disk: device is busy
umount: /media/disk: device is busy

First thing you’ll do will probably be to close down all your terminals and xterms but here’s a better way. You can use the fuser command to find out which process was keeping the device busy:

# fuser -m /dev/sdc1
/dev/sdc1: 538
# ps auxw|grep 538
donncha 538 0.4 2.7 219212 56792 ? SLl Feb11 11:25 rhythmbox

Rhythmbox is the culprit! Close that down and umount the drive. Problem solved!

Tuesday, September 9, 2008

Another good game for Linux

A game I played and actually finished, it was relatively short, though it offered a lot of fun... and another version is in the works for 2009.

Eschalon: Book 1 is a classical turn-based roleplaying game. There are tense moments, but I didn't click myself to death. Another good thing is the openness of the world; you can go anywhere at any time, few parts are inaccessible (which doesn't mean it is safe). Worth trying out.


Things to do:
- generating of content is based on the characters level at the moment of opening of the container... note to self, if I play it another time, I should leave a couple of chests etc. unopened in the 'easy' parts, for massive profit later on
- one thing that seems to work well with all monsters is to walk in a line for some time, then change direction; they will lose a move and I will get a head start. Ideal for an archer if he has the space and needs to run around to avoid the nastier critters.
- setting off traps by shooting them with arrows is a great perk
- never really got into alchemy and making potions; but it got much easier with two rings of the right kind when enchanting items becomes possible

Monsters I really disliked:
- Acid Grubs - destroying equipment scares the pack rat out of you; and maybe it was just an illusion, but they always seemed to follow the character even if he ran half a map away. Nasty things, one nice location to dispose of them is the Giant Village.
- Raptors - they seemed a bit out of place; but a good combat challenge, just don't let them surround you. Separate and kill; there is one place where you can crush them in their gardens.
- overall bad: being attacked from several sides. Even the weakest critters gave me a hard time

Annoying/boring parts:
- picking a lock, and breaking your last lockpick, when you would have to travel far for another; this is where I save/loaded the most
- diseases are very ugly, not to mention of being cursed - are there any ways of overcoming them besides the expensive potions or spells? Perhaps food could give an increased chance of defeating a disease.
- getting entangled in trees while 'w'alking
- looking for a basic ingredient for a looong time... nobody had it, and even restocked shops just seemed to avoid it. Darn.

Misc:
- reuse of some characters once their quests are complete would be nice - for example the old man with a boat could take you somewhere
- how about bolt spells that would hit several monsters in a row
- I went through the 70 pound quest, but the guy kept offering it to me... bug?
- the carried weight was not recalculated after arrows were dropped from quiver (noticed it when overencumbered)
- poltergeists not able to pass through walls or doors - good for the game, allowing them to do that would do more for realism and make them scarier


In general, I have to commend the balanced play; once I learned the basics, I was rarely challenged for life, (mostly with important monsters or when I got reckless); but also rarely able to just breeze through a map and waltz through lesser opponents. I also never had huge amounts of money, that you ordinarily expect from these games. Great work done here.

It was relatively short, which is really good with my lack of time. :)

Monday, May 28, 2007

A Linux game that looks actually fine

For the record: burning works flawlessly now with Feisty. At least something works as it should. Yay!

---

Speaking of Linux games, there is a neat one that brought me actually some fun: Globulation 2. It is a strategy, still in development and therefore with quite a few imperfections, but it runs smoothly even on my piece. It's still an alpha, so that can be excused for now.

Some good:
- it has a good unit management system; you don't actually select the units and send them to do something, you order what-is-to-be-done-where, and any free globs (that's the units) of a given type will hurry to the place to do their job. The ultimate top view above the many faceless units you command.
- the units do all the stuff on their own, and once you make sure your base is well equipped and supplied, you can concentrate on the strategy and don't loose time with micro-management.
- the whole look is kind of neat, with the globs and their buildings

Some bad:
- as mentioned, it is in development, so there are some things that seem unfinished
- the music becomes annoying pretty fast, to be turned off after a few minutes

Monday, May 21, 2007

Development new and old

My laptop is really the genuine article. I have considered playing some neat-looking game for Linux (and there's very few of them, let me tell you), but it didn't do much in the way of playing. It seemed to require 3D hardware support. Doesn't sound like anything unusual nowadays (my gaming tastes are hopelessly backwards). So... does my lovely laptop support that?

Well it does... but not for Linux. After spending another couple hours of looking for drivers and success reports, I actually found a petition to AMD for making drivers for ATI Radeon XPress 200M - just my brand.

Not that I would be using it that much, but it's kind of disheartening. Ah, whatever.

For the record, the game that interested me, was SCOURGE. Could be fun. :(

---

Some good news in turn: on my work computer, I worried about the sound under Linux. Well, nothing to worry, the default ALSA driver worked perfectly (I don't have speakers yet so it's headphones-only).

Anyway, there is sound! Go MP3s!

---

USB is fun, especially under Linux. I didn't use 'em much after upgrading on Feisty, but at some point I tried my USB key. Didn't work.

As the ancient tradition commands, I googled, and found some reports on USB devices being destroyed by the Linux kernel (what?!?). Luckily it turned out to be not my case, What was my case, was a broken new driver, which excluded some devices (like my newer 1GB USB key), but recognized others (like my older 256MB key, and my DVD burner). Of course, I could have only one at a time. There is more in comments on this...

...but isn't THAT fun?

Monday, May 14, 2007

bzip2 annoyance and more linux

Guess I didn't mention I've got a Linux at work as well. Developing necessesity, it appears.

The good thing was I received a brand new computer for my new job. The bad thing was I had to install it myself. :)

Vista... well, that was easy. But I still didn't like it.

And then there was Debian. And a brand new computer.

The first downloaded installer (stable version, you know) failed to detect the harddisk, due to a SATA something bus (oh, where are the IDEs gone?), so I had to look for a more experimental version supporting my hardware, and got something named Sarge. That worked pretty well.

The second hurdle was the graphical card, an ATI Radeon X1650 or whatever. Not that I need much graphical power, but there's two monitors (also a great perk). And for the holy kebab I just couldn't kick that thing to work. But lucky me, after a week or so another version of the drivers came up, and it worked! 3D effects would take more work, but I don't need them. It's also very tricky to play with the settings in the xorg.conf file to make two monitors work... ah, whatever.

Now only to make the soundcard work. :D

---

And at last, the question of bzip2 shall be examined. This insidious little trojan masquerades as an archiving/packing utility, and lies in wait on unsuspecting Unix beginners.

As a proper semi-expert I don't stoop as low as reading manual pages or program help beyond the basic introduction. It is obvious some fiendish person decided to abuse this rational and time-saving behaviour, and designed this "tool".

So what's the fault? The default behaviour is not merely packing, but also deleting the source files! Yes, you hear that right. Instead of the lovely unpacked files, you have suddenly ugly packages that may have a smaller size, but of course loose their former functionality. And this is not mentioned right at the start of the documentation. Seriously.

So, if you happen to pack anything important with this, you may look pretty much like a fool in the end. :(

Like I did. :)

Monday, May 7, 2007

And the laptop stays

How comes that as soon as you swear to do something, there immediately crops up a serious reason why you won't do it. (As for the question of honour, I didn't swear anything, just seriously considered. :) )

So I was this hot to return the laptop and take a better one (and considered the compatibility with Linux this time), when the store I have it from halted me. Saturn, the German electronics supermarket, accepts exchanges only in under two weeks from buying... which I spent trying to make the damn thing work. Duh.

But now that they have refused me (and I wanted to get a more expensive laptop, so they wouldn't be harmed a lot anyway), I was kind of insulted. Well, not with me! I can't return it, and repairing the damn thing's DVD would take two weeks, which is too long for a serious addict.

I hadn't a problem with its performance, and the main issue was the broken DVD. And since I planned to spend some money anyway, I bought an external DVD burner, and it works fine. The other issues can be ignored... and so I'm back to Asus A9RP. There you go, Saturn. :->

---

Note to self: describe the necessary fixes and updates for Linux in comments to this post. Might be useful for someone out there.

Saturday, May 5, 2007

Giving up the laptop (rant)

Not that it wasn't that bad; ASUS A9RP, was pretty cheap for me to afford, and had the sufficient equipment and performance for my backward needs. The first thing that freaked me out was the pre-installed new and shiny Windows Vista, instead of the trusty XP. Friendly suggestion: don't use it. There are so many safety precautions that you ignore them after some time anyway, and I found myself resenting the system very quickly. Two days to be precise. It also had problems with the wireless card, but I digress.

XP, well, it has it's few (hundred?) little quirks, but you can get used to it. The stability can be also tweaked to 'decent'. But I didn't have XP at hand. :|

But I had Linux! Found a Kubuntu CD somewhere, so why don't give it a try at last? And I tried it. It worked quite fine, lacked a bit of elegance, but was very user friendly, which I liked. But then I wanted to have some features working that were apparently too special. *sigh*


One was the wireless card, since I was connecting through it to the Net by default. This didn't work quite well, as my particular type had no Linux drivers made yet. Lucky that I have other means of going on-line, I've spent a week or more browsing around looking for answers. In the process I have upgraded the Ubuntu from 6.06 to 6.10 and even to the experimental Feisty. Didn't help. Later I have tried a downgrade even, but that didn't anything either. :)

In the end I have compiled the drivers myself, solved another few problems along, and got the device working. Yeehaa! Pity the configuration for the network didn't work right; sometimes it worked, sometimes it didn't, sometimes it broke after some time. (And I have used wireless on the spot with XP for a long time without much trouble. Duh.)

But I could still tolerate that, until I wanted to actually burn DVDs with the damned thing. I think I started one DVD well, but then it came upon some mystical boundary that Linux couldn't pass, and it broke. I have ruined several DVDs without burning one successfully; meanwhile, I hit upon numerous accounts that said Linux somehow doesn't work with that burning thing. I mean, that's what users do daily, and they put on it fancy settings for security reasons, where secure means unusable? Perhaps I am too spoiled by the fast and dangerous life in Windows (and I have reinstalled some, trust me), but always watching upon the permissions and switching the whole time between root and ordinary user, oh my. Somewhere there was the problem with the burner; some group or user or whatnot had not the proper permissions, and you could just type esoteric commands from various forums in the hope some will help. Getting Linux to work without Internet would be impossible for me. Windows sucks big time, but I could always get it working... well maybe not on the first try. :)

Long story/rant short, I've gotten my hands on a WinXP CD at last, and was soon annoyed again. See, the drivers for the laptop would only work with the Service Pack, which I didn't use on my crappy old computer at home (a decent firewall was enough for me). And the Service Packs I downloaded didn't work either. Grrr.

Furthermore, after burning two or three DVDs, the ROM refused to cooperate and burn more; though maybe I was at fault for playing with drives all that time. Later, it stopped reading media completely, so there may have been a hardware problem after all... or I have just broken it. :|

---

So I had enough, and decided to give up (but heroically!). I'm getting a new one, this time I've checked if it's compatible with Linux, and it appears to be.

To sum up the 'bad' from the ASUS A9RP I had:
- trouble with the wireless card and DVD-RW under both Linux and Windows. Didn't try burning under Vista
- preinstalled Vista (if you get one with XP with everything necessary, it might work well)
- the 'Function' button is on the bottom leftmost position, instead of the 'Ctrl' one... now think which one you will be using 99% of the time.
- there's also an annoying clicking sound that keeps repeating over and over (harddrive? fan? sound system???), that is working well with the other features at driving you insane. :)

The rest was quite fine, I just didn't get the features I wanted to work. And if a semi-experienced user can't then it's pretty bad.


End of rant.