How to find out if a DLL is of 32-bit or 64-bit

Recently one of my colleague gave me two DLLs of same name and told me two find out which one is 32-bit and which one is 64-bit.

To find out this information I downloaded the Sigcheck utility from Windows Sysinternals. Sigcheck is a command-line utility that shows file version number, timestamp information, and digital signature details, including certificate chains.
Through this we can also find out machine type of executable images, whether 16-bit, 32-bit, or 64-bit.

For eg. to find out the build type of C:\Windows\System32\appmgr.dll DLL we can run following command

sigcheck.exe -q C:\Windows\System32\appmgr.dll

You will get the following output in which MachineType is important for us.

c:\windows\system32\appmgr.dll:
        Verified:       Signed
        Signing date:   2:33 PM 11/20/2010
        Publisher:      Microsoft Windows
        Description:    Software Installation Snapin Extenstion
        Product:        Microsoft« Windows« Operating System
        Prod version:   6.1.7600.16385
        File version:   6.1.7600.16385 (win7_rtm.090713-1255)
        MachineType:    64-bit

How_to_find_out_if_a_DLL_is_of_32-bit_or_64-bit

If the MachineType is 64-bit, it means that image is for 64-bit machines. If the MachineType is 32-bit, it means that the image is for 32-bit machines.

Note : To run the above command you need to download Sigcheck utility and need to put sigcheck.exe in C: drive. You can paste it anywhere but in such case you need to adjust the path.

Hope this will also help you guys to find out the file bit version in Windows.

How to triple-boot Ubuntu, Fedora and Windows 7

This is the simple tutorial which will help you to install three different os on the single machine. We will be installing Windows 7, Fedora 17 and Ubuntu 12.04.

First we will install Windows 7, then Fedora, then install Ubuntu in last. Ubuntu’s GRUB is better than Fedora’s, since it detects all other operating systems on your computer.

Step 1 Install Windows!(Skip this step if you have it already)

Step 2 Shrink your Windows Partition using windows inbuilt utility called Disk Management.
Click on the Start Menu, then right-click Computer, then select Manage. Then Select Disk Management from the sidebar.

Step 3 Right-Click the Windows Partition and Choose Shrink Volume. Decide How many MB’s you will want to give to Ubuntu and Fedora. I suggest shrinking about 20-50 GBs for both Fedora and Ubuntu, since as per my requirements there should be at least 6.5 GB of disk space for both.

Step 4 Shut down Windows.

Step 5 Boot into a Fedora Installation or Live CD and choose Install Fedora.

Step 6 Keep going and then stop at this step.

Step 7 Choose Create Custom Layout.

Step 8 Select the Free thing and then click the Create button.

Step 9 Click Create again. Choose the Mount Point as / and give some space to Fedora in MBs. Remember to leave some space for Ubuntu!

Step 10 Go through the rest of the Process

Step 11 Restart your machine and setup through all those Fedora Stuff.

Step 12 Then reboot into a Ubuntu Live CD.

Step 13 Again, stop at this step.

Step 14 Choose Something Else.

Step 15 Click the Free space and then click Add. Again choose / for the mount point and use a Logical Partition. Choose any Disk size you want.

Step 16 Click OK and go through the rest of the process

Step 17 A GRUB menu should appear to let you choose Windows, Ubuntu, and Fedora!

Note: If Fedora didn’t show up in the GRUB menu, you might have to type sudo update-grub in the Terminal.

How to Restrict NTFS Partition Access to Non-Admin user in Ubuntu

At home I am having NTFS partition on which Windows is installed. Some time I used to mount my NTFS partition on Ubuntu box for some work. Due to some reason I want to restrict the access of other Ubuntu users to this partition.

To solve this problem we can use fstab file. Suppose if a particular partition contains a VFAT or NTFS filesystem, and you only wish to be able to access it yourself, it’s pretty simple:

include the options “noauto”, “uid=XXX”, and “umask=7″ in fstab line, and remove the “user” and/or “users” options if they appear there now.

