Archivio per la categoria ‘IT’

disable HFS+ journaling on Leopard to use disks read/write with linux

Giugno 15, 2009

this article saved my life…
http://castyour.net/node/40

the key was this command:
yourcomputer:~ youruser$ sudo diskutil disableJournal force /dev/disk1s10

thanks to Las Ruinas De Gringobamba

Tether your iPhone (use it as a modem)

Aprile 6, 2009

I was almost convinced in buying PdaNet for iPhone (about 23€…) when i came across this post on http://digg.com/apple/The_Best_Way_to_Tether_Your_iPhone_to_Your_Laptop_for_Free

Here user Bots says that until version 1.33 PdaNet was free.

So, if you want version 1.33, do a google search for “modmyi repo.” Click the first link you see (something like http://modmyi.com/repo), then click “debs2″ (or 2debs, or whatever). Scroll down until you see pdanet1.33.deb, right click it and save to your computer.

Then, scp that into your phone and drop pdanet1.33.deb into /var/root/.

Now you’ve got to install pdnnet 1.33 in one of the following ways:

  • if your phone is connected wifi, ssh into you phone with user root and defautl password “alpine” and type in the command dpkg -i /var/root/pdanet1.33.deb
  • Using MobileTerminal (get if off Cydia if you have to) type in “su,” then type in your password, which is “alpine” by default. Then type in the command dpkg -i /var/root/pdanet1.33.deb

Wait for it to get done.

Then restart/respring your phone.

How To Configure QoS To Conform To Standard Marking Schemes

Ottobre 14, 2008

I was looking for more informations about QoS traffic marks, in particular about EF mark, trying to prioritize voip traffic …and i’ve found this doc very clear and “efficient” in explaining QoS tecniques.

This How To Note describes also how to deploy a QoS solution across an entire network.

I suggest reading it all !

http://www.alliedtelesyn.com/media/datasheets/howto/config_qos_standard_schemes.pdf

PS: EF means Expedited Forwarding. This traffic is given highest priority. Packets being given this treatment are prioritized ahead of all other types of data.

samba force “user must change password at next logon”

Settembre 17, 2008

After searching samba mailing lists and web for ways to do this it seems that

pdbedit --pwd-must-change-time=(0 or current time) 'username'

should do the trick (the man file for pdbedit or the samba manual does not mention how to do this).

But finally

net sam set pwdmustchangenow yes

worked for me!

thanks to Chris Smith

shell program for sending SMTP mail from a bash command line

Luglio 16, 2008

SendEmail

SendEmail is a lightweight, command line SMTP email client. If you have the need to send email from a command line, this free program is perfect: simple to use and feature rich. It was designed to be used in bash scripts, batch files, Perl programs and web sites, but is quite adaptable and will likely meet your requirements. SendEmail is written in Perl and is unique in that it requires NO MODULES. It has an intuitive and flexible set of command-line options, making it very easy to learn and use.
[Supported Platforms: Linux, BSD, OS X, Windows 98, Windows NT, Windows 2000, & Windows XP]

You find everything about it at

http://caspian.dotconf.net/menu/Software/SendEmail/

Thanks Brandon for great work!

lost ssh access to cisco pix

Luglio 8, 2008

sometimes it happens that tring to connect via ssh to a pix firewall you receive this error:

> ssh_exchange_identification: Connection closed by remote host

i found on internet this solution that worked for me; the trick is regenerating the RSA key of the pix with these commands:

ca zeroize rsa
ca generate rsa key 1024
ca save all

On new ASA appliance, like ASA 5505, the new commands are:

crypto key zeroize rsa
crypto key generate rsa general-keys
ca save all