First use the windows universal key VK7JG-NPHTM-C97JM-9MPGT-3V66T to get back to the generic pro version. Than a activate the windows with the new license key.
Archiv des Autors: kerm
Add windows driver offline
Using DISM to install Storage Drivers
If you migrate Windows installations between storage adapters, you’re often left with the well known STOP 0x7B INACCESSIBLE_BOOT_DEVICE
. This happens because Windows doesn’t yet have the required drivers installed, and/or set as boot-critical.
The dism.exe tool allows us to install (boot-critical) drivers into an offline Windows „image“. Note that an offline Windows „image“ is nothing special – a regular Windows install is a valid Windows „image“.
After a STOP 0x7B, Windows Boot Manager usually sets up fallback boot into WinRE (Windows Recovery Environment). WinRE has a copy of the DISM tool, so you’re good to go. (Cancel the Startup Recovery assistant if you have to.)
Example DISM commands to use from the WinRE (or WinPE) Command Prompt:
Install Microsoft/Generic Storage Drivers
This includes MSAHCI, IntelIDE, AMDIDE, ATAPI, PCIIDE and so on:
dism /image:d:\ /add-driver /driver:d:\windows\inf\mshdc.inf /forceunsigned
(D: is assumed to be the Windows SystemDrive partition.)
Install LSI MegaRAID / SAS/SATA Drivers
dism /image:d:\ /add-driver /driver:d:\windows\inf\megaraid.inf /forceunsigned
(D: is assumed to be the Windows SystemDrive partition.)
Install VirtIO Storage Drivers
If you have the VirtIO drivers ISO mounted, and added the drivers in the Recovery GUI, dism can add them to the offline Windows as well:
dism /image:c:\ /add-driver /driver:d:\win7\amd64\viostor.inf
(C: is assumed to be the Windows SystemDrive partition, and D: is the virtio ISO/CD.)
Windows XP: Aktivierung aufschieben
Im Rahmen eines Hardwaretausches – kann es dazu kommen, dass nach der Windows-Anmeldung eine Aktivierung des Systems erforderlich ist. Wenn sich die Hardware wesentlich ändert, gewährt Windows hierbei keinen Aufschub der Aktivierung. Eine Möglichkeit ist die Windows-Aktivierung für 30 Tage aufzuschieben. Folgender Befehl ausgeführt im abgesicherten Modus, bewirkt dies:
rundll32.exe syssetup,SetupOobeBnk
Manschmal ist es erforderlich vorher folgende Befehle auszuführen, um die erfolgreiche Ausführung des obigen Befehls zu ermöglichen:
regsvr32 regwizc.dll regsvr32 licdll.dll
Restore Windows RE in Windows 7, 8, 8.1 and 10
Unhide Recovery Partition
- Start Disk Management (diskmgmt.msc) on your computer and take a closer look at your hard disk. Note the disk number and the partitions.
- Start DiskPart and select your disk: DISKPART> select disk 0
- List all partitions: DISKPART> list partition
- Now, select the hidden partition (see step 1) DISKPART> select partition 1
- Type DISKPART> detail partition and verify that it is hidden. Remember the Type value, this will be handy if something goes wrong.
- Set the type of the hidden partition to 07. Type DISKPART> set id = 07 override
- If everything goes ok, you will receive the following message “Diskpart successfully set the partition ID.“
- All done. Type Exit to close DiskPart.
- Check the Disk Management to see witch drive letter has been assigned to the recovery partition.
List of partition types:
- 07 = Windows NT NTFS
- 17 = Hidden
- 27 = OEM Recovery
DiskPart command line syntax and parameters can be found here.
My 3D Printer with Automatic Bed Leveling
I have now added a automatic bed leveling to my Turnigy Fabrikator 3D printer.
It is running the Marlin Firmware 1.1.0 RC-4
Reset Icons on Android CM13 (Marshmallow)
After playing around with Designs, my Icon’s where messed up.
Even a reinstall of an app did not help. After searching on the internet, I found a working solution. Remove app_icons.db app_icons.db-journal with:
cd /data/data/com.google.android.googlequicksearchbox/databases
rm app_icons.db app_icons.db-journal
Then force stop google app, that forces the repaint of the icons, don’t know if it’s the right way to do it but it works.
HowTo set up LetsEncrypt on OpenSUSE 13.2
Setting up letsencrypt on a server with OpenSUSE 13.2 and apache2.
I suppose you have a running apache2 web server with a virtual host config file named/etc/apache2/vhosts.d/mydomain.example.com.conf
for the domain mydomain.example.com
Log in to your server by ssh, make yourself root. Then:
1. Install required extra packages
cd /root
zypper in git
On OpenSUSE 13.2 you will also need (versions of python > 2.7.8 probably will not require this):
zypper in python-pyOpenSSL
2. Install letsencrypt
git clone https://github.com/letsencrypt/letsencrypt
3.Configure data for letsencrypt
Create a file /etc/letsencrypt/cli.ini
with this contents:
rsa-key-size = 4096
email = myaddress@example.com
authenticator = webroot
webroot-path = /srv/www/vhosts/mydomain.example.com
domain = mydomain.example.com
Obviously the webroot path must reflect the value of DocumentRoot
in your server configfile/etc/apache2/vhosts.d/mydomain.example.com.conf
, and email should be your address.
4. Get your certificate
cd /root/letsencrypt
./letsencrypt-auto certonly -c /etc/letsencrypt/cli.ini
5. Configure the https server
If step 4 was successful, you’ll find your certificates in /etc/letsencrypt/live/mydomain.example.com/
. Now you need to configure your apache2 to use these certificates. At first copy your http config file to a https config file:
cp -a /etc/apache2/vhosts.de/mydomain.example.com.conf /etc/apache2/vhosts.de/mydomain.example.com-ssl.conf
In that newly created file modify the lines containing „“ and „ServerName“ by appending „:443“ to IPs resp. domain name (resp. replacing „:80“ by „:443“). After these lines add the following lines:
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/mydomain.example.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/mydomain.example.com/privkey.pem
If you like, you may adjust the Logfile names (if you have the „combined“ parameter in CustomLog, you may substitute that by „ssl_combined“).
Now make sure to have ssl activated in /etc/sysconfig/apache2
:
APACHE_MODULES="[...] ssl [...]"
and
APACHE_SERVER_FLAGS="SSL"
Now restart the apache2 server (after a check):
rcapache2 configtest
rcapache2 restart
6. Renewal of the certificate
If all that was successful, you may wait two months (not more than 89 days) to renew your certifcate by repeating step 4. The apache2 server does not need any new configuration, but (possibily?) a restart.
Repair Linux MBR after Windows install
Situation
After installing Windows alongside Linux, GRUB has been replaced by the Windows bootloader. How do you get GRUB back into the MBR?
Note „has been“. When openSUSE is installed according to recommendation to keep a neutral MBR that Grub will have been installed to a partition rather than the MBR, which will result in a simpler „repair“ procedure..
Procedure
You have to make sure to be able to boot into openSUSE. You can do this either by using the Rescue System mode on the installation DVD or by using a CD withPlop Boot Manager or Super Grub Disk, for example. Note that you can let boot any ISO on USB with UNetbootin. Then you can repair the Master Boot Record with a few commands:
If using grub2 (default on openSUSE 13.1)
Open a terminal and type commands. Firstly elevate your priviledges (not required in Rescue System mode):
sudo -i
Figure out from the partition table what is your (main) linux partition, e.g. /dev/sda3:
fdisk -l
Then type:
mount /dev/sda3 /mnt mount --bind /dev /mnt/dev mount --bind /proc /mnt/proc # maybe superfluous mount --bind /sys /mnt/sys # maybe superfluous mkdir /mnt/mounts # could be needed if booted with rescue openSUSE 13.1 mount --rbind /mounts /mnt/mounts # could be needed if booted with rescue openSUSE 13.1
If this preparation went well, perform the actual change:
chroot /mnt grub2-install /dev/sda exit
And if that succeeded,
reboot
If using legacy grub
Open a terminal and type (no ’sudo‘ is required in Rescue System mode):
sudo /usr/sbin/grub
Then execute the following commands:
grub> find /boot/grub/stage2 (will show the path of actual grub installation, you will need on the next step) grub> root (hdx,y) grub> setup (hdx) grub> quit
Caution: x represents the disk number and y represents the partition number where GRUB stage2 is installed. The numbering starts at 0. For example, if the first command outputs (hd0,5) you should do root (hd0,5) followed by setup (hd0). After rebooting, the GRUB menu should reappear.
This solution was sourced from please_try_again on the forums.
If a neutral MBR was employed
All that is necessary is to use any available partitioning tool to move the boot flag from the Windows partition to the partition to which Grub is installed. This is easily done with FDISK (which calls the boot flag the active flag) from a DOS boot or from DISKPART or Disk Management from a Windows boot, or using one of the partitioning tools from a generic bootable media such as the Ultimate Boot CD or Hiren’s BootCD.
OpenSUSE 13.1 Repository Settings
Repository | URL |
AMD-Repo von Bruno Friedmann | http://geeko.ioda.net/mirror/amd-fglrx/openSUSE_13.1/ |
Packman Repository | http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_13.1/ |
openSUSE-13.1-Debug | http://download.opensuse.org/debug/distribution/13.1/repo/oss/ |
openSUSE-13.1-Non-Oss | http://download.opensuse.org/debug/distribution/13.1/repo/non-oss/ |
openSUSE-13.1-Oss | http://download.opensuse.org/debug/distribution/13.1/repo/oss/ |
openSUSE-13.1Source | http://download.opensuse.org/source/distribution/13.1/repo/oss/ |
openSUSE-13.1-Update | http://download.opensuse.org/update/13.1/ |
openSUSE-13.1-Update-Debug | http://download.opensuse.org/debug/update/13.1/ |
openSUSE-13.1-Update-Debug-Non-Oss | http://download.opensuse.org/debug/update/13.1-non-oss/ |
openSUSE-13.1-Update-Non-Oss | http://download.opensuse.org/update/13.1-non-oss/ |