查看: 2635|回复: 0

[教程] 【一网打尽】LEARN RASPBERRY PI (2 of 13)

[复制链接]
  • TA的每日心情
    开心
    2016-8-4 10:56
  • 签到天数: 242 天

    连续签到: 1 天

    [LV.8]以坛为家I

    发表于 2015-3-30 15:13:37 | 显示全部楼层 |阅读模式
    分享到:
    Overview SIMON MONK

    In the first lesson of this series, we showed you how to prepare an SD card containing an operating system for your Raspberry Pi. In this lesson, we will show you how to setup your Raspberry Pi the first time you boot it up.
    learn_raspberry_pi_raspi-config_main.png
    We do this using a tool called Raspi-Config that runs automatically the first time you boot your Raspberry Pi. This starts before the windowing system and so you have to use the cursor keys and Return key to navigate the menu system.

    It is a bit like adjusting the BIOS settings on a PC, once you have things right, you probably won't need it again. We will start with the options that are most important and then look at some of the other options that you may wish to configure.


    Using the Whole SD Card SIMON MONK

    This may seem a bit strange, but by default the Raspberry Pi only uses as much of the SD card as the operating system requires. This means that even though you might have used a large SD card, the operating system won't use it.
    learn_raspberry_pi_raspi-config_expand_1.png
    To fix this so that all the space on the SD card can be used, use up / down cursor keys to select the 'expand_rootfs' menu option and hit return.

    Once you do that, there will be some screen flashing as a script is run and then you will see the following confirmation.

    learn_raspberry_pi_raspi-config_expand_2.png
    Press Return again to return to the main menu.

    Using the Whole Screen SIMON MONK

    Being designed to work with TVs, you may find that your Pi is only using the middle portion of the screen and there is a big unused area all round the screen.
    learn_raspberry_pi_raspi-config_overscan1.png
    This is not true of all TVs and monitors, but if its happening for you then selecting the option to Disable Overscan may fix this for you.
    learn_raspberry_pi_raspi-config_overscan2.png
    Use the left and right cursor keys to make your selection and then hit Return.

    If after disabling overscan, you cannot see the left edge of the screen then see the section 'Running Raspi_Config After Booting'.


    Changing Timezone SIMON MONK

    Skipping past a few options for a moment, the next thing that you almost certainly need to do is (unless you live in the GMT timezone) is to change the timezone.
    learn_raspberry_pi_raspi-config_timezone1.png
    From the options, first select the Geographic Area, then the Timezone within that area.
    learn_raspberry_pi_raspi-config_timezone2.png
    learn_raspberry_pi_raspi-config_timezone3.png

    Booting into Desktop SIMON MONK

    By default, when the Raspberry Pi boots, you just get a command line. No windows just a terminal where you can login and type commands.

    The final configuration that you definitely want to make, unless you don't like windowing environments is to change the boot behaviour so that it automatically starts the windowing system and logs you in.

    learn_raspberry_pi_raspi-config_boot_1.png
    Select the sensible option and hit Return.
    learn_raspberry_pi_raspi-config_boot_2.png

    Other Options SIMON MONK

    The options described above are those which could pretty much be considered essential when running your Raspberry Pi for the first time. There are some other options listed that are worth describing briefly.


    • configure_keyboard – as it implies allows you to chose from a long list of keyboard layouts.
    • change_pass – allows you to change the system password for the user 'pi' the default user on the system. By default, this password is 'raspberry' so those preoccupied with security may wish to change the password.
    • change_locale – For non-English speakers, you can select which locales should be available on the system and which should be the default for the operating system.


    • memory_split – allows you to adjust how much of the shared system memory is available for graphics and how much for the main processor. If you plan to run graphics hungry games, or video playback, then you may decide to alter these settings.
    • ssh – in a later tutorial we will look at remote controlling your Pi from another computer using ssh. This option allows you to enable ssh so that you can do that.


    • update – this option tries to find a newer version of Raspi_Config and download it. It is possible that new options will be added to the system in the future, so you may wsh to do this.
    • Running raspi-config After Booting SIMON MONK

      You can run raspi-config any time you like, if you find that there are some settings that you need to make.
      Click on the desktop icon 'LXTerminal' to open a terminal session.

      learn_raspberry_pi_terminal.png

      Then enter the following command and hit return:

      sudo raspi-config
      Test & Configure SIMON MONK

      learn_raspberry_pi_reboot.png
      Reboot your Pi – click the icon bottom right – and this time you should boot straight up into the windowing environment.
      In the next tutorial, we will look at configuring WiFi and finding the IP address of your Pi.













    回复

    使用道具 举报

    您需要登录后才可以回帖 注册/登录

    本版积分规则

    关闭

    站长推荐上一条 /2 下一条



    手机版|小黑屋|与非网

    GMT+8, 2024-4-27 06:29 , Processed in 0.113738 second(s), 16 queries , MemCache On.

    ICP经营许可证 苏B2-20140176  苏ICP备14012660号-2   苏州灵动帧格网络科技有限公司 版权所有.

    苏公网安备 32059002001037号

    Powered by Discuz! X3.4

    Copyright © 2001-2024, Tencent Cloud.