Re: [Server-devel] Connecting the a Schoolserver via SSH
On Tue, Dec 21, 2010 at 6:09 PM, Dr. Gerald Ardito gerald.ard...@gmail.com wrote: I was testing the server with about 12 XOs today. They all connected fine and had internet connections. But the performance seemed slow. It took several seconds for pages to load at times. Gerald, you need to diagnose where the problems are. They may be at more than one layer. = Is there wifi interference? - Do you see other APs in the same frequency, or in overlapping frequencies? You need about 4 channels of separation -- for example, put your AP in channel 11 -- and make sure there are no other APs using ch 7, 8 9 or 10. We recommend you use only channels 1, 6 and 11. - Can a small number of XOs ping the AP with relatively stable low latency? (ensure there is no other traffic with that AP at the same time) If there are no APs in overlapping channels, there may still be cordless phones using the 2.4GHz band, microwave ovens... = Is DNS fast or slow? Use the command time dig somedomain.org, testing for the FQDN of the XS itself, plus regional domains, plus int'l domains. = Is HTTP slow? Use `curl -o /dev/null http://schoolserver/ ` , which will give you timings, to see if the XS homepage is slow to fetch. Try the same with http://google.com/ for an external URL. cheers, m -- martin.langh...@gmail.com mar...@laptop.org -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
[Server-devel] Connecting the a Schoolserver via SSH
Hello. I have my schoolserver up and running (at last!). I want to connect to it from one of the XOs using SSH. I have read what is on the wiki, but I must be missing something. Can someone provide some detailed instructions? Thanks. Gerald ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] Connecting the a Schoolserver via SSH
On Tue, Dec 21, 2010 at 8:20 AM, Dr. Gerald Ardito gerald.ard...@gmail.comwrote: Hello. I have my schoolserver up and running (at last!). I want to connect to it from one of the XOs using SSH. I have read what is on the wiki, but I must be missing something. Can someone provide some detailed instructions? Thanks. Gerald Gerald: Though you're supposed to use keys, and I still do from my main desktop, it's convenient when you're sshing from multiple XOs or other computers to go ahead and enable password based ssh login. That way you don't have to fool with keys all the time. Since my XSs are exposed to the internet, I do run ssh on a non-standard port, which keeps out the script kiddies. If you're worried about that, it's really simple to change the port. Anyway, it's just a config file edit to allow password based ssh logins. As root, create a regular user on the XS. adduser gerald passwd gerald You'll be prompted for the new password. That's it for setting up a user. Enable password authentication in /etc/ssh/sshd_config and /etc/ssh/ sshd_config.in I think you're supposed to be able to edit only sshd_config and then run make -f /etc/xs-config.make sshd_config to do up sshd_config.in properly, but I just go ahead and make this minor change to both files, as I've never gotten xs-config.make to work consistently for me. In both those files, uncomment PasswordAuthentication yes and comment out PasswordAuthentication no so it looks like this: # To disable tunneled clear text passwords, change to no here! PasswordAuthentication yes #PermitEmptyPasswords no #PasswordAuthentication no Restart the ssh service. service sshd restart Now from an XO connected to the XS, you can ssh ger...@172.18.0.1 or ssh gerald@XS's hostname Enter in your password and you should be greeted with the motd! After you successfully ssh in, you can su root. Sometimes that's not root enough, though and you might have to 'sudo su -' if it says you can't do something. Anna Schoolfield Birmingham ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] Connecting the a Schoolserver via SSH
Anna, Thanks. I'll try this out tomorrow. I have another question for you. I was testing the server with about 12 XOs today. They all connected fine and had internet connections. But the performance seemed slow. It took several seconds for pages to load at times. Also, when I tried to have shared Activities (I opened a chat session, for example), the performance was horribly slow, and not every computer could connect. Do you have any ideas about why this might be happening and how to make it better? Thanks. Gerald On Tue, Dec 21, 2010 at 5:05 PM, Anna ascho...@gmail.com wrote: On Tue, Dec 21, 2010 at 8:20 AM, Dr. Gerald Ardito gerald.ard...@gmail.com wrote: Hello. I have my schoolserver up and running (at last!). I want to connect to it from one of the XOs using SSH. I have read what is on the wiki, but I must be missing something. Can someone provide some detailed instructions? Thanks. Gerald Gerald: Though you're supposed to use keys, and I still do from my main desktop, it's convenient when you're sshing from multiple XOs or other computers to go ahead and enable password based ssh login. That way you don't have to fool with keys all the time. Since my XSs are exposed to the internet, I do run ssh on a non-standard port, which keeps out the script kiddies. If you're worried about that, it's really simple to change the port. Anyway, it's just a config file edit to allow password based ssh logins. As root, create a regular user on the XS. adduser gerald passwd gerald You'll be prompted for the new password. That's it for setting up a user. Enable password authentication in /etc/ssh/sshd_config and /etc/ssh/ sshd_config.in I think you're supposed to be able to edit only sshd_config and then run make -f /etc/xs-config.make sshd_config to do up sshd_config.in properly, but I just go ahead and make this minor change to both files, as I've never gotten xs-config.make to work consistently for me. In both those files, uncomment PasswordAuthentication yes and comment out PasswordAuthentication no so it looks like this: # To disable tunneled clear text passwords, change to no here! PasswordAuthentication yes #PermitEmptyPasswords no #PasswordAuthentication no Restart the ssh service. service sshd restart Now from an XO connected to the XS, you can ssh ger...@172.18.0.1 or ssh gerald@XS's hostname Enter in your password and you should be greeted with the motd! After you successfully ssh in, you can su root. Sometimes that's not root enough, though and you might have to 'sudo su -' if it says you can't do something. Anna Schoolfield Birmingham ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel
Re: [Server-devel] Connecting the a Schoolserver via SSH
On Tue, Dec 21, 2010 at 5:09 PM, Dr. Gerald Ardito gerald.ard...@gmail.comwrote: Anna, Thanks. I'll try this out tomorrow. I have another question for you. I was testing the server with about 12 XOs today. They all connected fine and had internet connections. But the performance seemed slow. It took several seconds for pages to load at times. Also, when I tried to have shared Activities (I opened a chat session, for example), the performance was horribly slow, and not every computer could connect. Do you have any ideas about why this might be happening and how to make it better? Thanks. Gerald The slow page load in either Firefox or Browse is usually helped quite a bit by disabling ipv6. In a (recent) Browse activity or Firefox, enter about:config in the address bar. Type ipv6 in the filter bar. The Preference Name you're looking for is network.dns.disableIPv6. Double click it to set the value to true. That usually helps page load speed quite a bit. If activities seems really slow when they're shared over the XS versus the XO-1 mesh, I don't know what that might be other than the throughput of your AP. If you suspect your XS setup, you can always connect to my test XS 0.6 running a semi-public Jabber to see if there's a difference. In fact, we've just been testing joining the XO Chat activity with regular XMPP clients like Pidgin and Gajim. Send me a private email if you'd like the URL. And that goes for anyone who's interested, not just Gerald. Anna Schoolfield Birmingham ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel