2011年4月21日星期四

Visual studio 2008卸载失败的可能原因及解决方法

可能的原因:

  1. 序列号问题;
  2. 安装过VS更新。
表现方式:
A problem has been encountered while loading setup components.Canceling setup
解决方法:
使用微软官方提供的VS2008及其组件卸载工具:UninstallTool.exe

2011年3月21日星期一

vncserver安装及常见问题

  • 安装:
  1. sudo apt-get install vnc4server
  2. ~/.vnc/xstartup  修改该文件如下:
#!/bin/sh

# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
# twm &gnome-session &


  1. vncserver :1 启动服务
  2. 使用tightvnc连接,格式为IP:1
  • 问题:Could Not Acquire Name On Session Bus
    • 原因是两个用户不能使用同一个gnome会话。两种方法:
    1. 主机上退出gnome桌面程序,远程就可以连上了;
    2. unset DBUS_SESSION_BUS_ADDRESS
      unset SESSION_MANAGER


  • D键无法使用

  • Ubuntu默认使用D键作为快捷键显示桌面。因此,禁用改快捷键或者绑定到其他按键上去。 

    linux下报File in wrong format错误的解决方法

    1、make clean
    2、make
    问题的原因:文件目前的编译平台跟之前的平台(环境)不同。