View Full Version : Cannot remove Lights Off.app
jasonsmith
08-19-2007, 04:00 AM
Installed via SSH not Installer.
I have tried the below
To remove files with iPhoneInterface, use the rmdir command. It works for both directories and files. You might have to cd into a folder and delete its contents before deleting the folder itself...I'm not sure about that though.
To remove files with ssh, you need to install the rm binary from the iphone-binkit, and make it executable with chmod. Then you could simply type rm -r [folder]
I have tried iPhuc and FUGU.
FUGU says "denied" I can't change permissions either. Files still transfer fine though.
IPhoneinterface and iPhuc all says "No such file or directory"
Any Help??
ps I did try "Lights_Off.app" "Lights Off.app" "Lights_Off" "Lights Off"
jasonsmith
08-19-2007, 04:27 AM
Ok figured a slight work around...kinda
My goal was to install the new ver of Lights Off. So I installed 1.0.1 via installer.app which just happened to overwrite the old files. It also obviously added it to the uninstall list as well. So hopefully when I want it gone, installer.app will do it.
Anyways, does anyone know what is going wrong?? No very comforting. Its kinda like the files / folders can be seen but there not accessible or invisible or protected or something.
consumption
08-19-2007, 07:53 AM
if you installed the binkit you need to change the properties of the rm file to 0755
its found in the bin folder then you should be able to delete files.
maccabbi
08-19-2007, 09:49 AM
Yeah the easiest way to rm a app is either with bintools and terminal of to ssh in from a terminal. rm -r appname.app if you just want to replace apps then installer or scp -r "appname.app" to the location on the iphone should work. SSH is much easier to use then IPHUC once you set it up
iPhoneManiac
08-19-2007, 01:04 PM
Yeah the easiest way to rm a app is either with bintools and terminal of to ssh in from a terminal. rm -r appname.app if you just want to replace apps then installer or scp -r "appname.app" to the location on the iphone should work. SSH is much easier to use then IPHUC once you set it up
exactly: I could not remove VRecord.app using Fugu but the following in Terminal (on the Mac side) did the trick:
ssh -l root 10.0.1.3 (your IP may be different of course)
cd /Applications
rm -r VRecord.app
BTW The reason I removed VRecord is that VNotes is so much better!!!;)
jasonsmith
08-19-2007, 07:00 PM
Thanks guys, I did however use rm -r from the ssh via bin after I did chmod +x, I even ls -al to check the permissions.
I did exactly this exactly: I could not remove VRecord.app using Fugu but the following in Terminal (on the Mac side) did the trick:
ssh -l root 10.0.1.3 (your IP may be different of course)
cd /Applications
rm -r VRecord.app
and also did this Yeah the easiest way to rm a app is either with bintools and terminal of to ssh in from a terminal. rm -r appname.app if you just want to replace apps then installer or scp -r "appname.app" to the location on the iphone should work. SSH is much easier to use then IPHUC once you set it up
Thats why I am so baffled. All the commands could not see the Lights Off.app for some reason.
I wonder if rmdir through ssh and bin would have worked?? Permissions on Lights Off.app were 0755, I also tried deleting the folder contents but it wouldn't let me do that either.
I wonder if there were issues because "Lights Off" is two words?
to chekc the app name perform an ls command in the directory
The two words issue is almost certainly the problem. If you type it in with the space, it will think you are talking about two files called "Lights" and "Off.app".
rm -r "Lights Off.app"
or
rm -r Lights\ Off.app
ought to work via ssh.
jasonsmith
08-20-2007, 08:02 PM
to chekc the app name perform an ls command in the directory
Tried that, thxs though. It shows it as being two words.
The two words issue is almost certainly the problem. If you type it in with the space, it will think you are talking about two files called "Lights" and "Off.app".
rm -r "Lights Off.app"
or
rm -r Lights\ Off.app
ought to work via ssh.
I'm with ya, its the only explanation in why it appears to be not there when I issue commands. I will try your commands above. Thxs
brewm12
08-20-2007, 09:08 PM
when i try this all i get is:
-sh: rm: command not found
help?
heres the entire terminal screen:
Brewsters-Macbook-Pro:~ brewster_5$ ssh -l root 10.0.1.5
cd /Applications
rm -r Iroot@10.0.1.5's password:
Permission denied, please try again.
root@10.0.1.5's password:
-sh-3.2# rm -r Installer.app
-sh: rm: command not found
-sh-3.2#
jasonsmith
08-20-2007, 09:17 PM
It looks as though you haven't added the rm binary from binkit to you bin folder on your phone. You also need to set its permission to 0755 or chmod +x rm
XXXXXXXX-Macbook-Pro:~ XXXXXXXX ssh -l root 10.0.1.5
cd /Applications
rm -r Iroot@10.0.1.5's password:
Permission denied, please try again.
root@10.0.1.5's password:
-sh-3.2# rm -r Installer.app
-sh: rm: command not found
-sh-3.2#
Not sure what you were doing in the bold lines. Looks like you didn't wait for the connections and started to go at it. If that was the case, slow down or you will eventually pooch your phone.
mikaella
08-20-2007, 11:36 PM
i can't use rm either.... looks like there's no rm executable in the ssh kit (at least not in the one i installed...) what ssh kit should i install? can i just ad a rm executable from somewhere?
phattie
08-21-2007, 12:37 AM
There is. The problem you are facing is that your PATH environment variable is not correctly setup. If you type /bin/rm, it will run the program. I am not sure how to setup the profile on a "sh" shell, but on bash just run the following command to setup your path. You only need to run the command below once.
echo "export PATH=/bin:/usr/bin:/sbin:/usr/sbin:." >> /var/root/.bash_profile
Assuming you are root, just run the following command to correct the PATH when you log on:
/var/root/.bash_profile
Then you will be able to just type "rm App.app" and it'll find rm.
GL
cyberprince
08-28-2007, 03:59 PM
i can't use rm either.... looks like there's no rm executable in the ssh kit (at least not in the one i installed...) what ssh kit should i install? can i just ad a rm executable from somewhere?
Initially didn't work for me. Until I installed binkit. Now rm works like a charm as iPhoneManiac has detailed.
imack
09-04-2007, 12:22 PM
The easiest (and the fastest) way for me to remove it was to restore the phone!
Fast, easy, clean. After that just install again what you need. Took less than 20 min. ;-)
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.