Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,741,801 Members 44,527 Now Online
XDA Developers Android and Mobile Development Forum

[PROJECT][PORT] GNU softwares on Android [15/02/2014 updated]

Tip us?
 
alireza7991
Old
(Last edited by alireza7991; 15th May 2014 at 03:04 PM.)
#1  
alireza7991's Avatar
Senior Member - OP
Thanks Meter 2214
Posts: 752
Join Date: Sep 2012
Location: Shahrekord

 
DONATE TO ME
Default [PROJECT][PORT] GNU softwares on Android [15/02/2014 updated]

Quote:
About


Android has being used in almost all type of devices from tiny smart watches to tablets , smart TVs and portable eboards like mk802 . It seems a complete operating system in term of games and useful applications but sth whichI think is a huge problem is that Android has very small parts of GNU, this makes Android not to be comfortable for advanced users , developers and programmers . also this would be a huge problem for users like me who do not access to their PCs but they want to have some capabilities in their phone . all this reasons made me to think about porting softwares from PC to my tiny Galaxy S Plus . but I had no PC and this was my huge problem in this road. finally I could get a small compiler and start porting more bigger softwares then I decided to make a project called GNU softwares on Android and gather all softwares under one project.
Quote:
Features / list of Softwares


all softwares are :

* Fully compiled with GCC 4.8.1/4.8.2 with Hardware floating point abi for better performance even comparing to similar smaller ones in busybox !
* Staticly linked with Musl Libc which is a lot more faster than Android's bionic or GNU's glibc with smaller size which makes them be small a lot more.
* Updated to latest ones in official repositories.

list of available softwares in my repository :

-bash -> a shell
-dash (not official GNU software but licenced under GPL) -> a shell
-patch -> generating patch files
-pexec -> parralel executing
-sed -> non-interactive stream editor
-grep -> finding patterns in files/streams
-gzip -> gnu z77 compressions algorithm implementation
-make -> makefile handler for creating automated build systems
-tar -> gnu tar archive software
-inet-utils -> utils for working with net (some utils of thid software has not been included)
-gawk -> gnu awk implementation
-marst -> algorithm 2 c convertor
-wget -> downloading files trough many protocols with proxy support
-units -> convert many units to each other
Quote:
Downloading & Installation


All softwares are stored in my public repository HERE

* For installing get softwares from their forlder in the repository , then unzip them and copy binaries to /system/xbin .
* For net related softwares there is also a reslov.conf which should be pushed to /etc/
Quote:
Changelog


--------15/02/2014:

*gzip: added new utilities and updated to R2.
*gzip: added new documentations to public repository.
*dash: disabled builtin printf to let ROM's printf be used instead.

---------14/02/2014

*initial release.


Quote:
Disclaimer


We distribute softwares in the hope that it will be useful, but without any warranty. No author or distributor of this software accepts responsibility to anyone for the consequences of using it or for whether it serves any particular purpose or works at all, unless they say so in writing. This is exactly the same warranty that proprietary software companies offer: none
Quote:
Help the project


maintaining a project with 2 millon lines of a code on a mobile is too difficult. this makes compiling large softwares like gcc impossible so I strongly need a donated VPS/dedicated server.
.........................
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.

Brian Kernighan
The Following 34 Users Say Thank You to alireza7991 For This Useful Post: [ Click to Expand ]
 
alireza7991
Old
#2  
alireza7991's Avatar
Senior Member - OP
Thanks Meter 2214
Posts: 752
Join Date: Sep 2012
Location: Shahrekord

 
DONATE TO ME
reserved
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.

Brian Kernighan
The Following 8 Users Say Thank You to alireza7991 For This Useful Post: [ Click to Expand ]
 
RayySP
Old
#3  
RayySP's Avatar
Senior Member
Thanks Meter 104
Posts: 342
Join Date: Apr 2013
Location: Toa Payoh
Awesome Job alireza7991! Hope this project is successful in the future.
The Following User Says Thank You to RayySP For This Useful Post: [ Click to Expand ]
 
aLNG
Old
(Last edited by aLNG; 16th February 2014 at 05:51 AM.)
#4  
aLNG's Avatar
Senior Member
Thanks Meter 153
Posts: 644
Join Date: Jul 2011
Location: Munich
Great will try this

