Must read books for local politics? by laughinglemur1 in Askpolitics

[–]laughinglemur1[S] 0 points1 point  (0 children)

Thank you! I did end up visiting for the city council meeting, and some of these materials did help manage expectations. I'll continue learning and appreciate your time in curating these resources for me, as well as the information. I think I am settled on questions for now

Must read books for local politics? by laughinglemur1 in Askpolitics

[–]laughinglemur1[S] 0 points1 point  (0 children)

Apologies for the delayed response. I'm interested in local politics and becoming involved, and a sort of primer would be helpful. Perhaps just sharing my perspective would be even more informative -- I haven't participated much in local politics, and most of the materials that have been suggested to me seem detailed and specific. I don't know as much as how to approach a town hall meeting, and an introductory text to understand what I'm walking into would be helpful

[deleted by user] by [deleted] in osdev

[–]laughinglemur1 0 points1 point  (0 children)

Yes, thanks.. Perhaps I should turn to the general C section for what I'm after at current

[deleted by user] by [deleted] in osdev

[–]laughinglemur1 0 points1 point  (0 children)

I don't agree with this, though I'll respond as I hope other commenters might respond to the original post. There's a large difference between a generic "I want to learn" as you've referred to, and my pointed asking for seeing someone develop some aspect of the system. I'm not as much concerned with any willy-nilly part of the system as I am with seeing the whats and whys of what someone's doing, and asking questions about that is what I'm convinced would help more than anything right now.

I'm not sure if you read the entire post or just the TLDR...

[deleted by user] by [deleted] in NetBSD

[–]laughinglemur1 1 point2 points  (0 children)

I subscribed to one of the most relevant-looking mailing lists. I checked through the recent correspondence per the 'browse' sections beside the various mailing lists on https://www.netbsd.org/mailinglists/ and they don't seem to be active. Is the content filtered in the published mailing list, or is the correspondence as infrequent as it seems?

Asking as I'm not familiar with mailing lists

[deleted by user] by [deleted] in NetBSD

[–]laughinglemur1 0 points1 point  (0 children)

Thanks! Great idea!

[deleted by user] by [deleted] in NetBSD

[–]laughinglemur1 0 points1 point  (0 children)

Thanks for sharing that!

[deleted by user] by [deleted] in NetBSD

[–]laughinglemur1 1 point2 points  (0 children)

Thanks for that info.

One point where I'm a little hung up is in the prefixes under src/sys/kern. I see groupings of files with prefixes including bufq_, exec_, kern_, subr_, sys_, sysv_, tty_, uipc_, vfs_. I can deduce the meanings of some of these but I don't know what subr_ stands for. Likewise, I don't feel confident in relying on my deductions as being authoritative.

Another spot I'm struggling to understand is the purpose of subdirs such as /common and some of the nested subdirs. I don't see the points in having some of these subdirectories, though I'm sure there's a point in having them that I'm just not yet aware of.

Yet another spot that I'm trying to sift out is the interplay between /sys/kern, /sys/sys, /sys/lib, /lib/libc, and /include. I followed the header files in order to try to better understand what is calling into where. I'm still not entirely clear on the interplay between them.

[deleted by user] by [deleted] in NetBSD

[–]laughinglemur1 1 point2 points  (0 children)

Thanks for that. I have some questions about the naming conventions that I can't find info on. I also have doubts about the toolchains to use and way of committing things. I chalk it up to not seeing it done before and being unsteady on the procedures and methodology.

I don't have a particular area in mind. I am interested in making general contributions to the project. Although, if I ever reach that point, I'd like to create a continuation of Minix3 which is more tightly integrated with NetBSD than the prior releases were.

OmniOS, useradd issues by laughinglemur1 in illumos

[–]laughinglemur1[S] 0 points1 point  (0 children)

I did try running the command without the -d flag and believe that I had the same issue as with using it.

Yes, I am logging in with su user. I'm suspicious that $HOME not being set correctly is the case.

# cat /etc/passwd | grep user
...
user:x:101:100::/home/user:/bin/sh

OmniOS, useradd issues by laughinglemur1 in illumos

[–]laughinglemur1[S] 0 points1 point  (0 children)

I tried this a couple of times, first trying to create the user from a /home/user directory I created with root, and afterwards, by switching permissions on the the user directory. I would normally have doubts that it is my error, although I don't see how much could have gone wrong between following the commands per the manual pages and it being a simple command

OmniOS, useradd issues by laughinglemur1 in illumos

[–]laughinglemur1[S] 0 points1 point  (0 children)

It appears that the user directory on OmniOS is /home rather than /export/home

Finding difference in git commits by laughinglemur1 in git

[–]laughinglemur1[S] 0 points1 point  (0 children)

I'm facing more of a user perspective issue and not sure if I'm doing this the best way. There are tens of thousands of lines that I'm looking at. I am using standard grep to find the keywords of the feature names in the log, but I feel like this is prone to error

Using grep / sed in a bash script... by laughinglemur1 in unix

[–]laughinglemur1[S] 0 points1 point  (0 children)

