MarcoMC Tech, Cuisine, Traveling…my hobbies, my life

March 8, 2011

How-To create an Apple ID and purchase software on the Mac App Store (optionally with use of a GiftCard)

Filed under: Apple & Mac,How-To,IT — Tags: , , , , — marcomc @ 15:55

Purchasing software on the Mac App Store is meant to be a straigt-forward process, and it is! Apple’s Magic?!
Said so it’s true that the App Store licensing change the rules we are used to follow (supposedly) .
If facts now we can buy an application on the App Store and install it in as many Macs as we own without extra charge… but what if we are running a company? ..read to know!

Basic Concepts

  1. The App Store purchases are tight to an Apple ID and only one!
  2. Every Apple ID is tight to a specific CreditCard/Peyment Method
    1. By The Way we can create multiple accounts using the same credit card.
    2. We can top-up/recharg the credit on an Apple ID with single or multiple iTunes GiftCards instead of any other peyment method or credit card.
  3. The App Store license allows the owner of the account to install as many copies of the purchased software on as many computers he owns on his EXCLUSIVE/FAMILIY use (it’s not imposed the limit of 5 devices unlike the iOS App Store)

Best practice to avoid liceses issues: HOW-TO STAY LEGAL

  1. For a company’s purposes it’s recomended (I would say nmecesary) to create an Apple ID for each user (employee) that need to buy softwatre from the App Store.
  2. The Apple IDs created must NOT be too tight to the users to avoid problems when an employee would depart (leave the company).
  3. It may be more practical to associate an Apple ID to the machine in use by a user that need the software:
    1. if the user leaves the company we just need to change the password and few personal information associated with the Apple ID.
    2. if the user change computer can login to the new computer and download again the software previously purchased, and remove the copies of the software from the old computer.
    3. if the user has more then one computer he can legally use the same Apple ID on all the computers he uses as far as he is the only user of those computers.
  4. The Apple ID will usually match the email address used to register it, so I suggest to use impersonal emails such [email protected] and those email addresses will be aliases (nick names) for a unique email address that will receive the iTunes invoices issued from the App Store.
  5. When a user needs to buy some applications it’s enough to top-up his Apple ID with an iTunes GiftCard without need to use a Credit Card.
    In case of a domestic use this is a good practice if we want your son/daughter to buy some apps/games without giving them your credit card details, you will feel safe that they won’t drain your account
    .The GitCard can be bought by amny means like via internet from or from the Apple Store user when needed to top-up his account.

Create an Apple ID

  1. Make sure that an appropriate nickname/alias email address, such [email protected], exists and points to [email protected] .
  2. Follow this linkhttps://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/117/wa/createAppleId?wosid=RHjigjcIiKYNMaFbf3xj30&localang=en_UKto create a new Apple ID.
  3. Use the nickname/alias email address ([email protected]) as ‘Apple ID’.
  4. You may consider to use the same password for all the created Apple IDs only if NO Credit Card will be associated to it, because the risk due to a stolen password would be limited to drain all the iTunes GiftCard (leftover) credit and nothing more.
  5. I suggest to use the user’s real full name but a fake birthday date and for the ‘primary address’ to provide the company address.
  6. Confirm the information to create the Apple ID

Add Credit to the Apple ID (Redeem a GiftCard)

If you decided not to use a credit card:

  1. Buy, by any mean, an iTunes GiftCard (aka voucher).
  2. Open the ‘App Store’ application on the Mac where you are going to buy and install the desidered software.
  3. From the application’s menu choose ‘Store -> View My Account‘ and SignIn with the newly created Apple ID credential that will “stick” with this computer.
  4. Edit the ‘Payment Information’.
  5. If you decided to go for iTunes GiftCards (instead of Credit Cards):
    1. Choose ‘NONE’ as payment method and then click on ‘To redeem a code, click here‘.
    2. Enter the Gift Card or other iTunes code to add credit to the Apple ID

