Giter Site home page Giter Site logo

Comments (8)

WesGilster avatar WesGilster commented on June 15, 2024

So really, there are two situations here:

  1. What are the minimal alterations that it will take to make CWH operate under 'most' Linux environments. (Including but not limited to the Raspberry Pi)
  2. What will it take to take make your Raspberry Pi a dedicated printing board and disable all of the stock features that come with your Raspberry Pi window manager.

start.sh 'attempts' to perform task #1
raspi-config-cwhost.sh 'attempts' to perform task #2 (However it 'should' be optional)

If you've found something that breaks either of these two conditions I'd really like to know about it, and so would the community.

from photonic3d.

sbryan avatar sbryan commented on June 15, 2024

Not a "break" per-se... I was simply confused since the README.md and wiki page do seem to start off specific to Raspberry/Rasperian usages... seems like even a footnote along the lines of "If you are setting up a dedicated wireless print server for your 3D printer, you can also run the raspi-config-cwhost.sh script to do so... warning, blah, blah, blah..."

If the intention is to protect users from accidentally doing this to their Pi, then, well, I guess this is not a bug ;) I'm only suggesting that it you wanted folks to know about the script, it would probably help to document it someplace :P Otherwise, feel free to close as "not a bug", I won't be offended.

from photonic3d.

WesGilster avatar WesGilster commented on June 15, 2024

Yep, I'll document that. It's just that I'm not sure that script is heavily tested. Please try it and let us know what you think.

Also, please let us know if the minimal procedure doesn't work for you. We need testing more than anything. If you haven't noticed, we are lacking in that department...

from photonic3d.

WesGilster avatar WesGilster commented on June 15, 2024

I'll also move the raspi-config-cwhost.sh in the bin directory so that it is more accessible. Actually, maybe I'll do that after you like how it performs.

from photonic3d.

WesGilster avatar WesGilster commented on June 15, 2024

I organized the information a little bit. I mentioned and provided a link to the raspi-config-cwhost.sh script as well. Added a few bits of information that might be helpful as well. Close when you feel comfortable.

from photonic3d.

sbryan avatar sbryan commented on June 15, 2024

Well, I messed around with this for several hours last night, and, to be honest, I think it messed things up more than helped... nothing personal.

It may be that enough has changed between the 2015-02-16 and the 2015-05-05 raspian images that the script needs to do more context checking. All I know is that I installed raspian from the NOOBS image that contains a newer version than what your instructions list... otherwise I did everything by the "book"

What I found was that it was calling mkdir -p in several places where the path contained the actual file that was going to be created, not the directory it was contained in like it should have been... here's an example:

do_hide_mouse() {
  sudo apt-get install unclutter
  mkdir -p /home/pi/.config/lxsession/LXDE/autostart
  echo "unclutter -idle 0" >> /home/pi/.config/lxsession/LXDE/autostart
}

In the above function, the result is a DIRECTORY named autostart, which is not what you want, as the following echo command throws an error:

./raspi-config-cwhost.sh: cannot create /home/pi/.config/lxsession/LXDE/autostart: Is a directory

This also happens in do_autostart_cwhost()

In addition to the above, the script requires that it be run as root (sudo), yet it is explicitly modifying the pi users configs with root permissions on files, but, at least on my installed image, the default Xsession is running under root, not pi?

Again, much of this could also just be some session/desktop config changes in the later version of raspian I am using.

I am burning a clean image of the 2015-05-05 raspian to my microSD card now. If you want me to debug any of this on a clean install, I can try, just let me know what info you may need.

from photonic3d.

WesGilster avatar WesGilster commented on June 15, 2024

No need to apologize. I didn't write it and have never run it. I'm not
sure it has ever been executed...

Thanks,
Wes G.
On 7/8/2015 11:15 PM, Shane Bryan wrote:

Well, I messed around with this for several hours last night, and, to
be honest, I think it messed things up more than helped... nothing
personal.

It may be that enough has changed between the 2015-02-16 and the
2015-05-05 raspian images that the script needs to do more context
checking. All I know is that I installed raspian from the NOOBS image
that contains a newer version than what your instructions list...
otherwise I did everything by the "book"

What I found was that it was calling |mkdir -p| in several places
where the path contained the actual file that was going to be created,
not the directory it was contained in like it should have been...
here's an example:

|do_hide_mouse() {
sudo apt-get install unclutter
mkdir -p /home/pi/.config/lxsession/LXDE/autostart
echo "unclutter -idle 0" >> /home/pi/.config/lxsession/LXDE/autostart
}
|

In the above function, the result is a /DIRECTORY/ named |autostart|,
which is not what you want, as the following |echo| command throws an
error:

|./raspi-config-cwhost.sh: cannot create /home/pi/.config/lxsession/LXDE/autostart: Is a directory
|

This also happens in |do_autostart_cwhost()|

In addition to the above, the script requires that it be run as root
(sudo), yet it is explicitly modifying the |pi| users configs with
root permissions on files, but, at least on my installed image, the
default Xsession is running under root, not pi?

Again, much of this could also just be some session/desktop config
changes in the later version of raspian I am using.

I am burning a clean image of the 2015-05-05 raspian to my microSD
card now. If you want me to debug any of this on a clean install, I
can try, just let me know what info you may need.


Reply to this email directly or view it on GitHub
#47 (comment).

from photonic3d.

jmkao avatar jmkao commented on June 15, 2024

I think this is largely superseded by the RPi image generation and the way start.sh works. I'm closing this, free free to re-open if you feel that I got it wrong.

from photonic3d.

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.