Ubuntu.sh on Android Phone
Posted
by
pjtatlow
on Ask Ubuntu
See other posts from Ask Ubuntu
or by pjtatlow
Published on 2012-04-12T03:38:16Z
Indexed on
2012/04/12
5:41 UTC
Read the original article
Hit count: 504
android
|ubuntu-for-android
So today I noticed something weird on my phone. I used a terminal emulator to see what I could do with it, and noticed that there is a file called ubuntu.sh. I tried to run it and got all sorts of permission denied errors, and then I decided to root my phone. But now I'm nervous to run it, does anyone know what it does or why it is there?
edit I forgot to mention that I have an AT&T Morotola Atrix 4G running Android 2.3.6. Also when I use the app SSHDroid to go into my phone from my Ubuntu machine, I'm greeted with this:
"The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.
To access official Ubuntu documentation, please visit: http://help.ubuntu.com/"
Also, here are the contents of ubuntu.sh
#!/bin/sh
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
export LD_LIBRARY_PATH=/usr/lib:/usr/local/lib
# make sure no left-over pidfiles, etc.
#######################################
rm -fr /var/run/*
rm -fr /var/lock/*
chmod 666 /system/usr/keychars/*
rm -f /tmp/tab*
mkdir -p /home/adas/Desktop
chmod 755 /home/adas/Desktop
chown -R adas.adas /home/adas/Desktop
[ -x /usr/bin/firefox-install-profile ] && /usr/bin/firefox-install-profile
[ -x /usr/local/bin/check-citrix-certs.sh ] && /usr/local/bin/check-citrix-certs.sh
[ -x /usr/bin/migrate-webapps ] && /usr/bin/migrate-webapps
# boot scripts
##############
/etc/init.d/rc S
# lock down /var for CTS
########################
chown root.adas /var/tmp
chown root.adas /var/lock
chmod 775 /var/tmp
chmod 775 /var/lock
chmod 666 /dev/socket/dbus
chmod 666 /dev/null
# runlevel 2 scripts
####################
/etc/init.d/rc 2
cp /sdcard/*.lic /data/
chmod 666 /data/*.lic
This is really strange, any ideas?
© Ask Ubuntu or respective owner