Some ubuntu commands need a user to have been logged in via the login screen. Example is: running
pacmd list-sink-inputs from the terminal without the user first logged in via the login screen would lead to an error message such as
No PulseAudio daemon running, or not running as session daemon.
So, are there any commands to run from the terminal to simulate screen loggin in ubuntu 16.04 deskotp/server?