SniGoal

RaspberryPi Tips

2012-12-25

Raspbian从命令行启动

sudo raspi-config >> boot_behaviour >> no

Raspbian开机自动运行脚本(有点问题)

Raspbian(http://www.raspbian.org/)is a free operating system based on Debian optimized for the Raspberry Pi hardware.

开机自动运行的方法与Debian类似。
以下内容摘自http://penglei.name/html/96.html:
Debian定义了多个运行级别脚本,分别存放在/etc/rc0.d至/etc/rc6.d中,默认级别为5.
要增加开机自动运行脚本的方法如下:
#vi /etc/init.d/rc.local

写入你需要运行的脚本,:wq退出
# chmod +x /etc/init.d/rc.local #增加脚本执行权限
# update-rc.d rc.local start 99 2 3 4 5 . stop 01 0 1 6 . #设置启动级别

若要删除脚本的启动级别运行如下命令
# update-rc.d -f rc.local remove

ref:http://penglei.name/html/96.html

Raspbian如何显示中文

  1. 将Raspberry Pi连接到网络,在终端中执行下面的命令

  2. 获取并安装文泉驿微米黑字体

    sudo apt-get install ttf-wqy-microhei

  3. 配置系统字体,首先进入区域设置界面

    sudo dpkg-reconfigure locales

  4. 用空格键选择四个中文字体zh_CN.GB2312, zh_CN.GB18030, zh_CN GBK, zh_CN.UTF-8,然后确定

  5. 选择zh_CN.UTF-8作为系统环境默认区域设置,然后确定

  6. 重启

Raspbian switch to root

To execute a command as root, put sudo before the command, for example

sudo halt

if you want to halt the system.
If you wish to become root temporarily, enter the command

sudo -s

and to leave root mode enter the command

exit

ref:http://www.raspberrypi.org/phpBB3/viewtopic.php?f=26&t=13160
ref:http://www.cnblogs.com/snigoal/archive/2012/09/16/2687319.html

Raspian安装Chrome

  1. wget http://goo.gl/go5yx -O install.sh
  2. chmod a+x install.sh
  3. ./install.sh
  4. chrome -disable-ipv6 & (& for running at background)
  5. error loading libsmime3.so try sudo apt-get update then redo step 3

Raspian安装中文输入法SCIM (Smart Common Input Method)

  1. sudo apt-get install scim-pinyin
  2. if some packages can’t be downloaded, try sudo apt-get update --fix-missing
  3. run scim and it will run wihle booting.

安装Pi Store

http://www.raspberrypi.org/archives/2768

修改root密码

sudo passwd root

安装Subversion

sudo apt-get install subversion

ref:

  1. http://www.raspberrypi.org/phpBB3/viewtopic.php?f=30&t=13337
  2. http://www.ha97.com/4467.html

svn over http

ref:http://www.jeremymorgan.com/tutorials/raspberry-pi/raspberry-pi-how-to-svn-server/

安装Git

sudo apt-get install git-core

ref:http://quick2wire.com/articles/a-gentle-guide-to-git-and-github/

扫描二维码,分享此文章