I was wondering whether we could login into ubuntu account automatically but stay password protected. In my case, I want my torrent to automatically start when computer boots up. So I need to be logged in automatically. This is fine, I can change "Automatic login" option under User Accounts settings. But I do not want my account to be exposed to others without a password.
1 Answer
Well, after long search and scratching my head, I found a way to do it.
First head to User Accounts and switch on the "Automatic Login" option. By doing this, you will be automatically logged in at boot, but your account and files will be exposed to anyone near the computer.
Now, open Startup Applications. Click Add and enter details as shown below
under "Command:" field, enter the following (also shown in the screenshot)
dm-tool switch-to-greeter
Now, what it does is, it automatically logs you in and then quickly switches user. Thus you will be logged in in the background.
If you want to start your torrent download automatically then just add your "transmission" or "qbittorrent" command to the Startup Applications as well.
-
1Please update your answer with screenshots uploaded to imgur (default setup for Ask Ubuntu) instead of using dropbox (aka crapbox).– AnwarNov 19, 2016 at 13:00
-
@Anwar done :-) Thanks for the heads up. I will use dropbox no more. Dec 23, 2016 at 2:57