How to unzip files contained in a zip archive

Many people struggle when faced with a zip file and don’t understand what to do with it. I’ll try to explain and look at options for different devices.

Why use zip and what is it?

When you want to download large or small files to your Windows or Mac PC or tablet computer, the standard format is a compressed file such as zip. There are other compressed file formats such as rar, gzip, 7-zip and many others, but they are all effectively a ‘container’ for the files that you ultimately want to download.

how to unzip 7zipWe use zip to reduce the overall file size and make the transfer over the internet much quicker. The files can then be extracted from their container (the zip file) by ‘unzipping’. This is also known as extracting or decompressing. To do this, we use a utility program such as 7Zip.  There is also built-in unzipping in Windows XP, Vista, Windows 7 and Windows 8, although it is not as competent as the 7zip program. 7zip is completely free, it’s stable and reliable and it can be installed on any Windows computer. Download it here:

https://www.7-zip.org/  (opens in a new window for you).

Make sure you get the correct version for your computer, there are 2 versions – 32 and 64 bit. If in doubt, get the 32 bit.

Using 7Zip to compress and extract files

Look at this video that explains both in detail:

How do I unpack zipped or compressed files on my Android device?

The Android operating system does not come with an unzipping program but you can download them from Google Play. Look at WinZip, AndroZip File Manager or WinRAR. As usual, note that some applications on Google Play are free but many carry advertising or a hidden price.

To download and install them, visit Play Store from your Android device’s home screen. Check user reviews if you are unsure which to go for.

Personally, I like to unzip the files on my desktop PC and send them to the tablet using a file sharing and syncing utility such as Dropbox (free) or the excellent Livedrive (Free trial). This type of seamless file sharing is such an aid to moving files around devices you own and also backs up these files in ‘the cloud’.

Using WinZip to create a zip archive

WinZip is proprietary software that has an evaluation period. This allows you to use the program for free for a limited time, after which you should purchase a licence.

For Windows 7, Windows 8 or Vista

Tip – hold down Ctrl and left click to select multiple files at once.

  • Open WinZip and select Add files
  • Choose the first file you want to add and click Zip
  • Choose a name and where to save your zip archive then click Create
  • Click Add files to choose another file Zip to add it to the archive
  • Repeat until all of your files have been added

For Windows XP

  • Open WinZip and select New
  • Choose a name and where to save your zip archive then click Ok
  • Choose the first file you want to add and click Add
  • To add more files, click the Add button in WinZip and choose another file

Using 7-Zip to create an archive

7-Zip is free software that allows you to create and view many types of archive formats including zip.

Tip – hold down Ctrl and click to select multiple files at once.

  • Select the files on your computer
  • Right click on the highlighted files and choose 7-Zip then Add to archive
  • Under Archive choose a name for your file and where you want to save it
  • Change the archive format to zip, everything else can be left as the default values
  • Click Ok

 

Hope this helps you to understand and use zip files.


Install mod_GeoIP2 on Apache2 in CentOS 7

geoip-centos

If you need to install the excellent mod_geoip2 extension for Apache2 then it can be done fairly painlessly. First off, we need to make sure that we have gcc installed:
[crayon-5cbdbad65b027630105584/]
 

If you don’t have it then you could ‘yum install gcc’, but I prefer to install all development tools because they include gcc anyway:
[crayon-5cbdbad65b030365365649/]
 

Install the GeoIP development package
[crayon-5cbdbad65b032735344637/]
 

Install mod_geoip2 by fetching the latest version with wget. To check the latest version, take a look here first:

https://github.com/maxmind/geoip-api-mod_geoip2/releases

 

I’m installing 1.2.10 here with this, but replace the code in lines 1, 2 and 3 here with their latest version:
[crayon-5cbdbad65b033578374843/]
 

Now we use the apxs (Apache Extension Tool) to build our extension modules for Apache:
[crayon-5cbdbad65b035406054885/]
 

If you haven’t got apxs then you’ll need to install httpd-devel.

Be aware that this overwrites httpd so backup your server in case this fails or you get strange results.
[crayon-5cbdbad65b036313180327/]
 