Purchase Software in the App Store

  1. Make sure you are signed in with the right Apple ID credential.
  2. Locate the software you want to buy.
  3. Click on the price label below the App’s name.
  4. Provide the Apple ID’s password if required.

The app will be downloaded and installed directly into the Application folder of the Mac.

February 25, 2011

How-To configure unattended clients with TeamViewer for Mac (simulating TeamViewer Host)

Filed under: Apple & Mac,How-To,Troubleshooting — Tags: , , — marcomc @ 07:00

09/09/2011 – UPDATE
The TeamViewer team has recently release a new host version for Mac OS X
TeamViewer for Unattended Servers: TeamViewer Host

Despite the name it can be used in any Mac OS X installation (clients and servers)

https://www.teamviewer.com/download/TeamViewerHost.dmg

https://www.teamviewer.com/en/download/index.aspx

Original post:

Because there is not TeamViewer Host for Mac yet, I’ve been chatting with the support team at TeamViewer GmbH about an official workaround to create a TeamViewer unattended client for Mac OS X, this is what they advised to do:

  1. You would have to predefine a permanent password on TeamViewer for Mac.
  2. A standard user should be logged in.
  3. TeamViewer should be part of the auto starting programs.
  4. The Mac should not go in sleep mode.

The main glitch of this solution is that if the user logs out returning to the Login screen then the TeamViewer software is quitted and the connection is lost.

An additional workaround that would help us maintaing the connection to the Mac also when the main user is logged out is:

  1. Create an ‘autologin’ user
  2. Install and configure TeamViewer as suggested in the previous steps to be part auto starting programs for the ‘autologon’ user.
  3. Immediately auto-lock the account and return to the Login screen using Lock My Mac or MacLoc and configuring one of then as part of auto starting programs.

At this point, with a bit longer system initialization, the user of the Mac will behave like usual while an ‘hidden’ account is running TeamViewer for us.

The catchof this solution is that when the user will want to shutdown the system it will be propted with an alert message notifying him that other users are logged in the system and that if he wants to continue with the shutdown process all open documents and data will be lost. MAybe we can find a way to disable this alert…. suggestions are welcome 🙂

February 21, 2011

How-To install Mac OS X Snow Leopard 10.6.6 on the Asus Eee PC 1005HA Netbook

Filed under: Apple & Mac,How-To — Tags: , , , , — marcomc @ 04:24

How-To Install or Update Mac OS X Snow Leopard 10.6.7 on the Asus Eee PC 1005HA Netbook is now available:
https://marcomc.com/index.php/2011/03/how-to-install-or-update-mac-os-x-snow-leopard-10-6-7-on-the-asus-1005ha-netbook/

This is a step-by-step procedure to install Mac OS X Snow Leopard 10.6.6 on the Asus Eee PC 1005HA Netbook having everything working 100%.

Resources

Prerequisites

For British users only

Installer preparation

  1. Use ‘Disk Utility’ to dump the  Mac OS X 10.6.0 Installation DVD on the 8GB USB stick.
  2. Run the MobUSB package and choose as intall destionation the newly created partition on the USB stick (that will probably bring the name of “Mac OS X Snow Leopard 10.6 Retail”, but the name is not importat).
    DO NOT INSTALL IT ON YOUR SYSTEM’S PARTITION!!
  3. Copy the file ‘SnowLeopardAsus.zip’ and ‘SleepEnabler.kext’ into the root of the USB stick

ModUSB install the Chamaleon Boot Loader on the USB stick letting any PC to detect it as a bootable drive, also and most importantly it installs the required kext modules (drivers) to support most of the hardware of your PC/Netbook that otherwise would not be officilay supported by the Apple’s installation disc.
ModUSB differently from myHack tool autodect the hardware you PC has installed and choose the appropriate kext to activate or deactivate.

System Installation

Insert the USB stick on a USB port of your PC/Netbook and force the boot from USB instead of harddrive. On the Asus EeePC 1005HA you need to hold de ESC button during the BIOS initialization.
Now you can perform a standard Mac OS X installation.
during the installation process you need to run the Disk Utility form the Utilities manu to create a partition for Mac OS X Extended (with Journaling).
If you want to keep you Windows installation you need to perform additional modification of you partition before starting the installation process (this will be explained in a separate tutorial).
Ad the end of the installation process you will be returned an error saying that was not possible to complete the installation, THIS IS NORMAL, and it’s due to the fact that the installation system wasn’t capable to install the native Apple’s EFI boot loader, thanks to ModUSB previosly installed on the USB stick this installation will include by default the automatically chosen kext modules and the Chameleon boot loader.
Mind that if we would have use the myHack tool kext and boot loader would have not been installed on the new system and we should have booted the new installed system using as boot loader the USB stick.

First Boot

After the first system bot you’ll notice that everything is working with a couple of Glitches:

  1. sound is noisy/buzzing
  2. you cannot choose a screen resolution other than 800×600 (kext is loaded)
  3. Wi-Fi card is not detected, (kext is loaded).
  4. MMC card reader may not work.
  5. The Keyboard’s Fn keys are not working
  6. Hibernaton/sleep activate when you close the netbook lead but the PC never awakes

Make things working

  1. Install fixkext utility, everytime we add or remove kext form the kext libraries we have to regenerate the mkext cache file using fixkext utility that also takes care that all the kext modules have the right permissions and ownership.
  2. Copy the ‘SleepEnabler.kext’ file and decompress the ‘SnowLeopardAsus.zip’ into the desktop of the newly installed system.
  3. Install Extension for unrecognized devices:
    1. Copy ‘~/Desktop/SnowLeopardAsus/Extra/AsusHotkeys.kext’ to ‘/Extra/Extensions/’ folder.
      This makes working the Keyboard’s Fn keys such the screen brightness and the volume adjustment.
    2. Copy ‘~/Desktop/SnowLeopardAsus/Extra/IO80211Family.kext’ to ‘/Extra/Extensions/’ folder.
      This makes the system to recognize and install the Wi-Fi card.
    3. Copy ‘~/Desktop/SnowLeopardAsus/Extra/IOSDHCIBlockDevice.kext’ to ‘/Extra/Extensions/’ folder.
      This makes the system to recognize and install the MMC card reader.
  4. Backup the Extensions for misbehaving devices:
    1. Create a folder named ‘Old Extensions’ on your Desktop.
    2. Copy ‘/System/Library/Extensions/VoodooHDA.kext’ to ‘~/Desktop/Old Extensions/’.
    3. Copy ‘/System/Library/Extensions/AppleIntelGMA950.kext’ to ‘~/Desktop/Old Extensions/’.
    4. Copy ‘/System/Library/Extensions/AppleIntelIntegratedFramebuffer.kext’ to ‘~/Desktop/Old Extensions/’.
  5. Substitute the Extensions for the misbehaving devices:
    1. Copy ‘SleepEnabler.kext’ to ‘/System/Library/Extensions/’.
      This fix the hibernation/sleep feature.
    2. Copy ‘~/Desktop/SnowLeopardAsus/Kext/AppleIntelGMA950.kext’ to ‘/System/Library/Extensions/’.
    3. Copy ‘~/Desktop/SnowLeopardAsus/Kext/AppleIntelIntegratedFramebuffer.kext’ to ‘/System/Library/Extensions/’.
      This fixes the video card and add the option to choose 1024×600 resolution.
    4. Copy ‘~/Desktop/SnowLeopardAsus/Kext/VoodooHDA.kext’ to ‘/System/Library/Extensions/’.
    5. Double click on ‘~/Desktop/SnowLeopardAsus/VoodooHDA.prePane’ and confirm to ‘Replace’ the preference pane.
      This fixes the audio card issues.
  6. Now, most important, fire the command ‘fixkext’ with root privileges or using sudo:
    $ sudo fixkext

    This will make sure that all the copies Extension will have the right permissions and ownership and will recreate the kext’s cache.
    The kernel can now load the extensions at the next boot

  7. Restart the system and everything should work.

