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.youkuaiyun.com/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

 

转载于:https://my.oschina.net/u/2250875/blog/368730

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值