If this fails with “Error: Nothing to do”, then it’s fairly common. You’ll probably find that /etc/yum.conf is blocking the installation. We can get around this by either editing the configuration file or typing:
[crayon-5cbdbad65b038205247811/]
 

You should now have mod_geoip2 installed on your server!


Centrino Duo laptop Windows 7 64 bit compatible

intel centrino duo windows 7I had a laptop PC in today, a Toshiba Tecra A8 running Windows XP with a Centrino Duo sticker on it. The customer wanted to upgrade to Windows 7 64 bit but wasn’t sure if it would be supported. Even running the Windows upgrade advisor made him none the wiser.

I explained that the Centrino Duo name doesn’t necessarily mean that the processor has a true dual core, only the core 2 duos would have this. Centrino is only a sticker branding, really only relating to usage of the Intel Wifi and WiMax brands. To run Win 7 64 Bit he would need a processor of this ilk:

  • T5500
  • T5600
  • T7200
  • T7400
  • T7600

Luckily, on further investigation, his Tecra A8 shipped with a T5500 which is a true Core 2 Duo processor. Only the Core 2 Duos incorporate the 64 bit extensions that allow them to run 64 bit software, not the Core Duos. He had previously had an upgrade from us that upped his RAM to 4 GB so this laptop was a suitable candidate for the upgrade to Win 7.

An hour later he left the shop with a newly installed Windows 7 system on his Toshiba Tecra A8 which ran nice and smooth.


Who or what is [email protected]?

 

root notty whm ssh hackedIf you’re looking through WHM’s process manager and you see [email protected] mentioned as one of the processes, don’t be alarmed. It’s perfectly normal and it’s definitely not some hacker called ‘Notty’ who has suddenly got root permissions. Be honest, you’re here because you thought that 😉

You may also have seen sshd: [email protected] in the output of ps aux too.

Why notty?

The term ‘notty’ just represents ‘no tty’ which roughly translates as meaning ‘no terminal’. When you login locally to any Linux machine the terminal will always appear in the process list as ‘tty’. If a connection is made via SFTP or you are copying files with SCP (as I did here on a test server prior to bringing up the screenshot above) then it will show as no tty (notty).

Where does TTY come from?

Many years ago, user terminals that were connected to computers were clunky and noisy Electro-mechanical Teleprinters also known as Teletypewriters. They took the latter phrase and chopped some characters out to get the TTY abbreviation:

TeleTYpewriter = TTY

Since then, TTY has been used as the shortened name for a text-only console. Here’s a teletypewriter in action:

 

 

Now you can’t say that things haven’t progressed!

 

 


Use linux boot disk to repair a Windows NTFS disk fault

Yes, you can use a Linux boot CD to repair a Windows NTFS disk fault. Linux ships with a utility called badblocks. Badblocks is a Linux command in its own right that has several different modes to be able to detect bad sectors on our hard disk. Once found, it saves the references to these bad sectors in a text file so we can tell the operating system to avoid storing data on them.

For the explanation below though, I’ll be using the fsck command. Why’s that? Well fsck is a really powerful command that actually runs those relatively complicated badblocks commands for you, checking or repairing errors in your filesystem and doing all the leg work for you.

Geek fact – fsck stands for “File System Consistency checK” which you can amaze your friends down the pub with. Or not…

Let’s open a terminal window and fire up this bad boy then. You’ll need superuser/root permission to run each of these commands so I’ll add ‘sudo’ into them all. I like to start by running the parted command to list my drives:
[crayon-5cbdbad65baff131385735/]
This should output the installed drives to the screen so you can note down which one you want to work with.

Now let’s run fsck on the disk. Please note that this can take several hours depending on the speed of your system, the size and speed of your disk. If no filesystems are specified on the command line, and the -A option is not specified, fsck will default to checking filesystems in /etc/fstab serially.

IMPORTANT – We must unmount the disk first or data corruption may happen. To do this, open a terminal window and type:
[crayon-5cbdbad65bb06347500263/]
Replace “sda1” with the disk you need to repair. Now we can run the fsck command safely against the drive:
[crayon-5cbdbad65bb08043040089/]
This fsck command forces automatic bad block checking and it automatically marks all known bad sectors as bad too.

