Tiny Core Linux
General TC => General TC Talk => Topic started by: Chatty on May 11, 2014, 05:39:39 AM
-
Attention: This thread is work in progress - feel free to give hints to make this solution fully independent of "written elsewhere expert knowledge".
- Format an USB key (assumed drive letter E:) to FAT32, create a "boot" directory, then make it bootable via syslinux (https://www.kernel.org/pub/linux/utils/boot/syslinux/Testing/6.03/syslinux-6.03-pre11.zip) -d boot E:
- Create E:\syslinux.cfg with this contents (find out UUID by vol E:):
DEFAULT core
LABEL core
KERNEL /boot/vmlinuz
APPEND initrd=/boot/core.gz quiet tce=UUID="7EED-CED0" opt=UUID="7EED-CED0" waitusb=5:UUID="7EED-CED0"
- Create E:\boot\vmlinuz with the file extracted from Core.iso (http://tinycorelinux.net/5.x/x86/release/Core-current.iso).
- Create E:\boot\core.gz with the file extracted from Core.iso (http://tinycorelinux.net/5.x/x86/release/Core-current.iso).
- Create E:\tce\onboot.lst with this contents:
avahi.tcz
cups.tcz
libusb.tcz
libusb-compat.tcz
hplip.tcz
pycups.tcz - Create E:\tce\optional\ and fill with necessary extensions, e.g. downloaded with curl (http://www.confusedbycode.com/curl/curl-7.36.0-win64-fix1.zip).
curl -O http://ftp.vim.org/os/Linux/distr/tinycorelinux/5.x/x86/tcz/{expat2,nss-mdns,libdaemon,libffi,glib2,gcc_libs,dbus,libavahi,avahi,libpng,freetype,fontconfig,libjpeg-turbo,liblzma,libtiff,lcms2,openssl-1.0.0,libcups,ghostscript,bzip2-lib,pcre,qpdf,udev-lib,libpciaccess,libdrm,libXdmcp,libXau,libxcb,libX11,libXext,libXxf86vm,libXfixes,libXdamage,libGL,libXrender,pixman,cairo,poppler,ijs,cups-filters,cups,libusb,libusb-compat,libsane,readline,ncurses-common,ncurses,gdbm,tcl,libXss,libXft,tk,sqlite3,python,dbus-glib,dbus-python,net-snmp,hplip,pycups,firmware-broadcom_bcm43xx}.{dep,tcz,tcz.md5.txt} - Create E:\opt\bootlocal.sh with this contents: *not supported on FAT32*
sudo sed -i -e "s/Listen localhost:/Port /" -e "s/Order allow,deny/Order allow,deny\n Allow @LOCAL/" -e "s/Basic/Basic\nDefaultEncryption Never/" /usr/local/etc/cups/cupsd.conf
sudo /usr/local/etc/init.d/cups start - unfinished: have printer firmware loaded automatically (http://www.openprinting.org/printer/HP/HP-LaserJet_1000)
- unfinished: setup printer in CUPS (http://wiki.tinycorelinux.net/wiki:printer_setup_using_cups)
- unfinished: enable AirPrint (https://ezunix.org/index.php?title=Enable_iOS_AirPrint_with_any_printer_supported_by_CUPS)
The following issues have to be overcome yet:
HPLIP.tcz is dependend on LIBUSB-COMPAT.tczaccessing https://box:631/admin fails --> encryption requirement switched off- physically connecting the printer leads to udevd[PID]: failed to execute '/lib/udev/bin/sh' 'bin/sh -c '/usr/local/bin/hp-mkuri -c &'': No such file or directory
- trying to print a test page fails because LJ1000 requires "proprietary plugin (http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-3.11.5-plugin.run)", hp-plugin fails to run this but /bin/sh hplip-3.11.5-plugin.run --noexec --keep && plugin_tmp/hplip-plugin-install works - still CUPS pretends Filter failed, hp-testpage says Channel read error, hp-check says hpijs-install=no but this printer needs hpijs
-
Have you seen this:
http://forum.tinycorelinux.net/index.php/topic,9633.msg53740.html#msg53740
-
@Juanito: I saw this thread already but linked to another wiki which describes the necessary steps in more detail.
I don't doubt the linked information from your thread will work. But I want to create a start-from-scratch manual to get a fully working AirPrint server.