Fatdog64 alpha3

Under development: PCMCIA, wireless, etc.
Message
Author
kirk
Posts: 1553
Joined: Fri 11 Nov 2005, 19:04
Location: florida

#21 Post by kirk »

Jim1911,

Could you delete /lib/modules/2.6.33/kernel/drivers/usb/class/usblp.ko and then reboot and try to add your printer. It looks like cups 1.4 has it's own replacement for usblp and if usblp loads it won't work. I couldn't unzip your Xorg.0.log, could you use gzip and re-post? It does look like the nouveau kernel module loaded.

Jamesbond,

Now I feel just silly, yes it's in hex. I'll fix it.


Thanks guys for your help!!!

I had a problem with Abiword opening a odt file so I tried compiling Abiword from svn again. That fixed it and it looks like the display problem is fixed too.

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#22 Post by Lobster »

I was very surprised to see it go straight to your default desktop with fine resolution
Boot from CD/DVD
puppy pfix=ram (if you want a brand new clean boot)
Straight in and connected to Firefox using Spot (I am using ethernet)

I like that too :)

Abiword: on the initial load is all scrunched up - small until you resize
the initial -g command line option will modify the size

Code: Select all

abiword -g 640
firewall working
- just think I ran for several days without a puppy firewall
- no problems - put my tin foil hat in a drawer :wink:

An ASF movie file that had problems with intermittent sound
now plays perfectly with xine

The puppy package manager is populated - but I don't think implemented yet

Tried to watch Scifi on Pup TV . . .
Image

This is what I get when restarting x (probably with Firefox still open - so that might be why) - It is a temp message xorg starts OK but I thought you might like to see the code . . .
Image
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

Jim1911
Posts: 2460
Joined: Mon 19 May 2008, 20:39
Location: Texas, USA

#23 Post by Jim1911 »

kirk wrote:Could you delete /lib/modules/2.6.33/kernel/drivers/usb/class/usblp.ko and then reboot and try to add your printer. It looks like cups 1.4 has it's own replacement for usblp and if usblp loads it won't work. I couldn't unzip your Xorg.0.log, could you use gzip and re-post? It does look like the nouveau kernel module loaded.
Sorry, deleting usblp.ko made no difference. The Xorg.0.log.zip file just needs to be renamed, since it wasn't zipped as I indicated.
Cheers,
Jim

kirk
Posts: 1553
Joined: Fri 11 Nov 2005, 19:04
Location: florida

#24 Post by kirk »

Jim1911,

Sorry, guess I can't read. It looks like Xorg is using the old nvidia driver, while the kernel is loading the new Nouveau module. Maybe I can get the Nouveau driver load automatically. Though I don't know if it works well or at all. If you want to try using the Nouveau driver you'll need to install the pet package then ctrl-alt-backspace to exit Xorg. Type xorgwizard-old, after that xwin. Then edit /etc/X11/Xorg.conf, look for something like this:

Section "Device"
Identifier "nvidia"
Driver "nv"
EndSection

change the Driver "nv" (or maybe it will say nvidia) to Driver "nouveau" save and restart X.

That was my only idea about the printer. I have a network printer, maybe I can find a USB printer to work with. If anyone with a USB printer would like to tackle this, please do.

Lobster,

Abiword will be fixed in alpha5, I compiled the svn version, all seems to be fixed.

Yes, there's something up with Xine and mms streams, I'll see what I can find out.

The terminal picture looks pretty normal, nothing to worry about there.

Jim1911
Posts: 2460
Joined: Mon 19 May 2008, 20:39
Location: Texas, USA

#25 Post by Jim1911 »

Hi Kirk,
Though I don't know if it works well or at all. If you want to try using the Nouveau driver you'll need to install the pet package then ctrl-alt-backspace to exit Xorg. Type xorgwizard-old, after that xwin. Then edit /etc/X11/Xorg.conf, look for something like this:
I tried following your instructions and just managed to wipe out some pupsaves. I would have to edit /etc/X11/Xorg.conf from the command line which is beyond my skill level since I'm not familiar with commands to use. Sorry, that I couldn't help.
Jim

kirk
Posts: 1553
Joined: Fri 11 Nov 2005, 19:04
Location: florida

#26 Post by kirk »

Xine with mms streams is fixed. It will be in alpha5.

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#27 Post by Lobster »

good news about xine :)
Mtpaint does not seem to be reading .jpg's
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