The switch options I often use are:

-m  I use this for safety because if the drive is mounted you won’t be able to scan (and corrupt) it this way.

-c   Displays completion/progress bars

-f   Force a check even if it is clean

-v  Verbose, because I like to see words!

 If you’re booting back into Linux, make sure that smartmontools is installed and enabled:
[crayon-5cbdbad65bb0a128235810/]
Enable “SMART” in your BIOS if it isn’t already and run an extended offline test with:
[crayon-5cbdbad65bb0b458579084/]
To see a nice overall view of system health, type:
[crayon-5cbdbad65bb0c952980291/]
Have a look at the relevant manpages for more info:
[crayon-5cbdbad65bb0e062060196/]
 

In my repair shop I only use HDD Regenerator these days.  It’s a bootable software that can fix errors on all types of disk, formatted in all manner of filesystems as used by Linux, Mac, Windows and more. We have this loaded on our drive test rig and repair hard drives daily with it.

If you want to make it easy and have a USB/CD/DVD bootable tool that will work safely on all the drives it comes up against I’d suggest you look at my hdd regenerator review here or buy it direct from their website here

  
 


Cheapest Norton 360 renewal

cheap norton security discountI’m frequently asked by customers how to get the cheapest renewal price on Norton 360.  Symantec’s renewal price is really one of the highest for any Internet Security product.  It is a capable package though and worth keeping on your PC. The best way by far is to purchase a new fully licensed program at a reduced price and install that. Nothing underhand, just a new product at a price much lower than Norton currently quote for renewal.

The beauty of this is that you don’t have to uninstall your current product if it is the same ‘family’ as the one you are installing, simply match the product family. For example, if you have Norton Security, get a Norton Security package with any version number as they all qualify for Norton’s free upgrade to the latest version anyway! If you have the older Norton 360 then get Norton Security and uninstall Norton 360 first.

Do Norton really offer a free upgrade?

Yes, most versions of Norton qualify for a free upgrade to the latest version in that product family. If you download the latest installation program, Norton will auto-detect and remove your older version and then install the newer one too, making it even simpler to install.

Please note

You can change to another security software at this point. From doing lots of virus clean-up work and labs testing, I would recommend uninstalling the Norton product and installing my preferred security suite and consistent labs test winner Kaspersky Total Security. Norton is quite capable but Kaspersky definitely has the edge on speed and low resource usage.

A word of warning. Norton products such as Norton 360, Norton Internet Security and Norton Antivirus are now retired in favour of “Norton Security” and “Norton Security with Backup”. Confused? This article explains more: New Norton product family (opens in a new window).

So to recap, if your Norton 360 has expired, then take a look in my software shop (opens in a new tab) and buy either a Norton or Kaspersky product at prices cheaper than Symantec’s renewal rates. If you want to upgrade to another software product (such as Kaspersky) then simply uninstall the existing Norton software, restart the computer and then install the Kaspersky product.

Don’t forget to ‘Tweet’ or Facebook ‘like’ this article if it saved you some cash!

Shop for Norton products now


Outlook emails stay in Outbox after Windows 10 upgrade

email-settings-pop-imap-btconnect-outlookAre you getting your Outlook emails stuck in your Outbox after upgrading to Windows 10? I’ve seen this happen on several machines and it really seems to be a problem where Windows corrupts the Outlook database and/or profile on many versions of Microsoft Office (2007, 2010 and 2013). The easiest fix and one that I’d recommend here is to delete or move the stuck emails then close all programs that are open such as Outlook.

Now we can use the in-built Windows “System File Checker” that will scan your PC and repair any corrupt files that it finds. To do this:

  • Click Start
  • Type cmd in the Search box
  • Right-click Command Prompt and then click ‘Run as administrator’. If you are prompted for an administrator password or for a confirmation then type the password or click ‘Allow’
  • In this black window (the command prompt) that appears, type in sfc /scannow noting the space before the forward slash
  • Press enter and go and grab a delicious cup of coffee because this will take a while

Note: Do not close this Command Prompt window until the verification is 100% complete. The scan results will be shown after this process is finished.

