Server Setup

Posted: 6th March 2013 by Jab in Server

Setting up Coloc

Installed programs –

ZNC – Used for IRC Client

Virtualization with KVM – For adding Virtual Machines

Added Java – sudo apt-get install openjdk-6-jre

Added Subsonic Music Application Subsonic.org

Added new Virtual Machine of 25gb for Minecraft

  • Installed Java –  sudo apt-get install openjdk-6-jre
  • Installed Bukkit Server
  • Installed Essentials, Vault, Citizens plugins

 

 

Cauliflower Pizza

Posted: 2nd March 2013 by Jab in Medifast, Weight Loss

So I tried out the Cauliflower Pizza Crust from Sandys Kitchen Adventures you can find it here.

However I wasn’t too keen on using Cheese in my meals as I want to lose the weight and cheese is my downfall – Hence why I love the new Macaroni & Cheese.

So I have slightly modified the recipe and I will test it out tonight and see how it works .. here is what I will be trying ..

CRUST:
1 cup Grated (Raw) Cauliflower – (2 Greens)
1/4 cup Egg Beaters – (1/8 lean) – 2 cups is a full lean
1/8 tsp garlic powder – (1/2 condiment)
1/4 tsp basil – (1/4 condiment)

TOPPINGS:
1/4 cup tomatoes – pureed (1/2 green)
1/4 cup jalapenos / red peppers (1/2 green)
4.375 oz of lean Steak (7/8 lean)

DIRECTIONS:
Preheat over to 425 – User parchment paper on a cookie sheet for best results – you can spray it slightly with non stick spray.

In a large bowl combine grated cauliflower, egg beaters, garlic and basil and mix completely.  Spread mixture onto parchment paper spreading out evenly with a spoon. The thinner you make it the the better change it will not be soggy – as cauliflower does have lots of water.
image

image

Bake in the over for about 30 minutes – using a spatula go around the edges to lift from pan and flip very carefully. Bake for an additional 15 minutes.  You may see that it will look burnt – not to worry it does not taste burnt.
image

Add puree tomatoes and top with jalapenos / red peppers and steak – put back in over on broil for about 5 – 10 minutes.

image

Enjoy  – I will post pictures later.

Install New Server

Posted: 18th February 2013 by Jab in Casual

Setting up a new server with Apache, Mysql, PHP and some goodies

Install MySQL, phpMyAdmin, rkhunter, binutils

apt-get install mysql-client mysql-server openssl getmail4 rkhunter binutils

New password for the MySQL “root” user: <– yourrootsqlpassword
Repeat password for the MySQL “root” user: <– yourrootsqlpassword

We want MySQL to listen on all interfaces, not just localhost, therefore we edit /etc/mysql/my.cnf and comment out the line bind-address = 127.0.0.1:

 

vi /etc/mysql/my.cnf

[...]
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
#bind-address           = 127.0.0.1
[...]

Then we restart MySQL:
/etc/init.d/mysql restart

Now check that networking is enabled. Run
netstat -tap | grep mysql

Install Apache2, PHP5, phpMyAdmin, FCGI, suExec, Pear, And mcrypt

Apache2, PHP5, phpMyAdmin, FCGI, suExec, Pear, and mcrypt can be installed as follows:

apt-get install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imap phpmyadmin php5-cli php5-cgi php5-curl libapache2-mod-fcgid apache2-suexec php-pear php-auth php5-mcrypt mcrypt php5-imagick imagemagick libapache2-mod-suphp libruby libapache2-mod-ruby libapache2-mod-python libapache2-mod-perl2

You will see the following question:

Web server to reconfigure automatically: <– apache2
Configure database for phpmyadmin with dbconfig-common? <– No

Restart Apache afterwards:
/etc/init.d/apache2 restart

Xcache

Xcache is a free and open PHP opcode cacher for caching and optimizing PHP intermediate code. It’s similar to other PHP opcode cachers, such as eAccelerator and APC. It is strongly recommended to have one of these installed to speed up your PHP page.

Xcache can be installed as follows:
apt-get install php5-xcache

Now restart Apache:
/etc/init.d/apache2 restart

