Showing posts with label OS X. Show all posts
Showing posts with label OS X. Show all posts

Monday, November 17, 2014

OS X Yosemite 10.10.1 update - can't restart bug

I had this bug while trying to update to Yosemite 10.10.1 from Yosemite 10.8. It couldn't complete the update because it was stuck trying to restart. Finder would hang and the dock wouldn't leave. I couldn't even restart or shut down without hard powering it off by holding the power button down. sudo shutdown -r in a terminal didn't even work. The fix is to log in with safe mode. I loosely followed these odd directions, and the update applied normally in safe mode.

Thursday, October 2, 2014

Adobe PDF "Please Wait..." error message, and can't print PDF on Mac

Adobe has extra features beyond the PDF standards. If you have an Adobe-only PDF file (or you have a newer version than someone you're sending the PDF to), you'll be able to open the PDF normally while others will get this message in place of the PDF content:
This seems to be the case especially for PDF forms created in Acrobat Pro that can only be filled out in Acrobat Pro or Acrobat Reader.

To resolve this, the recipient either needs to open the file in the latest version of Adobe Acrobat, or you'll have to print the PDF from Acrobat using a PDF Printer. An additional caveat when using Acrobat on a Mac is that you cannot save a filled-out PDF form using the built-in PDF printer in Acrobat; it will tell you to save as a PDF. The form I had trouble with also was not able to be exported to the PDF/A standard, so the only option I had was to install a 3rd-party PDF printer. If Adobe had used the built-in printing functionality in OS X, we wouldn't even be having this issue.

Install PDFwriter from http://sourceforge.net/projects/pdfwriterformac/. If you're on Windows, CutePDF and Bullzip PDF Printer are both pretty good. Once you install PDFwriter, go to the Settings app in OS X and open Printers. Click the + at the bottom of the installed printers list to add a new printer, and select PDFwriter from the popup that follows. Now, go back to your PDF in Acrobat, click print, select PDFwriter as the printer, and print it. Your new PDF print file will be located in /users/shared/PDFWriter/. If you want to get fancy, you can also create a link to your dropbox folder by running this command from Terminal:
sudo ln -s /var/spool/pdfwriter/$USER ~/Dropbox/Documents/PDFs
This will upload your print-to-PDF files into your Dropbox.

reference: http://sourceforge.net/p/pdfwriterformac/discussion/1246009/thread/d66abec3/?limit=25

Wednesday, May 8, 2013

Cisco IOS break sequence on Mac OS X using USB to serial adapter

I'm using a USB-to-serial adapter with a Prolific 2303 chipset on my Mac with Mountain Lion to reset a Cisco router.

open source Prolific 2303 USB driver
OEM Prolific 2303 USB driver

After you install either of the drivers on your Mac, it will show up as a device in '/dev/'. Search for it:
ls /dev/tty.*

Mine was '/dev/tty.usbserial'. Connect to that device using 'screen' with 9600 serial port speed:
screen /dev/tty.usbserial 9600

Your terminal should now be connected to the serial port.

Boot your Cisco router into ROMMON by power cycling it and then entering the break sequence before it starts to boot IOS - this is usually within the first 20 or 30 seconds of booting. Some newer Cisco routers don't display anything to the serial console until after this time window. So, enter the break sequence after you turn your router on and before IOS loads. Press it multiple times as soon as power is applied to the router to try to catch it at the right time. There are two good methods:

1. For the 'screen' program that comes with OS X: CTRL-A, CTRL-B
That is, CTRL-a followed by CTRL-b. Shift is not required. CTRL-A breaks the keyboard control out of what screen is showing you, allowing you to then enter a keyboard command that screen will process instead of sending it to your serial connection. CTRL-B is a screen command to send the serial break sequence to your serial connection.

2. Reconnect screen with a serial port speed of 1200, power on the router, then press and hold the space bar for 20-30 second (or up to a minute to be safe). screen's output will not be normal while connected at this speed, and this is normal. Reconnect screen with the correct speed (the default is 9600) and press enter - you should be looking at a Rommon 2> prompt.

If you made it into ROMMON, you can change the way that the router boots up with the 'confreg' command. Run it without arguments to get a question-answer style menu you can step through, or if you just want it to boot without reading the config file (factory reset):
confreg 2142

Power cycle the router again and you should be looking at the factory IOS bootup. When you get to the prompt, use 'enable', then 'configure terminal', then 'config-register 0x2102'. This will make the router boot normally, using the config file. You will need to 'write memory' if you want the new factory default config you have to be there when you reboot.

Terminal to Serial/USB Devices From a Mac
Cisco's Break Sequence List
Send break sequence on a Cisco reverse terminal server

Wednesday, May 1, 2013

'no relaying allowed' email errors on OS X - mDNSResponder

Today I'm receiving mail delivery failures when I send email to some domains from Outlook on my Mac. It was mDNSResponder's fault.

Email:

Reporting-MTA: dns; rcdn-iport-6.cisco.com

Final-Recipient: rfc822;recipient@domain.com
Action: failed
Status: 5.0.0 (permanent failure)
Remote-MTA: dns; [123.12.34.56]
Diagnostic-Code: smtp; 5.1.0 - Unknown address error 554-'No relaying allowed - psmtp' (delivery attempts: 0)


And the solution - restart mDNSResponder from the command line (Terminal):

sudo killall mDNSResponder