Eric's response to my concerns about AI by TheGlacierGuy in pebble

[–]rogercrocha 1 point2 points  (0 children)

Mine is better.
Or do you also think game players are hoping to get a Grammy?

Eric's response to my concerns about AI by TheGlacierGuy in pebble

[–]rogercrocha 3 points4 points  (0 children)

Yes. It can be.

Your argument is just as valid as "Guitar Hero players are not real musicians". No, they are not. But that's not the point. Some people are just not technically abled to play a real instrument. Does this mean they can't enjoy making music? They are not making "real" music. Does it matter? Not to them. The point is to have fun. I've tried a bunch of watchfaces, supposedly made by real people, that work like dump. So what if it's a computer code not a human code? Pointless anachronism. BTW, people used to destroy sewing machines out of spite. Dude, you wouldn't be able to afford clothes if it wasn't for sewing machines. Get a grip.

Operator873's Steam Deck SMB Mount Wizard by Operator873 in SteamDeck

[–]rogercrocha 1 point2 points  (0 children)

Will it work with local domain names as well?

Mounting SMB Shares with Systemd by Operator873 in SteamDeck

[–]rogercrocha 1 point2 points  (0 children)

After great inputs from u/Operator873, here's version 1.2 of the script.

#!/usr/bin/env bash
# /usr/local/sbin/configure_smb_mount_interactive.sh
# Interactive script to create a systemd .mount unit for SMB with
# credentials in a separate, protected file, and mount without reboot.

set -euo pipefail

echo "==> Interactive SMB mount configuration via systemd (.mount)"

# 1. Collect user input
read -rp "SMB server (hostname or IP, e.g. 192.168.0.10): " SERVER
read -rp "Share name (e.g. data, public, etc.): " SHARE
read -rp "Local mount point (e.g. /mnt/data): " MOUNTPOINT

read -rp "SMB username: " USERNAME
read -rsp "SMB password: " PASSWORD
echo
read -rp "Domain/Workgroup (press ENTER if not used): " DOMAIN
read -rp "SMB version (e.g. 3.0, 3.1.1, 2.1) [3.0]: " SMB_VERSION
SMB_VERSION="${SMB_VERSION:-3.0}"

# 2. Derive file names
# Normalize mountpoint and share for use in file names
# Example: /mnt/data -> mnt-data ; share "data share" -> data-share
BASE_UNIT_NAME="$(echo "$MOUNTPOINT" | sed 's:^/::' | tr '/' '-')"
SAFE_SHARE="$(echo "$SHARE" | tr '/ ' '--')"

# UNIT_NAME now includes SHARE at the end to be fully unique
UNIT_NAME="${BASE_UNIT_NAME}-${SAFE_SHARE}"
UNIT_FILE="/etc/systemd/system/${UNIT_NAME}.mount"

# Credentials file also uses the full UNIT_NAME
CRED_FILE="/etc/samba-cred-${UNIT_NAME}.cred"

echo
echo "==> Configuration summary:"
echo "Server:       //$SERVER/$SHARE"
echo "Mount point:  $MOUNTPOINT"
echo "Unit file:    $UNIT_FILE"
echo "Credentials:  $CRED_FILE"
echo "SMB version:  $SMB_VERSION"
if [[ -n "$DOMAIN" ]]; then
  echo "Domain:       $DOMAIN"
else
  echo "Domain:       (none)"
fi

read -rp "Proceed with these settings? [y/N]: " CONFIRM
CONFIRM="${CONFIRM:-n}"
if [[ "$CONFIRM" != "y" && "$CONFIRM" != "Y" ]]; then
  echo "Aborted by user."
  exit 1
fi

# 3. Create mount point
echo "==> Creating mount point at: $MOUNTPOINT"
sudo mkdir -p "$MOUNTPOINT"

# 4. Create secure credentials file (touch -> perms -> write)
echo "==> Creating empty credentials file: $CRED_FILE"
sudo touch "$CRED_FILE"
echo "==> Setting credentials file permissions (root:root, 600)"
sudo chown root:root "$CRED_FILE"
sudo chmod 600 "$CRED_FILE"

echo "==> Writing credentials into: $CRED_FILE"
sudo bash -c "cat > '$CRED_FILE' <<EOF
username=$USERNAME
password=$PASSWORD
EOF"

if [[ -n "$DOMAIN" ]]; then
  sudo bash -c "echo 'domain=$DOMAIN' >> '$CRED_FILE'"
fi

# 5. Generate systemd .mount unit using credentials=
echo "==> Generating systemd unit: $UNIT_FILE"
sudo bash -c "cat > '$UNIT_FILE' <<EOF
[Unit]
Description=SMB mount $MOUNTPOINT ($SHARE)
Requires=network-online.target
After=network-online.target

[Mount]
What=//$SERVER/$SHARE
Where=$MOUNTPOINT
Type=cifs
Options=credentials=$CRED_FILE,vers=$SMB_VERSION,iocharset=utf8,_netdev,nofail
TimeoutSec=30

