Thursday, June 27, 2013

BOOTMGR is missing


To fix BOOTMGR is missing of a Windows 7 operating system you must have the Windows 7 installer. This error usually happen when a computer is not properly shutdown or force shutdown results to corrupted file system or it can be an operating system upgrade. First thing to do is boot (F8, F12, esc and etc) it to Windows 7 installer. When you see the figure below just click next

Figure 1

then choose repair

Figure 2

After it will search for a system recovery option as shown below
Figure 3

Then choose the Window 7 operating system and click next. Sometimes it will ask you to restart before Figure 4 is shown, if that happens just restart and then do the same step until you reach Figure 4.
Figure 4
You can either choose Startup Repair or Command Prompt
Figure 5
In Startup Repair it automatically check errors and repair it as shown below
Figure 6
until it will show you that it is fix successfully  then click finish.
Figure 7

In command prompt you just need to type bootrec /fixboot and press enter. Restart and you are done.
Figure 8

Reference : 

Tuesday, June 18, 2013

Setting up Django in Eclipse

I am using Windows 8, Django 1.5.2, Eclipse IDE for Java EE Developers 64 bit, MySQL Workbench 5.2.47 CE, Python 2.7.5 64 bit since I can't get Python 3.3 to work because the requirement of MySQL-python-1.2.3.win-amd64-py2.7 is Python 2.7. ez_setup.py just copy and paste the content and save it as ez_setup.py same with get-pip.py and place it to where your Python27 folder is located, as for me it is in C:\Python27. Add: C:\Python27;c:\python27\scripts;c:\python27\bin to PATH. 

In your command prompt type cd C:\Python27 then python ez_setup.py. When it's done type python get-pip.py. Next is to install django just type in you command prompt pip install django

After the following software mentioned above are installed, in your Eclipse go to help and click eclipse market place as shown in Figure 1


Figure 1

  
Then in the search tab type Django and click install, in my case it is already installed, basically you will just have to click and agree to everything until you are ask to click finish.
Figure 2

Next is go to preference
Figure 3


In your preference window click PyDev and then choose Interpreter - Python then click Auto Config and basically just agree to what is ask and click that is related to your python 2.7. 
Figure 4



Then add Django folder to PYTHONPATH as shown in Figure 5, click ok and apply settings
Figure 5

In creating a new project just go to file, new then others, as shown below.
Figure 6
Then choose PyDev Django Project
Figure 7

Type in the project name. I choose python 1 because that is the file name of my interpreter where python27 is created, then click next
Figure 8


In Django Settings before you type in the info of your mysql details you have to create firs a database in MySQL Workbench, so basically in Figure 9 are the info of my mysql.
Figure 9


In MySQL Workbench configuration just click Create New EER Model
Figure 10


and double click mydb and type below the mysql database filename that you desire, in my case its coop as shown in Figure 9, then save your database.
Figure 11

After my project is created go to run configuration as shown below 
Figure 12

Then follow the image below
Figure 13


Just type in the name Django 1.5.1 and then browse the Django file in your computer as for me it is located in C:\Django-1.5.1 
Figure 14
click OK until you find the image below and you are ready for coding your Django


Resources: 
Django: Installing Eclipse and PyDev for djangoUsing Django 1.4 with EclipseInstall Django in Eclipse with PyDev on Windows 8

Monday, June 10, 2013

Saving and restoring image using Clonezilla Server in Ubuntu 12.04

I'm using Ubuntu 12.04 64 bit




After installing clonezilla server, in your terminal (Ctrl + Al t+ T)  type:
sudo su
type the password
dcs

it will show you Figure 1, select the "All select all the clients" and then follow the highlighted text in the figure


Figure  1

























Figure 2



Figure  3


This set-up will let your client choose individually whether to save or restore the image in your server


Figure  4


























To be safe I choose the default configuration
Figure  5

























Figure 6 will do nothing after restoring or saving the image, unless you type poweroff (that is one word)
Figure 6























Figure 7 shows that you are done for individual clients settimgs
Figure 7

























If you want to set-up more clients to save or restore at once, choose save disk or restore-disk 

In this example I will choose restore disk.


Figure 8














Figure 9


















Figure 10 shows the save image that you want to restore to your clients.

Figure10






















Figure 11















Figure 12 will ask you how many clients to clone
Figure 12
















In this Figure 13 I put 21 clients
Figure 13













Figure 14











You are done with restoring images.

In saving a file same step with restoring images, the only difference is it will ask you the file name as shown in Figure 15

Figure 15













Note: In setting up your client make sure that the OnBoard LAN is enable you can find this in your bios setup






Reference:
CloneZilla Saving and Installing image





Sunday, June 2, 2013

Clonezilla and GParted: Restoring Image From a Bigger Disk to a Smaller Disk

I'm using: GParted, Ubuntu 12.04, Clonezilla Server

Copy image file from a 500GB to a 320GB Hard Disk. Make sure that the files in 500GB should not exceed in 280GB. First thing you will do is reduce 500GB drive using gparted to 280GB. Next Save the newly created file to your clonezilla server. Then restore the file using the expert or advance mode, same steps on how to restore the image, then you will be shown this image
































just choose ok, then in the image below choose -k































next just choose the default settings or just press enter, and your image is ready to be restored.



Reference: The advanced parameters for restoring mode