Now you have a fully functional Mac OS X Snow Leopard 10.6.0 running on you Asus EeePC 1005AH.

What still doesn’t work

When awakening form hibernate/sleep mode the USB disks (if any attached) will be not ejected properly (will persist also after the upgrade to Mac OS X Snow Leopard 10.6.6).

 

Now also available:

How-To Install or Update Mac OS X Snow Leopard 10.6.7 on the Asus Eee PC 1005HA Netbook

Upgrade to Mac OS X Snow Leopard 10.6.6

  1. Copy MacOSXUpdCombo10.6.6.dmg in the USB stick.
  2. Uncompress legacy_kernel-Mac_OS_X_10.6.6.tgz and to legacy_kernel-Mac_OS_X_10.6.6.pkg and copy it on the USB stick.
  3. Insert the USB Stick on the Netbook then mount and run the MacOSXUpdCombo10.6.6.dmg.
  4. When the installation is finished it will ask to restart,
    DO NOT RESTART THE SYSTEM YET!!
  5. Install ‘legacy_kernel-Mac_OS_X_10.6.6.pkg’.
    This install an older version of the kernel that is still compatible with the unficcial extensions we previously installed before the upgrade.
  6. Again, substitute the Extensions for the misbehaving devices:
    1. Copy ‘SleepEnabler.kext’ to ‘/System/Library/Extensions/’.
      This fix the hibernation/sleep feature.
    2. Copy ‘~/Desktop/SnowLeopardAsus/Kext/AppleIntelGMA950.kext’ to ‘/System/Library/Extensions/’.
    1. Copy ‘~/Desktop/SnowLeopardAsus/Kext/AppleIntelIntegratedFramebuffer.kext’ to ‘/System/Library/Extensions/’.
      This fixes the video card and add the option to choose 1024×600 resolution.
  7. Now, most important, fire the command ‘fixkext’ with root privileges or using sudo:
    $ sudo fixkext.
  8. No you can reboot the system

What still doesn’t work

— as reported by Eugene —
If you’re getting a kernel panic it is likely due to sleepenabler.kext you need to get one compatible with 10.6.6 from www.kexts.com

Wireless works fine on routers working only in “g” mode but not for mixed “g/n” or even “n”.
A solution is to replace the wireless card:

  1. The chip that you want to look for is Broadcom BCM94322 Half Mini PCIe card. It is also called Dell 1510 or DW1510, there are alse HP variants as well. This is the same chipset as Apple’s Airport Express card in MacBook Pro.
  2. Here is a you tube video: https://youtu.be/yehHh0GmnU0 for the hardware installation.
  3. You need the original IOFamily80211.kext (the one we installed through this guide is not the stock apple one, but modified for the 1005HA card).
  4. Download the patch and run through the terminal following the post here https://www.insanelymac.com/forum/index.php?showtopic=51725.
  5. Optional step is rebranding the Broadcom card so that computer thinks its actually Apple Airport Extreme and not a 3rd party card.
    This gives you speeds up to 300Mbps (the way “n” is intended)

Last Adjustments

After rebooting the system will work exactly as before without the need to install new extensions, anyway you may experience that your microphone is not ‘listening’ so what you need to do is to enter the System Preferences and click on the VoodooHDA pane then:

  1. Select ‘Microphone (fixed)’ from the dropdown menu
  2. Click on the round button that will activate all the available adjustable options
  3. It may help to adjust the ‘Mic’ bar and the ‘Recording Level’ bar

Open ‘Disk Utility‘, select the System drive, run ‘Repair Permissions‘, this will fix possible permissions gone bad during the hackintosh installation 😉
Should fix problems with Javascript crashing in Safari, Chrome and Firefox.

THIS IS IT! Enjoy and please feel free to post any fix suggestion or link/post your tutorial for other models.

February 14, 2011

How-To user EtherApe graphical network monitor with Windows, Mac OS X or Linux

Filed under: How-To,IT,Linux — Tags: , , , , , — marcomc @ 17:17

