Posts Tagged ‘HowTo’

Upgrading to WordPress v3.0.X via Command-Line

Preparing your WordPress Upgrade

From time to time you may want to update your WordPress installation to the latest version. You might want to do this because you’ve seen a message at the top of your Dashboard telling you that a new release is available, because you’ve been made aware of some useful new functionality, or because a security fix has been released.

Check Requirements

Whatever the reason for updating, before getting started it is best to check the current minimum requirements page first to make sure that your web host has the required versions of PHP and MySQL. (If you are not sure, then your hosting provider should be able to tell you.)

Take a Backup

The next thing to do is to take a backup of your database. All your posts and Pages are held in the database, so you will need to have a copy of it in case, for whatever reason, you change your mind after upgrading and need to go back. If you are not sure how to backup your database, then complete instructions can be found in the WordPress Backups section of the Codex.

Disable Plugins

The final preperation step is to disable plugins. Now, you don’t have to do this, but every now and again a plugin hasn’t been updated to work with the latest version of WordPress, and causes a problem after the upgrade. So, it’s best to try and avoid that, yes? You can easily disable your plugins by heading to the Manage Plugins page in the Dashboard, changing the “Bulk Actions” pull down menu to “Deactivate” and clicking “Apply”.

Ready to Update

Now that you’ve checked that you’re ready to update, you’ve turned off your plugins and you’ve got your backup, it’s time to get started.

Step 1: Download & unzip the WordPress package from:

http://wordpress.org/download/

  • If you will be uploading WordPress to a remote web server, download the WordPress package to your computer with a web browser and unzip the package.
  • If you will be using FTP, skip to the next step – uploading files is covered later.
  • If you have shell access to your web server, and are comfortable using console-based tools, you may wish to download WordPress directly to your web server using wget (or lynx or another console-based web browser) if you want to avoid FTPing:
    • wget http://wordpress.org/latest.tar.gz
    • Then unzip the package using:
    • tar -xzvf latest.tar.gzThe WordPress package will extract into a folder called wordpress in the same directory that you downloaded latest.tar.gz.
    • Delete the old wp-includes and wp-admin directories on your web host (through your FTP or shell access).

Then, run the following commands to unpack and copy the contents into your web directory.

