[ZenFone 2 General] ycavan:
Fun stuff to do with Linux & the ZF2 ( probably with any other phone using a chroot :) )

1. Tether without turning on tethering

Generally, when you install Linux via Linux Deploy, the first thing that gets set up is ssh. Using adb, you can forward ports like:

c:\adb -d forward tcp:2222 tcp:22

This means: forward port 2222 ( on the pc ) to port 22 ( on the phone )

You can get an SSH client ( like putty or extra putty for Windoze, regular ssh for all the other os'es ) and set up Dynamic forwarding under SSH->Tunnels. You'd just type in a port number ( like 8080 ), click the Dynamic radio box and click Add.

Once you open a connection to 127.0.0.1 port 2222, you will have a Socks 5 proxy using your phone's internet. In Firefox, you can go to Advanced->Network Settings and set up a manual proxy as Socks5, IP: 127.0.0.1 and Port: 8080

Now, Firefox will connect through your phone.

2. Pulseaudio with Simple Protocol player from the App store.

Make sure your distro has Pulseaudio.

Edit /etc/pulse/default.pa

At the end of the file add this line:

load-module module-simple-protocol-tcp rate=48000 format=s16le channels=2 source=auto_null.monitor record=true port=8000

I ended up commenting out the XServer-XSDL pulseaudio line for this since Simple Player will play in the background. Anyway, this line reads: set up a stream on port 8000 with 2 channels and a 48k bitrate.

Set up Simple Player to play from 127.0.01 port 8000.

3. Use VirtualBox instead of KVM

This one is a little more technical, but it's pretty easy with most distros. You will need a boatload of bandwidth, though.

First things first, you need to get the source code for your kernel. If it's stock ASUS, then you'll want to grab the 2.12 kernel source & the most current source ( 2.20 ).

Next you'll want to follow the directions to get the Android source, this is what takes tons of bandwidth ( 40 gigs or so ) and storage space. Once you've got the source, untar the 2.12 source & then the 2.20 source in the main build directory. After that's done, do a quick: Make -f KernelMakefile TARGET_DEVICE=fhd build_kernel ( if you have a 551, TARGET_DEVICE=hd if you have a 550 ). Then do: Make -f KernelMakefile TARGET_DEVICE=fhd modules_install

After that's all done, you'll see a new directory called: out, this is your output directory.

Now, check to see if you have a /lib/modules directory. If you do not, then create one: $sudo mkdir /lib/modules

After that, we want to link our modules directory to /lib/modules. Let's say you compiled your modules in /home/android/android:

$sudo ln -s /home/android/android/out/target/product/fhd( this would be hd if you have a 550 )/linux/modules_install/lib/modules/3.10.20-x86_64_moor /lib/modules/

If you're using Arch, pacman will compile the kernel modules needed for your phone when you grab the virtualbox package.

4. Chrome tab casting

If you install Chrome in your chroot, you can cast your tab to your Chromecast.

5. Chrome vGet extension to cast video to DLNA devices

If you install Chrome, you can use the vGet extensions to cast non-Youtube videos to DLNA devices.

If you guys have any other things you like to play with, post it here :)