Showing posts with label sudo. Show all posts
Showing posts with label sudo. Show all posts

Saturday, October 24, 2015

How to Unblock Sites Using the Terminal Mac OS X Application for MacBook


Click the 'Finder' icon on the dock at the bottom of the screen.
Click 'Applications' at the left side of the Finder window, double-click the 'Utilities' folder and double-click 'Terminal.'
Type 'sudo nano /private/etc/hosts' into the terminal window and press 'Enter' to open the hosts file in a terminal text editor.
Use the arrow keys to locate the line referring to the blocked website in the text editor.
Position the text cursor at the beginning of the line.
Type a '#' character to comment out the line. The system ignores any lines in configuration files that begin with the '#' character.
Press 'Ctrl+O' and then press 'Enter' to save the file.
Press 'Ctrl+X' to close Nano, then close the terminal window.
VPS Hosting

Thursday, October 22, 2015

How to Disable Verbose Mode Startup on a Mac Mini


Open 'Applications > Utilities > Terminal.' The Terminal application allows the user to give text-based commands directly to the operating system.
Type the command “sudo nvram boot-args=” into the Terminal window and press enter. The command must be exactly as written and should not include the quotation marks.
Quit Terminal and restart the computer to verify that verbose mode startup has been disabled on your Mac Mini.
VPS Hosting

Friday, October 16, 2015

How to Change the Mac Startup Disk From the Command Line


Click the magnifying glass icon at the top of the Mac screen to display the Spotlight dialog box, type 'Terminal' and then click 'Terminal' in the list of results to launch the Terminal utility.
Type 'sudo bless -mount /Volumes/Startup_Disk_Name -setBoot' without the quotation marks into the Terminal window. The Bless command changes the startup disk. Replace 'Startup_Disk_Name' with the correct name of the disk you want to boot from. If the name contains spaces, enclose the entire path in quotation marks. For example, if your startup disk is labeled 'My Mac,' type the following command: sudo bless -mount '/Volumes/My Mac' -setBoot.
Press 'Enter' to run the command and change the startup disk. Note that your Mac boots from the new disk after you restart it. To restart the Mac from the command line immediately, run the following command: sudo shutdown -r now. Don't forget to save your work before you issue the command.
VPS Hosting

Sunday, October 11, 2015

How to Change Your Mac OS X System Information in the Terminal


Click the 'Finder' icon on the Dock, then click 'Applications' in the window that appears. Click 'Utilities,' then click 'Terminal.'
Type 'uname --v' in the command line window that appears and press the 'Enter' key. Note the system information that appears in the command line output.
Enter 'hostname' at the command prompt and tap the 'Enter' key. Note the hostname assigned to the computer that is displayed in the command line output.
Type 'sudo scutil --set Hostname new_hostname' on the command line, except replace 'new_hostname' with the new hostname you wish to assign to the computer. Press the 'Enter' key.
Enter 'sudo date 1230' at the command prompt, except replace '12' with the current 24-hour clock hour and replace '30' with the current 24-hour clock minutes. Press the 'Enter' key.
Type 'sudo date 1108101230' on the command line, except replace the '11' with the current year, the '08' with the current numeric month, the '10' with the current day of the month, and the '1230' with the current hour and minutes according to the 24-hour clock. Tap the 'Enter' key.
Enter 'sudo /usr/sbin/systemsetup --listtimezones' at the command prompt and tap the 'Enter' key. Find your current time zone listed in the command line output. Type 'sudo /usr/sbin/systemsetup --settimezone US/Eastern,' except replace 'US/Eastern' with your current time zone as listed earlier in the command line output. Press the 'Enter' key.
VPS Hosting