14.04 - Transferring tty1 to systemd on Ubuntu Server 16.10 - Ask Ubuntu


on ubuntu server 14.04 using tty1.conf launch chromium browser window display web page. simple enough. however, on ubuntu 16.10 tty1.conf gone , don't have understanding of systemd. code on tty1.conf

# tty1 - getty # # service maintains getty on tty1 point system # started until shut down again.  start on stopped rc runlevel=[2345] , (             not-container or             container container=lxc or             container container=lxc-libvirt)  stop on runlevel [!2345]  respawn #exec /sbin/getty -8 38400 tty1 exec /usr/bin/startx /home/username/launch.sh 

and on launch.sh

#!/bin/sh xrandr -o right sleep 1; xset s off sleep 1; xset -dpms rm -r /home/username/chrome-home chromium-browser --kiosk http://localhost:81 --user-data-dir=/home/username/chrome-home 

this code used run launch.sh using tty1 , launch.sh used display content on localhost webpage. can please me recreate using systemd. many thanks!


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User