Tiny Core Linux
Tiny Core Extensions => TCE Bugs => Topic started by: wirelessben on February 02, 2012, 08:33:13 AM
-
With Firefox, samba3, and cups installed, symlink smb is broken:
tc@box:/tmp/tcloop/cups/usr/local/lib/cups/backend$ ls -l smb
lrwxrwxrwx 1 root root 21 Dec 16 2010 smb -> ../../../bin/smbspool
tc@box:/tmp/tcloop/cups/usr/local/lib/cups/backend$ ls -l /tmp/tcloop/cups/usr/local/bin/smbspool
ls: /tmp/tcloop/cups/usr/local/bin/smbspool: No such file or directory
cups/backend/smb should point to
../../../../../../samba3/usr/local/bin/smbspool
which is
/tmp/tcloop/samba3/usr/local/bin/smbspool
-
Hi wirelessben
cups/backend/smb should point to
../../../../../../samba3/usr/local/bin/smbspool
which is
/tmp/tcloop/samba3/usr/local/bin/smbspool
No, links under /tmp/tcloop should never point to other extensions under /tmp/tcloop. The link as
listed is correct. Try this:
ls -l /usr/local/bin/smbspool
If it is not found, then Samba3 is not installed correctly.
-
tc@box:~$ ls -l /usr/local/bin/smbspool
lrwxrwxrwx 1 root root 41 Feb 2 12:31 /usr/local/bin/smbspool -> /tmp/tcloop/samba3/usr/local/bin/smbspool
The link is good, so samba3 is installed correctly, but cups/backend/smb still points to
../../../bin/smbspool
which does not exist.
Is this a problem with cups?
-
H wirelessben
What does this return?:
ls -l /usr/local/lib/cups/backend/smb
-
tc@box:~$ ls -l /usr/local/lib/cups/backend/smb
lrwxrwxrwx 1 root root 47 Feb 2 14:29 /usr/local/lib/cups/backend/smb -> /tmp/tcloop/cups/usr/local/lib/cups/backend/smb
tc@box:~$ ls -l /tmp/tcloop/cups/usr/local/lib/cups/backend/smb
lrwxrwxrwx 1 root root 21 Dec 16 2010 /tmp/tcloop/cups/usr/local/lib/cups/backend/smb -> ../../../bin/smbspool
tc@box:~$ cd /tmp/tcloop/cups/usr/local/lib/cups/backend/
tc@box:/tmp/tcloop/cups/usr/local/lib/cups/backend$ ls -l ../../../bin/smbspool
ls: ../../../bin/smbspool: No such file or directory
tc@box:/tmp/tcloop/cups/usr/local/lib/cups/backend$ which smbspool
/usr/local/bin/smbspool
tc@box:/tmp/tcloop/cups/usr/local/lib/cups/backend$ ls -l /usr/local/bin/smbspool
lrwxrwxrwx 1 root root 41 Feb 2 14:29 /usr/local/bin/smbspool -> /tmp/tcloop/samba3/usr/local/bin/smbspool
Should ../../../bin/smbspool point to /usr/local/bin/smbspool?
-
Hi wirelessben
Should ../../../bin/smbspool point to /usr/local/bin/smbspool?
Either that or there should be a smbspool included. Cups-smb.tcz has that file included, try installing
that and see if it helps.
-
Thanks for helping, Rich.
No joy on installing cups-smb. I uninstalled samba3 and cups, rebooted into tc base, and loaded cups-smb. Couldn't even start cups. Had to load cups, too. Started cups, got the web interface, no samba option.
tc@box:~$ ls -l /usr/local/bin/smbspool
lrwxrwxrwx 1 root root 43 Feb 2 16:19 /usr/local/bin/smbspool -> /tmp/tcloop/cups-smb/usr/local/bin/smbspool
tc@box:~$ ls -l /tmp/tcloop/cups-smb/usr/local/bin/smbspool
-rwxr-xr-x 1 tc staff 1879576 Sep 17 2009 /tmp/tcloop/cups-smb/usr/local/bin/smbspool
tc@box:~$ ls -l /tmp/tcloop/cups/usr/local/lib/cups/backend/smb
lrwxrwxrwx 1 root root 21 Oct 12 13:53 /tmp/tcloop/cups/usr/local/lib/cups/backend/smb -> ../../../bin/smbspool
tc@box:~$ ls -l /tmp/tcloop/cups/usr/local/bin/smbspool
ls: /tmp/tcloop/cups/usr/local/bin/smbspool: No such file or directory
tc@box:~$ ls -l /usr/local/bin/smbspool
lrwxrwxrwx 1 root root 43 Feb 2 16:19 /usr/local/bin/smbspool -> /tmp/tcloop/cups-smb/usr/local/bin/smbspool
A smbspool file exists. Cups just doesn't know where it is.
-
Hi wirelessben
OK, try this, go back to your original setup, Samba + cups. Modify the link like this:
sudo ln -fs /usr/local/bin/smbspool /usr/local/lib/cups/backend/smb
See it that fixes it.
-
That worked! Thank you, Rich.
I did install Samba before cups, and /usr/local/lib/cups/backend/smb was broken before I applied your fix:
tc@box:~$ ls -l /usr/local/lib/cups/backend/smb
lrwxrwxrwx 1 root root 47 Feb 3 08:39 /usr/local/lib/cups/backend/smb -> /tmp/tcloop/cups/usr/local/lib/cups/backend/smb
I also started Samba before cups:
sudo /usr/local/etc/init.d/samba start
sudo /usr/local/etc/init.d/cups start
"Windows Printer via SAMBA" now shows up when configuring CUPS via http://localhost:631 (http://localhost:631)
-
Hi wirelessben
You are welcome. By the way, I did not mean to imply what order to install the extensions in, just to
revert to your previous setup. Please edit the subject line in the first post of this and your other
thread by adding [SOLVED] to it.
-
Hi Rich,
I marked the problem SOLVED in the Q&A thread, but I believe it's still a bug here, unless a developer has fixed it.
To reproduce, boot TC 4.2.1 and load Firefox, samba, and cups.
At a terminal, change the root password with "sudo passwd".
Navigate to http://localhost:631 (http://localhost:631) . Click Administration. Click Add Printer. Enter root with YOURROOTPASSWORD.
"Windows Printer via Samba" will not show up as a radio button.
Your command fixes it:
sudo ln -fs /usr/local/bin/smbspool /usr/local/lib/cups/backend/smb
I don't have the TC dev environment, but I would guess /usr/local/bin/cups-config is the relevant script.
Ben
-
Hi wirelessben
While it is probably a bug, a working solution has been found. You could send a brief PM to juanito
with a link to this thread and mention that the extension contains a broken link.
-
'don't know what happened there, but I see the error - I'll fix it in the next couple of days or so.
-
Errors are what separates us from the computers. :)
-
posted