maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   HOWTO - Printing From the Internet tablet to Network Printers (https://talk.maemo.org/showthread.php?t=10057)

penguinbait 2007-10-10 18:54

Re: HOWTO - Printing From the Internet tablet to Network Printers
 
Quote:

Originally Posted by Mara (Post 81138)
Since it has already Samba... how much work would it need to add support for Windows shared files/directories in N800? (And wise versa? Can Windows see files on N800?)


Well currently it does contain samba, and there is a smb.conf file in /usr/local/samba/lib

Just updated that, and then start smbd and nmbd and you should be able to connect to n800 via samba. You might want to grab a startup script from somewhere and start it on boot, the startup scripts are not included...

In order to do the reverse you need an application that supports browsing the network, although command line tools are there.

In KDE using the browser you can browse the network for fileshares, its actually quite nice to use. I downoaded my KDE tarball ripped out samba/cups/gs and then replaced them using my cups tarball and its working great, new kde tarball will follow soon

Mara 2007-10-13 23:52

Re: HOWTO - Printing From the Internet tablet to Network Printers
 
Quote:

Originally Posted by penguinbait (Post 81160)
Well currently it does contain samba, and there is a smb.conf file in /usr/local/samba/lib

Penguinbait: Do not spent too much time on this Windows shared files access... Why? Blame on Chinook... :D

debernardis 2007-10-21 10:41

Re: HOWTO - Printing From the Internet tablet to Network Printers
 
Quote:

Originally Posted by debernardis (Post 78940)
I've done a deb file of the .tar.gz [...]
After you install it you have to setup ld.so.conf and issue ldconfig and start the cups daemon as described in the first post of this thread...

I've fixed the debfile in http://www.debernardis.it/n800/cups12_armel.deb - now can be installed from the application manager.

Golab 2007-10-21 21:17

Re: HOWTO - Printing From the Internet tablet to Network Printers
 
hello im getting error when im trying to start it

/home/user # /etc/init.d/cups start

/usr/sbin/cupsd: error while loading shared libraries: libslp.so.1: cannot open shared object file: No such file or directory

cups: unable to start scheduler.

im using N800 and os on mmc2 so i boot frome mmc2

penguinbait 2007-10-21 21:18

Re: HOWTO - Printing From the Internet tablet to Network Printers
 
Quote:

Originally Posted by Golab (Post 85306)
hello im getting error when im trying to start it

/home/user # /etc/init.d/cups start

/usr/sbin/cupsd: error while loading shared libraries: libslp.so.1: cannot open shared object file: No such file or directory

cups: unable to start scheduler.

im using N800 and os on mmc2 so i boot frome mmc2

run ldconfig

make sure /usr/local/lib is listed in /etc/ld.so.conf If it is not, add it and run ldconfig

Golab 2007-10-21 21:30

Re: HOWTO - Printing From the Internet tablet to Network Printers
 
it works now, :) Danke

penguinbait 2007-10-21 22:57

Re: HOWTO - Printing From the Internet tablet to Network Printers
 
Quote:

Originally Posted by Golab (Post 85318)
it works now, :) Danke


your welcome :)

penguinbait 2007-10-24 20:14

Re: HOWTO - Printing From the Internet tablet to Network Printers
 
Quote:

Originally Posted by debernardis (Post 85105)
I've fixed the debfile in http://www.debernardis.it/n800/cups12_armel.deb - now can be installed from the application manager.

Is it possible to have it run ldconfig after deb install?

TA-t3 2007-10-25 10:08

Re: HOWTO - Printing From the Internet tablet to Network Printers
 
Quote:

Originally Posted by penguinbait (Post 86635)
Is it possible to have it run ldconfig after deb install?

Add a 'postinst' script to the package. It can typically check/change permissions and directories, run ldconfig, and, for this system, it should presumably also start the printer daemon. The one below is what I use for the 'lprng' package, presumably it should be something similar for 'cups', but with the additional ldconfig.

The lprng postinst script (Maemo version):
Code:

#!/bin/sh

set -e
case "$1" in
    install|upgrade)
    ;;

    configure)
        # Create directories for pid file
        if test ! -d /var/run/lprng; then
            mkdir /var/run/lprng
        fi
        chown root.lp /var/run/lprng
        chmod 0775 /var/run/lprng
        for fname in `ls /var/spool/lpd 2>/dev/null`; do
            if [ -d $fname ] ; then
                chown -R lp:lp /var/spool/lpd/$fname
                chmod 0700 /var/spool/lpd/$fname
            fi
        done
        chown daemon.lp /var/spool/lpd
        chmod 0700 /var/spool/lpd
        for fname in lpr lprm lpq; do
            chown root.lp /usr/bin/$fname
            chmod u+s /usr/bin/$fname
            chmod g+s /usr/bin/$fname
        done
        if [ ! -e /etc/printcap ] ; then
            cp /etc/lprng/printcap.example /etc/printcap
        fi
        ;;
    abort-upgrade)
        ;;
    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 0
        ;;
esac

# Have to manually start lprng as a failed startup is not a failed install
if [ -x "/etc/init.d/lprng" ]; then
        update-rc.d lprng defaults >/dev/null
        if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
            invoke-rc.d lprng start || true
        else
            /etc/init.d/lprng start || true
        fi
fi


Golab 2007-12-03 00:43

Re: HOWTO - Printing From the Internet tablet to Network Printers
 
to this work on OS2008?


All times are GMT. The time now is 14:25.

vBulletin® Version 3.8.8