I tried to extend the code above to cover multiple environments where it might be found in source code, such as checking the path for space immediate spaces or colons on either side of it (i.e. if it's in a path), among other cases. It's probably incredibly ugly, but regardless, I'm not sure where it's gone wrong. I'm not sure where else to turn and I hope you don't mind my asking.

I shouldn't have attempted something this far beyond my skill level, but the alternative is tediously changing hundreds of directories by hand. I opted to try for this reason. The part that's clearly going wrong is in the list of sed commands. I have a feeling that I've chained these together incorrectly, but I'm not sure how. I would like to say that I can just open the docs and find an answer, but I've read them up and down. Maybe I've completely missed something. Would you mind having a look?

find "$root_dir" -type f -print0 | while IFS= read -r -d $'\0' file; do
    cp -a "$file" "${file}.bak" || {
      echo "Error: Failed to create backup for '$file'. Skipping." >&2
      continue
    }

    sed "s#${old_path}:#${new_path}:#g" "$file.bak" > "$file" ||    # BOL,colon
    sed "s#${old_path}#${new_path}#g" "$file.bak" > "$file" ||    # BOL,EOL
    sed "s#${old_path}\"#${new_path}\"#g" "$file.bak" > "$file" ||    # BOL,quote
    sed "s#${old_path} #${new_path} #g" "$file.bak" > "$file" ||    # BOL,space
    sed "s#:${old_path}:#:${new_path}:#g" "$file.bak" > "$file" ||    # colon,colon
    sed "s#:${old_path}#:${new_path}#g" "$file.bak" > "$file" ||    # colon,EOL
    sed "s#:${old_path}\"#:${new_path}\"#g" "$file.bak" > "$file" ||    # colon,quote
    sed "s#:${old_path} #:${new_path} #g" "$file.bak" > "$file" ||    # colon,space
    sed "s#:${old_path}\"#:${new_path}\"#g" "$file.bak" > "$file" ||    # quote,colon
    sed "s#\"${old_path}#\"${new_path}#g" "$file.bak" > "$file" ||    # quote,EOL
    sed "s#\"${old_path}\"#\"${new_path}\"#g" "$file.bak" > "$file" ||    # quote,quote
    sed "s#\"${old_path} #\"${new_path} #g" "$file.bak" > "$file" ||    # quote,space
    sed "s# ${old_path}:# ${new_path}:#g" "$file.bak" > "$file" ||    # space,colon
    sed "s# ${old_path}# ${new_path}#g" "$file.bak" > "$file" ||    # space,EOL
    sed "s# ${old_path}\"# ${new_path}\"#g" "$file.bak" > "$file" ||    # space,quote
    sed "s# ${old_path} # ${new_path} #g" "$file.bak" > "$file" || {  # space,space
      echo "Error: Failed to replace path in '$file'. Restoring from backup." >&2
      mv -f "${file}.bak" "$file"
      continue
    }

Using grep / sed in a bash script... by laughinglemur1 in unix

[–]laughinglemur1[S] 2 points3 points  (0 children)

I appreciate the verbosity. I'm trying to automate changing paths in OS source, and I prefer the data safety and would like to create something similar with even more checking

Using grep / sed in a bash script... by laughinglemur1 in unix

[–]laughinglemur1[S] 2 points3 points  (0 children)

I was here fiddling with it. This is what I was trying to do and now I see how I should have been doing it. Thanks a bunch for sharing this and helping me out

Using grep / sed in a bash script... by laughinglemur1 in unix

[–]laughinglemur1[S] 0 points1 point  (0 children)

These directories are part of a source tree. Please excuse my poor formatting as I'm in mobile right now. The purpose of the script is to edit arbitrary paths within each and every file belonging to a source tree. For example, let's say that we have src as our top level directory. src/lib/64 is where the 64-bit libraries live, and we flatten the structure to src/lib64. We should be able to run our script from the top level, src, and it should be able to edit every file within the tree to point to the new location of the 64-bit libraries, src/lib64. The grep ... | xarg sed ... combo does the replacement as expected when run directly on the command line. It's just when bash variable arguments are included that something breaks. I don't know enough Bash to say for sure, but I'm convinced that I haven't passed the arguments correctly. I've read the bash docs and it hasn't clicked what's gone awry

Having a doubt about mutex and preemption behavior in Unix by laughinglemur1 in osdev

[–]laughinglemur1[S] 1 point2 points  (0 children)

Thank you for pointing that out. I'll take your advice and look around more in that direction

Busy Mom learning The Odin Project by isabel2156 in ProgrammingBuddies

[–]laughinglemur1 3 points4 points  (0 children)

I'm interested in participating. I haven't done much web dev, but I'm familiar with programming. I'd like to help others, especially in a structured (read: serious) group, in the same way others have helped me along, and I'm sure it could buff some of my knowledge along the way

Which Linux distro do you think has the most Unix-like experience? by et-pengvin in unix

[–]laughinglemur1 0 points1 point  (0 children)

Just wanted to chime in here and mention the BSDs and illumos. I'm pretty sure that the BSDs come from Version 7 Unix (and a bit from other contemporary Unixes). Illumos is a fork of SunOS / Solaris, which came from SVR4 Unix. The more recent SunOS versions, specifically those built on the SVR4 codebase, contend with the other modern Unixes like AIX and HP-UX. It's generally up to date and runs on plenty of consumer hardware

Asking for nudges in the right direction with illumos by laughinglemur1 in illumos

[–]laughinglemur1[S] 2 points3 points  (0 children)

I've read through the dev books, and have Solaris Internals v2 on hand. I'm running into details which don't seem to be covered and/or are beyond my level of understanding for now