To use PHP-FPM with Apache, we need the mod_fastcgi Apache module (please don’t mix this up with mod_fcgid – they are very similar, but you cannot use PHP-FPM with mod_fcgid). We can install PHP-FPM and mod_fastcgi as follows:

apt-get install libapache2-mod-fastcgi php5-fpm

Make sure you enable the module and restart Apache:
a2enmod actions fastcgi alias
/etc/init.d/apache2 restart

Install PureFTPd

PureFTPd can be installed with the following command:
apt-get install pure-ftpd-common pure-ftpd-mysql

Install Vlogger, Webalizer, And AWstats

Vlogger, webalizer, and AWstats can be installed as follows:

apt-get install vlogger webalizer awstats geoip-database libclass-dbi-mysql-perl

Open /etc/cron.d/awstats afterwards…

vi /etc/cron.d/awstats

… and comment out everything in that file:

#MAILTO=root
#*/10 * * * * www-data [ -x /usr/share/awstats/tools/update.sh ] && /usr/share/awstats/tools/update.sh
# Generate static reports:
#10 03 * * * www-data [ -x /usr/share/awstats/tools/buildstatic.sh ] && /usr/share/awstats/tools/buildstatic.sh

Install fail2ban

apt-get install fail2ban

So you wanna be a hacker

Posted: 16th September 2012 by Jab in Stuff I see at work, Ubuntu
Tags: , , ,

You lose your Windows password(s) and cannot log in to your machine. If you have a rescue disk, you should be okay. If not, you might have to turn to Linux for help.

The method that I describe in this tutorial can work with a Windows machine that either dual boots with Linux or does not. If the machine in question does not dual boot, you will need to download a live edition of a Linux distribution (I prefer Ubuntu for the task) and burn that ISO image to a disk (you could also use a Linux distribution on a USB drive). Either way, you will need to boot in to Linux to recover your password.

Step 1: Boot in to Linux

Put the burned disk in the drive (or boot from USB) and boot in to the Live edition of Linux. You should use the standard Live session.

Step 2: Find the Windows partition

Open Nautilus (the GNOME file manager) and follow these steps:

  1. Hit the Ctrl-L key combination to open the Location bar (Figure A).
  2. Enter the string “computer:///” (no quotes).
  3. Locate the drive (or partition) that contains your Windows installation.
  4. Right-click the Windows drive icon and click Mount.
  5. Double-click the icon to open the Windows drive (or partition) and make note of where the drive is mounted (it will be listed in the location bar).

The drive in question on my system is the far left icon. (Click the image to enlarge.)

Step 3: Get to the command line

It’s time to open a terminal window and begin (or continue) your journey into the Linux command line. You must install the small tool called chntpw. To install this application, issue the command: sudo apt-get install chntpw. With that application installed, you are ready to go. Follow these steps to get the password changed:

  1. Change into the directory containing Windows with the command cd /PATH/TO/WINDOWS (PATH/TO/WINDOWS is the complete directory path to your Windows drive).
  2. Change into the Windows/System32/config directory.
  3. Issue the command sudo chntpw SAM.

You should now see the chntpw screen (Figure B). Here you have five options:

  • Clear user password
  • Edit user password
  • Promote user (make user an administrator)
  • Unlock and enable user account
  • Quit

Figure B

You do not want to make changes here, because this could wipe all users’ passwords — make sure you are working with a specific user. (Click the image to enlarge.)

Enter “q” for quit. We’re going to make sure we are working with a specific user. To list out all users in the SAM file, issue the command sudo chntpw -l SAM. This will list out all of the users on the system. As you can see in Figure C, my name is listed as one of the users. Figure C

This listing will also tell you how many failed login attempts have been made. (Click the image to enlarge.)

To work with a specific user, issue the command sudo chntpw -u “USER NAME” SAM (USER NAME is the actual username). If the username is only one word, you will not need the quotes. If the username is a full name, place it within quotes or the command will not work. Once you are back in the edit screen, do the following:

  1. Type “2” (no quotes) to go into edit mode.
  2. Type the new user password.
  3. Hit the Enter key.
  4. Type “y” (no quotes) followed by Enter to write the file.

