linux简单使用

系统版本:wheezy

sudo su 可切换到root下

1. 修改IP:修改/etc/network/interfaces文件。主要改动如下:这里是有线网卡

iface eth0 inet static #这里原来是 dhcp 
address 192.168.1.200 
netmask 255.255.255.0
gateway 192.168.1.1

重启网络使配置生效:sudo /etc/init.d/networking restart

2. 修改软件源:/etc/apt/sources.list

修改为中科大的软件源

deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ wheezy main non-free contrib
deb-src http://mirrors.ustc.edu.cn/raspbian/raspbian/ wheezy main non-free contrib

3. 扩展可用空间

输入命令raspi-config,打开 树莓派高级配置,选择第一项“Expand Filesystem”

df -h 查看磁盘使用情况

4. 查看系统架构(32位或64位)

uname -a, uname -m, file /sbin/init, arch

参考文档:

http://blog.csdn.net/cxhome213/article/details/8983247

https://lug.ustc.edu.cn/wiki/mirrors/help/raspbian

http://www.cnblogs.com/abel/p/3441175.html

http://linux.cn/article-3048-1.html

 

你可能感兴趣的:(linux简单使用)