EtherApe is a graphical network monitor for Unix that come with most of the GNU/Linux distrubution but is not, now is present in MacPorts for Mac OS X and but has no porting for Windows as well.

The best use of EtherApe is when it’s installed on a server (or any GNU/Linux machine) connected to the last-hop of your network to allow it to ‘sniff’ (analyze) the whole traffic getting in-and-out of your network. I suggest to put it on the  switch or hub that connects your network to the router.

Normally we monitor and manage our network from our workstation trying to access as less as possible the screen of our servers. Because EtherApe would be installed on one of our servers to visualize its output on our screen avoiding the user of screen remotization like VNC, TeamViewer or LogMeIn we need to use X11 protocol forwarding via SSH.

This solution implies that we have and X11 service running on our workstation.
If we are working on a Linux machine it can’t be more easy as we mostprobably are working on a X11 implementation.
If run Mac OS X then we ned to installe Apple’s X11, and you can find the installer inside the Installation disc.

For Windows the game is more tough because it’s not a Unix based system and a X11 server implementation is not part of the standard applications offered as part of the installation options.
Fortunately come in hand the project Xming a free implementation of X Server for Windows: https://www.straightrunning.com/XmingNotes/

The steps to visualize EtherApe on your workstation are:

  1. Install EtherApe on your GNU/Linux server:
    i.e. on a GNU/Debian server: 

    # apt-get install etherape
  2. Install X11 on your workstation:
    1. On Linux most probably you have installed x.org package
    2. On Mac OS X you install the package that you find in the installation disc
    3. for windows you need to donlaod the public release of Xming:
      https://sourceforge.net/project/downloading.php?group_id=156984&filename=Xming-6-9-0-31-setup.exe
  3. Install an SSH client on your workstation
    1. On Linux and Mac OS X it is part of the base system installtion
    2. On Windows you need to install PuTTY:
      https://the.earth.li/~sgtatham/putty/latest/x86/putty.exe
  4. Enable X11 forwarding through SSH on your server:
  5. Edit the file /etc/ssh/sshd_config and add or modify the X11 forwarding setting to
    X11Forwarding yes

    then restart the SSH service to load the new configuration

  6. On Windows only configure Xming to connect via the SSH client to your Linux server and specify to run the program xterm (or any other terminal application you have installed on your server) and specify as connecting user root or any sudoer user because EtherApe needs root privileges to turn the network card in listening mode.
  7. run EtherApe from the ssh connection just fireing the command ‘etherape’

Have fun!

January 17, 2011

How-To flush the DHCP server lease cache

Filed under: How-To,IT,Linux,Troubleshooting — Tags: , , , , — marcomc @ 17:27

On a GNU/Linux server locate the files  dhcpd.leases and dhcpd.leases~
Mine is a Debian so the location is /var/lib/dhcpd3/ .

  1. delete the temporary file dhcpd.leases~:
    $ sudo rm dhcpd.leases~
  2. flush the lease cache dhcpd.leases:

    $ sudo echo "" > dhcpd.leases

the next time the clients will request a lease they will probably obtain a different IP respect the one they had before.

January 16, 2011

How-To install and configure ntop 4 on Mac OS X

Filed under: Apple & Mac,How-To — Tags: , , , — marcomc @ 02:15

“ntop is a network probe that shows the network usage”, this is the brief description of ntop extracted from the official ‘overview’ page of www.ntop.org.

the reason why I like ntop is that it gives us a immediate projection of what is happening in our network NOW! with graphical and table representations of the current, recent and past network statistics.

When the network is stuck, you can know why, and you can know it immediately. You can then take the proper action to ditch the cause 😉

This is not all, there are amazing information you can have from this ‘small’ Italian tool…

In this post I will describe an as-easy-as-possible installation procedure to install ntop in you Mac OS X Server Snow Leopard (I didn’t test this on previous version, but as far as MacPorts is available for older version it shouldn’t be an issue to follow the same steps)

Preface

The easiest way ever would be to fire the command

$ sudo port install ntop

