Would it be psooible to set this up on /media instead of /sdcard?
EDIT: Changed the scripts around and attempting now. FINGERS CROSSED!!!
Let me know how it goes
Would it be psooible to set this up on /media instead of /sdcard?
EDIT: Changed the scripts around and attempting now. FINGERS CROSSED!!!
SUCCESS!!!
SUCCESS!!!
Only reason I tried this was because all I had on hand was a 2GB microSD. I also wondered if performance would be better but i have no way of comparing atm.
You have to type "su" in the terminal emulator and hit enter, then run the ubuntu.sh script. This should solve your problem.
I get the same error, and am typing su first. When i type su, all it echos is su; is that normal?
Have you tried running bootubuntu after you get these errors? Some of the errors you will get because it is trying to remove something that isnt there. can you do this from adb and send me the output in a pm?
I get the exact same error the other person posted - nothing special to PM.
# sh ./ubuntu.sh
sh ./ubuntu.sh
modprobe: chdir(/lib/modules): No such file or directory
rm failed for -f, No such file or directory
rm failed for -f, No such file or directory
rm failed for -f, No such file or directory
rm failed for -f, No such file or directory
rm failed for -f, No such file or directory
mkdir failed for /data/local/mnt, File exists
rm failed for -/system/bin/mountonly, No such file or directory
chmod: bootubuntu: Operation not permitted
chmod: fsrw: Operation not permitted
chmod: mountonly: Operation not permitted
chmod: ubuntu.img: Value too large for defined data type
chmod: ubuntu.sh: Operation not permitted
chmod: unionfs: Operation not permitted
Ubuntu Chroot Bootloader v0.1
Ubuntu Bootloader is now installed!
This process does NOT damage Android OS!
Original Installer by Charan Singh
Modified for Ubuntu Chroot by Max Lee at NexusOneHacks.net
To enter the Debian Linux console just type 'bootubuntu'
In the adb shell, when i tell ubuntu to exit, i get a failed message, and ubuntu also never exits....
root@localhost:/# exit
exit
exit
Shutting down Ubuntu
failed.
#
I will say that i can VNC into ubuntu, but it is very laggy... not nearly as nice as people are making it out to be on here...
DISCLAIMER: You know the risks, bricking, breaking etc. I'm not, nor is anyone else responsible if something goes wrong with your device, especially should it turn into a cave troll and bludgeon someone to death.
Good to hear!
I'm currently working on making this a port to the SD card so that with the sd card in it boots into android from power off, and with the sd card out it boots to android then you replace the sd and use it for storage like normal. It will also run a lot snappier....well that's the idea anyway.
Do you work/stay on an IRC channel? I am actually working on a similar OS that uses the android kernel, gnuLibc and Xorg server (with native video driver if possible). The idea is to use the nookcolor as a thinclient and get most applications run through ssh forwarding (tunneling). This idea opens up many personal computing possibilities in using the Nookcolor.
I am actually working on a similar OS that uses the android kernel, gnuLibc and Xorg server (with native video driver if possible). The idea is to use the nookcolor as a thinclient and get most applications run through ssh forwarding (tunneling). This idea opens up many personal computing possibilities in using the Nookcolor.
adb devices
adb shell
su
cd /sdcard/ubuntu
ls
sh ./ubuntu.sh
bootubuntu
root@localhost:/#
apt-get update
apt-get install tightvncserver
apt-get install lxde
export USER=root
vncserver -geometry 1024×600
cat > /root/.vnc/xstartup
#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
icewm &
lxsession
cat > front
export USER=root
cd /
rm -r -f tmp
mkdir tmp
cd /
vncserver -geometry 1024×600
cat front /root/.bashrc > temp
cp temp /root/.bashrc
bootubuntu
exit
mount -o remount,rw /
mount -o remount,rw /system
ln -s /system/usr /usr
ln -s /system/var /var
ln -s /system/bin /bin
export PATH=$PATH:/system/bin:/system/xbin:/system/usr/bin:/system/usr/sbin
export FRAMEBUFFER=/dev/graphics/fb0
export TERM=linux
export HOME=/root
export TSLIB_CONFFILE=/system/etc/ts.conf
export LD_LIBRARY_PATH=/lib:/usr/lib
export TSLIB_CONSOLEDEVICE=none
export TSLIB_DIR=/system/usr/lib
export TSLIB_FBDEVICE=/dev/graphics/fb0
export TSLIB_TSDEVICE=/dev/input/event2
export TSLIB_PLUGINDIR=/system/usr/lib/ts0
dbus-daemon --system
Section "InputDevice"
Identifier "touchscreen"
Driver "mtev"
Option "Device" "/dev/input/event2"
Option "SwapAxes" "true"
Option "InvertY" "true"
EndSection
mount -o remount,rw /dev/block/mmcblk0p5 /system
busybox modprobe ext2
rm -f /data/local/bin/fsrw
rm -f /data/local/bin/bootubuntu
rm -f /data/local/bin/unionfs
rm -f /data/local/bin/installer.sh
rm -f /data/local/bin/mountonly
mkdir /data/local/mnt
#busybox clear
rm /system/bin/fsrw
rm /system/bin/bootubuntu
rm /system/bin/unionfs
rm -/system/bin/mountonly
busybox cp -f fsrw /system/bin
busybox cp -f bootubuntu /system/bin
busybox cp -f unionfs /system/bin
busybox cp -f mountonly /system/bin
cd /sdcard/ubuntu
busybox chmod 4777 *
cd /system/bin/
busybox chmod 4777 *
cd /
#busybox clear
echo " "
echo "Ubuntu Chroot Bootloader v0.1"
echo "Ubuntu Bootloader is now installed!"
echo "This process does NOT damage Android OS!"
echo " "
echo "Original Installer by Charan Singh"
echo "Modified for Ubuntu Chroot by Max Lee at NexusOneHacks.net"
echo " "
echo "To enter the Debian Linux console just type 'bootubuntu'"
mount -o remount,rw /dev/block/mmcblk0p5 /system
export kit=/sdcard/ubuntu
export bin=/system/bin
export mnt=/data/local/mnt
export PATH=$bin:/usr/bin:/usr/sbin:/bin:$PATH
export TERM=linux
export HOME=/root
busybox mknod /dev/loop2 b 7 0
mount -o loop,noatime -t ext2 $kit/ubuntu.img $mnt
mount -t devpts devpts $mnt/dev/pts
mount -t proc proc $mnt/proc
mount -t sysfs sysfs $mnt/sys
busybox sysctl -w net.ipv4.ip_forward=1
echo "Setting /etc/resolv.conf to Google Open DNS 8.8.8.8 and 8.8.4.4"
echo "nameserver 8.8.8.8" > $mnt/etc/resolv.conf
echo "nameserver 8.8.4.4" >> $mnt/etc/resolv.conf
echo "Setting localhost on /etc/hosts "
echo "127.0.0.1 localhost" > $mnt/etc/hosts
echo "READY TO ROCK AND ROLL BABY! "
echo "Brought to you by NexusOneHacks.net and the open source community! "
echo " "
busybox chroot $mnt /bin/bash
#After exit command is executed clear it all up
echo " "
echo "Shutting down Ubuntu"
umount $mnt/dev/pts
umount $mnt/proc
umount $mnt/sys
umount $mnt
# sh /system/bin/bootubuntu