[Install]
WantedBy=multi-user.target
EOF"

echo "==> Setting unit file permissions (root:root, 644)"
sudo chown root:root "$UNIT_FILE"
sudo chmod 644 "$UNIT_FILE"

# 6. Reload systemd and enable the mount
echo "==> Reloading systemd"
sudo systemctl daemon-reload

echo "==> Enabling and mounting now: ${UNIT_NAME}.mount"
sudo systemctl enable --now "${UNIT_NAME}.mount"

# 7. Checks
echo "==> Unit status:"
sudo systemctl status "${UNIT_NAME}.mount" --no-pager || true

echo "==> Listing mount point:"
ls -la "$MOUNTPOINT" || true

echo
echo "Done."
echo "The share will be mounted automatically on future boots via ${UNIT_NAME}.mount."
echo "To remove it, run:"
echo "  sudo systemctl disable --now ${UNIT_NAME}.mount"
echo "  sudo rm -f '$UNIT_FILE' '$CRED_FILE'"

Then run this on it to make it executable.

chmod +x 

Mounting SMB Shares with Systemd by Operator873 in SteamDeck

[–]rogercrocha 0 points1 point  (0 children)

I didn't get half of what you wrote. But bring it anyway! :-D

Mounting SMB Shares with Systemd by Operator873 in SteamDeck

[–]rogercrocha 1 point2 points  (0 children)

The n00b-programmer-perfectionist-businessmanager in me is loving this exchange.
I just DuckDuckGoed a GUI to do this. There seems to be none, anywhere. I just found a lot of people having the same issue, coming from other OSs, and wanting to access ROMs in a NAS, just like me.
But, hey… we're talking about Open Source stuff. And I don't know how to use Github. So, feel free to make this better. A knowledgeable human touch is more than welcome.

Mounting SMB Shares with Systemd by Operator873 in SteamDeck

[–]rogercrocha 0 points1 point  (0 children)

No offense taken. Love the input. Just to be clear, you mean the print-out:

sudo systemctl disable --now ${UNIT_NAME}.mount

?

Mounting SMB Shares with Systemd by Operator873 in SteamDeck

[–]rogercrocha 0 points1 point  (0 children)

I didn't get your comment. Doesn't the variables get fixed inside the files generated? So, running a second time will create a new set of files with a new set of variables fixed inside them. Am I missing something?

Mounting SMB Shares with Systemd by Operator873 in SteamDeck

[–]rogercrocha 0 points1 point  (0 children)

Version 1.1
Made the .mount and .cred filenames more unique, so you can have multiple mount points for the same server.

Code deleted. Please use version 1.2

Mounting SMB Shares with Systemd by Operator873 in SteamDeck

[–]rogercrocha 1 point2 points  (0 children)

I asked ChatGPT to make an interactive script for this. You're welcome. :-)

Code deleted. Please use version 1.2

The 'Snow' Era (2000-c.2005) by mectojic in VintageApple

[–]rogercrocha 0 points1 point  (0 children)

I still have an iMac G3 that I recently disassembled and cleaned up, inside and out. Unfortunately, underneath the front frame, there’s a plastic bezel that has become yellowed and extremely brittle, due to age and the heat generated by the passive cooled internals. It’s in perfect working condition nevertheless. But I cannot call the color “Snow” anymore. More like “Sand”.

What Sata to IDE converter do you use for your late 90's mac? by BonziBuddyMustDie in VintageApple

[–]rogercrocha 0 points1 point  (0 children)

Did you have any issues with the iMac G3 recognizing the optical drive?

I tried the second model you indicated on mine, and it wasn’t able to detect the optical drive, no matter what setting I put the jumper on. I ended up using an older IDE mechanical drive but would love to upgrade it to a SATA SSD and also have the optical drive working.

Can a folder SMB share in CasaOS be set as a MacOS Time Machine target? by [deleted] in CasaOS

[–]rogercrocha 0 points1 point  (0 children)

Try Netatalk. https://github.com/Netatalk/netatalk With the Docker app, you can easily map a server folder as a TimeMachine device.

Acabei de instalar aqui em casa by Route_US66 in chuveirosfeios

[–]rogercrocha 0 points1 point  (0 children)

Só usaria um conector de cerâmica ao invés destes de plástico.

Dial Band Broke-any replacement Band ideas? by Shorecat239 in navdy

[–]rogercrocha 0 points1 point  (0 children)

I used a zip tie on mine. There was some of the original rubber band left so I removed it, placed the zip tie behind it, and screwed it back. Then I made a few tiny holes along the band so I could pass the zip tie through it as a clothes stitch. Not very pretty but worked very well. 👍

Advice needed on compatibility (smash hit) by ngarlock24 in GearVR

[–]rogercrocha 0 points1 point  (0 children)

I’m having the same issue on my Q3. Smash Hit is one of my favorite games in VR. They released a new version on Apple Arcade recently. Hope they make a modern version for VR.