php/Tips_And_Tricks
Contents
1 Use any USB printer driver 2 Get disk burning to work with non-Apple drives 3 Replace SSE3 with SSE2 Patch (In other words stop Safari from crashing and make iTunes work along with other apps) 4 Fixing Browser Plug-in Issues 5 Deadmoo's password 6 Deadmoo's root password 7 Console Login from within OSX 8 Getting Safari to work 9 Recover from application crashes 10 Messing with the boot options 11 Xcode and developer tools 2.2 preview 1 12 Make the CTRL Key the COMMAND key 13 Hard Drive Configuration 14 Messing With Drivers 15 Drivers/Kernel extensions, which ones are loaded? 16 Copy a Mac OS X partition 17 British keyboards 18 Fixing the restart function 19 Use Localtime instead of Universal for RTC 20 Install the system on a bootable USB key 21 Install from USB key 22 No driver for your device? Try patching the kext files 23 Autoplay DVD with VLC
1 of 12
http://wiki.osx86project.org/wiki/index.php/Tips_And_Tricks
Replace SSE3 with SSE2 Patch (In other words stop Safari from crashing and make iTunes work along with other apps)
This will allow systems only capable of SSE2 to run SSE3 based code. This allows Rosetta to work and fixes some glitches on SSE3 based machines that do not work properly. Download Maxxuss's patch, and then:
1. Burn CD or simply mount it in your Mac OS X system 2. Open Terminal.app 3. Use "cd" command to get into the CD, e.g. "cd /Volumes/MAXXUSS0.5/" 4. Type "sudo ./install.sh" 5. Follow the instructions 6. Restart Mac OS X 7. Enjoy.
This fixes iTunes as well as Safari, it also fixes the fade out graphics glitch. Note: In the newer editions of Mac OS X (the Install DVDS), this is no longer necessary. Maxxuss's patch is provided on the DVDs - just make sure you keep it selected when installing Mac OS X from the boot DVD. If you do have some issues with this using any of the Install DVDs, and you are sure that you had installed Maxxuss's patch, you may need to enable rosetta emulation for that program. Do this by going into finder and right clicking the program's icon in finder (its original location), and select get info. In the menu that pops up, select Open with Rosetta. The program will open a bit slower (because the program will be running in an emulated PPC environment), however, but it will be more stable, meaning less crashes.
http://wiki.osx86project.org/wiki/index.php/Tips_And_Tricks
Note: the plugin finder service within Safari takes the user to a download page for Flash Player 8. Installing Flashplayer 7 (not 8) instead may improve stability on some systems (in combination with the Rosetta checkbox). Here you can find old Macromedia Flash players - By Cele_82 http://www.macromedia.com/go/tn_14266
Deadmoo's password
The password on the "Deadmoo" and "Curtis" account (they're the same, but called different things in different places) is " bovinity ". Once you log in as him you can go to the users panel and setup an account for you to use, change his password, etc.
http://wiki.osx86project.org/wiki/index.php/Tips_And_Tricks
This may be common knowlege for Unix geeks, but for average Joes this may be lifesaving information. If a program crashes, you can kill it by right clicking it's dock icon and hitting "Force Quit". If that doesn't work, you can launch "Activity Monitor" and kill a crashing program from there. Just highlight the program that's going down and hit the quit icon, then hit "Force Quit". You can also press Ctrl+Alt+Escape (Command+Option+Escape on a Mac keyboard), choose the application you want to quit and then press the button "Force Quit". Very good for stopping a runaway Deer Park from taking the system with it as it spirals down...
Note: If your video card is using VESA 2.0 drivers, leave out the '@85' part as it only works on VESA 3.0 will cause the system to reset before getting anywhere. If you need to specify a platform
<key>Kernel Flags</key> <string>platform=X86PC</string> or <string>platform=ACPI</string>
If you experience stutter like (shutter) syndrome; usualy on dual core processors
<key>Kernel Flags</key> <string>idlehalt=0</string> or disable one core <string>cpus=1</string>
If you don't want to see the Darwin text on boot - HINT: You can get the prompt back by holding "ctrl" or pressing "F8" at boot.
<key>Quiet Boot</key> <string>Yes</string>
4 of 12
http://wiki.osx86project.org/wiki/index.php/Tips_And_Tricks
<string></string>
Replace 8 (default seconds) to a new value. To set Darwin to boot from a particular partition:
<key>Kernel Flags</key> <string>rd=diskXsY</string>
Where X is your hard drive number and Y is the partition number (BSD naming scheme) if you are unsure about the rd value open Aplications>Utilities>Disk Utiliy, click on the partition with OSX installed and click on info, the right "rd" value is the value from "Disk Identifier" EDIT: I've tested this a few times, doesn't seem to want to work for me. Anyone got any ideas? T This page has some info: http://neonkoala.co.uk/content/view/33/34 work fine for me, I use <string>rd=disk1s3</string> to boot from the 3rd primary partition of my second disk. NOTE: The kernel flags option has made some computers unbootable. </br> Type "-F mach_kernel -v" at the boot prompt if your computer fails to boot after messing around with this. NOTE 2: **ONLY IF YOU HAVE PARTITIONMAGIC** In the event you are not provided with a boot prompt, just boot to Windows normally. In command prompt, use diskpart to set the second partition active. This will boot the computer directly to OS X 86. Once booted, delete the changes made to the com.apple.Boot.plist file, save, and reboot. Use PartitionMagic( There may be another way?) to boot the computer, then reset the Windows partition back to active. Reboot again and you're back to your OS Selection menu. NOTE 3: Another way to recover if you screw up is to boot with the OSX install DVD. Get past the first prompt by selecting your language and then click on continue. Now from the main menubar at the top, bring up the Terminal. Navigate to your HDD via the "cd /Volumes/<hard disk>/Library/Preferences/SystemConfiguration/" command. Now you can fix your com.apple.Boot.plist file.
Here is an example /Library/Preferences/SystemConfiguration/com.apple.Boot.plist: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com /DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Kernel</key> <string>mach_kernel</string> <key>Kernel Flags</key> <string>-legacy</string> <key>Boot Graphics</key> <string>Yes</string> <key>Timeout</key> <string>10</string> <key>Graphics Mode</key> <string>1280102432</string> </dict> </plist> ........
5 of 12
http://wiki.osx86project.org/wiki/index.php/Tips_And_Tricks
6 of 12
http://wiki.osx86project.org/wiki/index.php/Tips_And_Tricks
Method 7 (works best!): http://forum.insanelymac.com/index.php?s=&showtopic=68612&view=findpost& p=497648 DANGER: method 4 will not work you can not edit it with ipartition beacause the image doesnt use the apple partition map and stuff.... hopefully some one will explain this better you cant even veiw the partition layout with ipartition' DANGER: Using any partition program that was designed to be run on a real Mac to alter your disk will likely make your harddisk unbootable and data irrecoverable. They setup their paritions in a way that a REAL Mac's OpenFirmware wants them to be, not the way your PC needs them to be. If you use a partition program made for real Macs you run the risk of requiring total hard disk reformatting. (Your HDD won't be "broken", you'll just need to reformat, with not much chance of data recovery ) iPartition does recognize the HFS+ Partition BUT does not let it be resized.. . .
To unload, use:
sudo kextunload /System/Library/Extensions/SomeDriver.kext
to list those loaded related to com.apple.* (see the apple doc site , you can use -s instead of -substring)
kextfind -loaded -bundle-id -i -s 'com.apple.' -print | more
http://developer.apple.com/documentation/Darwin/Reference/ManPages/man8/kextfind.8.html
http://wiki.osx86project.org/wiki/index.php/Tips_And_Tricks
dd if=/dev/source_partition of=/dev/destination_partition bs=512
to copy a partition. Note the missing skip option. "skip=63" is only needed when you copy from a hard drive, not a partition, to skip the MBR. The destination partition must be bigger or equal size than the source partition. You can also use Disk Utility's Restore tab to copy disks and partitions, which is easier than using the Terminal. In the RARE case this does not work at first try, boot up with your Install CD and do a Repair Disk and Repair Permissions, and voila!
British keyboards
See Using a British/UK Windows keyboard with an Apple Mac in OS X (http://www.gyford.com/phil/writing /2005/11/20/using_a_british.php) Or UK.keylayout (http://www.gingerbeardman.com/UK.keylayout/)
Remark: Presumably the offset given applies only to one older version of the kernel. This is supported by the fact that this offset contains different hex code in newer kernels.
Tiger: Mac OS X Responsibility For Tiger and earlier releases, use this little trick to change the clock between localtime and UTC every boot. A couple lines need to be added to the initialization sequence, you will need Administrator privileges to do this. These files probably do not already exist on your system, so you will need to create them if they are absent. First you'll need to add a line to /etc/rc.local:
8 of 12
http://wiki.osx86project.org/wiki/index.php/Tips_And_Tricks
date `date -u +%m%d%H%M%Y`
Note the use of backticks rather than apostrophes, which instruct the shell to pass the output from the enclosed command to the outer command. If you are doing this on Leopard, the command needs to be:
date -f %m%d%H%M%Y `date -u +%m%d%H%M%Y`
This changes it back again. If you are doing this on Leopard, the command needs to be:
date -u -f %m%d%H%M%Y `date +%m%d%H%M%Y`
Be sure your clock is set correctly before your next reboot. Otherwise your clock will be messed up till you correct the time (either on macos or windows). This should keep your windows and macosx clocks in sync from now on.
Leopard: Mac OS X Responsibility In Leopard, /etc/rc.local, /etc/rc.shutdown.local and StartupItems startup/shutdown mechanisms are deprecated. Instead, the following Leopard-friendly solution will toggle the clock between local time and UTC at start-up and shut-down times. You will need Administrator privileges when performing this procedure. 1. Create new file /sbin/localtime-toggle with the following contents:
#!/bin/sh to_utc() { echo "localtime-toggle: Toggling to UTC." date -f %m%d%H%M%Y `date -u +%m%d%H%M%Y` } to_localtime() { echo "localtime-toggle: Toggling to localtime." date -u -f %m%d%H%M%Y `date +%m%d%H%M%Y` } trap 'to_localtime; exit' term to_utc { while true; do sleep 86400; done; } & wait
9 of 12
http://wiki.osx86project.org/wiki/index.php/Tips_And_Tricks
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>org.osx86.localtime-toggle</string> <key>Program</key> <string>/sbin/localtime-toggle</string> <key>KeepAlive</key> <true/> <key>RunAtLoad</key> <true/> <key>HopefullyExitsFirst</key> <true/> </dict> </plist>
4. Reboot. At this point, your computer's clock should correctly be set to UTC as Leopard boots, and reset back to local time as Leopard shuts down. NOTE: This solution is not absolutely perfect. The time won't be set to local time in case of a crash or power cut. Also, each time the computer executes : date [-u] -f %m%d%H%M%Y `date -u +%m%d%H%M%Y`, the time between the execution of second part (`date -u +%m%d%H%M%Y`) and the first part (date -f %m%d%H%M%Y <new date>) is lost. Still far better than using an unsupported windows registry key... Registry Hack: Windows Responsibility Create a file in Notepad with the following contents:
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation] "RealTimeIsUniversal"=dword:00000001
Save it as Timefix.reg, then double-click on the file to merge it with the registry. Windows will now calculate hardware time based on GMT. Mac OS X does this by default, so your clocks will stay in synch. NOTE: This solution is not exactly bulletproof. RealTimeIsUniversal is a leftover from the early days of Windows NT; it has never been updated to work correctly with modern versions of Windows. When running certain programs, resuming from sleep/hibernate, or waking up the monitor, the time may glitch back to its original value and stay there until you do an Internet time sync. The alternate procedures in which Mac OS X is responsible for adjusting the clock do not suffer from these drawbacks.
Forced Time-Sync: Windows Responsibility This procedure is more complex as the above Registry Hack, but is much more reliable. It works by forcing Windows to perform an Internet time sync at startup time. Note: You must have a live Internet connection the moment you log in. Ethernet connections work as routers/modem are already connected. Wireless cards/usbs may work. USB modems which dial up once you log in generally don't since they take too long to connect. But a solution for that is available thanks to belgrano (http://forum.insanelymac.com/index.php?showuser=7906) further down. > Download timesync (http://forum.insanelymac.com/index.php?act=attach&type=post&id=11244) and unzip it. Put timesync.bat wherever you like (let's say C:\), then create a shortcut for it and place the shortcut (or even timesync.bat itself without making a shortcut) in: C:\Documents and Settings\YOUR_USER_NAME\Start
Menu\Programs\Startup
10 of 12
http://wiki.osx86project.org/wiki/index.php/Tips_And_Tricks
Alternately, if you have more than one user on Windows, place the shortcut in: C:\Documents and Settings\All
Users\Start Menu\Programs\Startup
> If you want you can even make the bat file yourself rather than downloading it. Open notepad and type:
w32tm /resync exit
Then, save it as timesync.bat and place in the Startup folder as instructed above. > If it's too quick and you don't have time to connect to the internet then use Delay Run (http://forum.insanelymac.com/index.php?act=attach&type=post&id=11262) instead. If you use delayrun then timesync do not place it in the Startup folder since that would result in it being executed twice. Edit the delayrun.ini file to something like this:
30 C:\XP-Mac Time Sync\timesync.bat
Where 30 seconds is how long it will take to run timesync (this should be the time you need to connect to the Internet) and the second line is the timesyncs directory. "XP-Mac Time Sync" is simply the folder chosen in this example for where timesync resides. More information on timesync is available at time difference with dual boot (http://forum.insanelymac.com /index.php?showtopic=11193&st=0) and delayrun (http://www.geocities.com/fcueto/Otros/delayrun_en.htm) Another quick way to do a time delay is to ping youself in a batch file. To do this, you would type
ping /n X localhost
11 of 12
http://wiki.osx86project.org/wiki/index.php/Tips_And_Tricks
activate application "VLC" tell application "Finder" to set frontmost of process "VLC" to true tell application "System Events" to click menu item "Open Disc..." of menu of menu bar item "File" of menu bar of process tell application "System Events" to tell process "VLC" keystroke return end tell tell application "VLC" fullscreen next end tell
2) Compile and Save 3) Open "System Preferences..." and select "CDs & DVD's". 4) Select "Run Script" for "When you insert a video DVD". 5) Browse to where you saved your new script, select it and click "Choose". This will automatically play DVD using VLC (http://www.videolan.org/vlc/download-macosx.html) . If you are using a localized non-English version just replace the "Open Disc..." and "File" accordingly. Retrieved from "http://wiki.osx86project.org/wiki/index.php?title=Tips_And_Tricks&oldid=64623" This page was last modified on 9 August 2012, at 23:30. This page has been accessed 1,130,324 times. 2012 OSx86 Project | InsanelyMac | Forum | OSx86 Wiki | Mac Netbook | Web hosting by CatN | Designed by Ed Gain | Privacy policy | About OSx86 | Disclaimers
12 of 12