Active Topics

 


Reply
Thread Tools
Posts: 147 | Thanked: 29 times | Joined on Sep 2009 @ Lincs, UK
#1
It's probably really obvious (hopefully) but is there a way that I can view and edit the system files on my n900 using ubuntu?

I've been reading the modding thread and while I have installed midnight commander and used it to add the "Reboot" button with no problems, there are other things I want to mod and play around with like changing wifi logo, battery logo's etc, but I would just feel a lot happier doing this via my laptop.

Anyone have a way?
 
Posts: 77 | Thanked: 38 times | Joined on Jan 2010
#2
I ssh into my N900 to edit files. http://wiki.maemo.org/SSH
 
SubCore's Avatar
Posts: 850 | Thanked: 626 times | Joined on Sep 2009 @ Vienna, Austria
#3
Code:
apt-get install sshfs
in ubuntu

Code:
 apt-get install openssh-server
in maemo

then just

Code:
mkdir /media/n900
chown <username> /media/n900
sshfs root@n900.host.or.ip:/home/user /media/n900 -o allow_other
on ubuntu

after testing that it works this way, please set up key authentication for the N900 "user" account. that's much safer than connecting as root.
__________________
"What we perceive is not nature itself, but nature exposed to our method of questioning."
-- Werner Karl Heisenberg
 
Posts: 147 | Thanked: 29 times | Joined on Sep 2009 @ Lincs, UK
#4
Thanks guys, to do this ssh, do I need a wifi router with active connection to the web?

My only option for web browsing is currently to tether using my trusty N900, so that presumably wouldnt be an option for me...

However, I do still have a BT homehub router, which i guess could still just serve as a LAN, which might be good enough to let me do a SSH?

Hmmm, i must try...
 
Posts: 268 | Thanked: 304 times | Joined on Oct 2009 @ Orlando, USA
#5
Originally Posted by DannStarr View Post
Thanks guys, to do this ssh, do I need a wifi router with active connection to the web?
No. You can connect from Ubuntu using SSH via the USB cable. Instructions for N900 setup are here

You would also need to install openssh on the N900.

On the Ubuntu side, modify the /etc/network/interfaces file and add these lines:
Code:
iface usb0 inet static
       address 192.168.2.14
       netmask 255.255.255.0
       broadcast 192.168.2.255
and then restart the interface on the Ubuntu after connecting the cable
Code:
sudo ifup usb0
you should now be able to ping the N900 from Ubuntu (ping 192.168.2.15) and use ssh or sshfs to have full access to the N900's filesystem
 

The Following User Says Thank You to archebyte For This Useful Post:
Posts: 147 | Thanked: 29 times | Joined on Sep 2009 @ Lincs, UK
#6
Originally Posted by archebyte View Post
No. You can connect from Ubuntu using SSH via the USB cable. Instructions for N900 setup are here

You would also need to install openssh on the N900.

On the Ubuntu side, modify the /etc/network/interfaces file and add these lines:
Code:
iface usb0 inet static
       address 192.168.2.14
       netmask 255.255.255.0
       broadcast 192.168.2.255
and then restart the interface on the Ubuntu after connecting the cable
Code:
sudo ifup usb0
you should now be able to ping the N900 from Ubuntu (ping 192.168.2.15) and use ssh or sshfs to have full access to the N900's filesystem

Genius, thank you
 
Posts: 147 | Thanked: 29 times | Joined on Sep 2009 @ Lincs, UK
#7
I need more help here, im not quite getting something right.

I followed the set up for the N900 instructions, and I was successfully able to ping my laptop = 100% packets received.

When it came to doing it the other end, pinging my N900 from my laptop doesnt work, I get 100% packets NOT received.

What could be causing this?

Also, I then try to connect via either filezilla or secure shell and cant establish a connection.

I dont fully understand what i'm doing so its probably something really obvious im missing.
 
Posts: 147 | Thanked: 29 times | Joined on Sep 2009 @ Lincs, UK
#8
Errrm, correction to the above.

It seems I can ping my N900 (192.168.2.15) from my N900, but not my laptop (ping 192.168.2.14)

However, when using the laptop, neither address works
 
SubCore's Avatar
Posts: 850 | Thanked: 626 times | Joined on Sep 2009 @ Vienna, Austria
#9
Originally Posted by DannStarr View Post
When it came to doing it the other end, pinging my N900 from my laptop doesnt work, I get 100% packets NOT received.
since 51-1 (PR1.1), the N900 won't respond to pings anymore IIRC.

Also, I then try to connect via either filezilla or secure shell and cant establish a connection.
ssh should work (i don't know filezilla), restart your sshd to recognize the "new" usb0 interface by
Code:
sudo gainroot
/etc/init.d/ssh restart

edit:
you did do "ifup usb0" on the N900 as well, right?
__________________
"What we perceive is not nature itself, but nature exposed to our method of questioning."
-- Werner Karl Heisenberg
 
Posts: 147 | Thanked: 29 times | Joined on Sep 2009 @ Lincs, UK
#10
Ok guys, I've done, and re-done everything suggested here, but when I come to connect via SSH I just get a "Host Unreachable" error.

Checklist on N900:
1. Installed SSH server and Client
2. did what ever this means:

"mkdir /media/n900
chown <username> /media/n900
sshfs root@n900.host.or.ip:/home/user /media/n900 -o allow_other"

3. did "ifup usb0"

Checklist in Ubuntu
1. apt-get install openssh-server - done
2. modified /etc/network/interfaces file to add
"iface usb0 inet static
address 192.168.2.14
netmask 255.255.255.0
broadcast 192.168.2.255"
3. did "ifup usb0"

Still no joy.
 
Reply


 
Forum Jump


All times are GMT. The time now is 05:27.