Technical information for nerds
The sfc /scannow command will scan all protected system files, and replace corrupted files with a cached copy that is located in a compressed folder at %WinDir%\System32\dllcache.
The %WinDir% placeholder represents the Windows operating system folder. For example, C:\Windows.

The time taken to complete this scan is different on every PC but usually can range from 20 minutes to an hour or more. If it solves your problem (which it has on over 50 client PCs to date) then please take a minute to drop a comment below or maybe buy something through our shop to say thanks.

 


Reset Windows Server 2012 Administrator password

server 2012 password resetTo reset the Administrator password on your Windows server 2012 installation, you’ll need to do the following:

Boot from the Microsoft Windows Server 2012 DVD

  1. From the Windows setup menu, click “Next”
  2. Select “Repair your computer”
  3. Click on “Troubleshoot”
  4. Under Advanced options, click “Command Prompt”
  5. Type “diskpart” and hit Enter
  6. Type “list volume” and hit Enter. This will show you your (current) drive letter allocated to the drive where Windows is installed. Note  – if you don’t see any volumes listed and this is the first boot cycle for a new Server 2012 installation, then I have seen this on a few HP servers and you’ll need to go and run the setup again from within the Intelligent Provisioning area.
  7. Make a note of the drive letter and type “exit” then press enter to leave diskpart (but stay in the command prompt window)
  8. Presuming the letter is d, then type “d:” and press enter to change to this drive
  9. Now type  “cd Windows\system32” and press enter which will take you into the system32 folder
  10. Type “ren Utilman.exe Utilman.bak” and press enter
  11. Type “copy cmd.exe Utilman.exe” and press enter
  12. Close the command prompt and then click “Continue”
  13. The server should now reboot to the logon screen. Press the Windows key + u to open a command prompt
  14. At the prompt you can change the password by typing “net user administrator xyz” where xyz is your new super-secure password!
  15. Now, for security we must do one last thing. Once we are back in Windows, open Explorer, navigate to Windows\system32 and rename Utilman.bak to Utilman.exe

 

Hopefully this gets you out of a sticky situation, leave me a comment if it has helped.

 


Country codes for mod_security, CSF and htaccess

Her’s a list of useful country codes that we can use in many rule-based filtering situations on servers.

