Archive for the ‘Linux/OpenBSD/unix’ Category

Varför bekymra sig om att förkorta uppstartstid?

Thursday, January 15th, 2009

Enligt idg.se lägger Ubuntu och Fedora ner massor (förmodar jag) tid på att få ner uppstartstiden på en Linux-installation från idag kanske 1-2 minuter till under 20 sekunder. Varför? Varför lägger de inte ner tiden på vettig sleep och hibernate? Vad är snabbare än att slänga igen skärmen så somnar datorn eller öppna skärmen och ha den igång innan man har öppnat?

Jag skiter väl i hur snabbt en dator startar, jag vill inte stänga/starta min burk varje gång jag ska använda den. Att vänta 3 minuter den gången i månaden jag startar om på grund av uppdatering eller för att jag känner för det kan jag väl vänta, spelar väl inte så stor roll då?

Kollade även Ubuntu brainstorm som var gösslad med snack om vilken SIP-klient och dylikt man ska använda. Lös grundproblemen istället, multipla skärmar och annat som man bara vill ska fungera rakt av. Vilken SIP-klient som installeras default kan man väl göra valbart på nått enkelt sätt. Argh.

Migrating from F-Spot to iPhoto

Wednesday, December 31st, 2008

I kind of sick and tired with F-Spot. It’s a good tool but I have to many problems and besides that, I am (was) a KDE guy and now I’m totally in love with MacOS. So, migrating and converting everything to iPhoto was quite clear.

I’ve always told F-Spot to save tags in XMP as well. If you haven’t, tell it, tag ALL pictures with ‘xmprules’ and then remove that tag and all tags are saved to XMP inside the jpeg.

The problem though is that iPhoto won’t read XMP but it’ll read IPTC. Converting everything from XMP to IPTC, putting pictures in folders and mess around a bit was necessery. Exiftool is the tool for the day.

First I had to rename my pictures. I have a ‘:’ as a delimiter in my time part of the filenames and samba won’t like that. Running "for i in *:*; do apa=`echo $i | sed -s s/:/_/g`; mv "$i" "$apa"; done" solves that easily.

Then I had to convert some XMP stuff to IPTC, this thing would do what I want "exiftool -m -overwrite_original -P -F '-IPTC:Caption-Abstract<$UserComment' .".

I also have ALOT of tags, this was first lost but then I found out that iPhoto searches for ‘Keywords’ and F-Spot uses ‘Subject’ so I had to do this "exiftool -m -overwrite_original '-subject>+keywords' .".

I also would like to have my pictures in folders for the day, this is how iPhoto keeps things and uses that event-thing so running "exiftool -m -r '-FileName<CreateDate' -d %Y-%m-%d/%%f.%%e ." was my next step.

That’s it, then I just import everything to F-Spot. It took like 24 hours for my 9000 pictures.. =)

So, bye bye F-Spot, I’ve been using it since version zero or something, making my on debs and everything but now I’m more into function than messing around.

How did the upgrade from Gutsy to Hardy go…?

Saturday, November 15th, 2008

Preparations:

  • Downloading VMWare 1.0.8 and 2.0.0.
  • Having my Huawei E220 ready
  • Having all IPs ready and logged on to the ADSL gateway put in bridge mode (if my virtual gateway wouldn’t come up in reasonable time..)

Well, after some changes in sources.list I’m starting off with

  • apt-get -u dist-upgrade

What works right after dist-upgrade and reboot then?

  • The system boots up. =)
  • 1wire mount did work
  • My Lacrosse weather station still worked and had contact

What did I have to fix?

  • Of course, VMWare didn’t work. New kernel. I installed VMWare 2.0.0 instead and used the same files. Work like a charm.
  • dvbloopback compiled for my special needs, needed just a recompile and a cp.
  • I had to do a apt-get –reinstall install mythfrond because I had a segfault. Don’t know why.
  • New installation of NVidia kernel driver, it has a kernel module. No surprise.
  • My LG1730SF didn’t work, my /dev/input/itmtouch has disapperad and it swaps X/Y, my changes in xorg.conf doesn’t work. Some manual fixes solved it. An entire blog will arrive when it comes to ITMTouch and Hardy I think.

Well, up and running, almost everything I think. Just a few hour, a lot easier than expected!

Todays mission, upgrade my main server at home from gutsy to hardy

Saturday, November 15th, 2008

It doesn’t sound too hard but I have a lot of different specials on this on.

  • MythTV, compiled dvbloopback, some other needed special softwares, TV card and probably some more I’ve forgot from my setup.
    • LIRC
  • VMWare, my gatewith is a virtual server running in VMWare 1.0.4. Thinking about uppgradering this to 2.0.0 when everything is destroyed anyway.
  • Touchscreen, my LG L1730SF is always a problem.
  • 1wire-things, shouldn’t be a problem though.
  • Samba
  • Dual monitors with Mythfrontend on one of them.
  • Lacrosse weather station

