Monday, 10 March 2014

Investigating time sync errors (Win2008 R2, Windows 7)

TIME - error on Windows 2008 R2

The time service has not synchronized the system time for 86400 seconds because none of the time service providers provided a usable time stamp. The time service will not update the local system time until it is able to synchronize with a time source. If the local system is configured to act as a time server for clients, it will stop advertising as a time source to clients. The time service will continue to retry and sync time with its time sources. Check system event log for other W32time events for more details. Run 'w32tm /resync' to force an instant time synchronization.

Time - Error

Time Provider NtpClient: This machine is configured to use the domain hierarchy to determine its time source, but it is the AD PDC emulator for the domain at the root of the forest, so there is no machine above it in the domain hierarchy to use as a time source. It is recommended that you either configure a reliable time service in the root domain, or manually configure the AD PDC to synchronize with an external time source. Otherwise, this machine will function as the authoritative time source in the domain hierarchy. If an external time source is not configured or used for this computer, you may choose to disable the NtpClient.

Manually configuring NTPClient to sync with external source:

w32tm /config /manualpeerlist:"time.windows.com,0x1" /syncfromflags:manual /reliable:yes /update

Access is denied (0x80070005)


STEPS

1. Stop windows time service
2. unregister tm service (w32tm /unregister)
3. register tm service (w32tm /register)
4. run w32tm /config /manualpeerlist:"time.windows.com,0x1" /syncfromflags:manual /reliable:yes /update
5. Monitor

How to check hard drive errors

Log Name:      System
Source:        Disk
Date:          3/7/2014 5:03:27 PM
Event ID:      11
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      AISCTSRV01.AISCT.local
Description:
The driver detected a controller error on \Device\Harddisk2\DR6.


The problematic hard drive is a USB device.

Thursday, 19 December 2013

Changing AD Password policy lockout

ON DC - Start - run - GPMC.MSC

Default domain Policy
- - Computer Policies
--- Policies
---- Windows Settings
----- Security Settings
------ 



"Do it, and then you will feel motivated to do it" 
~Zig Ziglar

Ipad "Unable to connect to Itunes"


Got this on a few of our school ipads after the summer holidays. Its a randaom problem,some are working some aren't.


"Do it, and then you will feel motivated to do it" 
~Zig Ziglar

Access denied for user 'root'@'localhost' (using password: NO)

AllowNOPassword=FALSE


    Edit:  /etc/phpmyadmin/config.inc.php  Not:  /usr/share/phpmyadmin/config.inc.php

Remove mysql purge & reinstall
    sudo apt-get --purge remove mysql-server mysql-common mysql-client

    sudo apt-get install mysql-server mysql-common mysql-client


Ubuntu

  • Update the Package Index: The APT package index is essentially a database of available packages from the repositories defined in the/etc/apt/sources.list file and in the /etc/apt/sources.list.d directory. To update the local package index with the latest changes made in the repositories, type the following:

        sudo apt-get update  

  • Upgrade Packages: Over time, updated versions of packages currently installed on your computer may become available from the package repositories (for example security updates). To upgrade your system, first update your package index as outlined above, and then type:

        sudo apt-get upgrade

Install python
sudo apt-get install python3
Check python version  python --version

FTP Server
 sudo apt-get install vsftpd

    sudo nano /etc/vsftpd.conf
    anonymous_enable=NO
Python Virtualenv
apt-get install python-virtualenv



Thursday, 12 December 2013

ADD ROUTE in Ubuntu Server!

Finally I got it

sudo route add -net 172.16.7.0 netmask 255.255.255.0 gw 192.168.1.9