pelya / debian-noroot

Debian running on Android, without rooting your phone
https://play.google.com/store/apps/details?id=com.cuntubuntu
388 stars 70 forks source link

Creating a image for a single package #20

Open SuicSoft opened 8 years ago

SuicSoft commented 8 years ago

I want to port a Linux app to Android using this.The problem is that I don't want a full desktop, I only want the single package

pelya commented 8 years ago

Edit file img-debian-jessie.pkg in directory img, and remove everything you don't need. Modify dist/startx.sh to launch your application instead of a desktop. Run scripts img-debian-jessie-armhf.sh and img-debian-jessie-x86.sh. Then compile the app as usual, replace data packages URL with your archives.

You might want to keep windows manager, such as xfwm4. On Jun 21, 2016 7:36 AM, "Suici Doga" notifications@github.com wrote:

I want to port a Linux app to Android using this.The problem is that I don't want a full desktop, I only want the single package

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pelya/debian-noroot/issues/20, or mute the thread https://github.com/notifications/unsubscribe/AAJewPBiZP_kLkeo9QD6h5AQWxl4wWqxks5qN2ougaJpZM4I6WnP .

SuicSoft commented 8 years ago

Would I need a window manager ? I need don't need close buttons or anything, just the application

pelya commented 8 years ago

You won't be able to resize the window, so then you should start it full-screen, using -geometry parameter or something similar. On Jun 23, 2016 6:49 AM, "Suici Doga" notifications@github.com wrote:

Would I need a Windows manager ? I need don't need close buttons or anything, just the application

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pelya/debian-noroot/issues/20#issuecomment-227942808, or mute the thread https://github.com/notifications/unsubscribe/AAJewA18VNfU-4L-IOR1OobU16EWO9ewks5qOgJegaJpZM4I6WnP .

SuicSoft commented 8 years ago

Will screen rotation work?

And also how do I change the GTK theme.

pelya commented 8 years ago

Currently XSDL does not support that. On Jun 23, 2016 1:55 PM, "Suici Doga" notifications@github.com wrote:

Will screen rotation work?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pelya/debian-noroot/issues/20#issuecomment-228015559, or mute the thread https://github.com/notifications/unsubscribe/AAJewCzz2u8aT3ZBDiCn4nlQN9bFelx7ks5qOmYMgaJpZM4I6WnP .

SuicSoft commented 8 years ago

What , the GTK theme or screen rotation

pelya commented 8 years ago

XSDL does not support screen rotation. You can use xrandr --rotate command from your Debian chroot, but it won't rotate Android navigation buttons, and will crash at random.

On Thu, Jun 23, 2016 at 2:33 PM, Suici Doga notifications@github.com wrote:

What , the GTK theme or screen rotation

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pelya/debian-noroot/issues/20#issuecomment-228022796, or mute the thread https://github.com/notifications/unsubscribe/AAJewMMvvShut7OOWwlCl_Y8fmQXXhtWks5qOm8RgaJpZM4I6WnP .

SuicSoft commented 8 years ago

@pelya So how do I change the GTK theme

SuicSoft commented 8 years ago

And how can I add packages from a PPA

pelya commented 8 years ago

Debootstrap only supports one mirror, so you will have to add your PPA after debootstrap command is finished, before 'apt-ge update', in scripts img-debian-jessie-*.sh, and then add your app to img-debian-jessie.pkg. To chage GTK theme, you first select the deb package in img-debian-jessie.pkg, then put the GTK config files with this theme to dist/root/.config.

On Thu, Jun 23, 2016 at 5:10 PM, Suici Doga notifications@github.com wrote:

And how can I add packages from a PPA

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pelya/debian-noroot/issues/20#issuecomment-228062121, or mute the thread https://github.com/notifications/unsubscribe/AAJewA_MvZNAURyG-cPpOxEzUVIRBEchks5qOpPogaJpZM4I6WnP .

JohnMurga commented 8 years ago

Great info, as I am about to try something similar ... Thanks @pelya !!

SuicSoft commented 8 years ago

@pelya The GTK theme I am using doesn't come packaged. Here is the link to it : https://github.com/nana-4/Flat-Plat

pelya commented 8 years ago

Then you will need to apply this theme to your Debian image, either before it's archived, or when the app installs, you can create update1.tgz archive with script update1.sh inside, see the example here: https://github.com/pelya/commandergenius/tree/sdl_android/project/jni/application/xserver-gimp/AndroidData

On Mon, Jun 27, 2016 at 5:08 AM, Suici Doga notifications@github.com wrote:

@pelya https://github.com/pelya The GTK theme I am using doesn't come packaged. Here is the link to it : https://github.com/nana-4/Flat-Plat

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pelya/debian-noroot/issues/20#issuecomment-228640053, or mute the thread https://github.com/notifications/unsubscribe/AAJewG9oz7xv-CBw6HbgJz3vNcW2n67Gks5qPzC3gaJpZM4I6WnP .