Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - desertrat

Pages: 1 [2]
16
Zaurus - pdaXrom / Html Tidy
« on: January 19, 2006, 04:28:23 pm »
Here's tidy

[blurb]
Tidy reads HTML, XHTML and XML files and writes cleaned up markup. For HTML variants, it detects and corrects many common coding errors and strives to produce visually equivalent markup that is both W3C compliant and works on most browsers. A common use of Tidy is to convert plain HTML to XHTML. For generic XML files, Tidy is limited to correcting basic well-formedness errors and pretty printing.

-- cheers

17
Zaurus - pdaXrom / Bluefish 1.0.4
« on: January 19, 2006, 04:06:21 pm »
Here's bluefish

[blurb]
Bluefish is a powerful editor for experienced web designers and programmers. Bluefish supports many programming and markup languages, but it focuses on editing dynamic and interactive websites.

NB Bluefish requires a pcre library that has been compiled with support for UTF8. Unfortunately the version of pcre in the feed does not have UTF8 support. Fortunately I have included one here that does

Get rid of existing pcre:
Code: [Select]
ipkg-uninstall pcreNB you will most likely see some errors about grep not finding the pcre library that you just uninstalled

Install new pcre:
Code: [Select]
ipkg-install / pcre_6.4_armv5tel.ipkNB again you will most likely see some errors about grep not finding the pcre library that you just installed. Don't worry all will be fine next time you run ipkg-*

-- cheers

18
Zaurus - pdaXrom / Cbrpager 0.9.14
« on: January 18, 2006, 02:58:16 am »
Here is cbrpager.

A no-nonsense, simple to use, small viewer for cbr and cbz (comic book archive) files. As it is written in C, the executable is small and fast. It views jpg (or jpeg), gif and png images, and you can zoom in and out.

NB it uses GTK+ and you may have to install a bunch of gnome stuff to satisfy dependencies.

-- cheers

[updated to include an icon and relevant desktop entry so that it will (hopefully) appear on the menu of WMs]

19
Zaurus - pdaXrom / Strace 4.5.14
« on: January 17, 2006, 06:04:54 am »
Here is strace 4.5.14.

-- cheers

20
Zaurus - pdaXrom / Help Needed Compiling Gphoto2
« on: January 15, 2006, 02:01:47 pm »
I've compiled gphoto2 (and its associated dependencies - libexif, libgphoto2, libusb), but it doesn't quite work. What happened is that when I compiled them, to prevent make install from putting files directly into my system, I used something like:
Code: [Select]
./configure --prefix=/mnt/hd/ipkg-tmp/usr/local
Unfortunately this had the effect of hardcoding that path into some of the libraries with the result that after installation the libraries are looking in the wrong place for the list of supported cameras and hence finding none:
Code: [Select]
# grep ipkg ./*
Binary file ./libexif.a matches
./libexif.la:libdir='/mnt/hd/ipkg-libexif/usr/lib'
Binary file ./libexif.so matches
Binary file ./libexif.so.12 matches
Binary file ./libexif.so.12.0.1 matches
Binary file ./libgphoto2.a matches
./libgphoto2.la:dependency_libs=' /mnt/hd/ipkg-tmp/usr/local/lib/libgphoto2_port.la -ldl -lm'
./libgphoto2.la:libdir='/mnt/hd/ipkg-tmp/usr/local/lib'
Binary file ./libgphoto2.so matches
Binary file ./libgphoto2.so.2 matches
Binary file ./libgphoto2.so.2.0.3 matches
Binary file ./libgphoto2_port.a matches
./libgphoto2_port.la:libdir='/mnt/hd/ipkg-tmp/usr/local/lib'
Binary file ./libgphoto2_port.so matches
Binary file ./libgphoto2_port.so.0 matches
Binary file ./libgphoto2_port.so.0.5.2 matches

The making an ipk howto suggests one workaround, ie use "--prefix=/usr/local" then "mount a partition over /usr/local". I was wondering whether there are any other ways to overcome this problem?


-- cheers

21
Zaurus - pdaXrom / Package Conflicts
« on: January 15, 2006, 05:08:06 am »
I installed findutils onto external storage and was surprised to see that find and xargs still refer to busybox:

Code: [Select]
# ls -al /usr/bin/find /usr/bin/xargs
lrwxrwxrwx    1 root     root           17 Jan  1  1970 /usr/bin/find -> ../../bin/busybox
lrwxrwxrwx    1 root     root           17 Jan  1  1970 /usr/bin/xargs -> ../../bin/busybox

Digging into /usr/bin/ipkg-link I see that that is the intended behaviour, that is if the linkname already exists then it will be ignored:
Code: [Select]
add () {
        echo "*** Adding $PACKAGE"
        echo "$files" |
        while read line; do
                if [ ! -e "/$line" ]; then
                        # Only if it doesn't already exist.
                        if [ -d "$PREFIX/$line" ]; then
                                # It's a directory.
                                `mkdir "/$line"`
                        else
                                # It's a file.
                                 target=`echo ${PREFIX}/${line} | sed -e 's/\/\//\//g'`
                                `ln -s "$target" "/$line"`
                        fi
                fi
        done
}

So to use packages like findutils, where the commands it provides replaces the existing ones that are already part of the base system, you need to install to internal storage (/) -- or fiddle around with the links yourself after installation. That's the easy fix. But if for some reason you decide to uninstall findutils, you will find (pun intended) that the original find and xargs will be gone.

What's the solution? A minimal solution would be to increase the level of information given by the ipkg utils so that, for example in the above case, the installation does not "fail" silently.

A more comprehensive solution might require some file tracking mechanism whereby files that are overwritten are archived somewhere and restored when the package is uninstalled. But that could become a nightnare when more than one package wants to overwrite the same file.

