The current directory (macos_local) is now hosted on localhost. Provide the admin password and click on Allow in the subsequent message prompt. With macos_local as the present working directory in Terminal, execute the following command: “ sudo python -m SimpleHTTPServer 80”.Click on Authenticate when prompted, and provide the system admin password. Place the downloaded package files in their respective relative location (as per their URLs) within the macos_local folder on the Desktop.pkg files, inside the macos_local folder (Provide the admin password when requested): “ sudo mkdir -p. Enter the following command to create the relative path for the.Go to the newly created folder by typing “ cd macos_local” and hitting return.Type “ mkdir macos_local” and hit return to create the root directory of the same name on Desktop.Type “ cd Desktop” on the command line and hit return to enter the Desktop folder.Open Terminal from the Launchpad or Applications list.The below instructions will guide you through the setup process. Then, we’ll use macOS’ built-in SimpleHTTP server convert the folder into a web server directory. Once the relative path has been created, we’ll configure the localhost server to point to the “macos_local” directory on Desktop. In this example, we’ll create a folder named “macos_local” on Desktop, and replicate the directory structure of the package URLs under the same. Step 3: Place the package files in a certain relative path from the localhost root, so as to mimic the structure of their respective download URLs. In that case, use the “ sudo killall -HUP mDNSResponder” command to flush DNS cache. Note: Sometimes, you might need to flush the DNS cache for the changes to take effect.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |