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://iweb.dl.sourceforge.net/project/hplip/hplip/3.12.2/hplip-3.12.2.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 onOctober 16th 2011February 8th 2012, 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. (on feb 2012 the current repo version for ubuntu was still 3.11.x) - tar xvfz hplip-3.12.2.tar.gz
- cd hplip-3.12.2
./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 print.
- Restart your computer OR log out and log back in – mostly this is to grant you access rights to print.
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. note: it is possible your printer was automatically installed via cups during the OS install if you had it plugged in during that time, it will show up here, as “idle” you should remove that one, it will cause issues, and will not work with the “Extra” features of your printer, ie scanning.
- Click Administration
- select “Manage Printers”
- Select the “old” installation of the printer – should say something about being “unplugged” in the status. (possibly shows “idle” read the note above for more info on that)
- 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 still open in your web browser, if not go to the following:
- localhost:631
- The screen is divided into three columns, if you need to setup fax capabilities, do the following: 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 “hpfax:/usb/[printer name, serial number]” and choose HPLIP Fax (en) for the model” 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 here, so 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.
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