Your Windows User password should be changed. Reboot into Windows to make sure the edit worked. If it did not work, go through the steps once again and, this time, blank the password instead of editing it. To blank the password, do the following:

  1. Enter the edit screen for the specific user.
  2. Type “1” (no quotes).
  3. Hit Enter.
  4. Type “y” (no quotes).
  5. Hit Enter.

At this point the user account should have no password. You can reset the password once you successfully log in to Windows.

Source: https://www.techrepublic.com/blog/tr-dojo/reset-windows-passwords-with-the-help-of-linux/

DO NOT wash your hair in the shower!!

Posted: 1st May 2012 by Jab in Casual

Do not wash your hair in the shower!!
It’s so good to finally get a health warning that is useful!!!
IT INVOLVES THE SHAMPOO WHEN IT RUNS DOWN YOUR BODY WHEN YOU SHOWER WITH IT.

WARNING TO US ALL!!!

Shampoo Warning! I don’t know WHY I didn’t figure this out sooner! I use shampoo in the shower! When I wash my hair, the shampoo runs down my whole body, and printed very clearly on the shampoo label is this warning,

“FOR EXTRA BODY AND VOLUME.”

No wonder I have been gaining weight! Well! I got rid of that shampoo and I am going to start showering with Dawn Dishwashing Soap. It’s label reads,

“DISSOLVES FAT THAT IS OTHERWISE DIFFICULT TO REMOVE.”

Problem solved!

Weekly update – Down 5lbs

Posted: 19th March 2012 by Jab in Biking, Weight Loss
Tags: ,

So here is my weekly workout –

Last week between 3.14 – 3.17

22.12 – Total Miles
2.43 – Total Hours
5 – Workouts
956 – Total Calories

Today when I weighed myself on the scale it said 257.5 – Not too back thats down about 5 lbs.

Too bad it was raining today on my way to work .. maybe Ill go home on my lunch and ride back in. Gotta get those workouts in for this whole week.

 

Back to riding

Posted: 17th March 2012 by Jab in Biking, Weight Loss
Tags: ,

Took a couple of days off to heal from the biking – but decided to get right back into it because I am serious about getting some of this weight off. So rode my bike to work today for the first time – wasn’t too bad. Can’t wait for the weather to get warmer so I can ride everyday.  Here are the stats –

To work:
3.84mi – Distance
23:11 – Duration
9.9mi/h – Avg Speed
152 – Calories burned

You can track it here

On my way home:

3.95mi – Distance
25:04 – Duration
9.4mi/h – Avg Speed
164 – Calories burned

You can track it here

Took another ride today

Posted: 15th March 2012 by Jab in Biking, Weight Loss
Tags: ,

So decided to ride on the trail by my home – the Jordan River Trail – I have to say it was pretty nice. Kinda reminded me of the Santa Cruz Trail in Tucson, but with water. Here are the stats for this ride.

6.54 – Miles
44:02 – Time
8.9 mi/hr – Average Speed
289 – Calories burned

You can track it here

For some reason it did not store the trail I took .. ohh well

It is starting to feel good getting back on the bike and riding again – Although I don’t remember the seats being so uncomfortable – maybe its just because my back side got a little bigger.

First bike ride today

Posted: 14th March 2012 by Jab in Biking, Weight Loss
Tags: ,

Rode my bike into work today to see how long it would actually take me – here are the stats

3.87 – Miles
25:27 – Time
9.1 mi/hr – Average Speed
167 – Calories burned

You can track it here

Then I rode back after having breakfast with my brother – here are those stats

3.92 – Miles
28:07 – Time
8.4 mi/hr – Average Speed
184 – Calories burned

You can track it here

Man was that rough – Im sure in time it will come down

 

Got a new Bicycle

Posted: 13th March 2012 by Jab in Biking, Casual, Weight Loss

Got a new bicycle today – I will be using this to get myself into shape — it has been like 18 years since I rode a bike and can’t wait to start riding again.

Workout will begin tomorrow so here are my stats to start the week off.

Current weight is 263lbs.