AD Andorra
AE United Arab Emirates
AF Afghanistan
AG Antigua and Barbuda
AI Anguilla
AL Albania
AM Armenia
AN Netherlands Antilles
AO Angola
AQ Antarctica
AR Argentina
AS American Samoa
AT Austria
AU Australia
AW Aruba
AZ Azerbaijan
BA Bosnia and Herzegovina
BB Barbados
BD Bangladesh
BE Belgium
BF Burkina Faso
BG Bulgaria
BH Bahrain
BI Burundi
BJ Benin
BM Bermuda
BN Brunei Darussalam
BO Bolivia
BR Brazil
BS Bahamas
BT Bhutan
BV Bouvet Island
BW Botswana
BY Belarus
BZ Belize
CA Canada
CC Cocos (Keeling) Islands
CF Central African Republic
CG Congo
CH Switzerland
CI Cote D’Ivoire (Ivory Coast)
CK Cook Islands
CL Chile
CM Cameroon
CN China
CO Colombia
CR Costa Rica
CS Czechoslovakia (former Republic)
CU Cuba
CV Cape Verde
CX Christmas Island
CY Cyprus
CZ Czech Republic
DE Germany
DJ Djibouti
DK Denmark
DM Dominica
DO Dominican Republic
DZ Algeria
EC Ecuador
EE Estonia
EG Egypt
EH Western Sahara
ER Eritrea
ES Spain
ET Ethiopia
FI Finland
FJ Fiji
FK Falkland Islands (Malvinas)
FM Micronesia
FO Faroe Islands
FR France
FX France, Metropolitan
GA Gabon
GB Great Britain (UK)
GD Grenada
GE Georgia
GF French Guiana
GH Ghana
GI Gibraltar
GL Greenland
GM Gambia
GN Guinea
GP Guadeloupe
GQ Equatorial Guinea
GR Greece
GS S. Georgia and S. Sandwich Isls.
GT Guatemala
GU Guam
GW Guinea-Bissau
GY Guyana
HK Hong Kong
HM Heard and McDonald Islands
HN Honduras
HR Croatia (Hrvatska)
HT Haiti
HU Hungary
ID Indonesia
IE Ireland
IL Israel
IN India
IO British Indian Ocean Territory
IQ Iraq
IR Iran
IS Iceland
IT Italy
JM Jamaica
JO Jordan
JP Japan
KE Kenya
KG Kyrgyzstan
KH Cambodia
KI Kiribati
KM Comoros
KN Saint Kitts and Nevis
KP Korea (North)
KR Korea (South)
KW Kuwait
KY Cayman Islands
KZ Kazakhstan
LA Laos
LB Lebanon
LC Saint Lucia
LI Liechtenstein
LK Sri Lanka
LR Liberia
LS Lesotho
LT Lithuania
LU Luxembourg
LV Latvia
LY Libya
MA Morocco
MC Monaco
MD Moldova
MG Madagascar
MH Marshall Islands
MK Macedonia
ML Mali
MM Myanmar
MN Mongolia
MO Macau
MP Northern Mariana Islands
MQ Martinique
MR Mauritania
MS Montserrat
MT Malta
MU Mauritius
MV Maldives
MW Malawi
MX Mexico
MY Malaysia
MZ Mozambique
NA Namibia
NC New Caledonia
NE Niger
NF Norfolk Island
NG Nigeria
NI Nicaragua
NL Netherlands
NO Norway
NP Nepal
NR Nauru
NT Neutral Zone
NU Niue
NZ New Zealand (Aotearoa)
OM Oman
PA Panama
PE Peru
PF French Polynesia
PG Papua New Guinea
PH Philippines
PK Pakistan
PL Poland
PM St. Pierre and Miquelon
PN Pitcairn
PR Puerto Rico
PT Portugal
PW Palau
PY Paraguay
QA Qatar
RE Reunion
RO Romania
RU Russian Federation
RW Rwanda
SA Saudi Arabia
Sb Solomon Islands
SC Seychelles
SD Sudan
SE Sweden
SG Singapore
SH St. Helena
SI Slovenia
SJ Svalbard and Jan Mayen Islands
SK Slovak Republic
SL Sierra Leone
SM San Marino
SN Senegal
SO Somalia
SR Suriname
ST Sao Tome and Principe
SU USSR (former)
SV El Salvador
SY Syria
SZ Swaziland
TC Turks and Caicos Islands
TD Chad
TF French Southern Territories
TG Togo
TH Thailand
TJ Tajikistan
TK Tokelau
TM Turkmenistan
TN Tunisia
TO Tonga
TP East Timor
TR Turkey
TT Trinidad and Tobago
TV Tuvalu
TW Taiwan
TZ Tanzania
UA Ukraine
UG Uganda
UK United Kingdom
UM US Minor Outlying Islands
US United States
UY Uruguay
UZ Uzbekistan
VA Vatican City State (Holy See)
VC Saint Vincent and the Grenadines
VE Venezuela
VG Virgin Islands (British)
VI Virgin Islands (U.S.)
VN Viet Nam
VU Vanuatu
WF Wallis and Futuna Islands
WS Samoa
YE Yemen
YT Mayotte
YU Yugoslavia
ZA South Africa
ZM Zambia
ZR Zaire
ZW Zimbabwe

A few lesser-used ones below, but for completeness here they are:

ARPA Arpanet
COM US Commercial
EDU US Educational
GOV US Government
INT International
MIL US Military
NATO Nato field
NET Network
ORG Non-Profit Organization


Crash Plan backup software full review

CrashPlan has been around for a while now and is looking like one of the best solutions out there for business and personal backups.

With no storage size limits, bandwidth caps or file-type restrictions, Crash Plan really has lots going for it. On top of this, there’s enterprise-class hardware and military-grade security with no extra fees payable.

What I particularly like about Crash Plan is that there is free backup to an external drive and any trusted, internet-connected computer. You can also subscribe to their robust cloud-based destination, “CrashPlan Central” and this is certainly worth the extra money. It’s as quick as any cloud-based backup we have tested and the interface is functional and quite slick.

See what Crash Plan can offer here


crashplan online backup