Monday, September 26, 2016

vmware esxi 6 on Intel NUC


Just some notes for now, later will detail how install worked out


http://www.virten.net/2015/03/esxi-6-0-image-for-intel-nuc/

xx

install notes:

http://www.ivobeerens.nl/2016/02/24/intel-nuc-6th-generation-as-home-server/

http://www.ivobeerens.nl/2011/09/17/create-a-bootable-vmware-esxi-5-usb-stick-in-windows-and-perform-a-scripted-installation/

xx
http://tekhead.it/blog/category/nanolab/
xx
technique I used, rufus

http://www.virten.net/2016/01/vmware-homeserver-esxi-on-6th-gen-intel-nuc/

Installation

No customization is required to install the latest ESXi 5.5 and ESXi 6.0 versions on 6th Gen NUCs. You can use the images provided by VMware to Install ESXi:
The simplest way to install ESXi is by using the original ISO and Rufus to create a bootable ESXi Installer USB Flash Drive.

****

Download Rufus.  I have 2.9.934
http://rufus.akeo.ie/



















Set the above options, and remember to select the disk image next to
"Create a bootable disk using" and select the iso file to be bootable.

Vmware ISO 6.0 was downloaded from here:

Vmware FREE-ESXI6

A link to the current vmware may have to be gotten by following links to get an evaluation version.  The above is for reference, and is the version my systems run.


xx

Saturday, September 24, 2016

find / cpio directory copy / move / archive info




http://bradthemad.org/tech/notes/cpio_directory.php

https://www.computerhope.com/unix/ucpio.htm

Create a cpio archive:
localhost% find path/ -depth -print | cpio -oaV > archive.cpio
localhost% find path/ -depth -print | cpio -oaV -O archive.cpio
Create a cpio archive and compress it:
localhost% find path/ -depth -print | cpio -oaV | gzip -c > archive.cpio.gz
 
Extract a compressed cpio archive:
cd to parent directory of location to install.
gzip -cd path-to-cpio-gz | cpio -idmv
<uncompress to stdout>  pipe <cpio install stream from stdin>
 
http://superuser.com/questions/31078/cpio-basic-extract-command-tar-xzvf-equivalent 
 
Extract a cpio archive:
localhost% cpio -imVd < archive.cpio
localhost% cpio -imVd -I archive.cpio
List the contents of a cpio archive:
localhost% cpio -it < archive.cpio
localhost% cpio -it -I archive.cpio
Use cpio copy-pass to copy a directory structure to another location:
localhost% find path/ -depth -print | cpio -pamVd /new/parent/dir

cpio over ssh

To cpio a local directory, send the output to ssh and feed it to cpio on a remote host:
localhost% find path/ -depth -print | cpio -oaV | ssh user@host 'cpio -imVd'
Ssh to a remote host, cpio a remote directory, and get its output locally:
localhost% ssh user@host "find path/ -depth -print | cpio -oaV" | cpio -imVd 
 
 
**************
Another reference
 
https://docs.oracle.com/cd/E23824_01/html/821-1459/bkupsavefiles-21.html
 
  1. Change to the appropriate directory.
    # cd filesystem1
  2. Copy the directory tree from filesystem1 to filesystem2 by using a combination of the find and cpio commands.
    # find . -print -depth | cpio -pdm filesystem2
    .
    Starts in the current working directory.
    -print
    Prints the file names.
    -depth
    Descends the directory hierarchy and prints file names from the bottom up.
    -p
    Creates a list of files.
    -d
    Creates directories as needed.
    -m
    Sets the correct modification times on directories.
    For more information, see cpio(1).
    The files from the directory name you specify are copied. The symbolic links are preserved.
    You might also specify the -u option. This option forces an unconditional copy. Otherwise, older files do not replace newer files. This option might be useful if you want an exact copy of a directory, and some of the files being copied might already exist in the target directory.
 
 
 

xx

Ubuntu / rsync backup


 https://www.digitalocean.com/community/tutorials/how-to-upgrade-ubuntu-12-04-lts-to-ubuntu-14-04-lts

 The aAX flags tell rsync to preserve important file attributes like permissions, ownerships, and modification times. If you are using Docker or another virtualization tool, you should add the S flag so that rsync properly handles sparse files, like virtual storage.

