freemangordon | Pali: there is nothing on gitorious valhala :( | 00:03 |
---|---|---|
freemangordon | projects are listed, but that's it | 00:03 |
freemangordon | "404 - No projects found " | 00:03 |
Pali | git clone worked fine | 00:04 |
Pali | on original uri | 00:04 |
Pali | at least about month ago | 00:04 |
Pali | which project are you trying to find? | 00:04 |
freemangordon | but I don't know the original url, otherwise I want sapwood | 00:05 |
freemangordon | https://gitorious.org/maemo-af/sapwood.git/ | 00:05 |
freemangordon | "fatal: repository 'https://gitorious.org/maemo-af/sapwood.git/' not found" | 00:06 |
Pali | looks like gitorious is not working now :-( | 00:06 |
Pali | maemo.org infra has backup of all maemo repos | 00:07 |
freemangordon | Pali: didn't we have a backup of that? I am sure we had | 00:07 |
Pali | so ask merlin1991 | 00:07 |
freemangordon | any clue on which server? | 00:07 |
freemangordon | I have acces to the servers | 00:07 |
Pali | on some backup | 00:07 |
*** Michael_a380 has quit IRC | 00:11 | |
*** pagurus has joined #maemo | 00:39 | |
NeKit | https://sendvid.com/lm3ngj9p - no input yet and size is wrong, but at least it starts :) | 00:48 |
freemangordon | NeKit: "Терминал"? where are you from? | 01:13 |
*** dafox has joined #maemo | 01:13 | |
freemangordon | NeKit: that page makes my adblocker go crazy :) | 01:15 |
xes | freemangordon: gitorious backups are saved into stage | 01:24 |
freemangordon | xes: yep, already found them :) | 01:25 |
xes | ok | 01:25 |
*** dafox has quit IRC | 01:29 | |
*** dafox has joined #maemo | 01:30 | |
*** robink has quit IRC | 01:33 | |
*** dafox has quit IRC | 01:42 | |
*** dafox has joined #maemo | 01:42 | |
*** robinak has joined #maemo | 01:49 | |
*** louisdk has quit IRC | 02:05 | |
*** Oksanaa has joined #maemo | 02:20 | |
*** spinal84 has quit IRC | 02:24 | |
*** Michael_a380 has joined #maemo | 02:47 | |
*** dafox has quit IRC | 03:05 | |
*** florian has quit IRC | 03:05 | |
*** Pali has quit IRC | 03:37 | |
*** Oksanaa has quit IRC | 03:42 | |
*** Kabouik has quit IRC | 03:44 | |
*** pagurus` has joined #maemo | 04:09 | |
*** pagurus has quit IRC | 04:13 | |
*** LauRoman|Alt has joined #maemo | 04:21 | |
*** LauRoman has quit IRC | 04:24 | |
*** Oksanaa has joined #maemo | 04:38 | |
Oksanaa | Would upgrading kernel-power be dangerous for N900 with broken charging port? | 04:40 |
Oksanaa | Current kernel seems to be 2.6.28-10power52 , thumb | 04:42 |
Maxdamantus | You should probably install u-boot. | 04:45 |
Maxdamantus | rather than just another kernel. | 04:45 |
Maxdamantus | that way if your userland is messed up you can boot something off an SD card to fix it. | 04:45 |
Oksanaa | Not installing, upgrading. Kernel-power is already here, just haven't upgraded it for a long time. | 04:48 |
Oksanaa | U-boot... No idea. We might have one SD card somewhere. | 04:49 |
Oksanaa | Is multiboot the one which increases chances of device being bricked? | 04:49 |
Maxdamantus | The point of u-boot if you don't have USB anymore is that if your system no longer boots you can probably still recover by booting something like RescueOS then getting the rest of the system back to a state that works. | 04:49 |
Oksanaa | Because one device with broken charging port became "Guru" brick on kernel upgrade due to something-boot conflicting with kernel upgrade. | 04:50 |
Oksanaa | If u-boot is safe, will install it. | 04:50 |
Maxdamantus | since if your system just stops booting due to a misconfigured file in /etc or something, you might not be able to recover again without getting access to the USB pins. | 04:50 |
Oksanaa | Or rootfs being full ^ | 04:51 |
Maxdamantus | Yes, I can imagine that being an issue too. | 04:51 |
Oksanaa | Which package? *Grimace* too many things displayed by apt-cache search u-boot | 04:53 |
Maxdamantus | Dunno. I've always just used flasher from a computer (which obviously uses USB) | 04:54 |
Maxdamantus | and use my own compilation of u-boot. | 04:54 |
*** pcfe has quit IRC | 04:54 | |
Oksanaa | Bootloader, right? Not just companion tools | 04:55 |
Maxdamantus | It would be the bootloader, yes. The companion tools are probably things like `mkimage` | 04:56 |
Maxdamantus | Usually with u-boot on N900, there'll be a kernel written after u-boot itself. | 04:57 |
Oksanaa | What would be the minimum installation of bootloader, the least risky one? Which gives option to boot from SD card if one is installed? | 04:58 |
Maxdamantus | I think all the N900 builds that are likely to be distributed will have an entry in pali's bootmenu system to load something from the SD card. | 04:59 |
Oksanaa | What is bootmenu? Part of u-boot? | 05:00 |
Maxdamantus | Do you have another N900 to experiment with beforehand? | 05:00 |
Oksanaa | U-boot-flasher says it will replace existing kernel | 05:00 |
Oksanaa | Not at hand | 05:00 |
*** pcfe has joined #maemo | 05:02 | |
*** pcfe has quit IRC | 05:02 | |
*** pcfe has joined #maemo | 05:02 | |
Maxdamantus | It's a menu in u-boot, so when you turn the device on, you can choose to boot the appended kernel or run a script from the first partition of the SD card, etc | 05:02 |
Oksanaa | I just want a u-boot which will not try to confli | 05:02 |
Oksanaa | conflict with kernel-power | 05:03 |
Maxdamantus | Yeah, so you'd probably want one that has the version of kernel-power you want included. | 05:03 |
Maxdamantus | Though it might be better ultimately to have a boot partition on eMMC that holds your kernels, so you don't have to reflash anything when you want to upgrade. | 05:05 |
Oksanaa | u-boot-for-power-kernel sounds like it constructs the image, not like it pre-includes it | 05:05 |
Oksanaa | Installing bootmenu | 05:09 |
Oksanaa | Installing bootmenu | 05:09 |
*** Oksanaa has left #maemo | 05:09 | |
*** Oksanaa has joined #maemo | 05:15 | |
Oksanaa | Changed battery. Bootmenu installed. It doesn't conflict kernel-power, right? How to check whether it auto-detects SD card to boot from? | 05:16 |
Oksanaa | Leds are still not working, all the same. Wonder what the problem is... | 05:19 |
Maxdamantus | When I say "bootmenu", I mean the one in u-boot, not the userland "bootmenu" that exists in some Maemo package. | 05:20 |
Maxdamantus | Does `lsmod` show `leds_lp5523`? | 05:21 |
Oksanaa | lsmod | grep lp leds_lp5523 10048 0 led_class 3460 2 leds_lp5523,leds_twl4030_vibra | 05:22 |
Oksanaa | Same on your side? Any way to see errors of kernel modules? Because kernel modules for lp5523 exist, but lp5523 do not appear in /sys/class/leds | 05:30 |
Maxdamantus | Yes, same here. | 05:31 |
Oksanaa | At least, vibrator works, that's good. | 05:31 |
*** lxp1 has joined #maemo | 06:01 | |
*** lxp has quit IRC | 06:04 | |
Oksanaa | It's all confusing. u-boot (lots of packages), backupmenu (potentially useful, auto-notices SD card?), multiboot (not good with kernel-power), recovery-boot, nitdroid-installer (not needed atm?), bootmenu and bootmenu-n900 | 06:34 |
*** pagurus` has quit IRC | 06:41 | |
*** DocScrutinizer05 has quit IRC | 07:05 | |
*** DocScrutinizer05 has joined #maemo | 07:05 | |
*** DocScrutinizer05 has quit IRC | 07:05 | |
*** Michael_a380 has quit IRC | 07:57 | |
*** Michael_a380 has joined #maemo | 08:47 | |
Michael_a380 | Bagged the n9 for $10.50. :) Will pick-up during the week. Can a sim card be tested without the door? | 08:56 |
*** jon_y_ has joined #maemo | 08:56 | |
*** jon_y has quit IRC | 08:57 | |
*** jon_y_ is now known as jon_y | 08:58 | |
hurrian | Michael_a380: you _could_, definitely do not recommend it though. you'll end up having to fish it out of the SIM cage if you do it wrong | 09:05 |
Oksanaa | Better just get the SIM tray. Shipping may cost, though. | 09:12 |
Oksanaa | Unless you want to drill the SIM card and put a thread through it, to make it easier to get SIM card out... But margin for error is small, make sure to not damage the SIM card. | 09:14 |
Maxdamantus | Doesn't seem *that* small, given that practically any SIM card you buy is just a nano-SIM inside a micro-SIM inside a mini-SIM inside a full size SIM. | 09:17 |
Maxdamantus | Looks like there's a decent amount of room in the mini-SIM part to drill a small hole. | 09:18 |
Maxdamantus | (the relevance of the nano-SIM thing is that there is obviously no circuitry around the nano-SIM portion) | 09:20 |
Oksanaa | Don't remember size of SIM for N9, but it's smaller than size of SIM for N900. | 09:21 |
Michael_a380 | thanks | 09:22 |
Maxdamantus | It's a micro-SIM. | 09:22 |
Maxdamantus | er, I meant there's a decent amount of room in the micro-SIM part, not the mini-SIM part. | 09:23 |
Maxdamantus | don't think you could fit a mini-SIM in the slot. | 09:23 |
Maxdamantus | though if you can figure out the dimensions, I imagine you could sand down a mini-SIM so it fits properly in the slot, probably with something behind it to wedge it in place. | 09:24 |
* Maxdamantus doesn't want to recommend it. | 09:24 | |
Oksanaa | Yes, microsim does still have some good space. | 09:26 |
Michael_a380 | Very helpful, thanks. I probably not risk it. | 09:36 |
Michael_a380 | *I'll | 09:36 |
*** jon_y has quit IRC | 09:57 | |
*** spinal84 has joined #maemo | 09:58 | |
*** jon_y has joined #maemo | 09:59 | |
*** LauRoman|Alt has quit IRC | 09:59 | |
*** Oksanaa has quit IRC | 10:03 | |
NeKit | freemangordon, Russia. As for ads, sorry, mine just silently blocked them all :) | 10:34 |
bencoh | freemangordon: wasn't gitorious supposed to be fully archived by archive.org at some point? | 10:41 |
*** LauRoman has joined #maemo | 10:45 | |
KotCzarny | 'Oksanaa > At least, vibrator works, that's good.' | 10:48 |
* KotCzarny snickers | 10:48 | |
freemangordon | bencoh: it was.... | 10:56 |
*** krnlyng has quit IRC | 11:19 | |
*** xorly has joined #maemo | 11:20 | |
*** Michael_a380 has quit IRC | 11:20 | |
bencoh | freemangordon: did you check archive.org then? | 11:24 |
*** krnlyng has joined #maemo | 11:33 | |
*** Michael_a380 has joined #maemo | 11:36 | |
*** xorly has quit IRC | 11:45 | |
*** Pali has joined #maemo | 11:52 | |
*** florian has joined #maemo | 12:22 | |
*** spinal84 has quit IRC | 12:44 | |
*** florian has quit IRC | 12:57 | |
*** louisdk has joined #maemo | 12:58 | |
hurrian | "vibrator works, that's good" | 12:58 |
hurrian | heh | 12:58 |
KotCzarny | vroom | 12:58 |
totalizator | ^ x2 | 12:59 |
*** spinal84 has joined #maemo | 13:24 | |
Vajb | hmm somehow ifconfig is lost from my device | 13:39 |
*** Oksanaa has joined #maemo | 13:40 | |
Vajb | lol forgot to be root | 13:40 |
Vajb | scratch that | 13:40 |
*** pagurus has joined #maemo | 13:40 | |
Oksanaa | Tried apkenv 42.4.0 for Fremantle from TMO, doesn't seem to work. With Petals Redux.apk, just opens a black/blank window... And slows everything down. | 13:42 |
Oksanaa | Using GLES version 2, it says. Any dependencies I should have installed? | 13:44 |
*** pagurus has quit IRC | 13:52 | |
*** Oksanaa has left #maemo | 13:55 | |
*** florian has joined #maemo | 13:58 | |
*** pagurus has joined #maemo | 14:09 | |
*** Michael_a380 has quit IRC | 14:12 | |
*** pagurus has quit IRC | 14:13 | |
Wizzup | bencoh: by archive team, I think | 14:15 |
*** Kabouik has joined #maemo | 14:20 | |
bencoh | Wizzup: indeed | 14:23 |
Wizzup | (they are not archive.org fyi) | 14:24 |
bencoh | right, they're not exactly archive.org | 14:24 |
bencoh | afaiu either the archive team or one of the archive team member is supposed to maintain it | 14:24 |
*** DocScrutinizer05 has joined #maemo | 14:25 | |
*** pagurus has joined #maemo | 14:48 | |
*** F3l1x_10m has quit IRC | 14:49 | |
*** F3l1x_10m has joined #maemo | 14:52 | |
*** pagurus has quit IRC | 14:52 | |
*** pcfe has quit IRC | 14:54 | |
*** F3l1x_10m has quit IRC | 14:54 | |
*** F3l1x_10m has joined #maemo | 14:55 | |
*** F3l1x_10m has quit IRC | 14:57 | |
*** F3l1x_10m has joined #maemo | 14:58 | |
*** GoNeL has joined #maemo | 15:00 | |
*** pcfe has joined #maemo | 15:01 | |
*** pcfe has quit IRC | 15:01 | |
*** pcfe has joined #maemo | 15:01 | |
GoNeL | Hi! can anyone please tell me which groups normal user is assign to? I miss -a option when adding User to sudo group and now I cant root (sudo: gainroot: command not found) | 15:02 |
ceene | GoNeL: your problem is not of group assignment | 15:05 |
ceene | is that gainroot isn't installed | 15:05 |
ceene | command not found | 15:05 |
KotCzarny | ceene, maybe path issue? | 15:05 |
KotCzarny | ie. gainroot modifying user profile or something? | 15:05 |
KotCzarny | but yeah, checking if its installed is also good idea | 15:05 |
ceene | could be, but... | 15:05 |
GoNeL | it is because before doing thar i just have to write root and rootsh do the job for me | 15:05 |
ceene | i don't have my n900 here right now | 15:06 |
KotCzarny | i use rootsh anyway | 15:06 |
KotCzarny | or ssh -l root | 15:06 |
GoNeL | i'm sshing it right now with root account | 15:06 |
KotCzarny | im having weird issue with oscp on n8x0 | 15:07 |
KotCzarny | when running as root, audio is ok | 15:07 |
KotCzarny | when running as user its garbled, as if byte order swapped | 15:07 |
KotCzarny | cant even begin to think what could be the problem | 15:08 |
KotCzarny | ahm. stupid me. | 15:10 |
freemangordon | Pali: are you sure the stuff in /etc/init.d is not executed on maemo? | 15:11 |
Pali | IIRC no | 15:11 |
Pali | upstart does not have "native" support for /etc/rc*.d/ | 15:12 |
freemangordon | Pali: because in /etc/inittab there is inittab:l2:2:wait:/etc/init.d/rc 2 | 15:12 |
Pali | it is "emulated" by upstart service which execute then it | 15:12 |
freemangordon | but still, the result is that /etc/init.d/* services are getting executed | 15:13 |
Pali | I'm not sure if upstart even use inittab | 15:13 |
Pali | maybe Maemo or Debian upstart doing something different | 15:13 |
*** louisdk has quit IRC | 15:14 | |
freemangordon | Pali: but then, why there are so much things in /etc/init.d? | 15:18 |
Pali | probably legacy | 15:18 |
Pali | from debian or older maemo | 15:18 |
freemangordon | hmm. there is no clockd in /etc/event.d | 15:19 |
KotCzarny | arent there some compatibility job that would run them? | 15:19 |
freemangordon | looks loke | 15:20 |
freemangordon | but then, thing are gitting weird | 15:20 |
freemangordon | for example sapwood-server is executed by bot /etc/X11/Xsession.post and /etc/init.d/af-services | 15:22 |
KotCzarny | but tbh on all my debian boxes i remove systemd and install sysvinit | 15:22 |
freemangordon | I can't grok what's going on here :( | 15:24 |
KotCzarny | grep upstart scrips for init string? | 15:24 |
KotCzarny | maybe some binary executes them directly | 15:25 |
bencoh | hmmm, isn't maemo init system a hybrid (upstart+sysv)? | 15:25 |
freemangordon | KotCzarny: doesn;t matter, the point is that sapwood-server is started from 2 places | 15:26 |
freemangordon | bencoh: no idea | 15:26 |
freemangordon | but looks like | 15:26 |
bencoh | iirc both upstart scripts and regular init scripts are interpreted | 15:26 |
*** jonwil has quit IRC | 15:27 | |
KotCzarny | add 'echo $0 >>/tmp/rclog;date >>/tmp/rclog' everywhere? | 15:27 |
freemangordon | KotCzarny: what for? | 15:27 |
KotCzarny | to pinpoint at which point those sapwood things run? | 15:28 |
freemangordon | I anm not interseted in who starts it, but why it is started twice | 15:28 |
freemangordon | I know when is it started | 15:28 |
KotCzarny | what happens if you run it third time? graceful exit? | 15:28 |
freemangordon | the problem is that it seems to be firs started from a script in /etc/init.d, before there is X running | 15:29 |
*** louisdk has joined #maemo | 15:29 | |
freemangordon | and of it fails | 15:29 |
freemangordon | *ofc | 15:29 |
KotCzarny | disable it and check if system still works? | 15:29 |
freemangordon | :( | 15:29 |
freemangordon | before knowing why it is like that? | 15:30 |
KotCzarny | maybe if x/wm dies its just for restarting? | 15:30 |
freemangordon | I doubt | 15:30 |
freemangordon | if X dies on maemo, you got a reboot | 15:30 |
KotCzarny | what is sapwood for anyway? | 15:30 |
freemangordon | KotCzarny: https://github.com/fremantle-gtk2/sapwood | 15:31 |
KotCzarny | so, pixmap server? | 15:34 |
*** NIN101 has quit IRC | 15:35 | |
*** NIN101 has joined #maemo | 15:35 | |
DocScrutinizer05 | GoNeL: watch out with sudo! it doesn't work the way you might think | 15:36 |
DocScrutinizer05 | actually messing with etc/sudoers is one of the most frequent reasons for bootloop | 15:37 |
freemangordon | Pali: what if dsmetool is asked to start the same binary twice? | 15:37 |
GoNeL | i'm not understanding what is going on here... maybe it was the problem.. | 15:37 |
Pali | do not know :-) need to test | 15:37 |
GoNeL | you know how can i revert it? I remove User from sudo group (27) but nothing changed | 15:38 |
freemangordon | maybe this is it - all those mutiple starts are through dsmetool and it just ignores the request when the binary is already started | 15:38 |
GoNeL | cannot edit PATH, permission dennied | 15:38 |
KotCzarny | fmg, disable from sysvinit and/or upstart and check what stops working | 15:39 |
bencoh | hmm, I am sudoers (with password) on my n900, and it works | 15:39 |
freemangordon | KotCzarny: no, I'd rather check when is stuff in /etc/init.d started on maemo | 15:41 |
KotCzarny | see? told you to add rclog | 15:41 |
KotCzarny | :) | 15:41 |
DocScrutinizer05 | check out update-sudoers script! Froups are not the problem. Our problem is very old sudo which is pimped to act like newer one, with scripts | 15:43 |
DocScrutinizer05 | IroN900:~# which update-sudoers | 15:43 |
DocScrutinizer05 | /usr/sbin/update-sudoers | 15:43 |
DocScrutinizer05 | ~jrtools | 15:44 |
infobot | extra, extra, read all about it, jrtools is http://wiki.maemo.org/User:Joerg_rw/tools | 15:44 |
bencoh | right, I checked update-sudoers beforehand and added it properly | 15:44 |
bencoh | don't remember where though | 15:44 |
bencoh | ah, in sudoers.d | 15:45 |
GoNeL | Nokia-N900:~# update-sudoers | 15:47 |
GoNeL | Nokia-N900:~# which update-sudoers | 15:47 |
GoNeL | it's /usr/sbin/update-sudoers | 15:48 |
bencoh | read it, see /etc/sudoers.d/ | 15:51 |
DocScrutinizer05 | tl;dr: never edit /etc/sudoers ! | 15:52 |
DocScrutinizer05 | if you want to edit sth about sudo, do it in /etc/sudoers.d/* (ideally your own file you add there) - then **run update-sudoers** | 15:53 |
DocScrutinizer05 | then check if sudo still works as supposed, **while keeping a root shell open, to revert what you messed up** | 15:54 |
DocScrutinizer05 | about groups, see `man sudoers` - and keep in mind what you just learned from reading update-sudo script | 15:56 |
DocScrutinizer05 | you can find some very terse hints in | 15:56 |
DocScrutinizer05 | ~jrtools | 15:56 |
infobot | it has been said that jrtools is http://wiki.maemo.org/User:Joerg_rw/tools | 15:56 |
DocScrutinizer05 | on a broader note: I don't know if I ever heard of a really 100% successful add of new user (except 'root' and 'user') in maemo | 15:58 |
DocScrutinizer05 | a full interactibe user account != user|root might not work like expected, occasionally | 15:58 |
DocScrutinizer05 | interactive* | 15:59 |
GoNeL | ok thnks, i'ĺl it! | 15:59 |
DocScrutinizer05 | there's a lot of tricky stuff about users, in maemo | 15:59 |
DocScrutinizer05 | e.g. you should be *very* careful of redefining *user* shell, while root's shell is mostly harmless to redefine | 16:00 |
DocScrutinizer05 | ~liskeys sudo | 16:01 |
DocScrutinizer05 | ~listkeys sudo | 16:01 |
infobot | Factoid search of 'sudo' by key (6): cmd: sudo (.*?) ;; sudo get me a sandwich ;; sudo path ;; sudo ;; sudo get me a sandwitch #DEL# ;; sudo make me a sandwich. | 16:01 |
DocScrutinizer05 | ~sudo | 16:01 |
infobot | [~sudo] Better than su, according to talon. It allows a permitted user to execute a command as the superuser or another user, as specified in the sudoers file. Or can allow you to do silly things like run X11 apps with root privileges; also good in scripts with "username ALL = NOPASSWD: /some/program", or http://www.aplawrence.com/Basics/sudo.html, or good for ordering sandwiches, or not pseudo | 16:01 |
DocScrutinizer05 | ~sudo make me a sandwich | 16:03 |
infobot | make me a sandwich: sudo make docscrutinizer05 a sandwich. | 16:03 |
GoNeL | lol | 16:03 |
DocScrutinizer05 | I recently learned that there's a risk I become a sandwich whe doing this | 16:04 |
* DocScrutinizer05 doesn't want to be a sandwich | 16:04 | |
bencoh | sudo turn DocScrutinizer05 into a sandwich | 16:04 |
DocScrutinizer05 | wasn't there a `make cow` or sth? | 16:05 |
*** florian has quit IRC | 16:05 | |
DocScrutinizer05 | bencoh: weird: I thought xkcd was native speaker. https://xkcd.com/149/ | 16:06 |
DocScrutinizer05 | so why did he use this very ambiguous form? | 16:07 |
DocScrutinizer05 | GoNeL: re sudo - what is it exactly you want to achieve? | 16:09 |
sixwheeledbeast^ | infobot slap sudo | 16:10 |
* infobot slaps sudo, keep your grubby fingers to yourself! | 16:10 | |
* DocScrutinizer05 also idly wonders if we might get decent contemporary sudo in CSSU, instead of this obsolete bitrotten shit and update-sudoaers could get lost in a place nobody ever again remembers | 16:11 | |
DocScrutinizer05 | a new decent sudo would allow smart stuff like wrapping up HAM into sudo | 16:12 |
DocScrutinizer05 | **WITH PASSWORD** | 16:12 |
freemangordon | Pali: bencoh: KotCzarny: mystery revealed - maemo supports both upstart and init.d scripts, the same goes for devuan. the difference is that in devuan there must be LSB header for the correct startup order | 16:13 |
DocScrutinizer05 | -A, --askpass | 16:15 |
DocScrutinizer05 | Normally, if sudo requires a password, it will read it from the user's terminal. If the -A (askpass) option is specified, a (possibly graphical) helper program is exe- | 16:15 |
DocScrutinizer05 | cuted to read the user's password and output the password to the standard output. | 16:15 |
bencoh | freemangordon: :) | 16:17 |
*** dafox has joined #maemo | 16:18 | |
DocScrutinizer05 | IroN900:~# sudo -A /bin/true | 16:19 |
DocScrutinizer05 | sudo: illegal option `-A' | 16:19 |
GoNeL | guys I might have to become religious and thank god or something, i dont know why but now it just start working! | 16:19 |
DocScrutinizer05 | IroN900:~# l `which sudo` | 16:21 |
DocScrutinizer05 | -rwsr-xr-x 2 root root 91584 2009-04-17 10:50 /usr/bin/sudo | 16:21 |
DocScrutinizer05 | IroN900:~# sudo -V | 16:21 |
DocScrutinizer05 | Sudo version 1.6.8p12 | 16:21 |
DocScrutinizer05 | GoNeL: you forgot to run update-suoers and you rebooted which does that for you | 16:21 |
KotCzarny | fmg: that's good, because i bet there are still people using sysvinit (/me being one of them) | 16:22 |
DocScrutinizer05 | odds however are that after reboot it doesn't 'magically work' but rather any fsckup you introduced causes a bootloop | 16:22 |
DocScrutinizer05 | that's why you *ALWAYS* run update-sudoers after messing with sudo | 16:23 |
DocScrutinizer05 | as I explained above | 16:23 |
*** Kabouik has quit IRC | 16:23 | |
DocScrutinizer05 | `less /usr/sbin/update-sudoers` -- really _highly_ recommended | 16:24 |
GoNeL | yeah i think that was my problem | 16:25 |
GoNeL | thank yo DocScrutinizer05 | 16:25 |
*** pagurus has joined #maemo | 16:26 | |
DocScrutinizer05 | Pali: freemangordon: could we get sudo >1.8 in CSSU? pretty please! | 16:28 |
DocScrutinizer05 | and nuke that update-suoers shite then, since it's not needed anymore for >=1.8 | 16:29 |
*** pagurus has quit IRC | 16:30 | |
DocScrutinizer05 | it would also speed up boottime by prolly 0.73 seconds, _and: add "sudo -A" option and the equivalent askpass function to 5 sudoers | 16:32 |
DocScrutinizer05 | if sudo.conf(5) contains a line specifying the askpass program, that value will be used. For example: | 16:33 |
DocScrutinizer05 | # Path to askpass helper program | 16:33 |
DocScrutinizer05 | Path askpass /usr/X11R6/bin/ssh-askpass | 16:33 |
DocScrutinizer05 | freemangordon: Pali: we could change stuff like "%users ALL = NOPASSWD: /usr/libexec/apt-worker" to do proper asking for (root!) password then | 16:36 |
DocScrutinizer05 | would most likely work like a charm :-) | 16:37 |
*** Kabouik has joined #maemo | 16:38 | |
*** MoeIcenowy is now known as KosakaHonoka | 16:39 | |
*** pagurus has joined #maemo | 16:40 | |
DocScrutinizer05 | GoNeL: note that visudo is pointless on maemo (for interactive use), since you're _not_ supposed to ever edit the file /etc/sudoers | 16:42 |
*** KosakaHonoka is now known as Kosaka-Honoka | 16:46 | |
DocScrutinizer05 | GoNeL: you still could use `visudo -f /etc/sudoers.d/mysudo` but since you're supposed to run update-sudoers after any such edit anyway, it's quite pointless | 16:46 |
*** Kabouik has quit IRC | 16:58 | |
DocScrutinizer05 | and honestly what is this (last line in my /etc/sudoers.d/01sudo): "user ALL = (install) NOPASSWD: /usr/bin/app-installer-tool" | 17:03 |
DocScrutinizer05 | o.O | 17:03 |
bencoh | hmm | 17:03 |
bencoh | ? | 17:03 |
KotCzarny | hmm, how one takes screenshot on n8x0 ? | 17:03 |
DocScrutinizer05 | I wonder if *I* added that nonsense eventually | 17:04 |
DocScrutinizer05 | there's no /usr/bin/app-installer-tool | 17:04 |
DocScrutinizer05 | of course also no user "install" | 17:06 |
* DocScrutinizer05 idly wonders if some crap like fapman or whatever might have done `echo "user ALL = (install) NOPASSWD: /usr/bin/app-installer-tool" >>/etc/sudoers.d/01sudo` in postinst | 17:07 | |
*** spinal84 has quit IRC | 17:08 | |
*** Kabouik has joined #maemo | 17:10 | |
DocScrutinizer05 | `grep "01sudo" /var/lib/dpkg/info/*.postinst` -->zilch | 17:11 |
DocScrutinizer05 | bencoh: could you please check last line in your /etc/sudoers.d/01sudo | 17:11 |
bencoh | same thing | 17:13 |
DocScrutinizer05 | duh! | 17:13 |
DocScrutinizer05 | wtf is this? | 17:13 |
bencoh | legacy stuff maybe | 17:13 |
DocScrutinizer05 | prolly, yes | 17:13 |
DocScrutinizer05 | maemo4 actually? | 17:22 |
* DocScrutinizer05 finally needs to fix his N810 rootfs | 17:22 | |
DocScrutinizer05 | it's embarrassing it eventually started bootlooping and I never got around to fixing that | 17:24 |
*** spinal84 has joined #maemo | 17:29 | |
*** pagurus has quit IRC | 17:37 | |
*** Kabouik has quit IRC | 17:38 | |
DocScrutinizer05 | grrr http://maemo.org/packages/view/sudo/ | 17:39 |
*** pagurus has joined #maemo | 17:39 | |
DocScrutinizer05 | https://github.com/search?q=org%3Acommunity-ssu+sudo :-/ | 17:47 |
DocScrutinizer05 | freemangordon: >>The include directive<< https://wiki.debian.org/sudo | 17:58 |
freemangordon | hmm? | 17:58 |
DocScrutinizer05 | freemangordon: could you compile a recent version of sudo for fremantle? (and provide it) | 17:58 |
*** L29Ah has joined #maemo | 17:59 | |
freemangordon | there should be, in the repos | 17:59 |
DocScrutinizer05 | where? can't find it | 17:59 |
freemangordon | oh, wait | 17:59 |
freemangordon | I was thinking about busybox | 17:59 |
freemangordon | :) | 17:59 |
DocScrutinizer05 | meh!! :-) | 17:59 |
freemangordon | DocScrutinizer05: can;t do it now | 17:59 |
DocScrutinizer05 | it's most likely a bad idea to add it to extras-devel autobuilder, I guess? | 18:01 |
DocScrutinizer05 | (not like I'd be savvy how ro accomplish that, I'd rather actually install a SV VM and try locally, but really I'd rather avoid that) | 18:03 |
DocScrutinizer05 | SB* | 18:03 |
DocScrutinizer05 | I'd ruthlessly gab HARM binary and run it on fremantle, if only I could find it | 18:04 |
DocScrutinizer05 | but then: GARM (aka Aegis) sudo?? BWAHAHAHA | 18:05 |
DocScrutinizer05 | http://www.sudo.ws/dist/sudo-1.8.19p2.tar.gz would be nice | 18:09 |
*** flo_lap has joined #maemo | 18:14 | |
*** L29Ah has left #maemo | 18:14 | |
*** L29Ah has joined #maemo | 18:37 | |
*** flo_lap has quit IRC | 18:41 | |
*** pagurus has quit IRC | 18:47 | |
*** spinal84 has quit IRC | 18:49 | |
*** spinal84 has joined #maemo | 19:18 | |
*** pagurus has joined #maemo | 19:28 | |
*** Kabouik has joined #maemo | 19:32 | |
*** pagurus has quit IRC | 19:34 | |
*** pagurus has joined #maemo | 19:35 | |
*** GoNeL has quit IRC | 19:40 | |
*** GoNeL has joined #maemo | 19:41 | |
*** GoNeL has quit IRC | 19:44 | |
*** GoNeL has joined #maemo | 19:46 | |
*** Kabouik has quit IRC | 19:59 | |
*** GoNeL has quit IRC | 20:38 | |
*** GoNeL has joined #maemo | 20:38 | |
*** pagurus has quit IRC | 20:42 | |
freemangordon | Pali: do you have a clue how 'root' user on maemo is able to access 'user' user dbus session bus? | 20:46 |
Pali | yes :-) | 20:47 |
Pali | run stanalone .sh | 20:47 |
Pali | or how it is called that script | 20:47 |
ceene | run-standalone.sh | 20:47 |
freemangordon | Pali: sure, but how dbus allows it? | 20:47 |
Pali | communication with dbus daemon is done via filesystem socket | 20:47 |
freemangordon | yes,yes | 20:48 |
freemangordon | DBUS_SESSION_BUS_ADDRESS | 20:48 |
Pali | and socket file is passed to dbus app via env | 20:48 |
freemangordon | yes, but that soesn't work on debian | 20:48 |
freemangordon | *doesn't | 20:48 |
Pali | and address for user session dbus is in some /tmp file | 20:48 |
freemangordon | DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-NHndQJLZj1,guid=52eee25672b0202e4b74c9cc587b9421 | 20:48 |
*** pagurus has joined #maemo | 20:49 | |
freemangordon | BUT... | 20:49 |
Pali | also dbus-daemon has some policy file which specify who and how can access it | 20:49 |
Pali | so you can filter out some users for some dbus interface | 20:49 |
freemangordon | hmm, do you know which file is that | 20:49 |
Pali | in /etc/ is for system dbus | 20:49 |
freemangordon | yes, but what about session bus? | 20:50 |
Pali | do not know | 20:50 |
freemangordon | according to google, root cannot access other user's session bus | 20:50 |
freemangordon | even if it have the socket address | 20:50 |
freemangordon | it must use seteuid in order to do that | 20:51 |
*** pagurus has quit IRC | 20:52 | |
*** pagurus has joined #maemo | 20:53 | |
freemangordon | hmm, there is some session.conf file | 20:54 |
KotCzarny | are there any download/install stats for packages on extras/-devel ? | 20:58 |
KotCzarny | crzyp3ck: use: screen /dev/ttyUSB1 115200 maybe? | 21:00 |
KotCzarny | ECHAN. eh | 21:00 |
*** florian has joined #maemo | 21:04 | |
*** F3l1x_10m is now known as sark_damus | 21:11 | |
*** auenf has quit IRC | 21:17 | |
*** auenf has joined #maemo | 21:17 | |
sicelo- | ~repos | 21:19 |
infobot | well, repos is "deb http://maemo.muarf.org/apt-mirror/mirror/downloads.maemo.nokia.com/fremantle/ssu/apps/ ./ ;; deb http://maemo.muarf.org/apt-mirror/mirror/downloads.maemo.nokia.com/fremantle/ssu/mr0/ ./", or see http://wiki.maemo.org/Repository#List_of_Maemo_repositories, or see ~jrrepos | 21:19 |
sicelo- | ~maemo-repos | 21:19 |
infobot | rumour has it, maemo-repos is http://wiki.maemo.org/Repository#List_of_Maemo_repositories | 21:19 |
DocScrutinizer05 | ~jrrepos | 21:34 |
infobot | somebody said jrrepos was http://maemo.cloud-7.de/maemo5/et_al/HAM-catalogs/ | 21:34 |
* DocScrutinizer05 thinks ~repos is maximum non-helpful | 21:35 | |
*** xorly has joined #maemo | 21:39 | |
sicelo- | whoah! installed python-matplotlib .. expected huge amounts of rootfs to get used up .. seems to have had negligible effect. interesting | 21:41 |
KotCzarny | most likely because python optified already | 21:41 |
DocScrutinizer05 | it should install to the bindomount python stuff I'd guess | 21:41 |
*** lobito has joined #maemo | 21:42 | |
*** pagurus has quit IRC | 21:42 | |
DocScrutinizer05 | ssh root@iron900 "mount|grep pymaemo" | 21:44 |
DocScrutinizer05 | cmd: /opt/pymaemo/usr/lib/python2.5 on /usr/lib/python2.5 type bind (bind) | 21:45 |
DocScrutinizer05 | cmd: /opt/pymaemo/usr/share/pyshared on /usr/share/pyshared type bind (bind) | 21:45 |
DocScrutinizer05 | cmd: /opt/pymaemo/usr/lib/pyshared on /usr/lib/pyshared type bind (bind) | 21:45 |
DocScrutinizer05 | cmd: /opt/pymaemo/usr/share/python-support on /usr/share/python-support type bind (bind) | 21:45 |
DocScrutinizer05 | cmd: /opt/pymaemo/usr/lib/python-support on /usr/lib/python-support type bind (bind) | 21:45 |
DocScrutinizer05 | special case of | 21:46 |
DocScrutinizer05 | ~optification | 21:47 |
infobot | optification is a inventive duct tape workaround to reclaim space in fs root, done due to the fact the systeminit *and* partitioning is FUBAR, http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Packaging,_Deploying_and_Distributing/Installing_under_opt_and_MyDocs, or ""OMG - I wish they looked into FHS and moved /usr to eMMC"", http://www.pathname.com/fhs/pub/fhs-2.3.html#PURPOSE2 bullet1,2 and fhs-2.3.html#PURPOSE16 dot3" | 21:47 |
DocScrutinizer05 | sicelo-: ^^^ | 21:47 |
DocScrutinizer05 | sicel o-: | 21:48 |
*** sark_damus is now known as F3l1x_10m | 21:48 | |
sicelo- | at least this solves one of my problems/concerns .. have something that needs matplotlib, and i had been holding back unnecessarily | 21:48 |
DocScrutinizer05 | ssh root@iron900 "du -sh \$(mount|grep pymaemo|sed 's/^\([^ ]*\) on .*/\1/')" | 21:57 |
DocScrutinizer05 | cmd: 63.4M/opt/pymaemo/usr/lib/python2.5 | 21:58 |
DocScrutinizer05 | cmd: 7.1M/opt/pymaemo/usr/share/pyshared | 21:58 |
DocScrutinizer05 | cmd: 2.8M/opt/pymaemo/usr/lib/pyshared | 21:58 |
DocScrutinizer05 | cmd: 280.0k/opt/pymaemo/usr/share/python-support | 21:58 |
DocScrutinizer05 | cmd: 148.0k/opt/pymaemo/usr/lib/python-support | 21:58 |
ceene | i don't like optification the way it was done | 22:00 |
ceene | it should've been done at system level, without modification of .deb | 22:00 |
KotCzarny | yeah. symlinks would be mych better | 22:00 |
ceene | i was thinking of unionfs | 22:00 |
DocScrutinizer05 | huh? | 22:01 |
ceene | unionfs allows to show a filesystem as an overlay of two different mount points | 22:01 |
DocScrutinizer05 | you might not be completely aware of the way optification got implemented | 22:02 |
ceene | packages need to be optified | 22:02 |
DocScrutinizer05 | I know what's unionfs | 22:02 |
ceene | i don't want packages to be custom designed to allow or not allow for optification | 22:02 |
ceene | that should be a system setting | 22:02 |
DocScrutinizer05 | maemo-optify-auto-opt.sh maemo-optify-firstboot.sh maemo-optify-lib.sh maemo-optify-make-mountbind.sh | 22:03 |
ceene | all of that is unnecesary if you just unionfs mount /opt with / | 22:04 |
DocScrutinizer05 | bindmount sounds terribly inticated and fragile | 22:04 |
DocScrutinizer05 | err sorry, unionfs | 22:04 |
DocScrutinizer05 | again, see: | 22:05 |
DocScrutinizer05 | ~optification | 22:05 |
infobot | optification is a inventive duct tape workaround to reclaim space in fs root, done due to the fact the systeminit *and* partitioning is FUBAR, http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Packaging,_Deploying_and_Distributing/Installing_under_opt_and_MyDocs, or ""OMG - I wish they looked into FHS and moved /usr to eMMC"", http://www.pathname.com/fhs/pub/fhs-2.3.html#PURPOSE2 bullet1,2 and fhs-2.3.html#PURPOSE16 dot3" | 22:05 |
*** dafox has quit IRC | 22:05 | |
DocScrutinizer05 | Nokia failed to sanitize that stuff with PR1.2 | 22:05 |
enyc | so, is there any sensible way to fix this all // rebuild maemo system atop armhf jessie devuan or whatever ? | 22:06 |
DocScrutinizer05 | I thought they would do optification as a transitional botch/hotfix and fix it in PR1.2 (or was it 1.3?). Alas they kept legacy crap | 22:07 |
ceene | i don't even have separate partitions on my PCs, where i have 1Tb+ hard disks | 22:07 |
DocScrutinizer05 | so? | 22:07 |
ceene | sounds ridiculous having so many separate partitions on phones with limited storage | 22:08 |
ceene | that's also a problem on android phones | 22:08 |
DocScrutinizer05 | how would you make one partition of two different *types* of storage? And don't say LVM now! | 22:08 |
ceene | sometimes you can't upgrade an application that would fit in available space because the partition it is to be downloaded prior to installation is full | 22:08 |
* Maxdamantus has Maemo/home all on a single 27.4 GiB partition. | 22:09 | |
ceene | or you can download the installer because partition for temp files is empty but you can't install the app because app partition is full | 22:09 |
ceene | whereas it is all internal storage that doesn't make sense spliting | 22:09 |
Pali | then you have wrongly partitioned system | 22:09 |
DocScrutinizer05 | so? this is of pretty minor relevance to maemo and N900, right? | 22:09 |
ceene | DocScrutinizer05: if you want to have MyDocs under vfat that could've been implemented as a filesystem on a file | 22:09 |
KotCzarny | imo we should simply use nand only for rescueos/bootloader/boot and move whole os to emmc | 22:10 |
ceene | no, that's exactly the same that happens on n900, where you have plenty of space but it's in the wrong partition | 22:10 |
enyc | KotCzarny: is there a performance penalty? | 22:10 |
KotCzarny | most of the os is on emmc anyway | 22:10 |
DocScrutinizer05 | ceene: again, what got that to do with optification and different types of memory? | 22:10 |
Pali | once I used full Maemo on eMMC it was slower | 22:10 |
ceene | that optification shouldn't have needed to even exist | 22:11 |
Pali | having Maemo on both nand and eMMC is fater | 22:11 |
Pali | *faster | 22:11 |
KotCzarny | pali, how much slower? | 22:11 |
DocScrutinizer05 | ceene: please first read and understand what optification actually is | 22:11 |
sicelo- | Maxdamantus: .. how is your user experience with your setup? | 22:11 |
Pali | I remember slower bootup | 22:11 |
*** Oksanaa has joined #maemo | 22:11 | |
Pali | and whole system had more lags | 22:11 |
freemangordon | KotCzarny: way slower | 22:11 |
KotCzarny | hum. | 22:11 |
freemangordon | from sd card at least | 22:12 |
KotCzarny | maybe we need to optimize os too, to see what writes more | 22:12 |
ceene | DocScrutinizer05: from your first link: The N900 has about 100 MB of free space in the root file system partition. This is not very much and would fill up quite quickly when installing additional applications. As a workaround, the /opt directory has been linked to a different partition with more space (about 1 GB) and /home/user/MyDocs is also available in certain cases, with even more space | 22:12 |
freemangordon | didn;t try from emmc | 22:12 |
ceene | ain't that what i'm saying? | 22:12 |
Maxdamantus | sicelo-: it's still usable. My bootup is a lot slower, but I think that's mostly due to the fact that I'm using ext4 and it fscks before mounting. | 22:12 |
freemangordon | there is nothing wrong in having / on nand | 22:12 |
KotCzarny | sd cards differ, try again with samsung evo+ | 22:12 |
Maxdamantus | (and usually when the device boots, it's because it crashed/froze) | 22:12 |
Maxdamantus | (so it has to do a long check) | 22:13 |
freemangordon | it would have been even better if it was read-only | 22:13 |
DocScrutinizer05 | no, you say optification is not needed with different partitioning, but you ignore there's physically no possibility to make one partition out of two storage chips with different type of storage | 22:13 |
ceene | optification is a workaround needed because of a not opt-imal structure of memory | 22:13 |
ceene | but there is | 22:13 |
ceene | you can fake that with unionfs, as i said | 22:13 |
freemangordon | ceene: no, it is because n900 has only 256 MB of nand | 22:13 |
Maxdamantus | I also have swap on an SD card, which makes a decent difference iirc | 22:13 |
ceene | and you yourself suggested lvm | 22:13 |
freemangordon | and nand is times faster than emmc | 22:13 |
ceene | freemangordon: well, of course all storage problems can be solved via more storage | 22:14 |
DocScrutinizer05 | ceene: please read ~optification *again*, fully, until last char | 22:14 |
freemangordon | ceene: and how would you do that on already assembled/shipped device? | 22:14 |
ceene | i just think optification could've been done differently | 22:14 |
Pali | moving core libs and binaries into /bin /sbin /lib and all non-core to /usr | 22:15 |
freemangordon | DocScrutinizer05: it was implemented in some of the PRs, right? 1.2? | 22:15 |
Pali | and then moving whole /usr into eMMC | 22:15 |
Pali | that is more unix way | 22:15 |
DocScrutinizer05 | freemangordon: optification? iirc 1.1 | 22:15 |
freemangordon | ok | 22:15 |
Pali | and probably better to performance | 22:15 |
ceene | for some reason you keep unacknowledging my idea of using unionfs to implement optification | 22:15 |
DocScrutinizer05 | Pali has it the right way | 22:15 |
freemangordon | Pali: we have maemo booting with devuan upstart :) | 22:15 |
Pali | instead hell of symlinks | 22:15 |
Pali | ou, nice! | 22:15 |
Maxdamantus | I'd rather explicitly have the "core" things stored separately. | 22:16 |
DocScrutinizer05 | ceene: because pf ~optification explains that it's not needed at all, and you do NOZ need any unionfs to avoid that | 22:16 |
Pali | but now in systemd world /usr and / is one thing... | 22:16 |
freemangordon | Pali: some stuff like ttyusb0 and couple of others still need love, but those are not critical | 22:16 |
KotCzarny | last time i brought similar idea, you folks have said nokia did bad things and essential tools for boot are on /usr too | 22:16 |
Pali | udev does not boot when /usr is in separate part as / | 22:16 |
ceene | DocScrutinizer05: having a set of six .sh scripts do what a simple entry on /etc/fstab would do seems more complex than necessary | 22:17 |
Pali | KotCzarny: yes... but this is now common for all linux distros | 22:17 |
DocScrutinizer05 | that's one of the reasons why systemd is a pile of shit for embedded | 22:17 |
Pali | because of udev.. | 22:17 |
DocScrutinizer05 | ceene: so what? | 22:17 |
ceene | so that's all i'm saying | 22:18 |
ceene | you may not agree, that's okay | 22:18 |
DocScrutinizer05 | so read ~optification a 5th time, it says exactly same | 22:18 |
ceene | i don't think we're even discussing the same thing | 22:19 |
Oksanaa | Well, does upstart replace udev? Can upstart handle /usr and / being in separate partitions? Could optification be changed in devuan-maemo? | 22:19 |
DocScrutinizer05 | ~optification | 22:19 |
infobot | optification is a inventive duct tape workaround to reclaim space in fs root, done due to the fact the systeminit *and* partitioning is FUBAR, http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Packaging,_Deploying_and_Distributing/Installing_under_opt_and_MyDocs, or ""OMG - I wish they looked into FHS and moved /usr to eMMC"", http://www.pathname.com/fhs/pub/fhs-2.3.html#PURPOSE2 bullet1,2 and fhs-2.3.html#PURPOSE16 dot3" | 22:19 |
DocScrutinizer05 | is what we're discussing | 22:19 |
ceene | yeah, but you're not giving any arguments in favour or against anything in particular i'm saying | 22:19 |
freemangordon | Oksanaa: afaik upstart and udev are different things | 22:19 |
DocScrutinizer05 | what in ""OMG - I wish they looked into FHS and moved /usr to eMMC"" is unclear? | 22:19 |
ceene | so i'm even doubting this is a discussion :) | 22:20 |
Pali | Oksanaa: upstart is init daemon like sysvinit or sytemd | 22:20 |
Pali | it does not implement dbus or other parts... | 22:21 |
ceene | also, whatever it is, it's sterile, so let's just leave it at that, what's done is done | 22:21 |
DocScrutinizer05 | it's hard to discuss based on false assertions/assumptions. packaged doen't need to get modified for optification | 22:21 |
Oksanaa | Okay... So udev is in maemo-devuan and would protest against moving /usr to MyDocs? | 22:21 |
DocScrutinizer05 | packages* | 22:21 |
ceene | but they do, they must be specifically optified by the maintainer and the autobuilder modifies them | 22:22 |
ceene | by the way | 22:22 |
ceene | https://gitorious.org/maemo-af/maemo-optify/blobs/master/README | 22:22 |
ceene | this link is broken | 22:22 |
Pali | not only link, but design too :-) | 22:22 |
ceene | time to have dinner, cya! | 22:23 |
Oksanaa | For example: once /usr/games already points to /opt/usr/games, packages should just use /usr/games and not think about optification? | 22:23 |
Pali | /usr/games should not be symlink | 22:24 |
Pali | as package installation fails | 22:24 |
Pali | (package wants to create directory, not symlink) | 22:24 |
Pali | but mount --bind is OK | 22:24 |
DocScrutinizer05 | there are two ways to optify: either you already move packages to /opt/*/* and add symlink from /usr/*/* to that files, or you simply add a list of files in /usr/*/* that need optification and you hand that list to the optification scripts on target system. The latter is *very* nonintrusive to packaging | 22:24 |
DocScrutinizer05 | in the end both methods result in symlinks from /usr/bin/foo -> /opt/foo/bin/foo | 22:26 |
DocScrutinizer05 | the latter path might look slightly different | 22:26 |
DocScrutinizer05 | I didn't check the details | 22:26 |
Oksanaa | Okay.... And /usr/games looks like symlink, lrwx and all, no idea why or which packages use it. Latter method allows more freedom for optification method to be changed in the future | 22:26 |
*** shentey has joined #maemo | 22:27 | |
Pali | but is worse to nand wear leveling | 22:27 |
Pali | as it store useless files to nand | 22:27 |
DocScrutinizer05 | why could /usr/games be a symlink, isn't that rather a /usr/games/ dir? | 22:27 |
Oksanaa | Yes, dir symlink? | 22:28 |
DocScrutinizer05 | aah well, for games it looks like OK, yes | 22:30 |
DocScrutinizer05 | Oksanaa: so regarding your question "should just use /usr/games" yes, of course | 22:32 |
Oksanaa | Bug report : neverputt redundantly optifies itself? /If /usr/games being a symlink is standard / | 22:33 |
DocScrutinizer05 | o.O | 22:34 |
* DocScrutinizer05 can't parse that, ETOOMANYSLASHES | 22:34 | |
Oksanaa | Bug report : neverputt redundantly optifies itself? ( If /usr/games being a symlink is standard ) | 22:35 |
DocScrutinizer05 | aah thnx | 22:35 |
DocScrutinizer05 | cmd: lrwxrwxrwx 1 root root 14 Dec 6 2014 /usr/games -> /opt/usr/games | 22:36 |
*** spinal84 has quit IRC | 22:36 | |
Oksanaa | Same: lrwxrwxrwx 1 root root 14 Oct 26 2010 games -> /opt/usr/games | 22:37 |
KotCzarny | pali, if app needs its own dir in /usr i guess adding symlink in pre-install would be enough? | 22:42 |
KotCzarny | i hate mount binds being abused | 22:42 |
Pali | do not know if dpkg will follow that symlink | 22:42 |
Pali | as in deb package is directory, not symlink | 22:43 |
KotCzarny | i havent checked, but after installation of python i have deleted mount binds and replaced with symlinks, no problems so far | 22:45 |
Oksanaa | Do not expect any app to need its own directory in /usr ... In fact, my /usr contains only X11R6 bin games include lib libexec local man sbin share src var | 22:45 |
KotCzarny | oksanaa: what i meant would mean for example /usr/lib/python24/ etc | 22:45 |
Oksanaa | Huh... Yes, that's common. No idea about dpkg vs symlinks | 22:46 |
DocScrutinizer05 | how could dpkg not follow a symlink /usr/foo->/opt/foo when creating /usr/foo/bar/ ? | 22:50 |
DocScrutinizer05 | it hardly could create a dir /usr/foo when there's already a symlink (or dir, or file) with same name | 22:51 |
Oksanaa | Question is about dpkg creating and following new symlinks? | 22:51 |
DocScrutinizer05 | and I really hope it wouldn't delete that existing object to create it anew | 22:51 |
DocScrutinizer05 | Oksanaa: no, that wasn't my question | 22:52 |
DocScrutinizer05 | Oksanaa: my question was about dpkg using existing fs tree objects when they exist | 22:53 |
*** dafox has joined #maemo | 22:53 | |
DocScrutinizer05 | there are exactly two possible responses of dpkg: either success or http://paste.opensuse.org/21118114 | 22:58 |
*** Kabouik has joined #maemo | 22:59 | |
DocScrutinizer05 | (well, plus the usual ones like "r/o" "no space on device" etc pp) | 22:59 |
*** Kabouik has quit IRC | 22:59 | |
*** Kabouik has joined #maemo | 22:59 | |
*** dafox has quit IRC | 23:03 | |
*** spinal84 has joined #maemo | 23:04 | |
DocScrutinizer05 | http://paste.opensuse.org/42462894 | 23:07 |
DocScrutinizer05 | can't see how dpkg would not handle that in a similar way, simply ignoring the errors | 23:09 |
DocScrutinizer05 | http://paste.opensuse.org/73325744 | 23:11 |
DocScrutinizer05 | a bindmount actually is a great way to hide stuff in original mountpoint | 23:12 |
DocScrutinizer05 | and it is pretty tricky to find that stuff without umounting first | 23:13 |
DocScrutinizer05 | basically needs a second bindmount | 23:13 |
DocScrutinizer05 | iirc | 23:14 |
Oksanaa | Lawl, know from experience of having photographs saved to MyDocs before eMMC is mounted. | 23:14 |
DocScrutinizer05 | hehe, exactly that, yeah | 23:15 |
DocScrutinizer05 | excellent "tutorial" on that stuff: http://www.ibm.com/developerworks/linux/library/l-mount-namespaces/index.html | 23:17 |
DocScrutinizer05 | the trick is about --make-unbindable --make-private --make-slave --make-shared | 23:19 |
KotCzarny | kludge overload | 23:19 |
*** dafox has joined #maemo | 23:19 | |
DocScrutinizer05 | iirc you could mount /home/user/ to a new mountpoint with an option of the above that doesn't allow mounting of mounted namespaces | 23:19 |
DocScrutinizer05 | so in that new mountpoint /~user/MyDocs would show the original dir content, not the mounted one | 23:20 |
DocScrutinizer05 | err, /newmountpoint/MyDocs that is | 23:21 |
Oksanaa | Ouchie... | 23:21 |
*** Roth has joined #maemo | 23:25 | |
*** Roth has quit IRC | 23:28 | |
DocScrutinizer05 | http://unix.stackexchange.com/questions/49345/accessing-files-hidden-by-mounted-drive | 23:31 |
*** pagurus has joined #maemo | 23:33 | |
DocScrutinizer05 | actually better: http://unix.stackexchange.com/questions/4426/access-to-original-contents-of-mount-point | 23:34 |
DocScrutinizer05 | I was wrong, you don't need those --make-* options, just use --bind and not --rbind, the latter would include the mounted eMMC stuff in ~/MyDocs while --bind doesn't | 23:35 |
Oksanaa | /me just did umount or something to unmount eMMC, move files from MyDocs to elsewhere, reboot ( to have eMMC mounted ), move files to MyDocs-eMMC ; was long time ago | 23:36 |
DocScrutinizer05 | yeah, that's the 'simple' approach if you actually can umount the mountpoint covering the stuff you want to access | 23:37 |
*** pagurus has quit IRC | 23:37 | |
*** louisdk has quit IRC | 23:40 | |
*** geaaru has joined #maemo | 23:40 | |
*** Kabouik_ has joined #maemo | 23:43 | |
*** florian has quit IRC | 23:43 | |
*** Kabouik has quit IRC | 23:45 | |
*** pagurus has joined #maemo | 23:50 | |
*** pagurus has quit IRC | 23:53 | |
DocScrutinizer05 | Oksanaa: http://paste.opensuse.org/87851648 ;-) | 23:54 |
DocScrutinizer05 | uh = UnHide, if you wonder | 23:55 |
DocScrutinizer05 | I had used mktmp -d but it doesn't exist on maemo stock :-/ | 23:55 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!