Recently in Technology Category

iPhone iPhoto Lost Pictures

| 0 Comments

During a iPhoto import from my iPhone, my iPhoto froze. The only thing I could do was execute a force quit. Unfortunately half the photos originally on my iPhone were deleted.

To recover those photos from my iPhone, I launched the terminal and went to the ~/Pictures/iPhoto Library/Data/2009. Within the directory, I saw the date stamp for today and I was able to recover my photos.

cd ~/Pictures/iPhoto Library/Data/2009

Accessing Yahoo Mail via POP

| 0 Comments

Had a whole bunch of mail to pull down from Yahoo. Installed FreePops and within minutes, I downloaded all the messages.

http://www.freepops.org/en/download.shtml

Slingbox PRO-HD Slingplayer Encoding Settings

| 0 Comments

Slingbox PRO-HD Slingplayer Encoding Settings

Video bit rate:        4800
Video frames:   Full Rate
i-Frame interval:       5
Audio bit rate: 64
Video resolution:       640x480
Video smoothness:       Sharper

Sun Solaris Jumpstart Boot Server

| 0 Comments | 0 TrackBacks
Jumpstart Server:
lofiadm -a /root/solaris.iso
mount -F hsfs -o ro /dev/lofi/1 /mnt
cd /mnt/Solaris_10/Tools
./setup_install_server -b /opt/jumpstart/
cd  /opt/jumpstart/Solaris_10/Tools
./add_install_client -i 10.0.0.10 -e xx:xx:xx:xx:xx:xx hostname arch
Jumpstart Client:
ok boot net - install

SudoScript on Solaris 10

| 0 Comments | 0 TrackBacks

Sudoscript is a pair of Perl scripts (sudoscriptd/sudoshell) that provide an audited shell using sudo. SudoScript by Howard Owen can be found at http://www.egbok.com/sudoscript .

Here are my notes to configure SudoScript for Solaris 10.

1 - Update the setlogsock from "unix" to "stream" in sudoscriptd


#setlogsock 'unix';
setlogsock 'stream';

2 - /etc/shells does not exist on Solaris 10, create a /etc/shells file with the appropriate shells defined


/bin/sh
/bin/csh
/bin/ksh
/bin/bash

3 - Define the location of your sudo binary in Sudoscript.pm


#$self->{SUDO}="sudo";
$self->{SUDO}="/opt/sfw/bin/sudo";

Allow VPN PPTP Traffic through Cisco ASA

| 0 Comments | 0 TrackBacks

To allow VPN PPTP traffic through your Cisco ASA, use inspect pptp.

asa# conf t
asa(config)# policy-map global_policy
asa(config-pmap)#  class inspection_default
asa(config-pmap-c)# inspect pptp 
asa(config-pmap-c)# exit
asa(config-pmap)# exit
asa(config)# exit

Perl LDAP Search Filter Methods

| 0 Comments | 0 TrackBacks

Here are some examples on how to use the Net::LDAP filter.

Method 1 - Search for both person & mail:


(& (objectClass=person) (objectClass=mail))
filter => "(&
(objectclass=person)
(objectclass=mail)
)",

Method 2 - Search for either (or) person or mail:


filter => "(|
(objectclass=person)
(objectclass=mail)
)",

Enabling traceroute on Cisco ASA

| 0 Comments | 0 TrackBacks

To allow any of the devices inside your network to perform a traceroute on the Internet. You'll need to enable setup a access-list which allows icmp echo-reply & time-exceeded.


access-list outside_to_inside permit icmp any any echo-reply
access-list outside_to_inside permit icmp any any time-exceeded
access-group outside_to_inside in interface outside


user@host ~ $ traceroute -I www.google.com
traceroute: Warning: www.google.com has multiple addresses; using 64.233.169.99
traceroute to www.l.google.com (64.233.169.99), 64 hops max, 60 byte packets
<removed some hops here on purpose>
9 216.239.48.108 (216.239.48.108) 14.780 ms 19.313 ms 16.400 ms
10 64.233.175.111 (64.233.175.111) 16.388 ms 64.233.175.109 (64.233.175.109) 18.220 ms 17.279 ms
11 216.239.49.149 (216.239.49.149) 16.927 ms 216.239.49.145 (216.239.49.145) 18.281 ms 216.239.49.149 (216.239.49.149) 19.312 ms
12 yo-in-f99.google.com (64.233.169.99) 15.279 ms 15.314 ms 20.127 ms

Note: Use -I to use ICMP ECHO instead of UDP. You can also use -n to avoid dns lookups for each hop.


Sun ILOM Hostname & Network Configuration

| 0 Comments | 0 TrackBacks
Below is an example of configuring the Sun T5220 ILOM Hostname & Network. Once you have configured the network, you can then ssh to the console on the Sun T5220. There is an example below. In summary:
  1. Console in via serial, my recommendation is you run `tip hardwire` from another box so you do not need to attach a machine
  2. Login as root
  3. Password is changeme
  4. Change the hostname from its default hostname of SUNSPxxxxxxxx
  5. Configure the IP address
$ tip hardwire
connected

SUNSPxxxxxxxxxx login: root
Password:
Waiting for daemons to initialize...

Daemons ready

Sun(TM) Integrated Lights Out Manager

Version 2.0.4.20.c

Copyright 2007 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.

Warning: password is set to factory default.

-> cd /SP
/SP

-> set hostname=console
Set 'hostname' to 'console'

-> cd /SP/network
/SP/network

-> set pendingipdiscovery=static
Set 'pendingipdiscovery' to 'static'

-> set pendingipaddress=10.10.10.50
Set 'pendingipaddress' to '10.10.10.50'

-> set pendingipnetmask=255.255.255.0
Set 'pendingipnetmask' to '255.255.255.0'

-> set pendingipgateway=10.10.10.1
Set 'pendingipgateway' to '10.10.10.1'

-> set commitpending=true
Set 'commitpending' to 'true'

-> set state=enabled
Set 'state' to 'enabled'

Simple Traffic Analysis on Cisco ASA

| 0 Comments | 0 TrackBacks

You can use the capture command on the Cisco ASA for some simple traffic analysis.

access-list capture_ip_traffic permit ip any any
capture capture_ip_traffic access-list capture_ip_traffic interface outside
show capture capture_ip_traffic

You can also copy the pcap file to a system and use Wireshark to analyze the traffic.