sudo rsync -aAXv --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} -e 'ssh -i /path/to/private_key' root@SERVER_IP_ADDRESS:/* ~/backup/
 
sudo rsync -aAXv --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*", \
"/mnt/*","/media/*","/lost+found"} -e 'ssh -i /path/to/private_key' \
root@SERVER_IP_ADDRESS:/* ~/backup/ 

If you need to restore parts of your server files later on, you can use rsync 
again with the source and destination parameters reversed, like so:  
 
sudo rsync -aAXv -e 'ssh -i /path/to/private_key' ~/backup/ root@SERVER_IP_ADDRESS:/*

xx
 
How to deal with "/path/to/private_key" 

http://www.cyberciti.biz/faq/force-ssh-client-to-use-given-private-key-identity-file/

example:

ssh -i /path/to/id_rsa user@server.nixcraft.com
ssh -i /path/to/id_dsa user@server2.nixcraft.net.in

To use /backup/home/user/.ssh/id_dsa, enter:

ssh -i /backup/home/user/.ssh/id_dsa user@unixserver1.nixcraft.com


xx 

Ubuntu / rsync backup


 https://www.digitalocean.com/community/tutorials/how-to-upgrade-ubuntu-12-04-lts-to-ubuntu-14-04-lts

 The aAX flags tell rsync to preserve important file attributes like permissions, ownerships, and modification times. If you are using Docker or another virtualization tool, you should add the S flag so that rsync properly handles sparse files, like virtual storage.

sudo rsync -aAXv --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} -e 'ssh -i /path/to/private_key' root@SERVER_IP_ADDRESS:/* ~/backup/
 
sudo rsync -aAXv --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*", \
"/mnt/*","/media/*","/lost+found"} -e 'ssh -i /path/to/private_key' \
root@SERVER_IP_ADDRESS:/* ~/backup/ 

If you need to restore parts of your server files later on, you can use rsync 
again with the source and destination parameters reversed, like so:  
 
sudo rsync -aAXv -e 'ssh -i /path/to/private_key' ~/backup/ root@SERVER_IP_ADDRESS:/*

xx
 
How to deal with "/path/to/private_key" 

http://www.cyberciti.biz/faq/force-ssh-client-to-use-given-private-key-identity-file/

example:

ssh -i /path/to/id_rsa user@server.nixcraft.com
ssh -i /path/to/id_dsa user@server2.nixcraft.net.in

To use /backup/home/user/.ssh/id_dsa, enter:

ssh -i /backup/home/user/.ssh/id_dsa user@unixserver1.nixcraft.com


xx 

Tuesday, September 20, 2016

Windows 7 setup notes


set up printers:

HP 4500 printer, need hp driver:
http://support.hp.com/us-en/drivers/selfservice/HP-Officejet-4500-All-in-One-Printer-Series---G5/3919445/model/3919446

HP 2015 printer installs from the ip of the printer on 7, 8.1 and win 10

Install firefox extensions

Install Putty, games, firefox, set up remote desktops

Install vmware client manager 5, or 6 for appropriate host for install.


Sunday, September 18, 2016

possible workaround to readynas windows 10 share problem. (relevant to developer win 10 installs)


Note on removing credential (If I understand it), as a workaround fix for broken Windows 10 fix. 

Windows 10 upgrades to the developer releases seem to be invalidating stored credentials with each update with some regularity.  if you have a drive share mount with stored credentials, or on another front though not with the readynas nas, stored logins for say remote desktop, you have to reinput them.

That was working up to the latest 9/14 or 9/16 set of updates.  now it seems to retain the credential and not let you easily reinput the login, or share.

And it was not accepting any password on other shares, even valid ones.

A fellow on the Readynas forum (where this became a topic) suggested a workaround worth documenting.

Thanks to Readynas forum user nayadn for this.

nayadn (Aspirant) posted a new reply in R6000 Series AC WiFi Routers on 2016-09-17 07:32 AM :


Re: Can no longer access ReadyShare drives on Windows 10


i googled again the error and i came up with a sideway solution
go into user account in control panel
if you're in windows 10 select manage your credentials this will open 2 options
web credentials and windows credentials
head to windows credentials and add a new windows credential
enter the location of the drive \\readyshare on the first line
your windows user name in the second line
your windows password in the third line
and you're done, you should see the drive under network and be able to access it as before
good luck

Friday, September 16, 2016

Block updates on Windows 10


Have to remove updates to make Readynas and shares work again.  Microsoft Windows 10 update this week fucked it completely up, with some update, so have to identify and remove updates till they work again, then ban the update that is causing it.

http://www.howtogeek.com/223864/how-to-uninstall-and-block-updates-and-drivers-on-windows-10/

Open the Settings app and select “Update & security.” Under Windows Update, scroll down and select “Advanced options,” and then select “View your update history.”

Open Settings and navigate to Update & security > Windows Update > Advanced options > View your update history. You’ll see a link reading “Uninstall updates” at the top of the update history list.

This link takes you to the “Uninstall an update” dialog, where you can uninstall an individual Windows Update if it’s causing problems on your system.

Prevent a Driver or Update From Being Installed from Windows Update

https://support.microsoft.com/en-us/kb/3073930

When you run this troubleshooter, it will search for available updates and allow you to “hide” them, preventing Windows from automatically installing them. In the future, you can run this troubleshooter again and unhide the updates when you want to install them.

If you want to temporarily prevent Windows from automatically downloading and installing any updates, you can do it without using the above tool to block updates. Just set your current Internet connection as “metered” and Windows won’t download updates while connected to it — at least until you tell Windows the connection isn’t metered anymore.

Extra, to do a blanket uninstall if possible:

Restore to system restore point, remove all updates after that point:
  1. Right-click (or press and hold) the Start button, and then select Control Panel.
  2. Search Control Panel for Recovery.
  3. Select Recovery > Open System Restore > Next.
  4. Choose the restore point related to the problematic app, driver, or update, and then select Next > Finish.
 xx