# Auto-Login when booting into CLI (command line) mode

**URL:** <https://forums.developer.nvidia.com/t/auto-login-when-booting-into-cli-command-line-mode/159923>\
**Category:** Jetson Xavier NX\
**Tags:** boot\
**Created:** [November 19, 2020, 3:29am UTC](https://forums.developer.nvidia.com/t/auto-login-when-booting-into-cli-command-line-mode/159923 "2020-11-19T03:29:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![yurikleb](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/yurikleb/32/28901_2.png) [@yurikleb](https://forums.developer.nvidia.com/u/yurikleb)\
**Post date:** [November 19, 2020, 3:29am UTC](https://forums.developer.nvidia.com/t/auto-login-when-booting-into-cli-command-line-mode/159923/1 "2020-11-19T03:29:35Z")

</div>

Is it possible to configure the Jetson automatically login when it’s set to boot into CLI mode?

Auto-login works perfect when booting into GUI mode.  
I would like to run my system headless, therefore there is no need for me to launch the Desktop (gdm3.service).

I managed to configure boot to CLI following [this post](https://forums.developer.nvidia.com/t/how-to-boot-jetson-nano-in-text-mode/73636/2) and using this command:  
`sudo systemctl set-default multi-user.target`

However the system prompts for a username an password right after booting.

I tried following [this post](https://forums.developer.nvidia.com/t/make-serial-console-auto-login-with-different-user/50856) but could not find the /etc/systemd/system/serial-getty@ttyS0.service.d/autologin.conf file on the Jetson Xavier NX.

What would be the right configuration to auto-login into a CLI session on the Jetson Xavier NX?

---

<div class="post-metadata">

**Author:** ![carolyuu](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/carolyuu/32/14043_2.png) [@carolyuu](https://forums.developer.nvidia.com/u/carolyuu)\
**Post date:** [November 19, 2020, 6:27am UTC](https://forums.developer.nvidia.com/t/auto-login-when-booting-into-cli-command-line-mode/159923/3 "2020-11-19T06:27:09Z")

</div>

Hi [yurikleb](https://forums.developer.nvidia.com/u/yurikleb),

You can edit “_/etc/gdm3/custom.conf_” to enable auto login.

```auto
AutomaticLoginEnable=true
AutomaticLogin=[your username]

```

---

<div class="post-metadata">

**Author:** ![yurikleb](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/yurikleb/32/28901_2.png) [@yurikleb](https://forums.developer.nvidia.com/u/yurikleb)\
**Post date:** [November 19, 2020, 7:28am UTC](https://forums.developer.nvidia.com/t/auto-login-when-booting-into-cli-command-line-mode/159923/4 "2020-11-19T07:28:36Z")

</div>

Hey @carolyuu

I already have those settings enabled in my “ _/etc/gdm3/custom.conf_ ” file.  
With one small difference:  
`AutomaticLogin=[my username]`

And auto-login work well when booting into GIU mode.

However when I disable boot to GIU via `sudo systemctl set-default multi-user.target` and the system boots into CLI, it still asks for a username and password.

---

<div class="post-metadata">

**Author:** ![WayneWWW](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/waynewww/32/14043_2.png) [@WayneWWW](https://forums.developer.nvidia.com/u/WayneWWW)\
**Post date:** [November 19, 2020, 7:31am UTC](https://forums.developer.nvidia.com/t/auto-login-when-booting-into-cli-command-line-mode/159923/5 "2020-11-19T07:31:43Z")

</div>

The CLI does not support auto login. Similar question was asked by other users too.

Only the GUI supports the auto login.

---

<div class="post-metadata">

**Author:** ![carolyuu](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/carolyuu/32/14043_2.png) [@carolyuu](https://forums.developer.nvidia.com/u/carolyuu)\
**Post date:** [November 19, 2020, 7:34am UTC](https://forums.developer.nvidia.com/t/auto-login-when-booting-into-cli-command-line-mode/159923/6 "2020-11-19T07:34:58Z")

</div>

Sorry for my typo.  
AutomaticLogin=[your **username**]

---

<div class="post-metadata">

**Author:** ![nadeemm](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/nadeemm/32/367020_2.png) [@nadeemm](https://forums.developer.nvidia.com/u/nadeemm)\
**Post date:** [October 18, 2021, 6:42pm UTC](https://forums.developer.nvidia.com/t/auto-login-when-booting-into-cli-command-line-mode/159923/8 "2021-10-18T18:42:48Z")

</div>


