This is running pretty great so far, I'm impressed... That being said have several questions, which I will probably have to post in another more general topic, but thought I'd post here in case anyone has tried or has experience with this.
1.) Was wondering if anyone has gotten a "one click launch" working, I know there is a boot widget, which I use, and I've looked at the shell script, but I'm not sure what else would have to be edited or where the vnc files are for doing the following:
a.) Check to see if a running instance of Ubuntu is already up, if not do steps B and C, if it's already running then do step D
b.) Run the shell script like it does normally currently
c.) Choose some default settings for screen size and window manager ( ie. 1280 x 800 and Gnome ) automatically so you don't have to do this each time
d.) ( Ideally although not sure if it can be done ) launch the VNC client of your choice after terminal is done launching ubuntu
2.) Was wondering where files for the Ubuntu OS are kept if you have the img and shell script files in /sdcard/ubuntu. Would like to add some aliases, and customizations to the OS
3.) Can we switch to the bash shell by default Vs. sh? Or will that break anything? Would we just put that in the profile of the linux user? or in /etc/profiles?
4.) I know Ubuntu is being run as the root user, this worries me quite a bit, and although I don't think there is a work around, is there anything that can be done about this? What are some steps to secure the system if any are available? Changing the VNC Password? SSHD is started up correct? Can / Should this password be changed as well.
Anyways, like I said, might be best for a topic just on this app in Android General, but thought I'd see if it gets traction here first.
Oh ... and a "I know this probably wont work because we are 'remoted' in( through loopback ofcoarse )" but anyone try to get compiz working, lol
EDIT: After some pawing around on the mounted FS it looks like my above questions for 1 - A,B, and C can be accomplished by editing the init.sh shell script in the root home directory. You can override the prompting for geometry and shell if you wish here. I'll have to do some investigation on how the widget calls this init script, would be nice to have two small widgets one that prompts and one that just assumes the tablets resolution as the default for quick launch.
EDIT: As for 1 - D and question 2 & 3 not sure on those yet, still waiting for suggestions and looking around
EDIT 2: Ok answered question 2 ... Looks like everything gets mounted by the boot script ( instructed to put in /sdcard/ubuntu/ ) mounts everything to /data/local/mnt and root home dir is /data/local/mnt/root. Also the boot script chroots to the roots init.sh so that's how that gets launched. Now I'm wondering what happens when I flash a new ROM but keep the sdcard the same, not quite sure how the /data/local/mnt/root and other dirs( other that the remapped system dirs ) are getting mapped to that new mount location.
This is fun, lots of learning...
Sent from my Transformer Prime TF201 using Tapatalk 2
1.) Was wondering if anyone has gotten a "one click launch" working, I know there is a boot widget, which I use, and I've looked at the shell script, but I'm not sure what else would have to be edited or where the vnc files are for doing the following:
a.) Check to see if a running instance of Ubuntu is already up, if not do steps B and C, if it's already running then do step D
b.) Run the shell script like it does normally currently
c.) Choose some default settings for screen size and window manager ( ie. 1280 x 800 and Gnome ) automatically so you don't have to do this each time
d.) ( Ideally although not sure if it can be done ) launch the VNC client of your choice after terminal is done launching ubuntu
2.) Was wondering where files for the Ubuntu OS are kept if you have the img and shell script files in /sdcard/ubuntu. Would like to add some aliases, and customizations to the OS
3.) Can we switch to the bash shell by default Vs. sh? Or will that break anything? Would we just put that in the profile of the linux user? or in /etc/profiles?
4.) I know Ubuntu is being run as the root user, this worries me quite a bit, and although I don't think there is a work around, is there anything that can be done about this? What are some steps to secure the system if any are available? Changing the VNC Password? SSHD is started up correct? Can / Should this password be changed as well.
Anyways, like I said, might be best for a topic just on this app in Android General, but thought I'd see if it gets traction here first.
Oh ... and a "I know this probably wont work because we are 'remoted' in( through loopback ofcoarse )" but anyone try to get compiz working, lol
EDIT: After some pawing around on the mounted FS it looks like my above questions for 1 - A,B, and C can be accomplished by editing the init.sh shell script in the root home directory. You can override the prompting for geometry and shell if you wish here. I'll have to do some investigation on how the widget calls this init script, would be nice to have two small widgets one that prompts and one that just assumes the tablets resolution as the default for quick launch.
EDIT: As for 1 - D and question 2 & 3 not sure on those yet, still waiting for suggestions and looking around
EDIT 2: Ok answered question 2 ... Looks like everything gets mounted by the boot script ( instructed to put in /sdcard/ubuntu/ ) mounts everything to /data/local/mnt and root home dir is /data/local/mnt/root. Also the boot script chroots to the roots init.sh so that's how that gets launched. Now I'm wondering what happens when I flash a new ROM but keep the sdcard the same, not quite sure how the /data/local/mnt/root and other dirs( other that the remapped system dirs ) are getting mapped to that new mount location.
This is fun, lots of learning...
Sent from my Transformer Prime TF201 using Tapatalk 2
Last edited: