跳至主要内容

博文

目前显示的是 2014的博文

解决连接TFS上Git的验证错误

用VS死活无法同步TFS上的Git代码,一直报网络错误。一怒之下想着就用客户端工具把代码先同步了再说,结果用Git客户端一合并代码用Windows Live Id却一再报身份验证错误,确认用户名和密码都是正确的。 解决方法: 1.在Web登录TFS账户,点击你的账户名,选择“My Profile”. 2.选择“CREDIENTIALS”,点击下面的“Enable alternate credentials”,输入可选账号与密码,点击确认。 3.重新用Git GUI登录同步代码,一切工作正常。

解决Visual Studio 2012的TF31003错误

重装系统和Visual Studio 2012后,打开以前托管在Team Fundation Service的Git中的代码,结果死活在Visual Studio中连接不上服务器,报以下TF31003的错误: TF31003: Either you have not entered the necessary credentials or your user account does not have permission to connect to the Team Foundation Server at https://***.visualstudio.com/. Ask your server administrator to add the appropriate permissions to your account. 不断的登录再登出还是没法解决问题。 解决方法: 折腾了老半天,才发现是IE的cookie导致的,也许是平时用多个不同outlook.com的ID登录过导致吧。在IE中按 Ctrl + Shift + Delete ,打开窗口,点击删除。 然后再到Visual Studio 2012连接服务器,终于重新出来登录界面。

在Ubuntu 13.10上安装Wordpress

1.安装配置LAMP Server 进入root用户模式        sudo –s –H 安装MySql       apt-get install mysql-server mysql-client 安装Apache      apt-get install apache2 安装PHP支持       apt-get install php5 libapache2-mod-php5 创建info.php文件,确认PHP文件能够正常解析       vi /var/www/info.php            <?php                phpinfo();             ?>           /etc/init.d/apache2 restart       http://localhost/info.php 2. 安装并配置Wordpress 安装Wordpress       apt-get install wordpress 创建web要目录与wordpress的软链接       ln –s /usr/share/wordpress  /var/www 解压并安装wordpress数据库       gzip -d /usr/share/doc/wordpress/examples/setup-mysql.gz       bash /usr/share/doc/wordpress/examples/setup-mysql -n wordpress localhost 重启web服务,确认wordpress可以访问       /etc/init.d/apache2 restart      访问 http://localhost/wordpress 可进行wordpress的设置. 3. 注意事项 如果要使用WordPress的自动更新功能,必须把WordPress安装文件夹的所有权改为www-data用户       chown -R www-data /usr/share/wordpress 若是要使用IP地址访问WordPress,必须做以下

[转]为Ubuntu Server安装gnome图形桌面环境

From: http://blog.creke.net/696.html ubuntu server版默认都没有图形桌面(GUI),但是可以安装,以下共有两种安装方法。 一、安装全部Gnome桌面环境 Ubuntu系列桌面实际上有几种桌面应用程序,包括Ubuntu-desktop、Kubunut-desktop和Xubuntu-desktop。本文就以Ubuntu-desktop为例进行介绍,此方法操作最简单,但不建议在服务器上使用此方法,因为安装桌面相关软件太多。 sudo apt-get update sudo apt-get install ubuntu-desktop 二、自定义安装 1.安装x-windows的基础(必须): sudo apt-get install x-window-system-core 2.安装gnome基础(必须): sudo apt-get install gnome-core 3.安装中文显示(建议安装): sudo apt-get install language-pack-gnome-zh  #让gnome面板、菜单显示中文 sudo apt-get install language-pack-gnome-zh-base sudo apt-get install language-pack-zh             #中文语言包 sudo apt-get install language-pack-zh-base sudo apt-get install language-support-zh        #中文语言支持 sudo apt-get install scim        #scim中文输入法平台 4.安装登录管理器(一般不选): sudo apt-get install gdm 说明: gdm(gnome display manager)即gnome图形界面显示管理器,还有kdm/xdm等,它将使您可以在启动时直接进入GUI桌面环境,而勿需通过 startx 来启动GUI。 5.安装新利得软件管理器(可选): sudo apt-get install synaptic 6.卸载gnome桌面环境: sudo apt-get –purge remove