Posts Tagged mac
November 10, 2008 at 4:41 am
· Filed under Uncategorized ·Tagged apple, application, applications, cli, commandline, dmg, hdiutil, installer, mac, macos, osx, pkg, shell, volume, volumes
To use a dmg disk image you would use:
hdiutil mount thefile.dmg
You then have a /Volumes/The\ Application.
In that directory you would usually either have an Application.app or a Application.pkg directory.
- If it’s an .app file, just copy the files to your
/Applications/ directory:
sudo cp /Volumes/The\ Application/Application.app /Applications/
- f it’s a .pkg file, run:
sudo installer -package Application.pkg -target /Volumes/Mac\ OS
That’s it !
Permalink
October 6, 2008 at 4:12 pm
· Filed under Uncategorized ·Tagged icmp, linux, mac, network, osx, ping, scan, script, scripting, scripts, shell, subnet, system
Today I logged in a machine I don’t want to install anything on it, but I wanted to find a machine in its network.
I came up with the little shell script that scans the subnet:
CURR=1
SUBNET="192.168.0"
while [ $CURR -lt 255 ] ; do
ping -c1 -t1 $SUBNET.$CURR 2>&1 >/dev/null
if [ "$?" -eq "0" ]; then
echo "$SUBNET.$CURR"
fi
let CURR=$CURR+1
done
This script is suboptimal but it does the stuff: It uses ping with a timeout of 1 sec, so If no machine is up, the script takes around 255 seconds to scan the subnet, it doesn’t list the machines that doesn’t reply to ping and so on … but as I said it , it does the stuff.
I tested this script in Linux and OSX.
Permalink
September 21, 2008 at 3:03 pm
· Filed under Uncategorized ·Tagged apple, browser, chrome, chromium, codewevers, crossover, google, linux, mac, osx, software, ubuntu, web
Codeweavers, the company which is famous for releasing Crossover (a kind of windows emulator for linux and osx, based on the famous wine project) have released crossover chromium which is a package that contains just enough of crossover and a build of chromium to be able to run it. There’s an OSX and a Linux build. Chromium is google’s project which is the base of the chrome browser. Crossover released the packages 11 days after google chrome got out, this is a proof of concept, wine and crossover have became mature, codeweavers are reactive, but becarefull, it’s not advised to use crossover chromium as day to day browser for now (anyway, I think I’ll try to do it !).
Get the OSX package here, and ubuntu 32 bit pacakge here, and Have Fun !
Update: on osx, my chromium keeps crashing, I think this might because of my firewall, on linux, the windowing is quite slow but for me it works.
Permalink
July 29, 2008 at 9:15 pm
· Filed under Uncategorized ·Tagged apple, audio, codec, flac, free, itunes, lossless, mac, osx
Permalink