1. Plug earphone / headphone in Macbook / Macbook Pro headphone jack.
2. Open Settings
3. Select the Sounds option
4. Slide Balance to Center.
Technology blog for personal research and diary. Short Notes, Quick Reference, scripts, source codes, commands, etc
Showing posts with label OS X. Show all posts
Showing posts with label OS X. Show all posts
Wednesday, September 27, 2017
Tuesday, August 25, 2015
Step by Step Raspbian Installation on Raspberry Pi 2 using OS X Yosemite
Step by Step Raspbian (2015-05-05 Debian Wheezy) Installation on Raspberry Pi 2 Model B using OS X Yosemite
Download Raspbian
Download Raspbian image from Raspberry.org Downloads page
Verify downloaded Raspbian Image
Verify checksum of downloaded Raspbian image, it should match the SHA-1 from rasberrypi.org website. Open Terminal and execute openssl sha1 [path to image] command.
$ openssl sha1 2015-05-05-raspbian-wheezy.zip
SHA1(2015-05-05-raspbian-wheezy.zip)= cb799af077930ff7cbcfaa251b4c6e25b11483de
Extract image from the Raspbian ZIP file
Open Terminal, extract Raspbian image via unzip command
$ unzip 2015-05-05-raspbian-wheezy.zip
Archive: 2015-05-05-raspbian-wheezy.zip
inflating: 2015-05-05-raspbian-wheezy.img
Format microSD Card
1. Insert the MicroSD card into Standard SD Card adapter
2. Insert the SD Card into the SD Card Slot of your OS X Machine. SD Card will be mounted automatically.
3. Open Disk Utility, select the SD Card from the listed drives and click the Erase tab. Define a name for the partition in the Name field. Erase SD Card using MS-DOS (FAT) Format by clicking the Erase.. button.
Determine the BSD Name
Option 1 via Disk Utility. After erasing/formatting the SD Card, select the newly formatted/erased partition and click First Aid tab. Make sure the Show details is checked and then click Verify Disk button. Take note of the lines of text that appear and look for something like /dev/diskxx. Taken from the example below its ** /dev/rdisk2s1 .
Option 2 via Command line. Open Terminal, issue "df -h" command from the console. Take note of the SD device highlighted below e.g. /dev/disk2s1
$ df -h
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk1 465Gi 381Gi 83Gi 83% 100065414 21739407 82% /
devfs 186Ki 186Ki 0Bi 100% 644 0 100% /dev
map -hosts 0Bi 0Bi 0Bi 100% 0 0 100% /net
map auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /home
/dev/disk2s1 15Gi 2.3Mi 15Gi 1% 0 0 100% /Volumes/UNTITLED
Using the device name of the partition determine the raw device name for the entire disk, by omitting the final "s1" and replacing "disk" with "rdisk" e.g. the BSD for the /dev/disk2s1 is /dev/rdisk2
Unmount the SD Card partition
Open Terminal, unmount the SD card partition (NOTE: do not Eject) using diskutil unmount command
$ sudo diskutil unmount /dev/disk2s1
Password:*
Volume UNTITLED on disk2s1 unmounted
Write Raspbian image to SD Card
Open Terminal, issue the dd command to convert and copy image to raw device. Take note of the correct raw disk device name e.g /dev/disk2s1 => /dev/rdisk2, /dev/disk3s1 => /dev/rdisk3..
$ sudo dd bs=1m if=2015-05-05-raspbian-wheezy.img of=/dev/rdisk2
Password:
3125+0 records in
3125+0 records out
3276800000 bytes transferred in 252.814853 secs (12961264 bytes/sec)
Eject SD Card
After the dd command finishes, eject the SD Card
$ sudo diskutil eject /dev/disk2
Password:
Disk /dev/disk2 ejected
Install Raspbian
Insert SD card into Raspberry Pi, plug-in device and follow installation instructions.
Download Raspbian
Download Raspbian image from Raspberry.org Downloads page
Verify downloaded Raspbian Image
Verify checksum of downloaded Raspbian image, it should match the SHA-1 from rasberrypi.org website. Open Terminal and execute openssl sha1 [path to image] command.
$ openssl sha1 2015-05-05-raspbian-wheezy.zip
SHA1(2015-05-05-raspbian-wheezy.zip)= cb799af077930ff7cbcfaa251b4c6e25b11483de
Extract image from the Raspbian ZIP file
Open Terminal, extract Raspbian image via unzip command
$ unzip 2015-05-05-raspbian-wheezy.zip
Archive: 2015-05-05-raspbian-wheezy.zip
inflating: 2015-05-05-raspbian-wheezy.img
Format microSD Card
1. Insert the MicroSD card into Standard SD Card adapter
2. Insert the SD Card into the SD Card Slot of your OS X Machine. SD Card will be mounted automatically.
3. Open Disk Utility, select the SD Card from the listed drives and click the Erase tab. Define a name for the partition in the Name field. Erase SD Card using MS-DOS (FAT) Format by clicking the Erase.. button.
Determine the BSD Name
Option 1 via Disk Utility. After erasing/formatting the SD Card, select the newly formatted/erased partition and click First Aid tab. Make sure the Show details is checked and then click Verify Disk button. Take note of the lines of text that appear and look for something like /dev/diskxx. Taken from the example below its ** /dev/rdisk2s1 .
Option 2 via Command line. Open Terminal, issue "df -h" command from the console. Take note of the SD device highlighted below e.g. /dev/disk2s1
$ df -h
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk1 465Gi 381Gi 83Gi 83% 100065414 21739407 82% /
devfs 186Ki 186Ki 0Bi 100% 644 0 100% /dev
map -hosts 0Bi 0Bi 0Bi 100% 0 0 100% /net
map auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /home
/dev/disk2s1 15Gi 2.3Mi 15Gi 1% 0 0 100% /Volumes/UNTITLED
Using the device name of the partition determine the raw device name for the entire disk, by omitting the final "s1" and replacing "disk" with "rdisk" e.g. the BSD for the /dev/disk2s1 is /dev/rdisk2
Unmount the SD Card partition
Open Terminal, unmount the SD card partition (NOTE: do not Eject) using diskutil unmount command
$ sudo diskutil unmount /dev/disk2s1
Password:*
Volume UNTITLED on disk2s1 unmounted
Write Raspbian image to SD Card
Open Terminal, issue the dd command to convert and copy image to raw device. Take note of the correct raw disk device name e.g /dev/disk2s1 => /dev/rdisk2, /dev/disk3s1 => /dev/rdisk3..
$ sudo dd bs=1m if=2015-05-05-raspbian-wheezy.img of=/dev/rdisk2
Password:
3125+0 records in
3125+0 records out
3276800000 bytes transferred in 252.814853 secs (12961264 bytes/sec)
Eject SD Card
After the dd command finishes, eject the SD Card
$ sudo diskutil eject /dev/disk2
Password:
Disk /dev/disk2 ejected
Install Raspbian
Insert SD card into Raspberry Pi, plug-in device and follow installation instructions.
Thursday, July 30, 2015
Updating Crucial MX100 firmware installed on Macbook Unibody 13" (Late 2008) OS X
To find out which firmware revision your SSD is running, follow these steps in OSX:
Components:
1. Download Crucial firmware MU02 MX100_MU02_BOOTABLE_ALL_CAP.zip
2. USB flash drive (or SD card) to be formatted as a FAT32 volume.
3. Download GRUB-EFI bootloader files for 64bit EFI.
# Format USB
Using OS X Disk Utility, format the USB drive as FAT32 (MS-DOS).
# Extract the grubefiusb-0.03.zip
Transfer the following files to the USB:
* EFI/boot/unicode.pf2
* EFI/boot/bootx64.efi
* EFI/boot/grub.cfg
(e.g EFI folder should be in root folder)
# Extract the Crucial MX100_MU02_BOOTABLE_ALL_CAP.zip, and open the MX100_MU02_BOOTABLE_ALL_CAP.iso using Disk Mounter
Transfer the following foldes to the USB:
* boot
* cde
(e.g boot folder should be in root folder)
# Reboot the machine with the customize USB (Press and hold Option key at boot time)
- Click on the Apple menu
- Select "About This Mac", then "More Info..."
- Select "System Report..."
- In the Contents list, click on "Hardware" to expand the category
- Click on Serial-ATA (near the end of the Hardware category)
Components:
1. Download Crucial firmware MU02 MX100_MU02_BOOTABLE_ALL_CAP.zip
2. USB flash drive (or SD card) to be formatted as a FAT32 volume.
3. Download GRUB-EFI bootloader files for 64bit EFI.
# Format USB
Using OS X Disk Utility, format the USB drive as FAT32 (MS-DOS).
# Extract the grubefiusb-0.03.zip
Transfer the following files to the USB:
* EFI/boot/unicode.pf2
* EFI/boot/bootx64.efi
* EFI/boot/grub.cfg
(e.g EFI folder should be in root folder)
# Extract the Crucial MX100_MU02_BOOTABLE_ALL_CAP.zip, and open the MX100_MU02_BOOTABLE_ALL_CAP.iso using Disk Mounter
Transfer the following foldes to the USB:
* boot
* cde
(e.g boot folder should be in root folder)
# Reboot the machine with the customize USB (Press and hold Option key at boot time)
Wednesday, May 27, 2015
Step by Step Install / Uninstall JDK 8 on OS X Yosemite
Step by Step Setup / Install of Java SE Development Kit 8 on OS X Yosemite
Download the Java SE Development Kit 8
Open Browser and proceed to Oracle's Java SE Downloads page
Click JDK DOWNLOAD button to goto the Java SE Development Kit 8 Downloads page
You must accept the Oracle Binary Code License Agreement for Java SE to enable links for downloading the JDKs.
Select the Accept License Agreement radio button and then will be prompted the message: Thank you for accepting the Oracle Binary Code License Agreement for Java SE; you may now download this software. You are now ready to download the binaries by clicking the corresponding Download link e.g. jdk-8u60-macosx-x64.dmg
Install Java SE Development Kit 8
Open the installer by double-clicking the downloaded Apple Disk Image file e.g jdk-8u60-macosx-x64.dmg
Double-click the pkg icon e.g. JDK 8 Update 60.pkg icon to start installation.

