Archive

Archive for the ‘Windows 7’ Category

From Windows 7 to Windows 8: The Transition

June 1, 2013 2 comments

After a long and anguishing struggle, I now finally transitioned to Windows 8. NO! It’s not the “bloody UI” like most of the rants you’d hear or read about; it’s primarily the drivers and hardware vendor enhancement apps that perfectly worked on Windows 7 that failed to work on Windows 8. For those going through a similar fate, here is how I did the transition:

 

THE SPECIMEN

Lenovo IdeaPad Y460p
  CPU: Intel Core i7 @ 2.0GHz
  RAM: 4GB
  OS: Windows 7 Ultimate x64
  HDD: WDC 750GB
   Partitions
    C: – OS partiton
    D: – OEM pre-defined partition with all the bundled enchiladas

Windows 8 Enterprise – got it from… Oops! Sorry, have to comply with the NDA

 

SETTING THE STAGE

Before you install Windows 8, make sure you don’t have any driver problems in Windows 7. You can verify this from the Device Manager. If you have incompatibility issues in Windows 7, you bet it’ll be more so in Windows 8.

 

PHASE 1: WINDOWS INSTALL

  1. If possible, do an in-place upgrade; you probably would have a smoother transition than I did
    In my case though, I can’t, it’s because upgrade from Windows 7 Ultimate to Windows 8 Enterprise is not possible. Refer to this Windows 8 upgrade path just to be sure.
  2. For those with similar scenario, do a fresh install via DVD or USB.
    IMPORTANT: Do not format or remove your Windows 7 partition. Windows 8 will save everything related to Windows 7 in a folder named Windows.old.

 

PHASE 2: DEVICE DRIVER WORKAROUND

  1. After installing Windows 8, immediately check the Device Manager for unknown devices and update each driver. Begin the update by right-clicking on the device in question then select the Browse my computer for driver software option when the Update Driver Software – Unknown Device wizard appears.
  2. In the Search for driver software in this location field, type c:\Windows.old\Windows and make sure to select Include subfolders; very essential I should say. Click Next.

Chances are, Windows 8 would be able to use the drivers and you’re good to go. My previous attempts of the installation was a pain until I thought of this workaround. Unfortunately for me, the driver that worked on Windows 7 for the Belkin F5U409 didn’t work; I have this error:

This to me is an essential tool to configure Cisco devices via the Console. Even using the driver from Magic Control Technology Corporation didn’t work…

Another issue I had was installing the laptop’s enhanced features but I’ll get back to this later.

Now, these perhaps are vendor support issues but hypothetically, drivers written for Windows 7 should work since Windows 8, according to a Microsoft Technical Marketing team, is 70% Windows 7. Hmmmmm…

Hopefully, you’re doing well with the drivers on your end.

 

PHASE 3: RESTORING THE QUICK LAUNCH TOOLBAR

Didn’t I say the UI was not a problem? It’s because I had the Quick Launch toolbar working. I did it the same way I did in Windows 7; view post here. After restoring the toolbar, I arranged all the apps I needed in folders and moved the folders into the toolbar. I then opened the Taskbar Properties and set it like this:

By the way, don’t for forget to click OK to save the settings and dismiss the dialog. Here’s what I have thereafter:

The proverbial Windows orb is missing but just like in Windows 7, I seldom use it. Now, who needs the Start Screen?

 

PHASE 4: LENOVO IdeaPad Y460p EXCLUSIVE

This particular model has a number of features but what I really liked is the Slide Navigator. One fancy thing you can do is to zip/unzip the laptop screen. Anyway, the Slide Navigator didn’t work after the Windows 8 install. Here’s what I did to make it work:

  1. If you still have the Lenovo partition (drive D: in may case), you already have what you need but if not, download the following from Lenovo support:
    * Synaptics Touchpad Driver – Windows 7 (32-bit, 64-bit)
    * Lenovo Energy Management Software
    * Lenovo slidaNav 2.0 tool – there are two packages available. I used IN8STW20WW5.exe.

     

  2. Install the packages in this order:

      a. Synaptics Touchpad
      b. Lenovo Energy Management Software – a reboot will be required
      When you log in after the reboot, the Program Compatibility Assistant will appear.

      Just tick Don’t show this message again and click Close.
      c. Lenovo Slide Navigator

     

  3. If for some reason the Slide Navigator still doesn’t work, download and install:

    1. Lenovo MuteSync Second Display Control Driver – Windows 7 (32-bit, 64-bit)
    2. Intel Management Engine Interface driver – Windows 7 (32-bit, 64-bit)

The Slide Navigator should work fine except for the One Key Theater system which I didn’t install; nothing against it, just a preference.

 

PHASE 5: ADDING AUTHENTICITY

Apart from using the Lenovo images for wallpaper and lockscreen background, launching System Properties shows you this:

Notice something under the System section? Here’s how I did it:

Find the Lenovo logo and other images somewhere in C:\Windows.old\Windows\System32\oobe\. At least this is where I got it from.

Well, that’s all folks!

Overall, my infatile Windows 8 Enterprise life (3 weeks now) is good thus far; hoping it will get better with the advent of Windows 8.1 (a.k.a SP1 much like Windows XP Reloaded with SP2) especially resolving incompatibility issues with hardware and apps making the transition from Windows 7 to Windows 8 painless.

