• A new comer playing with Raspberry Pi 3B


    there are some things to do for raspberry pi 3b for the first time:

    1, connect pi with monitor/KB/mouse, then power on it and go into its desktop(by default):
    expand system up to the whole storage of SD card(it seems to be maximum of 64G by official exclaim);
    set up the locale as US/US, from desktop to CLI when login, the timezone as Asia/Chongqing
    alternatively, we could config these parameters by command: raspi-config(need root authentication), before that, you should use a tool such as Putty to connect with SSH.

    2, update system by:
    sudo apt-get update

    3, setup vim
    install new vim(I suspect it's fake itself, many feature aren't available in its VIM!) by: sudo apt-get install vim
    add a .vimrc under your home folder and insert the following configuration:
    set nu
    syntax on
    set hlsearch
    set tabstop=4
    "set softtabstop=4
    "set shiftwidth=4
    "set cindent
    "set cinoptions={0,1s,t0,n-2,p2s,(03s,=.5s,>1s,=1s,:1s

    4, config static ip address (for wifi at least) by altering file /etc/network/interfaces:
    auto wlan0
    allow-hotplug wlan0
    iface wlan0 inet static
        address 192.168.1.60
        netmask 255.255.255.0
        gateway 192.168.1.1
        wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

    note: more details for its configuration information, refer to its manual by typing - man interfaces, other configuration files or head files such as <stdio.h>, you can do the same.

    5, install remote desktop for raspberry pi by:
    sudo apt-get install xrdp
    then you can use the default remote connecting tool of microsoft windows self to login pi

    6, how to share with pi's home folder?
    by SAMBA service:
    a, sudo apt-get install samba samba-common-bin
    b, sudo smbpasswd -a pi
    c, make changes to 'read only' as no and 'browseable' as yes in section [homes] in file /etc/samba/smb.conf
    d, sudo /etc/init.d/samba restart
    e, then windows has access to the shared home folder like \192.168.1.60pi

    7, how to use USB mass storage devices under it?
    you could use 'lsusb' to find out which usb devices are connected.
    a, mount usb disk manually
        make sure folder /mnt/udisk exists;
        mount: sudo mount -o uid=pi,gid=pi /dev/sda? /mnt/udisk (note: sda? should be seeked out accordingly)
        unmount: sudo umount /mnt/udisk
    b, mount usb disk automatically?    

    8, complete development environment update for c/c++

    for gcc: sudo apt-get install gcc-4.9-doc    (first check your version of gcc, in this case, it is 4.9)

    P.S. Win32DiskImager can backup and restore system on TF card among different cards.
    halt完成后居然有2.4瓦特的功耗!而运行时轻载也就1.7瓦特左右,负载重时也就2-3瓦特!所以要彻底关电,必须使用poweroff或shutdown now --poweroff命令,关断后其显示红指示灯常亮,而halt后是灭灯的。

  • 相关阅读:
    c#时间函数
    .NET中的lock(C#版本)
    关于OpenSmtp邮件标题过长,附件名,用户名出现乱码问题的终及解决Dll文件
    Windbg 用法
    使用OpenXML将数据导入到Excel模板中
    Compiere源码workspace的两个配置文件内容
    我学MEF系列(8):MEF+Unity实现可扩展拦截器
    基于插件架构的简单的Winform框架(上)
    我学Flash/Flex(2):AS3读取XML文件内容
    我学Flash/Flex(1):Action Script3.0基础知识
  • 原文地址:https://www.cnblogs.com/oijen/p/5418252.html
Copyright © 2020-2023  润新知