Reply
Thread Tools
Posts: 36 | Thanked: 2 times | Joined on Jan 2008
#11
Originally Posted by Milhouse View Post
The OP never mentioned it, so I asked. Maybe I shouldn't have bothered...
Not a problem. I didn't think your comment was condescending, but in fact it confirmed to me that I was doing it correctly. Some descending is in order as I did mention that I'd had the unit only a week, that implies I may not be familiar with it's operation.

[Middle English condescenden, from Old French condescendre, from Late Latin condēscendere : Latin com-, intensive pref.; see com- + dēscendere, to descend; see descend.]
__________________
Nokia N800 with OS2008
 
Posts: 373 | Thanked: 56 times | Joined on Dec 2005 @ Ottawa, ON
#12
Originally Posted by Milhouse View Post
Flashing usually works whether you hold the Home button or not, but it's one of those things which people can overlook so is worth asking. If you hold the Home button it will go to flash mode whether it's connected to a computer or not (or will wait longer for a computer to "appear") - if you don't hold the button it will only go to flash mode if it's connected to a computer. Or something like that - holding the button can make a crucial difference.
Confirmed ... I have never had to hold down the home key to flash. I just have my tablet off, plug in the usb cable, start the flasher, it says it is waiting for the tablet, turn the tablet on and, presto, it starts to flash.

Like you said, the home key hold just forces it into that mode if your flasher isn't running.

Nokia is probably correct to suggest you send your tablet in for warranty even if you have been messing with sudoers as I can't see anything you could possibly do to sudoers file that would prevent reflashing of the firmware. Most likely a hardware failure.

Hope you get a replacement soon and it doesn't get caught in tablet limbo like some of the horror stories I have read here. You might do some searching of the forums to find the proper service place to send it.
 
Posts: 36 | Thanked: 2 times | Joined on Jan 2008
#13
Well, I sent it off today. When I tried to reload the firmware yesterday I had it connected to a USB port on my computer, but not the same port I used for the first firmware flash. The first time I flashed it using a USB 1.1 port which is built-in to my notebook computer. For this last attempt, I used a USB 2.0 PCMCIA card inserted into a PCMCIA slot. If the USB 2.0 PCMCIA card was somehow incompatible with the N800, or incompatible with Nokia's flash program, then the N800 would not have entered the firmware upload mode, which is of course what was observed. I should have tried it with the USB connected to the older USB 1.1 port that worked for the first flash operation, but of course I was following Nokia's flashing instructions which failed to mention that the firmware upload mode was entered by powering on while connected to a computer's USB port, and that holding Swap key was superfluous.

It will be interesting when the N800 comes back to me. I will check it out with both my USB 1.1 and 2.0 ports. If it won't go into flash mode while connected to my USB 2.0 PCMCIA card that would indicate that I need not have sent it off for warranty service.
 
Posts: 10 | Thanked: 0 times | Joined on Mar 2008
#14
I'm pretty new here, but I thought I throw in my $0.02 at this problem (the sudoers problem that is, not the booting), since I have had it as well. I'm not too well at home in the N800's OS yet, but I've got my share of Linux experience and certs so here goes:

What I think the problem is, is that the N800 uses a passwordless sudo command sometime during the boot sequence, possibly at more than one point. What a lot of desktop Linux distro's do is place an item like

%wheel ALL = (ALL) ALL

in the sudoers file. It is very tempting to put such an entry in the sudoers on the N800. That way, you can log in and execute commands as root fairly securely. The last matching entry for a user in sudoers is used by sudo, so effectively, this means I can now execute all programs as root, but I need to *always* enter a password.

And there is your problem: during boot, the N800 needs to be able to execute some stuff by sudo *without a password*. But since we just overrode this by putting '%users ALL = (ALL) ALL' at the bottom of the sudoers file, sudo is now waiting for our input during boot, which will never arrive