You will be prompted with Welcome to the JDK 8 Update Installer screen. Press the Continue button.

You will then be prompted with the start of the installation confirmation screen. Press Install button.
You will be prompted to enter administrator credentials in order to continue with the installation. Enter Password and press Install Software button to continue with the installation.
Follow installation instructions and press Close when
You will be prompted with the installation was completed successfully screen and press Close button to finish installation.
Once completed, set environment via ~/.bash_profile
$ export set JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home
Verify Installed JDK
Verify installed JDK via java -version command.
Uninstall an existing JDK
List installed Java Virtual Machines via ls command
$ ls /Library/Java/JavaVirtualMachines
jdk1.8.0_51.jdk jdk1.8.0_60.jdk
To uninstall an existing JDK, issue rm -rf /Library/Java/JavaVirtualMachines/jdkmajor.minor.macro[_update].jdk command for a specific jdk e.g jdk1.8.0_51.jdk
Download the Java SE Development Kit 8
Open Browser and proceed to Oracle's Java SE Downloads page
Click JDK DOWNLOAD button to goto the Java SE Development Kit 8 Downloads page
You must accept the Oracle Binary Code License Agreement for Java SE to enable links for downloading the JDKs.
Select the Accept License Agreement radio button and then will be prompted the message: Thank you for accepting the Oracle Binary Code License Agreement for Java SE; you may now download this software. You are now ready to download the binaries by clicking the corresponding Download link e.g. jdk-8u60-macosx-x64.dmg
Install Java SE Development Kit 8
Open the installer by double-clicking the downloaded Apple Disk Image file e.g jdk-8u60-macosx-x64.dmg
Double-click the pkg icon e.g. JDK 8 Update 60.pkg icon to start installation.