usblp

#28 Post by jamesbond »

Ok I've got an USB printer as well. And here's my "exploration" based on alpha4.

1. First try (fresh boot of live CD) doesn't work.
2. I rmmod usblp as per kirk's earlier suggestion. A few google search also confirms that the new CUPS will not work if usblp is loaded.

After rmmoding usblp and restarting cups,

3. lpinfo -v still doesn't show my printer.
4. /usr/lib/cups/backend/usb does show my USB printer, with the connection string etc.
5. I copy the connection string and force-add the printer manually (using lpadmin -p -v "connections string").
6. Then from CUPS web interface I added the right driver (Epson).
7. Try to print a test-page ... never happens. The printer didn't respond, there was nothing in the error log the status page got stuck as "waiting for the printer to go online".

That's as far as I can go. I can't find information about why the usb back-end shows the printer but the lpinfo doesn't.

I seconded Lobster - mtpaint can't open jpg files (although gimp does, and I'm happy with that :) )

The Xorg seems to be more stable (I'm on the machine with Intel graphics).
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

kirk
Posts: 1553
Joined: Fri 11 Nov 2005, 19:04
Location: florida

#29 Post by kirk »

Sorry Lobster, I thought the mms streaming was fix, but it's intermittent. If it starts working it will work several times in a row and then sometimes it won't work at all. I tried compiling Xine 1.2, no difference. So then I booted up Puppy 432, same exact error.

Thanks having a go at the CUPS problem JamesBond, I'll see if I can find a usb printer and maybe recompile CUPS.

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

Fix for CUPS usb printers

#30 Post by jamesbond »

kirk wrote:Thanks having a go at the CUPS problem JamesBond, I'll see if I can find a usb printer and maybe recompile CUPS.
Hold on that purchase yet, kirk. I found the cause and the FIX.

The cause is permission problem on the device entry. CUPS backend runs as non-privileged user (I don't know the exact userid it runs on), including the usb backend.

When a USB device (ie the printer) is plugged in, two things happen:
(a) an entry for the device is inserted in the usbfs (/proc/bus/usb). This entry is owned by root, and the default permission is 644.
(b) an device node is created in /dev. This entry is owned by spot and the default permission is 600.

Now the question is - which entry is used by the usb back-end? It took a little bit of detective work and some plain luck, I finally found out that CUPS usb backend uses (a), not (b). This is bad luck - I know we change any aspects of (b) by using udev rules, but I know of no idea how to change (a).

FIX #1
Every time you plugin the printer, find out which usb node it's connected in (cat /proc/bus/usb/devices and look for the printer brand). Let's say you found that this will be bus 6 device 4. (Alternatively, you can look at dmesg and make a guess). So you chdir to /proc/bus/usb/006 and do a "chmod a+rw 004". Then everything will work --- until you unplug / turn off the printer, which when you need to do the exercise again.

Is there anyway to automate this (preferably using known methods such as udev?). If yes this would be the best solution.

FIX #2
Make CUPS usb backed suid. Unfortunately it won't work directly, if we just chmod +s /usr/lib/cups/backend/usb, CUPS will refuse to execute that backend (it will say "unsafe permission"). So we have to trick CUPS, by creating a script that will execute the real suid usb.
1. mv usb usb.bin
2. chmod +s usb.bin
3. touch usb; chmod +x usb
4. geany usb --- and fill it with this:

Code: Select all

#!/bin/sh
exec /usr/lib/cups/backend/usb.bin "$@"
And everything will be good again. The good thing about this is that once done, it will work for all future printers. The bad things, well, there must be a reason why CUPS doesn't like to run a suid backend.

If you want to avoid this acrobatics, and you're in the mood to recompile CUPS :D, you'll probably have to either:
a) let cups run as root, or
b) allow cups to run suid backend.

cheers!
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

kirk
Posts: 1553
Joined: Fri 11 Nov 2005, 19:04
Location: florida

#31 Post by kirk »

Wow, thanks Jamesbond! I was going to do Fix#1, thought I'd just grab the udev rules from some other distro. But then after some searching it seems there's problems with multifunction devices (scanner, printer, fax) being identified as a scanner, then printing doesn't work because the new node is assigned to to wrong group. So Fix#2 is looking real good.

Thanks again.

User avatar
stevoomba
Posts: 76
Joined: Thu 05 May 2005, 08:14
Location: Rye Park NSW
Contact:

