I am having php code errors with my most recent post on installing and configuring HP Deskjet printers in Ubuntu 10.10 x64, searching online has lead me to believe that the page with the error has been hacked, as it is a .php file that is part of a plugin that has not been updated by me in several months. I’ll get it working here in a bit, but first I’ll need to modify some security on the website. Sorry for any inconveniences.
-Joel
**** Update ****
Ok, the issue was relatively simple, after checking the file in the error and not finding anything, I checked my page code and found a typo on one of the lines. After fixing the typo it resolved the issue, I even went to the home page for the plugin that was having the issue and found several users having this issue in the last month or so, kind of amusing…
last updated: Oct 16th, 2011
As promised here are the complete instructions as I have found them online and pieced together to properly install an HP Deskjet in Linux/Ubuntu 10.10 x64. As I mentioned before I did not do this originally and it seemed to work, but then [...]
last updated: Oct 16th, 2011
As promised here are the complete instructions as I have found them online and pieced together to properly install an HP Deskjet in Linux/Ubuntu 10.10 x64. As I mentioned before I did not do this originally and it seemed to work, but then later I started having issues. So here they are, all in one place, in order, complete with reference links to the sources (most are to the HPLIP open source website), these instructions are for you to build from the source files, not from a precompiled binary.
If you want the automated method, the HPLIP website has a great guide that has screen shots on using their binary package to do the install.
****update**** I have run through these instructions again and there is a new HPLIP driver, after installing this some of the wording has changed, if you use this new version and some things look different, don’t worry. I also noticed after following these instructions with the new versions of everything (Ubuntu 11.10 x64 also) that I ended up with two printers! one from HPLIP and another from CUPS… I only figured out it was one from each, as I set the description different when configuring each one! So you may want to test printing before you do the CUPS configuration section and see if it is necessary for you.
On we go!
Once again, anything in BOLD you can copy and paste directly into a terminal window, this is a standard method I use on all my guides.
Part One
– updating your system and downloading dependencies and the HPLIP source – information borrowed from here- ***** PLEASE PLEASE PLEASE ***** unplug the printer’s USB cable from the computer! (or ethernet cable if that is how you are using it).
- If you have not already, now would be a good time to setup your printer and power it on (but don’t plug it in to the computer).
- Open up a terminal window.
- sudo apt-get update && sudo apt-get check && sudo apt-get dselect-upgrade
- This will update your system and check for any missing dependencies you might have already.
- sudo apt-get remove hplip hpijs
- This will remove any existing HPLIP installation, prevent errors or other issues while installing, and make sure you end up with a shiny clean install. Also handy if you are trying to fix a botched install…
sudo apt-get install --assume-yes libcups2 cups libcups2-dev cups-bsd cups-client libcupsimage2-dev libdbus-1-dev build-essential ghostscript openssl libjpeg62-dev libsnmp-dev libtool libusb-dev python-imaging policykit-1 policykit-1-gnome python-qt4 python-qt4-dbus python-dbus python-gobject python-dev python-notify python python-reportlab libsane libsane-dev sane-utils xsane gs python2.6-dev gcc lsb postfix libcups2-dev- This did popup a window asking me about email settings, I selected no change, or no connection.
- This is the list of dependencies that I have found are required and some optional requirements for HPLIP. Please make sure they all install, if any fail, do a “sudo apt-get install –force-yes [package name]” to try and get them to install.
- mkdir ~/build-loc
- If you have not used any of my previous how to guides (not all of them use this), you may not have this DIR created on your machine, this is where I do all my source builds. it may not be the best place for you, depending on your FileSystem setup, I have separate mounts for documents, pictures, music, video, downloads, and a fairly large home directory. If you have limited space in your home directory you may want to put this somewhere else, or if you intend to follow this or any other guide I write, you might want to do a mount redirect to this location, so the data is on a different FS, but the DIR is in the same place. leave a comment if you need help with this, also, I believe I cover this in my Appcelerator guides near the beginning if you want to look there.
- cd ~/build-loc
- wget http://voxel.dl.sourceforge.net/project/hplip/hplip/3.11.10/hplip-3.11.10.tar.gz
- The good news is this will download the most recent release of HPLIP as of this writing, the bad news is that the HPLIP website does not have a direct link to the “newest” so, when they update this project this link will then be out of date, and I probably won’t know about it.
The version used in this guide was posted on Fri, 13 May 2011 03:32:54 GMT. Updated on October 16th 2011, there was a new version available. Some other good news, after you finish this guide one of the last steps will have you update your installed packages, and the HPLIP software may/should be part of you update repo’s and will then update as updates become available. - tar xvfz hplip-3.11.5.tar.gz
- cd hplip-3.11.5
./configure --with-hpppddir=/usr/share/ppd/HP --libdir=/usr/lib64 --prefix=/usr --enable-udev-acl-rules --enable-qt4 --enable-doc-build --disable-cups-ppd-install --disable-foomatic-drv-install --disable-foomatic-ppd-install --disable-hpijs-install --disable-policykit --enable-cups-drv-install --enable-hpcups-install --enable-network-build --enable-dbus-build --enable-scan-build --enable-fax-build- You can leave out the fax build at the end, unless your printer has built in fax capabilities, and if all goes well this will check to make sure you have every prerequisite installed and will set the configuration flags for the build process.
- make && sudo make install
- This step does two things:
- It builds the drivers from source with your user credentials to set the file permissions correctly.
- It installs it using sudo to root credentials which provides read/write permissions to system directories.
- Total time on my system to build was under 2 minutes (about 90 seconds give or take).
- sudo usermod -a -G lp $USER
- This will add your user name to the “lp” group allowing you access to the printer, you will either need to rerun this line for each user, after logging in as those users, OR type in the user name instead of “$USER” for each user you want to be able to prin.t
- Restart your computer OR log out and log back in – mostly this is to grant you access rights to prin.t
Part two
– configuring your printer driver – with information borrowed from here- Plug your printer back into the computer.
- Head back to your terminal window.
- sudo hp-setup
- Select your connection type, most likely USB.
- and select next.
- If all goes well you shall receive a screen listing all available HP printers.
- If you forgot to plug your printer back in, don’t panic, you can do it now!
- Select your printer and click next (if you only have one showing, and it is correct, then just click next).
- Fill in the description, location and change the name if you want, then click “Add Printer”.
- Now the setup window disappears and you can go back to your terminal window and start the next step, or if you don’t want to, all should work now.
Part three
– configuring CUPS for your printer – with information borrowed from here- sudo restart cups
- Pop open your favorite web browser and head over here:
- http://localhost:631
- Now for some optional maintenance, IF you previously tried to install/setup this printer, you may need to follow these steps, or if you need to remove the printer you are replacing, else go to the next number directly preceding this current one.
- Click Administration
- select “Manage Printers”
- Select the “old” installation of the printer – should say something about being unplugged in the status.
- Select Maintenance –> Cancel all jobs
- this should prompt you for a user name and password, you can use any user name and password that you have previously added to the “lp” security group (see near the end of Part one of this post).
- Click the Printer name to get back to the previous screen.
- Select Administration –> Delete Printer
- If you accidentally delete the wrong printer, go back to Part two and start over from step #1, then be more careful when you get back to this step…
- Hopefully your printer shows up in the printers list on this screen, if it does, then you are done and this entire Part was just to verify the installation was successful. If NOT, then go back to Part two and do it again! or you can manually add your printer to CUPS with the following steps (won’t work as good as if you got it right in hp-setup though). One more note about the following, I did not need to do this, so hopefully you don’t either, so I am copying these steps from the HPLIP website instructions word for word, although my CUPS management web interface is different from theirs.
- Hopefully you have the CUPS management console open in your web browser, if not go to the following:
- localhost:631
- The screen is divided into three columns, in the middle the first option is “Adding Printers and Classes” click on it.
- The first option in the top left corner is “Add Printer” click on it.
- If you have not previously provided it, it will now prompt for a user name and password, again it is looking for someone who is a member of the “lp” group, if you have been following my directions so far, you should have added yourself at the end of Part one and should be able to use your username and password.
- Next enter a name for your HP printer in the Name box, good thing to know, don’t use spaces if you want your printer to work.
- Enter a description/location if you want (I use these to differentiate amongst installations when doing a reinstall).
- Click “Continue”.
- Select a printer from the dropdown box (It should show up in this format “hp:/usb/[printer name, serial number]” that you want to install and click “Continue”. If your printer is not available to be selected, go back to the top of this Blog post and figure out where you missed a step… sorry.
- Select the Manufacturer of the printer, and click “Continue”
- Select the Model of your printer (it should be there because we just installed HPLIP), and click continue.
- You are now done, unless you need to setup faxing, if you, keep reading
- If you need to setup fax capabilities repeat the Add Printer steps above, only select a printer using this naming convention “hpfax:/usb/[printer name, serial number]” and choose HPLIP Fax (en) for the model.
- You are done here, sop select finish or complete or what ever allows you to get out of the Add Printer section, then close the web browser.
- Now, head back to your terminal window (this is for configuring faxing, you really are done if you are not setting up a fax!).
- hp-toolbox
- Select your printer (the one you selected as hpfax:/usb/[printer name, serial number]).
- Select the Tools and Settings tab across the top.
- Click on Fax setup and fill in your information.
- Click on OK and that is it, now you are done.
You should not need to print a test page unless you had problems somewhere in between the top of this post and the bottom. If there were no issues, save a tree, don’t waste it with a test page, especially if you are using Ubuntu, the default test page will use up a good bit of your color inks. I’ll add an update on to this post if I have any further printer problems.
Let me start off by saying, “What a Mess!” About 2.5 weeks ago (probably 3 by the time I post this!) I bought an HP Deskjet 2050 printer at Walmart, it was cheap, had a flatbed scanner, came with “full” ink cartridges, and only a USB connection option. [...]
Let me start off by saying, “What a Mess!” About 2.5 weeks ago (probably 3 by the time I post this!) I bought an HP Deskjet 2050 printer at Walmart, it was cheap, had a flatbed scanner, came with “full” ink cartridges, and only a USB connection option. It was $49.00, $20 more than the printer that looked identical, but was not a flatbed scanner. I thought that HP of all companies would have linux support, even for newer model printers, oh there is support for it… If you can find it. (I’ll be putting up a separate post with plenty of links and re-written documentation for installing this and other HP printers in Ubuntu in the next week or two, kinda busy this weekend, so doubt it will get done before next week)
First thing I did was to go to HP’s website and download a driver, I wasn’t even going to fool with the included CD (actually not sure it even had one). I found it within a minute or two, all seemed good. Installed the driver and plugged the printer in, everything went fine. I believe I even printed something that day just clicked print and it spit right out! Well, next to happen was my wife is using my ChromeOS CR-48 netbook and wanted to print something, so I went to look into setting up Google Cloud Print. I figured, yeah cloud print, that should work… Google has two operating systems in their pockets and both are linux based, piece of cake to use cloud print with linux, right? wrong…
Google Cloud Print requires a Windows computer running the beta Google Chrome browser (or a Mac, but why would you want to use a Mac?) (an fyi, the Linux Chrome Browser only comes in Beta!), a bit confused and disappointed (happens a lot with Google these days), I thought, oh well, good thing I have 5 or 6 Windows Virtual Machines setup already! I popped onto a Win7 VM and setup Google Cloud Print and told my wife “Good to Go!” only took me 30-45 minutes to figure all that out and set it up (I forgot to share it with her gmail ID the first go round!).
Success! it printed!
I love first try attempts that work out great!
So next I had to fill out some paperwork for work and email it back, so I printed the pages that needed signing and filled them out, then tried scan them back in… the scanner would not scan (using simple scan) unless I unplugged the USB cable for 10 seconds or so, then plugged it back in… (more on that at the end of this post, I have a theory). Well after 3-5 pages of this over 1-2 hours, out of about 12 pages, popping the USB cable out stopped working. I wasn’t sure why it needed it in the first place, I had checked to make sure the printer was not attached to a VM at the time… So instead I tried setting it up to scan off the Win7 VM I was using for Cloud Printing (just a note, this was all happening maybe 4 days after the cloud print setup), the scanning application from HP worked fine until I was done. Weird though, again if I did not use the printer for an hour or two, or the VM was paused, or the screen saver came on, I had to unplug the USB cable again…
ok, so history done, up to my issue that started last night…
Actually the issue started on Saturday, but I was pre-occupied and didn’t really try too hard to get it resolved. My wife sent something to the printer from the netbook, I started up the VM for the Win7 Cloud Print, and it never printed. The first document just says “In Progress” and the date submitted was showing 3 days ago when I deleted it. I’ve powered off the Printer for 30+ minutes, I’ve rebooted my computer 4 times, leaving it powered off for about 8 hours once, popped the USB cable, nothing worked. I tried printing locally from Ubuntu and still nothing comes out, just says “Processing”. I did some digging online and found some “directions” for setting up the printer in linux, most of which was on HP’s website, and I never did any of it, including downloading the driver source files and doing a Build, Make, Install on them. So I started following the directions (did not build the driver, it seems to be installed and functioning, as Ubuntu can tell if it is plugged in or not and shows the correct device name), and found a huge list of dependencies that it says to install, I tried it and sure enough I did not have most of it installed on my system yet. About 78MB worth to be specific. I let it run, and noticed a new kernel was available, so I updated that while I was at it… 3 reboots later (not necessary, just kept trying to get things working) and I have no change in the current situation.
So, right now I have no working printer at all, not even scanning is working. It shows it is online, I have enabled it, shared it, allowed internet printing on it (none of which I did when I installed it, only did that after it stopped working).
Now, I’ve had some time to think about it, and I have been having USB issues with Ubuntu the entire time I’ve been running it. My USB webcam and Skype have fighting matches everytime I reboot my system, it never detects and adds the webcam as a valid hardware device, I have to manually configure the microphone each restart, and the video sometimes requires I unplug the webcam and then plug it back in and restart Skype. Other USB devices (I have a USB wireless headset and KB, external drives, my android phone), have all had issues that has required me to restart the computer or plug and unplug the device over and over several times.
This made me think I should run “lsusb -v” on my system to take a look at the devices that the system thinks I have. Well the command does nothing, it just hangs and never runs or finishes running, I have to kill the process AND the terminal window process to get it to stop. I missed this in the printer issue above, but I tried running the hp-setup app that came with the driver and it hangs on detecting the printer when I select USB as the connection type, as well.
So I have determined that the issue is with my Ubuntu installation and the USB service (this occurred to me actually right before I started typing this up). I have not yet started looking into the USB issue and will be doing so tonight. I’ll post a second post instead of updating this one with any results I find out, or if I nuke and reinstall… as a note if I do reinstall, it will not be Ubuntu 11. Also planning on typing up a how to properly install an HP printer on Ubuntu 10.10 x64 guide too.
Right so first off I have to say that it is all my fault I am not currently up and running 100% in FreeBSD 8.0, I agree before anyone else can say it… I’m an idiot. I went out and bought (went out=I hit up [...]
Right so first off I have to say that it is all my fault I am not currently up and running 100% in FreeBSD 8.0, I agree before anyone else can say it… I’m an idiot. I went out and bought (went out=I hit up newegg.com) a wireless card so I can stop bridging my network connection off my laptop, and I just had to buy an 802.11n dual antena (very cool looking too…) wireless PCI card, one that has a BRAND NEWish CHIPSET that is not currently supported in Linux, or BSD. So, I will gladly bend over and take what’s coming to me for that one… But, it was the same price as the 802.11g card and supports MIMO!! so I think I deserve some brownie points for that…
Well, here is a copy of what I have posted on the DesktopBSD forum (more on that later)
Ok, well I had a nice long post typed out here (twice now, but I copied most of it before I hit the stupid key this time) with lots of details and useless additives; however I hit the stupid “back” button that IBM thought would be a good idea to put on the key board of this laptop right next to the up arrow… and so it is gone.
this will have to be a quick version, minus some heavily laden with porn russian websites (oh! there was also one trying to sell an iphone x-ray vision app too!!!) I can find zero info on this chipset, I have a Encore Electronics ENLWI-NX2 802.11n PCI card, works in Win7 AFTER running their config/setup progy. Shows up in pciconf with class, card, chip, rev, and hdr hex codes, and a vendor and class listing, but nothing else. It shows up in windows as an RTL8190P, I was unsuccessful in finding it in FreeBSD 8.0 x64; but I may have forgotten to capitalize the “R” in Realtek when I grepped the “pciconf -lv” results.
manufacturer product page: http://www.encore-usa.com/product_item.php?region=us&bid=2&pgid=81_2&pid=412
I followed the ndisgen instructions posted in this forum by sqlbsd, and all went well until I tried to load the RTL8190P_sys file, then the system hangs for 3-6 seconds and finally the PC just shut off. So a bit more PC info… I tried running FreeBSD 8.0 x64 first, but did not even find the card listed in pciconf (or dmesg) when I grepped for Realtek (maybe I forgot to capitalize the “R”? but either way I didn’t see it, and although I got KDE setup and it booted to the login screen, I could not log in, the KB and mouse only worked on the console screens, so I came back to DesktopBSD). So, I have a clean DesktopBSD 1.7 x64 install on my machine, only 1 network card and it is this wireless card.
I am going to try the 32bit drivers, the win 2k drivers, and then the vista drivers that shipped with the card. I also have the setup file from the manufacturer’s website DL’d and will check that for a different version. if anyone has any ideas I’d be happy to give them a go. I may try an Ubuntu Live CD to check if it will recognize the card, also puppy linux tends to find wifi cards out of the box, so I may give that a shot and see if I can figure out which drivers they use.
I knew I should have just bought the 802.11g card… but I had to go with the 802.11n just cuz it was the same price… and had MIMO support…
****edit 10 minutes later****
I did notice that the Encore ENLWI-G is listed on the FreeBSD 7.2 Hardware list, so there is hope…****update 8:12pm EST****
So, the newly downloaded drivers from the website were slightly more generic (RTL819xP drivers) but they are 7 months newer, so I tried them. The Win64 failed to convert invalid syntax line 2355 or so, the the winxp2k drivers loaded fine, but failed to create the .ko file. The vista x64 drivers converted with no errors and loaded without crashing the PC; however the system still does not recognize the wireless card. so I guess I move on to something else?
Right, well then… now you know… and we all know what happens after that… (right, if anyone can’t find those russian sites (I searched for “RTL8190 FreeBSD”) I’ll be happy to email you the links… j/k
) so on to a little more explaining…
As stated in the post I failed to find the wireless card even listed in the installed hardware listing, I am 90% sure at this point I did not capitalize the “R” as that just makes no sense. After which I just dumped the FreeBSD install and went to Desktop BSD, as I have installed DBSD 1.6 previously on this hardware and it had KDE working in under 50 mins with no manual configuring and I was unable to type on the login screen currently in FreeBSD 8.0-RELEASE. So I booted up of my newly minted Desktop BSD disc and away it went. I learned that if you create more than one UFS partition during install that when you reboot you get a “Invalid Partition Table” message instead of your OS. easy fix, don’t make multiple partitions. The OS is up and running at this very second, but without inet access.
So I am off to try an Ubuntu live CD, Fedora Live CD, and a Puppy and or Slax USB bootable File System. In an attempt to find out if any non-windows OS can auto configure or even load the Windows drivers to get that wifi working (I believe I have a post around here somewhere about my HP laptop running Puppy and it finding th ewifi adapter and being able to locate networks, but not able to connect, and Ubuntu 8.x on that same laptop working perfectly with wifi, so we shall see what happens…)
*****quick update, before I even post it… HA! *****
after reading the reviews on the NewEgg site (specifically one from feb 28th), I decided to DL the RTL8192E drivers from the Realtek website, will give them a shot before the other OS’s.
*****update March 12th*****
So, I went ahead and added the lines to /boot/loader.conf to automate the loading of the driver during startup, but I have also been getting the same results with all driver versions. (XP drivers fail to convert, and Vista and 7 drivers convert fine, but the system still refuses to acknowledge the existence of the hardware device after using kldload or even restarting.) I currently have a KUbuntu live CD loaded and an lspci from a terminal screen shows the network controller, states it is a realtek and gives a device of 8190. however, the control panel does not acknowledge a wireless adapter as being present nor does ifconfig show the wireless adapter as being present.
I tried installing ndiswrapper from the cd and attempted to load the windows drivers from there. First I tried running ndiswrapper and it told me it was not installed and to run ndiswrapper-common, when I installed it and tried to run it it told me to install a bunch of other things. All were available except ndiswrapper-utils-1.9 which replied back that it was missing, obsolete, or no longer available, then that it had been replaced by ndiswrapper-common. so I could not run ndiswrapper because I did not have ndiswrapper-utils and could not install it because it was replaced by what I already had? got me, without doing an actual install, the good news is that it completely recognized it, I’ll have to check with an installation if it is already in the newest linux kernel, I have just moved on to Fedora since I do not intend on doind an Ubuntu install if I do not have to.
I booted up the Fedora 12 disc I have and it failed to bring up the KDE GUI. The Vterms were available, and an lspci -v showed the full information on the wireless card, so I am going to try a reboot and see what happens.
Everything came up fine with a reboot, not sure what happend the first time. it is not working; however an lspci -v shows no kernel driver in use. I will need to do some research to find out how to add the driver while running off the Live CD, probably get to that later. been working all day in front of a computer, need to relax my eyes some now.
*************Update 3-17-2010**************
just found this website and I think this is a linux driver for the rtl8190p 802.11n chipset
http://lxr.free-electrons.com/source/drivers/staging/rtl8192e/r8190_rtl8256.c
Twitter: finndo77
- New blog post... Diablo III closed Beta http://t.co/dKC2ChWm 01:36:32 PM December 07, 2011 from joelperryproductions.com ReplyRetweetFavorite
- New blog post... resolving video problems with K-L-Ubuntu and XFX Radeon 6850 http://t.co/H6bXuMqi 06:59:18 AM October 22, 2011 from joelperryproductions.com ReplyRetweetFavorite
- New blog post... Computer upgrades http://t.co/6PWVNy4m 01:39:35 PM October 20, 2011 from joelperryproductions.com ReplyRetweetFavorite
- $7 for $15 Worth of Hand-Tossed Pizza, Calzones, and Drinks at Andolini's Pizza Charleston, SC http://t.co/QnKwPwB 11:49:26 AM August 29, 2011 from Tweet Button ReplyRetweetFavorite
- New blog post... is zdnet.com/news down http://t.co/DThuI4r 07:57:28 AM August 17, 2011 from joelperryproductions.com ReplyRetweetFavorite
- New blog post... Netflix Down? http://bit.ly/q74Svu 07:39:30 PM August 08, 2011 from joelperryproductions.com ReplyRetweetFavorite
Blogroll
programming
Tech Websites
- a good coder I found on CodeProject
- Barebones HTML coding chart
- Code Project
- Extreme Overclocking
- FreeBSD blog
- Legit Reviews – Tech Hardware Review
- Linuxtopia
- Notion Ink – homepage
- Plug Computing web site and forums
- Tablet Roms – used to be – Notion Ink Hacks
- Ubuntu Forums post on the mount command and fstab file
- VMWare ESX blogger
- Wikipedia.org main page
- ZDNet's blog pages

