debian Uncategorized

PIXMA 100 setup

this is a cheap and apparently old printer.  Important points:

  • It doesn’t connect to my WiFi — it needs a WPS button on the router
  • It doesn’t work with USB3 ports, needs to be connected to an older port
  • It needs to be rebooted prior it each printing session
  • The paper tray needs to be unfolded from the back, and the paper catcher needs to be unfolded from the front.

no sound on ipad games

check rotation lock, it is the same switch for mute, which can stop game sounds


hotas joystick

pressing mapping&preset together, then the home light will flash. then reboot. you can test whether the driver is working from settings


wireless on debian toshiba satellite

  1. lspci, look for wireless network
  2. the drivers are proprietary, non-free so google for the driver and install.  in this case it was firmware-iwlwifi.
  3. wireless-tools
  4. wicd (networkmanager also may have been helpful at some time, but i think its best to have only 1 of them installed.)
  5. reboot and check the hardware wireless switch is on.  (removed something called avahi-auto ipd because i wasnt getting connection and i thought it was interfering, turned out to be the wireless switch, doesn’t seem to have messed anything up either way and i don’t know what it  does.)
debian Uncategorized

wipe failing drive using systemrescuecd

ddrescue --force /dev/zero /dev/sdb log.txt
debian Uncategorized

fill out and sign a PDF on debian

  1. fill out form with xournal and export pdf.  (oowriter didn’t read xournal’s output even with the libreoffice pdf import extension, but the xournal’d pdf did print, gimp was able to read it, and it was emailable)
  2. edit a photo of signature in gimp (nice video
    1. layer/transparency/add alpha channel.  like writing on an overhead slide, the checkerboard represents the background through the slide
    2. use fuzzy select tool from toolbox to select the background from the photo
    3. delete the background, should see checkerboard.  delete within loops for O, Q, etc.
    4. from brushes, select the largest black brush and set mode to overlay.  brush over the signature to darken it  to a uniform black, otherwise it looks grayish like a photo when printed.
    5. open the pdf from gimp and select the page which needs the signature
    6. use the rectangle select tool to select the area where the signature should go.  note the height and/or width of the field.
    7. go to the signature image and image/scale image.  enter either the height or width to scale to, then`edit/copy visible.
    8. go back to the pdf and right click on the rectangle and paste.
    9. export the page to pdf
  3. use pdfshuffler to replace the unsigned page with the signed page in the PDF in order.  may need pdfshuffler orig sign orig (wasn’t able to move later pages to earlier ones, but was able to delete pages).

adding wireless epson workforce 633 printer

  1. add yourself to the lpadmin group using
    sudo usermod -a -G lpadmin tom
    /etc/init.d/cups restart

  2. printer should see router so connect them and get the confirmation printout which has the IP
  3. go to http://localhost:631/
  4. add printer, give 1 word for printer name. URL will be socket://IP from printout. cups already has the driver, add Epson Workforce 630
  5. lp -d printername whatever.pdf
  6. debian wiki on printing
  7. cups printing documentation

LaTeX formulas in xfig

To add LaTeX formulas to xfig

  1. add a text element, and enter LaTeX including $$
  2. edit the text element properties, and mark it special
  3. export as PDF/Latex
  4. in the LaTeX file, include the figure using \resizebox{\textwidth}{!}{ \input{thefilename.pdf_t} }

latex -> text

$ catdvi -e 1 -U file.dvi | sed -re “s/\[U\+2022\]/*/g” | sed -re “s/([^^[:space:]])\s+/\1 /g” > file.txt


this link

More details from the original poster:

The -e 1 option to catdvi tells it to output ASCII. If you use 0 instead of 1, it will output Unicode. Unicode will include all the special characters like bullets, emdashes, and Greek letters. It also include ligatures for some letter combinations like “fi” and “fl.” You may not like that. So, use -e 1 instead. Use the -U option to tell it to print out the unicode value for unknown characters so that you can easily find and replace them.

The second part of the command finds the string [U+2022] which is used to designate bullet characters (•) and replaces them with an asterisk (*).

The third part eats up all the extra whitespace catdvi threw in to make the text full-justified while preserving spaces at the start of lines (indentation).

After running these commands, you would be wise to search the .txt file for the string [U+ to make sure no Unicode characters that can’t be mapped to ASCII were left behind and fix them.


google voice, failed to retrieve and set forwarding

got a new phone, installed the voice app but google voicemail not working. found out the thing to do is:

  • write down the carrier voicemail number
  • write down the carrier forwarding numbers when busy, on a call, or unavailable
  • update all of these to the google voice number