tar -xzvf latest.tar.gz
sudo cp -R wordpress/* /var/www/

  • If you do not have shell access to your web server, or you are not comfortable using console-based tools, you may wish to deploy WordPress directly to your web server using ZipDeploy.

Step 2: Update your installation files

This will update your database to be compatible with the latest code

Visit your main WordPress admin page at /wp-admin. You may be asked to login again. If a database upgrade is necessary at this point, WordPress will detect it and give you a link to a URL like http://example.com/wordpress/wp-admin/upgrade.php. Follow that link and follow the instructions. You should do this as soon as possible after step 1.

That’s it, you’re complete!

7-Ways In Keeping Your Computer Safe

# 1. Strong Passwords
# 2. Give a separate user account to each person
# 3. Keep your software up to date
# 4. Lock your screen while away
# 5. Set up a firewall
# 6. Avoid Internet nuisances and crime
# 7. Make backup copies of your files

MACchanger | Utility For Manipulating The MAC Address Of Network Interfaces, Included GUI Utility

A GNU/Linux utility for viewing/manipulating the MAC address of network interfaces

Features

* Set specific MAC address of a network interface
* Set the MAC randomly
* Set a MAC of another vendor
* Set another MAC of the same vendor
* Set a MAC of the same kind (eg: wireless card)
* Display a vendor MAC list (today, 6800 items) to choose from

Possible usages

These are some examples:

* You’re in a DHCP network with some kind of IP-based restriction
* You’ve a cluster that boot with BOOTP and you want to have a clean set of MACs
* Debug MAC based routes

Install macchanger in Ubuntu

sudo apt-get install macchanger macchanger-gtk

Command line Examples

# macchanger eth1

Current MAC: 00:40:96:43:ef:9c [wireless] (Cisco/Aironet 4800/340)
Faked MAC: 00:40:96:43:ef:9d [wireless] (Cisco/Aironet 4800/340)

# macchanger –endding eth1

Current MAC: 00:40:96:43:e8:ec [wireless] (Cisco/Aironet 4800/340)
Faked MAC: 00:40:96:6f:0f:f2 [wireless] (Cisco/Aironet 4800/340)

# macchanger –another eth1

Current MAC: 00:40:96:43:87:1f [wireless] (Cisco/Aironet 4800/340)
Faked MAC: 00:02:2d:ec:00:6f [wireless] (Lucent Wavelan IEEE)

# macchanger -A eth1

Current MAC: 00:40:96:43:39:a6 [wireless] (Cisco/Aironet 4800/340)
Faked MAC: 00:10:5a:1e:06:93 (3Com, Fast Etherlink XL in a Gateway)

# macchanger -r eth1

Current MAC: 00:40:96:43:f1:fc [wireless] (Cisco/Aironet 4800/340)
Faked MAC: 6b:fd:10:37:d2:34 (unknown)

# macchanger –mac=01:23:45:67:89:AB eth1

Current MAC: 00:40:96:43:87:65 [wireless] (Cisco/Aironet 4800/340)
Faked MAC: 01:23:45:67:89:ab (unknown)

# ./macchanger –list=Cray

Misc MACs:
Num MAC Vendor
— — ——
065 – 00:00:7d – Cray Research Superservers,Inc
068 – 00:00:80 – Cray Communications (formerly Dowty Network Services)
317 – 00:40:a6 – Cray Research Inc.

Macchanger GUI

You can open the gui by running the following command from your terminal

$ macchanger-gtk

Screenshot


Fix Firefox Slow Problem In Ubuntu 10.04 (Lucid)

Open your Firefox and type about:config in the address bar and hit enter. To make a False into True, select the line to change, and double click. On the 2nd option change, right click and select Modify

- network.http.pipelining > Make it True

- network.http.pipelining.maxrequests > Make it 8 or 10

- network.http.proxy.pipelining > Make it True

- network.dns.disableIPv6 > Make it True

I hope this helps for some users

Install Monitorix In Ubuntu 9.10 (Karmic) Server

Install Monitorix in Ubuntu 9.10 (Karmic) Server

Preparing your system

Install the following packages

sudo apt-get install rrdtool librrds-perl libwww-perl

Now you need to download Monitorix source package from here or use the following command

$ wget http://www.monitorix.org/monitorix-1.5.0.tar.gz

$ tar -zxvf monitorix-1.5.0.tar.gz

Go to the Monitorix directory and execute the install script.

$ cd monitorix-1.5.0

$ sudo ./install.sh

Welcome to Monitorix v1.5.0 installation process.

The install script has detected that this is a Linux operating system.

Currently Monitorix supports only the following Linux distributions:
1 – RedHat/Fedora/CentOS
2 – Generic
3 – Debian (Ubuntu)
4 – Gentoo
5 – Slackware

Please select your option:

Choose the option number 3 (Debian).

The following is a list of the default paths where the Monitorix components will be installed:

1 – /usr/bin
2 – /etc
3 – /etc/init.d
4 – /var/lib
5 – /usr/share/doc
6 – /var/www
7 – /usr/lib/cgi-bin
8 – /usr/share/man/man5

Last chance to stop the installation.
Are you sure to install Monitorix on the paths shown? [y/n]:

The list of paths should be correct. Press y.

Finally start Monitorix.

sudo service monitorix start

Now wait for a while and then go to http://localhost/monitorix/

Manually Update Your Verizon Droid To Android 2.1

It’s here. It’s finally, finally here. After countless rumor-fueled false starts and delays, the Android 2.1 update has finally started rolling out to Verizon Droid owners.

Unfortunately, it’s only been rolled out to around 8,000 Droids at this point — and considering that there are purportedly at least a million of these things floating around, that means the majority of people are still waiting for their update. Are you one of them? Fear not, friend! We’ve got all the details on how to manually update your Droid to the official, Verizon-and-Google-blessed build of Android 2.1.

All in all, it should take you about 10 minutes. There is no “hacking” required – your device doesn’t need to be rooted, overclocked, underpantsed, or what have you. This is the same package you’d be downloading from Verizon (it even comes from Google’s server!), just a whole lot sooner.

Here’s how to do it:

  • Download the update package from here. Don’t unzip it! If your browser automatically unzips things (like Safari on Mac, for example), use a different browser. It MUST stay zipped.
  • Rename the file from signed-voles-ESE81-from-ESD56.fa406da6.zip to update.zip. If you’re using an OS that doesn’t show the .zip extension, just rename it “update” — otherwise it’ll be called “update.zip.zip” and won’t work.
  • Take the microSD card from your phone, plug it into a microSD card reader.
  • Drag and drop the “update.zip” file into the main folder (otherwise known as the root folder) of your microSD card. Don’t go looking for a folder called “main” or “root” – we’re referring to the folder on your microSD card that holds all the other folders.
  • Turn your Droid off, and put the microSD card back in.
  • Hold down the letter “X” on the keyboard. While still holding it, turn your Droid back on. You should see an exclamation point icon appear on your screen.
  • Push the volume up button and the camera button at the exact same time. If nothing happens, do it again. When you get to the bootloader screen, you know it worked. (Some folks are reporting that you need to hold the volume up button and then tap the camera button right after. It’s a bit tricky, but it’ll work eventually.)
  • Use the d-pad to navigate to the “apply: update.zip” option, and choose the file you just dragged onto your microSD card.

Bam! Download, rename, reboot, hold a button, done. Could it get much simpler? As soon as the upgrade process finishes, you’ll be Android 2.1′d up and ready to go.

Enjoy!

How to change 'tzdata'

Current default time zone: ‘America/Los_Angeles’
Local time is now:      Wed Mar 10 19:09:24 PST 2010.
Universal Time is now:  Thu Mar 11 03:09:24 UTC 2010.
Run ‘dpkg-reconfigure tzdata‘ if you wish to change it.

Backup/Restore using .Tar

To ‘archive’ using .tar (use the below syntax)

tar cf archive.tar dir

To ‘extract’ using .tar (use the below syntax)

tar xf archive.tar

Purge all files of a package

sudo apt-get remove –purge package