but as always happens the easiest way is not the best way, in facts the MacPort version of ntop is 3.3, quite old respect the current stable version 4.0.3.

Also, the installation of ntop through the port tool doesn’t install and configure it as a service but only as a tool to be run occasionally.

One of the reasons I prefer to install ntop 4.0.3 instead of 3.3 is that it gives us the option to visualise the “Hosts World Map” directly in Google Maps and the “Local Network Traffic Map” giving us an idea where our network users and services and clients are connecting to and from. Of course many other improvements are available in the latest version, but these are the coolest according to me 😀

Another reason to manually install ntop and follow the procedure below is to install and configure it as a daemon (LaunchDaemon) launched by ‘launchd’.

What will will do then, is to download, compile and install the ntop 4.0.3 directly from its official website and rely on MacPorts to install it’s compiling and installing dependencies.

Prerequisites

  1. The -latest- sources of ntop.
  2. Xcode (required by MacPorts), you can install it from Mac OS X Server Snow Leopard installation disk, ‘Optional Installs’ folder.
  3. Workgroup Manager, it’s part of the Server Admin Tools and needs to be downloaded from Apple support and installed, unless you are running Mac OS X Server.
  4. MacPorts, you can download and install it from www.macports.org.
  5. wget, to be installed via MacPorts

Preparation of system

    1. Make sure you have installed Xcode and MacPorts and Worgroup Manager.
    2. Create a ‘src’ folder where to store and compile the ntop sources:
$ mkdir ~/src
$ cd ~/src
    1. Install wget:
$ sudo port install wget
  1. Fetch the latests source archive from www.ntop.org:
    $ wget wget https://ignum.dl.sourceforge.net/project/ntop/ntop/Stable/ntop-4.0.3.tgz
    $ tar xvzf ntop-4.0.3.tgz
    $ cd ~/src/ntop-4.0.3
  2. install ntop dependencies from MacPorts needed to compile and run ntop:
    $ sudo port install depof:ntop

    this command do not istall ntop from MacPorts but only its dependencies.

    This step could take several minutes because it will download, compile and install a lot of ports (libraries).

  3. Creation of the a localuser and local groupntop via ‘Workgroup Manager’:
    1. Create the new local group ntop ntop_group
    2. Create the new local user ntop with primary group ntop ntop_user

      Leave the password blank prevent any possibility of login and also do not specify the home folder, of if you really need to specify one choose /usr/local/etc/ntop.

       

       

       

       

       

       

       

       

       

       

       

       

       

      ntop_group_assignation

      This procedure can be executed in command-line as well using the ‘dscl’ command, but you will have to assign the Primary User ID manually retrieving it from the directory service using other scripts.
      The Workgroup Manager calculate the first available User ID automatically.

  4. install mako (needed for “Host World Map” feature of ntop):
    $ sudo easy_install mako
  5. install of graphviz (contains ‘dot’, needed for “Local Network Traffic Map” feature of ntop):
    $ sudo port install graphviz

Compilation

Make sure to be in ‘~/src/ntop-4.0.3’ folder then

  1. fire the script that checks the dependencies:
    $ ./autogen.sh
  2. and proceeds with the compilation:
    $ make

Installation

 

    1. Run the script that installs ntop and its libraries in the proper places:
      $ sudo make install
    2. Create the LaunchDaemon scripts to make the service running as a daemon:
      $ sudo touch /Library/LaunchDaemons/org.ntop.ntop.plist
    3. copy and paste the following lines into org.ntop.ntop.plist
#-----BEGIN OF org.ntop.ntop.plist-----
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"https://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
   <key>KeepAlive</key>
   <dict>
      <key>NetworkState</key>
      <true/>
   </dict>
   <key>Label</key>
   <string>org.ntop.ntop</string>
   <key>ProgramArguments</key>
   <array>
      <string>/usr/local/bin/ntop</string>
      <string>@/usr/local/etc/ntop/ntop.conf</string>
      <string>--user</string><string>ntop</string>
      <string>--db-file-path</string><string>/usr/local/var/ntop</string>
      <string>--daemon</string>
