• Home
  • Help
  • Search
  • Login
  • Register
Pages: 1 [2] 3 4 ... 6
Author Topic: The alternative Debian install method.  (Read 47575 times)
knireis
Jr. Member
**

Karma: 2
Posts: 88


View Profile
« Reply #15 on: November 04, 2009, 04:56:33 AM »

After it's run, and before you delete the debian build directory, can you open the passwd file and see if it's set it correctly?

ran it again but no luck, i'm not sure which file you mean?

The /etc/passwd file looks like this:

root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
bin:x:2:2:bin:/bin:/bin/sh
sys:x:3:3:sys:/dev:/bin/sh
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/bin/sh
man:x:6:12:man:/var/cache/man:/bin/sh
lp:x:7:7:lp:/var/spool/lpd:/bin/sh
mail:x:8:8:mail:/var/mail:/bin/sh
news:x:9:9:news:/var/spool/news:/bin/sh
uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
proxy:x:13:13:proxy:/bin:/bin/sh
www-data:x:33:33:www-data:/var/www:/bin/sh
backup:x:34:34:backup:/var/backups:/bin/sh
list:x:38:38:Mailing List Manager:/var/list:/bin/sh
irc:x:39:39:ircd:/var/run/ircd:/bin/sh
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
libuuid:x:100:101::/var/lib/libuuid:/bin/sh
Logged

mgillespie
Full Member
***

Karma: 7
Posts: 239



View Profile
« Reply #16 on: November 04, 2009, 09:53:54 AM »

you should be able to chroot in and try and login as root.

I'm a bit baffled as to whats happened, as it worked fine for me. using the exact same script.   Can you check it's not a problem with keyboard layouts.   Type your username as nosoup4u and see if it displays correctly (as a test)...
Logged

birdman
Sr. Member
****

Karma: 4
Posts: 440


View Profile WWW
« Reply #17 on: November 04, 2009, 05:39:15 PM »

Are you trying to login at the console or via the network?
Direct root login may only be allowed from the console?
Logged

knireis
Jr. Member
**

Karma: 2
Posts: 88


View Profile
« Reply #18 on: November 05, 2009, 01:44:26 AM »

you should be able to chroot in and try and login as root.

I'm a bit baffled as to whats happened, as it worked fine for me. using the exact same script.   Can you check it's not a problem with keyboard layouts.   Type your username as nosoup4u and see if it displays correctly (as a test)...


I don't know how to chroot in so didn't try that.
It is not a keyboard problem.
Maybe i'm not running the script in a correct way. I do get a 'not found' warning when it is started:

sheeva:/work# sh ./DebianSheeva1-02.sh
./DebianSheeva1-02.sh: 13: [[: not found
Reading package lists... Done
Building dependency tree...


@birdman: i think ssh is not included in the packages, so i try to connect via the serial connection
Logged

mgillespie
Full Member
***

Karma: 7
Posts: 239



View Profile
« Reply #19 on: November 05, 2009, 01:51:55 AM »

What OS and ARCH you building on?
Logged

knireis
Jr. Member
**

Karma: 2
Posts: 88


View Profile
« Reply #20 on: November 05, 2009, 02:01:39 AM »

What OS and ARCH you building on?

all on the sheeva with debian squeeze running from SD-card
Logged

mgillespie
Full Member
***

Karma: 7
Posts: 239



View Profile
« Reply #21 on: November 05, 2009, 02:04:37 AM »

Hmm, same here.  I'm building one now with the script, and logging it, i'll PM you the link to the log, and the rootfs.tar.gz if you want to try the freshly cooked one.
Logged

knireis
Jr. Member
**

Karma: 2
Posts: 88


View Profile
« Reply #22 on: November 05, 2009, 02:06:11 AM »

thanks
Logged

knireis
Jr. Member
**

Karma: 2
Posts: 88


View Profile
« Reply #23 on: November 05, 2009, 03:26:20 AM »

Is this a typo in the script?

# Change root passwd
echo "Setting root password to 'nosoup4u'"
echo -e "nosoup4u\nnosoup4u\n" | chroot ./debian/ /usr/bin/passwd root


I ran the original sheevainstaller 1.0 and installed ubuntu to nand. No problems here. Ran the script again on this OS and tried again but same story.
Logged

mgillespie
Full Member
***

Karma: 7
Posts: 239



View Profile
« Reply #24 on: November 05, 2009, 03:59:36 AM »

No, that's a carriage return escape character.
Logged

davall
Newbie
*

Karma: 0
Posts: 26


View Profile
« Reply #25 on: November 05, 2009, 04:39:48 AM »


I don't know how to chroot in so didn't try that.
It is not a keyboard problem.
Maybe i'm not running the script in a correct way. I do get a 'not found' warning when it is started:

sheeva:/work# sh ./DebianSheeva1-02.sh
./DebianSheeva1-02.sh: 13: [[: not found
Reading package lists... Done
Building dependency tree...


@birdman: i think ssh is not included in the packages, so i try to connect via the serial connection

Your problem seems to be that you start the script from /work.
Please do as root a <cd /> and then <sh ./DebianSheeva1-02.sh>
Then everything should be fine.
Logged

mgillespie
Full Member
***

Karma: 7
Posts: 239



View Profile
« Reply #26 on: November 05, 2009, 04:51:34 AM »

it should work from anywhere, everything now uses relative paths.  The only caveat is that the filesystem it's created on needs to be mounted to allow execution  (it's not too happy running on mounted USB keys etc).

if you want to build it on a USB key or something, make sure you mount the device with the following options:

Code:
mount -o dev,exec /dev/sda1 /myusb
« Last Edit: November 05, 2009, 04:53:59 AM by mgillespie » Logged

knireis
Jr. Member
**

Karma: 2
Posts: 88


View Profile
« Reply #27 on: November 05, 2009, 05:53:16 AM »

I build in on the internal nand of the sheeva, but no luck.
I tried again with the build.log enabled. In the log it says the passwd is set to nosoup4u but on the putty terminal i got following:

Code:
root@ubuntu:~# sh ./DebianSheeva1-02.sh > build.log
./DebianSheeva1-02.sh: 13: [[: not found
./DebianSheeva1-02.sh: 32: [[: not found
Enter new UNIX password: Retype new UNIX password: Sorry, passwords do not match
passwd: Authentication token manipulation error
passwd: password unchanged

What would be the original (bootstrapped) root passwd?
Logged

mgillespie
Full Member
***

Karma: 7
Posts: 239



View Profile
« Reply #28 on: November 05, 2009, 12:48:25 PM »

If you want to download a pre-compiled Debian Squeeze rootfs.tar.gz then I have uploaded a freshly compiled one here:

http://www.mediafire.com/?nwzlyvmjzlf
Logged

birdman
Sr. Member
****

Karma: 4
Posts: 440


View Profile WWW
« Reply #29 on: November 05, 2009, 01:35:36 PM »

Maybe i'm not running the script in a correct way. I do get a 'not found' warning when it is started:

sheeva:/work# sh ./DebianSheeva1-02.sh
./DebianSheeva1-02.sh: 13: [[: not found
Reading package lists... Done
Building dependency tree...
That looks like someone using ksh (POSIX??) syntax in Bourne shell.  But bash knows about [[...]], and sh is bash on Linux, so.....
Logged

Pages: 1 [2] 3 4 ... 6
Print
Jump to: