I'm booting the Galileo board with the SD-Card Linux Image provided by Intel
There is more than one version - which image did you take?
sudo apt-get install does not work for the Galileo.
Indeed. There is also a Debian image out which should support apt-get. However, if you use one of the Yocto Linux images you will have *.ipk rather than *.deb packages. Rather than "apt-get" you would use "opkg". Dependent on which image you installed you might have to specify a repository in "/etc/opkg/" folder if available.
One way to do this is by installing cups using opkg. Grab the prebuilt .ipk for CUPS from Index of /releases/yocto/yocto-1.3/ipk/i586
Copy this file to your SD-card.
Boot into the galileo
opkg install <path_where_you_kept_the_package>/<package_name>.ipk
You can try building your own Linux image using the Yocto Project. Notes on how to do this are found in the Board Support Packages found at Intel Galileo (Gen 1) Development Board Documents
The recipe for cups is found at Yocto Package Report System
However this can be challenging to do and requires a lot of time but you will learn a lot.
#2 Check out AlexT intels blog. He has done a great amount of work to make things really simple for everyone. http://alextgalileo.altervista.org/
well, it's the question whether the image is eglibc or uclibc. If the libc doesn't fit the mentioned *.ipk won't fit.
yup. That is true.!! I forgot to mention that. Thanks!1
mhahn I'm using LINUX_IMAGE_FOR_SD_Intel_Galileo_v1.0.2. I believe the Debian image provided needs a serial cable. I don't have one. I'm only using a usb cable and an ethernet cable connected to my switch
Rushang.Karia I downloaded the ipk file from http://downloads.yoctoproject.org/releases/yocto/yocto-1.3/ipk/i586/cups-dbg_1.4.6-r6_i586.ipk but I got an error after executing the command opkg install cups-dbg_1.4.6-r6_i586.ipk See attached image below. I have also tried building the Linux image using the Yocto Project but I never got to finish the build process due to multiple errors & I have no idea how to resolve the issue.
I'm using LINUX_IMAGE_FOR_SD_Intel_Galileo_v1.0.2.
which means you are on uclibc realms. I am not so sure about the yocto repo. I'd assume it's eglibc based. Then you wouldn't be able to run the packages even if install succeeds.
I downloaded the ipk file from http://downloads.yoctoproject.org/releases/yocto/yocto-1.3/ipk/i586/cups-dbg_1.4.6-r6_i586.ipk but I got an error after executing the command opkg install cups-dbg_1.4.6-r6_i586.ipk See attached image below. I have also tried building the Linux image using the Yocto Project but I never got to finish the build process due to multiple errors & I have no idea how to resolve the issue.
You probably are better off installing the non debug version (i.e. http://downloads.yoctoproject.org/releases/yocto/yocto-1.3/ipk/i586/cups_1.4.6-r6_i586.ipk) otherwise you'd have to install all the dbg chain. If the yoctoproject repo fits (not sure on that) you might also add it in /etc/opkg, e.g.
cat > /etc/opkg/yoctoproject-repo.opgk <<EOF
src yoctoproject-repo http://downloads.yoctoproject.org/releases/yocto/yocto-1.3/ipk/
after a "opkg update" you should be able to directly "opkg install" from this repo. "opkg list" would show you the list of available packages.
I believe eglibc is not arduino compatible
I am connecting the galileo board to my switch. I am able to use the galileo linux console via ssh with a static ip, but I need to run a sketch once on the SD card Linux image with this line: system("telnetd -l /bin/sh");
If I switch to an image that is eglibc based, which I haven't tried yet & has no idea where to get it. I will not be able to run the sketch for me to connect to my galileo board via ssh
I've already managed to install an eglibc image from this thread Prebuilt eglibc-based linux image and package repository
It already contains the cups package that I needed & I've connected my printer to the usb host of my galileo board
Now, I just have to figure out how to set my printer as default destination when I execute the lpr command to print my file
I believe eglibc is not arduino compatible
The cross-compiler contained in the Arduino IDE is uclibc based. However, if you don't require building for uclibc (is required if you need to build for SPI - eglibc just wouldn't fit in) you can build an eglibc based toolchain and replace the uclibc one (see e.g. Re: [Tutorial] Setting up Arduino IDE for linux images based on eglibc, Re: clloader in a Linux Base Image (clanton-full) build not working?).
Alternatively you could use an image which contains eglibc and uclibc libs (e.g. meta-intel-iot-devkit - Intel IoT Developer Kit metadata devkit-daisy-1.6.1 branch). That way you can run work with the unmodified Arduino IDE.
I just used the image from this thread Prebuilt eglibc-based linux image and package repository
Installed my printer driver and set it to default printer destination
The problem now is when I execute 'lpr sample.txt' command, I get an error message "Unsupported document format"
Also I tried to execute 'lpr Document.docx' command, I didn't get an error message but printer does not print the document. Printer state only changes to printing
Do you happen to know how to resolve this issue? Thank you.
pls don't post the same questions into several threads in parallel.
on lpr I guess that's a question on CUPS setup - quick googling gave me following (dated) hit which might be (still) relevant to you: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=381743
seems some gs-esp needs to be available ...
will this also install cups-pdf ? If not is there a yocto recipe for cups-pdf that I can use ?