</array>
</dict>
</plist>
#-----END OF org.ntop.ntop.plist-----
  1. Create the configuration file to pass additional custom parameters
    $ sudo touch /usr/local/etc/ntop/ntop.conf
  2. copy and paste the following lines into ntop.conf
    (in this example I put the ‘vital’ paramenteres, you can specify more parameters, but the ones placed in the the LaunchDaemon file will NOT be overloaded by the parameters present on the ntop.conf file)

    #-----BEGIN OF ntop.conf-----
    # interface(s) that ntop will capture on
    #  DEFAULT: The 1st sisernet device, e.g. sis0 
    
    --interface en0
    
    # Configures ntop not to trust MAC addrs.
    # This is used when port mirroring or SPAN
    #--no-mac
    
    # Logging messages to syslog (instead of the console):
    #  NOTE: To log to a specific facility, use --use-syslog=local3
    #  NOTE: The = is REQUIRED and no spaces are permitted.
    
    #--use-syslog
    -L
    
    # Tells ntop to track only local hosts as specified
    # by the --local-subnets option
    
    #--track-local-hosts
    
    # Sets the port that the HTTP webserver listens on
    #  NOTE: --http-server 3000 is the default
    
    #--http-server 3000
    
    # Sets the port that the optional HTTPS webserver listens on
    
    #--https-server 3001
    
    # Sets the networks that ntop should consider as local.
    # NOTE: Uses dotted decimal and CIDR notation.
    # Example: 192.168.0.0/24
    # The addresses of the interfaces are always
    # local and don't need to be specified.
    
    #--local-subnets 192.168.2.0/24
    
    # Sets the domain.
    # ntop should be able to determine this automatically.
    
    #--domain domain.my
    #-----END OF ntop.conf-----
  3. Set the correct file and folder permissions. VERY IMPORTANT!
    $ sudo chmod 644 /Library/LaunchDaemons/org.ntop.ntop.plist
    $ sudo chown -R ntop /usr/local/var/ntop
    $ sudo chown -R ntop /usr/local/etc/ntop

Configuration
Set the password for the admin user of ntop database (from the web interface you’ll be able to create other users with different degree of administration)

$ sudo ntop -t o -u ntop -P /usr/local/var/ntop --set-admin-password

Conclusion

Now start the service using the launchctl command and it will run as a daemon:

$ sudo launchctl load /Library/LaunchDaemons/org.ntop.ntop.plist

You will be able to access ntop through port 3000 (by default) of your server:

https://domain.my:3000

Click on this link to download here the archive containing my prepared copies of org.ntop.ntop.plistand ntop.conf files

If you found this how-to useful, please leave a feedback, it will be really appreciated.

Enjoy!

January 10, 2011

How-To find the List of my Apple Registered Products

Filed under: Apple & Mac,How-To — Tags: , , , , — marcomc @ 00:42
Listen to me!
Audio MP3

download mp3
If you, like me, are an Apple fan since a long time, you may have owned many i-Products. Some of them may have been lost, stolen, gifted or still in use. Do you remember about all of them? Do you have a list of your Apple devices?

If you have been diligent you may have registered these products, Mac Books, iPod, iPhones, iMacs or iPads in the Apple webpage to check they guarantee status or to submit a request for support.

Did you ever wanted to have a full list of your Apple Registered Products? Did you ever noticed that logging into the Apple Support there is no way to obtain such list?

Now our wish has been fulfilled! Apple has just inaugurated a new support page called My Support Profile that among the usual support services we have been used to see is listing as well the brand new ‘Product Pane’ where it’s possible to register, list, delete and give nicknames to all of your Apple product!

When I’ll be 90 years old who knows how many devices I’ll have listed?
Maybe this is a new advertising strategy that will lead contests between people to demonstrate their fidelity to Apple!

MyAppleProducts

MyAppleProducts

January 8, 2011

How-To enable VoiceOver feature in your jailbroken iPad

