Skip to main content

Posts

Showing posts with the label Windows

Notes on a Tricky Linux Installation: Qubes OS and Windows

I recently tried to install Qubes OS alongside an existing Windows installation. It turned out to be surprisingly difficult—way harder than my last attempt—likely due to a combination of my encrypted  /boot  setup and older hardware. Here are some notes from the process. Shrinking an NTFS Volume I needed to free up some space from a Windows NTFS volume. Normally, this just takes a few clicks in Disk Management. This time, however, Windows reported a "shrinkable volume" that was suspiciously small. Following  this answer , I tried the standard fixes: Disabled hibernation ( powercfg /h off ) Disabled the pagefile Disabled system protection This increased the shrinkable volume a bit, but nowhere near the actual free space left on the partition. Digging into the Windows Application logs in Event Viewer, I finally found the culprit:  The last unmovable file appears to be: \$Mft::$DATA . It turns out  $Mft  is a special block in NTFS that cannot be easily moved, ...

Windows的KVM软件

 KVM即是共享鼠标键盘。 之前Windows和Ubuntu我都是用Synergy,不过最近一查发现变成收费软件了。 Github上有个fork叫Barrier,下载以后配了好久也不好用。有可能跟我的屏幕配置有关系,一个电脑连了多个显示器,而且有的显示器还是禁用。最后放弃了。 后来搜到了微软的Mouse without Borders,简单配一下就能用了,还是不错。 网址是http://aka.ms/mm

Notes

surface pro stylus calibration http://www.reddit.com/r/Surface/comments/18cd96/improved_pen_accuracy_with_a_100_point/ http://www.reddit.com/r/Surface/comments/1cy8hn/this_pen_calibration_is_so_far_the_best_solution/ Search for 'UserLinearityData' in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet and remove 'devicekind=pen'   merge tool: meld   linux虚拟机的硬盘大小不够,扩容以后又调整了分区,于是grub就不能进入了。启动说unknown filesystem然后进入grub rescue。 根据 http://askubuntu.com/questions/142300/fixing-grub-error-error-unknown-filesystem 在grub rescue输入 set prefix=(hd0,5)/boot/grub insmod linux linux (hd0,5)/boot/vmlinuz-3.11.0-15-generic initrd (hd0,5)/boot/initrd.img-3.11.0-15-generic boot 然后grub这步正常了,但是会卡到initramfs/busybox,说找不到init 于是在linux命令后面加上root=/dev/sda5就可以正常进入系统 进入系统以后赶紧用grub-install和update-initramfs再修正一下。

Ubuntu 下 mount windows 共享目录

一般来说遇到标题所述问题我马上会想到smbfs,不过好久不用,最近发现smbfs已经没有了,取而代之的是cifs,于是命令大约是 sudo mount -t cifs //hostname//folder /localfolder -o user=username 不过总是报 Input/ouput error google了一阵,有的说加上 sec=ntlm 有的说加 iocharset=utf8 ,不过都没用。其中加了后者还会出 Can not access a needed shared library 的错误。根据 http://wiki.openwrt.org/doc/howto/cifs.client    和 https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1067681 , 安装了linux-image-extra-***的包以后才可以,但是mount还是不行。(我的linux是在虚拟器,装的最小内核linux-virtual) 于是尝试了一下smbclient,也是报错: tree connect failed: NT_STATUS_INSUFF_SERVER_RESOURCES 根据 http://klebom.net/melazy/tricks/ 查到是IRPStackSize过小的问题, 我在windows也确实查到了事件: Log Name: System Source: srv Date: 2013-10-20 14:08:29 Event ID: 2011 Task Category: None Level: Error Keywords: Classic User: N/A Computer: *** Description: The server's configuration parameter "irpstacksize" is too small for the server to use a local device. Please increase the value of this parameter. ...

Screen Color Calibration

configure softwares gimp: edit->preferences->color management->try to use system monitor profile firefox: about:config ->  gfx.color_management.mode -> 1   test pages http://www.gballard.net/photoshop/srgb_wide_gamut.html http://photographylife.com/is-your-browser-color-managed I bought a spyder 4 express and would like to try dispcalGUI on my surface pro, so I have to install Argyll CMS's driver, which is not signed. For windows 8, one option to disable driver signature enforcement is through "advanced startup settings", which lists a few options after a restart, and you can press f7 or 7 to disable it. However for my surface pro, it refused to recognize my keyboard, no matter it is a bluebooth keyboard, a usb wireless keyboard or a normal usb keyboard. I guess a touch/type cover might work, but I don't have one. Another option is to enable test mode (bcdedit -set testsigning on), before which you should also disabl...

