Get CentOS 5.x Yum working again in 2018

Yum update and install not working on CentOS 5.x, this is because its no longer supported by CentOS, but you still want to be able to install new apps just do this:

Replace the contents of /etc/yum.repos.d/CentOS-Base.repo with this:

 

[base]
#name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://vault.centos.org/centos/$releasever/os/$basearch/
#gpgcheck=1
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

[base]
name=CentOS-$releasever - Base
# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://vault.centos.org/5.11/os/$basearch
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5


#released updates
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://vault.centos.org/centos/$releasever/updates/$basearch/
baseurl=http://vault.centos.org/5.11/updates/$basearch

gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://vault.centos.org/centos/$releasever/extras/$basearch/
baseurl=http://vault.centos.org/5.11/extras/$basearch
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://vault.centos.org/centos/$releasever/centosplus/$basearch/
baseurl=http://vault.centos.org/5.11/centosplus/$basearch
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://vault.centos.org/centos/$releasever/contrib/$basearch/
baseurl=http://vault.centos.org/5.11/contrib/$basearch
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

2016 Subaru WRX STi Limited Radio Pin outs

I had a hard time finding this info, so I’m posting it here.

These are the three main connectors to the 7 inch NAV unit on a 2016 WRX STI Limited.

Here’s a doc related the the Harmon Kardon amp in the trunk AUDM Subaru WRX STI (2016) Premium with Harman Kardon package

 

XDA [How-To] Disable Forced Encryption

XDA [How-To] Disable Forced Encryption – Nexus 6

 

 

  • Extract the Android Image Kitchen zip Android_Image_Kitchen.zip
  • drag in the boot.img file you wish to modify onto the unpackimg.bat file
  • you should get a command window pop up, it should say succesfull and you will get a few folders added.
  • open the ramdisk folder and open the fstab.shamu file using notepad++
  • search for forceencrypt and replace it with encryptable. there should be only one case where this exists.
  • save the file, go back to the root of the image kitchen folder, and run the repackimg.bat file.
  • you should get a new boot.img build called image-new.img, you can use this now to flash on your device

 

 

Tell apt-get not to install “recommends” packages in Debian Linux

Tip: Tell apt-get not to install “recommends” packages in Debian Linux

Preview:

Purpose: If you are using Debian Lenny and are installing software packages using apt-get then you might have noticed the new version of apt-get in Lenny installs the “recommends” packages automatically thus increasing the number of packages installed on your computer. The “apt-get” in Debian Etch (4.0) did not use to install “recommends” packages.  In this post, we will see how we can permanently tell apt-get NOT to install “recommends” packages.  For those of you who are not sure about Debian’s “depends”, “recommends” and “suggested” packages, please refer to this doc. This is important if you have limited storage space on your system, say for example an embedded system.

Adjust Windows DNS settings from command line

If you ever wanted to change the DNS settings on Windows 7/8 here’s how you do it.

Open a command prompt with Administrator privileges, and type the following:

netsh interface ip set dns name="Wi-Fi" static 192.168.1.2

Secondary DNS:

netsh interface ip add dns name="Wi-Fi" 192.168.1.1index=2

If you want to change to use DHCP Server provided DNS do this:

netsh interface ip set dnsservers name="Wi-Fi" source=dhcp