tla

joined 2 years ago
[โ€“] tla@lemmy.world 4 points 1 month ago (1 children)

The missile is confirmed by various experts as a Tomahawk Cruise missile. Iran doesn't have any Tomahawks, so Trump's claim that the Iranians did it is ridiculous. I guess that leaves the USA and Israel.

[โ€“] tla@lemmy.world 7 points 1 month ago
#!/bin/bash

#
***
Configuration
***
SOURCE_DEV="/dev/sr0"
MOUNT_POINT="/mnt/mac_legacy_cd"
DEST_DIR="$HOME/Desktop/mac_recovered_files"

# 1. Ensure the system is ready
echo "Checking for HFS support..."
sudo modprobe hfs 2>/dev/null
sudo modprobe hfsplus 2>/dev/null

# Create directories
sudo mkdir -p "$MOUNT_POINT"
mkdir -p "$DEST_DIR"

# 2. Attempt to mount
# We try HFS first with MacRoman to UTF-8 translation
echo "Attempting to mount $SOURCE_DEV..."
sudo mount -t hfs -o ro,iocharset=utf8 "$SOURCE_DEV" "$MOUNT_POINT" 2>/dev/null

if [ $? -ne 0 ]; then
    echo "HFS mount failed, trying HFS+ (Mac OS Extended)..."
    sudo mount -t hfsplus -o ro "$SOURCE_DEV" "$MOUNT_POINT"
fi

# 3. Verify mount and Copy
if mountpoint -q "$MOUNT_POINT"; then
    echo "Mount successful. Copying files to $DEST_DIR..."
    # -a: archive mode (preserves symlinks, permissions, times)
    # -v: verbose
    # -z: compress (not really needed for local, but good practice)
    # -P: show progress
    rsync -avzP "$MOUNT_POINT/" "$DEST_DIR/"
    
    echo "---"
    echo "Copy complete. Unmounting..."
    sudo umount "$MOUNT_POINT"
    echo "Done. You can find your files in $DEST_DIR"
else
    echo "Error: Could not mount the disc. Ensure the CD is inserted and $SOURCE_DEV is the correct path."
    exit 1
fi

[โ€“] tla@lemmy.world 2 points 1 month ago

I don't. But dnf-automatic (fedora) does it automatically about once a day based on a systemd timer. dnf needs-restarting indicates if a reboot is required (or just configure dnf-automatic to do it).

[โ€“] tla@lemmy.world 15 points 2 months ago (1 children)
[โ€“] tla@lemmy.world 9 points 2 months ago

Depends on the distro. Fedora is a general purpose distro and usually pushes out new kernel releases (6.19 for example) after about 4 weeks. This means the initial bugs have been fixed and it's stable for general purpose use. If you want the latest release it's easy:

sudo dnf upgrade kernel --enablerepo=updates-testing

The Fedora Koji build system has the latest version in testing.

You can also build your own.

Don't make the mistake of thinking 7.0 will be any more special than 6.19 or 6.20 etc. They're just release numbers and when Torvalds thinks the point number is big enough the first number is incremented.

[โ€“] tla@lemmy.world 12 points 2 months ago (4 children)

Wrong approach. Make new free trade deals with other countries.

[โ€“] tla@lemmy.world 2 points 3 months ago (1 children)

Iran is China's 38th most valuable trade partner. The US is number 1. Who are sanctions on China by the US going to hurt most?

[โ€“] tla@lemmy.world 9 points 4 months ago

Intelligence, for example.

view more: next โ€บ