<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>https://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>https://jackxiang.com/post//</link>
<title><![CDATA[How to set my Raspberry Pi to boot into the GUI?树莓派（raspberry）启用root账户]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[系统架构与硬件]]></category>
<pubDate>Tue, 20 Aug 2013 11:40:46 +0000</pubDate> 
<guid>https://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	As from my previous question, I asked what the power off button in the corner does. Then somebody said if you boot into the GUI automaticlly, it will give you some options.<br/>My question is,<br/>How to boot into the GUI at start-up?<br/>Thanks in advance.<br/>Assuming that you are using Raspbian, it is actually rather simple to do what you ask. Simply open the terminal, and type in the following:<br/>sudo raspi-config<br/>The following window should show up<br/>Navigate to boot_behaviour and click enter. This should make it so that the GUI interface starts automatically.<br/>if you are using Archlinux, please install X11 server follow steps on Archlinux Beginners Guide first. and install your favorite WM,<br/>1.Add those line to your ~/.xinitrc<br/>#!/bin/sh<br/>#<br/># ~/.xinitrc<br/>#<br/># Executed by startx (run your window manager from here)<br/>if [ -d /etc/X11/xinit/xinitrc.d ]; then<br/>&nbsp;&nbsp; for f in /etc/X11/xinit/xinitrc.d/*; do<br/>&nbsp;&nbsp;&nbsp;&nbsp;[ -x &quot;$f&quot; ] &amp;&amp; . &quot;$f&quot;<br/>&nbsp;&nbsp; done<br/>&nbsp;&nbsp; unset f<br/>fi<br/>exec openbox-session ## i&#039;m using openbox<br/>#exec awesome<br/>2.Start X when login, add the following to bottom of ~/.bash_profile if you use bash, or ~/.zprofile if your are using zsh. see more on Archlinux Wiki<br/>[[ -z $DISPLAY &amp;&amp; $XDG_VTNR -eq 1 ]] &amp;&amp; exec startx<br/>shareimprove this answer<br/>answered May 3 at 7:17<br/>Yuan He<br/>412<br/>up vote<br/>0<br/>down vote<br/>Read this article which explains how to auto login and auto start desktop http://www.opentechguides.com/how-to/article/raspberry-pi/5/raspberry-pi-auto-start.html<br/>来自：http://raspberrypi.stackexchange.com/questions/7261/how-to-set-my-raspberry-pi-to-boot-into-the-gui<br/><br/> 今天玩树莓派，需要安装些东西，老是sudo感觉不方便于是想直接用root。咦···？默认不是空密码？试下密码raspberry。还不对。那是神马？？<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;论他找了下，原来之前用centos习惯了，错觉，错觉！！<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;<br/>树莓派（raspberry）启用root账户：<br/>树莓派使用的linux是debian系统，所以树莓派启用root和debian是相同的。<br/>debian里root账户默认没有密码，但账户锁定。<br/>当需要root权限时，由默认账户经由sudo执行，Raspberry pi 系统中的Raspbian<br/>默认用户是pi 密码为raspberry<br/>重新开启root账号，可由pi用户登录后，在命令行下执行<br/>sudo passwd root<br/>执行此命令后系统会提示输入两遍的root密码，输入你想设的密码即可，然后在执行<br/>sudo passwd --unlock root<br/>这样就可以解锁root账户了。<br/>好了，搞定！<br/>来自：http://my.oschina.net/quanpower/blog/135196
]]>
</description>
</item><item>
<link>https://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] How to set my Raspberry Pi to boot into the GUI?树莓派（raspberry）启用root账户]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>