Hope this helps…

Setup LAMP using Debian 6.0 (Squeeze)

April 10, 2011 2 comments

A colleague asked me if it was possible to setup a LAMP platform where he can evaluate a couple of CMSes (MOODLE, Drupal, Joomla and WordPress). Well, the answer is YES!

I have to admit that I am a Linux dork so please bear with me. For this tutorial, I will be using Oracle VirtualBox 4.0.4 r70112 on top of Windows 7 Ultimate. So here we go…

CREATING THE DEBIAN 6.0 VIRTUAL MACHINE (VM)

  1. Download at least the Debian net-install ISO and make sure you have Internet connection via your LAN or Windows Internet Connection Sharing (ICS).

  2. Download and Install Oracle VirtualBox (OVB).

  3. Launch OVB.

  4. Click New then Next when the wizard appears.

  5. In the Name field, type Debian-Squeeze.
    Notice that the Operating System and version parameters are automatically pre-selected.
  6. Click Next.

  7. In the Base Memory Size field, replace 384 to just 256. Actually, using 128 would be fine but just in case you decide to install and configure the X Window System, you’d be glad to have keyed-in 256.

  8. Click Next.

  9. Options are pre-selected in this stage, so just click Next.

  10. Click Next, when the Create New Virtual Disk wizard appears.

  11. Dynamically expanding storage is pre-selected, click Next.

  12. In the Size field, key-in 10 GB instead and click Next then click Finish and another Finish.

INSTALL DEBIAN 6.0 (SQUEEZE)

Notice that after creating the VM, it is now highlighted and a summary of the hardware is displayed. We need to do a little hardware tweaking before we dive into the installation proper.

  1. Click Settings. It looks like this VBox icon Settings.
    The Setting window will pop-up. You will see the major components on the left pane and details for a particular component on the right pane.

  2. Click Network on the left pane then select Bridged Adapter under Enable Network Adapter on the right pane.
    I prefer bridged so the VM gets its own IP configuration as opposed to NAT where IP configuration is shared with the host machine.

  3. Click Audio then uncheck Enable Audio.
    You won’t need audio on your Linux server.

  4. Click Storage then click Empty under IDE Controller.
  5. Click the CD/DVD icon CD/DVD icon then click Choose a virtual CD/DVD disk file from the context menu.

  6. Locate the Debian net-installer ISO file you downloaded and double-click it.

  7. Click OK to close the Settings window.

  8. Click Start to fireup the VM.
    A message box will appear. Make a mental note on the hotkey. The hotkey releases host input devices auto-captured by the VM. With this particular virtualization hypervisor, it’s the right Ctrl key.

  9. Click OK to close the message box.
    The VM should continue and displays the install option menu.

  10. Install is pre-selected, hit the Enter key.
    Pop-up message boxes could appear. Just click OK on those.

  11. English is pre-selected in the Select a language screen; hit Enter.
    If you opted to use a different language, use the arrow keys to select the appropriate language then hit Enter when you’re done.

  12. In the Country territory area, select appropriate country. In my case, it’s Philippines. Hit Enter when done.
    If for some reason your country or territory is not listed, select Other and hit Enter.
    You will have more selection; just hit Enter when you’re done.

  13. In the Keyboard layout page, just choose the appropriate keymap (American English, in my case); hit Enter.
  14. In the Hostname field, debian has been pre-entered. This is okay in the meantime so just hit Enter.
  15. If you’re using Windows ICS like me, you should have mshome.net in the Domain name field. In any case, just hit Enter.
  16. In the Root password field, key-in a complex password like c0mpl3x_p@55w0rd just for fun and hit Enter.
  17. Re-type the same complex password and hit Enter.

  18. Key-in your full name in the Full name field then hit Enter.

  19. The setup wizard usually takes your first as username, if it’s okay with you, just hit Enter. Otherwise, hit the Backspace key and enter your desired user name and hit Enter.

  20. In the Password field for the new user, just key-in the same complex password and hit Enter.

  21. Repeat step 20.

  22. In the Partition Disks page, Guided – use entire disk is pre-selected hit Enter.

  23. Under Select disk to partition, the virtual hard disk is pre-selected, hit Enter.

  24. Under Partitioning scheme, All files in one partition is pre-selected, hit Enter.

  25. Finish partitioning and write changes to disk is pre-selected, hit Enter.

  26. Select Yes and hit Enter when prompted to write the changes to disk.

  27. Select the nearest mirror to your location and hit Enter.
    Note:
    Choosing US-based mirrors aren’t always the best option when running a net install; other mirrors are faster.

  28. If you’re not using a proxy server, just hit Enter. Otherwise, key-in your proxy address and port instead.

  29. You don’t need the survey, hit Enter.

  30. Hit the space bar to deselect Desktop; you won’t need the GUI to run a Linux server. Hit Enter.

  31. Like Windows, Linux needs a bootloader. Since Yes is pre-selected, hit Enter.

  32. Finally, Setup tells you that the installation is done. But before hitting Enter, click the Devices menu then hover your mouse cursor to CD/DVD devices and uncheck the Debian install ISO to release it from the VM. Hit Enter when you’re done.
    The VM will reboot and would later present you with the login screen.

  33. Go ahead and login as root and key-in the password you assigned awhile back.

  34. If you instead installed the OS in a physical machine, you need to install four additional applications to your server. They are:

    • htop – tool you can use to monitor system resources in realtime. It’s like the System Monitor in Windows.
    • dselect – a menu driven tool to add/remove programs. At times, I use this to check which app version is installed.
    • openssh-server – a daemon allowing you to remotely manage your server from virtually anywhere in the world. Think of this as the Command-Line-Interface (CLI) version of Terminal Server (but closer to Telnet which happen to be removed now) in Windows.
    • screen – tool that allow you to create multiple workspaces while remotely managing your server. If you happen to use SysInternals’ Desktop, this is something like it except of course it’s CLI-based.

    To install these applications, you issue the following command
    apt-get install htop dselect openssh-server screen

  35. When the installation is complete, type ifconfig to determine the IP address of your server.

  36. One last thing, download putty from here. If you’re wondering what putty is, it’s a tool you use to remotely manage your server from Windows. More like Remote Desktop for the CLI.

  37. When the download is complete, simply double-click the application.

  38. In the Host Name (or IP Address) field, key-in the IP address of your server then click OK.
    You should shortly be prompted for your login name and password. Login as root and start your Linux remote administration.

