*** L29Ah has left #maemo | 00:04 | |
*** tryagain has quit IRC | 00:08 | |
*** L29Ah has joined #maemo | 00:09 | |
*** L29Ah has left #maemo | 01:03 | |
*** L29Ah has joined #maemo | 01:35 | |
Enrico_Menotti | Ok, I realised I wasn't really using mainline kernel, but a particular branch devoted to the N900, on kernel.org. This didn't work with the rx51_defconfig (I could compile, but the zImage did not boot). | 01:44 |
---|---|---|
Enrico_Menotti | So now I cloned the stable kernel, and checked out Linux-4.10.8. I tried to make both the n900.config and the omap2plus_defconfig, but neither works: I get Makefile:539: arch/arm/Makefile: No such file or directory. | 01:45 |
Enrico_Menotti | So seems there is no Makefile for arm?!? | 01:46 |
KotCzarny | why dont just use pali's tree? | 02:00 |
*** ssvb has joined #maemo | 02:02 | |
Enrico_Menotti | No particular reason. I just thought I could try with mainline, since it seems there is now support for the N900. | 02:10 |
Enrico_Menotti | In any case, I think there has been something wrong in my checkout command. It didn't check out all files, I think. | 02:10 |
*** infobot has joined #maemo | 02:19 | |
*** drrrz has joined #maemo | 02:23 | |
Wizzup | Enrico_Menotti: are you compiling on arm? | 02:24 |
Wizzup | cross compilers? build tools installed? etc | 02:24 |
Enrico_Menotti | The issue I get now seems to be related to git. I don't get what happens in a particular situation I'm dealing with. | 02:25 |
Enrico_Menotti | Let me explain. | 02:25 |
Enrico_Menotti | I am compiling on a PC (Intel based) running Debian. It's an old laptop, so memory is limited, speed is limited, Internet access also,... | 02:26 |
Enrico_Menotti | So I cloned the .git repository on my Mac, which was easy. | 02:26 |
*** drrz has quit IRC | 02:26 | |
*** dafox has joined #maemo | 02:26 | |
Enrico_Menotti | Then I checked out files to a different directory from the one where I cloned the repository, just to separate them from the archives. | 02:27 |
Enrico_Menotti | This made me able to compress just the needed files (the ones for the branch I am considering) in order to transfer them quickly to the other computer. | 02:27 |
Enrico_Menotti | Probably in the process of checking out I missed something. | 02:27 |
Enrico_Menotti | In particular, I am following what is explained here: http://stackoverflow.com/questions/4479960/git-checkout-to-a-specific-folder. | 02:28 |
Wizzup | This might not be the easiest/best task to start withl | 02:28 |
Wizzup | I think the devuan img contains mainline, does it not? | 02:29 |
Enrico_Menotti | The Devuan image seems to come from mainline kernel, yes. | 02:30 |
Enrico_Menotti | But I have already been able to boot that one. Now I wanted to compile my own kernel. | 02:30 |
Wizzup | Have you ever done that before? | 02:33 |
Wizzup | If you're going to cross compile a kernel, which this seems like, it might not be the best first step. Sorry if I am making the wrong assumptions. | 02:33 |
Enrico_Menotti | I have been able to compile and boot Android's kernel for the emulator. | 02:33 |
Wizzup | I see | 02:33 |
Wizzup | In my experience the painful part is forgetting certain modules - like the platform watchdog - not so much the kernel compile | 02:34 |
Wizzup | that's really just cross compile setup, make bla_defconfig and go | 02:34 |
Enrico_Menotti | For a moment, I'd like to understand what happened with git. I tried "git --work-tree=<myoutputdir> checkout <mybranch>". This checked out only part of the files. Why? | 02:35 |
*** drrrz has quit IRC | 02:36 | |
Enrico_Menotti | And on the answer I linked at (stackoverflow), the command is "git --work-tree=... checkout ... -- .". Why is the period at the end needed? | 02:36 |
Wizzup | If you're trying to check out a tag, simply issuing 'git checkout <tagname>' should be enough in simple cases. | 02:37 |
Wizzup | I am not sure why you're using --work-tree instead of just git from the dir, but that's fine I guess | 02:38 |
Wizzup | Only the files that are tracked will be checked out. | 02:38 |
Wizzup | time to sleep. | 02:38 |
Enrico_Menotti | Ok, good night. I should go to sleep as well. | 02:39 |
*** Pali has quit IRC | 02:46 | |
*** dafox has quit IRC | 02:52 | |
*** auenfx4 has joined #maemo | 03:02 | |
*** auenf has quit IRC | 03:03 | |
*** dreamer has quit IRC | 03:09 | |
*** infobot has quit IRC | 03:22 | |
*** infobot has joined #maemo | 03:27 | |
*** infobot has quit IRC | 03:30 | |
*** infobot has joined #maemo | 03:31 | |
*** infobot has quit IRC | 03:33 | |
*** infobot has joined #maemo | 03:34 | |
*** cyphase has quit IRC | 03:56 | |
*** L29Ah has left #maemo | 04:04 | |
*** L29Ah has joined #maemo | 04:05 | |
*** auenf has joined #maemo | 04:32 | |
*** auenfx4 has quit IRC | 04:32 | |
*** jon_y_ has joined #maemo | 05:54 | |
*** jon_y has quit IRC | 05:55 | |
*** jon_y_ is now known as jon_y | 05:56 | |
*** cyphase has joined #maemo | 06:23 | |
*** pagurus has quit IRC | 06:38 | |
*** pagurus has joined #maemo | 06:39 | |
*** pagurus has quit IRC | 06:41 | |
*** pagurus has joined #maemo | 06:41 | |
*** pagurus has quit IRC | 06:42 | |
*** pagurus has joined #maemo | 06:42 | |
*** pagurus has joined #maemo | 06:44 | |
*** pagurus has quit IRC | 06:45 | |
*** pagurus has joined #maemo | 06:45 | |
*** pagurus has quit IRC | 06:47 | |
*** pagurus has joined #maemo | 06:47 | |
*** pagurus has joined #maemo | 06:48 | |
*** cyteen has quit IRC | 07:02 | |
*** cyteen has joined #maemo | 07:02 | |
*** sunshavi has quit IRC | 07:21 | |
*** DocScrutinizer05 has quit IRC | 07:51 | |
*** DocScrutinizer05 has joined #maemo | 07:51 | |
*** Zungo has quit IRC | 08:24 | |
*** Zungo has joined #maemo | 08:25 | |
*** infobot has quit IRC | 08:30 | |
*** infobot has joined #maemo | 08:36 | |
*** KotCzarny has quit IRC | 10:04 | |
*** KotCzarny has joined #maemo | 10:09 | |
*** Pali has joined #maemo | 10:13 | |
*** platicus1 has joined #maemo | 10:49 | |
*** tanty1 has joined #maemo | 10:49 | |
*** KotCzarny has quit IRC | 11:11 | |
*** KotCzarny has joined #maemo | 11:22 | |
*** KotCzarny has quit IRC | 11:39 | |
*** KotCzarny has joined #maemo | 11:40 | |
*** KotCzarny has quit IRC | 12:10 | |
*** KotCzarny has joined #maemo | 12:12 | |
Enrico_Menotti | I am sure I used mainline kernel. rx51_defconfig from Pali's repository at github. Compiles, but doesn't boot. I didn't get how to use the n900.config from parazyd. Now I'll try cloning Pali's repository and using that. Maybe I'm doing something wrong in the build process. | 12:48 |
parazyd | you probably are | 12:48 |
parazyd | what toolchain are you using and where are you compiling? | 12:48 |
Enrico_Menotti | I'm compiling on Debian. | 12:49 |
Enrico_Menotti | I'm using the arm-linux-gnueabihf toolchain. | 12:49 |
parazyd | and what's your make command? | 12:49 |
Enrico_Menotti | make rx51_defconfig and then make zImage (with or without the -j4 option). | 12:50 |
Enrico_Menotti | By the way, how to use the n900.config? | 12:50 |
parazyd | you just put it in the root of the sources | 12:50 |
parazyd | name it ".config" | 12:50 |
Enrico_Menotti | Ah, ok. | 12:50 |
Enrico_Menotti | So no make n900.config. | 12:51 |
parazyd | just copy it to .config | 12:51 |
Enrico_Menotti | I will try with that. | 12:51 |
parazyd | then a `make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage modules omap3-n900.dtb` should do the trick | 12:52 |
parazyd | when done: cat arch/arm/boot/zImage arch/arm/boot/dts/omap3-n900.dtb > zImage | 12:52 |
parazyd | ^^ that's your kernel | 12:52 |
parazyd | you also need to install the according kernel modules to the sd card/image you will be using | 12:53 |
*** shentey has joined #maemo | 12:54 | |
parazyd | which would be: make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=/path/to/n900/rootfs INSTALL_MOD_STRIP=1 modules_install | 12:54 |
Enrico_Menotti | What's INSTALL_MOD_STRIP? | 12:54 |
parazyd | oh, and to make a uImage out of the zImage: mkimage -A arm -O linux -T kernel -C none -a 80008000 -e 80008000 -n zImage -d zImage uImage | 12:54 |
Enrico_Menotti | Ok, I'm not using u-boot. | 12:55 |
parazyd | Enrico_Menotti: it strips debugging symbols, you may or may not want that | 12:55 |
Enrico_Menotti | Ok. So maybe my problem is that I was missing the dtb. | 12:55 |
parazyd | and after the modules_install, i also do a firmware_install in the same manner | 12:55 |
Enrico_Menotti | What does the firmware_install do? | 12:58 |
Enrico_Menotti | Ok, I was actually missing the dtb. Now signs of life. (The kernel boots and it's a bit verbose). | 13:09 |
Enrico_Menotti | Now I will try to boot the file system. | 13:09 |
*** geaaru has joined #maemo | 13:10 | |
*** xy2_ has joined #maemo | 13:23 | |
Enrico_Menotti | I tried to boot the Devuan image I had already booted on Sunday. It says, as it did on Sunday, that it can't mount selinuxfs. But on Sunday after a while I got a prompt. Now it's rebooting. Maybe the kernel I compiled does not match that system image. | 13:28 |
kerio | should i buy another microsd | 13:35 |
kerio | there's pretty good ones for cheap nowadays | 13:35 |
*** dingen has joined #maemo | 13:55 | |
*** dingen is now known as dreamer | 13:59 | |
*** dreamer has joined #maemo | 14:00 | |
*** mavhc has quit IRC | 14:08 | |
*** mavhc has joined #maemo | 14:09 | |
freemangordon | Enrico_Menotti: did you compile and append dtb? | 14:22 |
Enrico_Menotti | Yes, I did. | 14:22 |
freemangordon | ah, just saw it in the backscroll | 14:23 |
freemangordon | you have to copy modules to /lib/modules as well | 14:23 |
Enrico_Menotti | Or install them by make? | 14:23 |
freemangordon | after installing with make, copy the resulting directory | 14:24 |
Enrico_Menotti | Ah ok. Right. | 14:24 |
freemangordon | or yeah, use what parazyd toldya | 14:25 |
Enrico_Menotti | Now my problem is: the file system I have for Devuan is ext4, so I can't mount it. I am thinking about trying with the Debian fs which I had debootstrapped some days ago. I already used dd to put it on sd card. | 14:26 |
Enrico_Menotti | Now I was trying to let Maemo detect the changes in the sd card partition tables without opening the back cover. I found there is a "partprobe" command, but for that I need to install "parted". Is this available for maemo? | 14:27 |
freemangordon | Enrico_Menotti: doesn't the PC you build on have USB ports? | 14:27 |
Enrico_Menotti | Yes, usb. Are you thinking about going to mass storage mode, etc.? | 14:28 |
freemangordon | yes | 14:28 |
Enrico_Menotti | Ok, that's another option. | 14:28 |
Enrico_Menotti | But anyway, is there parted for Maemo? | 14:28 |
freemangordon | no idea | 14:29 |
freemangordon | there is sfdisk, I think you can command it to re-read partition table | 14:29 |
Enrico_Menotti | Ok, let me check. | 14:29 |
Enrico_Menotti | sfdisk -R <device> | 14:38 |
Enrico_Menotti | This works. | 14:38 |
*** pagurus has joined #maemo | 14:39 | |
*** pagurus has joined #maemo | 14:39 | |
*** pagurus has quit IRC | 14:41 | |
*** pagurus has joined #maemo | 14:41 | |
*** pagurus has quit IRC | 14:42 | |
*** pagurus has joined #maemo | 14:42 | |
*** pagurus has joined #maemo | 14:44 | |
Enrico_Menotti | I can't believe. I have a prompt from Debian. It's very unstable - after a while it reboots. But I am already quite happy. | 14:45 |
*** xy2_ has quit IRC | 15:02 | |
*** dafox has joined #maemo | 15:13 | |
DocScrutinizer05 | there are a few watchdogs to tickle | 15:14 |
DocScrutinizer05 | others wake (silly!!), kick (ouch!) or pet them | 15:16 |
*** dafox has quit IRC | 15:19 | |
*** eMHa has quit IRC | 15:24 | |
*** sunshavi has joined #maemo | 15:28 | |
Enrico_Menotti | These watchdogs are in the modules, right? | 15:35 |
Zungo | Hmmm | 15:39 |
*** vahe has joined #maemo | 15:42 | |
*** eMHa has joined #maemo | 16:11 | |
DocScrutinizer05 | modules? | 16:36 |
DocScrutinizer05 | I think one is a software watchdog in CPU, one is in TWL4030 companion chip, and one is in modem | 16:37 |
DocScrutinizer05 | I'm speculating here | 16:37 |
*** jon_y_ has joined #maemo | 16:40 | |
*** jon_y has quit IRC | 16:41 | |
*** jon_y_ is now known as jon_y | 16:41 | |
Enrico_Menotti | Anyway, I built and installed modules, and now the login is stable. However, I don't know username and password... I will look into the file system. :) | 16:52 |
*** xy2_ has joined #maemo | 16:58 | |
Enrico_Menotti | I am unable to login. It doesn't accept "root" as a username. It accepts both "user" and "debian", but I don't know the passwords. Also, in /etc/passwd in the rootfs "root" is listed but "user" and "debian" not. ??? | 17:09 |
*** shentey has quit IRC | 17:29 | |
*** shentey has joined #maemo | 17:47 | |
Wizzup | Enrico_Menotti: devuan? uses 'root' and 'toor' as pass | 18:03 |
*** eMHa has quit IRC | 18:09 | |
Enrico_Menotti | Not Devuan, Debian. From the /etc/passwd file, seems only root is enabled as a user. But if I try with "root" as username, I'm not even allowed to enter a password. | 18:16 |
Zungo | Enrico_Menotti: root is by default passwordless you need to change its password | 18:34 |
Zungo | Wizzup: ^ | 18:35 |
Zungo | even in devuan iirc | 18:35 |
kerio | it depends on the installer i think | 18:41 |
kerio | if you don't create a user, you are asked a root password | 18:41 |
Zungo | yeah | 18:48 |
Zungo | what if no installer? | 18:48 |
Zungo | this is similar to skipping oobe in windows | 18:48 |
kerio | init=/bin/sh and passwd? | 18:52 |
kerio | hell, init=/bin/passwd | 18:52 |
Zungo | interesting | 19:03 |
KotCzarny | Out Of Body Experience? | 19:11 |
KotCzarny | windoze can do that ? o.O | 19:11 |
Zungo | :/ | 19:14 |
kerio | hayyyyy | 19:21 |
*** platicus1 has quit IRC | 19:33 | |
*** tanty1 has quit IRC | 19:33 | |
*** tanty1 has joined #maemo | 19:34 | |
*** platicus1 has joined #maemo | 19:34 | |
*** shentey has quit IRC | 19:37 | |
DocScrutinizer05 | ~#devuan root | 19:53 |
DocScrutinizer05 | ~#devuan login | 19:53 |
DocScrutinizer05 | ~listkeys #devuan | 19:53 |
infobot | Factoid search of '#devuan' by key (13 of 18): #devuan ml ;; #devuan systemd #DEL# ;; #devuan dng ;; #devuan xy #DEL# ;; #devuan bugtracker ;; #devuan samba ;; #devuan nm ;; #devuan non-systemd versions ;; #devuan beta2 ;; #devuan systemd popularity ;; #devuan mirrors ;; #devuan qemu ;; #devuan attentionchar #DEL#. | 19:53 |
DocScrutinizer05 | ~listkeys #devuan | 19:54 |
infobot | Factoid search of '#devuan' by key (13 of 18): #devuan systemd #DEL# ;; #devuan owner ;; #devuan attentionchar #DEL# ;; #devuan samba ;; #devuan beta2 ;; #devuan ml ;; #devuan migrate instructions ;; #devuan network manager ;; #devuan non-systemd versions ;; #devuan dng ;; #devuan raspi login ;; #devuan xy #DEL# ;; #devuan bugtracker. | 19:54 |
DocScrutinizer05 | ~#devuan raspi login | 19:54 |
infobot | well, #devuan raspi login is pw toor https://botbot.me/freenode/devuan/2016-05-03/?msg=65351755&page=3 | 19:54 |
DocScrutinizer05 | root, toor | 19:55 |
DocScrutinizer05 | Enrico_Menotti: | 19:55 |
Enrico_Menotti | Debian, not Devuan. | 19:55 |
DocScrutinizer05 | ooh | 19:55 |
DocScrutinizer05 | nfc | 19:55 |
DocScrutinizer05 | and Wizzup alread had that | 19:55 |
* DocScrutinizer05 trolls out | 19:56 | |
*** Pali has quit IRC | 19:56 | |
DocScrutinizer05 | >><kerio> hell, init=/bin/passwd<< smaaaart :-D | 19:57 |
Enrico_Menotti | Ok, it seems root is disabled. If I enter it as username, I get refused. Anyway, I didn't get this init=/bin/passwd. May you explain? | 19:59 |
DocScrutinizer05 | in bootloader, replace init=$WHATEVER by init=/bin/passwd | 19:59 |
kerio | don't | 20:00 |
DocScrutinizer05 | or by init=/bin/sh if you feel less venturous | 20:00 |
kerio | replace it with init=/bin/sh | 20:00 |
kerio | or perhaps find a thing in your bootloader that says "single user mode" | 20:01 |
DocScrutinizer05 | which is basically the same | 20:01 |
Enrico_Menotti | Ok, so if I say init=/bin/sh it should go directly to the shell, right? And what if init=/bin/passwd? | 20:02 |
DocScrutinizer05 | then you explore something new that is likely to fail | 20:02 |
Enrico_Menotti | Ah. | 20:03 |
DocScrutinizer05 | and you have only one try since passwd isn't meant to accept multi line input | 20:03 |
DocScrutinizer05 | init= just tells kernel which program to start as pid1 | 20:04 |
DocScrutinizer05 | could be anything | 20:04 |
DocScrutinizer05 | even fdisk ;-P | 20:04 |
DocScrutinizer05 | though i'm not sure how you pass cmdline parameters/options to that command | 20:05 |
DocScrutinizer05 | which might be why passwd fails | 20:05 |
kerio | well, passwd's default behaviour is to set the root password | 20:05 |
DocScrutinizer05 | :nod: but I wasn't sure | 20:06 |
DocScrutinizer05 | actually the default behavior is to set the $user password | 20:06 |
DocScrutinizer05 | afaik | 20:07 |
DocScrutinizer05 | kernel environment I'm not sure which is $USER / EUID(), but prolly should be 0/root | 20:08 |
DocScrutinizer05 | then you of course want to make sure your root fs is mounted | 20:08 |
Enrico_Menotti | "sh: can't access tty: job control turned off" | 20:09 |
DocScrutinizer05 | will prolly fail when this gets done in an initrd, eh? | 20:09 |
DocScrutinizer05 | hmm yeah, ouch | 20:09 |
DocScrutinizer05 | where is your image? | 20:10 |
Enrico_Menotti | The rootfs? | 20:10 |
DocScrutinizer05 | yep | 20:10 |
Enrico_Menotti | sd card | 20:10 |
DocScrutinizer05 | so why don't you copy over the etc/paswd from another machine? | 20:11 |
Enrico_Menotti | I had a look at the etc/passwd. Seems there is root, with encrypted password. But Debian doesn't allow me to enter the password. As soon as I enter the user, I get refused. | 20:11 |
DocScrutinizer05 | well, razher use passwd command with parameter to point to the uSD etc/passwd | 20:11 |
Enrico_Menotti | ? | 20:12 |
*** Pali has joined #maemo | 20:14 | |
DocScrutinizer05 | -R, --root CHROOT_DIR | 20:14 |
DocScrutinizer05 | Apply changes in the CHROOT_DIR directory and use the configuration files from the CHROOT_DIR directory. | 20:14 |
DocScrutinizer05 | so if there's /mnt/myuSD/etc/passwd the you invoke `passwd -R /mnt/myuSD root` | 20:16 |
DocScrutinizer05 | >> Regardless of whether shadow passwords are used, many system administrators use an asterisk (*) in the encrypted password field to make sure that this user can not authenticate him- or herself using a password. (But see NOTES below.)<< | 20:18 |
DocScrutinizer05 | are you sure it's not asking for the root password already? *Not* for the username | 20:19 |
Enrico_Menotti | Well, what it says is "login"... | 20:19 |
DocScrutinizer05 | hmm yeah, user name | 20:20 |
Enrico_Menotti | If I enter anything different from "root", then asks for a pass, but refuses to log in. | 20:20 |
DocScrutinizer05 | it seems pretty weird when it doesn't accept root there | 20:20 |
Enrico_Menotti | I'd think root is disabled. | 20:20 |
DocScrutinizer05 | I'd think maybe the shell set for root in passwd is blowing chunks? but also makes no sense since it first had to ask for password | 20:22 |
DocScrutinizer05 | maybe PAM or the crypt() lib is defect | 20:23 |
DocScrutinizer05 | could you paste the passwd file root record? | 20:24 |
Enrico_Menotti | Yes, but it's simple. There's just an "x" in place of the password. | 20:24 |
Enrico_Menotti | As far as I've been able to find, this means the password is encrypted somewhere else, right? | 20:25 |
*** jon_y has quit IRC | 20:25 | |
Enrico_Menotti | root:x:0:0:root:/root:/bin/bash | 20:25 |
DocScrutinizer05 | BWAHAHA | 20:26 |
*** shentey has joined #maemo | 20:27 | |
DocScrutinizer05 | yeah, might mean it's in etc/shadow | 20:27 |
*** jon_y has joined #maemo | 20:27 | |
DocScrutinizer05 | password This is either the encrypted user password, an asterisk (*), or the letter 'x'. (See pwconv(8) for an explanation of 'x'.) | 20:27 |
Enrico_Menotti | Let me have a look at /etc/shadow. | 20:28 |
Enrico_Menotti | root:*:17254:0:99999:7::: | 20:32 |
Enrico_Menotti | Here it is. The "*" means "no login". | 20:32 |
Enrico_Menotti | I will delete the "x" in /etc/passwd. It should allow login without password. | 20:32 |
*** vahe has quit IRC | 20:34 | |
DocScrutinizer05 | really? | 20:37 |
Enrico_Menotti | No doesn't work. I was reading here: https://www.debian.org/doc/manuals/debian-reference/ch04.en.html. There is a table saying "(empty): passwordless account", but doesn't work. I will try to set a password in clean. | 20:39 |
DocScrutinizer05 | The pwunconv command creates passwd from passwd and shadow and then removes shadow. | 20:39 |
Enrico_Menotti | Ok. | 20:41 |
Sicelo | where did the image come from? | 20:44 |
Enrico_Menotti | No way. Still doesn't allow me to insert a passwd. | 20:45 |
Enrico_Menotti | The image has been bootstrapped by me on a Debian system. | 20:45 |
Enrico_Menotti | (Cross-bootstrapped.) | 20:46 |
*** shentey has quit IRC | 20:47 | |
KotCzarny | you seem to self inflict troubles on yourself | 20:47 |
Enrico_Menotti | KotCzarny Well, my goal is to learn how to build kernel and system image, not just boot them... | 20:50 |
*** geaaru has quit IRC | 20:50 | |
Sicelo | can you sudo with user? | 20:51 |
KotCzarny | just run with init=/bin/bash and use passwd to set one | 20:52 |
KotCzarny | or clone entry from pc | 20:52 |
Sicelo | seems he's already done that with no success .. (unless i misread) | 20:52 |
KotCzarny | then he has messed pam probably | 20:53 |
DocScrutinizer05 | hmm? | 20:53 |
KotCzarny | or login shells | 20:54 |
KotCzarny | accessing /var/log/messages could help | 20:58 |
DocScrutinizer05 | Enrico_Menotti: copy a /etc/passwd and /etc/shadow from your linux PC, make sure the shell (last parameter after last : ) is actually existing in target system, and in /etc/shells | 20:59 |
Enrico_Menotti | I tried to change the username for root. Doesn't work. When I use this new username, it doesn't allow me to enter a password. Looks like root privileges are disabled?!? | 21:01 |
DocScrutinizer05 | heck, first time I lost my root password, I edited etc/passwd with a disk editor inder windows (dualboot system) and changed the UID to 0. Worked ;-P | 21:01 |
DocScrutinizer05 | root privileges disabled? what the heck are you talking about? | 21:02 |
Enrico_Menotti | In fact - it's just an idea. I mean, it seems whenever I try to login as user "0" of group "0" it refuses it. | 21:04 |
DocScrutinizer05 | no, whenever you try to login, it breaks | 21:04 |
DocScrutinizer05 | you didn't even try with anything else than UID 0 | 21:05 |
Enrico_Menotti | I will now. | 21:05 |
DocScrutinizer05 | Enrico_Menotti: copy a /etc/passwd and /etc/shadow from your linux PC, make sure the shell (last parameter after last : ) is actually existing in target system, and in /etc/shells | 21:05 |
Enrico_Menotti | Ok, a minute. | 21:06 |
DocScrutinizer05 | id4eally make it /bin/sh | 21:06 |
DocScrutinizer05 | this should always be there and be allowed by etc/shells | 21:07 |
DocScrutinizer05 | also check /etc/login.defs | 21:08 |
DocScrutinizer05 | and man passwd | 21:08 |
DocScrutinizer05 | man login.defs: | 21:10 |
DocScrutinizer05 | DEFAULT_HOME (boolean) | 21:10 |
DocScrutinizer05 | Indicate if login is allowed if we can't cd to the home directory. Default is no. | 21:10 |
*** eMHa has joined #maemo | 21:14 | |
*** shentey has joined #maemo | 21:31 | |
*** L29Ah has left #maemo | 21:42 | |
Enrico_Menotti | Ok, copied /etc/passwd and /etc/shadow. I've been able to login as std user. Now I cannot switch to root since I don't have numbers working, and my root password is numeric... | 21:43 |
Zungo | ouch | 21:43 |
Zungo | what about sudo? | 21:43 |
Enrico_Menotti | Let's try. | 21:43 |
Enrico_Menotti | No, command not found. Probably it's available only to root. May it be? | 21:44 |
Zungo | Enrico_Menotti: do not try to change anything related to root. | 21:44 |
Zungo | it should be username root with uid 0 | 21:44 |
Zungo | period | 21:44 |
Zungo | Check /etc/shells, ls /bin | 21:45 |
Enrico_Menotti | Ok, now I'm logging in, the problem is the password for root. | 21:45 |
Zungo | Change it in your linux pc then? | 21:45 |
Zungo | :/ | 21:45 |
Zungo | or get your layout fixed | 21:46 |
Zungo | keyboard layout | 21:46 |
Enrico_Menotti | ...which would be the right solution. | 21:46 |
Zungo | outside of the system | 21:47 |
Zungo | externally* | 21:47 |
Zungo | probably you should configure autologin as root | 21:47 |
Enrico_Menotti | So next steps: 1. Turning on the backlight (!). 2. Fix keyboard layout. 3. Allow power button to shutdown (!). | 21:48 |
Zungo | for 3: enable power management/acpi/apm? | 21:49 |
*** L29Ah has joined #maemo | 21:49 | |
Zungo | yeah you can do everything without the system running Enrico_Menotti | 21:50 |
Zungo | those steps | 21:50 |
Enrico_Menotti | Do you think I have to debootstrap again, or is it possible to modify something in the file system? | 21:51 |
*** N-Mi has quit IRC | 21:56 | |
*** L29Ah has quit IRC | 21:56 | |
*** N-Mi has joined #maemo | 21:58 | |
*** juiceme has quit IRC | 22:00 | |
*** tryagain has joined #maemo | 22:01 | |
*** juiceme has joined #maemo | 22:05 | |
*** juiceme is now known as Guest27573 | 22:06 | |
*** xy2_ has quit IRC | 22:10 | |
*** shentey has quit IRC | 22:11 | |
Enrico_Menotti | I'm wondering whether I have some way to install packages to the Debian fs on sd card by connecting in mass storage mode to the Debian computer. (At present my N900, when I boot Debian on it, is isolated from the world, and I cannot even login as root.) | 22:17 |
*** Roth has joined #maemo | 22:19 | |
Sicelo | wifi should work in debian .. | 22:28 |
*** xy2_ has joined #maemo | 22:29 | |
*** xy2_ has quit IRC | 22:30 | |
Enrico_Menotti | How to turn it on without being root? | 22:35 |
*** xy2_ has joined #maemo | 22:37 | |
*** xy2_ has quit IRC | 22:38 | |
*** xy2_ has joined #maemo | 22:38 | |
Zungo | Enrico_Menotti: Put autologin as root | 22:52 |
Zungo | i am sure there's a way to extract and repackage the filesystem | 22:52 |
Zungo | and/or mount directly on linux system | 22:52 |
Enrico_Menotti | Well, I can mount it on my Debian computer. Mass storage mode. But how to install packages there? | 22:53 |
Zungo | you chroot into it Enrico_Menotti | 22:54 |
Enrico_Menotti | As it is done in debootstrapping, right? | 22:54 |
Zungo | seriously please research a bit more or ask common things like this in ##liunx please | 22:54 |
Zungo | uhm yeah i guess | 22:55 |
Zungo | however it works | 22:55 |
Zungo | you dont need /dev except when creating bootloader for example | 22:55 |
*** Roth has quit IRC | 23:23 | |
*** xy2_ has quit IRC | 23:33 | |
*** xy2_ has joined #maemo | 23:34 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!