树莓派挂载U盘
Dec 11, 2014
树莓派用的是8g的TF卡,想作为小型NAS有点小,存不了多少东西,于是将一个闲置的32G U盘挂载上,当作存储分区 以下为操作过程: 查看磁盘信息 pi@raspberrypi ~ $ sudo fdisk -l Disk /dev/mmcblk0: 7990 MB, 7990149120 bytes 4 heads, 16 sectors/track, 243840 cylinders, total 15605760 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000981cb Device Boot Start End Blocks Id System /dev/mmcblk0p1 8192 122879 57344 c W95 FAT32 (LBA) /dev/mmcblk0p2 122880 15605759 7741440 83 Linux Disk /dev/sda: 32.2 GB, 32229031936 bytes 255 heads, 63 sectors/track, 3918 cylinders, total 62947328 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x15a8a090 Device Boot Start End Blocks Id System /dev/sda1 2048 62947327 31472640 f W95 Ext'd (LBA) /dev/sda5 4096 62947327 31471616 7 HPFS/NTFS/exFAT 这里看到,/dev/sda为32G的磁盘,分区格式为NTFS,现在就是要将改磁盘挂载为linux分区。 …
树莓派使用Ngrok实例
Nov 26, 2014
首先在ngrok https://ngrok.com/注册登录 架设已经在树莓派上安装了Nginx,端口为80 那么下载Linux/ARM版ngrok到树莓派,执行如下命令: …
修改树莓派Swap
Oct 30, 2014
树莓派的swap大小在/etc/dphys-swapfile中定义,默认为100M pi@raspi:~$ cat /etc/dphys-swapfile CONF_SWAPSIZE=1000 pi@raspi:/mnt$ free -h total used free shared buffers cached Mem: 437M 36M 401M 0B 2.1M 12M -/+ buffers/cache: 22M 415M Swap: 99M 0B 99M pi@raspi:/mnt$ 可以自己修改CONF_SWAPSIZE的值,单位为兆(MB) …
树莓派安装Tonido打造个人云服务
Aug 12, 2014
树莓派安装Tonido sudo mkdir /usr/local/tonido cd /usr/local/tonido sudo wget http://patch.codelathe.com/tonido/live/installer/armv6l-rpi/tonido.tar.gz sudo tar -zxvf tonido.tar.gz ./tonido.sh start 浏览器打开http://ip:10001开始注册设置 ip为树莓派的地址 安装多媒体解码器 Tonido支持在线播放音频,但需要安装设置解码器 …
树莓派中使用TL-WN725N
Aug 12, 2014
Raspbian版本 2014-01-07-wheezy-raspbian.img 下载地址为http://0x8.net/res/8188eu-20140616.tar.gz 首先固网链接树莓派,通过SSH登录 wget http://0x8.net/res/8188eu-20140616.tar.gz unzip 8188eu_31024_614.zip sudo mv 8188eu.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless sudo chown root:root /lib/modules/`uname -r`/kernel/drivers/net/wireless/8188eu.ko sudo mv rtl8188eufw.bin /lib/firmware/rtlwifi/ sudo chown root:root /lib/firmware/rtlwifi/rtl8188eufw.bin sudo depmod -a sudo modprobe 8188eu 然后编辑/etc/netwok/interfaces,添加以下内容 …
stuffLinuxRaspberry Piraspi树莓派RaspbianTP-LinkTL-WN735Nwn725nwireless无线网卡
树莓派配置VNC
Mar 11, 2014
树莓派安装VNC Server $sudo apt-get install tightvncserver $sudo apt-get install ttf-wqy-microhei //安装中文字体 使用VNC Server $vncserver -geometry 1024x768 //分辨率,推荐960x640,或者640x480 $vncserver -kill :1 //结束vncserver进程 Real VNC Viewer链接方法: 192.168.1.2:1 …
树莓派修改软件源
Mar 10, 2014
国内推荐阿里云的开源镜像服务,地址为http://mirrors.aliyun.com vi /etc/apt/sources.list 将默认的raspbian.org源注释(#)掉,加入阿里云的raspbian源 …
树莓派与DNSPod动态域名解析
Mar 03, 2014
所需条件 Raspberry Pi TP-Link路由器 DNSPod帐户 域名 配置路由器 进入路由器的DHCP服务器->静态地址分配菜单,为Raspberry Pi分配静态IP地址,例如:192.168.1.200 …
树莓派安装Python开发环境与GPIO库
Mar 02, 2014
安装python $sudo apt-get install python-dev 更新 $sudo easy_install -U distribute 安装python-pip $sudo apt-get install python-pip 添加国内pypi镜像 在**~/.pip/pip.conf**中添加 [global] index-url = http://mirrors.aliyun.com/pypi/simple/ 安装python的GPIO库 …
开始使用树莓派
Feb 28, 2014
安装系统 从官网下载系统镜像,推荐Raspbian http://downloads.raspberrypi.org/raspbian_latest 将下载后的zip文件解压,得到2014-01-07-wheezy-raspbian.img文件。 准备一张SD卡,最好容量大于4GB,Class10 …
stuffLinuxDebianRaspberry Piraspi树莓派Raspbianoverlock超频win32diskimager