Wednesday, July 31, 2013

DashBoardClient - Stop it to install Adobe Flash on Mac

Apple/Adobe Users:

This solution worked for me with the latest version of Adobe Flash and MacOS 10.5.7 (latest software updates installed). However, I am going to clarify a bit more what I did.

Step 1 - Open Terminal (You can find it under /Applications/Utilities/)

Step 2 - To turn Dashboard off:

Type this into Terminal and press enter:

defaults write com.apple.dashboard mcx-disabled -boolean YES

Step 3 - find the Dock process id:

Type this into Terminal and press enter:

ps -ef | grep 'Dock' | grep -v 'ashboard' | grep -v 'grep'

The SECOND number from the left is the process id for the Dock.

Step 4 - Kill the Dock:

Type this into terminal and press enter (replacing '<processid>' with the number you found above, second from the left):

kill -9 <processid>

Step 5 - Install Flash Player per Adobe's installer

Step 6 - To turn Dashboard on:

Type this into Terminal and press enter:

defaults write com.apple.dashboard mcx-disabled -boolean NO

Step 7 - find the Dock process id:

Type this into Terminal and press enter:

ps -ef | grep 'Dock' | grep -v 'ashboard' | grep -v 'grep'

The SECOND number from the left is the process id for the Dock.

Step 8 - Kill the Dock:

Type this into terminal and press enter (replacing '<processid>' with the number you found above, second from the left):

kill -9 <processid>

Step 9 - Press "F12" or whatever function key brings up Dashboard to assure it is functioning again now.



Tuesday, July 30, 2013

Use LPD to print to Windows shared printer from Linux

  1. Enable LPD Print Service on Windows
    • Go to Control Panel -> Add Remove Programs
    • Click Turn Windows Features On or Off
    • Expand Print and Document Services
    • Put a check in LPD Print Service
    • Click OK. Restart once you are told to
  2. Share printer on Windows
    • Right-click on the printer you want to share, click Printer Properties
    • Click the Sharing tab
    • Check Share This Printer and give it a name
    • Make sure the name has NO SPACES!
    • You can set security from the Security tab. In my situation, I just set it to let everyone print
    • Click OK to save and close

  1. Configure Linux
    • Ensure CUPS is installed
    • Visit the CUPS administration page in the browser (http://localhost:631)
    • Click Administration and then Add Printer
    • Under the Other Network Printers section, click LPD/LPR Host or Printer and click Continue
    • In Connection put: lpd://hostname_or_ip/PrinterName . In my situation it looks like lpd://192.168.79.130/LabelPrinter where 192.168.79.130 is the IP of my Windows machine, and the printer share name is LabelPrinter. Click Continue
    • Give the printer a name(remember the name), description and location. You can also share this printer from here as well. I did not do this in my situation because I will be printing directly from this Linux server to Windows. Click Continue
    • Next comes the driver portion. In my situation I used a ppd file, so if you have one of those you can pick it here. Otherwise you will have to pick a make and model of your printer. Click Add Printer.
    • You can set up some defaults for the printer here if you so desire.
  2. Test Print!
    • From linux I ran these 2 commands:
      echo “Hello” > test.txt
      lpr -P PrinterName test.txt
      (where PrinterName is the name we gave CUPS for our printer)
    • You should see a print come through that says Hello
This is a very basic configuration described here, but it should at least get you started.