Thoughts on Rails

Riding the Train of Thought

Archive for February 2007

Beagle on PCBSD / FreeBSD – IT WORKS!!!

with 4 comments

Continuing on my rant a few hours ago… days, hours, they seem all the same when I’m toying with computers… anyway…

So I tried installing Beagle, the fantastic desktop search comparable to Google Desktop and Spotlight from Mac, and I failed miserably. Apparently, Beagle uses a few linux-specific tricks, which are not available on FreeBSD.

Somehow, I failed to notice the work done by BSD# team. My bad. Really, because they have a port ready for FreeBSD since last few months (that’s what the CVS repository seems to be saying) and it compiled and installed painlessly as far as my experience goes. I’m only very slightly annoyed that it downloaded and installed evolution, a rather large application – that I never use. Dependencies… well, sometimes I thank the FreeBSD guys that the ports system does the work of driving me up the wall – at least like RPM, it doesn’t coax into driving yourself up the wall. Bad pun I guess, nevermind – thoughts start getting dizzy and confusing when you are at the desk for more than 14 hours.

Ok, back to the rant. So I installed Beagle, and right now, as I type, the beagle daemon is indexing my files. Sweet!

Only one small issue: it is not easy to get the files – Beagle is not included in the standard FreeBSD ports tree, and there seems to be no simple way of getting the required files and start compiling. After hunting around the website, you find the CVS repository… from that point you either have to know CVS, or have to browse the repository and save each file to your disk, in the proper directory hierarchy and then copy the directory named “beagle” into “/usr/ports/deskutils/” and then run “make install”.

I’m hoping it is included in the standard ports tree soon because Beagle seems like a very sensible and useful tool.

Cheers to people working on Beagle, BSD#, PCBSD and FreeBSD! Long live Open Source!

Written by hiway

February 28, 2007 at 3:26 am

Internet in Asia Isolated?

leave a comment »

The sky is falling! Run! Scamper!

Is it just me, or are other people also having trouble accessing some websites? Few websites open up quickly, while (most) others are taking ages to download.

As an experiment, I tried running traceroute to Google’s different servers.

  • traceroute google.com timed out after 64 hops.
  • traceroute google.co.jp completed in 14 hops.
  • traceroute google.tw completed in 13 hops.
  • traceroute google.co.au timed out after 64 hops.
  • traceroute google.cn completed in 15 hops.

In both the above cases, traceroute showed that data had reached USA’s servers, but there was no response afterwards.

I was connected to a server in the USA at the same time and ran traceroute to google.com, which completed in 14 hops. Now that’s interesting.

WordPress.com, and dataone.in work from my computer,  but I was unable to even ping to onlamp.com (which has now started responding). Traceroute gave up after 64 hops.

If it was a matter of a few minutes, even hours, I would not sit and rant about it here… I have noticed this issue since last two days, and its not going away – only that at night, the issue worsens. Almost all of the websites become unreachable… I’m wondering why.

Written by hiway

February 27, 2007 at 11:17 am

Posted in Internet, rant, useless

Open Source Photography Workflow Management Software

with 2 comments

A few days ago, I stumbled upon a nice application. From the website it looks nice and might soon contain every feature that I want – I haven’t been successful in making it run on my system (yet).

First of all, it is a Java application… and FreeBSD/PCBSD isnt exactly Java paradise. Yes the support is improving fast, and I’m happy about it :-) So, after downloading the “jar” file, I tried double clicking in Konqueror file explorer – which promptly opened the archive and showed me the files inside. Hmm… not exactly what I wanted to do.

So I fired up Konsole and issued the command

jar blueMarine-0.8.6-setup-linux.jar

For which is gave a rather confusing reply:

Exception in thread “main” java.lang.NoClassDefFoundError: blueMarine-0/8/6-setup-linux/jar

Yes folks, I am an outsider to the Java world. I usually am clueless about how things work here. So I searched on the Internet and found nothing that said somebody had the exact same problem and how they solved it. So, I realized that I was probably on my own for generalizing the problem, finding out a generic solution and then applying it here. So after searching a bit, I found out that Java was unable to find the “classpath” for the given jar file and it makes no assumptions that the classes might just be in the same jar file… and so we have to tell it exclusively – it’s in the same file dangit!… well, for a computer to understand that, the command is:

java -jar blueMarine-0.8.6-setup-linux.jar

