You searched for articles tagged with OSX.

[ #170 ] NetBSD 5.0.1 on Mac Mini G4 (PPC) Permalink

NetBSD, OSX Added less than a year ago and last edited less than a year ago

Here are my notes from installation. I used these resources: NetBSD on a Mac Mini, Notes from installing on a G4 Mac Mini and the INSTALL.html from the ISO.

I will clean these up shortly (hopefully.)

  1. Use the OSX CD to boot the OSX installation program on your Mac Mini hold down C while booting)
  2. Use Disk Utility to create two partitions: HFS named Boot; UFS named BSD
  3. quit Disk Utility
  4. On other computer, copy ofwboot.xcf and netbsd kernels (netbsd-GENERIC.gz) to USB stick
  5. Insert USB stick in Mac Mini
  6. Open Terminal
  7. In shell:
    1. cp ofwboot.xcf and netbsd kernels to /Volumes/Boot
  8. Quit Terminal
  9. Reboot Mac Mini
  10. Start up to openfirmware
  11. Eject OSX CD
  12. Insert NetBSD installation CD in Mac Mini
  13. In Open Firmware:
    1. boot cd:,ofwboot.xcf netbsd.macppc
  14. Start in shell (not install)
  15. In shell:
    1. pdisk /dev/wd0c
      1. leave apple partition map
      2. leave hfs 'boot'
      3. delete ufs 'netbsd'
      4. create new partition as / type (a)
      5. create new partition as swap type (b)
      6. write, exit
  16. In shell:
    1. newfs /dev/rwd0a (yes, note the r)
    2. mount /dev/wd0a /mnt
    3. cd /mnt/
    4. mkdir etc
    5. cat > etc/fstab
      • /dev/wd0a / ffs rw 1 1
      • /dev/wd0b none swap sw 0 0
      • ^D
    6. cd /
    7. umount /mnt
    8. sysinstall
  17. Select 're-install sets...' from sysinstall menu
  18. Reboot Mac Mini
  19. In Open Firmware:
    1. boot hd:,ofwboot.xcf netbsd-GENERIC.gz
  20. In shell: passwd adduser -m you passwd you
  21. Reboot
  22. In Open Firmware:
    1. setenv auto-boot? false
    2. setenv boot-device hd:,ofwboot.xcf
    3. setenv boot-file netbsd-GENERIC.gz
    4. reset-all
  23. Now when you start your mac mini you will always go to openfirmware - just type 'boot' to start