I have prepared myself for a hard day. So why doing it? My new diNovo Mini won’t work in gutsy, don’t know why and I’ve fooled myself into thinking hardy will solve it. =)

Problems with suspend/resume and some mouse settings

Monday, November 3rd, 2008

I just updated to Kubuntu Intrepid and everything worked nice. I’ve run KDE4 for like six months and I’m very pleased with it. A not so nice bug in Intrepid / KDE 4.1.2 though is that when i suspend/resume my laptop I loose all my mouse settings. I have to go into System Settings -> Keyboard & Mouse -> Advanced and change pointer acc or something and then Apply.

Kind of annoying. Right now I don’t have any solution for this.

Huawei E220 med (K)Ubuntu Hardy

Tuesday, June 3rd, 2008

Got myself a little Huawei E220 with my mail today. I had looked forward to an evening with fightning to get this started in Linux, but hell and crap. I have to stop using Linux now, everything is to easy. What to do now? I solved EVERYTHING with the latest stable deb from here. I just installed it with dpkg -i vodafone-mobile-connect-card-driver-for-linux_1.99.17_i386.deb and then I had to apt-get -f install to get some dependencies. So far, plug in the modem and wait a little while and watch dmesg and when it’s settled just start the Vodafone application.

You can send SMS, choose pin code, stop it from wanting pin code and so on. No problems what so ever. Everything you can do with the application for Windows works. As far as I know. Go on, find it, use it!
Lovely but boring. :)

ZFS for Linux (ZFS-FUSE)

Friday, May 9th, 2008

I just love ZFS. I just started using it and not even on Solaris, I use it on Linux with FUSE. This is of course not optimal but I’m not a Solaris guy so I have to do this.

When I have some time over I’ll finish and publish how I got ZFS running for my ~/ at work.

Well, why do I love it? Because it’s simple to use. Of course it’s probably possible to do the same thing with LVM + MD or something (don’t use hw raid at home) but with ZFS it’s just some simple commands to get what I want. Make a huuuge bucket of storage and more or less per directory choose if you want to secure the data or not.

I’ll show you some examples soon. =)

Ubuntu Gutsy and VMware performance

Wednesday, March 19th, 2008

I’m a big fan of VMware, or virtualization you might say. I’m using a lot of VMware at the moment but had some bad performance when running Gutsy as a host. Everything works pretty ok but there has been a little too much IO-wait, my MySQL has been responding a little to slow when not being queried for a while and so on. I googled around a lot and found some tweaks, I really don’t know what they acutally do but the make a big difference. In /etc/vmware/config I have added:

prefvmx.useRecommendedLockedMemSize = "TRUE"
prefvmx.minVmMemPct = "100"

And on my hosts I have added in the .vmx-file

sched.mem.pshare.enable = "FALSE"
mainMem.useNamedFile = "FALSE"
MemTrimRate = "0"
MemAllowAutoScaleDown = "FALSE"

After doing this my vmware guest if responsive and works like a charm! Soon I will make an effort to find out what it does. :-)

Logging in thru SSH takes forever..

Wednesday, March 12th, 2008

I’m using Kubuntu on my workstation and using a lot of CentOS / RHEL5 at work. When using SSH to log on this boxes everything went very, very VERY slow. The reason for this is GSSAPI. I have to very nice fixes, on server side and one on client side.

In both cases it’s GSSAPIAuthentication which causes all of our troubles. Either change this to no in /etc/ssh/sshd_config at your server or on your client (/etc/ssh/ssh_config or in your ~/.ssh/config). I always to the same from now. Don’t even know what it is but damn it did bother me until I fixed it. :-)

GMarks for da WIN!

Sunday, February 3rd, 2008

I have been using Bookmark Sync and Sort for a long while now because I want the same bookmarks at home as at work and probably and a laptop and so on. But this has never been good enough, some glitches when Firefox crashes (well, it happens a lot) and bookmarks aren’t uploaded and then I start Firefox and.. BAM, download an old bookmark file. Bookmark Sync and Sort uploads or downloads when you start up or close Firefox.

Now I found GMarks, this uses Google Bookmarks, gives you a nice toolbar, searchable, and has the ability to set labels and so on. Very very nice, exactly what I want. Only downside so far is that it uses Google, I’d like to have the same features but use Webdav or something similar to have my bookmarks at my own server.

But hey, if Google want my bookmarks I’ll support them. ;)

Yes, writing a lot on this blog I am.. hrm.