Author Archive

Synology – Hyper Backup not completing

Written by leif. Posted in Synology, Tips

Reverting to a previous version of HyperBackup fixed my problem.

I manually install the previous version of HyperBackup it can be found here: http://download.synology.com/download/Package/spk/HyperBackup/2.0.1-0384/

You need to uninstall the current version first, then manually install the previous version using the .sdk that matches your hardware.

Make sure that HyperBackup isn’t set to auto update.

I keep a backup of the last working version of HyperBackup here 😉

HyperBackup-armada38x-2.0.1-0384.spk
HyperBackup-armada370-2.0.1-0384.spk
HyperBackup-armada375-2.0.1-0384.spk
HyperBackup-armadaxp-2.0.1-0384.spk
HyperBackup-armv5-2.0.1-0384.spk
HyperBackup-armv7-2.0.1-0384.spk
HyperBackup-comcerto2k-2.0.1-0384.spk
HyperBackup-hi3535-2.0.1-0384.spk
HyperBackup-i686-2.0.1-0384.spk
HyperBackup-monaco-2.0.1-0384.spk
HyperBackup-ppc-2.0.1-0384.spk
HyperBackup-x86_64-2.0.1-0384.spk

To find out which version to download I downloaded HyperBackup from Synology.com download section for compareation.

54 views

Rapberry Pi – on-screen keyboard

Written by leif. Posted in Tips

On-Screen keyboard
Installing the on-screen keyboard is not the solution to develop software or write long text documents on the Raspberry PI, but it is a must-to-have to make complete the user interaction options. Installing the keyboard is a very simple operation that can be done with a single command from the terminal:

sudo apt-get install matchbox-keyboard

just as it is explained in the product document page on Element14. The documentation says that the keyboard (after installation and reboot) is accessible on-screen from the Menu->Accessories->Keyboard. Doing several installations I have verified that the keyboard is not always listed as a new menu option; one of the reasons depends on the previous presence of a physical keyboard connected to the Raspberry or not. To be sure that the on-screen keyboard is added to the desktop menu after installation the better choice is to manage the Raspberry PI from remote via SSH.

The on-screen keyboard can be shown by your applications or bash scripts with the command

matchbox-keyboard
115 views

gnome layout manager

Written by leif. Posted in Linux

https://github.com/bill-mavromatis/gnome-layout-manager

For the Windows 10 theme, also install this plugin:

https://extensions.gnome.org/extension/1160/dash-to-panel/

An icon taskbar for the Gnome Shell. This extension moves the dash into the gnome main panel so that the application launchers and system tray are combined into a single panel

 

50 views

Proxmox – add new disk – quickguide

Written by leif. 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

90 views

Network configuration

Written by leif. Posted in Linux, Netværk

Manual configuration with root credentials of the network config file, which is the responsible for the IP information in my debian system. The file name is /etc/network/interfaces I will first make backup of my original file as /etc/network/interfaces.bak and then proceed for the changes /etc/network/interfaces

mv /etc/network/interfaces /etc/network/interfaces.bak

sudo nano /etc/network/interfaces

I will change  the value like this

auto lo
iface lo inet loopback


#My IP description
# IPv4 address
iface eth0 inet static
	address	192.168.1.100
	netmask	255.255.255.0
	network	192.168.1.0
	broadcast 192.168.1.255
	gateway	192.168.1.1
192 views

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

Written by leif. 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.

787 views

Wipe / clear / reset a Chromebit

Written by leif. 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.
310 views

Cool retro terminal

Written by leif. Posted in Linux, OS X

Install the App for OS X

  1. Press Command+Space and type Terminal and press enter/return key.
  2. Run in Terminal app:
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null ; brew install caskroom/cask/brew-cask 2> /dev/null
    and press enter/return key. Wait for the command to finish.
  3. Run:
    brew cask install cool-retro-term

Done! You can now use cool-retro-term.

Checkout COOL THEMES FOR COOL RETRO TERM

Source macappstore.org

Install the App for Linux

To install cool-retro-term in Ubuntu based Linux distributions, such as Linux Mint, elementary OS, Linux Lite etc, use the PPA below:

sudo add-apt-repository ppa:noobslab/apps
sudo apt-get update
sudo apt-get install cool-retro-term

If you get the error: Error sudo: add-apt-repository: command not found

Install the add-apt-repository:

apt-get install software-properties-common

and repeat the installation.

171 views

$_SERVER[‘PATH_INFO’] not working!

Written by leif. Posted in PHP, Programmering

<?php
if (isset($_SERVER['PATH_INFO'])) {
    $request_uri = trim($_SERVER['PATH_INFO'], '/');
} elseif (isset($_SERVER['ORIG_PATH_INFO'])) {
    $request_uri = trim(str_replace($_SERVER['SCRIPT_NAME'], '', $_SERVER['ORIG_PATH_INFO']), '/');
} else {
    $request_uri = '';
}


echo "PATH_INFO = " . $_SERVER['PATH_INFO'] . "<br>"; 
echo "\$request_uri = ".$request_uri . "<br>";
echo "All server vars<br>";
echo "<pre>";
print_r($_SERVER);
echo "</pre>";
echo "tested with: http://localhost:8080/wordpress/leif.php/asd/qwe<br>";
echo "Output:<pre>";
echo "

PATH_INFO = /asd/qwe
$request_uri = asd/qwe
All server vars
Array
(
    [HTTP_HOST] => localhost:8080
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    [HTTP_CONNECTION] => keep-alive
1148 views

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

828 views