Ask me questions
Have a question about unix, linux, freebsd. Or maybe you want some advice about configuring apache, mysql,an email server like exim, qmail, postfix, a proxy server like squid cache or antinat, dns or anything else similar. Want some help with php programming or maybe you want to create a wordpress plugin?
Feel free to ask and I'll do my best to answer it on this blog. I will publish a new blog post for each question and my answer.
You can use the contact form or ( if your question is short enough ) you can send it to me over twitter
You can follow me on twitter or subscribe to my RSS feeds if you want to be notified when I post the answer to your question.
This week on twitter 2009-07-26
- He's doing his best http://ff.im/5sGHW #
- Turns out twitter tools only tweets the blog posts with the date after it's install date. #
- did wp stats become public? or how else am I able to view the stats of a different account when being logged into my own? #
- myc4 plugin updated, now it can also tweet for every active bid http://bit.ly/ml5ST #
- @yoast the new backend looks great.I'd love to use it in one of my own plugins if that's ok with you. in reply to yoast #
- @shoemoney important security update, otherwise they would not have released it so soon in reply to shoemoney #
- I wonder ... if I block someone would I still see their @reply to me ? #
- Exciting Technologies Coming to Linux http://ff.im/5tURD #
- @ao12 ontul de pe digg e integrat in friendfeed si totul se face automat cand votez sau cometez ceva pe digg in reply to ao12 #
- @nonsequitir I have a conspiracy theory about this. I believe they move the biscuits so that you see other products while looking for them. in reply to nonsequitir #
- medieval battle records go online: http://bit.ly/Qsqw2
. Useless article, wtf is the site's address? # - it's probably http://www.medievalgenealogy.org.uk/sources/public.shtml #bbcfail #
- nah actually it's http://www.medievalsoldier.org/ but it doesn't seem to load at the moment #
- Clever Attack Exploits Fully-Patched Linux Kernel http://ff.im/5vEja #
- Proprietary, or "closed," systems were once rare... http://ff.im/5waqK #
- Upside-Down-Ternet [pic] http://ff.im/5yDnG #
- is there any way to make firefox remember passwords by url or part of it and not by domain ? #
- Gmail and the unsubscribe feature http://ff.im/5EasW #
- Cool plugin find: Changelogger http://ff.im/5Exma #
- gmail unsubscribe and report as spam is just stuppid. The simple "unsubscribe" option is hidden. #
- There is only ham and spam. Don't want ham? Unsubscribe. Don't want spam? report it. That's it ... simple, no mixing, no confusion #
- anyone knows how cpanel serviceauth works ? #
Powered by Twitter Tools.
This week on twitter 2009-07-19
- Why you should limit login attempts http://ff.im/5g8sm #
- setting up pppoe in ubuntu/network manager just a few clicks. Huge improvement since last time I had to do this (a few years ago ) #
- reset thunderbird's master password: thunderbird -chrome chrome://pippki/content/resetpassword.xul #
- Mowing the lawn http://ff.im/5iwc1 #
- I wish I could merge more then 10 contacts in gmail #
- finally found the path to publish_post: wp_publish_post calls wp_transition_post_status which calls do_action #
- did anyone manage to use ddiwrapper on ubuntu 9.04? maybe with canon pixma mp830 ?
# - RT: @lorelleonwp: I vote for death & destruction of #followfriday and all follow-memes. They are sheer time wasters. STOP the chain tweets. #
Powered by Twitter Tools.
ddiwrapper on ubuntu 9.04
I have a Canon Pixma MP830 printer. This printer supports high resolution printing up to 9600x2400 dpi, but the gutenprint driver only supports 600x600 dpi.
So what do I do to make it print with higher resolution?
I wanted to use ddiwrapper, a system that would let you use the native win2k/winxp drivers from the manufacturer. Basically it uses wine to load those drivers feed the print job into the driver and feed the driver's output to the printer.
Note:
This is an incomplete solution. I managed to get as far as being able to install ddiwrapper and the driver. I didn't manage to actually print a test page. When trying to print the test page I don't get any errors, and the printing system reports printing has finished but nothing is actually printed.
I wrote this post in case there are others that might want to try this and maybe can find the final solution.
There were two problems with ddiwrapper:
- it didn't compile on my system ( Ubuntu 9.04 x86_64 with Wine 1.1.25 ), complaining that : "Relocatable linking with relocations from format elf32-i386 (gdi32.o) to format elf64-x86-64 (gdi32.e8IuDu.o) is not supported" . This was fixed as soon as I added -m32 in a few Makefiles
- the excanondriver utility that is used to extract the driver is meant to be used with executable archives, zip or lha files, but the driver for MP830 is just an executable so I modified this file to work with driver files from a directory.
The fixes to both problems are provided in the diff file bellow.
Compile ddiwrapper
apt-get install wine-dev wget http://www.linuxprinting.org/download/ddiwrapper/ddiwrapper_0.3-rc1.tgz tar -xzpf ddiwrapper_0.3-rc1.tgz cd ddiwrapper
apply the diff file ddiwrapper 0.3rc1 ubuntu 9.04 amd64-0.1 (2.58 KB) , compile and install:
patch -p1 < ddiwrapper.diff make && make install
Install the drivers
Insert the driver's cdrom that came with the printer, it shoud be automounted.
Copy drivers from the cdrom to a local folder ~/cdrv :
mkdir ~/cdrv cp /media/cdrom/MP/Drv2KXP/* ~/cdrv
Delete the drivers for fax and scanner:
cd ~/cdrv sudo rm -rf Fax mp830fx.cat MP830fx.inf mp830sc.cat MP830sc.inf Scan
Move all drivers from ~/cdrv/Print to ~/cdrv :
sudo mv ~/cdrv/Print/* ~/cdrv rmdir ~/cdrv/Print
Now install the driver:
sudo excanondriver ~/cdrv/ /usr/share/ddiwrapper/drivers/default
Add the printer ( usb://dev/usblp0 should be replaced with whatever is the location of your printer) :
cd ~/ddiwrapper
lpadmin -p ddiwrapper -v usb://dev/usblp0 -P doc/ddiwrapper.ppd -E
or you can use the Printing admin application from System->Administration->Printing and load the ppd file in ~/ddiwrapper/doc/ddiwrapper.ppd
Apparmor setup
Ubuntu 9.04 has apparmor installed, and there is a profile for cupsd. The ddiwrapper tries to access files that are not specified in this profile, but by looking at the error messages generated in the logs I managed to find all the files and add them to the profile. Here's a diff file with the changes I did : apparmor cupsd profile patch- (871 bytes)
Apply the diff file to cups apparmor profile and restart apparmor:
patch < usr.sbin.cupsd.diff /etc/init.d/apparmor restart
Testing
The new printer should show up in the Printing admin and I thought I should be able print a test page but it didn't work.
The README file for ddiwrapper mentions there is a way to "dry" test this by feeding the driver a ps file and verifying if the output is correct but there are no details about how to do that.
Now what ? Has anyone managed to make this work for Pixma MP830 ? Any idea about how to debug it ?
This week on twitter 2009-07-12
- @spam @joinmeat4 in reply to joinmeat4 #
- Run a program on one CPU core in Linux http://ff.im/4TNea #
- @bobbyvoicu nice, acum cativa ani oamenii ziceau: linux nu are driver pentru X hardware...inapoi la windows. in reply to bobbyvoicu #
- if you want to setup #bind on #centos don't forget to install caching-nameserver unless you want to write the whole config by yourself #
- calling wp_update_post from a plugin creates duplicate published post. Why? #
- @adiPintilie suport pentru revolutia din iran in reply to adiPintilie #
- Firefox stability to get a boost with multiprocess browsing http://ff.im/50CM5 #
- SmushIt for WordPress http://ff.im/50Vmd #
- godaddy has the worst domain management interface #
- @spam @Mark_ze how spammy is your message? godaddy isn't even on that list. And I didn't even care about hosting in reply to Mark_ze #
- Dealing with Qmail's TAI64N format | Uno-Code [pic] http://ff.im/52FEf #
- app, and you want my details to let me see the demo, you ask for name,phone,etc but not email
#
- I just love dropbox. I use it to sync file between 3 computers. Even if I cange the password on my account, the computers are still linked. #
Powered by Twitter Tools.
Webmin 1.480: Bulk add ip addresses
A few months ago I published a patch for webmin that would allow you to easily add a lot of ip addresses to an interface in webmin. At that time I mentioned that the patch could only be applied on webmin 1.410.
Now I needed this patch again but this time on webmin 1.480 so I adapted it to work with the new version.
For usage instructions please see the original post
You can download the new version here: webmin bulk add net aliases-1.480 (4.13 KB)
Notes
This only works for interfaces activated at boot. The code could easily be copied to work with the other interfaces too but I didn't see a use for that.
After you add the ip addresses ( aliases ) you have to go to the list of interfaces, select the newly added interfaces and click the "Apply selected interfaces" button if you want the new aliases to be activated without having to reboot.
This week on twitter 2009-07-05
- google reader just logs me out in #firefox 3.5 #
- RT: @tudormoldovan: world's most efficient alarm clock (i had this idea once, really need it) http://bit.ly/lP2Ic #
- @krzsaw qmail in reply to krzsaw #
- @feeniks seems a bit outdated, qmail is public domain since 2007 in reply to feeniks #
- Easy TweetDeck in Ubuntu 64 bit | OSS Ramblings [pic] http://ff.im/4Cjri #
- changed #mysql home dir and couldn't start it anymore. Turns out I had to change the #AppArmor profile for mysql #ubuntu #
- gmail moved labels next to folders. Labels look more and more like folders. What's next sublabels ? C'mon gmail admit it, folders are better #
- album reordeing in gallery 2 is buggy. hoping the code in gallery3 is better #
- @AnnePMitchell buying as you see them would be wise but resisting the temptation to give them right away might be too hard
in reply to AnnePMitchell # - @AnnePMitchell kind of like the old "hidden too well" problem.
in reply to AnnePMitchell # - @aliverson could that be a remote position?
in reply to aliverson # - @AnnePMitchell less #followfriday tweets and less usernames in #followfriday tweets
in reply to AnnePMitchell # - Solar Power from Outer Space: Microwaves and Frickin' Lasers http://ff.im/4LO7i #
- Man Paid $2500 To Impregnate Neighbors Wife - Fails 72 Times http://ff.im/4LPrq #
- Blind man sees after having a TOOTH implanted in right eye http://ff.im/4LPsu #
- New Linux patch could circumvent Microsoft's FAT patents http://ff.im/4LRvl #
- Wanna be @the_real_shaq? That'll be $50,000 http://ff.im/4LRNS #
- Wanna be @the_real_shaq? That'll be $50,000 http://ff.im/4MCzm #
- How to Run Android Applications on Ubuntu http://ff.im/4MCON #
- Now Ubuntu doesn't need to reboot even after kernel updates http://ff.im/4MDhu #
- @studiorhoad maybe you're out of disk space in reply to studiorhoad #
Powered by Twitter Tools.
PatchLog