Congratulations! You have just successfully installed Debian 6.0 (Squeeze). Up next, setting up your CMS platform.

SETTING UP THE CMS PLATFORM

Don’t worry, this procedure would be quick you won’t even know what hit you…

Install the Web Server

  1. Issue this command apt-get install apache2.

  2. Hit Enter to continue.
    By the way, the capitalized letter inside the bracket will be the default option when you hit Enter. In this case, it’s Y.

When you see the # prompt again, that means the installation is done.

Install the Database

There are a couple of databases available to Linux that you can use for the CMSes you want to install but majority of these usually has one particular database commonly used, MySQL.

  1. Issue the command apt-get install mysql-server.

  2. Hit Enter to continue.

  3. You will be prompted to key-in the MySQL root password. For your own sanity’s sake, don’t leave this empty, key-in your complex password
    Note: Keep the password in mind or securely store it where you can readily retrieve it; I use KisKis for this and for all the other passwords I use, personal and work-related. KisKis is acronym for Keep It Secret Keep It Safe. Try it, you’ll love it besides being FREE.

Install PHP 5 with CMS requisites

To install PHP 5 and other CMS requisites, issue this command
apt-get install php5 php5-mysql php5-gd php5-curl php-xml-rpc php5-imap libapache2-mod-auth-mysql

Oh, by the way, doing this tutorial in Ubuntu is almost identical. The only difference is that you use sudo to do root-related tasks. Unless you have explicitly enabled the root user account.

That’s it. You now have a working LAMP server based on Debian 6.0 (Squeeze)

Categories: Linux, VirtualBox, Windows 7 Tags:

Install DSpace in Debian 6.0 (Squeeze)

April 7, 2011 18 comments

I was tasked by our IT director (who, by the way, is a hardcore Debian fan) to install DSpace for the library for them to try and eventually use it as their archive repository. I searched the web for an idiot’s guide (because am a Windows guy) to install Dspace on Debian but didn’t find a suitable one, unfortunately. Here, am sharing what I did to successfully install and run Dspace after all the trial and error. By the way, I used SSH via Putty doing the procedures below; it made the task even lighter. Hope this helps…

THE TRY-IT-OUT STAGE
Host PC:
Lenovo 3000
CPU Intel Centrino 1.66GHz
RAM 2.99GB usable
HDD 320GB
OS Windows 7 32bit Ultimate

Virtual Machine:
Hypervisor Oracle VirtualBox 4.0.4r70112
RAM 384MB
HDD 10GB
Audio Disabled
Network Bridged
OS Debian 6.0 (Squeeze)
Hostname dspace
Network DHCP reservation

DSPACE INSTALLATION

1. Start the VM and login as root then install the pre-requisite applications (Java, Tomcat, Maven, Ant, PostgreSQL)
apt-get install sun-java6-jdk
During the Java package installation, just answer Y (Y is the default action when you hit Enter as with other application installation except if the application cannot be authenticated where N is the default action), OK (press the Tab key) and Yes (left arrow key) when prompted.
apt-get install tomcat6
apt-get install maven2 (Ant is bundled with this package. No need to install separately)
apt-get install postgresql

or if you have a very fast connection, you can do a single liner
apt-get install sun-java6-jdk tomcat6 maven2 postgresql

2. Just to make sure you won’t get a Java runtime misconfiguration, you do this
update-alternatives –config java

Select the selection number that says:
/usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode (in my case, I selected option 2 see screenshot)

3. Download the latest Dspace package. For some unknown reason, I am not able to access sourceforge.net so I downloaded the package here.
Before downloading, change directory to /usr/src
cd /usr/src/
Then download the package
wget -c http://www.sfr-fresh.com/unix/www/dspace-1.7.0-release.tar.gz

4. Unpack the package.
ls dspace-1.7.0-release.tar.gz (just to verify the package is in the directory)
tar zxvf dspace-1.7.0-release.tar.gz

