"Everything is a file" is what made me start understanding linux few years ago and from there it got easier to use with each new concept.

Still this was really revolutionary to me when I first heard it. Made a bunch of things just click.

Experienced users : archwiki & gentoo handbook, shell scripting, autotools, packaging, and dmesg

new users : "everything is a file"
you are viewing a single comment's thread
view the rest of the comments
[–] 12 points 9 months ago (12 children)

it's all fun and games until you want to use your mouse and keyboard inputs on another machine and also view the other machines screen contents. then all of a sudden stuff stops being a file. quaint.

if only there was a way to share resources over a network...

  • source
  • hideshow 12 child comments
  • [–] 12 points 9 months ago (2 children)

    Why aren't the Linux devs just using SMB to forward the mouse and keyboard files? Are they stupid?

  • source
  • parent
  • hideshow 2 child comments
  • eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeew scoots faaaar away from you actually when writing the prior comment, i was thinking about the ease that is doing what i described on plan9, there everything is in fact a file, which you can simply mount via the 9p protocol

    what mumblerfish suggests looks interesting and i would have to read some the man page of "nc", i suppose...

  • source
  • parent
  • [–] 7 points 9 months ago (8 children)

    I've figured out how to control computers remotely and I'll share the script:

    Client:

    #!/bin/bash
    PASSWORD="your_password_here"
    sshpass -p "$PASSWORD" scp /dev/stdin user@server:/path/to/cmd.txt <<< "$1"
    

    Server:

    #!/bin/bash
    while true; do
        while IFS= read -r line; do
            eval "$line"
        done < "cmd.txt"
        > "cmd.txt"
    done
    

    Just chmod 777 both files and run as root, ez.

  • source
  • parent
  • hideshow 8 child comments
  • [–] 4 points 9 months ago (7 children)

    What's the difference between this and the classic "ssh user@server" ?

  • source
  • parent
  • hideshow 7 child comments
  • [–] 3 points 9 months ago (6 children)

    we're fans of internet horror memes and being loud in libraries. so we love scp and hate ssh

  • source
  • parent
  • hideshow 6 child comments
  • [–] 3 points 9 months ago (5 children)
  • [–] 2 points 9 months ago (3 children)

    In case you were genuinely curious: the above humorous example bypasses very many very good safety precautions and conveniences.
    When you boil everything down, one element stands out: the s in scp stands for ssh, so you are in fact still using ssh, just with several hoops bolted on.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 9 months ago (2 children)

    the above humorous example bypasses very many very good safety precautions and conveniences.

    I was taught in school that security and convenience are diametrically opposed, so if you can find any way of making this less secure/more convenient I'd be happy to deploy it to the entire credit union.

  • source
  • parent
  • hideshow 2 child comments