Skip to content

Instantly share code, notes, and snippets.

@frank-dspeed
Last active August 29, 2015 14:27
Show Gist options
  • Save frank-dspeed/ffaf55963ebf158b8840 to your computer and use it in GitHub Desktop.
Save frank-dspeed/ffaf55963ebf158b8840 to your computer and use it in GitHub Desktop.
Enable automated winfix
sudo nano /lib/systemd/system/winfix.service
================================================
nano /home/winfix/winfix.sh
=======================================================================
sudo chmod +x /home/winfix/winfix.sh
sudo systemctl enable winfix.service
[Unit]
Description=Fix Windows Registry
[Service]
Type=oneshot
ExecStart=/home/winfix/winfix.sh
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
#!/bin/bash
## Automount TTM Vol if exist!
# get the UUID of TTM
TTM = $(sudo blkid | grep TTM | awk '{ print $3}')
# ADD TTM to fstab
echo "$TTM /mnt/TTM ntfs-3g uid=1000,gid=1000,umask=0022,sync,auto,rw,nosuid,nouser 0 0" >> /etc/fstab
mount -a
# COPY Folder bold to it
cp -r /bold32 /mnt/TTM
cp -r /dump /mnt/TTM
# lets modify the registry with help of chntpw
reged -L -I/mnt/TTM/windows/system32/config/software HKEY_LOCAL_MACHINE\SOFTWARE /dump/input.reg
## remove fstab entry
head -n -1 /etc/fstab > /etc/fstab.old; mv /etc/fstab.old /etc/fstab
# switch off
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment