Evgeny Dmitrichenko Posted June 4, 2018 Share Posted June 4, 2018 Hello, everybody I have a task to make "easy install image" to orange pi pc2. I build already Armbian_5.46_Orangepipc2_Ubuntu_xenial_next_4.14.47_desctop.img and its actualy what i need and now I need to make it "easy install" - becouse we have a lot of SD card to burning. Could you recommend me, how to: 1. Scip first boot user creation. (Armbian on the first boot ask to set the new root password and create new user). Can i preinstalled this information? I need that Armbian on first boot just load without some user inputs. 2. Add my program to start up. I have a A ) zip with my program and B ) bash script which unzip program and set it lunch on startup. If i understand correctly - I must do this: "put my zip in userpatches/overlay and access them in /tmp/overlay from customize-image.sh - and here (customize-image.sh) lunch my bash script? Ideally, I need make Armbian image that I just put in Orange pi pc2 device - and it just start up and lunch my program. Thank you Link to comment Share on other sites More sharing options...
Igor Posted June 4, 2018 Share Posted June 4, 2018 Take a look at this example:https://github.com/igorpecovnik/iot 1 Link to comment Share on other sites More sharing options...
Evgeny Dmitrichenko Posted June 4, 2018 Author Share Posted June 4, 2018 That is exactly what I need Thank you, Igor, for that project Link to comment Share on other sites More sharing options...
Evgeny Dmitrichenko Posted June 5, 2018 Author Share Posted June 5, 2018 On 6/4/2018 at 3:33 PM, Igor said: Take a look at this example:https://github.com/igorpecovnik/iot I did like in this example and get one trouble: On the first boot system ask my login and password, I successfully authenticated and stay in console. desktop environment dose not start!, but I use parameter BUILD_DESKTOP="yes" What me to do to start desktop on boot? Link to comment Share on other sites More sharing options...
Evgeny Dmitrichenko Posted June 5, 2018 Author Share Posted June 5, 2018 if I login by root - system ask me to create normal user and after it desktop environment is start. but if i login by user, which I add in customize-image.sh, I stay in console and desktop environment dose not start Link to comment Share on other sites More sharing options...
Igor Posted June 6, 2018 Share Posted June 6, 2018 7 hours ago, Evgeny Dmitrichenko said: I did like in this example and get one trouble: If you can't work out with those tips, I can only point you to hire help or dig in. Your problems are generic and are not covered by free https://www.armbian.com/donate/ technical support. Link to comment Share on other sites More sharing options...
Evgeny Dmitrichenko Posted June 6, 2018 Author Share Posted June 6, 2018 I modified /etc/default/nodm in customize-image.sh and its help me in /etc/default/nodm I set: NODM_ENABLES = true NODM_USER = $MY_USER And now my user autologin on first boot without any input! Link to comment Share on other sites More sharing options...
Recommended Posts