EzDevInfo.com

osx-mountain-lion interview questions

Top osx-mountain-lion frequently asked interview questions

Mac OS X 10.8 VPN Server: Bypass VPN for LAN traffic (routing LAN traffic to secondary connection)

I have somewhat of an odd setup for a VPN server with OS X Mountain Lion. It's essentially being used as a bridge to bypass my company's firewall to our extranet connection - certain things our team needs to do require unfettered access to the outside, and changing IT policies to allow traffic through the main firewall is just not an option.

The extranet connection is provided through a Wireless-N router (let's call it Wi-Fi X). My Mac Mini server is configured with the connection to this router as the primary connection, thus unfettered access to the internet via the router. Connections to this device on the immediate subnet are possible through the LAN port, but outside the subnet things are less reliable.

I was able to configure the VPN server to provide IP addresses to clients in the 192.168.11.150-192.168.11.200 range using both PPTP and L2TP, and I'm able to connect to the extranet through the VPN using the standard Mac OS X VPN client in System Preferences, however unsurprisingly, a local address (let's call it internal.company.com) returns nothing.

I tried to bypass the limitation of the VPN Server by setting up Routes in the VPN settings. Our company uses 13.x.x.x for all internal traffic, instead of 10.x.x.x, so the routing table looked something like this:

IP Address ---------- Subnet Mask ---------- Configuration
0.0.0.0               248.0.0.0              Private
8.0.0.0               252.0.0.0              Private
12.0.0.0              255.0.0.0              Private
13.0.0.0              255.0.0.0              Public
14.0.0.0              254.0.0.0              Private
16.0.0.0              240.0.0.0              Private
32.0.0.0              224.0.0.0              Private
64.0.0.0              192.0.0.0              Private
128.0.0.0             128.0.0.0              Private

I was under the impression that if nothing was entered here, all traffic was routed through the VPN. With something entered, only traffic specifically marked to go through the VPN would go through the VPN, and all other traffic would be up to the client to access using its own default connection. This is why I had to specifically mark every subnet except 13.x.x.x as Private.

My suspicion is that since I can't reach the VPN server from outside the local subnet, it's not making a connection to the main DNS server and thus can't be reached on the larger network. I'm thinking that entering hostnames like internal.company.com aren't kicked back to the client to resolve, because the server has no idea that the IP address falls in the public range, since I suspect (probably should ping test it but don't have access to it right now) that it can't reach the DNS server to find out anything about that hostname.

It seems to me that all my options for resolving this all boil down to the same type of solution:

