OSX – Mac

MacOS

By default, anytime you take a screen capture in Mac OS X, the resulting screenshot file will save to the current users desktop. This makes retrieval very easy and is very appropriate for the average Mac user, but for those who take a lot of screen shots in OS X, they may find their desktop to be cluttered with the screenshot files rather quickly. An excellent solution is to adjust the default location of where Mac OS X saves captured screen shot files to another location in the file system Read more...
Screen is the best software used for full-screen window manager that multiplexes a physical terminal between several processes, typically interactive shells using only one SSH sesion or only one console. Getting in Escape key All screen commands are prefixed by an escape key, by default C-a (that's Control-a, sometimes written ^a). To send a literal C-a to the programs in screen, use C-a a. This is useful when when working with screen within screen. For example C-a a n will move screen to a Read more...
When connecting over ssh to a server with Putty, we can easily export the DISPLAY and run any X-Window application after enable the X11 in the PuTTY configuration. However, if you change to another account  any X-Window application will fail as we have to share the MIT-MAGIC Cookies from the first user connected, here is how we can do it. user1@server3$ echo $DISPLAY localhost:10.0 user1@server3$ xauth list server3/unix:10 MIT-MAGIC-COOKIE-1 6586998224e70480f72d195f55191dc4 server3/unix:11 Read more...
We can become in root or run any commands with sudo (in this case, we option to become in root) First, backup the .kext for BlockStorage iguanas-MacBook:~ root# cp /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage.original Run the following perl script in the IOAHCIBlockStorage iguanas-MacBook:~ root#  Read more...
See the list of interfaces on which tcpdump can listen: tcpdump -D Listen on interface eth0: tcpdump -i eth0 Listen on any available interface (cannot be done in promiscuous mode. Requires Linux kernel 2.2 or greater): tcpdump -i any Be verbose while capturing packets: tcpdump -v Be more verbose while capturing packets: tcpdump -vv Be very verbose while capturing packets: tcpdump -vvv Be verbose and print the data of each packet in both hex and ASCII, excluding the link level Read more...