Comments (8)
So really, there are two situations here:
- 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)
- 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.
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.
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.
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.
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.
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.
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.
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)
- [BUG] : double skinName needed in API request HOT 1
- Any plan for locales? HOT 1
- Automatic on / off the projector. HOT 2
- Weird Java Error I can't get to the bottom of... hopefully it's a quick nudge for one of the masters here HOT 15
- Fall back on systemd if init.d isn't available HOT 10
- Offline printing! HOT 9
- Installation Help HOT 5
- Debugging Help
- Printer set up HOT 2
- Display and wifi stopped working after update HOT 1
- laser 3D printer HOT 1
- Does photonics respect the layer setting in CWS gcode? HOT 1
- Is the project dead? HOT 8
- KLD-LCD1260 Profile HOT 7
- Linux Install destroys Config. NO WARNING HOT 10
- How to start this? HOT 1
- Connect with Duet2 Ethernet HOT 1
- Contact request HOT 5
- Connect Photonic "serial" to Klipper HOT 1
- projector HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from photonic3d.