Active Topics

 


Closed Thread
Thread Tools
Posts: 36 | Thanked: 2 times | Joined on Dec 2009
#1
Hi guys,

after falling in love with my new baby, I am having some questions. Hope you can help me a little.

Sip:
I created a SIP account and everything works perfect. However I note, that from the phone applications call list, SIP is not offered. E.g. I clic on a call entry that I missed. Then I can chose to make a call with cellular and with Skype, but not with my SIP account. If I chose the Dialing Pad I can chose all three options under the point call type. What can I do, to integrate SIP better?

root:
I installed rootsh. (follwoing http://wiki.maemo.org/Root_access) The command "sudo gainroot" works. Do I need to protect my device somehow now? Like activating a password? Could not find anything about this on the wiki.

basic linux:
In the terminal I go to the directory /home/user/MyDocs//Mac OS
The command ls shows me the directory "Images", but "cd Images" just gives me "/bin/sh/ cd: can't cd to Images". I am doing this after becoming root with "sudo gainroot". Why can't I cd into that directory? BTW the directory name "Mac OS" is confusing me a little. Whats the meaning?

Thank you for help/hints,

ste

Last edited by chemist; 2010-04-29 at 12:50.
 
Posts: 236 | Thanked: 223 times | Joined on Oct 2009 @ NE UK
#2
No idea on the Sip, I'm afraid.

installing rootsh doen't make your phone more available to anyone than it was before, I think. When you instlall the ssh server software you will be asked to change the root password (or at least I was) and you should do this.

Still, there is no harm in changing it right now!

regards the images directory, I don't have that on mine .. Can you show exactly the output of

Code:
pwd && ls -alt
while in the Mac OS directory?

There is a .images directory in /home/user/MyDocs, btw, which can be confusing in that it won't show up in the output of ls unless you use the -a switch, but it does show up as "Images" in the file manager...
 

The Following User Says Thank You to kwotski For This Useful Post:
Posts: 5,335 | Thanked: 8,187 times | Joined on Mar 2007 @ Pennsylvania, USA
#3
Originally Posted by STE View Post
...from the phone applications call list, SIP is not offered.
Settings -> VoIP and IM Accounts -> SIP Account -> Advanced settings -> Use for telephone numbers

I installed rootsh. Do I need to protect my device somehow now? Like activating a password?
No. Installing rootsh itself does not open any ports (think "doors") a cracker on the Internet could use to access your phone. It only makes it so the person holding the phone can become root. Don't lose your N900 so that person is always you.
__________________
maemo.org profile
 

The Following 2 Users Say Thank You to sjgadsby For This Useful Post:
Posts: 36 | Thanked: 2 times | Joined on Dec 2009
#4
Thank you guys. Sip works now like a charm. Concerning the password, I remember that I heared something, but you are right, it was in connection with ssh. That makes sense.

Kwotski, here is the output, you asked me for:

drwxrwxrwx 2 user root 65536 Dec 6 21:26 .
-rw-r--r-- 1 user root 0 Dec 6 21:26 text.txt
drwxrwxrwx 13 user root 65536 Dec 6 20:08 ..
-rw-r--r-- 1 user root 522421 Oct 8 12:57 ._Documents
-rw-r--r-- 1 user root 522404 Oct 8 12:57 ._Images
-rw-r--r-- 1 user root 522404 Oct 8 12:57 ._Sounds
-rw-r--r-- 1 user root 522404 Oct 8 12:57 ._Videos
-rw-r--r-- 1 user root 0 Oct 8 12:57 Documents
-rw-r--r-- 1 user root 0 Oct 8 12:57 Images
-rw-r--r-- 1 user root 0 Oct 8 12:57 Sounds
-rw-r--r-- 1 user root 0 Oct 8 12:57 Videos
 
Posts: 5,335 | Thanked: 8,187 times | Joined on Mar 2007 @ Pennsylvania, USA
#5
Originally Posted by STE View Post
So how do I change into to the Images directory? My naive assumption is, that as root (as a windows user I am thinking "Admin") i should be able to view the content of every folder. Am I wrong?
It's not a matter of Linux's root not being as powerful of Windows & Mac OS's "Administrator", the items in "Mac OS" simply are not directories. As I wrote in my previous post, the items are files.

"Documents", "Images", "Sounds", and "Videos" are regular files. They're completely empty--exactly zero bytes in size--but they're regular files.

The "magic" part comes in with the "._Documents", "._Images", "._Sounds", and "._Videos" files. Again, they're not directories, they're AppleDouble files. This means each "._" file contains the Mac OS resource fork and Finder information for the corresponding non-"._" file.

To Linux, the "._" files are just binary files, nothing special about them, as Linux has no special knowledge of the AppleDouble format.

Mac OS X, on the other hand, automatically reads the contents of the "._" files, recognizes the Finder information within, and works some magic. Based on the Finder information in the "._" files, it makes the non-"._" files appear to Mac OS X applications as aliases. (This is indicated by an arrow placed on the folder icon. See below.)

So, in Finder and the Open and Save dialogs of all other applications:
  • "Documents" becomes an alias to /Volumes/Nokia N900/.documents
  • "Images" becomes an alias to /Volumes/Nokia N900/.images
  • "Sounds" becomes an alias to /Volumes/Nokia N900/.sounds
  • "Videos" becomes an alias to /Volumes/Nokia N900/.videos


Drop into the Mac OS X Terminal and change directory to "/Volumes/Nokia N900/Mac OS" to see the non-"._" and "._" files are still regular files, not directories, there too. Even Mac OS X's own command line tools like "cd" and "ls" don't know how to transform that hidden Finder information the way you want Linux to.

Anyway, the files you place in "Mac OS/Documents", "Mac OS/Images", "Mac OS/Sounds", and "Mac OS/Videos" when your N900 is connected to a Mac in mass storage mode will appear in the N900's File Manager (and the Open/Save dialogs of applications) within "<your N900's name>/Documents", "<your N900's name>/Images", "<your N900's name>/Sounds", and "<your N900's name>/Videos" respectively. And, from the N900's terminal, they'll be in "/home/user/MyDocs/.documents", "/home/user/MyDocs/.images", "/home/user/MyDocs/.sounds", and "/home/user/MyDocs/.videos" respectively.

Because that's rather confusing, I've put together a table. As vBullentin wants to help by line wrapping it into uselessness, I've made it an image. Please click through and use "All Sizes" to see the original size:
__________________
maemo.org profile
 

The Following 5 Users Say Thank You to sjgadsby For This Useful Post:
Posts: 36 | Thanked: 2 times | Joined on Dec 2009
#6
Hi sjgadsby,

thank you very much for your thorough explanation. I have got it now. I must admit I got a little confused with the regular Images directory on the N900 and the ones in the Mac Os folder.

Thanks again,
ste
 
Posts: 176 | Thanked: 122 times | Joined on Apr 2010
#7
Wonderful.
I bought a MicroSD, and would like to reproduce the same behaviour in it. Can I create the same directory structure and aliases/resource fork?
Thanks.
 
Closed Thread


 
Forum Jump


All times are GMT. The time now is 11:50.