Sent from my Nexus 5 using Tapatalk

Edit : because of busyboy installed in system/xbin, so I have to put the binaries in system/bin. and what can I say, ITS WORKING GREAT!
Model: Nexus 5
ROM: Cataclysm

SPEEDTEST USING TERMINAL

Click here if u think u are the best Shine Runner!!!
The Following User Says Thank You to aLNG For This Useful Post: [ Click to Expand ]
 
alireza7991
Old
#5  
alireza7991's Avatar
Senior Member - OP
Thanks Meter 2214
Posts: 752
Join Date: Sep 2012
Location: Shahrekord

 
DONATE TO ME
Quote:
Originally Posted by aLNG View Post
Great will try this

Sent from my Nexus 5 using Tapatalk

Edit : because of busyboy installed in system/xbin, so I have to put the binaries in system/bin. and what can I say, ITS WORKING GREAT!
Most GNU softwares has no similar ones in busybox software set. so you should not worry about conflicting issues.
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.

Brian Kernighan
The Following User Says Thank You to alireza7991 For This Useful Post: [ Click to Expand ]
 
eimoc
Old
#6  
eimoc's Avatar
Junior Member
Thanks Meter 4
Posts: 29
Join Date: Sep 2012
I've tried to push this file to xbin grep, patch, sed, tar and wget, but I got this : destination file exists. Enter new name. (These files from busybox)

So, what I have to do? Should I overwrite the file?

Sent from my LT15i using Tapatalk
 
alireza7991
Old
#7  
alireza7991's Avatar
Senior Member - OP
Thanks Meter 2214
Posts: 752
Join Date: Sep 2012
Location: Shahrekord

 
DONATE TO ME
Quote:
Originally Posted by eimoc View Post
I've tried to push this file to xbin grep, patch, sed, tar and wget, but I got this : destination file exists. Enter new name. (These files from busybox)

So, what I have to do? Should I overwrite the file?

Sent from my LT15i using Tapatalk
1- rename files to another thing , e.g. patch -> gnu.patch
or
2- remove busybox ones(/system/xbin/*) and replace GNU ones . It's completely safe .

don't forget to push resolv.conf to /etc/ for wget.
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.

Brian Kernighan
The Following User Says Thank You to alireza7991 For This Useful Post: [ Click to Expand ]
 
alireza7991
Old
#8  
alireza7991's Avatar
Senior Member - OP
Thanks Meter 2214
Posts: 752
Join Date: Sep 2012
Location: Shahrekord

 
DONATE TO ME
Project status update.

2 new softwares added (inetutils + dash).

OP updated for more information.
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.

Brian Kernighan
The Following 2 Users Say Thank You to alireza7991 For This Useful Post: [ Click to Expand ]
 
eimoc
Old
#9  
eimoc's Avatar
Junior Member
Thanks Meter 4
Posts: 29
Join Date: Sep 2012
Quote:
Originally Posted by alireza7991 View Post
1- rename files to another thing , e.g. patch -> gnu.patch
or
2- remove busybox ones(/system/xbin/*) and replace GNU ones . It's completely safe .

don't forget to push resolv.conf to /etc/ for wget.
When I pushed resolving.conf to system/etc, I'm also getting the msg that the same file name exist.
Is there any suggestions? Tq

Sent from my LT15i using Tapatalk
 
alireza7991
Old
#10  
alireza7991's Avatar
Senior Member - OP
Thanks Meter 2214
Posts: 752
Join Date: Sep 2012
Location: Shahrekord

 
DONATE TO ME
Quote:
Originally Posted by eimoc View Post
When I pushed resolving.conf to system/etc, I'm also getting the msg that the same file name exist.
Is there any suggestions? Tq

Sent from my LT15i using Tapatalk
no , I think you understood my post incorrectly;

do this steps :

1- Copy GNU softwares to /system/xbin/ and replace them with busybox ones.
2- If you are installing a wget or inet-utils then also copy resolv.conf to /system/etc
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.

Brian Kernighan

The Following User Says Thank You to alireza7991 For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes