libera/#maemo-leste/ Friday, 2022-04-29

freemangordonbuZz: yes, conversations still lack los of things07:12
freemangordon*lots07:12
freemangordonin addressbook, stuff works, but you need your account to be online07:12
freemangordondo you have any account set up?07:13
buZzaccount??09:02
buZzfor what?09:02
freemangordonumm...09:13
freemangordonlike google-talk, or irc, or...09:13
freemangordonwhom do you want to chat to?09:14
freemangordona conversation need "from" and "to" parties, no?09:14
freemangordon*needs09:14
buZzeh?09:20
buZzoh09:21
buZzi'm using it for SMS09:21
buZzdidnt know it did anything else09:21
buZzi wish i could copy details from addressbook to actually use09:22
buZzor tap on a number for calling or sending a txt09:22
freemangordontapping on number fro sms should work09:31
freemangordonbut it needs /ring/tel/account0 telepathy account to be created09:32
freemangordondon't know if conversations registers itself with telepathy though, Wizzup knows better09:33
freemangordonsicelo: a side question - do you know if there is a chance to enable tls1.2 on fremantle?10:18
Wizzupmorning10:18
freemangordonhi!10:18
freemangordonWizzup: the same question to you10:18
sicelofreemangordon: i think jonwil tried at some point. while he had some success, overall it was an uphill climb10:30
siceloHe was focusing mostly on tls1.2 for microb10:31
siceloWhy you ask though?10:31
buZzfreemangordon: it doesnt work anyway :P10:31
buZzand not really any clue how telepathy should work :P10:32
buZzor works10:32
siceloit works via telepathy :-p10:32
siceloDictionary definition10:32
Wizzupfreemangordon: no idea @ fremantle, I think I just want to move to leste asap10:32
WizzupbuZz: conversations in repo is read-only for the db atm10:33
WizzupbuZz: I'm going to continue work on it basically now with dsc__10:33
freemangordonWizzup: yea, but I have to connect to outlook.office.365 from my n900 fremantle :)10:35
freemangordonwill try to setup mtimproxy10:35
buZzWizzup: ah yeah, couldnt send SMS from it, worked with the sphone sms sender though10:38
Wizzupyes10:39
Wizzupfreemangordon: there is a way to do this10:39
Wizzupfreemangordon: what protocol is it10:39
freemangordonhttps I guess10:39
Wizzupyou can run a local proxy written in a static language, say go, that sends it on10:40
freemangordonyeah10:40
WizzupI have done this in the past and can try to dig it up10:40
freemangordonplease do10:40
Wizzupok10:40
freemangordonbut, I am not sure modest supports proxy10:40
Wizzupyou don't use proxy10:40
Wizzupyou just point it at localhost10:40
freemangordonso it must be transparent ssl proxy, somehow10:40
freemangordonah, ok10:41
Wizzupi'd be like ./go-proxy-thing -remote outlook.office.365 -local localhost:777710:41
Wizzupor w/e10:41
freemangordonyeah10:41
Wizzup(searching)10:41
freemangordonthanks10:41
sicelofreemangordon: activesync?10:42
freemangordonmhm10:42
siceloor imap?10:43
freemangordonactivesync10:43
buZzis there somewhere a list what telegraphy can support as transports?10:43
buZztelepathy10:44
buZzi mean, not all that 'ever' worked, but what currently works ;)10:44
freemangordongtalk for sure10:44
buZzthats xmpp right?10:45
freemangordonmhm10:45
buZzactually cant even remember if i ever used gtalk :P is that the phonecalls one aswell?10:45
freemangordontelepathy-gabble10:45
freemangordonyeah, but google removed voice/video support10:45
Wizzupfreemangordon: ok let me test this10:45
buZzah10:45
buZztelepathy-gabble is a connection manager for the XMPP (Jabber) protocol. It uses Wocky for implementing the XMPP protocol and Telepathy GLib for implementing the Telepathy D-Bus API.10:46
freemangordonWizzup: thanks10:46
siceloYes gabble is xmpp10:46
freemangordonbuZz: you need telepathy-ring as well10:46
freemangordon(for sms/phone)10:46
buZzi have functioning sms already10:46
Wizzupfreemangordon: what is the host, outlook.office.365 is not right10:46
buZzat least, they arrive in conversations10:46
Wizzupoutlook.office:36510:46
Wizzup?10:46
freemangordonWizzup: outlook.office365.com10:46
Wizzupport ?10:47
freemangordon44310:47
siceloI am afraid tls might be less of your problem. Unless you're lucky your admins haven't set the base activesync policy too high.10:47
freemangordonsicelo: admin is my friend10:47
freemangordon:)10:47
freemangordonso my device is allowed10:47
siceloOr lucky you :-)10:47
freemangordonit is just that recently server just resuses tls1.010:47
freemangordon*refuses10:47
freemangordonas soon as it sees tls1 client hello, it drops the connection10:48
Wizzuphm, ok, well, my proxy solution might work, but if the server does weird https redirects it might not work10:48
Wizzup(to other hosts etc)10:48
sicelo Wizzup's proxy thing should work then. Also halftux has similar using nginx (documented on tmo)10:48
freemangordonI hope it does not10:48
Wizzuphttps://dpaste.com/E79G8BZXL10:49
freemangordonis that some kind of reverse proxy?10:49
Wizzupbuild with GOOS=linux GOARCH=arm go build proxy.go10:49
Wizzupyes, you tell it what host to forward local connections to10:49
freemangordonumm, where to build?10:49
Wizzupsudo ./proxy -remote outlook.office365.com:443 -local 127.0.0.1:8010:49
Wizzupshould work on ubuntu10:49
WizzupI can also build it for you10:49
freemangordonok, lemme try10:49
freemangordonno, my ubuntu is old, lets try on it10:50
Wizzupyou should get static executable10:50
freemangordonok10:50
Wizzupiirc I had some problems with it not finding the certs on the n90010:50
Wizzupbut that we'll see later10:50
freemangordonmhm10:50
Wizzup(you could tell it not to verify, but yikes)10:50
freemangordonafaik there is a difference in hashes between 0.9.8 and 1.x10:50
Wizzupnot just that but you might lack newer certs too10:51
freemangordonno, certs are fine10:51
freemangordonI was able to connect till a week or so ago10:51
siceloFor the sake of logs, the nginx way: https://talk.maemo.org/showpost.php?p=1566371&postcount=6810:52
siceloBinary is here, https://talk.maemo.org/showpost.php?p=1563641&postcount=4410:53
Wizzupyeah the nginx way might be more solid10:53
Wizzupoh I remember, I made an irc bot in go and ran it on fremantle10:53
freemangordonlemme try the proxy first10:54
freemangordonWizzup: x86_64-linux-gnu-gccgo-8: error: unrecognized command line option ‘-marm’; did you mean ‘-mabm’?10:55
freemangordonthis is in leste VM10:55
freemangordonlemme try something10:56
Wizzuphm I don't have this problem on gentoo10:57
WizzupI don't use gccgo for what it's worth10:58
freemangordonbut what?10:58
Wizzupthe default should just be go or golang10:58
Wizzuplet me check10:58
freemangordonoh, golang maybe10:58
WizzupI have to start my d4 because it keeps powering off10:58
freemangordonyeah, lemme try10:58
freemangordonwith golangf10:58
Wizzupso is this for email or something else10:59
freemangordonyes10:59
freemangordonemail10:59
freemangordonand calendar etc10:59
Wizzupok11:00
freemangordonsuccess with golang11:01
Wizzupok, let's hope it actually works for your purposes too11:01
Wizzupit has a -verbose flag too11:01
freemangordonlet me see if it will work on n90011:01
freemangordongetting there :)11:04
freemangordon2022/04/29 12:06:00 Backend error: x509: certificate signed by unknown authority11:04
Wizzuphm11:06
Wizzupyeah so it can't find the certs I guess11:06
freemangordonmhm11:07
Wizzupyou could disable verification11:07
Wizzup(as a test)11:07
freemangordonlemme try nginx first11:07
Wizzupok11:07
Wizzupbut nginx way requires a proxy11:08
Wizzupso you need to make sure that works I guess11:08
freemangordonah, right11:08
freemangordonI have no idea about go, how to disable verification?11:08
Wizzupsec11:08
WizzupI do I think11:08
Wizzupit's just a tls.config{} thing11:08
Wizzup&tls.Config{InsecureSkipVerify: true}11:09
Wizzuptry that11:09
Wizzupif it requires specific host names in the requests we might need to add that11:10
Wizzuphonestly I just hope it works for your use case and we can forget about it :p11:10
freemangordonmhm11:11
Wizzupone problem is that this just strips the tls layer, so you still need to make sure you provide the server with a host it knows11:11
Wizzupi.e. wget -O - http://localhost:someport will pass 'localhost' to the remote ip11:11
Wizzupthere's probably something clever that can be done but I haven't tried11:11
Wizzupwe mostly used this as $previousjob because the windows machines couldn't do proper tls11:11
Wizzupthis at*11:12
r3boot-H 'Host: some.virtual.host'11:12
freemangordon./asredirect.go:76:17: &tls.Config literal evaluated but not used11:12
Wizzupfreemangordon:             r, err := tls.DialWithDialer(&net.Dialer{Timeout: *timeout}, "tcp", *remote, &tls.Config{InsecureSkipVerify: true})11:12
freemangordonah, ok :)11:12
Wizzupr3boot: right, but this is some pos software for outlook11:12
Wizzup;)11:12
Wizzup(I think)11:13
r3bootOh, check :)11:13
Wizzupas in, I think so11:13
Wizzupmaybe it's some exchange thing11:13
Wizzupfreemangordon: welcome back11:14
freemangordongnome crashed :D11:14
freemangordonlemme see if VM fs is corrupted11:14
sicelonginx requires what proxy? It's a proxy itself11:24
freemangordonWizzup: getting "invalid username or password", getting there it seems11:27
Wizzupmhm11:29
Wizzupsicelo: that's the point, it only works if the software can use a proxy (nginx)11:29
siceloOk. If the proxy is set system wide, should work for modest too. But maybe I'm missing something:-)11:31
Wizzupright, potentially11:32
freemangordonWizzup: will this proxy accept ssl connections?11:35
freemangordonor I shall enabled that somehow?11:35
freemangordon*enable11:36
Wizzupssl 3.0?11:39
Wizzupfreemangordon: no only plain11:39
freemangordontls1.011:40
Wizzupif you want tls1.0 to tls1.2 it gets more tricky I think11:40
Wizzupthen you'll need to make a cert, and install the ca of that cert in the n900 trusted store11:40
freemangordonI will add self-signed cert, no problem11:41
Wizzupok I will need to look at the go code and figure out how to do that again11:41
Wizzupit's not too hard11:41
freemangordonlemme first try to go through hosts file11:41
Wizzupthat might be hard since it will also affect go11:41
Wizzupbut you can try11:41
freemangordonto have the real url in the http request11:41
freemangordonoh, right11:41
freemangordongrrr11:41
Wizzupyou can use the ip in go, but it might get weird with hosts again11:42
freemangordonyeah11:42
freemangordonlemme try ip11:43
Wizzupit might fail to validate the remote11:44
freemangordonit fails either ways :)11:44
freemangordonI am still getting 40111:44
Wizzupweird11:47
Wizzupwhat reports 401? modest?11:47
freemangordonoutlook11:47
Wizzupit could be that you get 401 because the server doesn't know what host you want to connect to11:47
Wizzupand it thus picks the wrong host11:47
Wizzupfor which your user is not valid11:47
freemangordonit is there11:48
Wizzupthis could become a very deep rabbit hole11:48
freemangordonHost: outlook.office365.com11:48
Wizzupok11:48
freemangordonbut I suspect the issue comes from:11:48
freemangordonrequest URI starting with HTTP://11:49
freemangordoninstead of HTTPS://11:50
freemangordonlemme try https proxy11:50
Wizzupuvos: maybe 'kernel panic with v5.18-rc1 on OpenPandora' is related to the wifi regression you saw11:57
mighty17[m]tmlind https://github.com/tmlind/wlroots/commit/2ec83ab4f11b1f574d565bd04bbef2e55f154d76 did you test this to work12:10
mighty17[m]on 0.14.112:11
freemangordonseems that as-daemon supports proxy12:29
tmlindmighty17[m]: no, i've only been testing what the commit is based on as things have been changing, the most recent one is https://github.com/tmlind/wlroots/tree/missing-unpack-subimage12:41
Wizzupfreemangordon: shall I build gabble for non-devel12:42
freemangordonyes12:51
Wizzupok12:56
Wizzupfreemangordon: btw I made tools to more easily diff the repos12:57
Wizzupfreemangordon: you can try like12:58
Wizzuppython3 repodiff.py beowulf-devel beowulf -t missing -f source12:58
Wizzupor12:58
Wizzuppython3 repodiff.py beowulf-devel beowulf -t newer -f source12:58
freemangordonWizzup: yes, I saw it13:04
freemangordonbut kinda ignored it as I was focused on presence-ui :)13:04
Wizzupok13:05
mighty17[m]<tmlind> "mighty17: no, i've only been..." <- It's the same commit, but it doesn't work with phosh on 0.14.1 wlroots13:27
mighty17[m]https://paste.debian.net/1239407/13:28
mighty17[m]https://github.com/tmlind/wlroots/commit/8f5f7aad3dac16362bc4e66c4a4fcb0dc545bf0f is this related to it?13:30
tmlindmighty17[m]: you need to use mesa and the blobs from m-l repos with wlroots13:33
tmlindand then you need the mesa patch for "egl/dri2: Workaround for EGL_EXT_image_dma_buf_import_modifiers version check"13:36
tmlindthe link for that should be in the irc logs for file 0001-egl-dri2-Workaround-for-EGL_EXT_image_dma_buf_import.patch13:37
tmlindnot sure if wlroots 0.14.1 behaves the same as current devel version, but yeah just one wlroots and one mesa patch should be currently needed13:38
mighty17[m]Already using mesa from fmg/m-l I'll look into the logs13:47
mighty17[m]It was working fine with 0.12 wlroots btw13:48
Wizzupok, most packages are not synced from -devel to stable (apart from the -devel ones like sphone, conversations, all the pulse stuff, etc)13:49
Wizzupare now*13:49
Wizzupah I think my d4 had a loose battery contact13:51
uvosfreemangordon: so dose mce work when autolock is set via gconf with the old cp applets?14:06
Wizzupok yeah the battery contact problem seems fixed14:08
freemangordonuvos: yes14:18
freemangordonuvos: umm, you mean latest?14:18
freemangordonunless you have fixed something, it does not14:18
uvosyeah i updated mce yesterday14:18
freemangordonah. sorry, I have to run now, will be mia for the weekend, will test on Sunday14:19
uvosi dont use gconf and i dont use the old cp applets so i cant trest it easily14:19
uvosbut fix was pretty trivial14:19
freemangordonI guess sicelo can test14:19
freemangordonor somebody else14:19
freemangordonsorry, have to run, ttyl14:19
* enyc meows15:42
uvosfreemangordon: some more info on why abadoning osso_service for xterm would be totaly fine:17:42
uvosso according to https://github.com/pixelb/ps_mem which devides shared memory by processes that use them a xterm process uses ~ 4.9MiB ram when launched with maemo-launcher and 5.4MiB without17:44
uvosso you could have 150 xterms open on d4 and have enough ram to spare for everything else17:44
uvosthats reason 117:45
uvosreason 217:45
uvosxterm when launched via its binary allready uses dbus to open a new window instead of spawing a new process, this is how all normal linux signelton applications do this, and is implemented by glib or legacy gnome libunique, (well xterm implemts this by hand but that dosent really matter)17:46
uvosthis also goes to show that maemo-launcher is a waste of time that makes it harder to package mameo stuff for other distros for no reason17:47
uvossince it 1. saves almos no time over  just having the libs in page cache, something you can easly achive with systemd-readahead for any lib you want not just the ones launcher uses17:48
uvos2. saves on about 500KB ram per process17:49
uvos3. relies on internal implementation details of the "boosted" libs that would be a huge maintiance burden17:49
uvosif boost modules existed for libs that are actively developed17:49
uvos500KB per process for on the order of 10-20 processies is nigh irrelivant17:50
uvoson d417:50
uvosand you have to remember17:50
uvosd4 is crushingly obsolete17:50
uvosit cant even really connect to mobile data anymore17:51
uvosany phone any normal user is ever going to want to use is going to be even less resource constrained17:51
uvosanyhow theres no good excuse to say "resource constrained" to stop people from having more than one pdf open17:54
uvosand so on17:54
uvosit just dosent make sense anymore17:54
uvosand maemo-launcher feals like a rather desperate hack to get the rather bloated (relative to android from the same time period) maemo 5 to just about fit into the n900s smallish (even for the time) memory17:56
tmlindyeah that dbus crap did not make sense back then either20:01
uvostmlind: btw since shuting down the modem in kexecboot, i have had no boot failures, not even the random boot failuers i used to get without the evil sim21:49
uvossuggesting these are a related, probubly a race that the sim affects the timeing of21:50
uvoswaiting 3 or so seconds for the modem to shut down is a bit annoying tho21:51
uvosim going to investigate if i can just nix the regulator and kexec immidiatly later21:51

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!