Technical professionals. Trusted advisors. Certified expertise.

HCS Blog

Problem-solving by Apple Certified Professionals

As Senior System Engineer at HCS, Keith wears many hats.  He is responsible for a myriad of duties at HCS.  From project management to taking out the trash, Keith is always willing to do the job at hand and never afraid to get his hands dirty.

Keith has the drive and ability to take a project full circle. He is obsessive when it comes to documentation and communication.  He is a self-starter with the ability to think fast on his feet.

Keith has over 20 years in the IT Industry specializing in Apple Technology.  He’s been a member of the HCS family since 2008.

Jun
22

How to start and stop the PresSTORE P5 backup server from the command line.

sudo /usr/local/aw/start-server


sudo /usr/local/aw/stop-server

0
  6004 Hits
Jun
22

Using the sed command to find and replace and entire line of text in a document.

This command will replace the line that contains “This is a test” with “Is it Friday yet?” in the test.txt document.




sed -i "" '/This is a test/ c\

Is it Friday yet?\

' test.txt


Here is a breakdown of the above command.

The -i will edit the file in place.

The "" will get around not having an extension after the -i as required by os x.  

c\  is the change flag.  The above command is separated on multiple lines to make the c\ flag work properly.  If you try to enter the command on one line, it will fail because the c\ has issues with escaping the backslash.

You could also use sed -i.bak which would create a backup of the file before it’s edited instead of the "".

The remainder of the command:  replace the line that contains “This is a test” with “Is it Friday yet?” in the test.txt document.


0
  4384 Hits
Jun
22

Using the sed command to find and replace words in a file

This is a sed command to replace the word false with true in the updates.xml document.

sed -i "" 's/false/true/' /Users/work/Desktop/updates.xml 

Continue reading
0
  4654 Hits
Jun
22

Create a payload free package using pkgbuild

Step 1.  Create a folder on the desktop called scripts.

Step 2.  Create a script named “postinstall” and put it in the scripts folder on the Desktop.  

NOTE:  do not add .sh to your script name or it will fail.  Best practice is to use a plain text editor when creating scripts.  IE.. TextWrangler or pico in the CLI.

Step 3.  Run the following command.  Enter your administrator password when prompted.

sudo pkgbuild --identifier com.mypackage.com --nopayload --scripts /Users/work/Desktop/scripts /Users/work/Desktop/MyPayFree.pkg

Step 4.  The package will be created and saved to your desktop.

0
  5559 Hits
Jun
15

How to disable VirtualBox auto updates from the command line

It requires a special VBoxManage command.  This is the support method.  Run the command below.

 

Continue reading
0
  5696 Hits
Jun
07

How to resize a read only dmg file

There are times when you come across a dmg image that has a larger disk geometry size than needed.  This can cause issues if you try to restore a monolithic disk image to a volume smaller than your total dmg size.  This is a common issue if Disk Utility was used to capture an Image of a Macintosh HD. To fix this issue, follow the commands below.

 

Continue reading
0
  7923 Hits

Locations


New York

Connecticut
Florida
Louisiana
Chicago

Corporate Headquarters
New York

80 Orville Drive Suite 100
Bohemia, NY 11716
Tel: (866) 518-9672
This email address is being protected from spambots. You need JavaScript enabled to view it.

Connecticut

65 High Ridge Road #510
Stamford, CT 06905
Tel: (866) 518-9672
This email address is being protected from spambots. You need JavaScript enabled to view it.

Florida

3321 SW 194th Terrace
Miramar, FL 33029
Tel: (866) 518-9672
This email address is being protected from spambots. You need JavaScript enabled to view it.

Louisiana

218 Barksdale Drive
Broussard LA 70518
This email address is being protected from spambots. You need JavaScript enabled to view it.

Chicago

4 Knollwood Place
Joliet, IL 60433
This email address is being protected from spambots. You need JavaScript enabled to view it.

London

10 Grosvenor Court
Rayners Road
London SW15 2AX UK

Stay Connected

© Copyright 2023, HCS Technology Group. All Rights Reserved.