This means that at boot time the system will come up with that partition unmounted, and only you (operating as root, using sudo presumably) can mount it

once mounted, it will be owned by your unprivileged user (assuming that that user’s uid is XXX, which is given to the first user created at install time in MDV installs – check with the “id” command run as that user, and adjust fstab accordingly) and will be inaccessible to all other local users.

Now we will try to do this process in 4 easy steps.

Step 1 Open fstab file as,

gksudo gedit /etc/fstab

Step 2 You should add line in /etc/fstab file as follows,

/dev/sdb5   /media/techinote    ntfs-3g noauto,uid=XXX,unmask=7 0   0

Here XXX is my user id. You can find yours with id command and /dev/sdb5 is partition I want to restrict access to.

Step 3 Create a folder named techienote in /media/ as follows,

sudo mkdir /media/techienote

Step 4 Now whenever you login you need to mount it as,

sudo mount /dev/sdb5 /media/techienote

Done

Power on Computer Remotely Using WOL – Wake on Lan

One of my client is having two machines, one is ubuntu server and another one is windows. He has setup Ubuntu as a server machine, so he can connect it using SSH, FTP, VNC remotely. He is using windows machine only for gaming purpose.

But now he got some US project and want to work as per their time. They have provided one cisco client which is working only on windows. So whenever he wants to work from outside he has to assure that his windows system is on before leaving office.

To solve this issue I told him about wake on lan (WOL). I told him he can start his windows machine whenever he want it via wake on lan. He just need an ethernet address (MAC) address of the windows machine. So this how to is for how to enable wake on lan on motherboard as well as on windows / ubuntu.

To enable wake on lan on motherboard, go to BIOS and search for Power Option. There you will see wake on lan option. Just enable it, save the BIOS settings.

Now on windows machine you can enable wake on lan using following method.

1. Open the Device Manager and the Properties page for the Network Adapter to be WOL enabled.

2. Verify that PROset is installed and it is the latest version (check the Link Speed tab).

3. Select the Power Management tab and check the tick box “Wake on Magic Packet from power off state”.

4. Make a note of the MAC address, IP address and Subnet Mask of the Network Adapter for which WOL was enabled.

5. Power the system off.

Now on the UBUNTU machine we have to install wake on lan utility, to do so run

sudo apt-get install etherwake

Above command will install ehterwake utility which we can use to power on windows machine from ubuntu.

Now just run following command to start windows machine using WOL from ubuntu

wakeonlan 00:15:17:AF:57:B5

00:15:17:AF:57:B5 is a MAC address of windows machine which we got from step 4.

That’s it. Your machine should start now.

Please note that WOL works on udp port 7 and 9. By default wakeonlan will send magic packets on port 7. If it is not working just run

wakeonlan -p 9 00:15:17:AF:57:B5

You can also power on your UBUNTU machine through windows using WOL utilty

Create Wifi Hotspot in Windows

This tutorial will guide you in setting up your laptop as a wifi-hotspot to share wifi or dial-up connection. I am using Windows 7 as a base OS and connectify to work as wifi-hotspot.

In this way you can share your internet / wifi / dial-up connection with your wifi enabled device.

Requirement:
OS Windows 7 (Not tried on XP)
WIFI enabled laptop
Connectify. You can download the free version from here.

1. To start the process download and install Connectify from above link.
2. After installation it will ask to reboot the machine, do the same.
3. After restart you will see Connectify icon in task bar notification area.

4. Click on the Icon. Now we need to create wifi-hostspot. Fill up require details as per your wifi configuration and click on Start Hostspot. For better understanding see below screenshot.

Remember Select the proper network adapter in Internet option. If you are getting connected to internet via dial up connection select dial up connection in Internet option. I am using wireless network connection to connect internet.

5. Now setup your wifi enabled device to use our laptop connection as an access point. I have tried the same with Nokia phone. After successful connection you will see your device in Client tab.

That’s it. Enjoy your new wifi-hotspot.

Page 1 of 7123456»...Last »
rss twitter facbook

Categories

Archives