Showing posts with label mac. Show all posts
Showing posts with label mac. Show all posts

Wednesday, November 2, 2011

Linux Debian NTP Time Server

To provide a time server (ntp server) for internal network is very simple:

#su
enter your password




To install the ntp server software:
#apt-get install ntp ntpdate

then edit the configuration file:
#nano /etc/ntp.conf

On file, change only this settings:

For all clients, for example, on range - 192.168.110.0 - 255 have access.

# Clients from this (example!) subnet have unlimited access, but only if
# cryptographically authenticated.
restrict 192.168.110.0 mask 255.255.255.0

In this line put your reliable external ntp server. Just search google for a good one.
In this case i'am using the legal time server in Portugal. The Astronomical Observatory of Lisbon is the provider of correct time. The Time zone is WET (Western Europe Time) with +00:00 hours of time zone offset. http://www.oal.ul.pt/

There is another one the NTP Pooling Project located at http://www.pool.ntp.org.
The NTP Pool is a collection of over 220 NTP servers distributed over the world.

# If you want to listen to time broadcasts on your local subnet, de-comment the
# next lines. Please do this only if you trust everybody on the network!
#disable auth
#broadcastclient
server ntp02.oal.ul.pt
server ntp04.oal.ul.pt


safe (control + x, and yes to save) and exit.
To update time on server just do this:

#ntpdate ntp02.oal.ul.pt

restart service
#/etc/init.d/ntp restart

then:
#ntpq -p

That's it!

To configure client:
On Linux client go to Gnome "date and time" and put the ip of your server.
On OSX open "system preferences", then date & time and put the ip of your server.
On Windows go to "date & time" on control panel and put the ip of your server under internet time.

Simple!

Wednesday, January 26, 2011

Mac OSX mount share at login


On Mac OSX how to mount a share (smb, webdAV, nfs, apple share) at login and don't open finder for each share?

Use apple script application in utilities folder and add this for example:



mount volume "smb://user:password@ip_or_name_of_server/share"

or

mount volume "smb://DOMAIN\user:password@ip_or_name_of_server/share"

or

mount volume "smb://ip_or_name_of_server/share"


If you need more share add more then save as application. Then:

Go to system preferences, accounts, select user and add this application to login items. Now every time you login with that user the system will mount this share.

Saturday, May 8, 2010

Apple Keyboard on Windows

The great Apple Keyboard works out of the box
in Windows but the layout is not correct in
Portuguese keyboard.
Keys like § ± < > ยบ ^ ~ + * are in wrong place.
I have search on web and i was unable to find the layout.
So i have download the Microsoft Keyboard Layout Creator
and built my own layout.

Before proceed install the original Apple drivers:
x86 and 64 Bit


The layout file is here

1 - Unzip and install.
2 - Go control panel
3 - Click in Region and Language
4 - Click on Keyboards and Languages Tab
5 - Click on Change Keyboard...
6 - In Default input language box select Portuguese (Portugal) - Apple Keyboard
7 - Click OK
8 - Exit and reboot
9 - That's all


If you have a different language you can install my layout and open in Microsoft Keyboard Layout creator and change the keys and built the install program. It's easy.

Enjoy;)

Friday, November 20, 2009

Firewire field monitor on PC


Sometimes on set i need a monitor solution to my camera. If i have a mac i can use a simple free amp called FlipFlop. The site is no longer available, so you can have it here. And connect you camera to mac via a simple firewire cable and use the mac as a field monitor.
But if you have a PC you can use VLC Player. Connect your camera to pc and open vlc. Select media and open capture device. In that window click refresh list on video device name, select AV/C Subunit and hit play.
Now you have a great and free field monitor on your PC!


Wednesday, November 4, 2009

Bootcamp on Snow Leopard Server


The Mac OS X Snow Leopard Server don't have the option of Boot camp, if you want to have in the same machine for testing install perhaps the Debian or Windows Server you can't. So just copy the bootcamp application from a Snow Leopard Client and copy to utilities folder of Snow Leopard Server and Run it to make a partition and install. On reboot press and holt option key to choose what OS to Boot.