5. Create Linux user account for Dspace
useradd -m dspace (-m option creates user home directory)

6. Change ownership of newly unpacked directory
chown -R dspace:adm dspace-1.7.0-release

7. The next step involves Postgresql. It requires you to change the file system permission setting to trust localhost connections you do this by editing the pg_hba.conf file.
nano /etc/postgresql/8.4/main/pg_hba.conf

When you open the file, scroll down to the last portion where you will see the following entries

# Database administrative login by UNIX sockets
#local all postgres ident <<< comment this line and add line below
local all postgres trust

# TYPE DATABASE USER CIDR-ADDRESS METHOD
# “local” is for Unix domain socket connections only
#local all all ident <<< comment this line and add line below
local all all trust

8. Restart Postgresql to use the modified configuration
/etc/init.d/postgresql restart

9. Create Postgresql user account for DSpace
To verify Postgresql is running, type psql -U postgres
You should be able to login to Postgresql. Type \q to quit
Proceed by typing this command
createuser -U postgres -d -A -P dspace ; createdb -U dspace -E UNICODE dspace

key-in dspace when prompted for password and when asked to confirm password
key-in y when prompted to take action on role

10. Change directory to the initial configuration files repository
cd dspace-1.7.0-release/dspace/config/

10.1 Edit dspace.cfg particularly the following parameters:

# DSpace host name
dspace.hostname = dspace.your-domain-name.edu

# DSpace base host URL
dspace.baseUrl = http://dspace.your-domain.edu:8080 or http://ip_address:8080

NOTE
– It is extremely important that you enter the correct information otherwise Dspace will not work
– If hostname is used, then an entry on your DNS server is a must. In BIND for example
dspace.xxxxxx.edu. IN A x.x.x.x
or in the Windows host, add an entry in the Windows\System32\Drivers\etc\hosts file the should point to the DSpace VM.

# Name of the site
dspace.name — Dspace for AIIAS Hardinge Library

# Database name (“oracle”, or “postgres”)
#db.name = ${default.db.name} <<< comment this entry
db.name = postgres <<< uncomment this
#db.name = oracle

# URL for connecting to database
#db.url = ${default.db.url} <<< comment this
db.url = jdbc:postgresql://localhost:5432/dspace <<< uncomment this

# JDBC Driver
#db.driver = ${default.db.driver} <<< comment this
db.driver = org.postgresql.Driver <<< uncomment this

# Database username and password
#db.username = ${default.db.username} \__ comment these
#db.password = ${default.db.password} /
db.username = dspace \__ uncomment these
db.password = dspace /

# SMTP mail server
mail.server = smtp.your-domain.edu

# From address for mail
mail.from.address = dspace-noreply@your-domain.edu

# Currently limited to one recipient!
feedback.recipient = dspace-help@your-domain.edu

# General site administration (Webmaster) e-mail
mail.admin = dspace-help@your-domain.edu

11. Change directory to /var then create dspace directory and chown directory ownership
cd /var
mkdir dspace
chown dspace dspace

12. Build the Maven package
cd /usr/src/dspace-1.7.0-release/dspace
mvn package

it will start downloading a lot of jar and pom files… until you see something like this:

