摘要: Log in to your Pi and install the Tight VNC Package$ sudo apt-get install tightvncserverNext Run TightVNC Server which will prompt you to enter a Password and an optional View Only Password$ tightvncserverOnce that is done you can start a VNC server from the shell prompt. This example starts a sessi 阅读全文
posted @ 2013-11-03 14:47 shzy2012 阅读(421) 评论(0) 推荐(0) 编辑
摘要: 如果引起Uncompressing Linux...done, booting the kernel 是因为修改 /boot/cmdline.txt我的是因为修改cmdline.txt引起的dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait修改为dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfs. 阅读全文
posted @ 2013-11-03 10:33 shzy2012 阅读(2144) 评论(0) 推荐(0) 编辑
摘要: wajig是一个简单的软件包管理前端,和apt-get类似,但功能更多,它把apt-get、dpkg等Debian系统下的软件包管理工具都集成在一起,只用一个wajig命令就能完成各种复杂的管理工作。wajig是要额外安装的软件,同时需要python支持。base系统自带的软件包管理工具还是apt-get。用apt-get install wajig即可安装wajig。它还有一个Gnome GUI前端界面,能通过鼠标点击完成所有的软件包管理工作。有关wajig的详细介绍请参考http://wajig.togaware.com/。 阅读全文
posted @ 2013-11-03 09:40 shzy2012 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 环境:通过ssh连接RPI(debian)来显示操作RPI1:下载安装pySerial (需要连网)easy_install pyserial安装之后就可以检验是否可以导入serialsudo python import serialpi@raspberrypi:~$ sudo pythonPython 2.7.3 (default, Jan 13 2013, 11:20:46) [GCC 4.6.3] on linux2Type "help", "copyright", "credits" or "license" 阅读全文
posted @ 2013-11-02 15:04 shzy2012 阅读(3236) 评论(0) 推荐(0) 编辑
摘要: 注意:src 地址要写正确----------------第二种方法:$(document).ready(function() { // bind your jQuery events here initially});var prm = Sys.WebForms.PageRequestManager.getInstance();prm.add_endRequest(function() { // re-bind your jQuery events here});the solution is from :http://stackoverflow.com/ques... 阅读全文
posted @ 2013-10-14 17:48 shzy2012 阅读(1420) 评论(0) 推荐(0) 编辑
摘要: 查询当前时间,在后台的处理程序是在:当天时间上加一天作为结束的查询时间,例如 2012-07-01:00:00 到 2012-07-02:00:00 ,stockOutTo.Value.AddDays(1) //Stock-in-from var stockOutFrom = GetFormatDate(this.txtSearchStockOutFrom.Text.Trim()); if (stockOutFrom != null) { list = list.Where(c => c.Created >= s... 阅读全文
posted @ 2013-10-10 10:36 shzy2012 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 1: debian系统如何查看服务开启状态service --status-all~ $ which service/usr/sbin/service~ $ /usr/sbin/service --status-all2:查看已安装包dpkg -ldpkg -s package_name 3:用 lsusb 命令查看USB设备列表lsusb4:iwconfig是LWE最主要的工具,可以对无线网卡的大部分参数进行配置#iwconfig eth0 essid any 允许任何ESSID,也就是混杂模式#iwconfig eth0 essid "My Network" 设置ESS 阅读全文
posted @ 2013-10-02 16:22 shzy2012 阅读(705) 评论(0) 推荐(0) 编辑
摘要: 器材:USB 摄像头300万像素 USB 摄像头 树莓派亲测可用 免驱动(168块钱 http://item.taobao.com/item.htm?spm=a1z02.1.5864393.d4908585.MOVO92&id=20650207132)1:刚装好的系统,首先更新系统sudo apt-get update2: 安装vim编辑器(nano,vi 都用不习惯)sudo apt-get install vim3:配置hosts 文件,更快更新vim /ect/hosts添加以下内容#######################收集的地址93.93.130.39 www.rasp 阅读全文
posted @ 2013-10-02 14:59 shzy2012 阅读(3912) 评论(0) 推荐(0) 编辑
摘要: 器材:USB无线网卡EDUP USB无线网卡 树莓派 PCduino 免驱动 EP-N8508GS(36块钱,http://item.taobao.com/item.htm?spm=a1z02.1.5864393.d4908585.bmFeMv&id=22921464431)1:编辑 /etc/network/interfacessudo nano /etc/network/interface自带的配置:原有的配置:auto loiface lo inet loopbackiface eth0 inet dhcpallow-hotplug wlan0iface wlan0 inet m 阅读全文
posted @ 2013-10-02 14:41 shzy2012 阅读(399) 评论(0) 推荐(0) 编辑
摘要: 器材:USB转TTL模块 (淘宝一般10钱左右,http://detail.tmall.com/item.htm?spm=a230r.1.14.26.EcPcYQ&id=27066524652&ad_id=&am_id=&cm_id=140105335569ed55e27b&pm_id=)RPI 引脚分布图:Pl2303接 TXD,RXD,GND 对应的RPI引脚是 GPIO 15(RXD),GPIO 14(TXD),Ground接下来安装PL2303驱动: 安装完驱动之后,到“计算机”--》管理--》设备管理器有时安装完驱动之后,这里也不会显示,只有等 阅读全文
posted @ 2013-10-02 13:52 shzy2012 阅读(795) 评论(0) 推荐(0) 编辑