xrogaan | it isn't | 00:22 |
---|---|---|
lillith | so what yall up to? | 03:07 |
golinux | Waiting for support questions to come in. | 03:08 |
golinux | Chat is better on #devuan-offtopic | 03:09 |
mason | Or more voluminous anyway. | 03:10 |
lillith | ahh okay, well i do have a support question now that Im thinking about it but I did also join devuan offtopic. So I installed fractora on my old 1999 hp and when I was setting up my account I didnt check admin user on my root user. While I did re-enable sudo I cant for some odd reason mount certain things on my base account as it says incorrect permissions or something like that. Theres others perms I can't think off the | 03:12 |
lillith | top of my head but thats the main one as my main use for this pc is to transfer scsi hard drives and stuff like that | 03:12 |
mason | lillith: But root can do it? | 03:13 |
lillith | root can do it but again I have to log in as root that way. Its much easier for this old pc to boot up my window manager, go into pcmanfm and then mount the hard drives that way | 03:15 |
mason | Can you run pcmanfm from sudo? | 03:17 |
fsmithred | pcmanfm should work with pmount or udevil | 03:17 |
fsmithred | not sure if you have to configure that in settings | 03:18 |
lillith | is there a group I can associate my account with that typically is there prior to installation I can simply put my account in? its already in root and sudo but for some odd reason admins not an option\ | 03:19 |
lillith | im doing most of this thru terminal | 03:19 |
fsmithred | if your user is in the sudo group, then all commands should be available with sudo | 03:20 |
golinux | What is fractora? | 03:20 |
fsmithred | I'm guessing it's refracta | 03:20 |
fsmithred | but that's a guess. Good question. | 03:20 |
golinux | That thought crossed my mind . . . | 03:21 |
brocashelm | fractured devuan | 03:21 |
golinux | It was fractured Debian first | 03:21 |
fsmithred | I grew up on Fractured Fairy Tales | 03:21 |
golinux | Did you find that in the OT library? | 03:22 |
lillith | sorry meant refracta lmao | 03:24 |
fsmithred | lillith, run 'sudo echo $PATH' and see if it includes sbins | 03:24 |
lillith | https://i.imgur.com/1zzZyck.png | 03:25 |
lillith | heres what I got | 03:25 |
lillith | also for some odd reason when i type sudo group it says command not found | 03:26 |
fsmithred | yeah, I know that root's PATH changed in beowulf | 03:28 |
fsmithred | I wasn't sure about sudo | 03:28 |
fsmithred | as root, you can type the full path to the command | 03:28 |
fsmithred | e.g. 'sudo halt' | 03:29 |
fsmithred | no | 03:29 |
fsmithred | sorry, I'm tired | 03:29 |
fsmithred | brb | 03:29 |
fsmithred | sudo /sbin/halt | 03:30 |
fsmithred | or 'su -' to become root instead of just su | 03:30 |
fsmithred | that way you get root's real path that includes /sbin, /usr/sbin | 03:31 |
fsmithred | there's a section about this in the release notes | 03:31 |
lillith | ahh ok | 03:32 |
fsmithred | https://files.devuan.org/devuan_beowulf/Release_notes.txt | 03:32 |
mason | or sudo -i | 03:32 |
fsmithred | do you get the sbins that way? | 03:32 |
mason | Should. | 03:33 |
fsmithred | why? | 03:33 |
fsmithred | is that equivaltent to 'su -'? | 03:33 |
fsmithred | yup | 03:33 |
fsmithred | login shell | 03:33 |
fsmithred | there you go, lillith. Do 'sudo -i' | 03:34 |
lillith | okay nice | 03:34 |
lillith | thanks | 03:34 |
fsmithred | then you have a root term | 03:34 |
Beer | IIRC -i on sudo loads all the user files as on a standard login | 03:34 |
mason | Don't even need the shell. sudo -i pcmanfm and similar | 03:34 |
mason | sudo -i route | 03:35 |
fsmithred | Beer, I'm reading that now | 03:35 |
fsmithred | lillith, please test | 03:35 |
fsmithred | and let us know if it works | 03:35 |
Beer | I have never been comfortable with su | 03:35 |
Beer | does 'su -' take care of using the user's shell, setting the prompt and such? | 03:36 |
lillith | im testing it right now | 03:36 |
mason | Beer: - is a shortcut for --login | 03:36 |
fsmithred | Beer, it drops you into /root and gives you root's environment | 03:36 |
mason | For my next trick, I want to see how painful it is setting up clevis/tang on Beowulf. | 03:37 |
mason | Oh, it's packaged. \o/ | 03:38 |
Beer | I just tested it. THe main difference seems to be 'su -' uses the target user's auth, while with 'sudo -i' auth is done through sudo's rights, not the target user, allowing to take control of the destination user whatever its auth states is set up. Have I said anything incorrect there? | 03:39 |
lillith | okay so on the left is pcmanfm open with the sudo -i command and on the right is it open with my average user | 03:39 |
lillith | https://i.imgur.com/KpSPMXI.png | 03:39 |
lillith | youll notice with root the unmounted volumes dont show up | 03:39 |
Beer | I am referring to invocations like: 'su - user' vs 'sudo -i -u user' | 03:39 |
Beer | root is tricky. I never, ever, wanna login with that | 03:40 |
lillith | I login with root in order to access the drives | 03:41 |
lillith | but it feels dirty | 03:41 |
dissident | lol | 03:41 |
lillith | cause everything gives error messages | 03:41 |
lillith | not error messages | 03:41 |
lillith | messages like this program wont perform the same and shit | 03:41 |
mason | lillith: your screenshot looks about right | 03:42 |
mason | Is this not what you want? | 03:42 |
lillith | what I want is to give my account the authority to mount drives without having to access the root account with xfce4 | 03:42 |
mason | lillith: How about the "user" property in fstab? | 03:43 |
Beer | Add your account to the sudo group? | 03:43 |
lillith | mainly cause xfce uses up a bunch of ram but also cause the transfer process is much more seamless on wmaker | 03:43 |
Beer | then use sudo to perform elevated tasks | 03:43 |
brocashelm | how much ram is your xfce using on a fresh boot? | 03:44 |
lillith | heres the groups it says it uses | 03:44 |
lillith | seems to be 'su -' uses the target user's auth, while with 'sudo -i' auth is done through sudo's rights, not the target user, allowing to take control of the destination user whatever its auth states is set up. Have I said anything incorrect there? | 03:44 |
lillith | wait wrong message | 03:44 |
mason | lillith: How about the "user" property in fstab? | 03:44 |
lillith | thomas root cdrom floppy sudo audio dip plugdev netdev | 03:45 |
lillith | whats the command for fstab? | 03:45 |
mason | man fstab | 03:45 |
fsmithred | you really shouldn't have to do any of that | 03:51 |
lillith | fsmithred, what should I be able to do? | 03:52 |
fsmithred | did policykit-1-gnome get removed along the way? | 03:52 |
fsmithred | I plug in an external drive, an icon pops up on the desktop, I double-click the icon and it mounts and opens thunar | 03:52 |
fsmithred | when I'm in openbox, I use pmount with spacefm to mount external drives as user | 03:53 |
lillith | lemme try usermod | 03:53 |
fsmithred | but that should also work with pcmanfm | 03:53 |
Beer | Well I didn't really understand the problem in the 1st place. WHich partitions generates errors? ON read? Write? | 03:53 |
Beer | Anyhow, 4am here... | 03:53 |
Beer | Overdue sleep time | 03:53 |
mason | fsmithred: that's udisks2 doing that for you, which is deeply problematic software | 03:54 |
mason | The cost of "I plug in an external drive, an icon pops up on the desktop" is somewhat too high for my tastes. | 03:54 |
fsmithred | I just tried it in pcmanfm | 03:55 |
fsmithred | plug in a usb stick, it shows up in the left panel, click on it and a window pops up asking me if I want to open it in file manager | 03:55 |
lillith | okay just added all the users to my account using sudo usermod -a -G (perm) (username) | 03:56 |
lillith | get some sleep Beer | 03:56 |
lillith | it generates an error trying to mount it | 03:56 |
mason | lillith: You didn't like the user property as a nice shortcut? | 03:57 |
lillith | ? | 03:58 |
mason | Dig a little and you'll realize the facilities are there for the system to do quite a bit of grunt work for you. | 03:58 |
fsmithred | what changes did you make other than adding pcmanfm? | 03:59 |
lillith | brocashelm https://i.imgur.com/Nc8ywjY.png | 03:59 |
mason | Anyway, bedtime for me. o/ | 04:00 |
lillith | fsmithred adding hfs+ support, amiga drive support, adding several window managers (icewm, blackbox) , removing firefox-esr in place of surf dillo and midori | 04:01 |
fsmithred | you started with a refracta iso or pure devuan? | 04:01 |
lillith | refracta iso | 04:01 |
fsmithred | is pmount still installed? | 04:02 |
lillith | basically used plop and installed it via usb | 04:02 |
lillith | yes pmount is installed | 04:02 |
lillith | ive had this problem since I installed refracta, basically it most likely occured as when I first set it up i unchecked root permissions and I think admin permissions too | 04:03 |
fsmithred | you have a root password? | 04:04 |
lillith | yeah | 04:04 |
fsmithred | then the root account is active. The path stuff is "normal" | 04:04 |
fsmithred | and if your user is in the sudo group, then that should be good, too | 04:05 |
lillith | and again I can mount my shit on the root account but basically only in xfce4 (im mainly talking about non terminal stuff in this case) | 04:05 |
fsmithred | mounting from desktop icon? | 04:06 |
lillith | since I added my account to all the other perms should I reboot to see oif it worked? | 04:06 |
fsmithred | not sure what you added | 04:06 |
fsmithred | did you add yourself to all groups? | 04:06 |
lillith | root,cdrom, floppy audio, dip plugdev and netdev | 04:07 |
fsmithred | ok, but ordinary user should not be in root group | 04:07 |
fsmithred | that's a security problem | 04:07 |
lillith | okay | 04:09 |
* Xenguy blames Ubuntu for the 'sudo' craze ... | 04:15 | |
fsmithred | and 'chmod -R 777 /etc' | 04:22 |
Xenguy | Ubuntu recommended ^^ ?! | 04:37 |
lts | I've seen newbies using "chmod 777 foo" as a panacea for access problems. Especially for conf files. Newbies often seem to use ubuntu, so I guess there is a perception fallacy in play | 04:44 |
lts | The sudo craze and snap madness are totally on canonical though | 04:44 |
Xenguy | Ugh | 04:45 |
fluffywolf | the only time I 777 random things is dynamically created /dev entries when I don't want to try to fuck with udev config and a group for the type of device and putting a user in that group and etc. | 04:48 |
fluffywolf | letting normal users access hardware is surprisingly annoying. | 04:49 |
brocashelm | ubuntu is also the reason why aptitude -> apt | 05:07 |
yeti | 777? linux98? why not do everythin as root? | 05:24 |
DPA | yeti: To keep the most important thing safe from hackers: DRM KMS! Would be bad if they could just change the resolution... | 08:12 |
user_ | Hi. Does anyone know what can be done for xfce4 Window Menu plugin, to show which app caused a notification? It blinks in the tray and I have no idea which of a dozen or so windows in it's opened list caused it, nor can I turn off the blinking. | 08:12 |
user_ | bummer, xtermset -T does not work with xfce4-terminal | 08:20 |
user_ | printf '\033]0;%s\007' "title"; also does not work | 08:24 |
user_ | But Ctrl-Shift-S works. Now how do I do that from cli... | 08:24 |
user_ | Anyone? | 08:24 |
DPA | user_: Check if your $PS1 overrides the title. | 08:26 |
user_ | does not. There's --dynamic-title-mode=mode but that does not help either. | 08:27 |
user_ | ok, here's the strategy: ensure xfce4-terminal is *always* launched with option --dynamic-title-mode=replace (not none), then the above printf works, and also xtermset -T title | 08:29 |
user_ | works | 08:29 |
user_ | Now, where is xfce4-terminal hard coded in xfce4 launcher... | 08:29 |
user_ | also, my tray notification has been blinking for days. Other than deinstalling and reinstalling the tray app I see no way to make it go away. I have visited all open and not open windows and none has a current notification. | 08:30 |
user_ | The cli coded in the tray launcher for xfce4-terminal is: exo-open --launch TerminalEmulator --dynamic-title-mode=replace -- the last part does not work, how do I pass cli options to xfce4-terminal in the cli? | 08:32 |
user_ | /usr/bin/exo-open is a binary, not a script, can't edit it easily | 08:34 |
user_ | [why is it not a script?] | 08:34 |
DPA | I can change the xfce4-terminal window title without that option. I haven't updated it in a while, though. | 08:35 |
user_ | edited launcher to: xfce4-terminal --dynamic-title-mode=replace | 08:35 |
user_ | It's not about upadating, although the latest x11 hole patch may have caused the updates to default to something which disallows injecting color names into xterms in general... | 08:35 |
DPA | If I open the settings of xfce4-terminal, I can change that setting there. | 08:37 |
user_ | What setting? The title? I need to set it on cli. | 08:39 |
user_ | Why does /usr/bin/xfce4-terminal.wrapper exist? It seems to sanitize the options on startup. | 08:39 |
DPA | user_: dynamic-title-mode. It can be configured right in the GUI. | 08:40 |
user_ | Okay, apparently the wrapper does this sanitizing, | 08:40 |
user_ | DPA: I don't care about the gui, it needs to be set on app start and later by the app running in the terminal. | 08:40 |
DPA | user_: Using the GUI, the setting is persisted. It'll stay on next start. | 08:42 |
user_ | What setting. I do not have a way to set --dynamic-title in settings | 08:44 |
user_ | Oh now I see what you mean. Let's try this. | 08:45 |
user_ | I've edited the /usr/bin/xfce4-terminal.wrapper which is Perl adding at top: push(@args, '--dynamic-title-mode=replace'); | 08:45 |
user_ | This should start the term with that default always. | 08:45 |
user_ | And it still does not work from tray launch icon. | 08:46 |
user_ | Even if I set it in settings DPA stil does not work | 08:46 |
user_ | The test is to issue this command in the terminal: printf '\033]0;%s\007' "title" | 08:47 |
DPA | I'm not sure what could cause that. It works for me (if I change my PS1 not to override it again right afterwards). | 08:48 |
user_ | Say again? PS1? | 08:48 |
DPA | Yes, PS1. On my system, it contains "\[\e]0;\u@\h: \w\a\]...". So after I enter a command, and the next prompt appears, it set's the title. So I need to change PS1 so it doesn't contain that. | 08:50 |
DPA | And as to why xfce4-terminal.wrapper exists, I think that's so it can provide x-terminal-emulator. Variouse terminals can be made to provide it using the alternatives system, so those need the same baseline set of options. | 08:55 |
DPA | sudo update-alternatives --list x-terminal-emulator | 08:55 |
user_ | On my system Beowulf PS1 has no bearing on terminal title at all | 08:56 |
user_ | Now I am lost, unable to make dynamic title work at all, even with xfce4-terminal launched from cli with option --dynamic-title-mode=replace set manually | 08:59 |
user_ | What could be going on?! | 09:00 |
DPA | On by system, PS1 is set in my ~/.bashrc, which got created when I created my user account using adduser. I may have inherited that from an old installation. No idea what could cause setting the title not to work in general, though. | 09:01 |
user_ | I have no clue either. Where is the "default" cli used by xfce4-terminal when opening a new tab? | 09:04 |
user_ | I have ~/.config/xfce4/terminal/terminal.rc | 09:05 |
user_ | That has 'TitleMode=TERMINAL_TITLE_REPLACE' in it which is okay as I set it so | 09:06 |
user_ | After edit in app Settings it changes as expected | 09:07 |
user_ | Ok, I am somewhat stumped by this. Letting it rest for a while. Tray icon still blinking. | 09:09 |
user_ | DPA: what's your $PROMPT_COMMAND ? | 09:14 |
DPA | I don't have it set at all. | 09:19 |
user_ | Okay, clueing up a bit: PS1 overrides the cli options since it (re)sets the title dynamically | 09:20 |
user_ | So, to make it work, unset PS1 then issue the set title commands. | 09:20 |
user_ | note PS1 is not reported in env, use echo $PS1 to see it | 09:20 |
user_ | mine is \[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ -- wow | 09:21 |
user_ | one of those escapes sets the title too | 09:21 |
DPA | It's the \[\e]0; until \a, I think. \e is the same as \033 | 09:22 |
DPA | And \a is BEL is \007 | 09:23 |
user_ | The title setting escape sequence I found online is printf '\033]0;%s\007' "title2" | 09:24 |
user_ | [tested] | 09:24 |
user_ | So, again, to get the title working, unset PS1 or set PS1 to something without the escape sequence, thereafter the title setting works with printf as above or with xtermset | 09:26 |
user_ | erm | 09:26 |
user_ | What did I do again to reverse colors on screen in irc | 09:26 |
user_ | AND the blinking on the tray stopped | 09:27 |
DPA | Maybe the \a or \007 somehow caused the blinking? Here, it should just terminate the escape sequence, but if used on it's own, it could flash the terminal, beep the PC speaker, and such stuff, depending on the terminal emulator. | 09:38 |
olivierm | Hi, I have a problem to register to the official Devuan forum . I have the following message Unfortunately it looks like your request is spam. If you feel this is a mistake, please direct any inquiries to the forum administrator at IRC #devuan at irc.libera.chat | 09:46 |
olivierm | Could you help me ? Please . | 09:47 |
onefang | I think the person that can help you might be asleep right now. | 09:48 |
olivierm | ok I tried later . Have a nice day . | 09:49 |
mason | FWIW, you don't have to use the numeric codes for the escapes. | 15:53 |
mason | My .shrc does different things depending on whether it's on Bash or ksh or whatever, but you can say things like: PROMPT_COMMAND='printf "\e]0;$USER@$HOST\a"' | 15:54 |
mason | of if I'm in an xterm, HEADER=$(printf "\1\r\1\e]0;$USER@$HOST\a\1") and then PS1='$HEADER$USER@$HOST$WIN${PWD}$PROMPT' | 15:54 |
mason | There's a fun interaction between how shells count string lengths and how you specify non-printing characters. | 15:55 |
mason | Different shells do better with different guards, in my experience. | 15:56 |
mason | Here's the complete excerpt from my .shrc: https://bpa.st/TSQQ | 15:57 |
omen | user_: xfce has at least this notification panel item | 18:30 |
omen | "notification area" and "notification plugin" | 18:31 |
ShorTie | any one got any idea's on this apt --fix-broken install , https://dpaste.org/od8e | 18:54 |
tuxd3v | ShorTie, how do you got that error? | 19:08 |
tuxd3v | in a debootstrap? | 19:08 |
tuxd3v | does you have network? | 19:12 |
tuxd3v | eudev depends on {debconf,libblkid1,libc6,libkmod2,libselinux1,adduser,libeudev1,lsb-base,util-linux} | 19:14 |
tuxd3v | and it replaces udev package | 19:15 |
tuxd3v | one option is to install all dependencies and then retry.. | 19:17 |
tuxd3v | but its a weird error | 19:17 |
tuxd3v | have you tried to remove only udev package first? | 19:19 |
mdt | ShorTie: do you have a self compiled kernel? you can check /var/lib/dpkg/info/eudev.preinst which checks kernel symbols which your kernel seems to lack | 20:15 |
fsmithred | egrep -q "^[a-fA-F0-9]+ T \.?sys_${symbol}$" /proc/kallsyms | 20:25 |
fsmithred | That's part of the test in the eudev preinstall script. When I run it in terminal, it returns nothing. But all the alleged missing configs are in my kernel config. | 20:31 |
fsmithred | I think this line is the problem: | 20:39 |
fsmithred | local needed_symbols='inotify_init signalfd accept4 open_by_handle_at timerfd_create epoll_create' | 20:39 |
fsmithred | Trying to run those through the for loop doesn't work because that's not an array. | 20:39 |
GyrosGeier | isn't that a shell script? | 20:40 |
fsmithred | yes | 20:40 |
GyrosGeier | spaces are fine as a separator in a for loop if IFS contains a space | 20:41 |
fsmithred | for symbol in "$needed_symbols"; do <that grep I posted above> | 20:41 |
GyrosGeier | the "" might be an issue | 20:41 |
fsmithred | but $needed_symbols is just a single item | 20:41 |
fsmithred | if it went: for symbol in inotify_init signalfd accept4 open_by_handle_at timerfd_create epoll_create ; do... | 20:42 |
fsmithred | then it works | 20:42 |
GyrosGeier | yes | 20:42 |
GyrosGeier | the "" need to go | 20:42 |
GyrosGeier | the '' in the definition need to stay so it isn't interpreted as an env command | 20:42 |
fsmithred | I added that because it didn't work without the quotes | 20:43 |
fsmithred | but now it does work | 20:43 |
GyrosGeier | maybe the IFS value was wonky | 20:44 |
GyrosGeier | but that shouldn't happen | 20:44 |
GyrosGeier | I believe dpkg makes sure to call maintainer scripts with a sensible $IFS | 20:44 |
PsynoKhi0 | hi, how much disk space should I expect an arm-sdk build for raspberry pi to require? | 20:47 |
fsmithred | ok, I can get the code to grep for all the symbols, but it still says they're missing | 20:47 |
GyrosGeier | fsmithred, well, are they in /proc/kallsyms? | 20:50 |
GyrosGeier | PsynoKhi0, no idea what's in the SDK. Compilers aren't that expensive | 20:51 |
GyrosGeier | if the RPi is running Linux, just use the normal armhf cross compiler | 20:51 |
fsmithred | GyrosGeier, they are. Multiple times. | 20:51 |
GyrosGeier | PsynoKhi0, apt install g++-arm-linux-gnueabihf -- that should have most of what you need for Linux | 20:53 |
fsmithred | but they don't match the search pattern | 20:53 |
PsynoKhi0 | GyrosGeier: the SDK clones the kernel and firmware git repos | 20:53 |
fsmithred | oh, and that's the version of eudev that I have installed here. | 20:54 |
PsynoKhi0 | I'm considering cloning preemptively over Tor | 20:54 |
GyrosGeier | fsmithred, hmm, the regex seems to be rather restrictive | 20:55 |
GyrosGeier | at least for me, these don't exist either | 20:56 |
GyrosGeier | 0000000000000000 T __sys_accept4 | 20:56 |
GyrosGeier | that's not "an optional dot", that is "two underscores" | 20:57 |
GyrosGeier | the __sys variants are seldom too | 20:58 |
GyrosGeier | it seems the correct match on x64 would be __x64_sys_${symbol} | 20:59 |
j9 | https://web.libera.chat/#devuan YEAH!!!!! | 21:37 |
j9 | finally | 21:38 |
j9 | o/ | 21:38 |
user_ | Where does Devuan stand in the small distro list... https://www.theregister.com/2018/05/16/contributing_to_keep_small_linux_alive/ | 21:45 |
user_ | Also, was reading the freenode dictatorship has dropped all pretenses and caused another few dozens of reluctant channels to move over to libera. Among them, our friends at Ubuntu! | 21:46 |
user_ | Posting link on #devuan-offtopic | 21:47 |
user_ | fsmithred> egrep -q "^[a-fA-F0-9]+ T \.?sys_${symbol}$" /proc/kallsyms >> fsmithred the ${symbol} needs more escaping in the regexp to work | 21:48 |
fsmithred | more escaping? | 21:49 |
user_ | fsmithred: probably something like egrep -q "^[a-fA-F0-9]+ T \.?sys_\${symbol}$" | 21:49 |
fsmithred | what is the \.?sys part about? | 21:49 |
user_ | note extra \$ | 21:49 |
fsmithred | does that mean it's looking for a literal dot followed by one character followed by sys | 21:50 |
fsmithred | ? | 21:50 |
user_ | \. escapes the . ;; ? signifies zero or one '.' | 21:50 |
rwp | I think this "^[a-fA-F0-9]+ T \.?sys_${symbol}\$" | 21:50 |
rwp | ?? | 21:50 |
rwp | No. Ignore me. I have not had enough sleep last night. Sorry. Strike that comment please. | 21:50 |
user_ | sys_${symbol} is substituted by something else so just sys_[_0-9A-Fa-f]+$ should match there | 21:51 |
fsmithred | I think this... "^[a-fA-F0-9]+ T .*sys_${symbol}$" | 21:51 |
user_ | imo | 21:51 |
user_ | .* means any char there | 21:52 |
fsmithred | but I don't know what it's actually supposed to find | 21:52 |
user_ | the ${symbol} is wrong | 21:52 |
fsmithred | 0000000000000000 T __x64_sys_epoll_create | 21:52 |
fsmithred | 0000000000000000 T __ia32_sys_epoll_create | 21:52 |
user_ | okay that's something | 21:52 |
user_ | this works: egrep "^[a-fA-F0-9]+ T .*_sys_[_0-9A-Za-z]+$" | 21:56 |
user_ | note no -q ; -q means only set exit status, no printing. | 21:56 |
user_ | fsmithred: | 21:56 |
* user_ takes a break and then will go zz | 21:57 | |
user_ | The ${symbol} is a substitution in the pattern, done before egrep runs, iow, in the script you took it from, it is set to some value like "_epoll_create" and then the egrep line will search for that symbol | 21:58 |
fsmithred | yeah, I know that | 21:59 |
user_ | Also I think the $ at the end needs more escaping, to prevent bash from trying to subst it too, not sure now | 22:01 |
rwp | I guess I will peep back in and say that though "$" does stick as a $ that pedantically it should be backslashed "\$" to guard against variable expansion. | 22:01 |
user_ | No, it works | 22:01 |
user_ | rwp: they want expansion there. | 22:01 |
rwp | It works as a case of not failing. But pedantically it should be escaped. | 22:02 |
user_ | they WANT it. subst ${symbol} | 22:02 |
rwp | I am not talking about ${symbol}. I am talking about the $ at the end of line to match end of line. That's the one that should be backslashed. | 22:03 |
rwp | It's "working" now in a very similar case to echo *.*.*.*.* working to return exactly when there are no files in the current directory matching with four dots. | 22:03 |
user_ | The $ at the end works fine, because bash is a quirky shell :) try; echo -e "abc$' | 22:03 |
user_ | The $ at the end works fine, because bash is a quirky shell :) try; echo -e "abc$" <- fixed | 22:04 |
user_ | greycat should explain this better. | 22:04 |
rwp | It works only because there is no other match for the dollar expansion. But its "dirty" in that it doesn't follow the quoting rules. It exploits the dollar expansion rules. | 22:05 |
user_ | Then there's the fun in doing echo -e "ab$c" ; with c undefined | 22:05 |
user_ | rwp: yes, quirky :) | 22:05 |
rwp | Which is why standard is better than better. Better to follow the rules and have a fully complying syntax. | 22:06 |
user_ | In fact, fsmithred's search was failing because the actual variable expanded pattern was "^...sys_$" with ${symbol} substituted with "" | 22:06 |
rwp | I did not see what $symbol was set to and so did not know how it was going to be expanded. | 22:06 |
user_ | rwp: but then there would be no interesting discussions on irc and forums, and no 10 different solutions online, most of them wrong. | 22:06 |
* rwp laughs | 22:07 | |
user_ | rwp: the symbol was unset in fsmithred 's env for sure, he(?) took the re and ran it as is. | 22:07 |
fsmithred | look at /var/lib/dpkg/info/eudev.preinst | 22:08 |
buZz | ignore the nickchanges , some troll was impersonating me, claimed and grouped the nicks to prevent further abuse | 22:08 |
user_ | fsmithred: for symbol in $needed_symbols; do ... | 22:09 |
fsmithred | user_, yeah that's the part | 22:09 |
user_ | local needed_symbols='inotify_init signalfd accept4 open_by_handle_at timerfd_create epoll_create' <- | 22:09 |
user_ | So what is missing in fact? | 22:09 |
fsmithred | and the result is that error message that says kernel configs are missing when they are actually present | 22:09 |
user_ | Ok, here's the trick: that script runs under sh not bash! | 22:10 |
user_ | Try to execute it under bash for fun. I am not sure but there may be trouble for sh in there. | 22:10 |
fsmithred | the problem is that ShorTie can't upgrade eudev because of the error | 22:10 |
fsmithred | and I've seen this before, but I can't recall the details. | 22:11 |
fsmithred | there was a similar problem with kvm group, but that was with the postinst script | 22:11 |
user_ | I ran the script section under bash, just the for loop, it returns okay, missing_symbol=0 | 22:12 |
user_ | So, can you try running just that function under bash? | 22:12 |
fsmithred | I've done it manually in terminal | 22:12 |
user_ | and? | 22:12 |
fsmithred | set the variable and then ran the lines | 22:12 |
user_ | in terminal the shell is bash, different behavior from sh | 22:13 |
user_ | the shebang in the top of that script runs it under sh | 22:13 |
user_ | my sh is dash | 22:13 |
user_ | what is your sh | 22:13 |
user_ | so now MAYBE if you edit the last $ in the regexp to \$ as rwp said, it will work | 22:14 |
GyrosGeier | these symbols aren't in kallsyms | 22:14 |
user_ | But asking in #bash will provide certainty | 22:14 |
user_ | GyrosGeier: huh? | 22:14 |
GyrosGeier | I've checked on my desktop box with Debian stock kernel | 22:14 |
GyrosGeier | that should have all the features enabled | 22:14 |
GyrosGeier | syscalls are named __x64_sys_${name}, not \.?sys_${name} | 22:15 |
fsmithred | and those do exist in the file | 22:16 |
fsmithred | __x64_sys_epoll_create | 22:16 |
fsmithred | ^^^ like that | 22:16 |
user_ | fsmithred: if I run that section of script under bash, it works, if I run it under sh, it fails | 22:16 |
buZz | kid still discovering how irc works, so boring | 22:16 |
user_ | No, it works in both fsmithred | 22:17 |
user_ | buZz: kid teaching, fast: -ob $opnick $kidnick | 22:18 |
user_ | fsmithred: and the \$ does not matter | 22:18 |
buZz | yeah parazyd seems to have removed my +o :( | 22:19 |
user_ | fsmithred: add: echo "${symbol}" in the for loop and see what it really does | 22:19 |
buZz | fsmithred: could you please /mode +b $a:kreyren , he's trying to impersonate me | 22:20 |
fsmithred | ok, I saw that earlier and didn't know what to make of it | 22:21 |
buZz | he's trolling because he didnt like me voting for fsf to move to libera, i think | 22:21 |
buZz | not sure whats the motivation | 22:22 |
buZz | oh | 22:22 |
buZz | ha | 22:22 |
buZz | want me to? | 22:22 |
fsmithred | I didn't do that | 22:22 |
buZz | no, i did | 22:23 |
fsmithred | oh | 22:23 |
fsmithred | good | 22:23 |
buZz | pm'd parazyd to get back in chanserv | 22:23 |
parazyd | Everything ok now? | 22:23 |
fsmithred | looks like it | 22:23 |
buZz | yep | 22:23 |
buZz | well, until it isnt | 22:23 |
buZz | but fine for now | 22:23 |
buZz | thanks both :) | 22:23 |
fsmithred | meeting time. bye | 22:24 |
redrick | hmm. | 22:51 |
mason | rm: A hidden one. | 22:52 |
rm | what | 22:53 |
mason | rm: Apologies. Meant that for redrick. | 22:54 |
Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!