[23/11] OpenVPN working on CyanogenMod 0.3 & LeeDroid Roms, Buzz 1.0.1 kernel - Desire HD Android Development

EDIT 24/11/2010 4:00pm Aus EST: OpenVPN Works like a charm now on both CyanogenMod & Leedroid! See Mero01's post for a great tutorial on LeeDroid http://forum.xda-developers.com/showthread.php?t=848939. These are the steps for CyanogenMod:
1) I installed the CyanogenMod Rom 0.3. Thanks RaiderX303!
2) I installed Buzz kernel 1.0.1(fixed version) 1.5ghz kenel. It's a beauty Buzz.
3) I did NOT run OpenVPN Installer. I left the OpenVPN binary as the one CyanogenMod puts in /system/xbin
4) I modified OpenVPN Settings to locate tun.ko in /system/lib/modules, run insmod, leaving it pointing to ifconfig in /system/xbin. See the screenshots below for a picture of these settings.
MY openvpn.conf file is:
client
dev tun
proto tcp
remote [IP ADDRESS OF MY SERVER] 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert foo.crt
key foo.key
comp-lzo
verb 3
Nb: The IP address of my server is hidden and the cert and key are renamed "foo" here for security reasons
ifconfig shows a properly configured tun adapter now with an allocated openvpn address.
I can ping the server too!
Here's screenshots of my OpenVPN Settings:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
DEPRECATED (Use the tun.ko in /system/lib/modules in Buzz's 1.0.1 kernel):
............. I compiled tun.ko from Buzz's kernel source
https://github.com/BuzzBumbleBee/HTC_ACE_KERNEL
using Ubuntu 10.04 and the method described here
http://android.modaco.com/content/h.../howto-compiling-tun-tap-driver-for-htc-hero/
replacing the hero kernel used in the how-to with Buzz's kernel. Here is a link to the tun.ko file I created:
https://docs.google.com/leaf?id=0B7...xMDItODJmYTk3NTFhY2M 2&hl=en&authkey=CM38-6IN
Sent from my Desire HD using Tapatalk

Walker Street said:
I've made this a new thread because I know a lot of you are interested in getting OpenVPN to work on your DesireHD (without necessarily going all the way of replacing Sense with the CyanogenMod). I compiled tun.ko from Buzz's kernel source
https://github.com/BuzzBumbleBee/HTC_ACE_KERNEL
using Ubuntu 10.04 and the method described here
http://android.modaco.com/content/h.../howto-compiling-tun-tap-driver-for-htc-hero/
replacing the hero kernel used in the how-to with Buzz's kernel. Here is a link to the tun.ko file I created:
https://docs.google.com/leaf?id=0B7...xMDItODJmYTk3NTFhY2M 2&hl=en&authkey=CM38-6IN
However, I haven't got the expertise to get it to work with the "OpenVPN Installer" and "OPenVPN Settings" apps by Friedrich Shauffelhut. I got up to trying these settings (see screenshots) but "FATAL:Linux ifconfig failed. Could not execute external program".
Apache14, guys, do you know how to get my (Buzz's) tun.ko working in openvpn in this kernel. I am running Buzzes OC+ 1.51ghz kernel version 1.0.0 on the LeeDroid 1.1a Sense ROM. This combo is rock solid by the way.
Sent from my Desire HD using Tapatalk
Click to expand...
Click to collapse
i do love you !!! hold on i have a tutorial i followed had it pretty much working before new rom of course and then required the tun.ko file and couldnt get further..
will post it as soon as i find it

http://forum.xda-developers.com/showthread.php?p=7683773
Lemme know how it goes

No prob. I'll await your search with great interest. EDIT: Beat me to it .... I'll have a look at it.

oh and i tried it using tun instead of tap still worked i could see on the server side it authenticating and watnot

Walker Street said:
No prob. I'll await your search with great interest. EDIT: Beat me to it .... I'll have a look at it.
Click to expand...
Click to collapse
haha no worries

Sorry, I can't get this to work. We don't have a /bin folder on our DHDs. I think /system/bin might be the equivalent folder.
However when I try to create symlinks with "ln -s /system/bin /system/xbin/bb"
(similar to recommended in the tutorial your linking to:
http://forum.xda-developers.com/showthread.php?p=7683773)
I get this error message: "link failed File exists".
That's where my expertise runs out again ....

I'll try again once I've downloaded and flashed LeeDroid 1.2
LeeDroid 1.2's out. You're quick mero

Walker Street said:
Sorry, I can't get this to work. We don't have a /bin folder on our DHDs. I think /system/bin might be the equivalent folder.
However when I try to create symlinks with "ln -s /system/bin /system/xbin/bb"
(similar to recommended in the tutorial your linking to:
http://forum.xda-developers.com/showthread.php?p=7683773)
I get this error message: "link failed File exists".
That's where my expertise runs out again ....
Click to expand...
Click to collapse
thats really weird cause i tried it on my stock rom/kernel and it worked :S not sure if i did change it too /system/bin cuase here it says
3. Install "OpenVPN Installer" from market.
- Run it
- OpenVPN directory "/system/bin"
- ifconfig/route directory "/system/xbin/bb"

Walker Street said:
LeeDroid 1.2's out. You're quick mero
Click to expand...
Click to collapse
haha yerp think i was the first already flashed and restoring backups

But you should install "OpenVPN Installer" from market and set the right directory to Busybox. you can set a shortcut from your busybox installation (in my case "/bin") to /system/xbin/bb (that should be available in the "OpenVPN Installer" Setup process).
You should also check if you have already a folder "bb" in "xbin" and delete it if it contains a file called "placeholder". Then all should be fine if your config is correct
Not sure if this helps ? ifs afew posts down... i think i remember having to re-install busybox or somthing ah

mero01 said:
thats really weird cause i tried it on my stock rom/kernel and it worked :S not sure if i did change it too /system/bin cuase here it says
3. Install "OpenVPN Installer" from market.
- Run it
- OpenVPN directory "/system/bin"
- ifconfig/route directory "/system/xbin/bb"
Click to expand...
Click to collapse
you know there is only a 'placeholder' file in '/system/xbin/bb'. There is an ifconfig in both /system/bin and /system/xbin. I wonder if we manually set ifconfig/route directory to "/system/xbin" whether that would work. I don't know how to do that though? Was your OpenVPN installer/settings by Friedrich Shauffelhut? I can't see where you can change the ifconfig route on my installer/settings apps (2 separate apps by the same guy).
EDIT ... OK, you kind of beat me to it. I still haven't flashed LeeDroid ... how'd you go trying the stuff you said in the post?

Walker Street said:
you know there is only a 'placeholder' file in '/system/xbin/bb'. There is an ifconfig in both /system/bin and /system/xbin. I wonder if we manually set ifconfig/route directory to "/system/xbin" whether that would work. I don't know how to do that though? Was your OpenVPN installer/settings by Friedrich Shauffelhut? I can't see where you can change the ifconfig route on my installer/settings apps (2 separate apps by the same guy).
Click to expand...
Click to collapse
jump on the irc channel...

I cant for the life of me remember how it got it too work i could get it to authenticate and everything just required the tun.ko and now i cant get it to work at all someone help us pls ?

does this help at all ?
http://forum.xda-developers.com/showthread.php?t=823906
I think maybe we need the script "iproute-wrapper.sh" unless the one here compatible wit the dhd

mero01 said:
does this help at all ?
http://forum.xda-developers.com/showthread.php?t=823906
I think maybe we need the script "iproute-wrapper.sh" unless the one here compatible wit the dhd
Click to expand...
Click to collapse
I don't know yet if that will help. I just found out the AdFree problem wasn't solved with LeeDroid 1.2 (you get the problem back after a full format and wipe and installing 1.2). So I'm gonna give up on that and install 1.2 on my pre-existing working copy of 1.1a. I don't think the format/wipe thing has a high chance of success for openvpn (unless you've tried it mero).
I'm gonna give openvpn a break until tomorrow. I'll have a look at that second tutorial then. It's 6.30pm here and I haven't eaten all day In the meantime, you or others are welcome to keep trying. Remember that you need to flash the Buzz kernel back after flashing LeeDroid. The tun.ko is specific to the Buzz kernel.

Walker Street said:
I don't know yet if that will help. I just found out the AdFree problem wasn't solved with LeeDroid 1.2 (you get the problem back after a full format and wipe and installing 1.2). So I'm gonna give up on that and install 1.2 on my pre-existing working copy of 1.1a. I don't think the format/wipe thing has a high chance of success for openvpn (unless you've tried it mero).
I'm gonna give openvpn a break until tomorrow. I'll have a look at that second tutorial then. It's 6.30pm here and I haven't eaten all day In the meantime, you or others are welcome to keep trying. Remember that you need to flash the Buzz kernel back after flashing LeeDroid. The tun.ko is specific to the Buzz kernel.
Click to expand...
Click to collapse
Yeh im tried after a full wipe no go but yeah im stuck have no clue where to go from here so just going to wait for someone to help ????

Hi,
I have extending my *.ovpn Config with the following line:
log "/sdcard/openvpn/openvpn.log"
After following all instructions from Crusoe86 these log is generated:
...
Note: Cannot open TUN/TAP dev /dev/tun:No such file or directory (errno=2)
Note: Attempting fallback to kernel 2.2 tun/Tap interface
Cannot allocate TUN/TAP dev dynamically
Exiting
Can anyone please help?
Thx
Edit: Rooted with VISIONAry, with option system r/w after root, but copying tun.ko to system/lib/modules with su - rights says "cannot create...read-only filesystem"

lumifi said:
Hi,
I have extending my *.ovpn Config with the following line:
log "/sdcard/openvpn/openvpn.log"
After following all instructions from Crusoe86 these log is generated:
...
Note: Cannot open TUN/TAP dev /dev/tun:No such file or directory (errno=2)
Note: Attempting fallback to kernel 2.2 tun/Tap interface
Cannot allocate TUN/TAP dev dynamically
Exiting
Can anyone please help?
Thx
Click to expand...
Click to collapse
Can you post what instructions you used to setup OpenVPN?
lumifi said:
Edit: Rooted with VISIONAry, with option system r/w after root, but copying tun.ko to system/lib/modules with su - rights says "cannot create...read-only filesystem"
Click to expand...
Click to collapse
try copying the tun.ko file to your sdcard, then using Root Explorer mount as R/W and copy the file to /system/lib/modules

Ill add an official tun.ko to Buzz within 2h
Sent from my Desire HD using XDA App

Related

VPN Connections (Cisco VPNC GUI) for BusyBox 1.17.1+

EDIT: The Problem with the "ps" command described below only happens with "newer" Versions of BusyBox. The modified Version works with BusyBox 1.17.1 (confirmed) and most likely with 1.17.0 since they changed "ps" in 1.17.0 (quote from changelog: "ps: fix non-DESKTOP option handling code"). If you have installed an older Version of BusyBox or an older Version is included in your ROM you can get "VPNC Connections" from the market or the developer page. The market Version works with Busybox 1.16 (confirmed) and maybe with older Versions. If you run the original Program or my modified apk with a other Version of Busybox than 1.17.1 or 1.16 it would be nice if you tell me which version works so i can update this posting.
(To check your "BusyBox" Version use adb (command: adb shell busybox) or a Terminal emulator (command: busybox) )
Original posting:
Hey,
First of all i hope its right to post this here and not in "Themes and App" forum. Since i modified the VPN Connections App to work with LeeDroid ROM i think this should be the right subforum since it is a ROM specific APP.
"Prolog"
After messing around with the "VPN Connection app" (get-a-robot-vpnc) i got it working with LeeDroid 2.1/2.1a Rom by editing some code. Since i have almost no idea of coding i'll tell what i modfied (i took some code from the Issue List of google code of get-a-robot-vpnc).
But First:
Min Requirement:
-HTC Desire (rooted)
-LeeDroid 2.1/2.1a ROM
-Knowing what you are doing!
---or----
FroYo Rom with:
-HTC Desire (rooted)
-Busybox (Same Version as in LeeDroid)
-tun.ko (same Version as in LeeDroid)
-Knowing what you are doing!
Why did you edit the code?
1. The App didn't recognize a working connection. After connecting the app tells you that the connection failed, although the vpnc process is running. This is because the "ps" Version of busybox (the one coming with LeeDroid - dont know which version this is atm) isnt compatible with the 0.99 release of VPN connections. (Compare to Issue 122 ) The app checks a working connection with this command:
Code:
ps | grep 'vpnc$'
If i try this though adb shell i dont get any output even if vnc is running. But by using this:
Code:
ps | grep '[v]pnc --script'
I get an output like this (PID might be different):
Code:
6727 0 0:00 /data/data/org.codeandroid.vpnc_frontend/files/vpnc --script /data/data/org.codeandroid.vpnc_frontend/files/vpnc-script --no-detach
After editing this part of the code the app recognizes the working connection correctly.
2. Even if vpnc is running properly i still didn't get the IP of the VPN Network (checked with "http://www.whatismyip.com"). This has something to do with IP Tables. After i used this command in "adb shell" (as mentioned inIssue 114, Issue 124 and the LeeDroid Rom thread):
Code:
su
ip ru del table wifi
i got the ip of my Network.
So i changed the vpnc-script coming with the svn revision 140 to this: http://code.google.com/p/get-a-robo...script&token=69c1649b4f4dfa8358813b317d7eda24
I dont knwo if this is still a problem with the ip tables fix for OpenVPN coming with LeeDroid 2.1a (or with the MOD for 2.1) since i didn't try it with that. The modified code works with or without the mod for wifi and gprs so there was no need for me to try it without the changes.
Exact Steps of how i edited the code
As I said i can't code (at least i understand the "ps | grep" command ) and i didnt work with Eclipse or the SDK before (i only used the adb tool). All i did was to include availaible code from the Issue list and created an apk. You can do this yourself following the steps.
1. Have a working Eclipse (mine is 3.5) with SDK Tools for Android and "Google APIs Plattform 2.2 API Level 8). Check here how to install.
2. Download the svn from here
3. Open (svn root dir)/packages/apps/get-a-robot-vpn-fronted/ with eclipse. Do this by making a "New Android Project" and select "create project from existing source". Project name should be changed to "get-a-robot-vpn-frontend" to apply the patch.
4. If you have the following Error in the Problems you might remove it (worked fine for me):
Code:
DialogInterface.OnClickListener(){} must override a superclass method VPNC.java /VPNC2/src/org/codeandroid/vpnc_frontend line 541 Java Problem
As I said: I have no idea of coding and since its code from the original app i just ignored this error. Some who knows what this does might wanna change it or report it to the Issue List .
5. Apply this patch (1.) or this patch (2.). Do this by rightclicking on the Project -> Team -> Apply Patch.
The first patch changes the "ps grep" AND gives you a Notification icon (if notification is enabled in the Options) for a RUNNING connection (not only for disconnects like in the original app).
The second patch only changes the "ps grep". Since its only one line of code you can edit it also by yourself.
6. Modify the "vpnc-script" (/assets/vpnc-script) accordingly to/replace with this version:
This lets the vpnc script do the "ip ru del table wifi/gprs" for you.
7. Export as apk and install it.
8. ???????
9 Profit
Other ROMS than LeeDroid.
I didn't try this (yet) with any other ROM. According to Issue 124 the "ip ru del table wifi/gprs" is an Issue with all FroYo Roms, but i have no idea about the "ps" version of busybox. You can try the following before using my vpnc.apk or building your own:
1. Get the official apk (http://code.google.com/p/get-a-robot-vpnc/downloads/list) (V 0.99) and install it.
2. Create a New VPN Connection.
3. Connect. (dosn't matter if the app tells you the connection failed)
4. Use the following command in "adb shell":
Code:
ps | grep '[v]pnc --script'
If you get an output this version should work for you. If not then the original version may already work and you arent reading this.
5. Use the following command in adb shell (for either wifi of gprs):
Code:
ip ru del table wifi
---or----
Code:
ip ru del table gprs
6. Check your IP to see you are connected through the VPN.
If you get an output in 4. and your IP is correct after doin step 5 this apk should work for you. If you dont get any output on step 4 you might wanna find out what version of "ps" your busybox is using and change the "grep" command accordingly (someone who has more idea of linux then me might be able to help you).
Epilog
I tested the App on Leedroid 2.1 and fresh installed (wipe) 2.1a and it worked as intended. If you try it on an other ROM some feedback would be nice.
Have Fun
melethron
Attachment: The App
YOU SHOULD KNOW WHAT YOU DO BY INSTALLING THIS! I GIVE NO WARRANTY! BEST WOULD BE TO BUILD THE APK YOURSELF ACCORDING TO THIS POST!
http://dl.dropbox.com/u/11091326/Android/vpnc.apk
http://rapidshare.com/files/420985331/vpnc.apk.html
Thanks alot! You saved my day because I can't use the WPA 802.1x enterprise with LeeDroid 2.1a cause HTC forgot to implement the certificate-selection-field in WiFi-settings. So I have to use the VPN server of my university.
That's awsome my friend. I was searching for something like this 3 weeks now cause i need it for my university. I works great on my Custom Rom.
The only glitch is that when in VPNconnections it has a date under my server set up, 1970 and when i connect it say failed to connect.
BUT IT IS CONNECTED even if it says failed. i tried connecting with ConnectBot, BTEP SSH Client and AndFTP and all works perfectly....
Nice job my friend!!!
ROM and "Not connected" Bug
Hey,
@soCram: What ROM do you use? If it's not LeeDroid i can update my posting to add the ROM its working with.
@lambrospower:
lambrospower said:
The only glitch is that when in VPNconnections it has a date under my server set up, 1970 and when i connect it say failed to connect.
Click to expand...
Click to collapse
Do you mean the original VPNconnections (from market or from here ) or the one that i modified and posted here? Because i had exact that problem you described with the original version. Thats the reason i applied the patch and packed the .apk new. It is (as i already said) because VPNconnections uses "ps" to check if "vpnc" is running. (Besides the other problem with the "ip ru del table wifi" stuff)
If you want that Problem to be fixed you can try the following commands in a Terminal (either use "Terminal Emulator" or "Connect Bot") after starting the conncetion:
1.:
Code:
ps | grep 'vpnc$'
2.:
Code:
ps | grep '[v]pnc --script'
You should get an output on one of these 2 commands. The output should look like this (1. Number might be different):
Code:
1234 0 0:00 /data/data/org.codeandroid.vpnc_frontend/files/vpnc --script /data/data/org.codeandroid.vpnc_frontend/files/vpnc-script --no-detach /
1. If the 1. command works for you, then get the original version from here or from the market:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
2. If the 2. command works then the patched version in this thread should work.
3. If you get an output like this:
Code:
sh: ps: command not found
...then you don't have "busybox" and need to install it (don't know how since LeeDroid has it included)
4. Well and if the 1. command works and the original programm is telling you are connected but it doesn't work then it might be because of the ip tables. Then try this (also after you are connected):
for wifi
Code:
ip ru del table wifi
for gprs:
Code:
ip ru del table gprs
If it works then i might pack you a new .apk with the "ip ru ..." fix but without the "ps" patch.
If you have questions go on and ask. It shouldn't be that hard to get it to work proberly, since the bug is only the method "VPNconnection" is using to check if "vpnc" is running.
I can't "code" and im no "pro" but at least i know some "basic shell commands" and can edit that simple part of the code and pack *.apk new, so we might to get i run properly for you.
Btw: Credit for the Programm goes to wmealing and babak.mozaffari. Credit for the "ps patch" goes to nikolas.pooch. All I did was to apply the patch to the code and build the .apk new since the devs don't work on the programm for quite some time and didn't fix the reported issues.
kind regards
melethron
i downloaded the attached vpnc.apk
i get a message with 1...
6829 root 1300 S /data/data.org.codeandroid.vpnc_frontend/files/vpnc
edit: i downloaded the file from code.google and it worked wonders
but what is the
VPN connection
and what VPN Network
my university vpn works when i have both enabled or deisabled the VPN connection.
and with VPN Network connected
Vpnc script
Hey lambrospower
lambrospower said:
i downloaded the attached vpnc.apk
i get a message with 1...
6829 root 1300 S /data/data.org.codeandroid.vpnc_frontend/files/vpnc
Click to expand...
Click to collapse
Ok, then you have a different version of "ps" from your busybox version. Then you don't need to use my modified vpnc.apk. Do the following to fix it:
1. Uninstall my apk.
2. Get the one from the market or the google code page (links/QR in the posting above)
3. Connect (it should tell you now that you are connected, since the original version uses the first "ps grep" command to check the connection)
If everything works fine you are done.
If not and "VPNConnections" tells you that you are connected but the IP doesn't change and you can't use the stuff you need to do with vpn then it's a problem with the ip table (i think this is a general problem with froyo ROMS that is also happening with openvpn but i don't know for sure). To fix this do the following:
4. In terminal
Code:
su
then for wifi:
Code:
ip ru del table wifi
or for gprs
Code:
ip ru del table wifi
if your connection works fine after that command you should replace the vpnc script file:
5. Get the vpnc-script file from here.
6. Push this file with adb to:
Code:
/data/data/org.codeandroid.vpnc_frontend/files/vpnc-script
This includes the "ip ru del table wifi/gprs" command in the script so it updates your ip table when you connect and disconnect.
I will update my first posting these days and build a new .apk with only the changes to the vpnc-script file and without the patch that fixes the "ps" issue with some "busybox" versions. I don't have much time atm. So just follow the steps above and it should work.
kind regards
melethron
Edit:
lambrospower said:
edit: i downloaded the file from code.google and it worked wonders
Click to expand...
Click to collapse
Ok. But thats a bit strange since i thought that every froyo ROM has the "ip table" issue. Does your ROM include the "ip table fix" for OpenVPN? Does it disconnect proberly?
lambrospower said:
but what is the
VPN connection
and what VPN Network
my university vpn works when i have both enabled or deisabled the VPN connection.
and with VPN Network connected
Click to expand...
Click to collapse
I just disabled it and i also still can connect. As i said it's not my program and i can't code so i don't really know what it does and if this a bug. I think the devs aren't really active and fix know bugs....
well it's not a bug. I think that VPN Connection is something different than just connecting to the network.
You can disconnect by the vpn network just fine if you just click and hold your network name and choose disconnect. Its the vpn connection setting that i dunno what it is
@lambrospower
I had some issues with "sh" and Samba Server in Lee's Rom (not Lee's fault - i replaced the sh of busybox with the sh in /system/bin). That's why i looked again in the Issue with the "ps" command. The reason the original Version (market/google code) of VPNC Connections works for you is that you use an outdated Version of BusyBox in your Rom (27 January 2010 -- BusyBox 1.16.0 (unstable)) while Lees ROM uses a newer Version (25 July 2010 -- BusyBox 1.17.1 (stable)) (see: busybox.net) .
2 melethron:
Thakns, VPN IPSEC works on Desire like charm with your version of vnpc.apk.

[17/12][UPDATE]OPENVPN.zip!!FLASH WITH CWM-ANY SENSE ROM

OpenVPN on SENSE & Buzz OC/UV 1.51Ghz 1.1.4 HOW TO
NEW UPDATE: 17/12/2010
OpenVpn.zip - FLASH IN CLOCKWORK MOD AND FOLLOW ON FROM STEP 4!!
WHAT IT DOES.
- New iptables
- New Openvpn binary
- All Symlinks created.
- All Permissions.
- Folders Created.
REQUIREMENTS:
-ROOT
-CWM-RECOVERY
-BusyBox
-OpenVpn config files, certs etc in /sdcard/openvpn
CONFIRMED WORKING ON :
-LeeDroid 1.2
-[RUU_Ace_HTC_WWE_1.32.405.6 Stock Sense Rom] - thanks to Walker Street For Testing.
Please inform me if you can confirm this working on Other ROM'S Thank you.
I AM USING ,
[KERNEL]Buzz OC/UV 1.51Ghz CFS+BFQ+SmartAss+TUN+EXT4+.27 ACE 1.1.4 [15/12/2010]
IN THEORY THIS SHOULD WORK WITH ANY SENSE ROM & KERNEL..
JUST MAKE SURE YOU THE KERNEL HAS A TUN.KO ETC CONFIGURED FOR IT.
DOWNLOAD :
http://dl.dropbox.com/u/15057375/mero01-xda/OpenVPN.zip
And a BIG thanks to ecips for helping with this
NO LONGER NEED TO DO ANY OF THIS , JUST USE OpenVPN.zip & FOLLOW ON FROM STEP 4!!
Ok guys had alot of problems gettings this too were it working, hopefully you guys might see some errors/fix's to improve on this
Requirements:
OpenVPN-Settings - Market
OpenVpn Binary File - Located in the openvpn4DesireHD.ZIP
LeeDrOiD HD v1.2 - http://forum.xda-developers.com/showthread.php?t=842802
Buzz OC/UV 1.51Ghz 1.1.4 - http://forum.xda-developers.com/showthread.php?t=835616
UPDATED 17/12/2010: CONFIRMED WORKING ON, LeeDroiD HD v1.2 & Buzz OC/UV 1.51Ghz 1.1.4
A) Not sure if this matters or not but i copied LeeDroids iptables file from the Desire.
B) Copy your client.conf or .ovpn file and certs to /sdcard/openvpn
C) Implementation:
1. Unzip/copy openvpn binary file to device.
1.b replace the current openvpn file in /system/xbin with this new one
1.c -- chmod +x with it.
Code:
adb remount
adb push openvpn /system/xbin/
adb shell
chmod +x /system/xbin/openvpn
exit
If " adb remount " didnt work
Code:
su
mount -o rw,remount -t yaffs2 /dev/block/mmcblk0p25 /system
in order to mount system as read/write
2. Make folder /system/xbin/bb
Code:
adb remount
adb shell mkdir /system/xbin/bb
exit
3. Make symbolic links to ifconfig and route & busy box.
THIS IS WERE THE PROBLEMS ALL COME FROM AND IF YOU HAVE ISSUES THIS IS WHAT WILL BE CAUSEING IT! SOMETHING TO DO WITH LINK BETWEEN BUSY BOX AND IFCONFIG......BUT I TRIED FROM FRESH BOOT AND IT WORKS FLAWLESSLY NOW WILL TALK TOO LEE ABOUT GETTING EVERYTHING INBUILT IN LEEDROID
Code:
adb remount
adb shell
ln -s /system/xbin/ifconfig /system/xbin/bb/ifconfig
ln -s /system/xbin/route /system/xbin/bb/route
ln -s /system/xbin/busybox /system/xbin/ifconfig
reboot
4. Install/Configure OpenVPN-Settings
4.0 Install OpenVPN-Settings from "Market" its free dont worrie
Code:
4.1 On device, launch OpenVPN Settings.
4.2 Long press openvpn.conf, Preferences.
4.3 Check "Use VPN DNS Server"
4.4 Enter your VPN DNS Server
4.5 Script Security Level Select Built-in + scripts
4.5 press back
4.6 Click click the sub-menu option select Advanced
4.7 Load tun kernel module and make it 'insmod /system/lib/modules/tun.ko' before starting openvpn.
7.8 Change path to openvpn binary to /system/xbin/openvpn
Click " Fix HTC Routes "
You should now be connected
IF I FORGOT ANYTHING PLS LET ME KNOW VERY TIRED WHEN I DID THIS HAHA
Here is my config anyways for reference and here is my client config
Code:
client
dev tun
proto udp
remote XXX.XXX.XXX.XX 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert mero-android.crt
key mero-android.key
comp-lzo
verb 6
script-security 2
Have also realised if you go terminal and do following gives you nice log
basicly , su root, cd to your openvpn folder location, run openvpn on your client conf
Code:
su
cd /sdcard/openvpn
openvpn client.ovpn
For added security. To make the OpenVPN request a password on connect. do the following
change step 4.5 to Script Security Level Select Built-in + scripts + passwords
add the following to your server conf.
Code:
username-as-common-name
plugin /usr/lib/openvpn/openvpn-auth-pam.so login
and this to your client
Code:
auth-user-pass
Change Log:
Use OpenVPN.zip & step 4 and beyond.
17/12/2010
DOWNLOAD:
http://dl.dropbox.com/u/15057375/mero01-xda/OpenVPN.zip
Out of curiosity, what is OpenVPN used for?
Then i will know if i have to use your spot on tutorial
no1male said:
Out of curiosity, what is OpenVPN used for?
Then i will know if i have to use your spot on tutorial
Click to expand...
Click to collapse
It's a VPN (virtual private network). I can access my home and work computers from my android.
I am super-impressed mero. But I wasn't able to get it to work .... I think it's my fault .... I've stuffed around so much. I'm right now starting a clean install.... It should work..... I hope.
Walker Street said:
I am super-impressed mero. But I wasn't able to get it to work .... I think it's my fault .... I've stuffed around so much. I'm right now starting a clean install.... It should work..... I hope.
Click to expand...
Click to collapse
thanks
I did alot of stuffing around aswell thats why i wanted to test it.
So i did a full wipe. then flash to 1.2 reboot. flash to 1.0.1.fix. and then first thing i did was follow those steps.
connection worked first go
please update me, as im sure i can help.
Walker Street,
I attached a screen shot of the actual adb session i did just incase. the bottom 3 commands to my knowledge and what i can see dont work so i ommited them from the tut. but they might do somthign and not display it so thought i might upload incase.
mero01 said:
Walker Street,
I attached a screen shot of the actual adb session i did just incase. the bottom 3 commands to my knowledge and what i can see dont work so i ommited them from the tut. but they might do somthign and not display it so thought i might upload incase.
Click to expand...
Click to collapse
Silly me. I forgot to set 'Fix HTC Routes'. Now I've done that and your method rules.
You're a genius mero. It works.
I changed permissions for the new openvpn and iptables using root explorer so they could execute. Maybe you didn't need to because you were doing adb push from linux (I was doing it from windows).
I don't have a DNS server, so I didn't need to specify one.
I would highly recommend these changes to LeeDroid for his rom. Have you messaged him yet?
Walker Street said:
Silly me. I forgot to set 'Fix HTC Routes'. Now I've done that and your method rules.
You're a genius mero. It works.
Click to expand...
Click to collapse
+1
Thank you very much
Walker Street said:
I changed permissions for the new openvpn and iptables using root explorer so they could execute. Maybe you didn't need to because you were doing adb push from linux (I was doing it from windows).
I don't have a DNS server, so I didn't need to specify one.
I would highly recommend these changes to LeeDroid for his rom. Have you messaged him yet?
Click to expand...
Click to collapse
to be honest the only part i did in adb was the symlinks did everything else in root explorer.i didnt change any permissions :S
Yes i have PM'd him, awaiting a reply
just updated to Buzz 1.0.2 , everything still works
Walker Street said:
It's a VPN (virtual private network). I can access my home and work computers from my android.
Click to expand...
Click to collapse
Yes and tunnel all your internet traffic back through the VPN encrypted in many ways
also works with buzz 1.0.8.
and after pushing the openvpn binary, you need to do chmod +x with it.
raw235 said:
also works with buzz 1.0.8.
and after pushing the openvpn binary, you need to do chmod +x with it.
Click to expand...
Click to collapse
No worries thanksss, i shall update
anyone tried with 1.1.0 ?
Hello,
i'm in trouble....
At first, i have an error when i try the adb remount command : Operation not permitted
Then i have a second message when i try to create the "bb" folder : mkdir failed for bb. Read-only file system.
I'm confused because tel is rooted, S-OFF and suped-CID. I even changed the Kernel with Buzz's one 1,2Ghz.
Did i miss something?
Thanks for your help
Lionel
EFCAugure said:
Hello,
i'm in trouble....
At first, i have an error when i try the adb remount command : Operation not permitted
Then i have a second message when i try to create the "bb" folder : mkdir failed for bb. Read-only file system.
I'm confused because tel is rooted, S-OFF and suped-CID. I even changed the Kernel with Buzz's one 1,2Ghz.
Did i miss something?
Thanks for your help
Lionel
Click to expand...
Click to collapse
hmm thats very strange... adb remount should work...
actually quite puzzled at that dunno why it wouldnt work if you do have root etc.
only other thing i can think of is have you got busybox installed ?
what state is your phone in when your trying to do this ? ie off. on, recovery mode.
Hi,
thanks for reply!
I have a branded SFR phone in France but i managed to root it and S-OFF it without problem.
I switched to another Kernel with the tun.ko file and that's all.
When i tried adb remount, the phone was ON (no recovery or anything else).
I will try in recovery mode.
Busybox is installed.
Note : impossible to connect adb while in recovery.
This seems to be the problem :
when switching kernel only, i don't change the property ro.secure because it's nested (of what i read) in the boot.img. I have a branded phone and this property is set to 1.
Is there a way to change this property without changing the whole ROM? I would llike to stay with this one.
Thanks for your advice
lionel
Ok,
switched to Leedroid 1.2 and re-changed kernel to Buzz 1,22Ghz.
This tutorial is awesome!
Thanks mero01!!!
Is there a way to use the WIFI connection instead of 3G?
EFCAugure said:
Ok,
switched to Leedroid 1.2 and re-changed kernel to Buzz 1,22Ghz.
This tutorial is awesome!
Thanks mero01!!!
Is there a way to use the WIFI connection instead of 3G?
Click to expand...
Click to collapse
no worries
yer just disable 3g and use wifi. just make sure that its not using the same wifi your openvpn server is on...
Yes, of course!
I will try from a friend's wifi this afternoon!
Thanks
lionel

[SCRIPT][6/19/2011] Inspirefy 1.1 for CM7 nightly - Delete stuff & Replace stuff

Hello, I wrote this shell script to make the CM7 nightly the way I like. It was a pain to do it manually every time I would flash a new nightly.
NOOB WARNING:
THIS SCRIPT IS FOR CM7 NIGHTLY ONLY. IT MAY WORK FOR OTHER CM7 BASED ROM BUT USE IT AT YOUR OWN RISK. IT DELETE SOME FILES ON THE /SYSTEM/APP AND MODIFY YOUR BUILD.PROP FILE. I'M NOT RESPONSIBLE IF YOU DESTROY YOUR PHONE NOR IF YOUR PET DIES AND THINGS LIKE THAT.​​
This script do this:
1) delete some APKs from /system/app that I don't need
/system/app/Camera.apk - replaced by Miui camera
/system/app/Calculator.apk - I use RealCalc
/system/app/FileManager.apk - I use Root Explorer
/system/app/Music.apk - I use the new Music App
/system/app/BooksPhone.apk - I don't use this
/system/app/Protips.apk - Useless
Click to expand...
Click to collapse
2) replace the boot animation with a sharper and bigger version (file size is bigger too)
The original boot animation size is too small for our screen. Some people could car less for this as you don't reboot your phone that often.
Original boot image:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
New boot image:
Click to expand...
Click to collapse
3) replace the default camera for a Miui camera
We all know the AOSP camera sucks...
Click to expand...
Click to collapse
4) backup and edit build.prop to display "Inspire 4G" as device name
Some people asked how it affect the market and so far so good for me.
I have no idea if automatic backup/restore from Google is working or not. I use Titanium Backup to restore my apps before I login with my Google account.
Click to expand...
Click to collapse
Things you will need:
1) Scripting Layer for Android (SL4A)
Free app. We will use this to run the script.
Click to expand...
Click to collapse
2) Script and other files - RAR version inspirefy_files_v1.1.rar or ZIP version: inspirefy_files_v1.1.zip
All the files needed for the magic to happen...
VERSION 1.1 UPDATE: If you already have the version 1.0 on your phone you can download the attached zip file from this post to update the script to version 1.1 - Just extract the zip file to /sdcard/inspirefy/ and replace the old 'inspirefy.sh' script.
Click to expand...
Click to collapse
How to install & use it:
1) Extract the inspirefy_files.rar (or inspirefy_files.zip) to the root of your sdcard (/sdcard).
You will have 2 new folders (or just 1 new folder is SL4A was already installed): /sdcard/inspirefy and /sdcard/sl4a
2) Install the sl4a on your phone and run it.
2a) Select "run-inspirefy.sh" from the main screen. If it's your first time running the script you must confirm the super user request.
3) After the script is done (about 2s) you can close SL4A and reboot your phone.
Done
You can edit the file /sdcard/inspirefy/inspirefy.sh with your preferred text editor to make any changes you would like, maybe you want to keep the Tips widget
Have fun!
Thanks to dog77k for the feedback and suggestions and everybody who is using this script.
Good stuff LGSilva. Will let you know how things go after I find a free method to extract the rar (don't use root explorer) or when I get to my desk...
Very cool and glad to see this. Nice job
Sent from my Desire HD using XDA Premium App
Just added a ZIP version for the necessary files in case you want to do this on your phone.
forgive me, but I've never ran a script on android before. I loaded up the folders on the root of my sdcard, installed SL4A and ran it. Superuser didn't ask for permissions. Also, I can't figure out how to run what I need to. Help?
poetofsound said:
forgive me, but I've never ran a script on android before. I loaded up the folders on the root of my sdcard, installed SL4A and ran it. Superuser didn't ask for permissions. Also, I can't figure out how to run what I need to. Help?
Click to expand...
Click to collapse
When you ran the script did you get the terminal window output with something like this?
Code:
Inspirefy 1.0 by LGSilva
Remounting system partition rw...
Deleting apk files and boot animation...
Copying new boot animation and camera...
Setting permitions and ownership...
Backuping build.prop and changing device name...
Remounting system partition as ro...
DONE
.
The text is tiny but you can read it. Is there any error message on the terminal window?
Check the superuser app, sometimes it will have the SL4A marked to deny root...
Edit: Just testing on build 103... looks like SL4A is not happy with this build, time to investigate.
LGSilva said:
Edit: Just testing on build 103... looks like SL4A is not happy with this build, time to investigate.
Click to expand...
Click to collapse
They (nightly forum) are saying that the SU app is jacked on 103...
Nightly build #103 have a problem with Superuser not working right therefor my script won't work either.
To fix this download the Superuser from Rom Manager > Extras, reboot in recovery and install it.
dog77k said:
They (nightly forum) are saying that the SU app is jacked on 103...
Click to expand...
Click to collapse
Yep, you beat me to that, I blame the internet
Two suggestions/hints for the inspirefy.sh code:
"chown root.root /sys..." gave me an unknown user/group error, but "chown 0.0 /sys..." worked for me.
I was getting an error when trying to remount /system as ro that it was still busy so I added a 2 sec pause before trying to remount:
Code:
echo -e "Remounting system partition as ro...\n"
sleep 2
mount -o ro,remount -t ext4 /dev/block/mmcblk0p25 /system
echo -e "DONE.\n"
Otherwise the code worked well for me. Great work LGSilva.
I was having problems with SU thats why lol I'll fix it and try this again and update when I'm done
dog77k said:
Two suggestions/hints for the inspirefy.sh code:
"chown root.root /sys..." gave me an unknown user/group error, but "chown 0.0 /sys..." worked for me.
I was getting an error when trying to remount /system as ro that it was still busy so I added a 2 sec pause before trying to remount:
Code:
echo -e "Remounting system partition as ro...\n"
sleep 2
mount -o ro,remount -t ext4 /dev/block/mmcblk0p25 /system
echo -e "DONE.\n"
Otherwise the code worked well for me. Great work LGSilva.
Click to expand...
Click to collapse
Thank you dog77k for the suggestions.
I've updated the script with them and also added a 2sec pause after mounting it as RW just in case...
Files with version 1.1 updated on the first post, no need to reinstall SL4A.
tested and seemed to run just fine on build 104. thanks for the awesome script! very cool
Thank you!
+1 to both of you, thanks for the great scripting solution.

[GUIDE][SCRIPT] How to root Android x86 4.3

As we all know, Android 4.3 brought with it some extra security features which caused some small issues with root. These have been solved by the likes of Chainfire and other developers, meaning we have root once more. This is their work, I've just botched it together to work on the Android x86 4.3 system, which works slightly differently
You will need:
A device with Android x86 4.3 on it
Optionals:
Another Linux based OS - this can be an OS on another partition on the device or a live disk/USB
Root permissions in that second OS and access to the terminal
Knowledge of which partition Android x86 is installed onto and which is its root folder (if you didn't mess with that, it tells you in the script)
Instructions:
On Android x86:
Download the attached zip and extract it using a file manager
Press Alt+F1 and use "cd" to change directory to where you extracted the zip
You should go as far in as the "README" and "install.sh" files
Run:
Code:
sh install.sh
Follow the instructions on-screen. It tells you the rest.
On a linux boot:
Download the attached zip and extract it to somewhere memorable
Open your terminal and use "cd" to change directory to where you extracted the zip. You should go as far in as the "README" and "install.sh" files
Run:
Code:
sh install.sh
Follow the instructions on-screen. It tells you the rest.
Reboot back into Android x86, it should have root now
Changelog:
v2:
Included version for Android x86 boot, through the Alt+F1 terminal
Made it a bit simpler
Screenshots
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Credits
@Chainfire for SuperSU and all the files included that the script installs
The SuperSU thread, don't forget to thank on there
The Android x86 project for the OS itself and the init.sh file, which is patched as the install-recovery file is
Hello..
I try to run the install.sh but it said
"This script needs root. Enter your password to continue:
sh: 0: Can't open .install.sh"
I ran it with sudo permission. My Ubuntu is on sdb6 and and android is on sdb7.
Please assist.
Just wondering? Can I just copy the the system folder and let it overwrite (merge) the system folder in the android partition. Also what permission do I need to change for what folder if I were to do this manually.
Thanks minhgi
It hasn't extracted properly, the .install.sh file is in the zip with the install.sh
Just in case, for the next release (in testing now, can be run from the Android x86 boot itself), I made it ./.install.sh, which should work
Here comes version 2:
Changelog:
Included version for Android x86 boot, through the Alt+F1 terminal
Made it a bit simpler
Thanks Quinny,
It is working. Somehow when I downloaded the attachment the first time, the script folder was not there. So there was not script to run. Anyway, I did it through the Ubuntu terminal it is working for me.
---------- Post added at 02:49 PM ---------- Previous post was at 02:29 PM ----------
Opps..I said it to soo. I using an android build 4.3 from www.tabletx86.org and it use chainfire SU. It also seem like your rooting method use chainfire su. When I try to use root explorer to enable r/w permission, the app just force close. Also I try to launch chain su, it also force close. I am not sure if there is an incompatibiltiy issue there. I use the rom build from tabletx86 b/c it have broadcom wifi working for my laptop.
The android 4.3 from android-x86.org does not. Can you test the build from www.tabletx86.org? it was compile on 08-02-2013.
Thanks again.
minhgi said:
Thanks Quinny,
It is working. Somehow when I downloaded the attachment the first time, the script folder was not there. So there was not script to run. Anyway, I did it through the Ubuntu terminal it is working for me.
---------- Post added at 02:49 PM ---------- Previous post was at 02:29 PM ----------
Opps..I said it to soo. I using an android build 4.3 from www.tabletx86.org and it use chainfire SU. It also seem like your rooting method use chainfire su. When I try to use root explorer to enable r/w permission, the app just force close. Also I try to launch chain su, it also force close. I am not sure if there is an incompatibiltiy issue there. I use the rom build from tabletx86 b/c it have broadcom wifi working for my laptop.
The android 4.3 from android-x86.org does not. Can you test the build from www.tabletx86.org? it was compile on 08-02-2013.
Thanks again.
Click to expand...
Click to collapse
I'll have a go at some point, I'm on a slow connection currently so it might be a while
Quinny899 said:
I'll have a go at some point, I'm on a slow connection currently so it might be a while
Click to expand...
Click to collapse
not a problem. Please take you time. these builts are are preview version anyway.
minhgi said:
not a problem. Please take you time. these builts are are preview version anyway.
Click to expand...
Click to collapse
I looked this morning and it can't be run from the boot as it's got a broken superuser installed which means I can't mount the system. Don't see why it would force close though
So I tried doing the script via alt+f1 and it says its in root, then when the script runs it shows that it cant mount permission denied and it fails to remove old files and fails to chmod also. Any help would be appreciated. Thanks
wolfballz said:
So I tried doing the script via alt+f1 and it says its in root, then when the script runs it shows that it cant mount permission denied and it fails to remove old files and fails to chmod also. Any help would be appreciated. Thanks
Click to expand...
Click to collapse
If you're using TabletsX86's build, that's why, also, if you didn't allow /system to be mounted during install, then you're out of luck
Quinny899 said:
If you're using TabletsX86's build, that's why, also, if you didn't allow /system to be mounted during install, then you're out of luck
Click to expand...
Click to collapse
using latest build from android-x86.org and I didn't recall seeing anything about being able to mount /system during install.
wolfballz said:
using latest build from android-x86.org and I didn't recall seeing anything about being able to mount /system during install.
Click to expand...
Click to collapse
There is, right before you install.
Like so:
(Not my image)
Must have breezed right by it. Since i have it with windows how can i remove my current android install and start over? I ran the install again and i dont get that /system question at all.
So i tried installing on a virtual machine and i get the /system option now. Thanks for the help
Sent from my SCH-I535 using Xparent Blue Tapatalk 2
After installing on a virtual machine and mounting /system thw script ran without error. Rebooted but didnt see a superuser app so i installed supersu. Installed and opened root explorer and when trying to mount anything RW it hangs and then root explorer says not responding. Anything else i can try?
Sent from my SCH-I535 using Xparent Blue Tapatalk 2
Hello! I installed this, then a custom font. When I rebooted, I get stuck in a terminal. Any help?
Yoyodude1124 said:
Hello! I installed this, then a custom font. When I rebooted, I get stuck in a terminal. Any help?
Click to expand...
Click to collapse
Most likely the font. Did you set its permissions correctly?
Sent from my Galaxy Nexus using Tapatalk 4
Works perfect. I've used it twice now. Thanks.
If you get stuck in terminal you can type "start" to boot android.
Sent from my Lenovo Thinkpad Edge using Tapatalk 4
Unlockable bootloader/custom roms?
Is there any way to get custom recoveries on this, so we could install custom ROMs?
Yoyodude1124 said:
Is there any way to get custom recoveries on this, so we could install custom ROMs?
Click to expand...
Click to collapse
Nope. And there won't be ROMs like CM or the like, x86 is completely different to ARM and they're highly unlikely to make it compatible
I also only get the question whether to install /system as r/w with builds before 4.3. Using the boot image of 4.2 of course results in a mess but it takes me to the screen where I can choose to use system as r/w or read only.
Tried with a freshly fixed mbr and clean install.

Creating /system/xbin on Android 9

Hoo roo,
Am currently trying to install a custom version of BusyBox to get Linux Deploy working. The installation script is slightly buggy, but you can workaround it by changing the .sh script slightly and creating the folder /system/xbin.
However, having a bit of trouble. Using su in Termux and mounting / as rw, then attempting to mkdir /system/xbin softlocks my Boox Max 3. This appears to be as a result of android 9 doing system-as-root.
I'm following the instructions mentioned in this Github issue.
Am so close to getting working Arch Linux on my eink tablet, can anyone point me in the right direction? Thank you in advance
If you want to tamper Android's system partition then
Phone's bootloader must be unlocked
AVB must be disabled
before.
Also: Android's /system partition is of fixed size. Have you checked there is enough free space to hold the BusyBox suite, too?
Why not install your BusyBox suite in /system/bin, what will overwrite Android's default ToyBox suite thus you won't have 2 more or less equal suites present in Android?
jwoegerbauer said:
If you want to tamper Android's system partition then
Phone's bootloader must be unlocked
AVB must be disabled
before.
Also: Android's /system partition is of fixed size. Have you checked there is enough free space to hold the BusyBox suite, too?
Click to expand...
Click to collapse
Thank you so much for responding jwogerbauer, using TWRP so bootloader is unlocked, and dm-verity is disabled as well. There's also most definitely enough space on /system, can't even make the folder though.
Linux Deploy needs this specific version of BusyBox installed, which is strange. The developer is a bit slack and more of a shell scripting sort of guy, so there's a heap of small hack arounds.
Was thinking there might be something possible with symlinks or something, but no idea where to start
snug.gy said:
Hoo roo,
Am currently trying to install a custom version of BusyBox to get Linux Deploy working. The installation script is slightly buggy, but you can workaround it by changing the .sh script slightly and creating the folder /system/xbin.
However, having a bit of trouble. Using su in Termux and mounting / as rw, then attempting to mkdir /system/xbin softlocks my Boox Max 3. This appears to be as a result of android 9 doing system-as-root.
I'm following the instructions mentioned in this Github issue.
Am so close to getting working Arch Linux on my eink tablet, can anyone point me in the right direction? Thank you in advance
Click to expand...
Click to collapse
How can I create xbin on android 11 please? Its rooted and unlocked thank you
Why trying to install BusyBox? Android since version 6 already comes with ToyBox - Android's official BusyBox equivalent.
xXx yYy said:
Why trying to install BusyBox? Android since version 6 already comes with ToyBox - Android's official BusyBox equivalent.
Click to expand...
Click to collapse
I have instructions to install other things that I'm following and that requires for me to put things into that specific ×bin to then give commands on terminal emulator and working with linux I think it def is for busy box @xXx yYy thanks
Joy28 said:
I have instructions to install other things that I'm following and that requires for me to put things into that specific ×bin to then give commands on terminal emulator and working with linux I think it def is for busy box @xXx yYy thanks
Click to expand...
Click to collapse
So what should I do how do I get it on there? Thx
Joy28 said:
So what should I do how do I get it on there? Thx
Click to expand...
Click to collapse
@xXx yYy
Since now almost 2 years you ( and other member ) are struggling with this problem: looks you ( both ) never correctly read the related posts here.
Same question got asked here, too
Creating /system/xbin on Android 9
Hoo roo, Am currently trying to install a custom version of BusyBox to get Linux Deploy working. The installation script is slightly buggy, but you can workaround it by changing the .sh script slightly and creating the folder /system/xbin...
forum.xda-developers.com
Note:
BusyBox binary ( current version is 1.36_0 released 3 weeks ago ) is compiled to be run on Android 8 and lower. For Android 8 and higher you've to use BusyBox as Magisk module.
My recommdation: Install Brutal BusyBox as Magisk module. Watch this video:
BTW:
Folder /system/xbin holds “Extra” binaries generated by some of 3rd-party-packages that aren’t essential to the system’s operation. To get these binaries working Android's path variable must get adjusted, too.
Folder /system/ sbin typically hold binaries essential to the system administrator, it contains only ueventd and adbd.
FYI:
TWRP times ago has started replacing Busybox with Toybox
xXx yYy said:
Since now almost 2 years you ( and other member ) are struggling with this problem: looks you ( both ) never correctly read the related posts here.
Same question got asked here, too
Creating /system/xbin on Android 9
Hoo roo, Am currently trying to install a custom version of BusyBox to get Linux Deploy working. The installation script is slightly buggy, but you can workaround it by changing the .sh script slightly and creating the folder /system/xbin...
forum.xda-developers.com
Note:
BusyBox binary ( current version is 1.36_0 released 3 weeks ago ) is compiled to be run on Android 8 and lower. For Android 8 and higher you've to use BusyBox as Magisk module.
My recommdation: Install Brutal BusyBox as Magisk module. Watch this video:
BTW:
Folder /system/xbin holds “Extra” binaries generated by some of 3rd-party-packages that aren’t essential to the system’s operation. To get these binaries working Android's path variable must get adjusted, too.
Folder /system/ sbin typically hold binaries essential to the system administrator, it contains only ueventd and adbd.
FYI:
TWRP times ago has started replacing Busybox with Toybox
Click to expand...
Click to collapse
I dont have an sbin either please in really simple terms can you please tell me how to install xbin??? Please I'm going crazy over here
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
No i need this bad please can you point me in the right direction
just install busybox from Magisk
https://github.com/Magisk-Modules-Repo/busybox-ndk
aIecxs said:
just install busybox from Magisk
https://github.com/Magisk-Modules-Repo/busybox-ndk
Click to expand...
Click to collapse
Thanks but I don't think that is the extent of it... I need to put linux file into xbin
I am using Linux Deploy app on systemless-root without any hassle
Please see pm
I don't reply pm. keep it in the threads.
what's the point, if you're rooted with Magisk, just install UPDATE-Busybox.Installer.v1.34.1-ALL-signed.zip from Magisk modules, reboot, and find "compatible BusyBox in path /system/xbin" (or /system/bin if no mount point exist)
Linux Deploy doesn't care about install location of busybox as long as it is in path.

Categories

Resources