IRC log of #maemo for Thursday, 2017-09-07

freemangordonBTW, isn;t upstart supposed to start sysvrc scripts?00:01
* parazyd never used upstart knowingly00:02
parazydsysvinit isn't doing it for you?00:03
freemangordonit is upstart that does the booting00:03
freemangordonhowever, enough for today, night00:04
*** LjL is now known as LjL-Laplette00:04
parazydnight00:05
*** jkepler has quit IRC00:13
*** err0r3o3_ has joined #maemo00:32
*** enyc_ has quit IRC00:33
*** enyc has joined #maemo00:33
*** xy2_ has quit IRC00:46
*** enyc has quit IRC01:00
*** enyc has joined #maemo01:00
*** xorly has quit IRC01:28
Wizzupfreemangordon: loving the demo video01:36
*** err0r3o3_ has quit IRC01:39
*** Pali has quit IRC01:46
*** sunshavi has quit IRC01:47
*** err0r3o3_ has joined #maemo02:00
*** sunshavi has joined #maemo02:01
*** Oksana has joined #maemo02:07
*** HRH_H_Crab has quit IRC02:19
*** pagurus` has joined #maemo02:24
*** pagurus has quit IRC02:26
*** Konsieur has quit IRC02:57
*** err0r3o3_ has quit IRC03:04
*** enyc has quit IRC03:26
*** enyc has joined #maemo03:27
drathirfreemangordon: ++ < freemangordon> progress on fremantle porting to devuan03:36
*** ced117 has quit IRC03:58
*** ced117 has joined #maemo03:59
*** ced117 has joined #maemo03:59
*** dafox has quit IRC04:18
*** hurrian has quit IRC05:52
*** hurrian has joined #maemo05:53
*** buZz has quit IRC05:55
*** buZz has joined #maemo05:56
*** LjL-Laplette is now known as LjL06:01
*** auenf has quit IRC06:03
*** drcode has quit IRC06:04
*** Kilroo has joined #maemo06:48
*** NIN101 has quit IRC07:09
*** Cor-Ai_ has joined #maemo07:19
*** trx has quit IRC07:19
*** Natch has quit IRC07:19
*** Cor-Ai has quit IRC07:19
*** Cor-Ai_ is now known as Cor-Ai07:20
*** wnd has quit IRC07:21
*** ced117 has quit IRC07:21
*** herekun has quit IRC07:21
*** NIN101 has joined #maemo07:21
*** herekun has joined #maemo07:21
*** wnd has joined #maemo07:21
*** sunshavi has quit IRC07:21
*** pagurus` has quit IRC07:23
*** trx has joined #maemo07:23
*** trx has quit IRC07:23
*** trx has joined #maemo07:23
*** pagurus has joined #maemo07:24
*** Natch has joined #maemo07:25
*** ced117 has joined #maemo07:26
*** ced117 has joined #maemo07:26
*** trx has quit IRC07:28
*** trx has joined #maemo07:33
*** trx has quit IRC07:37
*** trx has joined #maemo07:41
*** trx has quit IRC07:41
*** trx has joined #maemo07:41
*** brolin_empey has quit IRC08:17
*** jkepler has joined #maemo08:25
*** geaaru_ has joined #maemo08:32
*** geaaru has quit IRC08:34
*** jkepler has quit IRC08:58
*** xy2_ has joined #maemo08:59
*** xy2_ has quit IRC09:05
*** EgS has quit IRC09:07
*** xorly has joined #maemo09:18
*** Pali has joined #maemo09:35
*** ecloud_wfh is now known as ecloud09:45
*** Pali has quit IRC09:53
*** brolin_empey has joined #maemo10:06
*** jkepler has joined #maemo10:19
sixwheeledbeastWould it matter to devuan if maemo was upstart for init? I know Canonical are unlikely to put any more work into it but it is open source and well documented. Having Upstart and OpenRC working on Devuan would be a good thing?10:21
*** florian has joined #maemo10:22
bencohI doubt devuan would prevent you from using any of those init systems10:40
bencohbut I don't really see any benefit for maemo on devuan10:41
bencoh5310:41
parazydbencoh: benefit over what?10:41
bencohparazyd: of choosing any specific init systems over the default one in devuan10:42
bencoh-s10:42
*** xorly has quit IRC11:03
*** florian has quit IRC12:02
Wizzupsixwheeledbeast: not sure why you'd not just migrate to a maintained and decent init system12:03
sixwheeledbeastIt depends how you define "decent", upstart is quite mature and I have never had any issues with it. It's also integrated into a lot of maemos existing packages.12:12
sixwheeledbeastI fully agree regarding maintained, but unless there's a bug/vulnerability what needs changing?12:13
Wizzupit's a dead project12:30
WizzupI have no interest in taking maintenance of dead init systems12:30
Wizzups/taking/taking up/12:31
infobotWizzup meant: I have no interest in taking up maintenance of dead init systems12:31
WizzupI don't see why we'd want *more* work (maintaining two init systems) when we already need more people doing the work that's really needed12:31
Wizzupfrom experience devuan also doesn't move fast at all, and I don't want to rely on them maintaining an init system for us, and if they are going to move from sysvinit, they will move to openrc, and not to upstart.12:32
DocScrutinizer05if you want to re-invent the complete maemo init system (have fun¡) then sure, move away from maemo init (which basically is upstart) to whatever else you like. I just wonder why the heck you call it maemo devuan and not hildon devuan or even osso devuan then12:36
Wizzupnot this again.12:37
Wizzupthere is no reinventing an init system, there's only applying hygiene and porting scripts.12:38
DocScrutinizer05yeah sure12:39
Wizzupdo you believe that maemo is defined by the fact that it uses upstart?12:39
DocScrutinizer05as I saud, have fun porting a bazillion scripts in maemo-extras12:39
DocScrutinizer05I believe that maemo is defined by the synergy of 3 dozen details12:39
DocScrutinizer05and yes, init system is part of that12:40
Wizzupso you essentially don't want to change anything that 'defines' it by your definition12:40
WizzupI'm not interested in looking backwards, I want to look forward. Not sticking to ancient and dead projects is part of that (hal anyone?)12:41
Wizzupand if there are things in whatever repo that depend on hal, they will need to be fixed12:41
Wizzupthat's part of maintaining an ecosystem12:41
Wizzupit's not different for an init system, although it might be more work/invasive12:41
DocScrutinizer05then go the heck and develop devuan, why abuse the name maemo?12:41
Wizzupsure enough, let's see what a better name would be.12:42
Wizzupif that saves us from future abuse12:42
KotCzarnydemeaman?12:42
KotCzarnymaevuan?12:42
KotCzarnydevaemo12:43
Wizzupright now there's maedevu, that might work12:43
Wizzupbut we can always change it later, not too interested in naming atm12:43
KotCzarnypronounced meh-deh-voo ?12:43
WizzupI'm kind of leaning towards daemo12:44
*** eMHa has quit IRC12:48
DocScrutinizer05it probably would have been less invasive to maemo when it had adopted systemd and stayed with debian, than what now is planned for it while trying to steer clear of debian's systemd change. When you change init system anyway, no more need to avoid systemd, and you can nuke OHMd and HAL en passant. Sure that thing might boot, but is it maemo still, can you make phonecalls with it *reliably*?12:49
Wizzupno, clearly systemd is required to make phonecalls reliably.12:51
* Wizzup sighs12:51
KotCzarnymmm, wouldnt it be beautiful to integrate all maemo daemons into systemd?12:52
KotCzarnyonebinary ramdisk and voila!12:52
DocScrutinizer05Wizzup: you're telling BS. systemd is unrelated to phonecalls12:53
DocScrutinizer05cgroups however are very important for maemo12:53
WizzupI was ridiculing your senseless arguments12:53
DocScrutinizer05yeah, in an anept way12:54
DocScrutinizer05since I never sdayd anything that faunly warants this BS statement about systemd for cals12:54
KotCzarny'said'12:54
Wizzupyou were suggesting that we should instead move to debian and systemd (which is acceptable for me too, as long as we swap out upstart), and then you said that somehow the result would not be able to make phonecalls12:55
Wizzupand if you're not going to do any work, and just flame and throw shit around, I'm going to ignore your opinion12:55
*** err0r3o3_ has joined #maemo12:55
DocScrutinizer05no, I never suggested that. maybe you need some coffee to wake up12:56
DocScrutinizer05you're ignoring my opinion anyway, you always did12:57
DocScrutinizer05you're even ignoring the meaning of my statements12:57
DocScrutinizer05and instead quote me incorrectly12:57
DocScrutinizer05and your statements make me ignore your option since you evidently have less clue about the implicit requirements regarding phonecalls than Enrico_Menotti12:59
DocScrutinizer05opinion*12:59
*** ketar has quit IRC13:02
sixwheeledbeastI understand it's deemed dead but isn't the point of devuan "init freedom". If Maemo as it stands requires upstart then why is that a problem?13:12
Wizzupif you make it work with all of devuans packages and do all the work to port it, then there is no problem13:13
Wizzupand if you would, you'd realise that you're working against the flow, against the path of least effort13:13
Wizzupand you'd have to maintain it over time with ever increasing maintenance since you're likely the only person in the world that wants to stick to upstart13:14
Wizzupjust because of some legacy init scripts13:14
WizzupI don't dislike upstart, it just doesn't make sense to stick with it just because. If it's little effort to make it work on devuan, fine, I don't care, but it doesn't look that way13:15
Wizzupthere is no technical reason to require a specific init system: both openrc and systemd are modern alternatives, with different philosophies, but completely comparable feature sets13:15
*** HRH_H_Crab has joined #maemo13:27
sixwheeledbeastI would have thought getting upstart working on Devuan would be easier than making OpenRC work with Maemo, but I am no expert.13:28
WizzupThe problem is having it continue to work over months/years/releases13:30
WizzupThinking only about the short-term solution is short sighted and will come back to bite13:31
sixwheeledbeastI suppose I am trying to look at it from both sides, as Doc says, it's what we deem to be "Maemo" that maybe the question. Hildon-Desktop with bits missing and maemo packages that are no longer compatible, isn't the whole Maemo experience for some. I fully understand your future support point BTW.13:39
*** eMHa has joined #maemo13:39
WizzupI have no illusions about the fact that you can't just expect every single maemo package to run without modifications, but that's just how the software world works. On the flip side, you get access to all the normal packages in debian.13:41
WizzupFurthermore, the requirements for having all of that continue to work are also a terrible foresight: having to keep around ancient tls libraries with known vulnerabilities, etc.13:42
WizzupDown that path lies insanity13:42
WizzupI wish it was different, but it's not13:42
sixwheeledbeastMaking something to work to a future goal should have better long term support over back patching but "Maemo" is a weird beast.13:43
DocScrutinizer05the point of devuan *IS* init freedom, and there's no such concept in devuan like "we need to move from (e.g.) upstart to $whatever-init to allow devuan packages without maintenance effort. IF anything is standard init in devuan, then that's sysv-init so far, but allowing any other init system. OTOH maemo-extras has more than just a few packages that depend on maemo's particular init system13:43
WizzupMy expectation would be that people could port over packages with relative ease or ask others to do so13:43
Wizzupsixwheeledbeast: I don't care if it is called maemo or not, I want a nice GNU/Linux OS for my devices13:43
DocScrutinizer05said poettering13:43
KotCzarnyhe probably didnt say 'nice', but 'mine'13:44
WizzupAny comparison of this discussion and poetterings general attitude is silly & trolling13:46
WizzupEven when you keep upstart and change devuan to work with it, the maemo-extras packages still won't work without additional changes13:47
DocScrutinizer05any argumentation why maemo devuan should enforce a new init system, when devuan got invented to dodge exactly this forcing of systemd init system to everybody for exactly the rationale given for maemo new init now, doesn't make any sense13:48
sixwheeledbeastMaybe I don't understand the thread correctly but how would what init Maemo uses effect tls libraries? Obviously Maemo needs updating and upstream Devuan is the planned source.13:48
Wizzup*You* are free to pick a different system. *Nobody* is forcing you to do anything13:49
WizzupStop pissing on other people13:49
KotCzarnyswb: i guess that comment was about having to keep some compatibility layer13:50
Wizzupsixwheeledbeast: it won't the tls libraries of course13:50
Wizzupit won't affect*13:50
WizzupKotCzarny: that was about the near impossibility of such a compatibility layer within a sane os/distro13:50
DocScrutinizer05you you don't need to change devuan to work with upstart, devuan is about init freedom. A statement like >>On the flip side, you get access to all the normal packages in debian.<< is total BS since debian is systemd now and that was the whole reason why devuan got invented, since you only get access to systemd-dependent packages on debian13:50
WizzupDocScrutinizer05: devuan imports most packages directly from debian13:51
Wizzupin case you didn't know13:51
Wizzupso my statement is as true as it gets13:51
DocScrutinizer05in case you didn't know, I understood how devuan works before I sugested maemo goes devuan13:52
Wizzupthen why state such falsehoods?13:52
Wizzupmost packages in debian have no dependency on systemd at all, and the ones that might, either devuan will have a replacement for or you're SOL13:52
DocScrutinizer05you obviously not only lack understanding of the phonecall modifications in maemo system and how they impact more than just audio, you also lack to understand whar devuan is13:53
* Wizzup rolls his eyes13:53
WizzupI'll await your implement of all of this13:53
DocScrutinizer05it's YOU not me who's about to invent and failing to implement a new OS falsely dubbed maemo devuan13:54
Wizzupit mostly seems like you slinging shit at everyone who doesn't do exactly as you wish13:55
DocScrutinizer05I suggested maemo & devuan join forces back when, *because* devuan allows keeping particularly upstart and cgroups13:55
Wizzupopenrc and systemd support cgroups just fine13:55
DocScrutinizer05you're telling bullshit without end13:56
DocScrutinizer05systemd evidently takes cgroups hostage13:56
DocScrutinizer05and is NOT compatible with maemo13:56
DocScrutinizer05and when you want systemd then why the heck you pester the poor devuan people with that?13:57
Wizzup>when you want systemd13:57
DocScrutinizer05you say "we can use debian packages" (NO you CANNOT as soon as they have systemd dependencies), then you say "we need to move to a init system that's supported by devuan" (no you don't since there is no such particular init system in devuan, they run on sysv-init for now but allow any init system except systemd madness), while you claim maemo must move away from upstart because it's not supported anymore (NO, devuan supports it). I don't14:01
DocScrutinizer05know where to stop calling you out, so I rather stop right here14:01
Wizzup'there is no such a particular init system in devuan?'14:02
DocScrutinizer05no, devuan is about init dreedom14:02
DocScrutinizer05maemo upstart is perfectly fine inside devuan14:03
WizzupOK, do it14:03
DocScrutinizer05no, why should I?14:03
DocScrutinizer05why are you trying to not only modify maemo towards a allegedly needed new init system that is nowhere supported, but even also trying to redefine what's devuan?14:04
Wizzupwhatinit syste is nowhere supported?14:05
Wizzupand why are you saying I am trying to redefine what devuan means?14:05
WizzupI know pretty well what it means, I've shared an office with them for a considerable amount of time, and I see many of the core people on a regular basis irl14:05
DocScrutinizer05meh, you are trolling me, or you're dense14:05
* buZz hands out liquorice14:06
* KotCzarny never tried liquir rice14:06
KotCzarny*liquor14:06
buZz:P14:07
buZzliquorice is one of the most traditional of all dutch candies14:08
buZzits what you give to your kids when they are fighting on the backseat of the car14:08
buZzso they stfu14:09
KotCzarnyi wonder what would happen if you gave them liquor rice14:09
sixwheeledbeastTaking this back to maemo-devuan and openrc init. Would there be a conflict with openrc's use of cgroups and maemo's use of cgroups?14:09
sixwheeledbeastKotCzarny: I imagine it does the same14:09
sixwheeledbeastYou just end up with a messy car14:10
DocScrutinizer05just read this one carefully >>I have no illusions about the fact that you can't just expect every single maemo package to run without modifications, but that's just how the software world works. On the flip side, you get access to all the normal packages in debian.<< thats TOTAL BS. maemo already had access to all debian packages, now is slowly losing it thanks to systemd dependencies in debian packages, that's why I suggested to ally14:10
DocScrutinizer05with devuan which offers init freedom. There's zilch rationale in "maemo needs another init system to stay comüpatible with devuan" - it lacks elementary logic14:10
WizzupDocScrutinizer05: if you find it to be total bullshit, go and do it, because your approach will take many human lives to get to a semi working system14:11
Wizzupif you're not going to do it, kindly piss off14:11
*** ChanServ sets mode: +o DocScrutinizer0514:11
WizzupI'm not going to bend to your will, especially if you're not going to put in any effort yourself14:11
*** Wizzup was kicked by DocScrutinizer05 (T900: "User terminated!")14:11
*** ChanServ sets mode: -o DocScrutinizer0514:11
DocScrutinizer05somebody doing the wrong thing doesn't earn privileges to tell others to do the right ting or piss off14:12
*** Wizzup has joined #maemo14:13
WizzupHow long do you want to keep everyone in here hostage?14:13
WizzupThat was completely uncalled for14:13
DocScrutinizer05you're not denying to bend to anybody's will, you're denying mere logic and insist in BS statements that are evidently false and lack any logic14:14
WizzupUnless you want to force people to move discussion about this topic to a channel where you don't exist14:14
DocScrutinizer05yes, do that14:14
Wizzupno, you don't agree with my logic and I've long given up trying to talk to you14:14
KotCzarnywizzup, /ignore works wonders14:14
WizzupKotCzarny: I want my refund for my neo900 first14:14
Wizzupthen I will just that14:14
WizzupI will do*14:14
DocScrutinizer05it's YOU who is insulting people and telling them to piss off, so who's holding anybody histage here?14:14
buZzWizzup: did you order a pyra yet? :D14:15
WizzupI don't know man, calling people's arguments 'total BS' is kind of offensive14:15
WizzupbuZz: I will use the refund to do that14:15
buZz\o w00p14:15
buZzisnt neo900 refund like 5 pyras? :P14:15
DocScrutinizer05answering a logical "A is true, B is false" statement with "do it or piss off" earny you a kick. sorry, this won't change14:16
WizzupDocScrutinizer05: did you see my question about the refund in the neo900 channel?14:17
DocScrutinizer05did you see my moaning about some irc users in #freenode?14:18
DocScrutinizer05when you're upset about somebody calling you out for evidently nonsensical incorrect statements, you should step back and rethink instead of starting a war14:18
buZzdid anyone watch american dad s14e21 yet?14:19
parazydbuZz: me :)14:19
WizzupI don't need to rethink anything. I just don't want to have to deal with you14:19
KotCzarnyi'm hungry14:19
buZzparazyd: nice, right? :D14:19
WizzupThis is not the first time, and I want this to be the last time.14:19
parazydbuZz: indeed :D14:19
buZzi mean, -any- topic better than this ^_^14:19
buZzKotCzarny: hi hungry, i am buZz14:19
KotCzarnyhi buzz, what are you buzzing about?14:20
KotCzarnymaybe i will finally check that n90014:20
buZz:)14:20
buZzi am F5-ing some order pages14:20
KotCzarnyor not. left it at other place, eh14:20
buZzgetting a GTX1060 today , and some parts for 3D printer14:20
KotCzarnythe part that keeps me from doing it i would have to replace screens to make it boot/be usable14:21
KotCzarnyunless someone has a workaround to enable tvout without working lcd14:21
KotCzarny(my guess fb is uninitialized and fails to setup tvout)14:22
buZzhmm14:22
buZzmaybe if you can ssh into it?14:22
KotCzarnyto ssh one would have to enable usb net or wifi14:22
Wizzupadd a serial line?14:22
KotCzarnyserial line isnt trivial14:23
Wizzup*shrug*14:23
Wizzupif it's trivial, it's not fun14:23
KotCzarnyi wonder if it's just a setting somewhere in xomap or kernel14:23
KotCzarnywouldnt it be great if you boot, it detects missing lcd but setups things anyway to make tvout work?14:24
KotCzarny(that was my original plan with that n900)14:25
DocScrutinizer05should work, except afaik for NOLO14:25
KotCzarnynope. bad/missing lcd results in flatline on tvout14:26
buZzNobody Only Lives Once14:26
DocScrutinizer05seems NOLO vlows chunks when LCD controller chip init fails14:26
parazydbuZz: lol14:26
KotCzarnyit boots fully, but no tvout14:26
KotCzarnyi only see the 1px yellow line in the middle (probably some message pops up)14:27
KotCzarny(most likely about missing modem functions)14:27
DocScrutinizer05ooh, that's great news, so NOLO only fails when the I2C link to flat cable is partially broken so it ruins complete I2C bus?14:27
KotCzarnyswapping lcds makes tvout work as expected14:27
KotCzarnytrivial to check, just disconnect ribbon and connect to tv set (set wifi to auto connect before though for checks)14:28
DocScrutinizer05hmm, or not. Seems video init also in SoC and thus for TVout too, is failing when SoC cannot talk to LCD14:29
DocScrutinizer05anyway I'd suggest to NOT load the kernel driver for LCD controller, that might help14:30
KotCzarnymy guess is that lcd init populates height/width structures which are not hardcoded. but it's just a guess14:31
KotCzarnymight be also that failing lcd init stops tv init from happening14:32
DocScrutinizer05KotCzarny: >>lcd init populates height/width structures<< yes, exactly my guess too14:37
KotCzarnyhmm, i wonder if that means it would be possible to drive higher res lcd with n90014:38
DocScrutinizer05judging from my involuntary experiments with broken I2C(?) connection to LCD controller a 6(?) years ago14:38
DocScrutinizer05yes, should be possible14:39
KotCzarnywere there any reports of such experiments?14:39
DocScrutinizer05check OMAP3430 TRM section "video" or whatever14:40
DocScrutinizer05OMAP3430 has a range of resolutions it supports14:40
DocScrutinizer05and a generic display hardware interface14:40
KotCzarnypdf says 'any size up to 2048x2048 with 8px granularity'14:42
KotCzarnyin section 1514:43
KotCzarnybut mipi dsi says 'xga @60fps with 24depth'14:44
DocScrutinizer05yep, OMAP34xx_ES3.1.x_PUBLIC_TRM_vZM___SWPU223M.pdf section 15 "display subsystem"14:45
DocScrutinizer05http://susepaste.org/6462550714:48
KotCzarnyyes, but see mipi section too14:48
DocScrutinizer05basically boils down to >> Programmable pixel rate up to 75 MHz<<14:49
DocScrutinizer05MIPI is just an industry standard14:49
KotCzarnyisnt that the actual connector/standard used?14:50
KotCzarnyunless all of those standards on the same connector14:50
DocScrutinizer05the one *used* in N900 maybe, but not the only supported one14:50
DocScrutinizer05yes, the latter14:51
DocScrutinizer05well, there's pinmux, depends what is allowed/suppported on which of the available pins/balls14:51
DocScrutinizer05but generally the supported protocols are not dependent on the hw interface used, unless you simply don't have access to the requird pins for a standard that uses more pins/lines than the one N900 does14:53
*** heroux has quit IRC15:02
*** jkepler has quit IRC15:08
DocScrutinizer05KotCzarny: mipi SDI or mipi DBI15:11
DocScrutinizer05ugh DSI too15:11
siceloanyone has an idea of the serial protocol uses in popular cheap smartwatch DZ09 and clones?15:24
*** Konsieur has joined #maemo15:27
DocScrutinizer05sicelo: doesn't https://www.ixquick.com/do/search?q=serial+protocol++DZ09 help?15:30
DocScrutinizer05always a good goto: bunnie https://www.bunniestudios.com/blog/?p=429715:34
buZzbunnie <315:34
sicelothanks.15:40
sicelolookinkg15:40
siceloin the meantime have been downloading the f/w15:40
*** EgS has joined #maemo15:46
*** xorly has joined #maemo15:56
*** jkepler has joined #maemo16:00
*** jkepler has quit IRC16:11
*** jkepler has joined #maemo16:13
*** jkepler has quit IRC16:19
*** auenf has joined #maemo16:31
drathirthats good... http://www.bunniefoo.com/fernvale/fernvale-31c3.pdf17:01
*** jkepler has joined #maemo17:03
*** cyteen has quit IRC17:07
sicelothe resources above are all great. however they are for firmware hacking, and don't seem to cover bluetooth serial comms, which i'm after17:15
siceloi notice i didn't mention bluetooth in my earlier question17:16
* drathir not tech guy but isnt if mb source present and os source too that somehow predict/extract how os interact with bt module?17:18
drathirsicelo: or that even lower inside bt fw module?17:18
sicelono idea. i'm no better than you are .. i bet  i know way less17:20
siceloestablishing a bluetooth link using rfcomm is very easy .. my problem is in knowing what to send17:22
DocScrutinizer05bt simplifies things a tad, since at least you have a profile that predicts which protocol being used to send/receive17:27
drathirsicelo: im not sure that im know more than You... and theoretically speaking maybe also good idea search devices based on that chipset and maybe that devices will have some kind of documentayion/usage of module ?17:27
*** xorly has quit IRC17:32
timelessDocScrutinizer05: have you ever had `zless foo.gz` not `work`?17:36
timelessfor me, i get a warning that this may be a binary file17:36
timelessand then less lets me look at the uncompressed file :-(17:36
DocScrutinizer05hmm, never really used zless17:36
timelessoh!17:36
* timeless sighs17:37
timelessSHELL=/bin/false17:37
DocScrutinizer05weird. cehck ending, maybe needs .tgz or .tar.gz17:37
timelessthat's awesome17:37
DocScrutinizer05LOL17:37
timelessso, zless honors shell17:37
DocScrutinizer05if in doubt, try mc ;-)17:37
timelessand since i'm running as a service account, where shell=/bin/false, doesn't work17:37
* timeless wonders if this is really the right behavior17:38
DocScrutinizer05I *guess* zless is just a tiny bash wrapper around tar/zip and less, doing uncompressing and piping to $PAGER17:38
timelesszless is a binary that does some wrappings17:39
timelessbut yes, kinda17:39
timelessit mostly sets LESSOPEN / LESSPIPE and friends17:39
timelessexcept, apparently it honors SHELL17:39
* timeless is still trying to decide why anyone would think that's the right behavior17:39
* DocScrutinizer05 wonders how logging in interactively to an account with SHELL=/bin/false is the right behavior anyway17:40
timelesssudo -u tomcat /bin/bash17:41
timelessHOME=`eval echo ~$USER`17:41
* timeless clearly needs to add SHELL=/bin/bash17:41
timelessi'm trying to avoid having lots of scripts that run as root17:41
bencohless honors SHELL, not zless17:41
timelessbencoh: ah17:41
timelesscan you walk me through why it should do that? is the expectation that someone would want SHELL=psh and LESSPIPE={perl} ?17:42
DocScrutinizer05I just 2 days ago googled for shel = /bin/false resp /bin/nologin and it's a pretty weird topic17:42
timelessoh, yeah17:42
DocScrutinizer05it *should* forbid any interactive login17:43
timelessmore or less one is "use this for services" and the other is "use this for accounts that have been disabled"17:43
timelesswell, the way computers work, a permission has to exist, so this account has permissions17:43
timelessand you can create a permission, and then ask it to run a program17:43
timelesse.g. tomcat (i.e. java)17:43
timelessor you can asks it to run some other program (e.g. bash)17:43
DocScrutinizer05well, technically there's little difference between false and nologin, just the latter prints a polite message about the fact17:43
timelessyep17:44
timelesshence nologin is really "how to tell a user to go away"17:44
timelessand false is what you use for a service account -- something a user shouldn't be trying to log into17:44
DocScrutinizer05it's for hysterical raisins17:44
timelessmy favorite part of that dance is that the location of those files has changed over time17:44
timelessyep17:44
timelessfalse was part of the base system, so people cheated and used it for locking accounts/services17:45
timelessbut eventually they wanted to be fancier17:45
DocScrutinizer05sort of, yes17:45
DocScrutinizer05aiui there's no best common practice17:45
DocScrutinizer05anyway when you *log in* to any account, you inherit that account's shell settings, and obviously less is meant to run inside a shell, so...17:47
DocScrutinizer05then there's also fun with PAM17:48
drathirtimeless: env what say after login?17:49
DocScrutinizer05actually /bin/flase is a tad weird for login. I *think* you should set the password invalid but have the primary and sole function of an account as "shell" in etc/passwd, e.g. /usr/bin/tomcat for account tomcat17:55
DocScrutinizer05but then that's just what came to my mind right now17:56
timelessdrathir: this isn't a `login` proper, it's a `sudo`17:57
timelessDocScrutinizer05: partially, `sshd` can easily ignore an empty password17:57
timelesswhich is why the screwy system is the way it is...17:58
DocScrutinizer05you shouldn't have sshd in an account that's not meant to have ssh login17:58
timelesssshd doesn't really live inside an account :)17:58
timelessbut if you mean ~/.ssh/authorized_keys -- well...17:59
DocScrutinizer05well, depends on your system config17:59
timelesssshd is almost always owned by root :)17:59
timelesssure, it's /possible/ to run sshd as another user (i do it occasionally to debug things), but...17:59
*** sunshavi has joined #maemo17:59
DocScrutinizer05basically sshd is a glorified login + su17:59
DocScrutinizer05it *should* get configured in a way so it behaves pretty much identical or evem *less* permissive than normal login18:00
DocScrutinizer05ssh ignoring password in /etc/shadow and etc/passwd and still allowing to log in to an account that hos NO .ssh/authorized_keys is... BAD[TM]18:02
DocScrutinizer05you *can* do this, allowing ssh to log in to arbitrary accounts using arbitrary unrelated ssh keys, by setting up mess in /etc/sshd7* but...18:03
DocScrutinizer05well, at least I guess you could, I never tried this and I think defualt is not allowing it18:05
* DocScrutinizer05 glares at git18:06
bencohor just use a different pam configuration? ...18:07
DocScrutinizer05still sort of a miracle to me how git daemon / sshd knows which authorized_key to use and which user to authenticate to git, while you're not providing an explicit user name and neither your local account you do "git push ssh:/foo.bar" has a valid known git account name18:07
timelessyeah, pam / ldap18:07
timelessDocScrutinizer05: usually you're configured to login as the `git` user18:08
timeless(or in hg the `hg` user)18:08
DocScrutinizer05well, nevertheless git is greeting you with your name when you simply ssh git@foo.bar18:08
timelessbut the way those usually work is that there's essentially only one `user` and each authorized_key line has a `command`18:08
timelessyeah, so, that's all through the magic of `command=...`18:09
DocScrutinizer05yep18:09
* timeless has a whole bunch of `command=` things18:09
timelessbasically that can set the "user" for the program18:09
timelessso it can greet you / know to do things as "you"18:09
timelessi suspect that the ssh system for larger systems is a little modified from the standard to avoid having a single "authorized_keys" file, since updating that would be scary beyond belief18:10
timelesshttps://serverfault.com/questions/162238/openssh-with-public-keys-from-database18:10
timelessAuthorizedKeysCommand18:11
timelessAuthorizedKeysCommandRunAs18:11
timelessthose look promising :)18:11
DocScrutinizer05*cough*18:11
DocScrutinizer05but yeah, prolly that's it18:11
timelesshttps://github.com/blog/530-how-we-made-github-fast18:12
timelessapparently not :o18:12
DocScrutinizer05github my ass18:18
*** jkepler has quit IRC18:19
*** jkepler has joined #maemo18:19
*** Pali has joined #maemo18:25
DocScrutinizer05timeless: but think about it: how does sshd know *which* key in authorized_keys is the right one to use for the inbound ssh connection request?18:29
DocScrutinizer05theere must be sth magic going on behind the scenes, in ssh protocol18:30
bencohit doesn't need to know18:30
bencohand there is no magic18:30
bencohssh (client) uses the specified (or default) key18:31
bencohand ... that's it18:31
DocScrutinizer05err it doesn't need to know which of a 100 pubkeys to use to verify the authentication request?18:31
bencohno18:31
bencohit only needs to check that submitted pubkey is indeed present18:32
DocScrutinizer05that sounds like a communication problem between you and me18:32
bencohDocScrutinizer05: then I repeat, 18:31 < bencoh> ssh (client) uses the specified (or default) key18:32
bencohthe fact that you think it doesn't is the issue :)18:32
DocScrutinizer05huh?18:32
bencohclient decides whether to use and supply a pubkey18:33
DocScrutinizer05please explain me what I think, I fail to understand what I'm supposed to be thinking18:33
bencoh18:29 < DocScrutinizer05> timeless: but think about it: how does sshd know *which* key in authorized_keys is the right one to use for the inbound ssh connection request?18:33
bencohI'm only referring to this18:33
bencohand this very question is wrong18:33
DocScrutinizer05and what did I say I'm thinking there?18:33
bencohthat sshd should somehow know which key to use18:34
bencohwhich doesn't really makes sense in my opinion18:34
DocScrutinizer05when sshd doesn't know which of the 100 pubkeys in authorized_keys to use, I totally fail to understand how authentication would be feasible18:34
bencohsshd doesn't get to choose18:35
bencohclient supplies a pubkey18:35
DocScrutinizer05since sshd MUST use a particular key in azthoirzed_keys, that's why they exist18:35
bencohsshd checks whether it matches any in the list18:35
bencohno, it doesn't18:35
DocScrutinizer05so there you have it18:35
DocScrutinizer05it gets told which key to use18:36
bencohby client, yes18:36
bencoh18:31 < bencoh> ssh (client) uses the specified (or default) key18:36
bencoh:)18:36
DocScrutinizer05>>ssh (client) uses the specified (or default) key<< is very fuzzy18:36
bencohmybad then :)18:36
DocScrutinizer05also my question wasn't about client but about server18:37
DocScrutinizer05I know which private key the client uses18:37
DocScrutinizer05but obviously it needs to tell server about which pubkey to use18:38
bencohthat's true, yes18:38
bencohs/true/exact/18:38
infobotbencoh meant: that's exact, yes18:38
DocScrutinizer05so now we're talking. How is the pubkey to use getting identified / referred to, in the communication from client to server?18:40
bencoh"identified"?18:41
DocScrutinizer05I guess not by transferring it a second time, since the client has no access or knowledge about the pubkey18:41
bencohit's simply sent from client to server18:41
bencoherr, it does18:41
bencohclient has both pubkey and privkey18:41
bencohit has*18:42
DocScrutinizer05only id privkey includes a pubkey version18:42
DocScrutinizer05if*18:42
bencoh$ ls .ssh/id_rsa*18:42
bencoh.ssh/id_rsa  .ssh/id_rsa.pub18:42
DocScrutinizer05I'm only pointing to privjey in my ssh client command18:42
DocScrutinizer05no?18:43
bencohpointing to a key usually refers to a pair18:43
DocScrutinizer05I even think you could set up a client by only providing the privkey file, the system never get to see the pubkey.18:43
timelessPublic keys can be (re)generated from private keys18:45
DocScrutinizer05I've created key pairs for users, sent the privkey to user and the pubkey to server, neither knew of the other part18:45
timelesshttps://askubuntu.com/questions/53553/how-do-i-retrieve-the-public-key-from-a-ssh-private-key18:45
DocScrutinizer05timeless: then that's the solution, pretty much in line with my >>only if privkey includes a pubkey version<<18:46
timelesshttps://www.digitalocean.com/community/tutorials/understanding-the-ssh-encryption-and-connection-process18:47
DocScrutinizer05so the sshd would only compare if the provided pubkey is already in authorized_keys ?18:47
bencohexactly18:47
DocScrutinizer05:-)18:47
DocScrutinizer05sounds suboptimal but meh18:47
timelessfrom above page https://www.irccloud.com/pastebin/3AYIJGSU18:48
DocScrutinizer05I had thought the protocol would want to keep the pubkey also sort of non-public18:48
timelessNope, the public key is actively sent from client to server18:48
DocScrutinizer05so isn't there an attack vector for MITM?18:49
timelessIf it isn't recognized, the server says "I don't know that one, try another"18:49
timelessSSH starts by clients connecting to servers18:49
DocScrutinizer05MITM would say "hey great that's a known key" while storing it ;-)18:49
timelessServers present their public keys18:49
timelessIf the client has a public key for the server and it doesn't match, the client screams18:50
timelessThe public key doesn't really do much18:50
DocScrutinizer05we all seen that, yes :-D18:50
timelessI'm about to trigger that for one of our systems...18:50
DocScrutinizer05ok,, learned sth for today18:50
DocScrutinizer05thanks!18:51
timelessAnyway, the SSH model allows a client to offer key after key after key18:51
timelessUsually after a certain number, the server gets annoyed18:51
DocScrutinizer05hehehehe18:51
* timeless has triggered that...18:52
DocScrutinizer05it's a tad weird an approach to not keep the actual pubkey out of the communication18:52
DocScrutinizer05I had just send a hash over the pubkey18:53
DocScrutinizer05if I were to design the protocol18:53
*** xy2_ has joined #maemo18:53
DocScrutinizer05if I *had* to...18:54
bencohthere's no real reason not to send the pubkey18:54
DocScrutinizer05it significantly complicates MITM attacks18:54
bencohwell, actually there might be, but if you're referring to potential mitm, just think of the fact that client is already supposed to check server's fingerprint18:55
bencohso you've already got that aspect covered18:55
DocScrutinizer05yes, I know18:55
DocScrutinizer05but honestly, how do *you* (the user) verify that the fingerprint of the server auth key is actually a valid one when you first time connect to a server?18:56
DocScrutinizer05particularly when you're stupid like me and think the mere fact that the server has your pubkey is an indication that it's the server you sent your pubkey to via out-of-band means like encrypted email18:58
DocScrutinizer05for me that's frequently a "plausibility check: do I conect to this server for the first time? or are there other possible reasons why my known_hists is not up to date? OK? then 'YES'..."19:00
bencohDocScrutinizer05: you're supposed to know the fingerprint19:00
bencohand ssh displays it19:00
bencohI don't see any valid reason why server would have your pubkey while you wouldn't have his19:00
DocScrutinizer05where from would I possibly know the fingerprint of the host's identify key?19:00
bencohssh-keyscan from a trusted computer on a trusted network, for instance19:01
DocScrutinizer05honestly not a single of my known_hosts seen any verification, I wouldn't even know how to do that19:02
bencohor by using sshfp and dnssec19:02
DocScrutinizer05I never seen a howto for server identity key verification19:03
DocScrutinizer05or I forgot if I actually did19:03
DocScrutinizer05for all I know even my own servers could have different server id keys than I got in my known_hosts, and I'm always ever since talking to a MITM19:05
bencoh:)19:05
DocScrutinizer05I'm not sure but I doubt e.g. Hetzner gave me a fingerprint to verify against, when they sent me my server credentials19:07
DocScrutinizer05neither would I know of maemo fingerprints being published anywhere19:09
*** jkepler has quit IRC19:11
DocScrutinizer05probably the canonical way to establish a connection to a server (first time) would be to add the key to known_hosts from OOB source, so ssh client never even would ask that notorious "ARE YOU SURE YOU WANT TO ADD THAT SERVER?"19:11
DocScrutinizer05alas I don't know of any source for the key to add it to my known_hosts19:13
DocScrutinizer05other than the just mentioned client based method19:13
*** cyteen has joined #maemo19:16
DocScrutinizer05there must be a way to have servr side key fingerprint displayed to user out-of-band of mere ssh negotiation protocol, so you could compare server side fingerprint with local fingerprint19:16
DocScrutinizer05ideally via email or other non-ssh based channel19:16
DocScrutinizer05compare ZRTP where that "OOB" channel is voice that's hard to fake by a rogue software in a MITM19:18
DocScrutinizer05ZRTP also doesn't share keys ever, making any MITM attack even harder19:19
DocScrutinizer05iirc19:20
DocScrutinizer05HMMMM  http://man.openbsd.org/ssh-keyscan#SECURITY19:26
bencohDocScrutinizer05: man ssh-keygen /fingerprint and see /etc/ssh*19:32
DocScrutinizer05hmm, not sure what exactly you refer to19:35
DocScrutinizer05to view fingerprints?19:35
bencohyes19:36
DocScrutinizer05ta19:37
DocScrutinizer05hmm, ssh-copy-id needs severe augmentation, to cope with default no-passowrd as well as mitigating the above discussed MITM issue by specifying unique properties to look and verify for on target server to install your pubkey to19:44
DocScrutinizer05so an admin could send a ssh-copy-id command that would guarantee to avoid MITM and also copes with allowing password auth only for installing the pubkey (based on server side measures, only from certain hostnames, IP ranges, only for a limited timespan and only for a very limited number of tries)19:46
DocScrutinizer05s/ssh-copy-id command that /ssh-copy-id command to user per encrypted email that /19:47
infobotDocScrutinizer05 meant: so an admin could send a ssh-copy-id command to user per encrypted email that would guarantee to avoid MITM and also copes with allowing password auth only for installing the pubkey (based on server side measures, only from certain hostnames, IP ranges, o...19:47
DocScrutinizer05that's basically reverse pubkey-is-secret aproach19:48
*** jkepler has joined #maemo19:48
bencohexcept that your pubkey is public19:49
bencohnot a psk19:49
DocScrutinizer05well, I didn't say anything different19:49
DocScrutinizer05it's just the fow of secret info is from admin to user instead of from user to admin (via providing the pubkey)19:50
DocScrutinizer05the secret info are the parameters to ssh-copy-id-ng19:51
DocScrutinizer05these could even include the fingerprint of server id key19:52
DocScrutinizer05or already the key itself19:52
DocScrutinizer05to add it to known hosts19:52
DocScrutinizer05on server side, e.g inotify or a temporary login script could cope with disabling password authentication and restricting allowed commands to only installing the pubkey to authorized_keys19:55
freemangordonDocScrutinizer05: on a side not - maemo's upstart scripts are more or less NOT compatible with upstream upstart. Also, most, if not all of the packages in maemo have both upstart and sysvinit scripts. No idea why.19:56
freemangordon*note19:56
DocScrutinizer05heck, you wouldn't even need password auth at all, just send user a temprary ssh privkey with the server pubkey only allowing command to install the final pubkey to server19:56
freemangordonnot to say that the whole maemo boot process is a total mess19:56
freemangordonpart of it is upstart, another part in /etc/Xsession.d scripts19:57
freemangordonwithout an easy to be seen sequence19:57
freemangordonif there is a sequence at all19:58
DocScrutinizer05freemangordon: well, that's ok, we still don't need to nuke maemo-upstart for another init system just to stay compatible with devuan. Devuan is compatible to whatever init system you like, per foundation definition of devuan's purpose19:58
freemangordonmaemo-upstart is already nuked in the project I am participating in19:58
DocScrutinizer05yeah, maemo compatibility is nuked in many aspects in that project, armhf only being an elephant to start with19:59
freemangordonno, you got it wrong, maemo compatibility is not defined by the init system neither by the fact that ONE of the builds will be armhf20:01
DocScrutinizer05but that's not mandated by devuan, nor ny any other compatibility considerations. It rather outright denies any backward compatibilty and claiming it had to be done to *stay compatible* is not based on any facts20:01
freemangordonit is not mandated by devuan, that's for sure. It is mandated by the fact that maemo is horribly outdated20:01
DocScrutinizer05that's a totally different topic and up to anybody's personal belief if it's a sane thing to invent something totally new and still call it maemo20:02
freemangordonso, without having the RnD size of ex-Nokia's, the only sane way I see is to reuse as much upstream as possible20:02
DocScrutinizer05my take on that is to reuse as much *maemo* as possible20:03
freemangordonsure20:03
freemangordonbut init system is not part of it20:03
DocScrutinizer05which directly results in "don't change the init system just because we can" considerations20:04
freemangordonthe change is not because we can, but because we can;t reuse it without an effort that doesn worths it20:04
freemangordonI don;t see the point spending 2 or 3 months porting maemo-upstart to upstream libs20:05
DocScrutinizer05you just said maemo supports maemopstart and sysvinit. Neither systemd is supported by either devuan or maemo, nor is another init system needed to make maemo work with devuan20:06
freemangordonin devuan, right now I can choose between upstart and sysvinit20:06
DocScrutinizer05all devuan upstream supports sysvinit as well right now, and will do so for a long time still20:06
freemangordonsure, but maemo sysvinit scripts are not LSB compatible in their most20:07
freemangordonso they just don;t get started20:07
freemangordonthe same goes for maemo upstart scripts20:07
DocScrutinizer05sorry, I'm not feeling like discussing this any further, it doesn't seem tolead anywhere20:08
freemangordonand we can;t just put maemo-upstart there, because upstream services are not compatible with it20:08
*** sparetire has joined #maemo20:09
*** drcode has joined #maemo20:09
*** drcode has quit IRC20:09
freemangordonwhy not, you seem to know how it works?20:09
sixwheeledbeastMaybe a hang over from original sysv nokia tablets that there are both?20:10
DocScrutinizer05all this leads to is bitching and flamewares very much similar to those seen from systemd people against devuan20:10
DocScrutinizer05and I'm not interested in this sort of battle20:11
freemangordonsixwheeledbeast: can;t parse, sorry :)20:12
DocScrutinizer05I won't convince anybody anyway, obviously. And I'm sick of taking insults when pointing at inconsistencies in other people's argumentation chains20:12
sixwheeledbeastYou say there are duplicate sysv and upstart scripts?20:12
freemangordonDocScrutinizer05: hmm? I insulted you?20:12
Enrico_MenottiDocScrutinizer05 Seen a mention of my name at 12.59 CEST. What did you mean?20:12
DocScrutinizer05freemangordon: not you20:12
DocScrutinizer05:-)20:13
freemangordonsixwheeledbeast: yep, should be something like that20:13
freemangordonDocScrutinizer05: then please, don;t put me in a group I don;t belong, ok20:13
DocScrutinizer05Enrico_Menotti: never mind, I just referred to yur learning about why it's so complicated to implement proper phonecalls in linux20:13
freemangordoneven if we assume such a group exists20:13
DocScrutinizer05freemangordon: sorry, wasn't my intention20:14
*** eMHa has quit IRC20:14
DocScrutinizer05I didn't invent or refer to any groups either20:14
Enrico_MenottiDocScrutinizer05 Ok.20:15
*** drcode has joined #maemo20:15
sixwheeledbeastIs maemo-upstart hugely different from upstream, I wasn't aware, I suppose that is a valid point.20:16
DocScrutinizer05freemangordon: I just said I have the feeling this discussion is pointless from my side and I'm sick of getting bashed for pointing at incorrect statements, not implying those were made by you20:17
*** drcode has quit IRC20:20
DocScrutinizer05sixwheeledbeast: depends, valid point for what. the basics we might agree on (at least i'd hope so) are: maemo been based on debian, then seen massive tweaks to make it fit for the particular usecase (NIT and phonecalls). So any differences between "upstream" and maemo need careful evaluation *why* they got introduced by Nokia, to start with. It's probably not the generally best approach to simply revert all of those differences to stay20:26
DocScrutinizer05as close to upstream as possible since then we could use debian plain-vanilla right away. In my book maemo is more than just the hildon desktop20:26
DocScrutinizer05after all Nokia engineers themselves for sure were interested in minimizing own workload by staying as close to upstream as possible20:28
DocScrutinizer05you can tell from maemo being what it is, and not looking like android or whatever20:29
DocScrutinizer05Nokia clearly had no agenda to buold walled gardens like pretty much all other smartphone OS developers like Goggle and Apple and younameit do20:30
DocScrutinizer05at least not with maemo5, for HARM aka maemo6 things changed a bit20:31
sixwheeledbeastIf there is a huge amount of work you have to consider options and how best to use your time to reach the goal.20:31
DocScrutinizer05how is that statement related, however true it may be?20:32
DocScrutinizer05unless it'smeant as being supportive for Nokia engineers' motivation20:33
DocScrutinizer05then yes, exactly this, so they didn't add changes from upstream for shits'n'giggles, they had no time for that20:34
DocScrutinizer05any change that created differneces to upstream was clearly motivated by a factual need created by the usecase20:36
DocScrutinizer05well, at least 95% were, I give then a 5% for ignorance or just "personal" or corporate-identity goals20:37
*** freemangordon has quit IRC20:40
*** freemangordon has joined #maemo20:41
*** err0r3o3__ has joined #maemo20:41
DocScrutinizer05compare to Google what has like 98% corporate goals in android20:44
*** err0r3o3_ has quit IRC20:45
DocScrutinizer05or RedHat that has 100% corporate goals as in masterplan, in pushing systemd avalanche20:45
*** jkepler has quit IRC20:56
*** eMHa has joined #maemo20:59
*** xy2_ has quit IRC21:15
*** xy2_ has joined #maemo21:19
*** xy2_ has joined #maemo21:20
*** jkepler has joined #maemo21:31
*** jkepler has quit IRC21:35
*** jkepler has joined #maemo21:40
*** jkepler has quit IRC21:47
*** xorly has joined #maemo22:02
*** jkepler has joined #maemo22:04
Enrico_MenottiEhm... I was trying to clone the git repo of current mainline Linux kernel on my old laptop with Devuan. Went out of disk space. Git clone aborted by itself. But now the disk is 98% full. However, I don't find any 'linux' directory. Where is all the stuff which had been downloaded already? (Cloning was at least at 20% when aborted.) Are there any log files of the git clone process anywhere? I'm trying to google for22:14
Enrico_Menotti all this, but no success yet.22:14
DocScrutinizer05Enrico_Menotti: check for .git dirs (ls -a)22:16
Enrico_MenottiDocScrutinizer05 No such dirs, already done that.22:16
Enrico_MenottiEven tried, from /, ls -Ral|grep .git. I only find .git dirs related to old clones of other projects.22:17
DocScrutinizer05what was your exactl git command?22:17
Enrico_Menottigit clone https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git.22:18
WizzupEnrico_Menotti: git will clean up if it fails22:19
DocScrutinizer05Enrico_Menotti: du -h / | sort -h | less22:20
Enrico_MenottiWizzup Yes, it should. But how is that I have 98% disk full? I didn't check before trying the clone, yes, but with such a filled disk I think it should have aborted much earlier.22:20
Enrico_MenottiDocScrutinizer05 Ok, a minute.22:20
*** jkepler1 has joined #maemo22:20
*** jkepler has quit IRC22:21
*** jkepler1 is now known as jkepler22:21
DocScrutinizer05this will take longer than a minute to complete, on an old hardware22:22
Enrico_Menotti:)22:22
DocScrutinizer05anyway should help you spot the nasty space hogs22:22
DocScrutinizer05use > to jump to end with hugest dirs, then b to page backwards22:23
DocScrutinizer05don't press q or you start again ;-)22:24
Enrico_MenottiWell, I don't see anything strange. There are some very big dirs in the root home directory, but they are related to other projects. Maybe I was really out of space already when started the git clone... Although seems strange. I will try again a git clone and see where it goes, just to check if the behaviour is the same. If yes, then I was already out of space before. If no, then the first git clone filled up the disk.22:29
timelessDocScrutinizer05: funny question about `find(1)`22:29
timelessconsider: `find . -mtime 1`; `find . -mtime +1`; `find . -daystart -mtime +1`22:30
timelessbased on reading the `man 1 find` under the section for `-mtime`, would you expect `-daystart` to matter?22:31
freemangordonany clue why "power off" button in system menu leads to "telinit 5" what is runlevel 5 on maemo?22:31
DocScrutinizer05haha mtime, huge inbconsistency between manpages and implementations22:31
DocScrutinizer05to start with, you wonder if mtamine +1 means one day back or to the future22:31
freemangordonI would expect runlevel 022:31
* timeless nods22:32
timelessfind's syntax is insane22:32
timelessand the various implementations of find make it even more exciting22:33
timelessfor simplicity, let's limit hell to gnu-find22:33
DocScrutinizer05freemangordon: l5:5:wait:/etc/init.d/rc 522:33
DocScrutinizer05l0:0:wait:/etc/init.d/minishutdown ;;  l6:6:wait:/etc/init.d/minireboot22:33
timelessDocScrutinizer05: anyway, my `man 1 find` man page for `-mtime` says ~see -atime for details~ ... but `-atime` doesn't mention `-daystart` which seems unfortunate22:34
freemangordonhmm22:34
DocScrutinizer05but then, as you mentioned already, maemo has maemopstart22:34
*** florian has joined #maemo22:34
*** florian has quit IRC22:34
*** florian has joined #maemo22:34
freemangordonisn't that sysvint script?22:34
DocScrutinizer05-daystart22:35
DocScrutinizer05              Measure times (for -amin, -atime, -cmin, -ctime, -mmin, and -mtime) from the beginning of today rather than from 24 hours ago.  This option only affects tests which appear22:35
DocScrutinizer05              later on the command line.22:35
timelessDocScrutinizer05: right... but... wouldn't it make sense for `atime` to mention `-daystart`?22:35
DocScrutinizer05freemangordon: yes, rzc/inittab22:35
DocScrutinizer05etc22:36
DocScrutinizer05timeless: man pages are not always 100% comprehensive22:36
freemangordonwhy the hell Nokia used runlevel 5 for shutdown?!?22:37
DocScrutinizer05timeless: -daystart mentions atime22:37
freemangordonthat doesn;t make any sense22:37
timelessDocScrutinizer05: just looking for support for filing a bug to improve it22:37
timelessyes22:37
DocScrutinizer05freemangordon: do they?22:37
timelessit just seems silly that -mtime has a backreference to -atime, but -atime doesn't have a backreference to -daystart22:37
DocScrutinizer05timeless: ack22:37
freemangordonDocScrutinizer05: telinit 5 will power off the device22:38
freemangordoniiuc22:38
Enrico_MenottiI'm already at 10% of download. Yes, seems situation didn't change with the first git clone, so yes, I think I was at 98% already. Ok, will do some cleaning. Sorry for having disturbed you.22:38
DocScrutinizer05freemangordon: aside from it being deprecated way in maemo (use dsmetool -b or simesuch instead), I think it just depends on what's in etc/rc.d/522:40
freemangordonDocScrutinizer05: sorry, my fault22:40
freemangordonyeah, right, I misread what you posted22:40
freemangordonI think dsme tries to enter act_dead mode through telinit 522:41
DocScrutinizer05that sounds more like it22:41
freemangordonbut then this log https://pastebin.com/JqRHg5bb doesn;t make sense to me22:42
freemangordonesp those 2 "go to actdead via reboot" and "Issuing telinit 5"22:44
DocScrutinizer05sorry, no clue, bever looked into it22:44
freemangordonPali: any idea ^^^ ?22:44
DocScrutinizer05might well be maemopstart mess22:45
DocScrutinizer05I suggest having a look into sbin/preinit22:46
DocScrutinizer05freemangordon: http://paste.ubuntu.com/2548577622:48
Palino idea about runlevels22:49
Palievery linux distro uses own scheme22:49
DocScrutinizer05and maemo is doubleplusweird22:49
PaliI would not be surprised if some RHEL would use runlevel 4 for shutdown22:50
DocScrutinizer05why not runlevel 9 ? ;-D22:50
Paligreat! in that script enter_state is nice mapping22:50
freemangordonPali: no, the question is why dsme issues telinit 5 for rebooting to act_dead22:51
freemangordonin inittab it is "l5:5:wait:/etc/init.d/rc 5"22:51
Palimaybe because of some charger problem?22:51
Palihmmm.... right... I remember one problem with kernel-power in qemu emulator22:52
freemangordonPali: well, this is VMWare running maemo perted over devuan, for sure thre is a problem with the charger :D22:52
freemangordon*ported22:52
Paliwhen I turned off Maemo via power button under normal stock kernel in qemu, then it was correctly turned off22:52
Paliand when I used same setup, just with kernel-power then it always go to actdead22:53
Palirebooted to nolo22:53
Paliand then nolo turned it off22:53
DocScrutinizer05yeah, seem same for some time22:53
freemangordonbut telinit 5 should not reboot it22:53
Paliand it is possible that similar problem is also on real n900 device with kernel-power22:54
Paliso maybe it is mce/dsme problem that it does not detect something related to charger correctly?22:54
Paliin kernel-power there is bme replacement22:54
Paliand nokia's bme daemon is not used22:54
DocScrutinizer05:-D see my pastebin above, getbootstate22:54
Paliso maybe because of this dsme/mce can be confused,22:54
Pali?22:54
DocScrutinizer05yes22:55
DocScrutinizer05detecting charger is tricky22:55
DocScrutinizer05very tricky22:55
PaliI know22:55
Paliin kernel there is a hack for it22:55
DocScrutinizer05anyway sorry, I'm out. Busy22:55
Paliand glue code between 3 layers22:55
* freemangordon is going to issue telnint 5 on the device to see what will happen22:56
Palifreemangordon: see dsme/modules/state.c22:57
Palithat would happen when CHARGER_STATE_UNKNOWN22:57
Palifunction select_state22:57
Palistart on line 18222:58
freemangordonhehe: DSME_RUNLEVEL_ACTDEAD  = 522:58
freemangordonok, so runlevel 5 is actdead :D22:58
Paliyes22:58
freemangordonI guess I should stop hildon-desktop and whatnot on that runlevel, right?22:59
freemangordonPali: btw https://github.com/fremantle-gtk2/mce/blob/gtk2/modules/battery-upower.c23:00
DocScrutinizer05you're trying to re-implement act_dead? prolyl not worth the effort23:00
DocScrutinizer05prolly*23:00
freemangordonlooks like it works, though it is yet to be tested on a device23:00
DocScrutinizer05act_dead is mainly meeded for BME/charging23:00
DocScrutinizer05so unless you plan to also implement that, you may forget about ACT_DEAD23:01
freemangordonyes, I plan to implement act_dead23:02
freemangordonremember, port whatever possible :)23:02
DocScrutinizer05and if you actually plan to reimplement that whole mess, please accept my condolences. It's probably very frustrating23:02
DocScrutinizer05even Nokia took literally years to finally debug it so it worked as supposed23:03
Palilooks like if you start dsme, its charger state is in CHARGER_STATE_UNKNOWN23:03
DocScrutinizer05the result is the very mess you just discovered23:03
Paliand when you request shutdown or reboot when in CHARGER_STATE_UNKNOWN, then you enter into actdead mode23:03
freemangordonyeah23:04
* DocScrutinizer05 shudders figuring the state diagram23:04
Paliso if you do not setup charger after starting dsme, you alvways get runlevel 523:04
freemangordonI see23:04
Paliin dsme is "batttest" program23:04
Paliwhich can be used to change charger state23:05
Palirun it with -c 023:05
Pali(charger disconnected)23:05
Paliand then it should work23:05
freemangordonok, seems I should tweak hildon-desktop and other init scripts to stop on runlevel 523:05
DocScrutinizer05sorry when I sound heretic or sarcastic, but... it'sprobably less effort to port maemopstart than to re-imvent ACT_DEAD incl all needed pieces23:06
freemangordonno, unfortunately it is not23:06
freemangordonif I do that, the whole devuan stuff in means of services will become useless23:07
freemangordonPali: but, do you have idea who is supposed to reboot then?23:07
* freemangordon checks runlevel 5 services on n90023:07
Palierrr I do not understand question23:07
freemangordonsee pastebin ^^^23:08
freemangordon"go to actdead via reboot"23:08
Paliand what is the problem?23:08
freemangordonwho is doing that reboot?23:08
Paliin log is: user pressed powerkey to shutdown device; event was received by systemui and it tell it to mce; them mce tell it to dsme; dsme checked charger status and becuase it was unknown it changed shutdown action to actdead; going into actdead means reboot23:10
Paliso DSME issued that reboot23:10
DocScrutinizer05yes, that's what i'd think too23:11
Paliit either started reboot script (which just send signal to upstart to do REAL reboot) or tell it to upstart directly23:11
freemangordonyes, this is what happens23:11
freemangordonbut at the end dsme issues telinit 523:11
freemangordonand expect device to reboot23:12
Paliand?23:12
DocScrutinizer05I *think* (rather suspect) that dsme talks directly to kernel23:12
freemangordonI don't see who is rebooting on runlevel 523:12
Palinope, reboot/shutdown is done by upstart for sure23:12
freemangordonmhm23:12
DocScrutinizer05then /sbin/init23:13
Paliso upstart23:13
freemangordonyes, but how?23:13
DocScrutinizer05but finally always it's kernel to shut down system23:13
Paliyes, but after upstart kill all services, start all "on shutdown scripts"23:13
Palietc...23:13
Paliupstart will then issue kernel syscall for shutdown23:14
Paliupstart is pid 1 daemon which listen for signals and also for commands from socket23:14
Paliand there is upstart client, named telinit23:14
DocScrutinizer05isn't it like kernel executes shutdown when pid1 terminates?23:14
Palino23:14
Paliwhen pid1 terminates, then kernel panic!23:14
freemangordonit will just panic afaik23:14
DocScrutinizer05ouch :-D23:14
Palisomebody must issue reboot syscall and pid1 needs to be still alive23:15
Palikilling pid 1 with SIGKILL would also lead to kernel panic :-)23:15
DocScrutinizer05echo "off" >/err/powerwhatever ?23:17
freemangordonok, found it23:17
freemangordontelinit on maemo is a script23:17
DocScrutinizer05LOL23:17
freemangordonwhich does /etc/init.d/minireboot in runlevel 523:18
freemangordon*on23:18
DocScrutinizer05sbin/init is 104kB ELF23:18
freemangordoninit != telinit23:18
Paliyes, it is upstart23:18
DocScrutinizer05yes, thus LOL23:18
Palitelinit is upstart client23:18
Paliinit is upstart daemon (pid1)23:18
DocScrutinizer05in former good ole' times telinit was a symlink to init23:18
DocScrutinizer05or even a hardlink23:19
Palimaybe it can be implemented based on argv[0] also today...23:19
freemangordonok, mystery revealed, now, how to fix that23:19
Palior based on getpid()23:19
DocScrutinizer05that's how telinit/init does it23:20
freemangordonmaybe put some act_dead upstart service that does what telinit 5 in maemo does23:20
DocScrutinizer05getpid()!=0 -> I'm telinit23:20
Paliand what do you want to achieve?23:20
freemangordongoing to actdead on telinit 523:21
Paliand what does actdead mean for you?23:21
DocScrutinizer05define ACT_DEAD ;-)23:21
freemangordonsee in /etx/X11/Xsession.actdead23:21
Palibecause in maemo it is runlevel in which nothing is running, just bme daemon + some led pattern23:22
freemangordonPali: not sure I understand your question23:22
DocScrutinizer05yep23:22
freemangordonyes23:22
Paliso you want to have also own actdead-like runlevel in devuan?23:22
freemangordonsure, why not?23:22
DocScrutinizer05though you *could* even run WLAN in ACT_DEAD X-P23:22
DocScrutinizer05there's a config in iirc mce/config23:23
PaliI'm asking what does that actdead mean for you...23:23
Palias in maemo it is special system runlevel23:23
freemangordonwhat you explained23:23
freemangordonyes, I know23:23
Palidevuan uses that runlevel for different thing23:23
Paliso there cannot be 1:1 mapping23:23
freemangordonI don't think anything besides 0,1,2 and 6 is used23:23
DocScrutinizer05errr23:23
Paliyes, there are used23:24
freemangordonwhat for?23:24
Palithey are same23:24
Palido same thing23:24
freemangordon2-5? sure, but I can redefine those23:24
DocScrutinizer05hmmm https://wiki.debian.org/RunLevel23:24
Palibut then you need to redefine all, I mean all, scripts from all deb packages23:24
Palibasically all daemons starts in those 2-5 runlevels23:25
freemangordonno, I will just disable services that are not needed, for example when maemo-system-services package gets installed23:25
Paliit is impossible to create in debian e.g. runlevel 5 in which only one daemon would run (fake-bme)23:25
freemangordonwhy not?23:25
Palibut those services are provided in different deb packages23:25
DocScrutinizer05anyway, have fun! :-) I'm off23:26
freemangordonoh, I meant - disable them gracefully23:26
Paliare you going to edit every one deb package and change it to stop own service in runlevel 5?23:26
freemangordonno, no23:26
Paliyou cannot do it in other way, you need to edit header of init script23:26
Paliin which is writting for which runlevels it should start23:26
Paliand for each it should stop23:27
DocScrutinizer05init scripts are distro specific. My point23:27
freemangordonfur upstart, I can disable a job with a command, the same goes for sysvinit23:27
freemangordon*for23:27
Palilook e.g. at lightdm23:27
Paliin /etc/init.d/lightdm is:23:28
Pali# Default-Start:     2 3 4 523:28
Pali# Default-Stop:      0 1 623:28
freemangordonPali: I understand what you mean, just truing to tell you there is a way23:28
freemangordonthis is the defaults23:28
Paliyes, defaults, configured when installing/upgrading23:28
Paliyou can overwrite defaults after installing deb package23:28
Palihttps://wiki.debian.org/RunLevel: Editing runlevels: Runlevels can be edited manually by editing control scripts in /etc/init.d and symbolic links in /etc/rc0.d ... /etc/rc6.d.23:29
freemangordonPali: update-rc.d23:30
Paliyes, but that is for updating *existing* init script *after* installation of deb package23:30
Paliit is for case admin want to change own script's runlevel after installation23:31
Paliand it is normal that admin would make some temporary changes23:31
Paliand then reset serttings to *defaults*23:31
freemangordonPali: yes, but one can put a trigger in debconf (or whatever it is called)23:31
freemangordonand check what is enabled after avaery installed .deb23:32
freemangordon*every23:32
PaliI would be angry if somebody break update-rc.d defauls!23:32
freemangordonPali: ok, I don't want to make you angry, then we might invent another runleve, like 723:32
freemangordon8 is already used for MALF in maemo :)23:32
Palicreating a new runlevel is PITA too23:33
DocScrutinizer05too late, runlevels 7 to 9 already exist :-)23:33
freemangordonPali: also, we're talking maemo here, not devuan running on a server23:33
Palias scripts do not have confiugured to stop in new invented runlevels23:33
Paliand do not forget that scripts/daemons have its own shutdown procedure in init files23:33
freemangordonactually it is "stop on runlevel [!2345]"23:34
Paliwhich is sometimes needed and simple kill -9 would cause problems23:34
Palie.g. udev23:34
freemangordonPali: ok, got it, what you suggest then23:34
Pali"stop on runlevel [!2345]" is better, but that is upstart right?23:34
freemangordonright23:34
PaliI'm thinging about better solution....23:34
DocScrutinizer05get your distro specific init23:35
freemangordonok, I am all ears... well, eyes :)23:35
DocScrutinizer05init is one of the major distro specific config topics23:35
freemangordonDocScrutinizer05: for the Nth time - it will break all upstream services23:35
DocScrutinizer05no23:36
Palicannot be runlevel 1 modified for it?23:36
DocScrutinizer05devuan gets their own init config and it doesn't break debian upstream23:36
Paliin 1 running small number of services23:36
freemangordonyes, it will, as maemo-upstart looks in /etc/event.d , not in /etc/init23:36
DocScrutinizer05every distro has their own init config23:37
Paliand init script for single could be modified to check presence e.g. of /run/actdead and based on this decide if real single is started23:37
freemangordonPali: single user for battery charging. why not23:37
Palior just actdead23:37
DocScrutinizer05actually everything under /etc is highly proprietary to the particular distro23:37
freemangordonPali: ok, sounds like a plan23:38
freemangordonbut what about MALF?23:38
freemangordonor use 1 as well23:39
Palialso 1?23:39
DocScrutinizer05systemd is forcing pan-distro uniformity, anot the least by moving init config to /usr/23:39
Paliyou can create some file in /run to check if current state is actdead or malf23:39
Paliif e.g. some dsme/mce/bme needs to know this fact23:39
freemangordonit is already created, /var/dsme/saved_state or something23:39
Paliso better23:40
freemangordonbut then, who is going to do the "split"?23:40
freemangordonand start the services?23:40
freemangordonwhat are the drawbacks of runlevel 7 and 8?23:41
Palithat not all services would be turned off23:42
freemangordonbut this is what we want actually23:42
freemangordonyou don;t need anything besides mce/dsme running, right?23:43
freemangordonand this is needed only for fancy stuff like LEDs23:43
freemangordonah, wait23:44
freemangordonnot all will be off?23:44
freemangordonso, if a runlevel is missing in LSB, the service will be started?23:44
freemangordonLSB header that is23:45
Paliyes, because if in init.d script is written to stop in 0, 1 and 6, then it would not be stopped in 723:45
Paliif is missing, then service would not be started nor stopped23:45
freemangordonbut we're talking after reboot here23:45
Paliso if is already running, then it stay running23:45
freemangordonso nothing is started23:45
freemangordonhmm, "init: illegal runlevel: 7"23:46
freemangordonPali: ok, please, think about that, I'll follow whatever you say here23:48
freemangordonI don;t feel comfortable with those boot scripts anyway23:49
freemangordonPali: actually 1 in not single-user state23:49
freemangordonis is 'S' or 's'23:49
Paliread this: https://manpages.debian.org/stretch/sysvinit-core/init.8.en.html23:53

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!