Windows 7下破解VS2008

No Comments

        前段时间Windows 7下安装的VS2008试用版到期了,改装了express版。用了一周,实在不爽,所以又打算切换回正式版并破解之。不过网上说的办法在Windows 7下用不了,牛人的说法是“其实,原因非常简单: 大家在互联网上发布的破解方法,微软自然也看的到,所以,微软就在 Windows 7 里,做了个猫腻,将那个输入 序列号 的地方,给隐藏了起来”

        具体的办法就是让这个序列号输入框显示出来,网上有牛人提供程序,具体借鉴“http://www.zu14.cn/2010/02/01/windows7-vs2008-upgrade-crack-solution/”。不过序列号不可用,得从其他地方找找。

Google Https翻墙暂行办法

No Comments

      几天前Google Https网站被河蟹。很多东西没法搜索,现在可以通过修改“C:\WINDOWS\system32\drivers\etc\hosts”文件恢复使用,具体是在该文件末尾加入如下内容:

74.125.71.104 encrypted.google.com

74.125.71.99 encrypted.google.com

WM_CREATE消息

No Comments

      写个基于Win Api的小程序,调试时老被断言,因为收到WM_CREATE消息时,该消息的句柄不存在。

      一直以为只有在CreateWidnow(Ex)返回后Windows才会发送窗口消息,原来WM_CREATE消息在该函数还没有返回前就已经发送了。用于告诉程序员,窗口已经初始化完毕,可以任意虐了!

金山卫士的Installer

No Comments

      今天电脑被木马给日了,进程管理器莫名其妙的出现N多iexplorer.exe进程(我都不用ie浏览器上网)。

      一直是360的忠实用户,不过这次让人失望了,所以卸了它装金山卫士试试。官网的安装包很小,5M多点。完了看看一些功能,发现很多功能是没有的,不过可以一键下载安装,然后就可以使用。

      个人觉得这种方式挺好,很人性化,用户可以先利用较少的时间来下载,然后使用其主要功能。一些周边功能则可以通过P2P下载+动态安装完成。

重装OS的一些笔记

No Comments

windows 7 系统下安装Windows 7

http://www.21andy.com/blog/20090827/1349.html
1、下载 Windows 7 ISO镜像,用虚拟光驱拷贝至非C盘(如d:\win7)
2、开机按F8 – 修复系统 – 选择最后一项命令修复 – 在命令框输入 d:\win7\sources\setup.exe,开始安装
3、进入安装界面、选择custom安装
4、选择安装语言、格式化C盘
5、OK了,装好后是一个纯系统(非双系统)。

Windows 7下硬盘安装Ubuntu 10.04

http://www.linuxidc.com/Linux/2010-05/25875.htm

、在Windows7中下载并安装EasyBCD_1.7.2

2、将 Ubuntu-10.04-desktop-i386.iso文件复制到C盘根目录,用压缩软件打开,再打开casper目录,把initrd.lz、 vmlinuz二个文件解压到C盘根目录下。

3、运行EasyBCD_1.7.2进入操作窗口后,
点Add/Remove Entries
再点右下边的NeoGrub
再点Install NeoGrub
再点Save
选中NeoGrub Bootloader,再点Configure

4、在出现menu.lst记事本窗口中输入以下内容并保存:
root
kernel /vmlinuz iso-scan/filename=/Ubuntu-10.04-desktop-i386.iso boot=casper splash
initrd /initrd.lz
boot

5、电脑重启后,就会发现启动菜单会多了一项NeoGrub Bootloader,选择后会进入Ubuntu 10.04光盘系统。按快捷键运行(Alt+F2),在运行框内输入:
sudo umount -l /isodevice

最后点桌面上的Ubuntu安装图标及可开始正常安装
安装成功后,重启电脑会直接进入Ubuntu 10.04,打开终端输入以下命令:
sudo update-grub
再次重启及可出现Windows7引导菜单

Recover Grub 2 via LiveCD

https://wiki.ubuntu.com/Grub2#Recover%20Grub%202%20via%20LiveCD

  • First, grab a copy of the latest Ubuntu LiveCD and boot it.
  • Open a terminal and type

$ sudo fdisk -l

  • Now, you need to remember which device listed is your linux distribution, for reference, /dev/sda1 will be used. Now we need to mount the filesystem to /mnt

$ sudo mount /dev/sda1 /mnt

  • If you have /boot on a separate partition, that need’s to be mounted aswell. For reference, /dev/sda2 will be used.

$ sudo mount /dev/sda2 /mnt/boot Make sure you don’t mix these up, pay attention to the output of FDISK

  • Now mount the rest of your devices and some other things needed in the chroot

$ sudo mount --bind /dev /mnt/dev
$ sudo mount --bind /proc /mnt/proc
$ sudo mount --bind /sys /mnt/sys

  • Now chroot into your system

$ sudo chroot /mnt

You should be chroot’d into your system as root, you can now run commands as root, without the need for sudo.

  • Now you need to edit the /etc/default/grub file to fit your system

$ nano /etc/default/grub

  • When that is done you need to run update-grub to create the configuration file. If you have a separate /boot partition you need to mount it first!

$ update-grub

  • To install GRUB 2 to the MBR, next you need to run grub-install /dev/sda

$ grub-install /dev/sda

  • If you encounter any errors, try grub-install –recheck /dev/sda

$ grub-install --recheck /dev/sda

  • Press Ctrl+D to exit out of the chroot.
  • Once you exit back to your regular console, undo all the mounting, first the /dev and others

$ sudo umount /mnt/dev
$ sudo umount /mnt/sys
$ sudo umount /mnt/proc

  • Now you can unmount the root system. (But if you have a separate boot partition which you mounted earlier, you have to unmount this first, or you will get a “device busy” error message.)

$ sudo umount /mnt

  • And you should be free to restart your system right into GRUB 2 and then into your system installation.

If you had alternate OS entries, update-grub might say “Cannot find list of partitions!”. Ignore it and continue – once you can boot into your linux installation, do so and then rerun update-grub and grub-install /dev/sda as root.

Older Entries