Giter VIP home page Giter VIP logo

Comments (10)

 avatar commented on May 30, 2024

I would make a PR but I cannot find the source for apt.syncthing.net

from old-web.

calmh avatar calmh commented on May 30, 2024

Can't we work on the assumption that people who know how to modify package setups and so on via command line on Linux know that they need root access to do so?

However an alternate (and better option in my opinion) is to add a syncthing specific sources list:
echo "deb http://apt.syncthing.net/ syncthing release" >/tmp/syncthing.list
sudo cp /tmp/syncthing.list /etc/apt/sources.list.d/

That's probably a good idea. Does this work on every recent Debianish distribution?

from old-web.

 avatar commented on May 30, 2024

Can't we work on the assumption that people who know how to modify package setups and so on via command line on Linux know that they need root access to do so?

Sure, I think that's a good assumption. The distinction I'm making is the 2 ways of how people gain root access. A good number of people have been trained to never use root in favor of jumping in and out of sudo. In fact the general convention for command line tutorials is to heavily discourage root usage for safety... and this generates a bias against using the root account itself.

So to that end it would be good to have a command which is sudo compatible as your current commands require the usage of the root account. (for example >> is executed first, so it fails if you're trying to use it with sudo) While I don't mind the current commands they will be problematic in the future without sudo compatibility of some kind.

I'm not trying to be pedantic, just trying to prevent a lot of future issues and support requests of: I can't get this to work help me please etc etc etc 😄

That's probably a good idea. Does this work on every recent Debianish distribution?

It should, as it's a current feature of apt. Debian squeeze man page for sources.list details the sources.list.d directory: http://manpages.debian.org/cgi-bin/man.cgi?query=sources.list&apropos=0&sektion=5&manpath=Debian+6.0+squeeze&format=html&locale=en

from old-web.

calmh avatar calmh commented on May 30, 2024

You're probably right, most similar things online seem to use sudo so I guess that's what people are used to - if nothing else then just as a "this command needs root" marker.

Then there's the ever popular curl | sh... ;)

from old-web.

 avatar commented on May 30, 2024

Then there's the ever popular curl | sh... ;)

The horror... shudders... 😞

from old-web.

 avatar commented on May 30, 2024

So is the source for apt.syncthing.net here on github somewhere? If it is I'm happy to make a pull request.

from old-web.

calmh avatar calmh commented on May 30, 2024

Yeah, no, it was a quick evening hack. I'm going to clean up and put it in a repo here somewhere.

from old-web.

 avatar commented on May 30, 2024

👍

from old-web.

calmh avatar calmh commented on May 30, 2024

https://github.com/syncthing/apt-web

from old-web.

 avatar commented on May 30, 2024

For context, here's the first support request related to this issue: https://forum.syncthing.net/t/2761

from old-web.

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.