Tuesday 11 September 2012

How To Create Windows 8 USB Installer

Below are the easy steps to create a Windows 8 bootable USB Installer. You need at least 4 GB USB Flash Drive and Windows 8 Installer. If your Windows 8 installer is an .iso file downloaded from MSDN or somewhere, you may mount it using a virtual CD/DVD manager. I use Portable WinCDEmu to mount mine. 

1. Plugin the USB Drive and make sure you have backup its contents coz it will be wiped out.
2. Run Command Prompt with admin rights. From the Start menu search box, type cmd and press Ctrl+ Shift+ Enter.
3. Type DISKPART in the command prompt.
4. Type LIST DISK to list your disk number and take note of that number. In my case its Disk 2.
 

Issue the ff. commands at the DISKPART prompt one by one.
     SELECT DISK 2 (replace DISK 2 with your disk #)
     CLEAN
     CREATE PARTITION PRIMARY
     SELECT PARTITION 1
     ACTIVE
     FORMAT FS=NTFS (this part may take some time)
     ASSIGN
     EXIT

5. Minimize the command prompt and load/mount your Windows 8 Installer
6. Restore/Maximize the command prompt.
7. Type D: and press enter (change D: with the drive letter of your Windows 8 Installer.)
8. Type CD Boot and press enter.
9. Type BOOTSECT.EXE /NT60 F: and press enter. (change the F with your usb flash drive letter.)
10. Copy all the content of your Windows 8 Installer to the usb flash drive.

That's it! Now you can boot and install Windows 8 from your newly created usb flash installer.


Friday 6 April 2012

Basic Linux Command Line Reference Guide


Basic Linux Command Line Reference Guide
A list of basic commands in linux command line to survive in day to day.

File/Directory Basics
  • ls - List files
  • cp - Copy files
  • mv - Rename files
  • rm - Delete files
  • ln - Link files
  • cd - Change directory
  • pwd - Print current directory name
  • mkdir - Create directory
  • rmdir - Delete directory
File Viewing
  • cat - View files
  • less - Page through files
  • head - View file beginning
  • tail - View file ending
  • nl - Number lines
  • od - View binary data
  • xxd - View binary data
  • gv - View Postscript/PDF files
  • xdvi - View TeX DVI files
File Creation and Editing
  • emacs-  Text editor
  • vim - Text editor
  • umask - Set default file protections
  • soffice - Edit Word/Excel/PowerPoint docs
  • abiword - Edit Word documents
  • gnumeric - Edit Excel documents
File Properties
  • stat - Display file attributes
  • wc - Count bytes/words/lines
  • du - Measure disk usage
  • file - Identify file types
  • touch - Change file timestamps
  • chown - Change file owner
  • chgrp - Change file group
  • chmod - Change file protections
  • chattr - Change advanced file attributes
  • lsattr - List advanced file attributes
File Location
  • find - Locate files
  • slocate - Locate files via index
  • which - Locate commands
  • whereis - Locate standard files
File Compression
  • gzip - Compress files (GNU Zip)
  • compress - Compress files (Unix)
  • bzip2 - Compress files (BZip2)
  • zip - Compress files (Windows Zip)
File Comparison
  • diff - Compare files line by line
  • comm - Compare sorted files
  • cmp - Compare files byteby byte
  • md5sum - Compute checksums
Disks and Filesystems
  • df - Show free disk space
  • mount - Make a disk accessible
  • fsck - Check a disk for errors
  • sync - Flush disk caches 
 Backups and Remote Storage
  • mt - Control a tape drive
  • dump - Back up a disk
  • restore - Restore a dump
  • tar - Read/write tape archives
  • cdrecord - Burn a CD
  • rsync - Mirror a set of files


Thursday 5 April 2012

Simple NAS

I have a home network with several Windows client and sharing the files through Windows simple file sharing. Tons of audio, photo, video and application files are stored in different client machines. So, if we need to access the files we have to open the other PC. I was thinking, why would I not create a NAS to centralized the files. NAS or Network Attached Storage is computer attached to a network whose main purpose is to provide data storage. That’s the simplest that I can describe it. My considerations are: It should be cheap, has less power consumption and reliable.

I have an old laptop which is still functional except the lcd screen is busted, its a perfect candidate for the project since it doesn’t have a monitor, it will be accessed remotely via ssh. Maybe I will use Putty for the task. Next is choosing which distro to use. I am a Windows user since I can remember and occasionally testing various Linux distro. Since my server will be an old and cranky laptop, Windows Home Server is out of consideration plus I will spend another bucks for it. I am not a Linux user myself but maybe its time to take a shot once more and try to learn it. There are several distros around that can be use like FreeNAS, Openfiler, Turnkey etc. In the end, I ended up using Debian(Squeeze) after playing with FreeNAS. FreeNAS is good, you can read all the positive reviews it got in the Linux community but I just can’t make it right to run in my laptop. I got several errors after errors so I ended using the Debian.

Here is the specs of the laptop that I use:

Processor
Intel Pentium M 1.2 GHz
400.0 MHz
Intel 855PM
RAM
384.0 MB DDR SDRAM
Storage
The laptop has 40GB HDD and I will be attaching external HDD to store the files.

Now the fun begins here.
Downloading the Installer
I downloaded the latest Debian netinst.iso in the Debian‘s webpage. I choose the netinst since I will only intall a very minimal apps and will run it in console mode only. I don’t plan to install X Server for one reason my, machine is old and it will eat up a lot of my precious resources and it will only be serving files anyway.

Installing Debian
Instead of using a cd for the installation, I created a bootable usb installer using UNetbootin you can download their windows version and follow the tutorial in their site. Believe me, it’s very straight forward and easy to use. There are many blogs and “How To’s” that you can follow for the installation just use Google to find it.
I will be installing the ff:
  • Samba for Windows File Sharing
  • rtorrent for downloading and seeding torrents
  • mpg123 for playing mp3 (so I don’t have to open my pc just to listen to my collections)