怎么去掉或更改login登陆画面?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

怎么去掉或更改login登陆画面?

10,590 Views
longbin
Contributor II

QQ图片20200608090744.png

因为login登陆画面的存在,导致会有7,8秒停留该画面,然后才进入我的应用程序画面。所以我想去掉该画面任务。或则把该画面改成我需要的图片并去掉上面的字(Freescale i.MX Release Distro 4.1.15-2.0.1 yada /dev/tty1 yada longbin:)

我应该怎么做??

Labels (2)
0 Kudos
14 Replies

10,396 Views
longbin
Contributor II

我希望下面的结果:

这效果是因为我在/etc/init.d/rc.local文件添加了./home/root/VD2-DOUBLE -platform linuxfb,而不是./home/root/VD2-DOUBLE -platform linuxfb &。这样做结果是:不执行bin/login程序,也不通过console控制台也执行命令。

0 Kudos

10,396 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello Longbin

可能之前,我的理解有误,我们讨论,你做一下实验,因为你手头有现成的系统,其实这个问题属于linux系统上的一些技巧,并不是I.MX CPU有关的。其他的linux怎么做的,我们都是可以借鉴的:

1. 关闭psplash.

在u-boot命令,加入psplash=false,启动系统后,这个logo就会不显示。

2. 自动登录,不输入用户名和密码

这个我们还需要看看同行们的做法。网上有一些办法,我贴出来,你试试行不行:

(1)/etc/init/tty1.conf 文件修改

exec /bin/login -f root < /dev/tty1 > /dev/tty1 2>&1

(2)使用其他登录登录程序mingetty

# sudo apt-get install mingetty

# exec /sbin/mingetty --autologin root tty1

(1)和(2)两种方式,应该都行。如果可以,选一个就OK了。

Have a nice day!

B.R,

Weidong

0 Kudos

10,396 Views
longbin
Contributor II

非常感谢您的回复,我以为会通过邮件回我,加上这段时间忙其他项目,所以没有及时看。

1.关于关掉psplash我下周试试。

2.关于自动登录问题,因为我不想串口自动登录,防止被人改动。我只希望屏幕不显示,还是希望保存串口要登录。

自动登录的方法1,我试过,没有/etc/init/tty1.conf 文件修改

自动登录的方法2,我下周也会试一下,但是我还是不希望自动登录。

0 Kudos

10,396 Views
weidong_sun
NXP TechSupport
NXP TechSupport

没关系的!不用客气!

伟东

0 Kudos

10,396 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi Long bin,

更换启动LOGO,需要这样几个步骤:

1. 需要换掉下面的.h文件

 ./build-x11/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/psplash/0.1+gitAUTOINC+88343ad23c-r15/git/psplash-poky-img.h
2. 如何把上面的.H文件换成你的,你需要制作一个。

制作方法看这里:

YOCTO开机画面修改_t631791611的博客-CSDN博客_yocto开机启动 

然后,就可以了。

Have a nice day!

Weidong

0 Kudos

10,397 Views
longbin
Contributor II

我已经修改了psplash,视频如下:

0 Kudos

10,397 Views
weidong_sun
NXP TechSupport
NXP TechSupport

etc/inittab 文件,你打开看看,用什么方式登录,是可以配置的。

类似这样,就是取消了登录界面:

id:3:initdefault:

【注】如果是 id:5:initdefault:就是图形界面登录。

Weidong

0 Kudos

10,396 Views
longbin
Contributor II

非常感谢你的回复。但是这个方式我试过,并且我再试了一次,没有效果。是不是因为版本不同?我的是4.1.15-2.1.0

root@yada:~# cat /etc/inittab

  1. /etc/inittab: init(8) configuration.

  2. $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $

  1. The default runlevel.

id:3:initdefault:

  1. Boot-time system configuration/initialization script.

  2. This is run first except when booting in emergency (-b) mode.

si::sysinit:/etc/init.d/rcS

  1. What to do in single-user mode.

~~:S:wait:/sbin/sulogin

  1. /etc/init.d executes the S and K scripts upon change

  2. of runlevel.

#

  1. Runlevel 0 is halt.

  2. Runlevel 1 is single-user.

  3. Runlevels 2-5 are multi-user.

  4. Runlevel 6 is reboot.

l0:0:wait:/etc/init.d/rc 0

l1:1:wait:/etc/init.d/rc 1

l2:2:wait:/etc/init.d/rc 2

l3:3:wait:/etc/init.d/rc 3

l4:4:wait:/etc/init.d/rc 4

l5:5:wait:/etc/init.d/rc 5

l6:6:wait:/etc/init.d/rc 6

  1. Normally not reached, but fallthrough in case of emergency.

z6:6:respawn:/sbin/sulogin

mxc0:12345:respawn:/bin/start_getty 115200 ttymxc0

  1. /sbin/getty invocations for the runlevels.

#

  1. The "id" field MUST be the same as the last

  2. characters of the device (after "tty").

#

  1. Format:

  2. <id>:<runlevels>:<action>:<process>

#

1:12345:respawn:/sbin/getty 38400 tty1

龙斌技术部

广东雅达电子股份有限公司

电力智能测控仪器专家 电力测控领域专业制造商

地址:广东省河源市源城区高埔岗雅达工业园

电话:0762-3493926

邮编:517000

网址:www.yada.com.cn

发件人: weidong.sun

发送时间: 2020-06-10 21:10

收件人: long bin

主题: Re: - Re: 怎么去掉或更改login登陆画面?

NXP Community

Re: 怎么去掉或更改login登陆画面?

reply from Wigros Sun in i.MX Processors - View the full discussion

etc/inittab 文件,你打开看看,用什么方式登录,是可以配置的。

类似这样,就是取消了登录界面:

id:3:initdefault:

【注】如果是 id:5:initdefault:就是图形界面登录。

Weidong

Reply to this message by replying to this email, or go to the message on NXP Community

Start a new discussion in i.MX Processors by email or at NXP Community

Following Re: 怎么去掉或更改login登陆画面? in these streams: Inbox

This email was sent by NXP Community because you are a registered user.

You may unsubscribe instantly from NXP Community, or adjust email frequency in your email preferences

0 Kudos

10,396 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello Long,

实际上,从你贴出来的视频看,登录的速度是挺快的。并不是那么迫切地需要修改。

GUI登录,console登录等方式,是可以修改的,可能你说得对,和版本有关系。

你再试试:

systemctl set-default multi-user.target

这个方式应该行。

Weidong

 

0 Kudos

10,397 Views
longbin
Contributor II

你好!

我屏蔽掉/etc/inittab内的 #1:12345:respawn:/sbin/getty 38400 tty1 ,结果界面上的

Freescale i.MX Release Distro 4.1.15-2.0.1 yada /dev/tty1 yada longbin: 没有了。现在变成没有任何显示。

真让我头大,请帮帮忙,谢谢。

发件人: weidong.sun

发送时间: 2020-06-11 10:40

收件人: long bin

主题: Re: - Re: 怎么去掉或更改login登陆画面?

NXP Community

Re: 怎么去掉或更改login登陆画面?

reply from Wigros Sun in i.MX Processors - View the full discussion

Hello Long,

实际上,从你贴出来的视频看,登录的速度是挺快的。并不是那么迫切地需要修改。

GUI登录,console登录等方式,是可以修改的,可能你说得对,和版本有关系。

你再试试:

systemctl set-default multi-user.target

这个方式应该行。

Weidong

Reply to this message by replying to this email, or go to the message on NXP Community

Start a new discussion in i.MX Processors by email or at NXP Community

Following Re: 怎么去掉或更改login登陆画面? in these streams: Inbox

This email was sent by NXP Community because you are a registered user.

You may unsubscribe instantly from NXP Community, or adjust email frequency in your email preferences

0 Kudos

10,397 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Linux 登录界面,无非就是文本界面和图形界面登录,而你当前情况,是觉得图形登录时间有点长,所以,需要切换到文本模式登录,以节约时间。

是这个意思吧。

前面你提到说,修改/etc/inittab文件,没有生效。

那么您可以试试在命令行运行一下:init 3或者init 5是不是可以在文本模式与图形模式之间切换。

Weidong

0 Kudos

10,397 Views
longbin
Contributor II

你好:

不是这个意思,因为login界面很难看,所以让人不舒服。login界面如下:

方法1:把login界面改成我需要的图片。

方法2:没有login界面显示。这样就直接从psplash任务界面到我的应用程序界面,中间没有经历login界面。

发件人: weidong.sun

发送时间: 2020-06-16 12:09

收件人: long bin

主题: Re: - Re: 怎么去掉或更改login登陆画面?

NXP Community

Re: 怎么去掉或更改login登陆画面?

reply from Wigros Sun in i.MX Processors - View the full discussion

Linux 登录界面,无非就是文本界面和图形界面登录,而你当前情况,是觉得图形登录时间有点长,所以,需要切换到文本模式登录,以节约时间。

是这个意思吧。

Weidong

Reply to this message by replying to this email, or go to the message on NXP Community

Start a new discussion in i.MX Processors by email or at NXP Community

Following Re: 怎么去掉或更改login登陆画面? in these streams: Inbox

This email was sent by NXP Community because you are a registered user.

You may unsubscribe instantly from NXP Community, or adjust email frequency in your email preferences

0 Kudos

10,397 Views
longbin
Contributor II

wigros sun 你好!

登陆的速度是快,但是因为这个界面的存在造成从开机logo到我应用画面有7,8秒延时,并且这个画面不好看,所以需要改动它。

我试了一下systemctl,我这个版本的linux不认识它。

root@yada:~# systemctl --version

-sh: systemctl: command not found

发件人: weidong.sun

发送时间: 2020-06-11 10:40

收件人: long bin

主题: Re: - Re: 怎么去掉或更改login登陆画面?

NXP Community

Re: 怎么去掉或更改login登陆画面?

reply from Wigros Sun in i.MX Processors - View the full discussion

Hello Long,

实际上,从你贴出来的视频看,登录的速度是挺快的。并不是那么迫切地需要修改。

GUI登录,console登录等方式,是可以修改的,可能你说得对,和版本有关系。

你再试试:

systemctl set-default multi-user.target

这个方式应该行。

Weidong

Reply to this message by replying to this email, or go to the message on NXP Community

Start a new discussion in i.MX Processors by email or at NXP Community

Following Re: 怎么去掉或更改login登陆画面? in these streams: Inbox

This email was sent by NXP Community because you are a registered user.

You may unsubscribe instantly from NXP Community, or adjust email frequency in your email preferences

0 Kudos

10,397 Views
longbin
Contributor II

我记得psplash改动的是下面的画面,而不是我要求的login登陆画面。FA5A1BCF-9232-41dd-BF91-F6B414B36C86.png

0 Kudos