demhademha / tweak-development-guide

From complete beginner to tweak dev!
GNU General Public License v3.0
117 stars 12 forks source link

.profile in "/var/mobile" or "/var/root" ? #21

Closed PaulProjects closed 3 years ago

PaulProjects commented 3 years ago

Chapter 4 tells me:

Now, open Filza and navigate to /var/mobile, you should see .profile (for bash) or .zprofile (for zsh), and open the correct file according to your shell. However, if the file isn't displayed, you'll need to manually create the .profile or the .zprofile file yourself.

I followed the text and created that file. As echo $SDKROOT in Chapter 5 did not work for me, I tested a bit around. I copied the file to "/var/root" and it works now. Before that I changed the terminal too bash (https://github.com/demhademha/tweak-development-guide/issues/8#issuecomment-712628481).

btw nice guide

Silverethical commented 3 years ago

Chapter 4 tells me:

Now, open Filza and navigate to /var/mobile, you should see .profile (for bash) or .zprofile (for zsh), and open the correct file according to your shell. However, if the file isn't displayed, you'll need to manually create the .profile or the .zprofile file yourself.

I followed the text and created that file. As echo $SDKROOT in Chapter 5 did not work for me, I tested a bit around. I copied the file to "/var/root" and it works now. Before that I changed the terminal too bash (#8 (comment)).

btw nice guide

I think you are SSHing as root, which you should not do. Always SSH as mobile unless told otherwise. (replace root with mobile in SSH command)

demhademha commented 3 years ago

Chapter 4 assumes you're logging in as the mobile user, subsequently, the profile is only created for that user. When logging in over ssh, you should login as the mobile user

PaulProjects commented 3 years ago

Oh misread that thank you