[ #135 ] 3 (Three) Mobile Broadband USB Key Permalink

Mobile Broadband, OSX Added less than a year ago

Settings for Mac OS X come from evandavey. I have pre-paid, my settings are reproduced here for my own future reference:

Telephone number: *99#
Acct Name: <blank>
Password: <blank>
APN: 3services



[ #107 ] pkgsrc on OS X Permalink

OSX, Shell, NetBSD Added a year and a bit ago

I've tried fink and macports but found both of them very broken at some stages. They have quite recent ports in them though which is good... but not good enough when you look at how frequently they fell over.

It turns out the NetBSD port tree (pkgsrc) can be used on Mac OS X!

This page describes the process you need to install it.

Very nice!




[ #87 ] VMWare Fusion Headless Mode Permalink

VMWare (Fusion), OSX Added a year and a bit ago

Read here about setting up VMWare Fusion in headless mode. In Terminal.app do this:

$ defaults write com.vmware.fusion fluxCapacitor -bool YES

Then restart VMWare Fusion. When your VM comes back up go to the View menu and select Headless mode.




[ #77 ] MacPorts Corruption Permalink

OSX Added a year and a bit ago

If you have quit macports half-way through an installation (by closing the terminal window accidentally, or whatever,) you may have a corrupt port that is partially built/installed. You can clean the port fully and start again with:

sudo port clean --all db46

... where db46 is the corrupted port. Thanks go to blas.phemo.us




[ #69 ] Forwarding X Permalink

X, NetBSD, OSX Added a year and a bit ago and last edited a year and a bit ago

My host is Mac OS X, and my guest is a NetBSD VM running on the host. This will show you how I forward X apps from guest to the host.

Ensure host has X11

On Mac OS X you can install X11 from the OS install disk that came with your computer.

Start X11 on host

On Mac OS X, start /Applications/X11.app

Get display list on host

In the xterm that was opened up on Mac:

host$ xauth list
YourBox.local/unix:0  MIT-MAGIC-COOKIE-1  dfa82d25b775957b7571f76727e51f3c
10.1.1.2:0  MIT-MAGIC-COOKIE-1  dfa82d25b775957b7571f76727e51f3c

We are interested in the one that does not have "unix" in it, i.e. the second line. Copy this line, we will be using it below. (The above is an example, yours will look different.)

Ensure guest has X11Forwarding enabled

guest$ grep X11Forwarding /etc/ssh/sshd_config 
X11Forwarding yes

... change if it's not enabled, and remember to restart sshd.

SSH to guest

host$ ssh -X guest

... the X flag enables X11Forwarding over this ssh connection.

Export display

guest$ export DISPLAY=10.1.1.2:0  # use the IP:Number combination that you got from xauth list
guest$ xauth add 10.1.1.2:0  MIT-MAGIC-COOKIE-1  dfa82d25b775957b7571f76727e51f3c

Run an X App

guest$ xlogo

... and watch it appear on your host.




[ #62 ] iTunes vs. SongBird (Resource Battle) Permalink

OSX Added a year and a bit ago

Here are four grabs from top, with both apps not playing anything, just sitting around:

  PID COMMAND      %CPU   TIME   #TH #PRTS #MREGS RPRVT  RSHRD  RSIZE  VSIZE
 2963 songbird     4.4%  0:15.06  19   202  1044  52.2M+ 55.6M+ 83.6M   722M 
 2951 iTunes       0.0%  0:02.59  12   223   354  21.8M  36.9M  40.8M   462M 

 2963 songbird     4.1%  0:30.20  18   201  1032  54.9M+ 53.4M  85.5M+  693M 
 2951 iTunes       0.0%  0:02.86  12   223   353  21.8M  36.6M  40.8M   461M

 2995 iTunes       0.0%  0:02.13  12   223   352  21.7M  37.7M  40.9M   461M 
 2993 songbird     1.5%  0:04.39  18   141   774  42.5M+ 49.7M  69.5M+  655M+

 2995 iTunes       0.0%  0:02.19  12   223   352  21.7M  37.6M  40.8M   461M
 2993 songbird     1.7%  0:05.80  15   136   764  42.5M  49.7M  69.5M   654M

What do those headings mean?

  1. CPU Percentage of processor time consumed (kernel and user)
  2. TH Number of threads
  3. RPRVT Resident private memory size
  4. RSHRD Resident shared memory size
  5. RSIZE Total resident memory size, including shared pages
  6. VSIZE Total address space allocated, including shared pages

So SongBird uses a bit more memory than iTunes and seems to be doing some processing even when there is nothing being played.

When I play the exact same song on both (at the same time) this is what happens (four grabs again):

  PID COMMAND      %CPU   TIME   #TH #PRTS #MREGS RPRVT  RSHRD  RSIZE  VSIZE
 2995 iTunes      14.7%  0:04.53  15   231   367  23.3M  37.3M  42.8M+  465M 
 2993 songbird    13.3%  0:13.33  19   185   893  46.0M  52.0M  75.4M+  668M+

 2995 iTunes       5.1%  0:06.97  15   231   367  23.3M  37.4M  42.8M   465M 
 2993 songbird    13.8%  0:18.66  18   184   890  44.5M  52.1M  73.7M-  666M-

 2995 iTunes       5.0%  0:08.27  15   231   367  23.3M  37.6M  42.8M   465M 
 2993 songbird    14.3%  0:21.41  18   184   900  45.1M+ 52.3M  74.3M+  667M+

 2995 iTunes       5.1%  0:09.44  15   231   367  23.3M  37.7M  42.8M   465M 
 2993 songbird    13.2%  0:23.84  18   184   910  45.7M+ 52.4M  74.9M+  667M+

So SongBird is the bigger hog, I think.

P.S.: The test song was Girl U Want - Devo




[ #61 ] NetBSD VM Permalink

NetBSD, OSX, X Added a year and a bit ago

... and the new NetBSD VM is working. pkgsrc is the packages system for NetBSD. If you are looking for mod_perl it is in www/ap2-perl. pkgsrc has a cool feature with sysutils/open-vm-tools being their port of VMWare tools. So you can just:

# cd /usr/pkgsrc/sysutils/open-vm-tools
# make && make install

... instead of installing the VMWare tools normally by mounting the fake CD image. NetBSD isn't officially supported by VMWare anyway, though they reckon the normal tools will work if you pretend it is a FreeBSD system and have FreeBSD emulation on.

Here is an XF86Config that I stole from somewhere (see the comments section, thanks guy.) It works great for the MacBook:

# xorg.conf to get OpenBSD 4.4-beta (2008/07/11 18:54 snapshot) to display the
# screen at 1280x800 resolution on VMware Fusion 1.1.3 on a late 2007 MacBook
# running Mac OS X 10.5.4
#
# Modified from http://blog.durables.org/wp-content/uploads/2007/03/xorgconf.txt
# Context: http://blog.durables.org/2007/03/02/vmware-fusion-beta-2-is-out/
#
# MacBook refresh rates and 1280x800 modeline from:
# http://rubenerdshow.com/blog/x11-freebsd-parallels/

Section "ServerLayout"
    Identifier     "Default Layout"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
    Option      "XkbModel" "pc105"
    Option      "XkbLayout" "us"
EndSection

Section "Monitor"
    Identifier "vmware"
    VendorName "VMWare, Inc"
    ModelName "Monitor"
    HorizSync 31.5 - 100.0
    VertRefresh 59.0 - 75.0
    Modeline "1280x800" 83.46 1280 1344 1480 1680 800 801 804 828
EndSection

Section "Device"
    Identifier  "Videocard0"
    Driver      "vmware"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Videocard0"
    Monitor    "vmware"
    DefaultDepth     24
    SubSection "Display"
        Viewport   0 0
        Depth     24
        Modes "1280x800"
    EndSubSection
EndSection



[ #60 ] Cisco VPN Client Profiles Permalink

OSX, VPN Added a year and a bit ago and last edited a year and a bit ago

Where are the profiles (.pcf) on your system?

Mac OSX:

/private/etc/opt/cisco-vpnclient/Profiles

Windows:

C:\Program Files\Cisco Systems\VPN Client\Profiles



[ #56 ] OSX Terminal Defaults Permalink

OSX Added a year and a bit ago

A few weeks ago I posted an Applescript for setting up my Terminal(s) how I like them. It turns out this functionality exists in Terminal.app anyway - you can File -> Save the terminal (single terminal or all terminal windows showing) and make it your default file when Terminal.app opens!

Nice.




Older Posts ... (Nothing Newer)

Colophon

Django Python 960.gs Git Vim NetBSD Nginx

The Author

This is the blog of Brad Willis, a software engineer living in Brisbane.

Meta

Help
Latest entries

*BSD Agile Apache Apple apt Athletics Best-Practice Censorship Comedy Cool Crosswords Deployment Django English Exim Firefox Git Hardcore Health irssi Javascript Jira Languages Linux Makefile Mathematics Mobile Broadband Mutt MySQL NetBSD nginx Nokia OpenVZ OSX Perl Privacy Python Rant Requirements rsync Ruby Shell Slackware SQL SQLite SSH Standards Subversion Television Testing ThisBlog Vim VMWare (Fusion) VPN X zsh

Recent Entries

Checking for exceptions in doctests
Homer's Curling Speech
retry in Python
Vim Makefile tabs
Centos (or RH) IPTables
Converting ssh2 public keys to openssh
Vim comment hints
Context managers in Perl
Dish rotation
Git - fixing commit user
apt stuff
Using shell variables in AWK
Linux - Too many open files
Tell gvim to save and quit... remotely
Vim - automatically remove whitespace at EOL
Python - relative paths from within modules
TV Aspect Ratios
Git - Which commits are in your branch only?
Subversion setup cheat sheet
Force detach a screen session
Modify sudo's use of environment variables
Install all Perl modules
Mutt - delete old messages
OpenVZ VPS and swap space
fail2ban on NetBSD for ssh
NetBSD - Using sup
Python - testing for a sys.exit
Python Best Practice Link Dump
Python script names
Perl - Using an expensive module
Speed of git clone
Perl Modules with Custom Prefix
Perl: tr vs. s
Brilliant sysadmin Reference
Why is GRUB better than LILO?
Why is swap space important?
Perldoc Output
Git's Index
Jira Project Keys
Git GUI

Links

ChoppingBoard, DaveMisc, Project365, RageQuit