Showing posts with label UNIX. Show all posts
Showing posts with label UNIX. Show all posts

Friday, August 23, 2013

Starting MySQL on Mac OS X 10.8.4

I used to start MySQL 5.5 (MacPorts) on my Mac using the following command:
$ sudo /opt/local/share/mysql55/support-files/mysql.server start

Yesterday, I found out that this was not working anymore. The error message I was getting was the following:

$ /opt/local/share/mysql55/support-files/mysql.server start
Starting MySQL
. ERROR! The server quit without updating PID file (/opt/local/var/db/mysql55/monastery.local.pid).

It turns out that the new way of starting MySQL is the following:
$ sudo port load mysql56-server

PS. During the process, I have also updated MySQL to version 5.6.

Tuesday, August 13, 2013

Bad Wifi days are over :)


Thursday, August 1, 2013

Bad WiFi connection


Sunday, June 9, 2013

Software Update tool


$ sudo softwareupdate -l
Password:
Software Update Tool
Copyright 2002-2010 Apple

No new software available.

type man softwareupdate for more information.

Saturday, June 8, 2013

X Window System


Wednesday, June 5, 2013

My two articles @ MacTech May 2013

Article 1 title: An introduction to sar
Monitoring your Mac’s performance using sar.

Article 2 title: Using email to execute a command
How to make email work for you.

Tuesday, February 12, 2013

My February 2013 MacTech article

Title: An Introduction to Cacti

Tuesday, December 4, 2012

Heavy load!


top - 15:00:28 up 74 days, 21:20,  1 user,  load average: 40.33, 36.73, 22.28
Tasks: 175 total,   1 running, 174 sleeping,   0 stopped,   0 zombie

Monday, September 3, 2012

Changing bash shell history size

In order to change the bash shell history size and history file size, I added the following two lines inside .bash_profile file.


HISTSIZE=10000
HISTFILESIZE=10000

Monday, August 13, 2012

CDE screen


Saturday, July 14, 2012

SetFile command

If for some reason you cannot see a HD as an icon on your Desktop, run the following command (replace the <Drive Name> with the actual name):


$ SetFile -a v /Volumes/<Drive Name>/

Wednesday, July 4, 2012

A simple dd test (SSD vs HD)


This is a simple and not scientific benchmark, using the dd UNIX command, that will give you an idea of how faster an SSD than a usual hard disk is.

1TB SATA hard disk
$ dd if=/dev/zero of=bigfile1 bs=10000000 count=512
512+0 records in
512+0 records out
5120000000 bytes transferred in 59.423885 secs (86160640 bytes/sec)

256Gb SATA SSD
$ dd if=/dev/zero of=bigfile1 bs=10000000 count=512
512+0 records in
512+0 records out
5120000000 bytes transferred in 22.594125 secs (226607583 bytes/sec)

The results are impressive!

Tuesday, May 29, 2012

Friday, May 18, 2012

My MacTech April 2012 articles!

1st article
Title: An introduction to WordPress


2nd article
Title: The find UNIX command

Monday, April 2, 2012

Find Red Hat version from CLI

$ cat /etc/redhat-release

Tuesday, December 27, 2011

man hier

Type man hier on your terminal and you will get information about the layout of the filesystems.

Thursday, October 13, 2011

R.I.P. Dennis Ritchie


Friday, November 5, 2010

How to restart a service in Snow Leopard

The following commands should be executed from the UNIX prompt (as root!)


$ sudo launchctl unload /System/Library/LaunchDaemons/com.apple.syslogd.plist
$ sudo launchctl load /System/Library/LaunchDaemons/com.apple.syslogd.plist

Thursday, March 11, 2010

Clearing the DNS cache

$ dscacheutil -flushcache


You will not have to do it regularly but sometimes it is needed.

Wednesday, January 20, 2010

My 2010 Wish-List



  • Buy a CISCO router for home
  • Write 2 successful apps for the (Apple) App store
  • Find a UNIX Sys Admin job
  • Find a job as an iPhone (or maybe iTablet...) developer