A halfway solution would be to target only busybox symlinks, if a package replaces a busybox equivalent then use the apprpriate preinst, postinst, prerm, postrm scripts to remove and restore links.

I would like to hear what others think of this

-- cheers

22
Zaurus - pdaXrom / Jwhois 3.2.3
« on: January 12, 2006, 02:13:50 pm »
OK here's my first attempt at compiling and making an ipkg for pdaXrom

jwhois 3.2.3 (http://www.gnu.org/software/jwhois/jwhois.html)

I would be grateful if an "oldhand" would check it over to see whether I have made any mistakes (and let me know before I pick up some bad habits!)

-- cheers

[attachment[/attachment]

23
Zaurus - pdaXrom / Weird Keyboard Problem
« on: January 10, 2006, 03:54:05 pm »
C3100 / 1.1.0beta1

For some bizarre reason my period key (ie the key for the characters . ? >) stopped working when in the console. In X it works fine.

Any ideas?

-- cheers

24
Zaurus - pdaXrom / Tuxcards 1.2 Segfaults On 1.1.0beta1
« on: January 10, 2006, 05:03:00 am »
Using tuxcards (http://mail.pdaxrom.org/contrib/zdevil/tuxcards_1.2_armv5tel.ipk) on 1.1.0beta1. It loads (I can even see the contents of the data file that is autoloaded) but it promptly dies with a segmentation fault. Same problem under both Matchbox and KDE.

-- cheers

25
Zaurus - pdaXrom / Stardict And Scim Not Compatible?
« on: January 10, 2006, 02:08:57 am »
I can't get stardict (http://www.pdaxrom.org/unstable/stardict_2.4.4_armv5tel.ipk) to work when scim is enabled. When run, the stardict splash window comes up and just "hangs" until I kill it. If I disable scim (ie comment out its entry in /etc/gtk-2.0/gtk.immodules) then stardict works fine.

I'm using 1.10 right now but the same problem was there in rc12.

Does anyone else have the same problem or have I just missed a config option somewhere?


-- cheers

26
Zaurus - pdaXrom / Permissions Problem In Sudo_1.6.8p8-1_armv5tel.ipk
« on: January 09, 2006, 08:31:02 am »
Not sure whether this should go into the official bugs reporting system or not, but anyway:

Using sudo_1.6.8p8-1_armv5tel.ipk from the 1.10 feed. A couple of problems:

1) The sudo binary does not have the setuid bit set. The fix is:
Code: [Select]
chmod u+s /usr/bin/sudo
2) The file /etc/sudoers has the wrong permissions. The fix is:

Code: [Select]
chmod 0440 /etc/sudoers
-- cheers

27
Zaurus - pdaXrom / Howto Configure A Usb Ethernet Adaptor
« on: November 23, 2005, 01:56:21 am »
As USB ethernet adaptors doesn't work out of the box (for me at least) and when I first researched the subject I found nothing, I decided to do something about.

pdaXrom already has driver support for pegasus and rtl8150 based usb ethernet adatptors. Others may or may not be supported, but as those 2 were the only ones I had at my disposal they were the only 2 tested.

To get this working you need 2 new files:

Code: [Select]
/etc/hotplug/eth.conf
/etc/hotplug/eth.func

these are based on:

Code: [Select]
/etc/hotplug/usbdnet.conf
/etc/hotplug/usbd.func

respectively. However eth.func fixes several typos in the original usbd.func which prevents it from working properly (the process for shutting down an interface hangs).


And 1 modified file:

Code: [Select]
/etc/hotplug/net.agent
Basically the original net.agent didn't look for ethX devices, and as both my adaptors appear as eth0 net.agent just ignored them. I essentially duplicated the code which handled the usbdX devices and modified it slightly to work with ethX devices.

The 3 files are in the attachment (remove the .txt extension). Make a backup of the original /etc/hotplug/net.agent (just in case!), then extract the 3 files and copy them into /etc/hotplug/. Modify /etc/hotplug/eth.conf to your liking then plugin your adaptor and enjoy

PS If there are easier/better ways to achieve this please let me know!


-- cheers

28
Zaurus - pdaXrom / Keyboard Problems With Scite (and Gnumeric)
« on: November 21, 2005, 10:44:35 am »
System: C3100 + rc12 + XFCE 4.2.2 (Chero's packages)
Scite 1.62
Gnumeric 1.6.0

Problem: when I use Scite I cannot enter numbers, ie 1, 2, 3 etc. Those number keys gets interpreted as FUNCTION keys, eg if I press '3', Scite interprets that as F3 and does a "Find next", and similarly pressing 8 shows the Output window. The only number keys which behave are those that apparently not mapped to any functions keys, these being 6, 9 & 0.

A similar problem exists in Gnumeric but to a lesser extent in that only the 1 key is affected (that's mapped to F1 Help, but since no help is supplied with the Z version of Gnumeric nothing happens).

This problem manifests itself in both Matchbox and XFCE.

I should probably add that I had uncommented out the section in akita.xmodmap so as to enable the function keys (so that Fn1 -> F1 etc), and those work fine eg in midnight commander.

As I am using PocketWorkstation/Debian, for fun I installed Scite on that as well, and sadly the same problem exists.

Has anyone else come across the same problem? Any clues on how to fix it?

ps. I have tried commenting out the function keys section in akita.xmodmap, and now Scite and Gnumeric works as expected, BUT I've lost the use of F-keys and that makes using mc a lot less convenient.

So any ideas how I can use F-keys and have Scite, Gnumeric (and probably other programs that I haven't come across yet) behave properly?


-- cheers

Pages: 1 [2]