Tech Tips Blog

Tips Learned Through Experience

f-secure created a nice article to see if you are infected and how to fix it if you are. This will stop the Russians from stealing all of your personal information.

http://www.f-secure.com/v-descs/trojan-downloader_osx_flashback_i.shtml

To uninstall the Sonicwall SSL-VPN from OSX run the following in the terminal and restart your computer:

udo rm /private/var/db/receipts/com.sonicwall.NetExtender.bom
sudo rm /private/var/db/receipts/com.sonicwall.NetExtender.plist
sudo rm /etc/ppp/sslvpn.*

•    download and extract
•    cd /path/to/osx-pl2303.kext
•    cp -R osx-pl2303.kext /System/Library/Extensions/
•    next you need to fix permissions and execute bits:
cd /System/Library/Extensions
chmod -R 755 osx-pl2303.kext
chown -R root:wheel osx-pl2303.kext
•    cd /System/Library/Extensions
•    kextload ./osx-pl2303.kext
•    kextcache -system-cache

source: http://xbsd.nl/2011/07/pl2303-serial-usb-on-osx-lion.html

Open Terminal and run the following command to all you to select and copy text in OSX QuikLook Preview

defaults write com.apple.finder QLEnableTextSelection -bool TRUE; killall Finder

With these in place, adding an SSL cert is quite simple:
  1. In an elevated command prompt navigate to

    C:\Windows\System32\inetsrv

  2. Enter the following command (replace {SITENAME}, {IP}, and {HOSTHEADER} with the appropriate values).
    appcmd set site /site.name:{SITENAME} /+bindings.[protocol='https',bindingInformation='{IP}:443:{HOSTHEADER}']
  3. Check the selected cert in IIS via the bindings window. You can change the cert here, but you cannot change the host header.
That’s it.
Changing an Existing Binding:

Changing a binding is similar to the adding binding with a few alterations to the command
appcmd set site /site.name:{SITENAME} /bindings.[protocol='https',bindingInformation='{IP}:443:{HOSTHEADER}'].bindingInformation:{NEWIP}:443:{NEWHOSTHEADER}

Go to Previous Space

No comments

The following code will make it possible for you to go to the previous space automatically.  Using a 4-finger double tap, you will be returned to the space you were previously on.

defaults write com.apple.dock double-tap-jump-back -bool TRUE;killall Dock

Macworld Article

Running the following command will have iTunes pop-up track names from the dock.
defaults write com.apple.dock itunes-notifications -bool TRUE;killall Dock
From Macworld Article

http://www.macworld.com/article/161069/2011/07/make_a_bootable_lion_installer.html

Enable FTP in Lion

No comments

Courtesy of MacWolrd.com:

Apple seemingly dropped the FTP Server support in Mac OX Lion. Only the GUI has been removed and the FTP Server can be activated.

You can still enable it with the command line. To start it type the Terminal command:

sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist

To stop it:

sudo -s launchctl unload -w /System/Library/LaunchDaemons/ftp.plist

[So if you need FTP, it's still available. It should easy enough to make an AppleScript to toggle this on and off. I'd probably turn it off while not using it. And of course if you turn on Remote Login (ssh), that will make SFTP available.]

Courtesy of MacWorld.com:

One of Lion’s new features is Resume, which automatically reopens every window you last had open in a given application when you relaunch it. That’s magical sometimes—when you relaunch Safari or Word and welcome the sight of all your last open documents. Other times, though, it’s annoying: Say you opened a dozen PDFs in Preview, and now you’re finished, and you know you don’t want them to reopen the next time you launch the app.

When you quit the app whose windows you don’t want Lion to remember, hold down the Option key. That is, either press Command-Option-Q, or hold down Option when you go to the application’s eponymous menu. The Option key turns Quit into Quit and Discard Windows—which works precisely as you’d expect.

If you’d prefer that an app never resume its windows automatically, you’ll need a Terminal trick instead.