Skip to main content

Resizing a .dmg image - os x

1. Mount the image
2. Delete the files you don't need.
3. Dismount image.
4. From the terminal : hdiutil resize -size xx{m or g} /PATH/TO/DISKIMAGE.dmg

xx= the size you want the image to be.

Use either M for MG or G for GB

i.e. hdiutil resize -size 25g ~/Desktop/mystuff.dmg

Comments

Popular posts from this blog

How to install kismet on MacBook, Mac OS X 10.5.6 Leopard How to installed and run kismet. cd /tmp svn co https://www.kismetwireless.net/code/svn/trunk kismet-devel cd kismet-devel ./configure sudo make install Edit kismet config file like: sudo vim /opt/local/etc/kismet.conf and change the following two lines: a.) suiduser=Your_Username_For_Mac b.) source=darwin,en1,airport_extreme Run kismet and enjoy! sudo kismet

Cisco Command "Auto secure"

Cisco Command "Auto secure" In today's article, I'm going to quickly inform you about the Privileged EXEC command named "auto secure". Network administrators (like you) use the "auto secure" command to secure the management and forwarding planes of a router. Another way of saying it is, CCNAs use this command to secure a router by disabling common IP services which can be exploited by attackers to initiate network attacks. When the command is typed on a router, it takes the user (ccna) through a command line-interface (CLI) semi-interactive session (which is also known as the AutoSecure dialogue). Below is the command's syntax: auto secure [management | forwarding] [no-interact | full] [ntp | login | ssh | firewall | tcp-intercept] As you can see, the command can use several "optional" keywords: management - This (optional) keyword is used to only secure the management plane of a router. forwarding - This (optional) keyword is used to

man2pdf Convert unix manpage to PDF

#!/bin/bash ############################################################################# # # # man2pdf # # a simple bash script to convert a man page to pdf # # # # Copyright (C) 2003-2004 Trond Aasan # # # # This program is free software; you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # # the Free Software Foundation; either version 2 of the License, or # # (at your option) any later version. # # # # This program is distributed in the hope that it wi