Proxmox – add new disk – quickguide

Written by r2d2. Posted in Linux, Proxmox, Tips

cfdisk /dev/sda
mkfs.ext3 /dev/sda1
mkdir /disk2
blkid /dev/sda1

nano /etc/fstab
indsæt UUID=”97174799-0902-43b7-86d3-e42417xxxxxx” /disk2 ext3 errors=remount-ro 0 1
mount /disk2

Proxmox – log out and then back in
Datacenter/storage/add/Directory
id: Disk2
Directory: /disk2
Content: Diskimage/Container template

ESXi 6.5 – Memory limit doesn’t accept the negative value -1048576

Written by r2d2. Posted in ESX, Linux, Tips

Memory limit doesn’t accept the negative value -1048576 error

MacOS Sierra 10.12 and Safari 10.0. Reopening the ‘edit’ screen produces a Memory limit doesn’t accept the negative value -1048576 error. This was also in the previous OS X and Safari error. Reloading the page (cmd + R) fixes it, then you can reopen the edit screen and make changes.

I use Firefox instead, it´s easier.

Wipe / clear / reset a Chromebit

Written by r2d2. Posted in Archive, Tips

  1. Turn off the Chromebit by removing the power cord.
  2. Put a paperclip (or pushpin) into the recovery button hole while reattaching the power cord (to turn on the device). The recovery button hole is circled below:
  3. Press Ctrl + D.
  4. Once again, put a paperclip (or pushpin) into the recovery button hole. The device reboots and displays a red exclamation point.
  5. Press Ctrl + D. The Chromebit reboots and starts the transition to developer mode. This clears all local data, a process that takes approximately 10 minutes.
    If Forced re-enrollment is enabled for the device, you’ll see a note that developer mode is blocked. This shortens the wipe process, and still allows for re-enrollment when the device automatically reboots into verified mode.

  6. At the startup screen, press the spacebar, and then press Enter to reboot the device and return to verified mode.
  7. If you’re using a managed Chromebit for your school or business, follow these steps to enroll the device.

Hosts

Written by leif. Posted in Tips

Modify your hosts file

Last updated on: 2016-06-08 Authored by: Rackspace Support

Modifying your hosts file enables you to override the DNS for a domain, on that particular machine. This is useful when you want to test your site without the test link, prior to going live with SSL; verify that an alias site works, prior to DNS changes; and for other DNS-related reasons. Modifying your hosts file causes your local machine to look directly at the IP address specified.

To modify the hosts file, you add two entries to the file that contains the IP address that you want the site to resolve to and the address. Adding the following two lines, for example, point www.domain.com anddomain.com to our current PHP5-ITK (“Refreshed” PHP5) cluster:

64.49.219.194 www.domain.com 64.49.219.194 domain.com

Ubuntu: moving the Launcher to the bottom of the window

Written by r2d2. Posted in Linux, Tips

First install the dconf-editor.unitya

To do this, issue the command

  • sudo apt-get install dconf-editor
  • Open the program dconf-editor
  • Navigate to com / canonical / unity / launcher
  • and change the launcher-position to bottom.

 

or at the terminal type:

gsettings set com.canonical.Unity.Launcher launcher-position Bottom

Install compiz

sudo apt-get install compizconfig-settings-manager compiz-plugins compiz-plugins-extra

 

Windows 7 SP1 Windows Update stuck checking for updates

Written by r2d2. Posted in Tips, Windows

HIwmY

This is what I do when I reinstall Windows 7 with SP1 or have issues with Windows update stuck on checking for updates.

If Service Pack 1 is not installed, install it before following this guide.

Choose

windows6.1-KB976932-X64.exe

for 64bit W7 or

windows6.1-KB976932-X86.exe

for 32bit W7

Download KB-3138612 and save it where you can find it later

Download SUR Tool save it to same place

Restart the PC and disconnect from internet before Windows loads, this is important because at every boot windows will check for updates in the background and this will start the checking for updates hang all over again and will prevent the install of the downloaded packages until it finishes checking, so disconnecting from the internet before Windows loads prevents this.

Once booted install KB-3138612, if reboot is required do so and stay disconnected from internet.

Now install the SUR Tool package, this is a big package and will install many updates along with cleaning up and repairing the Windows update store. It will also cut down on how many more Windows updates will need to be installed later.

After install of SUR package reboot, connect to internet and do a manual Windows Update, it should work much faster now. Even after these fixes I have seen some W7 PC’s take up to an hour to finish checking for updates if launched from Control Panel manually.

If you have other Windows updates issues and the 2 updates above are installed, download this Microsoft Windows Update fixit tool (right click “save link as”) run it and select aggressive mode to completely reset Windows updates. Reboot and try Windows Updates from the Control Panel again.

All downloads [HERE]

Never10 – Disable Windows 10 upgrade

Written by r2d2. Posted in Programmer, Tips, Windows

Download an execute Never10

Original site https://www.grc.com/never10.htm

Unattended/automated operation
Version 1.3 of Never10 adds much-requested command-line switches to perform and further automate all Never10 operations. Never10 now offers the following command-line switches:

  • delete ‑ deletes any and all pre-downloaded Windows 10 files. If no Windows 10 files are present, the command’s presence is registered for user-interface suppression, but the command has no other effect.
  • disable ‑ disables the GWX subsystem to prevent all user prompting and pre-downloading of Windows 10. If both ‘disable’ and ‘enable’ are specified (though that makes no sense) this disable command takes precedence and all future Windows Update OS upgrading behavior will be disabled.

chmod

Written by r2d2. Posted in Linux, Tips

  • 644 make a file readable by anyone and writable by the owner
    only.
  • go-w deny write permission to group and others.
  • =rw,+X set the read and write permissions to the usual defaults, but retain any execute permissions that are currently set.
  • +X make a directory or file searchable/executable by everyone
    if it is already searchable/executable by anyone.
  • 755
    u=rwx,go=rx
    u=rwx,go=u-w make a file readable/executable by everyone and writable by
    the owner only.
  • go= clear all mode bits for group and others.
  • g=u-w set the group bits equal to the user bits, but clear the
    group write bit.