Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/lbfactory/LBFactory.php on line 711
Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::open($save_path, $session_name) should either be compatible with SessionHandlerInterface::open(string $path, string $name): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/wiki/includes/session/PHPSessionHandler.php on line 181
Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::close() should either be compatible with SessionHandlerInterface::close(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/wiki/includes/session/PHPSessionHandler.php on line 196
Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::read($id) should either be compatible with SessionHandlerInterface::read(string $id): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/wiki/includes/session/PHPSessionHandler.php on line 210
Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::write($id, $dataStr) should either be compatible with SessionHandlerInterface::write(string $id, string $data): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/wiki/includes/session/PHPSessionHandler.php on line 238
Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::destroy($id) should either be compatible with SessionHandlerInterface::destroy(string $id): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/wiki/includes/session/PHPSessionHandler.php on line 344
Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::gc($maxlifetime) should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/wiki/includes/session/PHPSessionHandler.php on line 365
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 394
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: Return type of MediaWiki\Session\Session::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/wiki/includes/session/Session.php on line 587
Deprecated: Return type of MediaWiki\Session\Session::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/wiki/includes/session/Session.php on line 593
Deprecated: Return type of MediaWiki\Session\Session::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/wiki/includes/session/Session.php on line 605
Deprecated: Return type of MediaWiki\Session\Session::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/wiki/includes/session/Session.php on line 599
Deprecated: Return type of MediaWiki\Session\Session::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/wiki/includes/session/Session.php on line 617
Deprecated: Return type of MediaWiki\Session\Session::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/wiki/includes/session/Session.php on line 611
Deprecated: Return type of MediaWiki\Session\Session::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/wiki/includes/session/Session.php on line 627
Deprecated: Return type of & MediaWiki\Session\Session::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/wiki/includes/session/Session.php on line 640
Deprecated: Return type of MediaWiki\Session\Session::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/wiki/includes/session/Session.php on line 650
Deprecated: Return type of MediaWiki\Session\Session::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/wiki/includes/session/Session.php on line 655
Deprecated: MapCacheLRU implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /var/www/html/wiki/includes/libs/MapCacheLRU.php on line 37
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 394
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: Message implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /var/www/html/wiki/includes/language/Message.php on line 162
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: RawMessage implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /var/www/html/wiki/includes/RawMessage.php on line 0
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wiki/includes/session/Session.php:48) in /var/www/html/wiki/includes/changes/ChannelFeed.php on line 89
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wiki/includes/session/Session.php:48) in /var/www/html/wiki/includes/changes/ChannelFeed.php on line 95
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wiki/includes/session/Session.php:48) in /var/www/html/wiki/includes/WebResponse.php on line 72
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wiki/includes/session/Session.php:48) in /var/www/html/wiki/includes/WebResponse.php on line 72
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wiki/includes/session/Session.php:48) in /var/www/html/wiki/includes/WebResponse.php on line 72
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wiki/includes/session/Session.php:48) in /var/www/html/wiki/includes/WebResponse.php on line 72
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561 https://wiki.afp548.com/index.php?action=history&feed=atom&title=Firstboot_Script_CommandsFirstboot Script Commands - Revision history2026-10-23T21:50:21ZRevision history for this page on the wikiMediaWiki 1.34.0 Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561 https://wiki.afp548.com/index.php?title=Firstboot_Script_Commands&diff=249&oldid=prev208.95.51.187 at 16:14, 25 August 20102010-08-25T16:14:39Z<p></p>
<p><b>New page</b></p><div><syntaxhighlight lang="bash"><br />
#!/bin/sh<br />
<br />
###<br />
# First Boot script that is used along with a launchd item. Delets both itself and the launchd item after completion.<br />
###<br />
<br />
# Define 'kickstart' and'systemsetup' variables, built in OS X script that activates and sets options for ARD.<br />
# Defines the location of the generic.ppd in OS X 10.6<br />
<br />
kickstart="/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart"<br />
systemsetup="/usr/sbin/systemsetup"<br />
genericppd="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/Resources/Generic.ppd"<br />
<br />
# Delete iMovie (Previous Version) Directory if it exists, because we don't need it. Use when installing iLife using the original installers with InstaDMG.<br />
rm -R /Applications/iMovie\ \(previous\ version\).localized/<br />
<br />
# ARD Configuration<br />
#Enable ARD for localadmin<br />
$kickstart -configure -allowAccessFor -specifiedUsers<br />
$kickstart -activate -configure -access -on -users "localadmin" -privs -all -restart -agent<br />
<br />
# Set time zone and time server.<br />
$systemsetup -setusingnetworktime on<br />
$systemsetup -settimezone America/New_York -setnetworktimeserver time.apple.com<br />
<br />
#Update NTP<br />
ntpdate -bvs time.apple.com<br />
<br />
#Disable Airport<br />
networksetup -setnetworkserviceenabled AirPort off<br />
<br />
# Activate WakeOnLAN.<br />
$systemsetup -setwakeonnetworkaccess on<br />
<br />
#Kerberos-Enabled SSH Authentication. Also specifies which specific groups are allowed to ssh.<br />
echo KerberosAuthentication yes >> /etc/sshd_config<br />
echo KerberosOrLocalPasswd yes >> /etc/sshd_config<br />
echo AllowGroups domaingroup admin >> /etc/sshd_config<br />
<br />
#disable ipv6<br />
networksetup -setv6off Ethernet<br />
<br />
#Firewall Settings | 0 = Off | 1 = On For Specific Services | 2 = On For Essential Services<br />
defaults write /Library/Preferences/com.apple.alf globalstate -int 0<br />
<br />
#Set System Sleep Preferences | 0 = Off | 15 = 15 Min | 20 = 20 Min | etc | <br />
pmset sleep 0<br />
<br />
#Sets HostName<br />
scutil --set HostName $(scutil --get LocalHostName)<br />
<br />
#Adds Printers<br />
lpadmin -p "Printer Name" -L "Printer Location" -D "Printer Description" -E -v lpd://server/printqueue -P $genericppd -o printer-is-shared=false<br />
<br />
#Removes Time Machine from the menu<br />
defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup 1<br />
<br />
#Reboot in 1 minute<br />
sleep 60<br />
reboot<br />
<br />
# Delete the script and the launchd item.<br />
srm /Library/LaunchDaemons/com.company.firstboot.plist<br />
srm "$0"<br />
<br />
</syntaxhighlight><br />
<br />
<br />
[[Category:Settings]][[Category:InstaDMG]]</div>208.95.51.187