libera/#maemo/ Wednesday, 2020-01-15

* enyc meows12:58
* badcloud_ opens a tin of tuna13:18
badcloud_I tried making a desktop file for osso-xterm which would run bash. "Exec=/usr/bin/osso-xterm -e bash" didn't work, even though running that command from osso-xterm brings up a new window with bash15:16
badcloud_Is there any way to have a hildon menu entry which launches osso-xterm with bash?15:17
badcloud_Instead of ash15:18
badcloud_I don't want to change default shell in /etc/passwd15:18
badcloud_Just have a separate entry in hildon15:18
KotCzarnymake a script?15:19
badcloud_Sure, why not15:21
badcloud_It seems to work only when running the script within an existing osso-xterm window15:39
badcloud_I tried /usr/bin/maemo-summoner /usr/bin/osso-xterm.launch -e bash15:40
bencohbadcloud_: try adding Terminal=true16:00
badcloud_Nope, it just quits after opening an osso-xterm window, thinking a lot (spinning animation) and then quitting16:04
badcloud_Why's it gotta be so convoluted, Nokia??16:15
* badcloud_ shakes fists at the air16:15
KotCzarnyi think its not nokia, that whole app bussiness was earlier16:16
badcloud_Gotcha16:17
halftuxbadcloud_: try this Exec=/usr/bin/osso-xterm 'bash'16:19
KotCzarnyumm16:20
KotCzarnyshouldnt it be full path?16:20
KotCzarnyie. /usr/bin/bash or whatever?16:20
KotCzarnysince bash is not officially installed, check where it is16:20
halftuxcould be that a full path is needed, but remove the -e and put it in inverted commas16:22
badcloud_which bash gave me /bin/bash16:25
badcloud_I tried inverted commas16:25
badcloud_How is leste in this regard, easier to customize?16:26
halftuxwhich bash version you have installed?16:27
badcloud_416:27
badcloud_Bear in mind that when I run any variant of the Exec value in an existing xterm window, works fine16:28
badcloud_osso-xterm -e bash works16:29
badcloud_osso-xterm bash does too16:29
badcloud_So does '/usr/bin/maemo-summoner /usr/bin/osso-xterm.launch  -e bash'16:30
badcloud_It's only from the hildon menu that things go south16:30
KotCzarnyfull path?16:30
badcloud_Yup16:32
badcloud_Exec=/usr/bin/osso-xterm -e `/bin/bash/` was my last attempt16:33
KotCzarnyum16:33
badcloud_using inverted commas16:33
KotCzarny /bin/bash ?16:33
KotCzarnyand drop backticks16:33
badcloud_Yes, /bin/bash is where bash is16:34
badcloud_Still nothing16:34
badcloud_Please tell me that leste is easier to configure16:37
KotCzarnyi strongly suspect what are you trying to achieve is doable, just some stupid typo somewhere16:37
badcloud_I'll post my .desktop file later when I get a chance16:38
badcloud_Ciao for now16:39
KotCzarny:)16:39
halftuxPali: Hello Pali I have a question regarding 0xFFFF and the dump fiasco option. First I getting initfs_tmp is empty, removing it. And later Error: Cannot open image file initfs_tmp: No such file. However I get a fiasco file is it save to flash it? Can I ignore this message?17:37
Palihello17:38
Palican you please post full log?17:38
halftuxis there a log option or should I redirect the output to > log.txt17:39
Palirecord17:39
Palior post output from terminal17:39
halftuxok I will do it later still at work17:50
badcloud_https://pastebin.com/nSyjdui518:03
badcloud_^ the osso-xterm bash desktop file18:03
halftuxbadcloud_: it is a bit tricky with bash but it works19:08
halftuxmake sure in desktop file there is no line X-Osso-Service=xterm19:09
halftuxExec=/usr/bin/osso-xterm '/opt/bash.sh'19:10
halftuxbash script: #!/bin/sh [newline] sleep 2 [newline] /usr/bin/osso-xterm '/bin/bash' [newline] return19:13
halftuxthats it19:14
badcloud_Wow, bravo19:17
badcloud_Thanks :)19:18
halftuxnp19:19
halftuxgoing offline will be back later if you still facing a problem with it19:20
KotCzarnyyou exec osso-xterm twice19:20
halftuxyes and with return I close the first one19:20
KotCzarnywhy not just make it /bin/sh /yourscript ?19:20
KotCzarnyanyway, as long it works..19:22
halftuxlol yeah should also work thinking to complicated sometimes19:22
halftuxcya later19:23
DocScrutinizer05https://www.youtube.com/watch?v=ZBq7VMIkgPk19:48
DocScrutinizer05TLBLEED19:49
DocScrutinizer05sorry, not exactly news19:59
DocScrutinizer05badcloud_: >>Terminal=false<< HMMM??20:01
badcloud_I tried it with true as well20:02
badcloud_halftux's script did the trick though20:02
DocScrutinizer05this works for a script for me https://termbin.com/hgh720:12
DocScrutinizer05not bash though20:12
DocScrutinizer05I wonder if bash is special20:12
badcloud_Thanks20:16
DocScrutinizer05could you try echo "/bin/bash" >>/etc/shells; ?20:38
DocScrutinizer05sorry when I'm a tad lazy trying that on my own phone20:39
DocScrutinizer05since I already got this and possibly other mods already20:40
DocScrutinizer05changing login shell on etc/passwd is strongly deprecated, it may result in system boot failure20:41
DocScrutinizer05thanks to subtle differences between bash and messybox which are relied upon in startup scripts20:42
DocScrutinizer05man 5 shells  >>/etc/shells is a text file which contains the full pathnames of valid login shells<<20:45
DocScrutinizer05good question if starting an xterm would invoke a *login* shell20:46
DocScrutinizer05though  >>Be  aware  that  there are programs which consult this file to find out if a user is a normal user; for example, FTP daemons traditionally disallow access to users with shells not included in this file.<<20:48
DocScrutinizer05your description of what works and what doesn't sounds much like a specific login shell problem20:49
MaxdamantusI just have my shell set to /bin/bash .. should be able to do something like `chsh -s /bin/bash`20:53
DocScrutinizer05>>On OSX, by default, the Terminal application runs a login shell. (As I explain, the program that starts the shell decides whether the shell acts as a login shell.) That's not the normal way to do things. <<  https://unix.stackexchange.com/questions/38175/difference-between-login-shell-and-non-login-shell21:00
MaxdamantusI think that's talking about a different meaning of "login shell". It's talking there about whether or not it passes `-l` to the shell.21:02
MaxdamantusI think reading /etc/passwd to figure out what shell to use is a fairly standard behaviour for terminals. urxvt does it.21:03
MaxdamantusA regular xterm (not osso) does it too.21:04
halftuxin principle no script is needed checked again the mistacke was only this line in the desktop file X-Osso-Service=xterm21:05
halftuxmistake21:05
halftuxbadcloud_: only removing X-Osso-Service=xterm will solve the issue no other steps are needed21:07
DocScrutinizer05though   man xterm >>-ls     This option indicates that the shell that is started in the xterm window will be a login shell (i.e., the first character of argv[0] will be a dash, indicating to the shell that it should read the user's .login or .profile).<< // man 5 shells  >>/etc/shells is a text file which contains the full pathnames of valid login shells<<21:07
DocScrutinizer05X-Osso-Service=xterm  means: "send a dbus-msg to either start (if no instance is running) or bring to front and focus an already running instance of xterm" AFAIK21:08
DocScrutinizer05obviously you need a different name for an xterm with different behavior than the one defined in dbus config21:10
badcloud_Fixed the desktop file21:12
KotCzarnysee? i knew it was something trivial21:15
KotCzarny:)21:15
halftux:)21:15
* DocScrutinizer05 still wonders if osso-xterm checks /etc/shells21:16
KotCzarnyosso-xterm runs user's shell then a command inside that shell21:16
DocScrutinizer05err21:17
MaxdamantusMy N900 doesn't have an /etc/shells file21:17
DocScrutinizer05this is an answer to my question?21:17
DocScrutinizer05also doesn't seem correct21:18
MaxdamantusI think /etc/shells is just something used by `chsh`, not the terminal/login mechanism.21:18
DocScrutinizer05 xterm [-toolkitoption ...] [-option ...] [shell]21:18
Maxdamantusthat is, it should prevent people from putting non-standard shells into their line in /etc/passwd21:18
Maxdamantusbut obviously root can just edit the /etc/passwd file directly to avoid that limitation.21:19
DocScrutinizer05quite possibly osso-xterm is a simplified generic xterm, it still may accept commands to run *instead* of shell rather than *in* shell21:20
Maxdamantusman chsh >> The only restriction placed on the login shell is that the command name must be listed in /etc/shells, unless the invoker is the superuser, and then any value may be added.21:20
DocScrutinizer05ayayayay https://termbin.com/jgm422:20
halftuxlooks ugly22:45
halftuxPali: http://www.setius.net/downs/maemo/dump0.log23:12
Paliwhat arguments have you used?23:12
halftux0xFFFF -E dump0.fiasco &> dump0.log23:13
Paliseems that you have desynced stdout and stderr23:14
Paliat first lines is stderr and then stdout23:14
Palibut nevermind...23:14
Pali"File initfs_tmp is empty, removing it..." --> this is OK, stock Maemo on N900 does not use initfs23:15
Paliso it is empty23:15
halftuxgreat I know sdcard was to small with this attempt23:15
Pali"Error: Not enough free space (have: 27616083968, need: 28995223552)" --> this is due to small SD card23:16
Paliyou cannot put dump of SD card to SD card23:16
Pali"Error: Cannot open image file mmc_tmp: No such file or directory" --> this is just a reason for previous error23:16
Pali"Error: Cannot open image file initfs_tmp: No such file or directory" --> ignore this, 0xFFFF should probably do not show such message23:17
halftuxI see I thought it is emmc23:17
Paliyea, you are right, this is eMMC MyDocs, not SD card23:17
halftuxI needed to umount /home/usr/MyDocs23:18
halftuxand this whole image can be flashed back?23:18
halftuxwith emmc?23:18
Paliit is complicated23:18
Pali\/opt is stored on second partition of eMMC and this stuff is not backed up23:19
halftuxwhy that it is a none working fiasco file?23:19
Paliand this stuff cannot be even put into FIASCO image23:19
Paliso there is no way for do whole backup+restore23:19
halftuxah I see, is there a way to back it up seperatly und push it back?23:20
Paliyou can do backup of /opt manually23:20
DocScrutinizer05halftux: -v for those who love ugly23:20
Palie.g. via unix dd23:20
Palirestore is problematic23:21
Paliwithout /opt Maemo system does not bootup23:21
halftuxrescue os?23:21
Palibut there is a way, look at my "bootmenu"23:21
DocScrutinizer05/usr/share/applications/hildon # update-desktop-database23:21
DocScrutinizer05/usr/share/applications/hildon #23:21
Paliit can export whole eMMC via USB prior to booting Maemo23:22
Paliso if rootfs has installed bootmenu, and rootfs is in fiasco dump23:22
Paliyou would be able to restore rootfs, jump into bootmenu, export eMMC via USB23:22
Paliand then restore /opt23:22
PaliI do not know what is supported by backupmenu, but maybe something similar is possible23:23
halftuxok I will have a look thank you for your explanation23:23
Paliflashing MyDocs is problematic, IIRC it erases /opt23:23
DocScrutinizer05well, technically I think you could put /home on FIASCO23:23
DocScrutinizer05aka EMMC23:24
Palino, you cannot23:24
PalieMMC fiasco can contain only MyDocs part23:24
DocScrutinizer05ooh23:24
Palipart /home is IIRC maped to /opt23:24
Paliit is on same partition23:24
Palithere is symlink or bind mount or other technique23:25
Palibut I do not remember all details, at least I was not able to put /opt or /home into fiasco image23:25
Palibut that is not a final proof that it is impossible23:26
halftuxbut it is interesting, is stock /opt empty?23:26
Paliyes, stock /opt is empty, but stock rootfs has some init scripts which moves some parts from /usr to /opt23:27
DocScrutinizer05basically yes, though root image runs optify23:28
Paliinit scripts which do that only on first boot of stock rootfs23:28
DocScrutinizer05~optification23:28
infobotoptification 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"23:28
Paliand all maemo applications from extras install DEB packages to /opt23:28
DocScrutinizer05hmm, I think they also run optify23:29
DocScrutinizer05or at least that's one of the options23:29
DocScrutinizer05https://termbin.com/ac0l23:36
DocScrutinizer05https://termbin.com/dc1923:47
Palianother problem of 0xFFFF is that it does not have implementation of flashing eMMC images (I had not time to finish it)23:47
halftuxPali: when I using your fiasco for cloning N900 HW:2101 to N900 HW:2104 I need to extract the fiasco and correct the xloader.bin and nolo.bin?23:47
halftuxah I see now your message that is sad I thought the original eMMC23:49
Paliseems that 2101 and 2104 HW revs uses different bootloader23:49
PaliNokia's flasher-3.5 can flash eMMC images viac USB23:50
Palibut 0xFFFF does not implement it23:50
Palianyway, here is a quick fix to hide those error messages about missing files: https://github.com/pali/0xFFFF/commit/e94279eecbfdd1988912ac7ce24e6d4d702695a123:51
DocScrutinizer05you generally shall not flash NOLO23:51
Palithat is truth, unless you have old version23:51
Pali0xFFFF has some filter argument to specify which image types from FIASCO images would be flashed23:52
Paliso unpack & pack could be avoided23:52
halftuxah ok thats something23:52
DocScrutinizer05how could you? was NOLO ever updated? and if yes, what for?23:52
Paliyes, PR1.3 has new version of NOLO as in PR1.023:53
Paliand IIRC Nokia distributed all devices with PR1.0 version23:53
DocScrutinizer05wow23:53
DocScrutinizer05forgot23:53
Palibut if you are going to unpack FIASCO, do not forget about metadata23:53
Paliso when building a new fiasco, do not forget for specififying image version and HW revision23:54
Paliand type23:54
DocScrutinizer05I actually wonder how Nokia made COMBINED that did not have optification already done on them23:55
halftuxwhat is image version?23:55
halftuxor better what does it mean in your example you have 1.023:56
Palie.g. version of NOLO, version of kernel or version of rootfs23:56
Paliuse "-i" argument to show it23:56
halftuxok thank you lots of input this evening :)23:57
Palithere is an unfinished attempt for writing support for flashing eMMC images: https://github.com/pali/0xFFFF/issues/623:58
Paliif somebody want to finish it I can help23:58

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