Someone opted earlier that the permissions on the sudoers file might have been wrong or that the syntax was faulty. visudo is supposed to protect you from both and afaik does a pretty good job at it. I don't think any of these options were part of the problem here.

Anyway, I reckon that putting the entry at the top of the sudoers file would be safe, but I haven't tested this. Hope this helps some of you and hope it saves you from flashing your device 17.000 times during the first days you own it ;-)

And that just leaves me, with all my certifications, bashing my head against the wall for being such an a**e for taking so long to solve this
 
Posts: 36 | Thanked: 2 times | Joined on Jan 2008
#15
Hi wzzrd,

Thanks for the insight into what was most likely happening. I just want to be able to use su to become root as I normally do in my desktop Linux. I maintain a Linux repository and am pretty good with rsync, but other than that my Linux knowledge is limited. Do you think you could come up with an N800 sudoers file that will do the trick?
__________________
Nokia N800 with OS2008
 
Posts: 10 | Thanked: 0 times | Joined on Mar 2008
#16
I'll give it a shot today. Hope I don't end up flashing the device. Again.

If it works, I'll let you know.

By the way, personally, I would go for using sudo whenever possible and refrain from working as root, but that's a choice you have to make for yourself.

If this won't work, you can install openssh, create an ssh key, and enable login with that key as root. Than you create an alias for the user account like:

alias beroot='ssh root@localhost'

That should do the trick as well. But: I need the sudoers file as well, so I'll get back to you.
 
Posts: 10 | Thanked: 0 times | Joined on Mar 2008
#17
As i thought: it works for me with

user ALL = (ALL) ALL

at the *top* of /etc/sudoers. After reboot I can still use the device :-)

beware though! ymmv!
 
Posts: 36 | Thanked: 2 times | Joined on Jan 2008
#18
In the beginning I was trying to run a WiFi scanning program that needs to be root in order to display full data, that's how I got into the sudoers problem. I had in fact set up ssh access (using a key pair) from user to root account and it worked, but thought it would be using CPU time to encrypt the data between root and user so I tried the sudoers method. I have now received my N800 back from warranty repair and will have some time to work with it again within the next week.

So you took the 2008 OS factory sudoers and added
user ALL = (ALL) ALL
at the top? I just want to make sure I do it exactly as you did. If I have
user ALL = (ALL) ALL
at top of my sudoers, is there any reason to leave the remaining lines in the sudoers?
__________________
Nokia N800 with OS2008

Last edited by LinuxStation; 2008-03-13 at 15:23.
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#19
Originally Posted by LinuxStation View Post
is there any reason to leave the remaining lines in the sudoers?
I don't think there is but it doesn't hurt to have them there.

BTW: you should install openssh. I once locked myself out of sudo and ssh saved my ***.
 
Posts: 10 | Thanked: 0 times | Joined on Mar 2008
#20
Originally Posted by LinuxStation View Post
In the beginning I was trying to run a WiFi scanning program that needs to be root in order to display full data, that's how I got into the sudoers problem. I had in fact set up ssh access (using a key pair) from user to root account and it worked, but thought it would be using CPU time to encrypt the data between root and user so I tried the sudoers method. I have now received my N800 back from warranty repair and will have some time to work with it again within the next week.

So you took the 2008 OS factory sudoers and added
user ALL = (ALL) ALL
at the top? I just want to make sure I do it exactly as you did. If I have
user ALL = (ALL) ALL
at top of my sudoers, is there any reason to leave the remaining lines in the sudoers?
To start with the last: yes, the rest of the sudoers file is there with a reason. Leave it there! I cannot stress this enough: do not remove the other lines, just add the one line as the very first. If you remove other lines, you might render the device unbootable.

Second: yes, an ssh connection will put some (minor) burden on the cpu.

Third: Please, if you have important data on your n800, make a backup before toying with your sudoers file: I cannot guarantee that it will not break your os, forcing you to reflash...

Good luck. ;-)
 
Reply


 
Forum Jump


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