杂记 20130821

一直纠结是用中文写还是英文写还是都写,随心情好了。 Windows 8 FileHistory 不能指定外置硬盘 参考: http://answers.microsoft.com/en-us/windows/forum/windows_8-hardware/windows-8-file-history-does-not-recognize-my/361a527b-d35b-4753-b4a6-3ccff738ff62?page=2 - 确定该硬盘没有被加入任何library - 删除 C:\Users\USERNAME\AppData\Local\Microsoft\Windows\File History 给我妹家里配无线路由,主要是希望用一个小路由增强一个大路由(外接adsl)的信号 一开始给小路由设的repeater模式,但是不太好使,于是用ap模式+开启wds,然后小路由自动禁用了dhcp。这时在小路由的信号内手动设置ip和dns可以上网。最后把小路由dhcp打开,然后把两个路由分配的ip段分开就可以了。 两个路由的ssid,信道和加密方式都应该相同。 按理说WDS应该可以的,但是似乎小路由不太行。 利用PuttyGen声称公钥然后让服务器信任 参考: http://www.dailyiteration.com/howto-passwordless-ssh-authentication-with-putty/ 主要是需要用sshkeygen -i -f 转一下格式 Gmail里拖拽图片附件,如果拖到正文,就会添加成inline image;如果拖到下方工具栏上,就会添加成附件 参考: http://lifehacker.com/add-images-as-attachments-via-drag-and-drop-in-gmail-561870021

Misc Notes 20130702

- To remove the 'new release available' message, remove the file /etc/update-motd.d/91-release-upgrade http://blog.koppi.me/2011/12/howto-disable-new-release-available-on-ubuntu-11-10/ - To remove unused language packs from Windows 8, run `lpksetup` http://answers.microsoft.com/en-us/windows/forum/windows_7-windows_programs/how-to-uninstall-extra-language-packs-from-windows/9ac2194d-1665-498d-8571-32e4cce6efa9 - If Cygwin X server crashed with `-multiwindow` on HD4000 graphics card, try updating the graphics card driver http://serverfault.com/questions/488306/cygwin-x-crashing-on-multiwindow-option/488556#488556 - halt vs poweroff: halt does not send the acpi power off signal http://unix.stackexchange.com/questions/42572/halt-and-poweroff-options-for-shutdown-command - MyPaint picker offset on windows 64bit with high dpi - Also how to set the high dpi compatibility setting for 64bit programs http://forum.intilinux.com/mypaint-help-and-tips/color-pick...

杂记 20120820 | Misc Notes 20120820

1. ifuse & ideviceinstaller 可以很好的查看和管理iOS的程序和目录,比windows方便多了。 2. c:\users\USERNAME\appdata\local\vitualstore\program files (x86)\ 是对Program Files的虚拟映射。有的程序会试图在自己安装目录写入文件,但是win7中普通用户没有权限,所以大概是为了兼容搞了这么个目录 3. ssh-keygen -l  查看自己的fingerprint 4. testdisk 一个非常强劲的磁盘工具。之前我的硬盘分区表乱掉了就是用这个工具复活的。 5. chrome某个版本显示中文句号只能显示一半。一个临时办法是放大到110% 1. ifuse & ideviceinstaller are great tools managing Apps and folders of iOS devices, which are much convenient than accessing them in Windows. 2. c:\users\USERNAME\appdata\local\vitualstore\program files (x86)\ is a virtual mapping to the "program files" folders. In Win 7, a program run as a normal user cannot write to its installation folder, but probably for compatibility, this virtual folder is provided. 3. ssh-keygen -l : to view the fingerprint of your ssh keys 4. testdisk is a very powerful tool for hard drive. Last time I messes up the partition table of my hard drive, and then fixed it using this tool 5. In some versi...

杂记 20110803 | Misc notes 20110803

1. Linux 查看程序访问的文件(类似filemon/processexplorer): strace -e trace=file foo 2. mod_python 编译出错: 参考 http://blogold.chinaunix.net/u/19834/showart_2127433.html connobject.c142行 !(b == APR_BRIGADE_SENTINEL(b) 改为!(b == APR_BRIGADE_SENTINEL(bb) 3. virtualbox 修改 host key: file -> preferences -> input 4. live meseenger 显示所有好友离线: 去控制面板->添加删除程序->修复live meseenger 也有说删除appdata的 5. linux 手动添加dns: 修改/etc/dhcp/dhclient.conf (可能还需要/etc/dhcp3/dhclient.conf),加入 prepend domain-name-servers 8.8.8.8; 6. Windows 7 godmode 建立文件夹,改名为GodMode.{ED7BA470-8E54-465E-825C-99712043E01C} 1. Monitor files accessed by a process on Linux (like filemon/processexplorer) strace -e trace=file foo 2. cannot compile mod_python from http://blogold.chinaunix.net/u/19834/showart_2127433.html at connobject.c line 142 change !(b == APR_BRIGADE_SENTINEL(b) to !(b == APR_BRIGADE_SENTINEL(bb) 3. Change host key in virtualbox: file -> preferences -> input 4. All contacts in live messenger appear offline:...

