Giter Site home page Giter Site logo

Newbie questions and feature requests about cpu HOT 3 OPEN

u-root avatar u-root commented on May 28, 2024
Newbie questions and feature requests

from cpu.

Comments (3)

Rubo3 avatar Rubo3 commented on May 28, 2024
  1. Running cpud on a Linux machine requires PID 1 - why? Shouldn't root privileges be enough? This makes it impossible to run on pretty much any ordinary Linux distribution (which I'd say defeats the major use case "to seamlessly perform work on running remote machines").

You can run cpud -d -init, especially if you use systemd.

from cpu.

dumblob avatar dumblob commented on May 28, 2024

Thanks for the suggestion @Rubo3 . What is it expected to do? On the Linux machine I currently sit in front of (Arch Linux with systemd), this is what happens (i.e. the daemon doesn't run neither in foreground nor in background):

0$ sudo systemctl status sshd
○ sshd.service - OpenSSH Daemon
     Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor pres>
     Active: inactive (dead) since Fri 2022-05-27 09:53:38 CEST; 1min 11s ago
    Process: 589 ExecStart=/usr/bin/sshd -D (code=exited, status=0/SUCCESS)
   Main PID: 589 (code=exited, status=0/SUCCESS)
        CPU: 149ms
...
$
$ ps -Afl | grep -Ei cpud
0 S xxx    3573884 3573065  0  80   0 -  2627 -      09:50 pts/2    00:00:00 grep --color=auto -Ei cpud
$ echo $?
0
$ cpud -d -init
2022/05/27 09:50:23 
CPUD:Args [cpud -d -init] pid 3573910 *runasinit true *remote false
2022/05/27 09:50:23 
CPUD:Running as Init
2022/05/27 09:50:23 
CPUD:Kicked off startup jobs, now serve ssh
2022/05/27 09:50:23 
CPUD:Start the process reaper
2022/05/27 09:50:23 CPUD:starting ssh server on port 23
2022/05/27 09:50:23 CPUD:err listen tcp :23: bind: permission denied
2022/05/27 09:50:23 
CPUD:server.ListenAndServer returned
2022/05/27 09:50:23 CPUD: All startup jobs exited
2022/05/27 09:50:23 CPUD: Syncing filesystems
2022/05/27 09:50:23 
CPUD:Reaped 1 procs
$ echo $?
0
$ ps -Afl | grep -Ei cpud
0 S xxx    3573939 3573065  0  80   0 -  2627 -      09:50 pts/2    00:00:00 grep --color=auto -Ei cpud
$ echo $?
0

from cpu.

dumblob avatar dumblob commented on May 28, 2024

Ok, cpud -d -init under root seems to fix the bind issue and I can connect with cpu localhost on the same machine. Thanks for the pointer!

Would you know something about the other points?

from cpu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.