[INFO] Copying 1386 files to /usr/src/dspace-1.7.0-release/dspace/target/dspace-1.7.0-build.dir
[INFO]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------
[INFO] DSpace Addon Modules .................................. SUCCESS [8:46.193s]
[INFO] DSpace XML-UI (Manakin) :: Web Application ............ SUCCESS [1:02:46.078s]
[INFO] DSpace LNI :: Web Application ......................... SUCCESS [2:39.578s]
[INFO] DSpace OAI :: Web Application ......................... SUCCESS [43.201s]
[INFO] DSpace JSP-UI :: Web Application ...................... SUCCESS [3:26.257s]
[INFO] DSpace SWORD :: Web Application ....................... SUCCESS [1:22.040s]
[INFO] DSpace SOLR :: Web Application ........................ SUCCESS [17:28.865s]
[INFO] DSpace Assembly and Configuration ..................... SUCCESS [5:06.675s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 102 minutes 23 seconds
[INFO] Finished at: Wed Mar 09 06:57:19 PST 2011
[INFO] Final Memory: 40M/92M
[INFO] ------------------------------------------------------------------------

13. Change directory to Dspace source directory and run ant
cd /usr/src/dspace-1.7.0-release/dspace/target/dspace-1.7.0-build.dir
ant fresh_install

this will start a process, connecting database and updating a lot of files. Until you will see something like this:

     [echo]
     [echo] ====================================================================
     [echo]  The DSpace code has been installed, and the database initialized.
     [echo]
     [echo]  To complete installation, you should do the following:
     [echo]
     [echo]  * Setup your Web servlet container (e.g. Tomcat) to look for your
     [echo]    DSpace web applications in: /dspace/webapps/
     [echo]
     [echo]    OR, copy any web applications from /dspace/webapps/ to
     [echo]    the appropriate place for your servlet container.
     [echo]    (e.g. '$CATALINA_HOME/webapps' for Tomcat)
     [echo]
     [echo]  * Make an initial administrator account (an e-person) in DSpace:
     [echo]
     [echo]    /dspace/bin/dspace create-administrator
     [echo]
     [echo]  * Start up your servlet container (Tomcat etc.)
     [echo]
     [echo]  You should then be able to access your DSpace's 'home page':
     [echo]
     [echo]    http://localhost:8080/xmlui
     [echo]
     [echo]  You should also be able to access the administrator UI:
     [echo]
     [echo]    http://localhost:8080/xmlui/dspace-admin
     [echo] ====================================================================
     [echo]

BUILD SUCCESSFUL
Total time: 17 minutes 33 seconds

14. For your own sanity’s sake, instead of tweaking Tomcat as suggested by the installer, copy instead the DSpace webapps directory content to the Tomcat webapps directory.
cp -R /dspace/webapps/* /var/lib/tomcat6/webapps/

15. Create the initial administrator account.
cd bin
chmod 775 dspace
./dspace create-administrator

Creating an initial administrator account
E-mail address: xxxxxxx@xxxxx.edu
First name: xxxxxxx
Last name: xxxxxxx
WARNING: Password will appear on-screen.
Password: your_password
Again to confirm: your_password
Is the above data correct? (y or n): y
Administrator account created

16. Check if Tomcat is running. Launch your favorite web browser and go to cp
http://dspace_server_address:8080

A webpage should say something like IT WORKS

17. Access your Dspace home page at
http://dspace_server_address:8080/jspui

or access the administrator at
http://dspace_server_address:8080/jspui/dspace-admin

CONGRATULATIONS! You have successfully installed Dspace…

Dynamips in Windows 7: an update

December 20, 2010 Leave a comment


I thought of revising the previous post but decided to just add this update instead. Dynamips now works 100% with Windows 7. It now can interact with the physical network. Simply download and install the latest version of WinPcap then BAM!!! you’re on. So now, I don’t have to shift between Windows XP and Windows 7 when I needed to mess around with Dynamips… 🙂

Install, Configure and Run Dynamips in Windows 7

December 17, 2009 1 comment
Dynamips, in case others don’t know, is like VMware Workstation for Cisco devices. When I was preparing for my CCNA exam, Dynamips was truly helpful and made a difference because it gives you the real look and feel of the IOS environment in contrast to "Panget"… I mean Packet Tracer. I was asked to try running Dynamips in Windows 7 because others weren’t able to make it work. It runs fine but has a little drawback; the live network interaction doesn’t work due to permission issues that am still trying to figure out. Nevertheless, plainly messing with it to try out a laboratory simulation is very much possible. So, here you go:

  1. Download the latest WinPcap and Dynagen.
  2. Install WinPcap first, then Dynagen.
  3. Download your preferred IOS and copy or save it to this location:
         C:\Program Files\Dynamips\images
    Note: Sorry, can’t provide you the IOS. You can, however, Goggle for it
  4. Copy your network file to this location:
         C:\Program Files\Dynamips\sample_labs
    Click HERE to download a sample network file.
  5. Right-click the network file and open it with WordPad.
  6. Edit the following parameters:
         image=C:\Program Files\Dynamips\images\cisco_ios.BIN
          Cisco_IOS.BIN is the actual name of your Cisco IOS
         workingdir = C:\Program Files\Dynamips\sample_labs\my_lab
          my_lab the folder you need create to store Dynamips emulator files 
  7. Close WordPad and click Save when prompted.
  8. Open the Control Panel then click System and Security.
  9. Click Allow a program through Windows Firewall under Windows Firewall.
  10. Click Change settings and click Allow another program.
  11. In the Add a Program window, click Browse under Path and locate dynagen.exe.
    Notice that dynagen.exe is now being listed and highlighted under Programs
  12. Click Add and click OK.
  13. Click Control Panel Home and click Programs.
  14. Under Programs and Features, click Turn Windows features on or off.
  15. From the list of Windows features, select Telnet Client and click OK.
  16. Close the Control Panel.
  17. Click the Windows Orb then type dynamips in the Search Programs and Files field and hit Enter.
  18. When you see Dynamips Server listed, hit Enter.
  19. Click Allow access when prompted by a Windows Security Alert dialog.
  20. Once Dynamips is up and running, double-click your network file.
    You should see something like this
  21. In the Dynagen Console, type start R1 then hit Enter.
  22. Now type idlepc get R1 and hit Enter.
    Repeat this process until you see something like this

    Take note of the value with the asterisk.
  23. Key-in the number where the asterisk appears and hit Enter.
  24. Type idlepc save R1 db and hit Enter.
  25. Type exit all and hit Enter.
  26. Double-click your network file again.
  27. In the Dynagen Console, type start R1 and hit Enter.
  28. Still in the console, type console R1 and hit Enter.

Congratulations! You now have Dynamips successfully running in Windows 7.

Categories: Windows 7

Install HyperTerminal in Windows 7

November 11, 2009 1 comment
I was tasked to configure our Cisco routers for the three leased lines we got from the ISP. The problem I had was that connecting to a Cisco router via the console is no longer possible in Windows 7 since HyperTerminal was removed. Now, don’t get me wrong, Telnet I know is another option but these routers had been pre-configured and there is no other way I know to get into the IOS bypassing the implemented password (the dilemma of inheriting an existing network infrastructure without documentation). Hence, the need to install HyperTerminal. Here’s what I did:
 
1. From Windows XP copy:
      * hypertrm.exe from C:\Program Files\Windows NT\
      * hypertrm.dll from C:\Windows\System32\
    to the same folder location in Windows 7.
    Note: I was able to easily do this because I have Windows XP and Windows 7 in my laptop. 
 
 2. Create a shortcut for HyperTerminal on the Desktop if you wish and run the application.
 
 3. You will be prompted to make HyperTerminal your default Telnet program. Tick Don’t ask me this question again and Click No. Why No? Well, after I’ve configured the routers, I’ll be using SSH for remote administration.
 
4. You will be prompted this time to fill up the Location Information form. Click Cancel and click Yes to confirm the action then click OK to dismiss the matter.
 
5. Type your desired connection name in the Name field (I usually use console) and click OK.
 
6. You will encounter steps 3 and 4 again then you will be presented with the Connect To dialog. Under Connect using, select from the list the correct com port to use (in my case, COM7 via a USB Belkin portable com port where my console cable is attached) and click OK.
7. You will be presented next with the com port properties dialog. Click Restore Defaults and click OK.
 
 
That’s it! You’re now connected to your Cisco device. After bypassing the router’s password, here’s what I see after issuing the Cisco tech best friend command "show ip interface brief"…
 
 
 
Hope this helps
Categories: Windows 7

Restore the Quick Launch toolbar in Windows 7

November 2, 2009 1 comment
A couple of days back, I was trying to figure out how in the world am I supposed to keep a group of program shortcuts in one folder and drag it to the Quick Launch toolbar like I used to in Windows XP (sorry, never been a Windows Vista fan). My idiot instinct tells me it’s time to fire-up Help and Support which I did with glee knowing I’d get a good answer to my question. Keying "quick launch" in the search field returned two results. One of which, a question that says "What happened to the Quick Launch toolbar?". The way the question was framed gave me a clear picture that the Quick Launch toolbar is but a fragment of history which of course was validated after reading the help information. Disappointed, I launched the Command Prompt and did a dir quick* /s. Surprisingly, this is what I got…
Something tells me Quick Launch just needed to be unearthed. Well, I was able to somehow restore the Quick Launch toolbar and here is how I did it:
 
   1. Right-click the Taskbar and hover the mouse cursor to Toolbars then select New toolbar.
       This opens the New Toolbar – Choose a folder window.
   2. Click the document icon in the address field.
       If you got it right, you’d see something like this:      
  
   3. Now replace the highlighted path with this %appdata%\Microsoft\Internet Explorer\Quick Launch and hit Enter.
   4. Click the Select Folder button.
       Notice that the Quick Launch toolbar has now been added to the Taskbar on the rightmost portion beside the system tray.
   5. Right-click the Taskbar and uncheck Lock the taskbar from the context menu.
       Notice that toolbar handles are now displayed.
   6. Unpin your current program shortcuts from the Taskbar. By default these are Internet Explorer, Windows Explorer, and Windows Media Player.
   7. Right-click the Quick Launch toolbar then uncheck Show Text and Show title from the context menu.
   8. Click the Quick Launch toolbar and drag it all the way to the left next to the Windows orb.
   9. Resize the Quick Launch toolbar to display just two or three program shortcuts then Lock the taskbar again.
You now have a fully restored Quick Launch toolbar…

 

Works on Windows 8 too! Read about it HERE

Enabling Lenovo N100 SoundMax audio in Windows 7

October 31, 2009 8 comments
 
I recently installed Windows 7 in my Lenovo 3000 N100 laptop. The installation went well and everything seemed perfect until I discovered that there was no audio. I checked the Device Manager and found no errors related to audio and others. My techie instinct tells me I needed to manually install the driver. Since no driver was available for Windows 7 from the Lenovo support website, I took the risk of dowloading the Windows Vista driver instead. After the download, I immediately installed the said driver but to no avail. Instead, Windows 7 loads its own high definition audio driver even when I uninstalled it and rebooted the machine. I searched the Internet for hours hoping I’d find a solution to the problem but become frustrated even more. Out of desperation, I did the following procedure to eventually solve the problem.
 
   1. Using Windows Explorer, open the C:\windows\system32\drivers folder.
   2. Select and right-click HdAudio.sys then select Properties from context menu.
   3. In the Properties applet, click the Security tab.
   4. In the Security tab, click Advanced then click the Owner tab thereafter.
   5. In the Owner tab, you should see your username listed, click Edit.
   6. You should see your username listed again. Select it and click OK.
   7. Click OK when a message box appears.
   8. Click OK again and click Edit.
   9. Click Add and click Advanced then click Find Now.
 10. Select your username and click OK and another OK.
       Notice that your username is selected.
 11. Tick the Full control checkbox and click OK.
 12. Click Yes when prompted and click OK.
 13. Delete HdAudio.sys and do the same for the other copies located in the following folders:
      * C:\Windows\LastGood\system32\drivers
      * C:\Windows\System32\DriverStore\FileRepository\hdaudio.inf_x86_neutral_9781e9d72e255b2e
      * C:\Windows\winsxs\x86_hdaudio.inf_31bf3856ad364e35_6.1.7600.16385_none_15368bf2c8c39eac
 14. Download the driver from Lenovo support by clicking HERE.
 15. When the download is completed, extract the SoundMax Vista driver by double-clicking it.
      By default, it will be extracted on C:\Drivers\WIN\Audio.
 16. Open the C:\Drivers\WIN\Audio\i386\Vista folder.
 17. Copy ADIHdAud.inf and ADIHdAud.sys to the following:
      * ADIHdAud.inf to C:\Windows\inf
      * ADIHdAud.sys to C:\Windows\System32\drivers\
      just click Continue when you encounter an access denied dialog box.
 18. Launch the Device Manager and expand Sound, video and game controllers then uninstall High Definition Audio Device.
 19. Reboot your computer.
 20. After the reboot, launch the Device Manager and double-click Audio Device on High Definition Audio Bus under Other Devices.
 21. Click the Driver tab.
 22. In the Driver tab, click Update Driver and select Browse my computer for driver software then select Let me pick a list of device drivers on my computer.
 23. Scroll down then select Sound, video and game controllers and click Next.
 24. From the list of compatible drivers, select SoundMax Integrated Digital HD Audio and click Next.  
 25. Click Close and another close then reboot your computer.
 That’s it. Hopefully, this works for you.
 
 
Categories: Windows 7

Install Windows 7 on a USB Stick/Flash drive

February 15, 2009 79 comments
Installing W7 on a virtual machine I’m sure is not as fun as having it installed on a physical machine. The problem is, I no longer have enough space to squeeze W7 into my laptop’s hard drive. So I thought of having it installed via an external USB hard drive (Maxtor 40GB) but doing so unfortunately is not possible; the W7 installation wizard tells me that it does not support such a hardware configuration. Frustrated, I searched the Internet to see if it was possible; there were instead lots of “How To’s” on installing W7 from a USB stick especially on Netbooks where presence of an optical drive is absent. Well, I eventually end up installing W7 on a 16GB Transcend USB flash drive instead. Now, I’ll be sharing how I did it. I will divided this tutorial into three phases; Phase I is about how to prepare your USB flash drive while Phase II tackles staging the virtual machine and installing W7 then Phase III walks you through tweaking the W7-VM to become W7-on-stick. Here’s a list on what you need to achieve our goal:

  1. A PC with a working USB 2.0 port/s.
  2. A 16GB USB stick/flash drive or larger (the actual install size is a little over 8GB).
  3. VMware Workstation 6.5.x
  4. A pre-installed Windows Vista as guest OS in VMware Workstation.
  5. A copy of the Windows 7 installation (DVD or ISO).
  6. An administrative user account.
  7. Tons of PATIENCE.

PHASE I – Preparing the USB Stick/Flash Drive

  1. Plug in the USB stick into your PC’s USB port.
  2. Fire up your VMware Workstation. If you don’t have it yet, download at least an evaluation version from VMware. You need to register before you can actually download the software. You’d probably ask why VMware Workstation and not Microsoft Virtual PC? Well, I tried this trick on VPC 2007 but it didn’t work but I guess with Hyper-V, it might. Sorry, I currently don’t have a 64 bit PC to install Hyper-V.
  3. Turn on your Vista guest OS.
    The Removable Devices message box would popup.
  4. Just click OK to close it and login to vista when the login screen is presented.
  5. VMware can load your USB stick within the guest OS. To do this, click the VM menu then hover your mouse pointer to Removable Devices and hover your mouse pointer to your USB stick from the list of devices then finally select Connect (disconnect from host) from the sub-sub menu. Click here to view image.
  6. Click OK when a message box will popup.
  7. You will know when the USB stick is loaded because Vista will present you the Autoplay dialog box. Just click Close.
  8. Click the Start menu then type comp in the Start Search field then click Computer Management when it gets listed.
  9. Click Continue when prompted by the UAC.
  10. In the Computer Management snap-in, click Disk Management.
    Notice that your USB stick is identified as Disk 1 with its corresponding drive letter assignment or higher if you have more than one currently plugged in. Take note of this. Click here to view image.
  11. Close Computer Management.
  12. Click Start -> All Programs -> Accessories -> then right-click your mouse on Command Prrompt and select Runas Administrator from the context menu then deal with the UAC dialog box when it pops up.
    The Command Prompt should launch thereafter.
  13. It’s geek time folks so in the Command Prompt, type diskpart and hit the Enter then type list disk and hit Enter again.
    Notice that the USB stick will be listed as Disk 1 or higher.
  14. Now do the following commands exactly as sequenced:
    select disk 1 <<< selects the USB stick
    clean
    create partition primary
    select partition 1 <<< you can do list partition to check the partition number if you wish
    active <<< marks the new primary partition active
    format fs=ntfs override <<< tested your patience will be but patient you must…he he he
    exit
    After you exited diskpart, don’t close the Command Prompt. Just have it on the background.
    Remember that you have to hit Enter everytime you finished typing a command.
  15. Load the W7 install DVD into your PC’s optical drive or map the W7 ISO you downloaded from Microsoft to VMware Workstation.
    VM menu -> Removable Devices -> CD/DVD (IDE) -> Settings -> Use ISO image file -> Browse then locate the W7 ISO and click Open then OK.
    VM menu -> Removable Devices -> CD/DVD (IDE) -> Connect
  16. Close the Autoplay dialog when it pops up.
  17. Back in the Command Prompt, change drive to your CD/DVD drive then change directory to BOOT.
    type D: then hit Enter.
    – In drive D:, type cd boot then press Enter.
  18. Type bootsect /nt60 X: /force then hit Enter. This is going to make the USB stick compatible with BOOTMGR bootcode. X: is the drive letter assignment of the USB stick.

Now that the USB stick is ready, let’s dive into the next phase…


PHASE II – Setting up the W7 Virtual Machine and Installing W7

  1. If you have 2GB or more RAM on your PC, you don’t have to do this procedure; shutdown the Vista VM to give way to W7.
  2. Click the File menu -> New -> Virtual Machine.
  3. Tick Custom (advanced) then click Next when the New Virtual Machine Wizard pops up.
  4. Workstation 6.5 is pre-selected for Hardware Compatibility so just click Next.
    I haven’t tried this on an earlier version, sorry. It might work but you will have to try it yourself and perhaps share your experience.
  5. Tick the last option, I will install the operating system later then click Next.
  6. Choose Vista as guest OS from the list under Microsoft then click Next.
  7. Type Windows 7 in the Virtual machine name field then click Browse.
  8. In the Browse for Folder dialog, create a new folder on drive C: named Windows_7 and click OK then click Next.
  9. If you have a dual core CPU, choose Two for Number of processors then click Next. Choose One if using a single core CPU.
  10. The RAM is pre-set to 512MB so click Next. Otherwise, assign a larger RAM if you have the hardware for it.
  11. Tick Do not use Network connection then click Next.
  12. LSI logic is pre-selected for SCSI Adapter so click Next.
  13. Select the last option Use a physical disk (for advanced users) then click Next.
  14. In the Device list, choose PhysicalDrive1 then click Next. PhysicalDrive0 is used by the host OS. If you use this, you’ll mess up the host OS.
  15. Click Browse and locate your Windows 7 folder then click Save and click Next.
  16. Uncheck Power on this virtual machine after creation and click Finish.
  17. We’re not done yet. Under the Commands window, click Edit virtual machine settings.
  18. Select Hard Disk (SCSI) then click the Advanced button located in the lower right corner of the Virtual Machine Settings window.
    You will see something like this…

  19. Tick Independent. Persistent is pre-selected so click OK.
    It should look like this…
  20. Select CD/DVD (IDE) then choose how the optical drive is connected, Use physical drive or Use ISO image file (in my case, I used an ISO image).
  21. Remove both the Floppy drive, USB Controller, and Sound Card then click OK.
  22. Before you continue, make sure that the USB drive where you wanted to install W7 is attached to VMware Workstation. Otherwise, this trick ain’t gonna work. Click Power on this virtual machine to start installing W7. Just go through the installation routine as you would on a physical machine.
    REMEMBER to:
    Press F2 when you start the virtual machine to change the boot sequence to boot from the CD/DVDROM.
    Format the USB stick within the W7 installation.
    Be patient. The installation is not as fast as it is on real hard drive.

That’s it, you now installed W7 into your USB stick but we have to do something before we can shed tears of joy


PHASE III – Tweaking W7-VM to become W7-on-stick

After the installation, you will be logged into the Desktop for the first time. This will also take time so again be… Yep, that’s right.

    1. First, change the resolution to 800×600. Just right-click the Desktop then select Screen Resolution from the context menu.
      I don’t have a huge Desktop workspace thus the resolution change.
    2. Click Start (it’s the Windows orb) then type command in the Search programs and files text field.
    3. Right-click Command Prompt then select Run as Administrator from the context menu and click Yes when the UAC dialog pops up.
    4. In the Command Prompt, type cd \WINDOWS\inf and hit Enter. Add this tag:[*.AddService]
      StartType = 0
      LoadOrderGroup = boot bus extender

      On each of the files below:
      usb.inf
      usbport.inf
      usbstor.inf

You can use Notepad to edit these files. In Notepad, press CTRL+Endto navigate to the last portion of the file then insert or add the above-mentioned tag.

  • When you’re done, fire up the Registry Editor by typing regedit in the Search programs and files text field then hit Enter.
  • Open HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services.
  • On each of these services:
    – usbccgp
    – usbehci
    – usbhub
    – usbuhci
    – usbohci
    edit keys
    Start = 0
    Group = boot bus extender
    – USBSTOR (for this service, you create a new key string value named Group and do the same as the other services )
  • When you’re done, exit the Registry Editor.
  • Change your user picture unless you want to be represented as a flower.
  • Shutdown W7 then close VMware and shutdown your PC.
  • To be sure that you won’t mess up the host OS, either disable the physical disk/s in BIOS or remove your PC’s the hard drive. You don’t have to do this if you wish but I don’t take chances so I did it.
  • Turn on your PC then alter the BIOS settings to boot first on the USB drive.
  • Save the settings and exit the BIOS.

Momentarily, you will see the fruit of your labor coming to life.

Welcome to the future of USB computing…

Categories: Windows 7