杂记 | Misc Notes

1. fontregister: Windows 下没有管理员权限时安装字体的小工具 2. 在Windows下Putty用Linux字体时可能需要选上Cleartype选项 3. x11vnc: 可以在终端开一个vnc server连接到一个已有的X会话上去 4. pomodoro: 工作25分钟,休息5分钟。一个有趣的工作模式 5. network-manager的共享网络模式(shared to other computers)似乎变的好用了(以前我这完全不能用) 6. Firefox添加书签时没有“在边栏显示”的选项,但是去书签管理看属性还是有的。 1. fontregister: a tool that allows you to register new fonts in Windows without admin privilege. 2. In putty on Windows, you may need to choose the "Cleartype" option when using Linux fonts 3. x11vnc: to create a vnc server that connects to a existing X session 4. pomodoro: work for 25 minutes, then rest for 5 minutes. A good way of time managing. 5. The "shared to other computers" mode in network-manager works well now. 6. In recent Firefox, there's no "load this bookmark in the sidebar" option when you add a new bookmark. However you can still find it, by checking the properties of an existing bookmark in the bookmark manager.

Windows 7 不能自动给移动硬盘分配盘符 | Windows 7 won't assign a volume letter for removable hard disks automatically

症状: 插上移动硬盘后,显示连接了usb设备,但是在我的电脑里看不到新盘符。 用计算机管理里面的磁盘管理可以手动设置盘符,然后可以使用。 解法: 以管理员权限运行命令mountvol /e Symptom: A new volume won't appear in 'my computer' after plugging in a removable hard disk, but it shows that a new usb device has been plugged in. A volume letter can be manually assigned through the disk management in computer management console, then the removable disk can be used normally. Solution: run as adin: mountvol /e

Windows Server 2008 R2中配置游戏手柄 | Configuring gamepads in Windows Server 2008 R2

Windows Server 2008 R2 中似乎并没有游戏控制器的相关配置,以至我新买的手柄一直不能正确配置。 在 http://www.win2008r2workstation.com/win2008r2/game-controllers 中提供了一个游戏控制器的控制面板文件,包含了32位和64位的版本。按提示安装后就可以在控制面板里找到了,与之前Windows游戏控制器的配置无异。 Seems that the configuration dialog of gamepads is missing in Windows Server 2008 R2, which made my new gamepad not working all the time. Several necessary files for gamepad configurations are provided in http://www.win2008r2workstation.com/win2008r2/game-controllers including 32bit and 64bit versions. Just follow the instructions to install it, and then it can be found in the Control Panel, which is exactly the same as the gamepad configuration in previous versions of Windows.

指定excel输出csv文件的分隔符 | Specify the separator in csv file outputted by Excel

Excel 导入csv文件时候可以指定分隔符,但是输出是没有明显的选项,只是txt用空格,csv用逗号。 查了一下,这个需要去控制面板,区域语言选项,“格式”标签选高级,在数字里面就可以调整分隔符了。 这个还真是不直观,太隐蔽了。。。 In Excel the separator can be specified when import a csv file using the wizard, but there's no such an option when exporting, the only choices are txt and csv, where the space and comma are used as separator respectively. And I found on the Internet that, to change the symbol, go to the control panel, then "regional and language options". In the advanced options under the "format" tab, there's a "number" tab, where you can change the "list separator". This option is hidden so well...

windows server 2008 r2 当桌面系统使用的配置

我原来的windows 7 rc到期了,所以搞了个免费的学生号装windows server 2008r2,效果不比windows 7差,就是需要折腾一些服务设置啥的。 最近在 http://weblogs.asp.net/israelio/archive/2008/02/21/windows-server-2008-as-workstation.aspx 恰好又看到了,因此转过来备忘: Disable shutdown event tracker Start->Run->"gpedit.msc" -> Administrative tools->System-> Display Shutdown event tracked -> Disable Disable IE Security Start->Server Manager->Configure IE Sec->Off both options. Enable Wireless Support Start->Server Manager->Features->Add Feature->Wireless LAN Services Enable Audio support Start->Run->"Service.msc"->Windows Audio -> Automatic Start->Run->Services.msc"->Windows Audio Endpoint Builder->Automatic Install hardware drivers I am using ThinkPad t60p so my driver list is here Note that mobility center is missing from windows 2008 server so there is no need to instal...