You will be prompted with Welcome to the JDK 8 Update Installer screen. Press the Continue button.

You will then be prompted with the start of the installation confirmation screen. Press Install button.
You will be prompted to enter administrator credentials in order to continue with the installation. Enter Password and press Install Software button to continue with the installation.
Follow installation instructions and press Close when
You will be prompted with the installation was completed successfully screen and press Close button to finish installation.
Once completed, set environment via ~/.bash_profile
$ export set JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home
Verify Installed JDK
Verify installed JDK via java -version command.
$ java -version
java -version
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
Uninstall an existing JDK
List installed Java Virtual Machines via ls command
$ ls /Library/Java/JavaVirtualMachines
jdk1.8.0_51.jdk jdk1.8.0_60.jdk
To uninstall an existing JDK, issue rm -rf /Library/Java/JavaVirtualMachines/jdkmajor.minor.macro[_update].jdk command for a specific jdk e.g jdk1.8.0_51.jdk
$ sudo rm -rf /Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk
Password:*
Setup / Install Tomcat 8 on OS X Yosemite
#Download latest tomcat
#Create /usr/local
sudo mkdir -p /usr/local
#Goto directory to /usr/local
cd /usr/local
#Extract downloaded tomcat from the /usr/local
tar -zxvf ./apache-tomcat-8.0.45.tar.gz
sudo ln -s /usr/local/apache-tomcat-8.0.45 /Library/Tomcat
#Remove existing tomcat directory
sudo rm -f /Library/Tomcat
#Create symbolic link for easier access sudo chown -R/Library/Tomcat sudo chmod +x /Library/Tomcat/bin/*.sh
#configure gui admin for tomcat via /Library/Tomcat/conf/tomcat-users.xml include inside
#Start tomcat from terminal
/Library/Tomcat/bin/startup.sh
#Stop tomcat from terminal
/Library/Tomcat/bin/shutdown.sh
Thursday, October 30, 2014
Create OS X Yosemite USB drive Installer
1. Download OS X Yosemite from App Store. After download, make sure "Install OS X Yosemite.app" is in the /Applications directory.
2. Insert USB (at least 8GB). No need to clean or format. Installation will format this drive. Take note of the name of the drive via Finder (under devices) or type mount from Terminal and take note of the /Volumes/name_of_usb_drive
3. Open Terminal via Applications->Terminal
4. Type the following from the command line. Replace [name_of_usb_drive] with the name of the drive from #2.
sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia --volume /Volumes/[name_of_usb_drive] --applicationpath /Applications/Install\ OS\ X\ Yosemite.app --nointeraction
5. You will see something like the following, follow instructions and/or let it finish.
"Erasing Disk: 0%... 10%... 20%... 30%...100%...
Copying installer files to disk...
Copy complete.
Making disk bootable...
Copying boot files...
Copy complete.
Done."
6. Reboot. Press Option key during boot and choose Install OS X Yosemite drive upon boot.
2. Insert USB (at least 8GB). No need to clean or format. Installation will format this drive. Take note of the name of the drive via Finder (under devices) or type mount from Terminal and take note of the /Volumes/name_of_usb_drive
3. Open Terminal via Applications->Terminal
4. Type the following from the command line. Replace [name_of_usb_drive] with the name of the drive from #2.
sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia --volume /Volumes/[name_of_usb_drive] --applicationpath /Applications/Install\ OS\ X\ Yosemite.app --nointeraction
5. You will see something like the following, follow instructions and/or let it finish.
"Erasing Disk: 0%... 10%... 20%... 30%...100%...
Copying installer files to disk...
Copy complete.
Making disk bootable...
Copying boot files...
Copy complete.
Done."
6. Reboot. Press Option key during boot and choose Install OS X Yosemite drive upon boot.
Wednesday, September 10, 2014
Install Apache Cassandra on OS X
# Requirement
Java 7
# Download Apache Cassandra 2.0.10 from http://cassandra.apache.org/download/
wget http://www.apache.org/dyn/closer.cgi?path=/cassandra/2.0.10/apache-cassandra-2.0.10-bin.tar.gz
# Extract to e.g /usr/local; create symlink
cd /usr/local
tar -xzvf apache-cassandra-2.0.10-bin.tar.gz
ln -s apache-cassandra-2.0.10-bin.tar.gz cassandra
# Create Cassandra directories
sudo mkdir /var/lib/cassandra
sudo mkdir /var/lib/cassandra/data
sudo mkdir /var/lib/cassandra/commitlog
sudo mkdir /var/lib/cassandra/saved_caches
sudo mkdir /var/log/cassandra
# Run Cassandra
cd /usr/local/cassandra
sudo bin/cassandra -f
# Test connection; Open new terminal window
cd /usr/local/cassandra
bin/cqlsh
Monday, August 18, 2014
Setup Apache Tomcat 8 on OS X Mavericks
# Prerequisite - Java installed
# Download Tomcat from tomcat.apache.org e.g. apache-tomcat-8.0.9.tar.gz
# Proceed to target installation directory
cd /usr/local
# Extract
tar -xzvf apache-tomcat-8.0.9.tar.gz
# Symlink shortname
ln -s apache-tomcat-8.0.9.tar.gz tomcat8
# Setup environment
vi setenv.sh
# Include CATALINA_HOME and JRE_HOME
# Add user
vi /usr/local/tomcat8/conf/tomcat-users.xml
# Include all roles (no need to create roles in the tomcat-users.xml )
# Start Tomcat
./startup.sh
# Stop Tomcat
./shutdown.sh
# Download Tomcat from tomcat.apache.org e.g. apache-tomcat-8.0.9.tar.gz
# Proceed to target installation directory
cd /usr/local
# Extract
tar -xzvf apache-tomcat-8.0.9.tar.gz
# Symlink shortname
ln -s apache-tomcat-8.0.9.tar.gz tomcat8
# Setup environment
vi setenv.sh
# Include CATALINA_HOME and JRE_HOME
# Add user
vi /usr/local/tomcat8/conf/tomcat-users.xml
# Include all roles (no need to create roles in the tomcat-users.xml )
# Start Tomcat
./startup.sh
# Stop Tomcat
./shutdown.sh
Sunday, August 10, 2014
JAVA_HOME Command Tool for OS X
# List installed Java
$/usr/libexec/java_home -verbose
Matching Java Virtual Machines (3):
1.8.0_05, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home
1.6.0_65-b14-466.1, x86_64: "Java SE 6" /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
1.6.0_65-b14-466.1, i386: "Java SE 6" /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
# Get Current Java Home
$/usr/libexec/java_home
/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home
# Get path to 1.6 (if installed)
$/usr/libexec/java_home v1.6
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
$/usr/libexec/java_home -verbose
Matching Java Virtual Machines (3):
1.8.0_05, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home
1.6.0_65-b14-466.1, x86_64: "Java SE 6" /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
1.6.0_65-b14-466.1, i386: "Java SE 6" /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
# Get Current Java Home
$/usr/libexec/java_home
/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home
# Get path to 1.6 (if installed)
$/usr/libexec/java_home v1.6
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Homebrew "brew doctor" Unexpected file Warnings / Errors
Error:
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libmacfuse_i32.2.dylib
/usr/local/lib/libmacfuse_i64.2.dylib
/usr/local/lib/libosxfuse_i32.2.dylib
/usr/local/lib/libosxfuse_i64.2.dylib
Warning: Unbrewed .la files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected .la files:
/usr/local/lib/libosxfuse_i32.la
/usr/local/lib/libosxfuse_i64.la
Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected .pc files:
/usr/local/lib/pkgconfig/osxfuse.pc
Solution:
If with TrueCrypt installed, use this script to fix https://gist.github.com/trinitronx/5437061
If OSXFuse installed, remove and use Homebrew's version
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libmacfuse_i32.2.dylib
/usr/local/lib/libmacfuse_i64.2.dylib
/usr/local/lib/libosxfuse_i32.2.dylib
/usr/local/lib/libosxfuse_i64.2.dylib
Warning: Unbrewed .la files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected .la files:
/usr/local/lib/libosxfuse_i32.la
/usr/local/lib/libosxfuse_i64.la
Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected .pc files:
/usr/local/lib/pkgconfig/osxfuse.pc
Solution:
If with TrueCrypt installed, use this script to fix https://gist.github.com/trinitronx/5437061
If OSXFuse installed, remove and use Homebrew's version
Install Homebrew on OS X Mavericks
#Install Homebrew
brew doctor
#Check for brew updates
brew update
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
#Check for errors before updating brew doctor
#Check for brew updates
brew update
Wednesday, August 6, 2014
Install Apache 2.2 , PHP 5.4 and MySQL 5.5 on OS X using MacPorts
# APACHE
# Install Apache 2.2
sudo port install apache2
# Edit Apache2 Config
vi /opt/local/apache2/conf/httpd.conf
# Find/Edit the following
ServerName localhost:80
# PHP
Install PHP 5.4
sudo port install php54-apache2handler
# Execute following command to include PHP5 module to Apache2
cd /opt/local/apache2/modules
sudo /opt/local/apache2/bin/apxs -a -e -n "php5" mod_php54.so
# MYSQL SERVER
# Install MySQL serversudo port install mysql55-server
# Setup MySQL DB
sudo -u _mysql /opt/local/lib/mysql55/bin/mysql_install_db
# Start MySQL
sudo port load mysql55-server
# Setup root password
/opt/local/lib/mysql55/bin/mysqladmin -u root password 'new-password'
# Stop MySQL
sudo port unload mysql55-server
Saturday, August 2, 2014
Tuesday, July 22, 2014
Setup Apache & PHP for Apple OS X 10.9 Mavericks
Check installed version of Apache, open up Terminal and type
httpd -v
Start Apache, open up Terminal and type
sudo apachectl start
Stop Apache, open up Terminal and type
sudo apachectl stop
Enable PHP, open up Terminal and type
sudo vi /etc/apache2/httpd.conf
Uncomment LoadModule statement php5_module
Restart Apache, open up Terminal and Type
sudo apachectl restart
httpd -v
Start Apache, open up Terminal and type
sudo apachectl start
Stop Apache, open up Terminal and type
sudo apachectl stop
Enable PHP, open up Terminal and type
sudo vi /etc/apache2/httpd.conf
Uncomment LoadModule statement php5_module
LoadModule php5_module libexec/apache2/libphp5.so
Restart Apache, open up Terminal and Type
sudo apachectl restart
Tuesday, July 1, 2014
Sunday, June 15, 2014
Friday, June 6, 2014
OS X: Partition or Resizing Error / Partition failed with the error: Couldn’t modify partition map because file system verification failed.
Shutdown
Start system into Single User Mode by holding Command+S during boot
At the command prompt, type:
/sbin/fsck -fy then ENTER
When fsck is complete, type “exit” to restart
Start system and verify disk using Disk Utility
Start system into Single User Mode by holding Command+S during boot
At the command prompt, type:
/sbin/fsck -fy then ENTER
When fsck is complete, type “exit” to restart
Start system and verify disk using Disk Utility
Wednesday, June 4, 2014
Uninstall OS X EnterpriseDB PostgreSQL 9.1
Open a terminal window via Applications->Utilities->Terminal
Open User & Groups via System Preferences -> Users & Groups and delete PostgreSQL user
open /Library/PostgreSQL/9.1/uninstall-postgresql.app
sudo rm -rf /Library/PostgreSQL sudo rm /etc/postgres-reg.iniOpen User & Groups via System Preferences -> Users & Groups and delete PostgreSQL user
Tuesday, May 27, 2014
OS X Open Terminal at current Folder shortcut
Open System Preferences -> Keyboard -> Shortcuts
Under Files and Folders, check New Terminal at Folder or New Terminal Tab at Folder
While at a folder, right-click, then Services, then New Terminal
Under Files and Folders, check New Terminal at Folder or New Terminal Tab at Folder
While at a folder, right-click, then Services, then New Terminal
Sunday, May 25, 2014
Subscribe to:
Posts (Atom)



