Finally, (wait, its not really finally) it worked! The interface loaded and complained that I have Java 1.5.0 while it needs 1.5.0_05! So until I make up the mind to try and upgrade Java (which isn’t a lovely process on this Operating System) I’m going to do something else (which includes having a cup of tea or sleeping). I need to make my mind up soon! :-D

*sigh* sometimes, I really dislike softwares. Whoever said that computers make life easy, hasn’t really ever used one.

Oh, and if you are curious, here’s the link to blueMarine: http://bluemarine.tidalwave.it/

Written by hiway

February 26, 2007 at 4:43 pm

Beagle on PCBSD / FreeBSD – I tried… :’-(

leave a comment »

UPDATE: I have successfully installed Beagle on PCBSD 1.3.3 / FreeBSD 6.1

NOTE: Later install http://en.opensuse.org/Kerry for KDE integration

1. Got Beagle sources, decompressed, run ./configure
It complains that I don’t have mono installed… right…

2. Installed lang/mono

3. Installed x11-toolkits/gtk-sharp20

Packages NOT found in the ports tree:
gnome-vfs-sharp-2.0′
gconf-sharp-2.0
glade-sharp-2.0

Packages found in the ports tree:
mail/gmime2-sharp
x11-toolkits/gnome-sharp20

4. Installed gmime-sharp

5. Compiling gnome-sharp20

Traceback (most recent call last):
File “/usr/local/bin/xml2po”, line 34, in <module>
import libxml2
File “/usr/local/lib/python2.5/site-packages/libxml2.py”, line 1, in <
import libxml2mod
ImportError: /usr/local/lib/python2.5/site-packages/libxml2mod.so: Undef bol “xmlPathToURI”

Problem seems difference in library version and python wrapper version:

libxml2-2.6.26 XML parser library for GNOME
py25-libxml2-2.6.27 Python interface for XML parser library for GNOME

6. Installing libxml2-2.6.27

7. Back to compiling gnome-sharp20, done.

8. The dependencies that were NOT found, seem to be automatically satisfied now. Good!

9. ./configure in beagle directory is successful

10. Building Beagle:

panther# gmake
gmake all-recursive
gmake[1]: Entering directory `/usr/home/harshad/Programming/beagle-0.2.16′
Making all in po
gmake[2]: Entering directory `/usr/home/harshad/Programming/beagle-0.2.16/po’
file=`echo ar | sed ‘s,.*/,,’`.gmo \
&& rm -f $file && -o $file ar.po
-o: not found
gmake[2]: *** [ar.gmo] Error 127
gmake[2]: Leaving directory `/usr/home/harshad/Programming/beagle-0.2.16/po’
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/home/harshad/Programming/beagle-0.2.16′
gmake: *** [all] Error 2

11. http://article.gmane.org/gmane.comp.video.thoggen.devel/274
It basically says that msgfmt program on my system could be causing this… but following its steps, I think i see sane output.
panther# grep msgfmt config.log
configure:21975: checking for msgfmt
configure:21993: found /usr/local/bin/msgfmt
configure:22006: result: /usr/local/bin/msgfmt
ac_cv_path_INTLTOOL_MSGFMT=/usr/local/bin/msgfmt
INTLTOOL_MSGFMT=’/usr/local/bin/msgfmt’

12. What is going wrong?

In the file ./po/Makefile
.po.gmo:
file=`echo $* | sed ‘s,.*/,,’`.gmo \
&& rm -f $$file && $(GMSGFMT) -o $$file $<

Now, I’m basically replacing $(GMSGFMT) with the full path of msgfmt ( /usr/local/bin/msgfmt )

For now, YAY! it seems to work.

13. F%*&K. That’s all I can say…

thread-glue.c:30:26: linux/unistd.h: No such file or directory
gmake[2]: *** [thread-glue.lo] Error 1
gmake[2]: Leaving directory `/usr/home/harshad/Programming/beagle-0.2.16/glue’
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/home/harshad/Programming/beagle-0.2.16′
gmake: *** [all] Error 2

Looks like this bugger isn’t going to run natively… it needs a linux specific library.

http://lists.freebsd.org/pipermail/freebsd-hackers/2003-July/001883.html

The above link practically says that this program cannot run as native under FreeBSD. Or so I understand…

Now backtrack all the way, I don’t feel like uninstalling the applications that I just installed.
Onwards to Plan B: linux binary compatibility layer.

14. Reading about installing commercial linux applications on FreeBSD

http://www.onlamp.com/pub/a/bsd/2006/01/12/Big_Scary_Daemons.html

15. Reading about installing software on FC4 (since I have linux base fc4 on my machine installed and running)

http://www.antezeta.com/beagle-fedora.html

16. Installed rpm (not rpm4) from the ports tree.

17. Oh Boy!

panther# rpm -i –ignoreos –dbpath /var/lib/rpm –root /compat/linux beagle-0.2.1-2.1.fc4.nr.i386.rpm
error: failed dependencies:
/bin/sh is needed by beagle-0.2.1-2.1.fc4.nr
/bin/sh is needed by beagle-0.2.1-2.1.fc4.nr
/usr/bin/pdftotext is needed by beagle-0.2.1-2.1.fc4.nr
chmlib is needed by beagle-0.2.1-2.1.fc4.nr
epiphany >= 1.8.0 is needed by beagle-0.2.1-2.1.fc4.nr
evolution-sharp is needed by beagle-0.2.1-2.1.fc4.nr
gmime-sharp is needed by beagle-0.2.1-2.1.fc4.nr
libICE.so.6 is needed by beagle-0.2.1-2.1.fc4.nr
libSM.so.6 is needed by beagle-0.2.1-2.1.fc4.nr
libX11.so.6 is needed by beagle-0.2.1-2.1.fc4.nr
libXss.so.1 is needed by beagle-0.2.1-2.1.fc4.nr
libatk-1.0.so.0 is needed by beagle-0.2.1-2.1.fc4.nr
libc.so.6 is needed by beagle-0.2.1-2.1.fc4.nr
libc.so.6(GLIBC_2.0) is needed by beagle-0.2.1-2.1.fc4.nr
libc.so.6(GLIBC_2.1) is needed by beagle-0.2.1-2.1.fc4.nr
libc.so.6(GLIBC_2.1.3) is needed by beagle-0.2.1-2.1.fc4.nr
libc.so.6(GLIBC_2.2.3) is needed by beagle-0.2.1-2.1.fc4.nr
libc.so.6(GLIBC_2.3) is needed by beagle-0.2.1-2.1.fc4.nr
libc.so.6(GLIBC_2.3.4) is needed by beagle-0.2.1-2.1.fc4.nr
libcairo.so.2 is needed by beagle-0.2.1-2.1.fc4.nr
libdl.so.2 is needed by beagle-0.2.1-2.1.fc4.nr
libgdk-x11-2.0.so.0 is needed by beagle-0.2.1-2.1.fc4.nr
libgdk_pixbuf-2.0.so.0 is needed by beagle-0.2.1-2.1.fc4.nr
libglib-2.0.so.0 is needed by beagle-0.2.1-2.1.fc4.nr
libgmodule-2.0.so.0 is needed by beagle-0.2.1-2.1.fc4.nr
libgobject-2.0.so.0 is needed by beagle-0.2.1-2.1.fc4.nr
libgtk-x11-2.0.so.0 is needed by beagle-0.2.1-2.1.fc4.nr
libm.so.6 is needed by beagle-0.2.1-2.1.fc4.nr
libpango-1.0.so.0 is needed by beagle-0.2.1-2.1.fc4.nr
libpangocairo-1.0.so.0 is needed by beagle-0.2.1-2.1.fc4.nr
libpng12.so.0 is needed by beagle-0.2.1-2.1.fc4.nr
librsvg-2.so.2 is needed by beagle-0.2.1-2.1.fc4.nr
libwv-1.0.so.3 is needed by beagle-0.2.1-2.1.fc4.nr
libxml2.so.2 is needed by beagle-0.2.1-2.1.fc4.nr
libz.so.1 is needed by beagle-0.2.1-2.1.fc4.nr
mono-core is needed by beagle-0.2.1-2.1.fc4.nr
sqlite2 is needed by beagle-0.2.1-2.1.fc4.nr
zip is needed by beagle-0.2.1-2.1.fc4.nr

OK, at this point, I feel like just throwing this thing away and enjoying a good night’s sleep – it’s already 1:30 am. Frankly, so much hassle for one software is too much. TOO MUCH.

uname -a inside Linux binary compat shell:
Linux panther 2.4.2 FreeBSD 6.1-RELEASE-p13 #1: Mon Feb 12 06:38:43 IST 2007 i686 athlon i386 GNU/Linux

I try installing one software at a time… but it has many other dependencies… sheesh! Creeps me out. I’m not done installing a single software yet – because every rpm that I try to install wants many more rpms… BLAH! I’m giving up for today.

Written by hiway

February 23, 2007 at 1:58 am

Open Source Projects: Surviving Poisonous People

leave a comment »

I read through the blog at http://weeklysqueak.wordpress.com/2007/02/20/how-open-source-projects-survive-poisonous-people-and-you-can-too/ and watched the video, it offers fantastic insights into the working of a large Open Source project.

Here’s the summary for ready reference… (mostly for me to come back to):

1. Comprehend: Preserve attention and focus.

2. Fortify: Build a healthy community.

3. Identify: Look for telltale signs.

4. Disinfect: Maintain calm and stand your ground.

Written by hiway

February 22, 2007 at 5:33 pm

PCBSD, Samba and Amarok

leave a comment »

So my computers Jaguar and Panther (nothing to do with MacOS) are running PCBSD for over 50 days now. Cheetah has been on FreeBSD since ages. I’m no sure what I run on, but the BSDs surely have something against me.

It is said that PCBSD makes it easy to share files like in MSWindows… right click on a folder, go to sharing tab… but for me the tab isn’t visible anymore… probably because i recompiled the kernel – because my printer was not going to work without that step, which included downloading the complete source code (FreeBSD comes with this stuff, but I can understand…) anyway… so the sharing tab isnt visible anymore. But when it was, I tried clicking on the settings button which supposedly opens another window… which never opened.

So… after a few deep sighs and a few cups of assam tea, I decided to go the old way – set up smb.conf on Jaguar by hand and using mount_smbfs on other machines. Followed the steps from http://www.freebsddiary.org/samba.php and got it running. I could see the files from Panther in konkueror (smb://10.0.0.4/share) and when I tried to open a file, Konqueror asked me if I wanted to download the file or open it in the related application. That was confusing, and after making up my mind, I decided to open the file instead of downloading it. Well, the file was downloaded to a temporary folder and then opened in the application. Blah! Well, after editing the file, I closed the application and the system asked me if I wanted to upload the file back again. Smart. But not smart enough.

I remembered using mount_smbfs command on FreeBSD and it never bothered me like this. Infact, I remember windows never bothered me with such questions either. For once, I had to accept that that OS is maybe a bit friendly. But then I remebered the horrors of setting up the network under windows… and I felt better. Hehe.

I tried the command but it was not allowing me to connect – authentication error, it barked back. Looked around, could not find anything that would help me, so I went through the smb.conf files available on the internet and came across “security=share” clause under [global] section of the file. Somehow it clicked… I put that in the conf file and restarted smbd… checked mount_smbfs from Panther and voila! it worked!

That’s for the adventure right in the first few hours of my day – who knows what’s left in the day!

Written by hiway

February 21, 2007 at 12:49 pm

Bluetooth on PCBSD 1.3

with one comment

I just installed brand new Altec Lansing surround sound speakers (for my laptop they are just 2.1 channel over 5.1 channel capable system… but whatever… they sound good!) and I was wondering if I could be lazy and listen to some music, especially change tracks and volume as I lay in the bed.

So finally I decided to get bluetooth running on this machine. It’s a Compaq Presario M2000 range laptop with AMD64 Turion (I’m stuck with 32 bits because of PCBSD… but that’s another story). So this is what I did…

Most importantly, it is imperative that any PCBSD (and that ultimately means FreeBSD) user must read through the FreeBSD Handbook before experimenting.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-bluetooth.html

I installed the required application (obexapp) as given and tried the commands. Most of them seemed to fail but the ping worked. Then I remembered reading something at the bottom of the handbook page – a command to disable role switching. Used that and now things seem like they would probably work!

Kudos to the maintainers of the software and the handbook for keeping things simple enough. However, I’m hoping we do get some automagic/ point-and-click functionality for this too… because typing in more than 3 commands scares any casual user. And yes… PCBSD is bringing a lot more casual users than FreeBSD might have expected, so no more procrastination!

Keep rocking *BSD!

Written by hiway

February 17, 2007 at 10:52 pm

Posted in BSD, FreeBSD, PCBSD, software, UNIX

Follow

Get every new post delivered to your Inbox.