Windows 键盘问题一例

今天打开电脑,进入Windows,登陆时竟然发现键盘不能用!冷静了一下后用软键盘登了,登陆后发现还是不行! 于是用鼠标和软键盘操作,看Device Manager,键盘设备有个黄叹号,设备状态里显示 Windows cannot start this hardware device because its configuration information (in the registry) is incomplete or damaged (code 19) Google之,在 http://www.edmartechguide.com/2009/02/windows-cannot-start-this-hardware.html 里得到线索 于是进入Regedit,在HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class项下逐个检查,直到找到{4D36E96B-E325-11CE-BFC1-08002BE10318},发现Class值是Keyboard,那么应该就是这项了 由于权限问题,改名和删除都不行,于是仔细观察各项,发现"UpperFilters"里有个可疑的alidevice,于是删掉,把"kbdclass alidevice"改成"kbdclass" 然后去Device Manager里Uninstall键盘设备,然后刷进,于是可以用了。 这样看来,应该是淘宝的驱动挂了,或者是让我搞挂了。 另外是Device Manager里的PS/2鼠标也不能用,这里是我笔记本上的触摸板。我用的鼠标是USB的,不过注册表里没有发现可疑项,重启以后自然能用了。 另外庆幸我的USB鼠标还能工作,否则输入设备一个都没了。。。好险

64位Windows安装gvim

一开始照常下载了32位的安装包,运行没什么问题,就是explorer的右键菜单里不能加入edit with gvim这个选项,重装多次也不行。 后来搜了一下,说是32位的extension dll不能被64位的explorer加载,而再后来在发现vim下载页上有一行小字 Win64 64-bit binaries for MS-Windows can be found at http://code.google.com/p/vim-win3264/. The Win32 binaries should run too, but the "Edit with gvim" context menu entry won't work, since a 32-bit shell extension DLL cannot be loaded into the 64-bit Explorer.exe. 但是前面windows binary的地方似乎并没有提到这一点。。。 于是去给的链接处下了一个64位的,安装运行,一切ok!

Vista 系统每次登陆自动创建加载一个临时用户的profile

症状: 每次登陆桌面会自动还原,增加文件后重启,或者重登陆后就消失 (其实这个只是最明显的症状) 分析: 没有发现可疑进程和自启动项 打开cmd发现所在目录是c:\users\temp. c:\users\ 目录还在,内容也还在 于是可以看出是系统创建了一个临时用户。 解决: 根据 http://szmmzs.itpub.net/post/3256/482379 在事件查看器中应当可以看到如下事件 Log Name: Application Source: Microsoft-Windows-User Profiles Service Date: Date Event ID: 1511 Task Category: None Level: Warning Keywords: Classic User: User Computer: Computer Description: Windows cannot find the local profile and is logging you on with a temporary profile. Changes you make to this profile will be lost when you log off. 一般来说产生的原因可能是profile目录内容损坏或者权限问题,但我看了一下,似乎都不是 解法是 1 用有管理员权限的其他用户登陆(实在没有别的用这个登录其实也行) 2 备份c:\users\ ,并改名/删除 3 用管理员打开regedit, 定位于HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList 4 找到一个 .bak, 其中的ProfileImagePath应当为c:\users\ 5 删除 .bak这个项,注销,并用出问题的用户登陆 6 这时c:\users\ 应当被重建 7 恢复备份的内容 8 重登陆 这是应该就没问题 另一说问题是该用户属于guest组,取消即可。 但这次遇到的不是这个情况。

vista 下 Indeo 5 解码器问题

有个avi是iv5格式的,装了k-lite codec也不能看,光能听声。下了个安装包,安不上。。。 搜了半天,在 http://forum.videohelp.com/topic327077.html 原来vista本来就有对应dll,只是没注册。不知是不是故意的。 解决办法是,用管理员运行regsvr32 ir50_32.dll

一个关于windows下gtk xmlparse.dll的问题

今天运行一个gtk程序时弹出一个对话框"the procedure entry point XML_setDoctypedeclHandler could not be located in the dynamic link library xmlparse.dll" 根据链接 http://www.astahost.com/info.php/Problems-Gimp_t10925.html ,是xmlparse.dll没有安装好的问题。虽然我这里不是gimp的问题,但是看情况应该类似。 解决办法是把gtk的xmlparse.dll拷到c:\WINDOWS\System32 。此外xmltok.dll也有类似问题,用同样方法解决。