Setting the Mac hostname or computer name from the terminal | Smoke | Autodesk Knowledge Network

Setting the Mac hostname or computer name from the terminal | Smoke | Autodesk Knowledge Network

Setting the Mac hostname or computer name from the terminal

Products and versions covered

By:

Support
Nov 02 2014

Solution:

Summary

This article provides instructions on setting the hostname of a Mac OS X workstation from the terminal.

This can be useful when configuring your workstation remotely through ssh, or when you need to change the fully qualified hostname of the workstation (which can’t be done from the UI).

Note: The following procedure is for informational purposes only and is not an Autodesk certified or supported workflow. Should issues arise with this procedure, they will not be addressed by Autodesk Customer Support.

Procedure

Perform the following tasks to change the workstation hostname using the scutil command.

  1. Open a terminal.
  2. Type the following command to change the primary hostname of your Mac:
    This is your fully qualified hostname, for example myMac.domain.com
    sudo scutil –set HostName <new host name>
  3. Type the following command to change the Bonjour hostname of your Mac:
    This is the name usable on the local network, for example myMac.local.
    sudo scutil –set LocalHostName <new host name>
  4. Optional: If you also want to change the computer name, type the following command:
    This is the user-friendly computer name you see in Finder, for example myMac.
    sudo scutil –set ComputerName <new name>
  5. Flush the DNS cache by typing:
    dscacheutil -flushcache
  6. Restart your Mac.

Additional Resources

Type scutil –help for the complete list of parameters.

 

Setting the Mac hostname or computer name from the terminalProducts and versions coveredBy:SupportNov 02 2014SHAREADD TO COLLECTIONSolution:SummaryThis article provides instructions on setting the hostname of a Mac OS X workstation from the terminal.This can be useful when configuring your workstation remotely through ssh, or when you need to change the fully qualified hostname of the workstation (which can’t be done from the UI).Note: The following procedure is for informational purposes only and is not an Autodesk certified or supported workflow. Should issues arise with this procedure, they will not be addressed by Autodesk Customer Support.ProcedurePerform the following tasks to change the workstation hostname using the scutil command. Open a terminal. Type the following command to change the primary hostname of your Mac: This is your fully qualified hostname, for example myMac.domain.com sudo scutil –set HostName Type the following command to change the Bonjour hostname of your Mac: This is the name usable on the local network, for example myMac.local. sudo scutil –set LocalHostName Optional: If you also want to change the computer name, type the following command: This is the user-friendly computer name you see in Finder, for example myMac. sudo scutil –set ComputerName Flush the DNS cache by typing: dscacheutil -flushcache Restart your Mac.Additional ResourcesType scutil –help for the complete list of parameters.

Source: Setting the Mac hostname or computer name from the terminal | Smoke | Autodesk Knowledge Network

Characters to Avoid in Directories and Filenames

Characters to Avoid in Directories and Filenames

Your web files will be viewed by numerous users who use a wide variety of operating systems (Mac, PC, and Linux for instance) and devices (desktops, tablets, and smartphones are some examples). Therefore, it is essential to play it safe and avoid common illegal directory and filename characters.

Naming conventions are important in web folders as well as for downloadable files such as PDFS, Word documents, and Excel spreadsheets.

Do not use any of these common illegal characters/symbols:

 

# pound < left angle bracket $ dollar sign + plus sign
% percent > right angle bracket ! exclamation point ` backtick
& ampersand * asterisk ‘ single quotes | pipe
{ left bracket ? question mark “ double quotes = equal sign
} right bracket / forward slash : colon
\ back slash blank spaces @ at sign

 

Also, keep these rules in mind.

  • Don’t start or end your filename with a space, period, hyphen, or underline.
  • Keep your filenames to a reasonable length and be sure they are under 31 characters.
  • Most operating systems are case sensitive; always use lowercase.
  • Avoid using spaces and underscores; use a hyphen instead.

 

Bad filenames:

  • F&A Costs.html
  • my PDF file#name.pdf

Web Browsers see:

  • F&amp;A%20Costs.html
  • my%20PDF%20file%23name.pdf

 

Good filenames:

  • fa-costs/index.html
  • my-pdf-file-name.pdf

Note: This list is not exhaustive. It is meant to help you avoid common errors in filenames.

Access Volumes folder Mac OS 10.6.8

InDesign we had an issue in which photos had been replaced. When one person placed the photo on one machine and another person opened the document on another the photo had been replaced with a photo with a similar name but in another location.

Volumes folder contained several versions of the connected volume appended with a “-1”, “-2” etc.

Access this hidden folder by clicking on desktop and hit key combination Command, shift, G. Which will open a “go to folder window” Type /volumes and enter. Make sure there are no “extra” servers located in this folder. When your machine crashes the list of servers located in this folder do not always clear and when you reconnect to the server / volume the new connection is appended with a “-1”