Installing Kext and Single User Mod
-
Upload
kumricd2177 -
Category
Documents
-
view
215 -
download
0
Transcript of Installing Kext and Single User Mod
-
7/22/2019 Installing Kext and Single User Mod
1/13
-
7/22/2019 Installing Kext and Single User Mod
2/13
sudo nano /System/Library/Extensions/[yourdriverhere].kext/Contents/Info.plist
sudo nano /Extra/Extensions/[yourdriverhere].kext/Contents/Info.plist
If you need to patch a plugin inside a kext, you would type the same command with a twist:
sudo nano
/System/Library/Extensions/[yourdriverhere].kext/Contents/PlugIns/[yourplugin].kext/Contents/I
nfo.plist
sudo nano
/Extra/Extensions/[yourdriverhere].kext/Contents/PlugIns/[yourplugin].kext/Contents/Info.plist
Under normal conditions what we do when we patch a kext we are inserting your PCI ID into the kext (forinfo on PCI IDs, seethis FAQ)Scroll with the arrow keys and look for IOPCIPrimaryMatch orIOPCINameMatch (If there happens to be a IOPCIClassMatch instead of theother two mentioned above, change IOPCIClassMatch to IOPCIPrimaryMatch). Below it you should see atleast one string of numbers (and letters) preceded by 0x (unless it says IOPCINameMatch; then in thatcase it will say pci instead of 0x). Delete all the strings (including any that say & before them) andtype in your ID in the order 0x[deviceID][vendorID] (for IOPCINameMatch, it would be pci[vendorID],[deviceID]). So, for example, if you have an Intel (vendor ID 8086) Ethernet card with the device ID27dc, you would type 0x27dc8086 (or pci8086, 27dc if it is IOPCINameMatch). Once you're done, press
Control-O and then Control-X. Reboot, at the boot prompt type -f, and that should do the trick.
http://www.insanelymac.com/forum/index.php?showtopic=277343http://www.insanelymac.com/forum/index.php?showtopic=277343http://www.insanelymac.com/forum/index.php?showtopic=277343http://www.insanelymac.com/forum/index.php?showtopic=277343 -
7/22/2019 Installing Kext and Single User Mod
3/13
How To Use Single User Mode And How To Use It To
Uninstall Kextsabout:
The following guide will allow you to uninstall a kext using Single User Mode during boot when a kext
that you have recently installed is causing your system to not boot. The installation VodooHDA.kext on
some systems is a example of a kexts that may make your system to not boot.
Accreditation:
Giorgio Multi post foundhere
Wiki post foundhere
Edited by p.H and Rampage Dev
Method 1: Mac OS X Using Single User Mode
Part 1: What Is Single User Mode
Single User Mode is different from a Safe Mode boot in that the system goes directly to the console
instead of starting up the core elements of Mac OS X (items in /System/Library/, ignoring /Library/,
~/Library/, et al.). From there users are encouraged by a prompt to run fsck or other command line
utilities as needed (or installed).
Part 2: How To Boot Into Single User Mode
1. Record the kext you wish to remove
2. At the boot loader prompt screen type in the following:
-S3. Press Enter
4. After the system loads a blinking cursor will appear. This indicates that you may start typing in
commands.
5. Replace name_of_the_kext.kext with the name of your kext you wish to remove
6. Type the commands below, press enter after finish entering each line:
mount -uw /
cd /System/Library/Extensions
rm -rf name_of_the_kext.kext
sudo rm -rf /System/Library/Caches/*
shutdown -r now
Note Make Sure That The Spaces And Casing In The Text Is Correct
http://www.insanelymac.com/forum/topic/220924-come-cancello-un-kext-se-non-arrivo-al-desktop/http://www.insanelymac.com/forum/topic/220924-come-cancello-un-kext-se-non-arrivo-al-desktop/http://www.insanelymac.com/forum/topic/220924-come-cancello-un-kext-se-non-arrivo-al-desktop/http://en.wikipedia.org/wiki/Single_user_modehttp://en.wikipedia.org/wiki/Single_user_modehttp://en.wikipedia.org/wiki/Single_user_modehttp://en.wikipedia.org/wiki/Single_user_modehttp://www.insanelymac.com/forum/topic/220924-come-cancello-un-kext-se-non-arrivo-al-desktop/ -
7/22/2019 Installing Kext and Single User Mod
4/13
7. The kext should now be removed
Method 2: Using Windows Or Other Operating System
You can remove a kext by using macdrive or other programs which allow you to access the OS Xpartition. All you need to do is just delete the entire folder of the kext. (kexts are displayed as folders onwindows or other OS)
-
7/22/2019 Installing Kext and Single User Mod
5/13
Comandi da Terminale
La riga di comando di Mac OS X dispone di migliaia di programmi che lutentemedio di Mac non conosce.Sulla base di anni di duro lavoro da parte della fondazione GNU e di altre nella comunit open source,
Apple ha progettato un meraviglioso sistema operativo che non ha bisognodella riga di comando per
essere usato. Nonostante lusodella riga di comando in Mac OS X non necessario per lusoquotidiano di
un Macintosh, se usata correttamente pu far risparmiare molto tempo!
Indice dalla A alla Z dell'interfaccia a riga di comando di OS X della AppleA
aliasCreate an alias allocList used and free memory
aproposSearch the whatis database for strings
awkFind and Replace text within file(s)b
basenameConvert a full pathname to just a filename
bashBourne-Again SHell
bgSend to background
bindDisplay readline key and function bindings
blessSet volume bootability and startup disk options.
breakExit from a For, While, Until or Select loop
builtinExecute a shell builtin
bzipCompress or decompress filesc
-
7/22/2019 Installing Kext and Single User Mod
6/13
calDisplay a calendar
callerReturn the context of a subroutine call
caseConditionally perform a command
catDisplay the contents of a file
cd(che significa Change Directory, cioe' cambia directory)
chflagsChange a file or folder's flags
chgrpChange group ownership
chmodChange access permissions
chownChange file owner and group
chrootRun a command with a different root directory
cksumPrint CRC checksum and byte counts
clearClear terminal screen
cmpCompare two files
commCompare two sorted files line by line
commandRun a command (not a function)
completeEdit a command completion [word/pattern/list]
continueResume the next iteration of a loop cpCopy one or more files to another location
cronDaemon to execute scheduled commands
crontabSchedule a command to run at a later date/time
curlTransfer data from or to a server
cutDivide a file into several partsd
dateDisplay or change the date & time
dcDesk Calculator
ddData Dump - Convert and copy a file
declareDeclare variable & set attributes
defaultsSet preferences, show hidden files
dfDisplay free disk space
diffDisplay the differences between two files
diff3Show differences among three files
digDNS lookup
dirnameConvert a full pathname to just a path
dirsDisplay list of remembered directories
diskutilDisk utilities - Format, Verify, Repair
disownUnbind a job from the current login session
dittoCopy files and folders
dot_cleanRemove dot-underscore filesdrutilInteract with CD/DVD burners
dscacheutilQuery or flush the Directory Service/DNS cache
dsclDirectory Service command line utility
duEstimate file space usagee
echoDisplay message on screen
edA line-oriented text editor (edlin)
enableEnable and disable builtin shell commands
envSet environment and run a utility
evalEvaluate several commands/arguments
execExecute a command
exitExit the shell
expandConvert tabs to spaces
-
7/22/2019 Installing Kext and Single User Mod
7/13
expectProgrammed dialogue with interactive programs
Also see AppleScript
exportSet an environment variable
exprEvaluate expressionsf
falseDo nothing, unsuccessfully
fcFix command (history)
fdiskPartition table manipulator for Darwin UFS/HFS/DOS
fgSend job to foreground
fileDetermine file type
findSearch for files that meet a desired criteria
fmtReformat paragraph text
foldWrap text to fit a specified width
forLoop command
fsckFilesystem consistency check and repair
fsaclctlFilesystem enable/disable ACL support
fs_usageFilesystem usage (process/pathname)ftpInternet file transfer program
gGetFileInfoGet attributes of HFS+ files
getoptParse positional parameters
getoptsParse positional parameters
gotoJump to label and continue execution
grepSearch file(s) for lines that match a given pattern
groupsPrint group names a user is in
gzipCompress or decompress filesh
hashRefresh the cached/remembered location of commands
headDisplay the first lines of a file
hdiutilManipulate iso disk images
historyCommand History
hostnamePrint or set system namei
idPrint user and group names/id's
ifConditionally perform a command
infoHelp info
installCopy files and set attributesjjobsList active jobs
joinJoin lines on a common fieldk
kextfindList kernel extensions
kickstartConfigure Apple Remote Desktop
killStop a process from runningl
lList files in long format (ls -l)
lastIndicate last logins of users and ttys
launchctlLoad or unload daemons/agents
llList files in long format, showing invisible files (ls -la)
lessDisplay output one screen at a time
letEvaluate expression
-
7/22/2019 Installing Kext and Single User Mod
8/13
lipoConvert a universal binary
lnMake links between files (hard links, symbolic links)
localSet a local (function) variable
locateFind files
lognamePrint current login name
loginlog into the computer
logoutExit a login shell (bye)
lprPrint files
lprmRemove jobs from the print queue
lpstatPrinter status information
ls(che significa List, cioe' elenca) per elencare i file contenuti all'interno della directory corrente
lsregisterReset the Launch Services database
lsbomList a bill of materials file
lsofList open filesm
mannome_di_un_comando (che significa MANual, cioe' manuale, ed e' il manuale in linea che spiega
qualsiasi comando Unix)mdfindSpotlight search
mdutilManage Spotlight metadata store
mkdirCreate new folder(s)
mkfifoMake FIFOs (named pipes)
moreDisplay output one screen at a time
mountMount a file system
mvMove or rename files or directoriesn
netManage network resources
netstatShow network status
networksetupNetwork and System Preferences
niceSet the priority of a command
nohupRun a command immune to hangups
ntfs.utilNTFS file system utilityo
onintrControl the action of a shell interrupt
openOpen a file/folder/URL/Application
opensnoopSnoop file opens as they occur
osacompileCompile Applescript
osascriptExecute AppleScriptppasswdModify a user password
pasteMerge lines of files
pbcopyCopy data to the clipboard
pbpastePaste data from the Clipboard
picoSimple text editor
pingTest a network connection
pkgutilQuery and manipulate installed packages
plutilProperty list utility
pmsetPower Management settings
popdRestore the previous value of the current directory
prConvert text files for printing
printenvPrint environment variables
printfFormat and print data
-
7/22/2019 Installing Kext and Single User Mod
9/13
psProcess status
pushdSave and then change the current directory
pwd(che significa Print Working Directory, cioe' stampa la directory corrente) per sapere il nome della
directory correnteq
quotaDisplay disk usage and limitsr
rcpCopy files between machines
readRead one line from standard input
readonlyMark a variable or function as read-only
rebootStop and restart the system
returnExit a function
revReverse lines of a file
rmRemove files
rmdirRemove folder(s)
rpmRemote Package Manager
rsyncRemote file copy - Sync file tree (also RsyncX)
ssayConvert text to audible speech
screenMultiplex terminal, run remote shells via ssh
screencaptureCapture screen image to file or disk
sdiffMerge two files interactively
securityAdminister Keychains, keys, certificates and the Security framework
sedStream Editor
selectGenerate a list of items
setSet a shell variable = value
setfileSet attributes of HFS+ files
shiftShift positional parameters
shoptSet shell options
shutdownShutdown or restart OS X
sipsScriptable image processing system
sleepDelay for a specified time
softwareupdateSystem software update tool
sortSort text files
sourceExecute commands from a file
splitSplit a file into fixed-size pieces
stopStop a job or process
suSubstitute user identitysudoExecute a command as another user
sumPrint a checksum for a file
suspendSuspend execution of this shell
sw_versPrint Mac OS X operating system version
system_profilerReport system configuration
systemsetupComputer and display system settingst
tailOutput the last part of files
tarTape ARchiver
teeRedirect output to multiple files
testCondition evaluation
textutilManipulate text files in various formats (Doc,html,rtf)
timeMeasure Program Resource Use
-
7/22/2019 Installing Kext and Single User Mod
10/13
timesPrint shell & shell process times
topDisplay process information
touchChange file timestamps
trTranslate, squeeze, and/or delete characters
trapExecute a command when the shell receives a signal
tracerouteTrace Route to Host
trueDo nothing, successfully
ttyPrint filename of terminal on stdin
typeDescribe a command u
ufs.utilMount/unmount UFS file system
ulimitlimit the use of system-wide resources
umaskUsers file creation mask
umountUnmount a device
unaliasRemove an alias
unamePrint system information
unexpandConvert spaces to tabsuniqUniquify files
unitsConvert units from one scale to another
unsetRemove variable or function names
untilLoop command
usersPrint login names of users currently logged in
uuencodeEncode a binary file
uudecodeDecode a file created by uuencode
uuidgenGenerate a Unique ID (UUID/GUID)
uucpUnix to Unix copyv
viText Editorw
waitWait for a process to complete
wcPrint byte, word, and line counts
whatisSearch the whatis database for complete words
whereReport all known instances of a command
whichLocate a program file in the user's path
whileLoop command
whoPrint all usernames currently logged on
whoamiPrint the current user id and name (`id -un')
writeSend a message to another user xxargsExecute utility - passing arguments
yesPrint a string until interrupted
!!Run the last command againVediamo alcuni esempi di utilizzo dei comandi piu' comuni.
sshQuesta piccola pietra preziosa inclusa in ogni versione di Mac OS X. Inizialmente sviluppata come
rimpiazzo per i comandi rsh/rlogin, ssh diventata il collante della comunit Linux/Unix (e adesso di MacOS X). Lutilizzo principale di Openssh lamministrazione remota in sicurezza. Se volete abilitare ilserver SSH incluso in Mac OS X potete farlo dalle Preferenze di Sistema, cliccate su Condivisione espuntate lopzione Login remoto. Adesso se vi trovate in giro e volete accedere al vostro computer
-
7/22/2019 Installing Kext and Single User Mod
11/13
potete usare un client come PuTTY (da un sistema windows) oppure sshdal terminale di Mac OS X ecollegarvi allindirizzo IP del vostro Mac. Dopo esservi autenticati con il vostro username e la vostra
password avrete completo accesso alla riga di comando di Mac OS X. Openssh ha molti, molti altri usi ealcuni di questi sono molto avanzati. Il mio preferito usare ssh come un server SOCKS per navigaresicuro in internet quando mi collego da postazioni pubbliche.
topTop unaltrautility classica che stata a lungo usata dalla comunit Linux/Unix. Per usare top, aprite il
terminale e digitate top.In un istante vi troverete di fronte ad una finestra piena di testo. Quello chevedete una lista di ogni processo attualmente in esecuzione sul vostro Macintosh. Quando il mio Mac hadei rallentamenti, top la prima risorsa che utilizzo per controllare quello che sta succedendo.
lsbomlsbom utile per curare quella paranoia che vi assale prima di provare ad installare qualche utility carinache avete trovato su qualche sito internet . Con lsbom potete esaminare il contenuto di un installer MacOS X (i file .pkg) e ottenere una lista molto dettagliata di cosa verr installato sul prezioso filesystem delvostro Mac. Per usare lsbom, aprite il terminale e navigate fino alla posizione in cui si trova il file .pkg. Seil vostro installer si trova in un file .dmg, sar utile copiare il file .pkg sulla scrivania, e successivamentedigitare cd~/Desktop(quel carattere si ottiene con alt+5). Una volta che vi trovate nel punto dove sitrova il file .pkg, digitate lsbomfile.pkg/Contents/Archive.bom|moree vedrete una lista completa dei fileche il vostro nuovo programma intende installare.
sayQuesto comando unico di Mac OS X, ed uno dei pi divertenti. Provatelo aprendo il terminale edigitando sayhello.
softwareupdateIl comando softwareupdate un modo veloce e facile per installare gli aggiornamenti software di Apple.Per usarlo, aprite il terminale e digitate softwareupdate -i -a per installare tutti gli aggiornamentidisponibili per il vostro Macintosh. Se volete installare solamente gli aggiornamenti raccomandatidigitate sofwareupdate-i -r.
ifconfigIl modo pi veloce e facile per verificare quale indirizzo IP il vostro Mac sta usando, decisamenteifconfig. Per usare ifconfig, aprite il terminale e digitate ifconfig. Vedrete una moltitudine di
informazioni, incluso il MAC address della vostra scheda di rete. Io di solito uso ifconfig|grep inetperottenere solo le informazioni relative allIPdel mio computer. Potete disabilitare una interfaccia di rete(ad esempio en0)digitando ifconfigen0 down.Potete riabilitarla con ifconfigen0 up.Questo modo molto pi veloce che usare le preferenze di sistema.
lipolipo una utility che manipola gli universal binary di Mac OS X. Molti (quasi tutti) i programmi adessovengono commercializzati o scaricati come Universal,cio hanno al loro interno codice binario che puessere interpretato sia dai chip PowerPC che dai chip Intel. Ma visto che probabilmente vi interessa solouno dei due, potete usare lipo per snellirei vostri file binari. Per esempio se volete snellire lapplicazioneStickies(promemoria) in modo che contenga solo codice intel (i386) fate cos:cd /Applicationslipo Stickies.app/Contents/MacOS/Stickies -thin i386 -output Stickies.app/Contents/MacOS/Stickies.i386(su ununicariga)cd Stickies.app/Contents/MacOS/rm Stickiesmv Stickies.i386 Stickies
screencapturescreencapture offre un modo pi sofisticato (rispetto a comando-maiusc-3) per fare fotografie alloschermo. Per usarlo, aprite il terminale e provate a digitare screencapture -iW ~/Desktop/screen.jpg.
Apparir liconadi una macchina fotografica che attende di essere cliccata su una finestra. Una volta fattoclic, verr creato un file sulla vostra scrivania chiamato screen.jpg che conterr unimmagine diqualunque finestra abbiate cliccato. Potete ovviamente anche creare unimmagine del vostro interoschermo digitando screencapture-S ~/Desktop/screen.jpg.Se vi sentite particolarmente creativi potetefotografare solo una parte del vostro schermo digitando screencapture-ic.
-
7/22/2019 Installing Kext and Single User Mod
12/13
Let's see some more examples of using the command ' areas.
sshThis little gem is included in every version of Mac OS X. Initially developed as a replacement for
rsh / rlogin, ssh has become the glue of the Linux / Unix ( and now Mac OS X). The main use of
remote administration Openssh is safe . If you want to enable SSH server included in Mac OS X you
can do it from the System Preferences, click on the "Sharing" and check the " Remote Login " . Nowif you're around and want to access your computer , you can use a client such as PuTTY (from a
windows system ) or " ssh " from the terminal in Mac OS X and log the IP address of your Mac
after you log with your username and password you will have full access to the command line in
Mac OS X. Openssh has many, many other uses and some of these are very advanced . My favorite
is to use ssh as a SOCKS server to surf safely on the Internet when I connect from public locations .
topTop utility is another classic that has long been used by the Linux / Unix. To use the top , open the
terminal and type "top" . In an instant, you 'll be presented with a window full of text. What you see
is a list of all processes currently running on your Macintosh . When my Mac slowdowns , top is the
first resource I use to check what 's going on.
lsbom
lsbom is useful to cure the paranoia that attacks you before you try to install some nice utility that
you found on some website . With lsbom you can examine the contents of a Mac OS X installer ( the
. Pkg file ) and get a very detailed list of what will be installed on your Mac's filesystem valuable
lsbom To use , open a terminal and navigate to the location where you find the file . pkg . If your
installer is in a . Dmg file , it will be useful to copy the . Pkg file on your desktop, and then type "cd
~ / Desktop" ( the character you get with alt +5) . Once you are at the point where the file is located
. Pkg , type " lsbom file.pkg / Contents / Archive.bom | more" and you'll see a complete list of files
you want to install your new program .
sayThis command is only for Mac OS X, and is one of the funniest . Try opening a terminal and typing
"say hello" .
softwareupdateThe command " softwareupdate " is a fast and easy way to install software updates from Apple. To
use it, open a terminal and type " softwareupdate -i -a" to install all available updates for your
Mac. If you want to install the updates merely "recommended" type " sofwareupdate -i- r" .
ifconfigThe quickest and easiest way to check what IP address your Mac is using , is definitely " ifconfig" .
To use ifconfig, open the terminal and type " ifconfig" . You will see a multitude of information,
including the MAC address of your network card. I usually use "ifconfig | grep inet " to get only the
information related to the IP of my computer. You can disable a network interface (such as " en0 " )
by typing "ifconfig en0 down" . You can enable it with "ifconfig en0 up" . This way is much faster
than using the system preferences.
lipo
lipo is a utility that manipulates universal binary for Mac OS X. Many (almost all) of the programs
now are sold or transferred as " Universal ", ie they have inside the binary code that can be
interpreted by both the PowerPC chip from Intel . But since you probably only care about one ofthem, you can use lipo to " streamline " your binary files. For example, if you want to streamline
the application " Stickies " (reminder) so that it contains only code intel (i386 ) do this:
-
7/22/2019 Installing Kext and Single User Mod
13/13
cd / Applications
lipo Stickies.app / Contents / MacOS / Stickies -thin i386 -output
Stickies.app/Contents/MacOS/Stickies.i386 ( on one line)
Stickies.app cd / Contents / MacOS /
rm Stickies
mv Stickies.i386 Stickies
screenCaptureScreenCapture offers a more sophisticated way (as opposed to command - shift -3) to take pictures
of the screen. To use it, open a terminal and try typing " screencapture - iW ~ / Desktop / screen.jpg
." You will see an icon of a camera waiting to be clicked on a window. Once clicked , it will create
a file on your desktop called " screen.jpg " that will contain an image of any window you clicked.
You can of course also create an image of your entire screen by typing " screencapture -S ~ /
Desktop / screen.jpg ." If you are feeling creative you can photograph just a portion of your screen
by typing " screencapture - ic ."