All posts by expire0

Debian Upgrade to 9

Debian Distro upgrade. For this example we are upgrading from jessie to stretch
# apt-get update
# apt-get upgrade
# apt-get dist-upgrade

sed -i 's/jessie/stretch/g' /etc/apt/sources.list

# apt-get update
(if you receive a error similar to E: Release file expired. run apt-get -o Acquire::Check-Valid-Until=false update )
# apt-get upgrade
# apt-get dist-upgrade

some housekeeping after the upgrade. The below commands will remove old packages from the system
# Check dpkg -l | awk '/^rc/ { print $2 }'

# apt-get purge $(dpkg -l | awk '/^rc/ { print $2 }')
# apt-get autoremove

IP-tables config

Block an IP
iptables -I INPUT -s -j DROP

After rebooting the server we notice the rules are removed. It’s best to save your configs and restore them after a reboot.
iptables-save > /etc/iptables/rules

iptables-restore < /etc/iptables/rules

flush all rules
iptables -F

flush rules in the input chain
iptables -F INPUT

iptables -L –line-numbers

iptables -D INPUT 3 – delete a line

Python 3.5 on Centos/RHEL

Python 3.5 is currently not supported within the Redhat fmaily except on Fedora. If you want to install 3.5 you will need to follow one of the below steps.

1. Install from source

# cd /usr/src
# wget
Now extract the downloaded package.

# tar xzf Python-3.5.2.tgz
Compile Python Source

Use below set of commands to compile python source code on your system using altinstall.

# cd Python-3.5.2
# ./configure
# make altinstall
make altinstall is used to prevent replacing the default python binary file /usr/bin/python.

Now remove downloaded source archive file from your system

# rm Python-3.5.2.tgz

2. Install from IUS repo
sudo yum -y install
sudo yum -y install python35u

Install Kodi on the firestick – easy steps

User are paying 80+ dollars for a Fire stick amazon-fire-stick exoduswith Kodi installed.  Its pretty sad to over charge someone for a application that’s free. So I decided to post the easy instructions here .

  1. You can find the instructions on how to install kodi on the firestick at Kodi Wiki . In a nutshell you will need Krypton Kodi APK and ABPlink

    The beta version of Kodi 18 “Leia” nightly can be downloaded from Kodi V18 Nightly Build

2.  You will then need to enable developer mode on the stick and obtain the IP address.  
A) Enable developer mode by going to Settings > System > Developer options . Turn on ADB debugging and Apps from unknown sources.
B) Obtain the IP from the same location under <About>
( Note with these instructions you will not need to install ES File Explorer) ES file explorer allows you to install a app from the website. Using ADB , you can push the app to the device over your local network.

3. At the moment the best addon to use is Exodus .

How to Install Addon Installer so you can install Exodus
(Thanks to Expire0 Hub Space for the below )

Install adblink on your PC. Open adblink . click new , enter the IP address you obtain from step 2. Enter a brief description . Everything else can remain the same.Click the save button and click connect. After a few seconds, you will see the device under connected devices. Now Click install APK and locate the Jarvis APK file you downloaded under step 2. Install the Jarvis apk file, this can take about 5 to 10 minutes depending on your local network speed. Once installed, you will go back to the fire stick and open Kodi under apps. You are good to proceed to the below steps.

Open Kodi
Select SYSTEM > File Manager
Select Add Source
Select None
Type the following EXACTLY and select Done
Highlight the box underneath type Expire Hub
Select OK
Go back to your Home Screen
Select Add-Ons
Select Install from zip file
Select Expire Hub
Wait for Add-on enabled notification

Once Addon the repository has been installed
Select system
Select Addons
Select install from repository
Select Expire Hub

Under repository , locate exodus and install the exodus repository.
Once the repository has been install. Repeat the steps again and this time select the Exodus repository and go into video addons. From there you will see the Exodus addon . Click the addon link to install exodus. Once Exodus has been installed , you can use the addon by going to video > video addons .

You can repeat the addon install steps to install other addons.

Expire0 has a build template that is available to be installed. A build saves you the time from installing each individual addon. Expire0 Hub Build includes the best 30 addons out there. To gain access to the build you will need to contact Expire0 via twitter. Please visit the site for more information.