IRC log of #maemo for Monday, 2017-04-10

DocScrutinizer05Enrico_Menotti: https://cgit.freedesktop.org/systemd/systemd/tree/hwdb/60-keyboard.hwdb might help00:02
*** xy2_ has joined #maemo00:03
Enrico_MenottiDocScrutinizer05 Thank you for all your efforts. I will read carefully. Now I'm looking at the rsyslog.conf file. Maybe I may obtain some logs by setting it up properly.00:06
DocScrutinizer05yeah, prolly this should work00:06
freemangordonDocScrutinizer05: hi!00:07
DocScrutinizer05hi! :-)00:07
DocScrutinizer05freemangordon: how to map kbd keys in a console? generically00:08
freemangordonEnrico_Menotti: see, this is not your PC, you should have prepared rootfs with all the stuff in advance. keymap, for example. keymap I use in devuan http://46.249.74.23/devuan/00:08
DocScrutinizer05freemangordon: IOW where does kernel or getty or whatever do the keycode->char mapping00:08
freemangordonDocScrutinizer05: it is not kernel stuff, but userland00:09
freemangordonxmodmap iirc00:09
DocScrutinizer05ack00:09
DocScrutinizer05xmodmap is X1100:09
DocScrutinizer05no?00:09
freemangordonwell, kmodmap?00:09
DocScrutinizer05HAH! TA!00:09
DocScrutinizer05k like kernel ;-)00:09
freemangordonno, no, I am not sure about the command00:09
freemangordonjust some vague memorieds00:09
freemangordon*memories00:10
* freemangordon checks00:10
DocScrutinizer05KEYMAPS(5)  These files are used by loadkeys(1) to modify the translation tables used by the kernel keyboard driver and generated by dumpkeys(1)00:11
DocScrutinizer05so `man loadkeys`00:12
freemangordonah, loadkeys :)00:12
Enrico_MenottiThere's one thing I don't understand in rsyslog.conf. Each row states a module, a priority, and then the log file for that. But what does the hyphen '-' at the beginning of some of the paths to the log files mean?00:13
DocScrutinizer05nevermind, it's about some option with the target, like "create if doesn't exist" or whatever00:14
freemangordonEnrico_Menotti: https://github.com/dyne/arm-sdk/commit/fd8978c97db097333772668e4bb67c65c4715a7100:15
freemangordonDocScrutinizer05: it is 'loadkmap' after all :)00:16
freemangordonI guess k is for keyboard, not kernel00:17
DocScrutinizer05hmm, my manpages disagree, but ... prolly system dependent00:17
freemangordoncould be00:17
freemangordonbut ^^^ for sure works on devuan, in console00:18
DocScrutinizer05wtf?! http://paste.opensuse.org/2413310200:18
freemangordonDocScrutinizer05: seems BusyBox specific00:20
DocScrutinizer05nah, see the syntax error in `man` with LANG=C00:20
DocScrutinizer05big fat WTF00:21
freemangordonDocScrutinizer05: I still don;t understand German :p00:21
DocScrutinizer05syntax error next to unexpected token "("00:21
freemangordonyeah, weird00:22
*** dafox has joined #maemo00:23
Enrico_Menottidaemon.*                        -/var/log/daemon.log00:23
DocScrutinizer05OOh me idiot00:24
DocScrutinizer05jr@saturn:~> type man00:24
DocScrutinizer05man ist ein Alias von `:(){ [ "sed" == "$1" ]||{ /usr/bin/man $1;return; }; less -f <(/usr/bin/man sed) <(wget http://sed.sourceforge.net/sed1line.txt -q -O -); };:'.00:24
Enrico_MenottiThere is this line in my rsyslog.conf. Does that mean that all messages from daemons are logged in that file?00:25
*** shentey has quit IRC00:27
freemangordonDocScrutinizer05: honestly, your system locale is German?!?00:28
DocScrutinizer05on user yes00:28
freemangordonde.DE-UTF8?00:28
freemangordonomg00:28
DocScrutinizer05still fail to grok why the alias breaks with LANG=C00:28
DocScrutinizer05maybe aliases are a tad tricky with "NAME=foo CMD"00:29
DocScrutinizer05I have a hard time thinking it could change $0 or $1 but who knows00:30
freemangordonanyway, /me is running towards bed00:30
freemangordonnight guys00:30
DocScrutinizer05n8 :-)00:30
Enrico_MenottiGood night! :)00:30
DocScrutinizer05Enrico_Menotti: might mean that, yeah00:31
Enrico_MenottiSo why no such file on my system?!?00:31
DocScrutinizer05and the -/ *might* mean "end processing here", not sure00:31
Enrico_MenottiIn what sense?00:32
DocScrutinizer05>>-/var/log/syslog means log to the file /var/log/syslog. The preceding dash tells syslogd not to call fsync(), i.e. do not flush the kernel buffer to disk after every write to the file.<<00:33
DocScrutinizer05honestly all you need is a line *.* /var/log/syslog or the like00:34
*** xes has quit IRC00:35
Enrico_MenottiOk let me try.00:35
DocScrutinizer05it logs all to that file, and nevermind the rest00:35
DocScrutinizer05when rsyslog doesn't get started during boot though, you won't see that file either00:36
DocScrutinizer05rsyslog is a service aka daemon00:36
DocScrutinizer05without it, all you got is dmesg00:37
DocScrutinizer05dmesg reads directly from the kernel log buffer00:37
Enrico_MenottiBut no way to tell the system to write the kernel log buffer to some file?00:38
DocScrutinizer05dmesg(1) - print or control the kernel ring buffer00:38
DocScrutinizer05rsyslog start scripts do that00:38
DocScrutinizer05("write the kernel log buffer to some file" that is)00:39
Enrico_MenottiOk, I modified the rsyslog.config with a line *.* /var/log/enrico.log. Let's see what happens, ok?00:39
DocScrutinizer05sure00:41
DocScrutinizer05but make sure you have the startscripts err *cough* systemd unit files whatevertheneme for rsyslogd00:42
DocScrutinizer05do NOT ask me about feckin systemd-journald an d journalctrl00:43
*** dafox has quit IRC00:43
DocScrutinizer05after all this is why maemo decided to re-associate to devuan00:43
Enrico_Menotti... I had read in fact about journalctrl. I was indeed wondering how to fetch it. :)00:45
DocScrutinizer05~systemd00:45
infobotsystemd cabal: a bunch of people (Lennart Poettering, Kay Sievers, H. Hoyer, D. Mack, T. Gundersen, D. Herrmann) who want to turn linux into their wet dream perverted version of windows-me-too: http://0pointer.net/blog/revisiting-how-we-put-together-linux-systems.html -- Rumor has it that 2016 systemd will have replaced kernel. See ~nosystemd"00:45
DocScrutinizer05~nosystemd00:46
infobot[nosystemd] https://devuan.org http://without-systemd.org/wiki/index.php/Arguments_against_systemd http://blog.darknedgy.net/technology/2015/10/11/0/00:46
Enrico_Menotti:D00:46
DocScrutinizer05when you want to run a systemd based system, you're definitely in the wrong channel for any help here00:47
Enrico_Menotti... I did not know. Sorry.00:49
DocScrutinizer05http://blog.gerhards.net/2011/11/journald-and-rsyslog.html00:50
DocScrutinizer05>>Backward compatibility may actually be not that important ***on a _typical_ desktop system***<<00:56
DocScrutinizer05>>However, in an enterprise environment such harsh moves can not be done<<00:56
DocScrutinizer05>>For those in the need, a syslogd can run alongside journald<<00:57
DocScrutinizer05>>Thinking about home desktop machines, Laptops and a myriad of other personal computers: Rsyslog runs on (almost) all of them, and nobody knows it does ;) The folks operating these machines are not at all interested in logging, so I think it is a valid assumption that none of them will care which logging system is running. <<00:59
DocScrutinizer05or if journald fies in a dark wet stinking place00:59
DocScrutinizer05dies*00:59
Enrico_MenottiCannot get any log. Uff.01:00
DocScrutinizer05go devuan!01:00
DocScrutinizer05hey, you can type `ps aux` right?, check if rsyslogd or systemd-journald is running01:01
Enrico_MenottiOk, a minute.01:01
DocScrutinizer05http://paste.opensuse.org/7081101901:03
DocScrutinizer05my opensuse systemd infested shit01:03
DocScrutinizer05at least it runs rsyslogd TOO01:03
DocScrutinizer05or use ps aux|egrep '(journ|syslog)'01:04
DocScrutinizer05well, you still lack the pipe symbol, right?01:05
DocScrutinizer05this is damn tedious01:05
Enrico_MenottiRight. But I see there is rsyslogd. And systemd-journald as well.01:05
DocScrutinizer05dmesg01:06
Enrico_MenottiYes, lot of info.01:06
DocScrutinizer05yes, and again no pipe for dmesg|less01:06
Enrico_MenottiNo.01:07
Enrico_MenottiBut it wouldn't be useful, since I can't almost read.01:07
Enrico_MenottiOk, now's bed time. I will think about it tomorrow. Good night! :)01:08
DocScrutinizer05:nod:01:08
DocScrutinizer05with a > you could do dmesg >/mysystem.log01:09
DocScrutinizer05tedious01:09
DocScrutinizer05I think you won't have much fun with all this until you get ssh access01:10
Enrico_MenottiYes, probable.01:10
Enrico_MenottiI could write a script. But to launch it I'd need ./ , right?01:10
DocScrutinizer05well, unless . is element of your $PATH or your script is placed in $PATH01:12
Enrico_MenottiIt's another idea. Will see. For now, zzz.01:13
*** cyteen has joined #maemo01:16
DocScrutinizer05I'd read about bash 'bind' to map some existing key to history_whatever_backward_recall01:18
DocScrutinizer05previous-history can be found on "\C-p", "\eOA", "\e[A".01:19
DocScrutinizer05so if arrow-up doesn't work, maybe ctrl-p does01:19
DocScrutinizer05I'd really fill history with a few useful commands, or alternatively define aliases01:20
DocScrutinizer05edit ~/.alias01:21
DocScrutinizer05for complex stuff, define function(){ ... ... } in ~/.profile or ~/.bashrc01:23
*** lfc22 has joined #maemo01:25
*** lfc22 has quit IRC01:27
DocScrutinizer05ohmy, just checked on my debian server. Debian bash config is so braindead and rudimentary01:27
*** pagurus has joined #maemo01:29
DocScrutinizer05http://paste.opensuse.org/999027101:29
DocScrutinizer05it's a shame#01:30
DocScrutinizer05Enrico_Menotti: anyway create a file ~/ali  with content similar to http://paste.opensuse.org/83608614, then type `cd`  and  `source ali` in your shell. should go a long way01:39
*** Pali has quit IRC01:52
DocScrutinizer05one alias for example could be ifupwlan="ifup wlan0123456789", then you call ifupwlen, then ctrl+p for fetching it again, then delete all digits you don't need to finally make it look like "ifup usb7"02:00
DocScrutinizer05likewise make a xcd="cd ~///////" which you can turn in almost everything you need, like "~/myscript" or "source /root/myscript" or whatever02:02
DocScrutinizer05g="$ ~//////$ ~///////$ <&~////// >&~/////// | !"02:05
DocScrutinizer05rather make that g="#$ ~//////$ ~///////$ <&~////// >&~/////// | !"02:06
*** florian has quit IRC02:07
DocScrutinizer05hmm doesn't fly yet02:12
DocScrutinizer05alias g=echo '#$ ~//////$ ~///////$ <&~////// >&~/////// | \!' >~/xx; history -r ~/xx"02:16
DocScrutinizer05alias g=echo '#$ ~//////$ ~///////$ <&~////// >&~/////// | \!\!' >~/xx; history -r ~/xx"02:18
*** xes has joined #maemo02:20
DocScrutinizer05ooh02:21
DocScrutinizer05alias g=echo '#$ ~//////$ ~///////$ <0123456789&~////// >01234&01234~/////// | \!\!' >~/xx; history -r ~/xx"02:22
DocScrutinizer05alias e='export zero=0 one=1 two=2 [...] nine=9 pipe="|" slash=/ amp="&" [...]; echo "$$$$$$$$$$$$$$$" >~/xx; history -r ~/xx'02:29
DocScrutinizer05ctrl+p02:29
DocScrutinizer05ifup wkan$zero02:30
DocScrutinizer05jr@saturn:~> alias e='export zero=0 one=1 two=2 nine=9 pipe="|" slash=/ amp="&"; echo \\'\\$\\$\\$\\$\\' >~/xx; history -r ~/xx'02:36
DocScrutinizer05jr@saturn:~> e02:36
DocScrutinizer05jr@saturn:~> echo $one02:36
DocScrutinizer05102:36
DocScrutinizer05oops sorry, was ment to be a pastebin02:36
DocScrutinizer05http://paste.opensuse.org/874846002:37
*** atk has quit IRC03:00
*** atk has joined #maemo03:00
*** L29Ah has left #maemo03:04
*** infobot has quit IRC03:21
*** infobot has joined #maemo03:23
*** L29Ah has joined #maemo03:29
DocScrutinizer05jr@saturn:~> eval echo $one $amp$amp echo $slash$nine03:29
DocScrutinizer05103:29
DocScrutinizer05/903:29
*** preflex has joined #maemo03:32
DocScrutinizer05http://paste.opensuse.org/2271603003:50
DocScrutinizer05Enrico_Menotti: ^^^03:51
DocScrutinizer05Enrico_Menotti: this shozuld help you out with kbd mapping missing chars. You can define all the chars you want (and often you don't even need the eval, only when you need to substitue chars that are 'talking to' the shell itself like | or > or &&)03:58
DocScrutinizer05onviously you'd create an alias file like suggested before, to define the e alias03:59
DocScrutinizer05so on PC you create ~/ali with the >>alias e='export zero=0 one=..." in it. On device you do `cd; source ali` once, then for a command do `e` and ctrl+p and edit the "\${}${}${}${}${}${}${}${}${}${}" commandline to look like "eval echo ${minus}e "x${bslash}ny" ${pipe} wc ${minus}l" or whatever you like04:02
*** LjL has quit IRC04:17
*** LjL has joined #maemo04:29
DocScrutinizer05http://paste.opensuse.org/6426230404:40
MaxdamantusI just use a map where I can already type all the printable ASCII characters.04:52
Maxdamantusexcept maybe `, not sure if my map (as in the one loaded by loadkeys) has that.04:53
Maxdamantusit's Dvorak-based anyway, so presumably not useful for anyone else.04:53
Maxdamantusit corresponds to the one I'm using right now in maemo in normal Xorg.04:54
*** Kabouik has quit IRC04:55
MaxdamantusActually, I don't load it with loadkeys. I just have it built into the kernel.04:56
Maxdamantushttp://maxdamantus.eu.org/n900-keys-dvorak.txt04:58
DocScrutinizer05https://en.wikipedia.org/wiki/Alt_code#Linux :-/05:03
MaxdamantusWell, I think support is probably better in applications that run on Linux than in Windows .. I have a feeling you're meant to enter the codepoints in octal or decimal or something.05:05
Maxdamantusof course, the kernel doesn't support anything like that, but as mentioned, the standard toolkits do.05:05
Maxdamantusthey both (gtk and qt) support ctrl-shift-u for entering codepoints in hex.05:06
Maxdamantusin urxvt, you have to hold ctrl and shift, which is a bit harder on N900.05:06
Maxdamantusctrl-shift-u even works in osso-xterm05:08
Maxdamantusbut that's still tricky to enter.05:08
MaxdamantusHm, might be slightly easier on QWERTY.05:08
MaxdamantusThat Wikipedia article says you can enter them in hex in Window if you make a modification to the registry.05:12
*** Zungo has quit IRC05:37
*** Zungo has joined #maemo05:38
*** L29Ah has left #maemo06:04
*** L29Ah has joined #maemo06:05
*** vahe has joined #maemo06:07
*** pagurus has quit IRC06:38
*** pagurus has joined #maemo06:39
*** tanty1 has quit IRC06:40
*** platicus1 has quit IRC06:40
*** platicus1 has joined #maemo06:40
*** tanty1 has joined #maemo06:40
*** pagurus has quit IRC06:40
*** pagurus has joined #maemo06:40
*** pagurus has quit IRC06:42
*** pagurus has joined #maemo06:42
*** pagurus has quit IRC06:43
*** pagurus has joined #maemo06:43
*** pagurus has joined #maemo06:45
*** pagurus has quit IRC06:46
*** pagurus has joined #maemo06:46
*** pagurus has quit IRC06:48
*** pagurus has joined #maemo06:48
*** pagurus has quit IRC06:49
*** sunshavi has quit IRC07:04
*** DocScrutinizer05 has quit IRC07:48
*** DocScrutinizer05 has joined #maemo07:48
*** spiiroin has joined #maemo08:22
*** dafox has joined #maemo09:00
*** dafox has quit IRC09:27
*** dmth|intevation has joined #maemo09:44
*** jskarvad has joined #maemo10:59
*** florian_kc has joined #maemo11:04
*** eMHa has quit IRC11:20
*** florian_kc is now known as florian11:25
*** eMHa has joined #maemo11:45
*** Wizzup has quit IRC11:48
*** Wizzup has joined #maemo11:53
*** Kabouik_ has joined #maemo12:16
*** ecloud has quit IRC12:48
*** ecloud has joined #maemo13:02
*** xy2_ has quit IRC13:05
*** xy2_ has joined #maemo13:06
*** xy2_ has quit IRC13:12
*** tanty has quit IRC13:42
*** platicus has quit IRC13:42
*** platicus has joined #maemo13:43
*** tanty has joined #maemo13:44
*** infobot has quit IRC13:46
*** tanty has quit IRC13:55
*** platicus has quit IRC13:55
*** platicus has joined #maemo13:55
*** tanty has joined #maemo13:56
*** platicus has quit IRC13:57
*** tanty has quit IRC13:57
*** xy2_ has joined #maemo13:58
*** platicus has joined #maemo13:58
*** tanty has joined #maemo13:58
*** platicus1 has quit IRC14:07
*** tanty1 has quit IRC14:07
*** geaaru has joined #maemo14:10
*** platicus has quit IRC14:18
*** tanty has quit IRC14:18
*** tanty has joined #maemo14:19
*** platicus has joined #maemo14:19
*** preflex has quit IRC14:36
*** xy2_ has quit IRC14:49
*** vahe has quit IRC14:54
*** sicelo has joined #maemo15:02
*** xy2_ has joined #maemo15:06
*** sunshavi has joined #maemo15:27
*** sicelo has quit IRC15:47
*** sicelo has joined #maemo16:00
*** l_bratch has quit IRC16:06
*** Kabouik_ has quit IRC16:08
*** Kabouik has joined #maemo16:09
*** Kabouik has joined #maemo16:09
*** xy2_ has quit IRC16:14
*** sicelo is now known as abissom16:58
*** xy2_ has joined #maemo17:01
*** sicelo has joined #maemo17:03
*** xy2_ has joined #maemo17:05
*** abissom has quit IRC17:06
*** xy2_ has quit IRC17:17
*** florian has quit IRC17:20
*** xy2_ has joined #maemo17:32
*** spiiroin has quit IRC17:47
*** vahe has joined #maemo18:15
*** dmth|intevation has quit IRC18:15
*** xy2_ has quit IRC18:18
*** xy2_ has joined #maemo18:18
*** florian has joined #maemo18:24
*** florian has joined #maemo18:24
*** xy2_ has quit IRC18:30
*** xy2_ has joined #maemo18:35
*** spiiroin has joined #maemo18:37
*** dafox has joined #maemo18:46
*** Kabouik_ has joined #maemo18:50
*** Kabouik has quit IRC18:51
*** xy2_ has quit IRC18:57
*** xy2_ has joined #maemo19:07
*** Pali has joined #maemo19:19
*** dafox has quit IRC19:32
*** Vajb has quit IRC19:34
*** Vajb has joined #maemo19:34
*** drrrz has joined #maemo19:42
*** infobot has joined #maemo19:47
*** vahe has quit IRC19:47
*** N-Mi has quit IRC19:49
*** infobot has quit IRC19:57
*** infobot has joined #maemo19:58
*** vahe has joined #maemo20:02
*** vahe has quit IRC20:18
*** eMHa has quit IRC20:31
*** pagurus has joined #maemo20:34
*** pagurus has quit IRC20:37
*** pagurus has joined #maemo20:37
*** pagurus has joined #maemo20:41
*** xy2_ has quit IRC20:41
*** xy2_ has joined #maemo20:42
*** geaaru has quit IRC20:50
*** L29Ah has left #maemo21:03
*** L29Ah has joined #maemo21:06
Enrico_MenottiDocScrutinizer05 At last I got light. My problem was that I was looking for files inside /sys from the host computer, while /sys is only mounted after the system boots. So I wrote a script which writes 200 to the specific file inside /sys. By calling that script, I got light on. :)21:09
Zungofancyu21:14
Zungofancy*21:14
Zungowhy not instead modify the sys image itself?21:14
Zungoor is sys a pseudo fs like proc?21:14
DocScrutinizer05Enrico_Menotti: LOL - nice. Glad you made it21:18
DocScrutinizer05yes, /proc /sys and /dev are only useful in a booted system21:19
DocScrutinizer05Zungo: exactly21:20
DocScrutinizer05IroN900:~# mount|grep sys21:21
DocScrutinizer05sysfs on /sys type sysfs (rw)21:21
DocScrutinizer05nodev on /sys/kernel/debug type debugfs (0)21:21
*** infobot has quit IRC21:31
*** infobot has joined #maemo21:32
*** jskarvad has quit IRC21:33
*** tanty1 has joined #maemo21:46
*** platicus1 has joined #maemo21:46
*** platicus1 has quit IRC21:47
*** tanty1 has quit IRC21:47
*** xy2_ has quit IRC21:48
*** florian has quit IRC22:13
*** florian has joined #maemo22:15
*** xy2_ has joined #maemo22:16
*** infobot has quit IRC22:21
*** stryngs has quit IRC22:26
*** stryngs has joined #maemo22:28
*** infobot has joined #maemo22:38
*** xes_ has joined #maemo22:55
*** xes has quit IRC22:57
*** cyphase has quit IRC23:17
*** infobot has quit IRC23:21
*** infobot has joined #maemo23:22
*** tryagain has joined #maemo23:37
*** dafox has joined #maemo23:43
*** eMHa has joined #maemo23:49
*** xy2_ has quit IRC23:59

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