Filed under: Apple & Mac,How-To — Tags: , , , , , — marcomc @ 22:29

Supposed that we are in possession of a jailbroken iPad if we want to enable VoiceOver feature in the iPad there is not a Cydia package unfortunately.

We can anyway accomplish to this task manually following three simple steps:

Step 1 – preparation

You need to install and enable the OpenSSH service first. Once this is done you need to log into the iDevice via command-line or via Cyberduck or any through other SSH client. Unless you changed them for security reasons (as suggestes) the passwords for the root and mobile users are well known:

  • username: root, password: dottie
  • username: mobile, password: alpine

Step 2 – configuration

Once logged into the iPad you need to reach and edit (with ‘vim’ or any other text-editor) the file K48AP.plist at this path:

/System/Library/CoreServices/SpringBoard.app/K48AP.plist

and add the following line :

<key>voice-control</key>
<true/>

as shown below:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "https://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>capabilities</key>
<dict>
            <key>voice-control</key>
            <true/>
            <key>720p</key>
             <true/>
      .........

Step 3 – conclusion

As last you need to reboot your iPad, after that you can activate the VoiceOver feature control, holding for a few seconds the ‘Home’ button.. and start speaking!!

January 2, 2011

How-To connect to VMware Server Console via Mac OS X

Filed under: Apple & Mac,How-To,Virtualization — Tags: , , — marcomc @ 00:19
Listen to me!
Audio MP3
download mp3

If you like, as I do,  to administer your network from a workstation runnig Mac OS X and you enjoyed the installation of a VMware Server infrastructure, you will certanly will be disappointed to discover that THERE IS NOT a VMWare Console plug-in for Mac OS X version of Firefox or for Safari.

You still are able to access the VMware Infrastructure Web Access to create, modify, run and stop your virtual machines, but you will not be able to visualize the screen of virtualized servers unless you installed Remote Desktop, Terminal Service or other remotisation solutions suche LogMeIn or TeamViewer or a standart VNC server in the guest operating system.

But what to do if you need to access the BIOS settings of your virtual machines, what if you need to access them in a pre-OS status in case there is some trouble with the OS? What if you are running a virtualized GNU/Linux server and you cannot access it via SSH service?

The right solution came to my hand after a long time searching the web, and fortunately it’s fast and easy to apply and first of all is not tricky and unelegant like forwarding the X11 service via SSH (like many other blogs would suggest).

Here we go, what we need to do is to enable the VNC feature of the VMware server for each Virtual Machine configuration:

  1. Access the VMWare Infrastructure web Access
    (usually at https://<yourserver_domain_name>:8333/ui/)
  2. Select the Virtual Machine instance
  3. Select the ‘Summary’ tab
  4. click on the ‘Configure VM’ option of the ‘Commands’ navigation pane

    VM_Commands

  5. select the ‘Advanced’ tab and start adding the following ‘Configuration Parameters’:
    • RemoteDispaly.vnc.enabled =  true
    • RemoteDisplay.vnc.password = <choosen_password>
    • RemoteDisplay.vnc.port = 5900 (a different port for each Virtual Machine is recommended)
    VM_Configuration

    VM_Configuration

    * note that the RemoteDisplay.vnc.key is automatically generated by the VMware server

  6. run any VNC client pointing at <yourserver_domain_name>:5900 and you’ll be able to interact with your virtual machine from your Mac and even from you iPad or iPhone!!!!

November 15, 2010

How-To change MAC address of your ethernet network card with Mac OS X

Filed under: Apple & Mac,How-To,IT — Tags: , — marcomc @ 11:35

If using Mac OS X you find yourself in a situation to test the correct functionality of a DHCP server or you need to force the lease af a different IP address from a DHCP server, you may want to change the MAC address of your ethernet network card so to be recognised as a new client of the network.

To change the Mac address with Mac OS X, you need to fire the following command:

$ sudo ifconfig en0 ether 00:xx:xx:xx:xx:xx
(just modify the lat two digitas of your current MAC address)
« Newer PostsOlder Posts »

Powered by WordPress