Merge pull request #5182 from Cathon/master

[Translated]20170215 openSUSE on Raspberry Pi 3.md
This commit is contained in:
Ezio 2017-02-24 09:24:52 +08:00 committed by GitHub
commit bfebe46137
2 changed files with 77 additions and 81 deletions

View File

@ -1,81 +0,0 @@
Cathon is translating...
# openSUSE on Raspberry Pi 3: From Zero to Functional System in a Few Easy Steps
The following article has been contributed by Dmitri Popov, Technical Writer at the SUSE Documentation team.
Deploying [openSUSE][2] on [Raspberry Pi 3][3] is not all that complicated, but there are a few tricks that smooth the process.
First of all, you have several flavors to choose from. If you plan to use your Raspberry Pi 3 as a regular machine, an openSUSE version with a graphical desktop is your best option. And you can choose between several graphical environments: [X11][4], [Enlightenment][5], [Xfce][6], and [LXQT][7]. There is also the JeOS version of openSUSE which provides a bare-bones system ideal for transforming a Raspberry Pi 3 into a headless server. Better still, you can choose between the [Leap][8] and [Tumbleweed ][9]versions of openSUSE.
![](https://www.suse.com/communities/blog/files/2017/02/j5dkkbtepng-dmitri-popov-450x300.jpg)
The first order of business is to download the desired openSUSE image from [https://en.opensuse.org/HCL:Raspberry_Pi3][10]. Next, you need to create a bootable microSD card. While you can write the downloaded image to a microSD card using command-line tools, [ _Etcher_ ][11] makes the process more enjoyable and safe. Grab the utility from the projects website, extract the downloaded  _.zip_  file and make the resulting  _.AppImage_  file executable using the command:
_chmod +x Etcher-x.x.x-linux-x64.AppImage_
Plug then a microSD card into your machine, launch Etcher by double-clicking on it, select the downloaded  _.raw.xz_  image file, and press Flash!. Connect a display and keyboard to the Raspberry Pi 3, insert the microSD card in it, and boot the little machine. During the first boot, openSUSE automatically expands the file system to make use of all free space on the card. At some point youll see the following message:
```
GPT data structures destroyed! You may now partition the disk using
fdisk or other utilities
```
There is no need to panic, though. Wait a minute or two, and openSUSE will continue to boot normally. When prompted, log in using the default  _root_  user name and  _linux_  password.
If you choose to deploy JeOS on your Raspberry Pi 3, keep in mind that you wont see any output in the screen during first boot. This means that the screen will remain blank until the system finishes expanding the file system. While you can configure kernel parameters to show output, its probably not worth the hassle. Just wait till you see the command-line prompt.
Since openSUSE comes with SSH enabled and configured, you can boot the Raspberry Pi without a display. In this case, you need to connect the Raspberry Pi to your network via Ethernet. Just give the Raspberry Pi enough time to boot and expand the system, and you can then connect to it via SSH from any other machine on the same network using the  _ssh root@linux.local_  command.
By default, you log in to the system as root, and its a good idea to create a regular user. The all-mighty YaST configuration tool lets you do that with consummate ease. Run the  _yast2_  command, switch to the Security and Users -> User and Group Management section, and add a new user. While you are at it, you can update the system in the System -> Online Update section. Once youve done that, quit YaST, reboot the Raspberry Pi, and log in as the newly created user.
Thats all fine and dandy, but there is one crucial component of the system that doesnt work right out of the box: the wireless interface. Fortunately, this issue is easy to solve. First, install the nano text editor using the command:
_sudo zypper in nano_
then run:
_sudo nano/etc/dracut.conf.d/raspberrypi_modules.conf_
to open the  _raspberrypi_modules.conf_  file for editing. Remove  _sdhci_iproc_  in the first line and uncomment the last line. Save the changes, run the command:
_mkinitrd -f_
and reboot the Raspberry Pi.
![](https://www.suse.com/communities/blog/files/2017/02/figure1-raspi-450x329.png)
Launch YaST again, switch to the System -> Network Settings section, and you should see the  _BCM43430 WLAN Card_  entry in the list of network interfaces. Select this entry and press Edit. Enable the Dynamic Address DHCP option, press Next, select the desired wireless network, and configure the required connection settings. Press Next and then OK to save the settings. Reboot the Raspberry Pi, and it should automatically connect to the specified Wi-Fi network.
And thats it !
--------------------------------------------------------------------------------
via: https://www.suse.com/communities/blog/opensuse-raspberry-pi-3-zero-functional-system-easy-steps/
作者:[chabowski][a]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]:https://www.suse.com/communities/blog/author/chabowski/
[1]:https://www.suse.com/communities/blog/author/chabowski/
[2]:https://www.opensuse.org/
[3]:https://www.raspberrypi.org/
[4]:https://www.x.org/wiki/
[5]:https://www.enlightenment.org/
[6]:https://www.xfce.org/
[7]:http://lxqt.org/
[8]:https://www.opensuse.org/#Leap
[9]:https://www.opensuse.org/#Tumbleweed
[10]:https://en.opensuse.org/HCL:Raspberry_Pi3
[11]:https://etcher.io/
[12]:https://www.suse.com/communities/blog/opensuse-raspberry-pi-3-zero-functional-system-easy-steps/#
[13]:https://www.suse.com/communities/blog/opensuse-raspberry-pi-3-zero-functional-system-easy-steps/#
[14]:https://www.suse.com/communities/blog/opensuse-raspberry-pi-3-zero-functional-system-easy-steps/#
[15]:https://www.suse.com/communities/blog/opensuse-raspberry-pi-3-zero-functional-system-easy-steps/#
[16]:https://www.suse.com/communities/blog/opensuse-raspberry-pi-3-zero-functional-system-easy-steps/#
[17]:http://www.printfriendly.com/print?url=https%3A%2F%2Fwww.suse.com%2Fcommunities%2Fblog%2Fopensuse-raspberry-pi-3-zero-functional-system-easy-steps%2F
[18]:http://www.printfriendly.com/print?url=https%3A%2F%2Fwww.suse.com%2Fcommunities%2Fblog%2Fopensuse-raspberry-pi-3-zero-functional-system-easy-steps%2F

View File

@ -0,0 +1,77 @@
# 在树莓派 3 上运行 openSUSE简单几步搭建一个实用系统
这篇文章由 SUSE 文档团队的技术编辑 Dmitri Popov 纂写。
在 [树莓派 3][3] 上部署 [openSUSE][2] 系统不是很复杂,不过这儿有一些小技巧教你更好地完成这个过程。
首先,你将会有许多版本可供选择。如果你打算使用树莓派 3 作为一个普通主机,那么带有图形界面的 openSUSE 将是你最好的选择。你可以选择几种不同的图形界面程序:[X11][4] 、 [Enlightenment][5] 、 [Xfce][6] 或是 [LXQT][7]。openSUSE 还有一个 JeOS 版本能够提供最基础的系统,可以把树莓派 3 作为一个无外设的服务器使用。而且你还可以选择 openSUSE 的 [Leap][8] 或 [Tumbleweed][9] 版本。
![](https://www.suse.com/communities/blog/files/2017/02/j5dkkbtepng-dmitri-popov-450x300.jpg)
首先你需要从 [https://en.opensuse.org/HCL:Raspberry_Pi3][10] 下载所需的 openSUSE 镜像,然后制作一张可启动的 microSD 卡。你可以使用命令行工具 [_Etcher_][11] 轻松安全地将下载好的镜像写入 microSD 卡。你需要从项目网站上获取该程序,下载 _.zip_ 文件并解压,使用以下命令把 _.AppImage_ 文件的属性设置为可执行:
_chmod +x Etcher-x.x.x-linux-x64.AppImage_
将 microSD 卡插入电脑,双击运行 Etcher 软件,选择下载好的 _.raw.xz_ 镜像文件,点击 Flash 按钮!然后将显示器和键盘连接树莓派 3插入 microSD 卡启动树莓派。第一次启动时openSUSE 会自动扩展文件系统以充分利用 microSD 卡上的剩余空间。这时你将看到以下信息:
```
GPT data structures destroyed! You may now partition the disk using fdisk or other utilities
```
不用担心稍等两分钟openSUSE 将继续正常启动。当看到提示时,输入默认用户名 _root_ 和默认密码 _linux_ 登录系统。
如果你选择在树莓派 3 上部署 JeOS 版本,第一次启动时你不会看到屏幕上有任何输出。也就是说,屏幕会一直保持空白,直到系统完成对文件系统的扩展。你可以通过配置内核参数来显示输出,不过没有必要做这麻烦事。只需稍等片刻,你就能看到命令行提示。
由于 openSUSE 已经启用并且配置了 SSH 服务,所以启动树莓派时你也可以不用显示器。这样的话,你就需要使用 Ethernet 接口将树莓派连接网络。留给树莓派足够的时间来启动和扩展系统,你就能够从同一网络中的其他主机,使用 _ssh root@linux.local_ 命令,通过 SSH 服务连接树莓派。
默认情况下你将以 root 用户登录系统。所以创建一个普通用户是个不错的主意。你可以使用 YaST 配置工具轻松完成这件事。运行 _yast2_ 命令,选择 “安全与用户” -> “用户与用户组管理” 选项,就可以创建新用户了。你还可以选择 “系统” -> “在线升级” 选项来更新系统。完成之后,退出 YaST ,重启树莓派,然后使用新创建的用户登录系统。
一切搞定,不过还有一个重要的系统组件不能正常工作,那就是无线接口。当然,这个问题也可以轻松解决。首先使用以下命令安装 nano 文本编辑器:
_sudo zypper in nano_
然后运行以下命令修改 _raspberrypi_modules.conf_ 文件:
_sudo nano/etc/dracut.conf.d/raspberrypi_modules.conf_
删除文件第一行的 _sdhci_iproc_ ,再取消最后一行的注释。运行以下命令保存修改:
_mkinitrd -f_
最后,重启树莓派。
![](https://www.suse.com/communities/blog/files/2017/02/figure1-raspi-450x329.png)
再次运行 YaST ,在 “系统” -> “网络设置” 区域,你应该能在网络接口列表中看到 _BCM43430 WLAN Card_ 记录。选择这一项,点击 ”编辑“ 按钮。开启 Dynamic Address DHCP 选项,点击 ”下一步“ ,选择你想要连接的无线网络,配置所需的连接设置。点击 ”下一步“ 和 ”确定“ 保存设置。重启树莓派,它应该就能连接上特定的 Wi-Fi 网络了。
至此,你就完成了树莓派上的系统部署。
--------------------------------------------------------------------------------
via: https://www.suse.com/communities/blog/opensuse-raspberry-pi-3-zero-functional-system-easy-steps/
作者:[chabowski][a]
译者:[译者ID](https://github.com/Cathon)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]:https://www.suse.com/communities/blog/author/chabowski/
[1]:https://www.suse.com/communities/blog/author/chabowski/
[2]:https://www.opensuse.org/
[3]:https://www.raspberrypi.org/
[4]:https://www.x.org/wiki/
[5]:https://www.enlightenment.org/
[6]:https://www.xfce.org/
[7]:http://lxqt.org/
[8]:https://www.opensuse.org/#Leap
[9]:https://www.opensuse.org/#Tumbleweed
[10]:https://en.opensuse.org/HCL:Raspberry_Pi3
[11]:https://etcher.io/
[12]:https://www.suse.com/communities/blog/opensuse-raspberry-pi-3-zero-functional-system-easy-steps/#
[13]:https://www.suse.com/communities/blog/opensuse-raspberry-pi-3-zero-functional-system-easy-steps/#
[14]:https://www.suse.com/communities/blog/opensuse-raspberry-pi-3-zero-functional-system-easy-steps/#
[15]:https://www.suse.com/communities/blog/opensuse-raspberry-pi-3-zero-functional-system-easy-steps/#
[16]:https://www.suse.com/communities/blog/opensuse-raspberry-pi-3-zero-functional-system-easy-steps/#
[17]:http://www.printfriendly.com/print?url=https%3A%2F%2Fwww.suse.com%2Fcommunities%2Fblog%2Fopensuse-raspberry-pi-3-zero-functional-system-easy-steps%2F
[18]:http://www.printfriendly.com/print?url=https%3A%2F%2Fwww.suse.com%2Fcommunities%2Fblog%2Fopensuse-raspberry-pi-3-zero-functional-system-easy-steps%2F