Android L

If you are like me, and can’t wait for the update, and get an error that said archive does not contain ‘boot.sig‘, just follow this steps:

1. Create a backup of your phone.

2. Download the Factory Image on these link: https://developers.google.com/android/nexus/images

3. Start the device in fast boot mode, one way to do this is:

  • Using a key combo: Turn the device off, then turn it on and immediately hold down the relevant key combination for your device. For example, to put a Nexus 5 (“hammerhead”) into fastboot mode, press and hold Volume Up + Volume Down + Power as the device begins booting up.

4. Extract all the file on the same folder

5. Run these commands manually:

  • fastboot flash bootloader bootloader-hammerhead-hhz12d.img
  •  fastboot reboot-bootloader
  •  fastboot flash radio radio-hammerhead-m8974a-2.0.50.2.21.img
  •  fastboot reboot-bootloader
  •  fastboot flash system system.img
  •  fastboot reboot-bootloader
  •  fastboot flash userdata userdata.img
  •  fastboot flash recovery recovery.img
  •  fastboot flash boot boot.img
  •  fastboot erase cache
  •  fastboot flash cache cache.img
  •  fastboot reboot

 

host key error

In case you get this error:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that the RSA host key has just been changed. The fingerprint for the RSA key sent by the remote host is 06:ea:f1:f8:db:75:5c:0c:af:15:d7:99:2d:ef:08:2a. Please contact your system administrator. Add correct host key in /home/user/.ssh/known_hosts to get rid of this message. Offending key in /home/user/.ssh/known_hosts:4 RSA host key for domain.com has changed and you have requested strict checking. Host key verification failed.

The solution is:

ssh-keygen -R example.com (don't forget to change example.com for your domain)
 

ERROR: Error installing pg -v ‘0.16.0’ Failed to build gem native extension.

If you get the error

ERROR: Error installing pg:
ERROR: Failed to build gem native extension.

It’s because you probably have your pg_config on other location, in my case was located on /library/ you can use locate pg_config and add the option –with-pg-config=/path_of_pg_config.

If you get the error:

invalid option: –with-pg-config=/library/PostgreSQL…..

You must separate the options with — like this:

gem install pg -v ‘0.16.0’ — –with-pg-config=/path-of-pg_config

WSUS

All command line options for the wuauclt:

From a dump of the .exe (W2k3 R2 version ) we can extract the following options:
/DetectNow
/ReportNow
/RunHandlerComServer
/RunStoreAsComServer
/ShowSettingsDialog
/ResetAuthorization
/ResetEulas
/ShowWU
/ShowWindowsUpdate
/SelfUpdateManaged
/SelfUpdateUnmanaged
/UpdateNow
/ShowWUAutoScan
/ShowFeaturedUpdates
/ShowOptions
/ShowFeaturedOptInDialog
/DemoUI

Windows update service can be started from command line(CMD) using the below command.

net start wuauserv

It can be stopped from windows command line(CMD) using the below net stop command.

net stop wuauserv

To restart the wsus server you can run:

net stop WSUSService

and

net start WSUSService