How to Setup a Mac mini: Difference between revisions

From CSLLabWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
Setting up a Mac Mini 10.6
Setting up a Mac Mini 10.8.X
 
 
These are still vague but should be OK.  They will be updated as we can find time to.


1) Power on
1) Power on
Line 21: Line 24:
10) Put the terminal in the Dock
10) Put the terminal in the Dock


11)Making stuff secure
11) Update the OS


12) Install xcode


a)System Preferences>>Accounts>Login Option
13) Install xcode command line package
 
14) Making stuff secure
 
a)System Preferences>>Users and Groups>Login Option


b)Unlock ...
b)Unlock ...


c)Unclick these two : Show Restart/Sleep and Show password hints.
c)Unclick these two : Show Restart/Sleep and Show password hints.


d) Auto-login = off
d) Auto-login = off
Line 42: Line 50:
c)unlock
c)unlock


d)double click LDAP
d)double click LDAPv3


e) show option
e) show option
Line 63: Line 71:


Enter these commands:
Enter these commands:
id kmoorman
id kmoorman


Line 70: Line 77:
(enter the password... I hope you know it)
(enter the password... I hope you know it)


cd /etc/exports/
vi /etc/exports and add the client machine


exportfs -av
exportfs -av




Line 80: Line 86:
sudo passwd #changes password (don't actually put in the pound comments!)
sudo passwd #changes password (don't actually put in the pound comments!)


su- # switches user switch to root
su - # switches user switch to root
 




Line 89: Line 94:


automount -vc
automount -vc
There is a bug in the LDAP of >10.7 systems that prohibits network logins!  So, here's the work around.
First, run the following:
ldapsearch -x -h 10.20.3.8 -b "" -s base "(objectclass=*)" supportedSASLMechanisms
If this machine is like the others, you will see:
supportedSASLMechanisms: DIGEST-MD5
supportedSASLMechanisms: CRAM-MD5
Now, open the Finder and go to
/Library/Preferences/OpenDirectory/Configurations/LDAPv3
and open the plist for 10.20.3.8
Go to
module options > ldap > Denied SASL Methods
You should see the DIGEST entry but NOT the CRAM.  Add it.


reboot
reboot



AFTER REBOOT
.AFTER REBOOT


change name of computer in system preferences>>sharing If you are on machine x... change the name to x!
change name of computer in system preferences>>sharing If you are on machine x... change the name to x!
Line 118: Line 140:
i) Search domains = transy.edu
i) Search domains = transy.edu


Note ----> DNS server and Search domains are grey. This is tricky. Don't be fooled into leaving it in there. If you do not manually put it in, MAC will  
Note ----> DNS server and Search domains are grey. This is tricky. Don't be fooled into leaving it in there. If you do not manua
lly put it in, MAC will  
be evil and make you put it in anyway.
be evil and make you put it in anyway.


Have Dr. Moorman go to apple.developer.com and put in his magic passwords and such and download the iPhone SDK and XCode.
j) while here, turn off the wireless.  
We're done!
 
--------------------------------
Set up an NFS mount for /classes/
 
a) su -
 
b)cd /etc/
 
c) cp /etc/auto_home /etc/auto_classes
 
d) emacs auto_classes
      i) change where you see home to classes
 
e) emacs auto_master
        go to the home line
        ctrl + K  ctrl + Y  <ENTER> ctrl + Y
        change where you see home to classes
 
f) mkdir / classes/
 
g) chown root:wheel /classes/
 
h) automount -vc
 
i) ls -l /classes/cs1124  If you see all the files there then you have successfully set that up.
---------------------------------------------
 
Setting up the Sleep, Printer, and SSH
 
1) Sleep
   
    a) System Preferences >> Energy Saver          Change to Never
 
2) Printer
 
    a)System Preferences >> Print & Fax 
 
    b)IP
 
    c) Set up these two printers:  10.20.3.and 10.20.3.7
            First set up starkweather: 10.20.3.6, let it configure, change name to starkweather, change location to BSC 106
            Then watson... 10.20.3.7
            Make watson the default printer!
 
3) SSH
 
    a)System Preferences  >> Sharing  ... Click Remote Login
 
4) bash
    In order to be consistent, we are going to now switch the default shell to bash.  Open Preferences and goto Users & Groups.  Right click on the root account and change the /bin/sh to /bin/bash      Now, open a terminal, and edit a new file called .bash_profile to include
 
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework
 
----------------------------------------------
 
Pictures and ids
 
Go to Preferences -> Security & Privacy  and select "Show a Message When Screen is Locked"    Enter the fully qualified name of the machine.
 
