摘要: 当然,首先要安装Node.js,见:通过PPA安装Node.js接下来:curl http://npmjs.org/install.sh | sudo sh注意:因为权限的原因,需要加sudo。但是是给sh加sudo而不是curl。另外,如果没有安装curl,使用下面命令安装:sudo apt-get install curl安装完成后,使用下面命令查看NPM版本:$ npm --version1.0.30 阅读全文
posted @ 2011-09-24 22:11 Sean Lv 阅读(17527) 评论(1) 推荐(0) 编辑
摘要: 创建app.js文件:var http = require('http');http.createServer(function (req, resp) { resp.writeHead(200, {'Content-Type': 'text/plain'}); resp.end('Hello, World!\n');}).listen(8124, '127.0.0.1');console.log('Server running at http://127.0.0.1:8124');运行:$ nod 阅读全文
posted @ 2011-09-24 21:50 Sean Lv 阅读(600) 评论(0) 推荐(0) 编辑
摘要: 安装:sudo apt-get install python-software-propertiessudo add-apt-repository ppa:chris-lea/node.jssudo apt-get updatesudo apt-get install nodejs目前只能过PPA安装稳定版本Node.js。安装后查看版本:~$ node --versionv0.4.12 阅读全文
posted @ 2011-09-24 15:37 Sean Lv 阅读(5509) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://blog.sina.com.cn/s/blog_550241dd0100rlu3.html桌面崩溃,无法使用 Ctrl-Alt-BackSpace 注销。几次强行重启,现收集几种解决方案。一、解放 Ctrl-Alt-BackSpace#1,点击Unity启动器输入keyboard启动该程序或按住Alt+F2输入keyboard来启动该程序。#2,切换到(Layouts)"布局"选项,点击下面的Options("选项")按钮,选中"Key sequence to kill the X server (Control + A 阅读全文
posted @ 2011-09-24 12:21 Sean Lv 阅读(812) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://hi.baidu.com/quest2run/blog/item/4c69e71df18ea90540341739.html点网卡上的"VPN连接"配置VPN添加,选择"point-to-point tunneling protocol (PPTP)"并新建连接名称:随便自动连接:可勾选Gateway:VPN服务器域名或IP地址user name:用户名password:密码NT Domain:不填注意:对所有用户可用不要选,不然连接不上。然后点“Advanced…“去掉EAP前的勾勾选use point-to-point enc 阅读全文
posted @ 2011-09-24 12:05 Sean Lv 阅读(720) 评论(0) 推荐(0) 编辑