#32 Post by stevoomba »

Working great, Kirk, thanks. Only problem is java isn't working in Firefox. Any ideas? I installed update 17.

Steve

(edit: It's alpha4 I'm using...)

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#33 Post by jamesbond »

Steve,

I presume you install your java by downloading the .bin file from Sun website directly. When you run the .bin file, it will extract the entire JRE (or JDK) to the current directory. You can then move this directory elsewhere as you wish (e.g, under /opt). I will continue this with assumption you have installed the JRE under /opt/java.

To get java working under firefox, according to here http://java.sun.com/j2se/1.6.0/manual_i ... linux.html you have to create a symlink in firefox's plugins directory to correct java library.

To cut the story short, all you have to do is this:

Code: Select all

ln -s /opt/java/lib/amd64/libnpjp2.so /usr/lib64/firefox/plugins
Replace "/opt/java" above with where you installed your JRE.

Checked it in firefox's plugins page (about:plugins) before and after you do that. If you still need further confirmation, you can come here http://java.com/en/download/installed.jsp to check. You don't even have to restart Firefox after that to get Java working.

(Tested with alpha4, with JRE update 18 - though I'm sure it will work with update 17 as well).

Hope that helps, cheers !
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

Aung
Posts: 144
Joined: Sat 20 Jan 2007, 03:30
Location: Hervey Bay

#34 Post by Aung »

Kirk, almost ready to send you my $20
A-4 for my setup now works for my chipset. Not any wizards for Xorg on cd or full install first boot. Running sbin/xorgwizard from terminal dont work, xorgwizard-old brings up the wizard but on restarting the Xserver the screen is dark green with barely visible text. Quick and dirty rebuild needed to fix it. (delete everything execpt boot and root and do a full install, this way all my settings, apps and docks are are saved) However I can take xorg.conf out of A-3 to give me my 1024:768 screen. Takeing xorgwizard out of A-3 dont work, afrer restarting Xserver get a prompt but cant type 'xwin jwm' another Q&D install needed. Aung

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#35 Post by jamesbond »

Hi kirk,

Just asking, are you going to release alpha5 soon, or are you going to hold for a while until 2.6.33-series kernel and the issue with aufs/unionfs has stabilised?

cheers!
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

kirk
Posts: 1553
Joined: Fri 11 Nov 2005, 19:04
Location: florida

#36 Post by kirk »

Yes, I've been meaning to post something. I've been working on a NFS file sharing application for Fatdog. I compiled 2.6.33.1 with AUFS enabled for NFS. It's working, but I'm trying to hammer some bugs out. If you kill the nfsd servers without umounting, then the system becomes unstable. If it can't get things to unmount reliably, I'll recompile the kernel without NFS support for AUFS and make the NFS file sharing application work with folders out side of the layered file system (/mnt/home). I might do that anyway to avoid AUFS from having to do so many tricks and having less storage limitations.

I haven't really had any problems with AUFS. The previous alphas have all been ext2 in the save file. Alpha 5 will be ext3. I did this once before, but it seems like I got some error messages popping up when the save file was on NTFS. Unionfs is just too scary. I don't think it gets much testing due to AUFS. Apparently you need a patch for Unionfs so that most web browsers will work. That can't be good.

I'll upload alpha 5 later this week.

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#37 Post by jamesbond »

Cool ! Thanks kirk, and no rush. I've been running alpha1 (your very first alpha on 2.6.28 kernel) for a while now, off an NTFS partition and I hacked the initrd to use ext3 for the save file, and yes I got a few worrying messages each time I shutdown, but so far no loss of data on either the save file or on the NTFS partition itself.
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

kirk
Posts: 1553
Joined: Fri 11 Nov 2005, 19:04
Location: florida

#38 Post by kirk »

Don't download right now, I'm going to upload a new version in few days. Actually I did upload a new version with 2.6.32.10 but I decided to give 2.6.33.1 one more go.

User avatar
DC
Posts: 360
Joined: Sun 30 Apr 2006, 15:07
Location: Maidenhead, England

#39 Post by DC »

Hi Kirk,

Does 64bit have DVB modules? :D

DC

kirk
Posts: 1553
Joined: Fri 11 Nov 2005, 19:04
Location: florida

#40 Post by kirk »

Yes, DVB modules.

I've uploaded beta 1. See here:

http://www.murga-linux.com/puppy/viewto ... 001#405001

Post Reply