On MacOSX, if you have installed macports with the package installer, you may encounter the sudo: port: command not found problem.
Macports binaries are installed in /opt/local/bin, so you just need to add this path to your PATH environment variable. Example with your user, add to your $HOME/.profile :
export PATH=$PATH:/opt/local/bin
You can source your profile file to update your environment:
$ source .profile
You are now able to use the port command:
$ sudo port -v selfupdate
This entry was written by , posted on August 5, 2008 at 12:28 pm, filed under Mac and tagged MacOSX, port, shell. Leave a comment or view the discussion at the permalink.
The dmidecode command gives you all informations available about your memory.
With the special parameter “-t 16″, you can see the maximum (physical) memory that your server can have:
$ dmidecode -t 16 # dmidecode 2.8 SMBIOS 2.4 present. Handle 0x1000, DMI type 16, 15 bytes Physical Memory Array Location: System Board Or Motherboard Use: System Memory Error Correction Type: Multi-bit ECC Maximum Capacity: 32 GB Error Information Handle: Not Provided Number Of Devices: 8
Here we can see that your server can handle up to 32Gb
To know which slots are used or not use the “-t 17″ flag.
dmidecode -t 17 | grep Size
Size: 2048 MB
Size: 2048 MB
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
This entry was written by , posted on August 4, 2008 at 8:42 am, filed under Uncategorized and tagged dmidecode, memory. Leave a comment or view the discussion at the permalink.