欢迎来到老马的领地~ 这是“压风式散热底座”发明者的个人网站:) 本人QQ:80524554,用户群1:562279766
最近赶项目,老板让在N32905上面跑LINUX,再做个GUI.

这个比较麻烦,项目只有30天时间,但我又完全没玩过LINUX,汗一个.

按新唐官方文档,使用Ubuntu Linux去装它的交叉编译器以及N32905的BSP,中间有折腾,但总算顺利搞定系统编译.

其中系统的root登录我觉得比较重要,因为这能省掉大量的输入密码操作.....

具体做法:

第一步是给root用户设置个密码.
     我没试过空密码行不行,不折腾.

sudo passwd root


第二步是在配置文件里设置自启动:
     1,编辑/etc/lightdm/lightdm.conf:
sudo gedit  /etc/lightdm/lightdm.conf

[Seat:*]
autologin-guest=false
autologin-user=root
autologin-user-timeout=0
greeter-session=lightdm-gtk-greeter

     2,编辑/root/.profile文件,增加tty -s &&:
sudo gedit /root/.profile 

# ~/.profile: executed by Bourne-compatible login shells.

if [ "$BASH" ]; then
  if [ -f ~/.bashrc ]; then
    . ~/.bashrc
  fi
fi

tty -s && mesg n || true


然后重启就行了.
添加评论

昵称 *

E-mail