Raspberry Pi的Raspbian 配置

更新树莓派系统

sudo apt-get update

修复Vi

sudo apt-get  remove vim-common 
sudo apt-get install vim

设置静态IP地址

vi /etc/network/interfaces

auto lo

iface lo inet loopback
#iface eth0 inet dhcp
iface eth0 inet static

address 192.168.1.254
netmask 255.255.255.0
gateway 192.168.1.1

allow-hotplug wlan0
iface wlan0 inet manul
wpa-roam /etc/wpa_aupplicant/wpa_supplicant.conf
iface default inet dhcp

VNC远程访问

sudo apt-get install vnc-server
vncserver
vncpasswd

SSH Raspbian

ssh [email protected]

NAS 配置

安装Samba

sudo apt-get install samba

添加移动存储为共享目录

 sudo vim /etc/samba/smb.conf

#add the code to the smb.conf
    [pi]
    comment = RPI
    path = /media
    browseable = yes
    writable = yes

设置Samba用户(共享目录的用户名密码)

sudo smbpasswd -a pi

自动挂载

sudo apt-get install fuse-utils ntfs-3g
sudo apt-get install autofs

你可能感兴趣的:(Raspberry Pi的Raspbian 配置)