Download loginox (http://www.loginox.branox.com)  and install a picture of the computer's namesake
 
----------------------------------------------
 
MacPorts
 
Much software is available through the excellent Mac App store, but the Mac OS X is also a full featured Unix variant.  To access the software that is primarily from the Unix world, you need to incorporate a package management system.  We use MacPorts.

Latest revision as of 20:17, 1 September 2013

Setting up a Mac Mini 10.8.X


These are still vague but should be OK. They will be updated as we can find time to.

1) Power on

2) Wait for initialization to do its thing.

3) Do obvious choices -- Do not transfer

4) no Apple ID

5) Enter Dr. Moorman's info. -- His info (address and etc is the school info)

6) college = Transy

7) more good stuff

8) Full Name = Transy CS Administrator User Name = admin

9) let keyboard do its thing

10) Put the terminal in the Dock

11) Update the OS

12) Install xcode

13) Install xcode command line package

14) Making stuff secure

a)System Preferences>>Users and Groups>Login Option

b)Unlock ...

c)Unclick these two : Show Restart/Sleep and Show password hints.

d) Auto-login = off

e)display login window = name/password

12)Network account server

a) Click Join

b)Open Directory Utility

c)unlock

d)double click LDAPv3

e) show option

f) click new

g)uncheck use for contacts

h) Server IP 10.20.3.8

i) Continue

j) RFC 2307

k) continue/ok

l) edit>>security uncheck disable text passwords

13) Open your Terminal

Enter these commands: id kmoorman

ssh -l root babbage

(enter the password... I hope you know it)

vi /etc/exports and add the client machine

exportfs -av


Set up your password

sudo passwd #changes password (don't actually put in the pound comments!)

su - # switches user switch to root


emacs /etc/auto-master ensure that home is uncommented.

emacs /etc/auto-home comment the + line add this line * 10.20.3.8:/data/exportfs/home/&

automount -vc

There is a bug in the LDAP of >10.7 systems that prohibits network logins! So, here's the work around. First, run the following: ldapsearch -x -h 10.20.3.8 -b "" -s base "(objectclass=*)" supportedSASLMechanisms

If this machine is like the others, you will see: supportedSASLMechanisms: DIGEST-MD5 supportedSASLMechanisms: CRAM-MD5

Now, open the Finder and go to /Library/Preferences/OpenDirectory/Configurations/LDAPv3 and open the plist for 10.20.3.8

Go to module options > ldap > Denied SASL Methods

You should see the DIGEST entry but NOT the CRAM. Add it.

reboot

.AFTER REBOOT

change name of computer in system preferences>>sharing If you are on machine x... change the name to x!


Set up a static IP

a) Login to Babbage through ssh once again.

b) view the file in /etc/ called hosts. Find your computer and note what its static IP is. 10.20.3.x.

c) Sys prefs>>network

d) Not DHCP but Manually.

e) Take the static IP you found and put it in for the static IP

f) Subnet will always be 255.255.255.0

g) Router is 10.20.3.1

h) DNS server is always 10.20.70.16, 10.20.70.17

i) Search domains = transy.edu

Note ----> DNS server and Search domains are grey. This is tricky. Don't be fooled into leaving it in there. If you do not manua lly put it in, MAC will be evil and make you put it in anyway.

j) while here, turn off the wireless.


Set up an NFS mount for /classes/

a) su -

b)cd /etc/

c) cp /etc/auto_home /etc/auto_classes

d) emacs auto_classes

      i) change where you see home to classes

e) emacs auto_master

       go to the home line
       ctrl + K  ctrl + Y  <ENTER> ctrl + Y
       change where you see home to classes

f) mkdir / classes/

g) chown root:wheel /classes/

h) automount -vc

i) ls -l /classes/cs1124 If you see all the files there then you have successfully set that up.


Setting up the Sleep, Printer, and SSH

1) Sleep

   a) System Preferences >> Energy Saver          Change to Never

2) Printer

   a)System Preferences >> Print & Fax  
   b)IP
   c) Set up these two printers:  10.20.3.6   and 10.20.3.7
            First set up starkweather: 10.20.3.6, let it configure, change name to starkweather, change location to BSC 106
            Then watson... 10.20.3.7 
            Make watson the default printer!

3) SSH

   a)System Preferences  >> Sharing  ... Click Remote Login

4) bash

   In order to be consistent, we are going to now switch the default shell to bash.   Open Preferences and goto Users & Groups.  Right click on the root account and change the /bin/sh to /bin/bash      Now, open a terminal, and edit a new file called .bash_profile to include

export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework


Pictures and ids

Go to Preferences -> Security & Privacy and select "Show a Message When Screen is Locked" Enter the fully qualified name of the machine.

Download loginox (http://www.loginox.branox.com) and install a picture of the computer's namesake


MacPorts

Much software is available through the excellent Mac App store, but the Mac OS X is also a full featured Unix variant. To access the software that is primarily from the Unix world, you need to incorporate a package management system. We use MacPorts.