[Samsung Infuse 4G] Skwerl23:
instructions

ok here it is people. i spent 4 hours last night pulling my hair out trying to get a damn build. literally my first 2 builds of linux didnt have enough gigs of space to do the job

i learned and you can use my knowledge. linux (the system) is tricky, but here is a basic layout of what to do and type.

when you see a $ that is a command prompt line (dont actually type the $)

Also some commands may require sudo before the command to work (i.e. $ sudo apt-get install xxx)

and so no one complains this is for windows users. mac users have more options but if you virtual box linux this should be a good tutorial for anyone

another note: dont extract and run files like java in /usr/ because although this works if your new you may have to do things with root permissions (to run root file explorer type $ sudo nautilus )

-1. download and set up ubuntu and java

wubi install ubuntu 11.4 (www.ubuntu.com with atleast 10 gigs. but id do 20 for no error room etc...) (restart into ubuntu obviously)

EDIT: 19October2011 here is a simpler way to install java.

due to the above java installation method you can skip to step 3

download java JDK 7 (http://www.oracle.com/technetwork/java/javase/downloads/index.html)

extract (you will have to change directories to this file, i drag and drop it into the desktop then CD into the desktop)

$ tar zxvf jdk-7-linux-i586.tar.gz

-2. edit the file etc/profile to have the lines (XXX = where java is extracted, preferably on the desktop) (e.g. /home/name/Desktop/java-jdk1.7.0/bin) (FYI linux is case sensitive)

export JAVA_HOME=XXX/bin/java
export PATH=$PATH:xxx/bin

*LOG OUT/IN

-3. install 32 bit libraries so java works. (64 bit users)

$ apt-get install libc6-i386 lib32gcc1 lib32z1 lib32stdc++6 ia32-libs

-4. install sdk/adb (replace xxx with android folders again best on desktop)

download android sdk (http://dl.google.com/android/android-sdk_r13-linux_x86.tgz)

extract (archive manager)

$ cd androidxxx/tools/
$ ./android

after a moment a window will pop up, from there you will

install platform-tools

-5. edit etc/profile to have line (XXX = android folders and such)

export PATH="XXX/platform-tools/:${PATH}"

*LOG OUT/IN

-6. install git hub and such

$ apt-get install git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev pngcrush schedtool

-7. install other stuff (64 bit users)

$ apt-get install g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline5-dev

-8. create directories

$ mkdir -p ~/bin
$ mkdir -p ~/android/system

-9. install the repo

$ curl https://raw.github.com/TeamRefuse/android/gingerbread/repo > ~/bin/repo

$ chmod a+x ~/bin/repo

(if repo command in next section isnt working try this)

edit etc/profiles to have the line

export PATH=$PATH:~/bin/

*LOG OUT/IN

-10. initialize/create the repo

$ cd ~/android/system

$ repo init -u git://github.com/TeamRefuse/android.git -b gingerbread

$ repo sync -j16

-11. download rom manager for canogen

$ ~/android/system/vendor/cyanogen/get-rommanager

-12. check for updates in source

$ cd ~/android/system/

$ repo sync

-13. Build & compile zip file

$ . build/envsetup.sh && brunch infuse4g

-14. copy the zip file (if you cant connect driectly to the phone copy it to another drive or the main pc drive XXXGB drive)

~/android/system/out/target/product/infuse4g/xxx-signed.zip

-15. download google apps and put in the phone aswell

http://cmw.22aaf3.com/gapps/gapps-gb-20110613-signed.zip

-16. flash (on phone)

cyanogen zip file.

reboot into recover

flash cm7 again

flash gapps

reboot phone

enjoy