NTP is used for time synchronization.
a) xntpd server (daemon) is used by HP-UX.
1. Open file /etc/rc.config.d/netdaemons:
# vi /etc/rc.config.d/netdaemons
2. Make sure following variables are defined and XNTPD is set to 1, below is the example:
export NTPDATE_SERVER='ntp.mycorp.com pool.ntp.org in.pool.ntp.org'
export XNTPD=1
export XNTPD_ARGS=
Save and close the file.
Note:
* NTPDATE_SERVER : space-separated list of timeserver / IPs - If server uses the radio clock / system time, leave the NTPDATE_SERVER blank.
* XNTPD : set it to 1 to enable NTP
* XNTPD_ARGS : set options, see man page
3. Make sure correct timezone is setup in /etc/TIMEZONE file (look for TZ variable):
# vi /etc/TIMEZONE
4. Save and close the file. Open /etc/ntp.conf file:
vi /etc/ntp.conf
Make sure server are defined:
server unix-box-ntp
server delhi-ntp
peer delhi-noc-ntp
driftfile /etc/ntp.drift
Close and save the file.
Note:
* server : ntp server used (poll) to obtain time
* peer : a peer relationship with another ntp server
* driftfile : track local clock time (drift of the local clock)
5. Start HP-UX ntp service:
# /sbin/init.d/xntpd start
# /sbin/init.d/xntpd stop <-- stop ntp service
6. Verify that everything is working fine:
# ntpq -p
7. Watch out log file /var/adm/syslog/syslog.log for errors:
# tail -f /var/adm/syslog/syslog.log
8. Make sure xntpd is running:
# ps -ef | grep xntpd
b) SAM - GUI Admin Tool
You can configure NTP service under HP-UX using SAM, just start SAM and open time window.
There are severals ways to mount samba share folders into OSMC. the first step is to turn on the SSH Services in your OSMC go to setting OSMC and choose services by default OSMC SSH will use osmc as its default user and osmc as its default password. second step is to share the folder(s) you want to share to osmc to do this just do a share configuration in windows, there are many links to provide this tutorial. third step is to mount the shares folder(s) to the OSMC. forth step is to make sure that the cifs-util module are loaded to the osmc fifth step is to mount them you can use the mount command or you can mapped the samba folders through fstab to do manual mount type in: mount -t cifs -o username=Administrator,password=Password // / /mnt/ or you can edit the /etc/fstab //source_ip/share_folder /target_directory cifs username=YOURUSERNAME,password=YOURPASSWORD,iocharset=utf8,file_mode=0777,dir_mode=0777 That's it but when osmc rebooted, you might want to ...
Comments