Figure out how to reach the DNS with the secondary connection on the server. I'm thinking that if I'm able to do [something] to get my server to recognize that it should also check my local gateway (let's say Server IP == 13.100.100.50 and Gateway IP == 13.100.100.1). From there Gateway IP can tell me to go find DNS Server at 13.1.1.1 and give me information about my internal network. I'm very confused about this path -- really not sure if I'm even making sense.

I thought about trying to do this client side, but that doesn't make sense either, since that would add time to each and every client side setup. Plus, it just seems more logical to solve it on the server - I could either get rid of my routing table altogether or keep it - I think the only difference would be that internal traffic would also go through the server - probably an unnecessary burden on it.

Any help out there? Or am I in over my head? Forward proxy or transparent proxy is also an option for me, although I have no idea how to set either of those up. (I know, Google is my friend.)


Source: (StackOverflow)

How to explore more defaults write tweaks on OS X?

I would like to explore some new tweaks which can be done by the "defaults write" command in OS X(ML).

What can I do to find them out myself rather than hunting online for known tweaks?


Source: (StackOverflow)

Advertisements

Can't boot to Windows installed on the second drive in MacBook Pro

I have a mid-2012 15" non-retina MacBook Pro with Mountain Lion. I have a 256 GB SSD in place of the original drive and an OptiBay in place of the optical drive where I put the original 500 GB Toshiba drive.

On the SSD I have OS X. I want to be able to boot into Windows 7 on the second drive but I also want to have half of the space sacrificed for my additional data.

First, I created a HFS+ single partition covering the whole second drive. Then I opened Boot Camp Assistant and ordered it to split the drive in half - it put a FAT32 drive as the second one, there is no other option.

Then, I created a bootable USB pendrive using Bootcamp. Because the Windows installer it didn't allow me to install Windows on the second drive, I opened my laptop and disconnected the SSD. Then I installed Windows without any hassle, updated it, installed applications, rebooted a few times - it all worked.

Afterwards, I reconnected the main drive. Now OS X boots fine but once I choose Windows from the list I get an "No bootable device" error. I suspected it's an MBR issue so I booted again from the Windows image on the pendrive and I tried to enter the "Fix my computer" menu item to go to the console and run fixmbr but it tells me I cannot run this option since my installed Windows version doesn't match one on the pendrive (?!).

As a last effort I listed all my partitions:

$ diskutil list
/dev/disk0
  #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *256.1 GB   disk0
   1:                        EFI                         209.7 MB   disk0s1
   2:          Apple_CoreStorage                         255.2 GB   disk0s2
   3:                 Apple_Boot Boot OS X               650.0 MB   disk0s3
/dev/disk1
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.1 GB   disk1
   1:                        EFI                         209.7 MB   disk1s1
   2:                  Apple_HFS OptiBay                 249.0 GB   disk1s2
   3:       Microsoft Basic Data Windows7                250.8 GB   disk1s3
/dev/disk2
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                  Apple_HFS OSX                    *254.9 GB   disk2
/dev/disk3
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *32.0 GB    disk3
   1:                 DOS_FAT_32 RALLY32GB               32.0 GB    disk3s1

(the 32GB-drive is the USB pendrive on which Bootcamp put its adjusted Windows installation image) and run:

$ sudo fdisk -u /dev/disk1
fdisk: could not open MBR file /usr/standalone/i386/boot0: No such file or directory

    -----------------------------------------------------
    ------ ATTENTION - UPDATING MASTER BOOT RECORD ------
    -----------------------------------------------------

Do you wish to write new MBR? [n] y

after a reboot I see a little changed disk order:

$ diskutil list
/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *256.1 GB   disk0
   1:                        EFI                         209.7 MB   disk0s1
   2:          Apple_CoreStorage                         255.2 GB   disk0s2
   3:                 Apple_Boot Boot OS X               650.0 MB   disk0s3
/dev/disk1
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                  Apple_HFS OSX                    *254.9 GB   disk1
/dev/disk2
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.1 GB   disk2
   1:                        EFI                         209.7 MB   disk2s1
   2:       Microsoft Basic Data Windows7                250.8 GB   disk2s2
/dev/disk3
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *32.0 GB    disk3
   1:                 DOS_FAT_32 RALLY32GB               32.0 GB    disk3s1

but, unfortunately, the Windows option from the MacBook Pro boot menu is gone. :(

I honestly have no idea where to go with this from here... I'd be grateful for any help.


Source: (StackOverflow)

Where is SVN on OS X Mountain Lion?

I upgraded to OS X Mountain Lion and found out SVN is no longer present. I use Netbeans 6.9.1 in conjunction with Apache's SVN.

How can I get it back and working?


Source: (StackOverflow)

How do I switch between Java 7 and Java 6 on OS X 10.8.2?

I am using Java SE 7 to program simple games for windows and mac, but I have to switch to java 6 to run games such as Minecraft on my computer. This used to work just fine before I updated to Mac OS X 10.8.2 Build 12C60.

Before this update I used to be able to open Java Preferences and check off Java 6 or Java 7. But now I don't seem to be able to find Java Preferences.

I am running OS X 10.8.2 (latest version).


Source: (StackOverflow)

How do I start apache in OSX Mountain Lion / Mavericks?

OSX Mountain Lion removed the GUI for web sharing, but apache is still installed.

How do I start and stop the service? How do I get the service to automatically launch on startup?


Source: (StackOverflow)

Mountain Lion Switcher (Cmd+Tab) not showing all apps

I've upgraded to Mountain Lion yesterday and everything is working great except for one thing that's really really annoying,

When I press Cmd+Tab, I get the regular switcher, but only some of the open apps are visible, and every time I would have to open Mission Control just to switch apps.

Did anyone else bump into this issue, or even better - solved it? :)


Source: (StackOverflow)

How to auto-arrange/clean-up files for ALL folders in OSX Mountain Lion

I have figured out how to make folders auto arrange their contents. This is achieved in Finder->View->Show View Options (or cmd+J).

From the newly opened window, setting the arrange by dropdown will set the folders behavior from then on. But it is only for the folder this menu was opened in. How do I set this as a Finder rule for all directories?

EDIT
I am using Mountain Lion - 10.8.2
I don't have a 'Use as Defaults' button in my view panes - here's a screen grab:

enter image description here


Source: (StackOverflow)

Where does OS X Mountain Lion store Notes data?

Any idea about where OS X Mountain Lion stores Notes data? Is there a way that I can recover lost Notes?


Source: (StackOverflow)

Can I download the OS X Mountain Lion update and share it with my family?

I have purchased and downloaded the 4 GB Mountain Lion update. Can I burn this to a DVD and share it around with my family? Is it locked to my Apple ID or anything?


Source: (StackOverflow)

Disable Mountain Lion Dictionary Gesture

Ever since Lion I've been using Better Touch Tool in order to have the three finger tap gesture trigger a middle click. Now, in Mountain Lion, Apple has changed the in-line dictionary definition gesture from three finger double tap to three finger tap. I am finding that sometimes I get middle click and sometimes I get a dictionary definition. How can I disable Apple's dictionary definition gesture?

Edit: sometimes I am getting both a middle click and a dictionary definition.


Source: (StackOverflow)

Getting an error trying to set up shared folders on an Ubuntu instance of VMWare Fusion running on OSX

Receiving the following error:

Unable to update runtime folder sharing status: There was an error mounting Shared Folders file system inside the guest operating system.

Running VMWare Fusion 5.0.2 on OS X 10.6.8, guest OS is Ubuntu 12.10 with VMware Tools installed.

Have been unable to get to /mnt/hgfs at all, /mnt/ directory is blank. Turned Shared Folders off and then on in VMWare Fusion and received the above error.

Any thoughts what to do to fix this?


Source: (StackOverflow)

Command Line SSH restart Mac OSX Mountain Lion

How can I restart the SSH service via the command line on Mac OSX Mountain Lion please?

Using ps aux | grep 'ssh', I was able to deduce that the process is most likely /usr/sbin/sshd.

From here I searched the sshd documentation for references to 'restart' but found none.

I don't know what my next step should be.


Source: (StackOverflow)

What are "Paste Item Exactly" and "Duplicate Exactly" in Finder?

While holding Opt and Shift, the Finder menu items Duplicate and Paste Item become Duplicate Exactly and Paste Item Exactly. These require administrator permissions.

How are they different from the regular commands?


Source: (StackOverflow)

How do you get loopback addresses other than 127.0.0.1 to work on OS X

According to everything I read, the entire 127.x.x.x subnet should loopback.

However, on my Mac, I can only ping 127.0.0.1

I know I've done this before (though possibly on another OS) and has come in very useful for developing multiple SSL sites locally and for tunneling remote services for access on a local IP (for example I could ssh into my MySQL server, and just port forward the standard port to the same port on my local machine but on 127.0.0.2 while my local server ran at 127.0.0.1.


Source: (StackOverflow)