Forskjell mellom versjoner av «Diskusjon:CNC Modela fres»
m (→Kretskort: "Roland" ikke "roland") |
(KJøre Nodela i en vm på Debian-maskina virker.) |
||
(2 mellomliggende revisjoner av samme bruker vises ikke) | |||
Linje 5: | Linje 5: | ||
Nodela<ref>[http://andysigler.com/hardware/nodela/ Nodela - a web interface for milling PCBS on the Roland Modela]</ref> er et annet alternativ, det er et web-grensesnitt skrevet i javascript (nodejs) for å frese kretskort rett fra Eagle-filer. Kildekode på Github<ref>[https://github.com/andysigler/nodela Github - Nodela]</ref>. --[[Bruker:Tingo|Tingo]] ([[Brukerdiskusjon:Tingo|diskusjon]]) 31. mai 2017 kl. 11:53 (UTC) | Nodela<ref>[http://andysigler.com/hardware/nodela/ Nodela - a web interface for milling PCBS on the Roland Modela]</ref> er et annet alternativ, det er et web-grensesnitt skrevet i javascript (nodejs) for å frese kretskort rett fra Eagle-filer. Kildekode på Github<ref>[https://github.com/andysigler/nodela Github - Nodela]</ref>. --[[Bruker:Tingo|Tingo]] ([[Brukerdiskusjon:Tingo|diskusjon]]) 31. mai 2017 kl. 11:53 (UTC) | ||
+ | === Nodela - test === | ||
+ | Installerte Nodela, men fikk en feil som sa at den krevde en nyere versjon av nodejs enn den som følger med Debian Jessie. Oppgraderte derfor nodejs fra jessie-backports. Nå er det slik | ||
+ | bitraf@desktop-41nl8sd:~/progs/nodela$ node --version | ||
+ | v4.8.2 | ||
+ | bitraf@desktop-41nl8sd:~/progs/nodela$ node nodela.js | ||
+ | /home/bitraf/progs/nodela/node_modules/serialport/node_modules/bindings/bindings.js:83 | ||
+ | throw e | ||
+ | ^ | ||
+ | |||
+ | Error: Module did not self-register. | ||
+ | at Error (native) | ||
+ | at Object.Module._extensions..node (module.js:434:18) | ||
+ | at Module.load (module.js:343:32) | ||
+ | at Function.Module._load (module.js:300:12) | ||
+ | at Module.require (module.js:353:17) | ||
+ | at require (internal/module.js:12:17) | ||
+ | at bindings | ||
+ | (/home/bitraf/progs/nodela/node_modules/serialport/node_modules/bindings/bindings.js:76:44) | ||
+ | at Object.<anonymous> | ||
+ | (/home/bitraf/progs/nodela/node_modules/serialport/lib/bindings.js:3:35) | ||
+ | at Module._compile (module.js:409:26) | ||
+ | at Object.Module._extensions..js (module.js:416:10) | ||
+ | |||
+ | ok, da prøver jeg å kjøre npm install på nytt | ||
+ | bitraf@desktop-41nl8sd:~/progs/nodela$ npm install | ||
+ | bash: npm: command not found | ||
+ | |||
+ | Åh? Hvorfor er ikke den installert? | ||
+ | La meg prøve å fikse det | ||
+ | |||
+ | bitraf@desktop-41nl8sd:~$ sudo apt install -o Acquire::ForceIPv4=true -t jessie-backports npm | ||
+ | Reading package lists... Done | ||
+ | Building dependency tree | ||
+ | Reading state information... Done | ||
+ | Some packages could not be installed. This may mean that you have | ||
+ | requested an impossible situation or if you are using the unstable | ||
+ | distribution that some required packages have not yet been created | ||
+ | or been moved out of Incoming. | ||
+ | The following information may help to resolve the situation: | ||
+ | |||
+ | The following packages have unmet dependencies: | ||
+ | npm : Depends: node-gyp (>= 0.10.9) but it is not going to be installed | ||
+ | E: Unable to correct problems, you have held broken packages. | ||
+ | |||
+ | bitraf@desktop-41nl8sd:~$ sudo apt install -o Acquire::ForceIPv4=true node-gyp | ||
+ | Reading package lists... Done | ||
+ | Building dependency tree | ||
+ | Reading state information... Done | ||
+ | Some packages could not be installed. This may mean that you have | ||
+ | requested an impossible situation or if you are using the unstable | ||
+ | distribution that some required packages have not yet been created | ||
+ | or been moved out of Incoming. | ||
+ | The following information may help to resolve the situation: | ||
+ | |||
+ | The following packages have unmet dependencies: | ||
+ | node-gyp : Depends: nodejs-dev but it is not going to be installed | ||
+ | E: Unable to correct problems, you have held broken packages. | ||
+ | |||
+ | bitraf@desktop-41nl8sd:~$ sudo apt install -o Acquire::ForceIPv4=true -t jessie-backports nodejs-dev | ||
+ | Reading package lists... Done | ||
+ | Building dependency tree | ||
+ | Reading state information... Done | ||
+ | Some packages could not be installed. This may mean that you have | ||
+ | requested an impossible situation or if you are using the unstable | ||
+ | distribution that some required packages have not yet been created | ||
+ | or been moved out of Incoming. | ||
+ | The following information may help to resolve the situation: | ||
+ | |||
+ | The following packages have unmet dependencies: | ||
+ | nodejs-dev : Depends: libssl1.0-dev (>= 1.0.2) but it is not installable | ||
+ | E: Unable to correct problems, you have held broken packages. | ||
+ | |||
+ | bitraf@desktop-41nl8sd:~$ sudo apt install -o Acquire::ForceIPv4=true -t jessie- | ||
+ | backports libssl1.0-dev | ||
+ | Reading package lists... Done | ||
+ | Building dependency tree | ||
+ | Reading state information... Done | ||
+ | Package libssl1.0-dev is not available, but is referred to by another package. | ||
+ | This may mean that the package is missing, has been obsoleted, or | ||
+ | is only available from another source | ||
+ | |||
+ | E: Package 'libssl1.0-dev' has no installation candidate | ||
+ | vi har et problem.--[[Bruker:Tingo|Tingo]] ([[Brukerdiskusjon:Tingo|diskusjon]]) 1. jun. 2017 kl. 16:41 (UTC) | ||
+ | |||
+ | aptitude klarer heller ikke å fikse problemet: | ||
+ | bitraf@desktop-41nl8sd:~$ sudo aptitude install npm | ||
+ | The following NEW packages will be installed: | ||
+ | gyp{a} libc-ares-dev{a} libc-ares2{a} libjs-node-uuid{a} libssl-dev{ab} libssl-doc{a} | ||
+ | libv8-3.14-dev{a} libv8-3.14.5{a} node-abbrev{a} node-ansi{a} node-ansi-color-table{a} | ||
+ | |||
+ | node-archy{a} node-async{a} node-block-stream{a} node-combined-stream{a} node-cookie-jar{a} | ||
+ | node-delayed-stream{a} node-forever-agent{a} node-form-data{a} node-fstream{a} | ||
+ | node-fstream-ignore{a} node-github-url-from-git{a} node-glob{a} node-graceful-fs{a} node-gyp{a} | ||
+ | node-inherits{a} node-ini{a} node-json-stringify-safe{a} node-lockfile{a} node-lru-cache{a} | ||
+ | node-mime{a} node-minimatch{a} node-mkdirp{a} node-mute-stream{a} node-node-uuid{a} node-nopt{a} | ||
+ | node-normalize-package-data{a} node-npmlog{a} node-once{a} node-osenv{a} node-qs{a} node-read{a} | ||
+ | node-read-package-json{a} node-request{a} node-retry{a} node-rimraf{a} node-semver{a} node-sha{a} | ||
+ | node-sigmund{a} node-slide{a} node-tar{a} node-tunnel-agent{a} node-underscore{a} node-which{a} | ||
+ | nodejs-dev{ab} npm zlib1g-dev{a} | ||
+ | 0 packages upgraded, 57 newly installed, 0 to remove and 0 not upgraded. | ||
+ | Need to get 0 B/5,435 kB of archives. After unpacking 20.3 MB will be used. | ||
+ | The following packages have unmet dependencies: | ||
+ | libssl-dev : Depends: libssl1.0.0 (= 1.0.1t-1+deb8u6) but 1.0.2k-1~bpo8+1 is installed. | ||
+ | nodejs-dev : Depends: nodejs (= 0.10.29~dfsg-2) but 4.8.2~dfsg-1~bpo8+1 is installed. | ||
+ | The following actions will resolve these dependencies: | ||
+ | |||
+ | Keep the following packages at their current version: | ||
+ | 1) libssl-dev [Not Installed] | ||
+ | 2) node-gyp [Not Installed] | ||
+ | 3) nodejs-dev [Not Installed] | ||
+ | 4) npm [Not Installed] | ||
+ | |||
+ | |||
+ | |||
+ | Accept this solution? [Y/n/q/?] q | ||
+ | Abandoning all efforts to resolve these dependencies. | ||
+ | Abort. | ||
+ | nå gir jeg meg. --[[Bruker:Tingo|Tingo]] ([[Brukerdiskusjon:Tingo|diskusjon]]) 1. jun. 2017 kl. 16:48 (UTC) | ||
+ | : 2017-06-06 : siden Debian ikke ville, så har jeg forsøkt meg på slegge-varianten. Først installerte jeg KVM<ref>[[Wikipedia:Kernel-based Virtual Machine|KVM]]</ref> på maskinen, deretter satte jeg opp en virtuell maskin (vm) og brukte Fedora-Cloud-Base-25<ref>[https://alt.fedoraproject.org/cloud/ Fedora Cloud]</ref> som image. Med litt fikling (den virtuelle maskinen krevde 512MB RAM for å kjøre dnf) så fikk jeg installert både nodejs og nodela på VMen. Når åpner <VM ip adresse:8080> i Chrome så kommer nodela opp - Yes! Det gjenstår og se om jeg kan la vm'en få tilgang til usb serieporten (på host) som styrer CNC maskina. --[[Bruker:Tingo|Tingo]] ([[Brukerdiskusjon:Tingo|diskusjon]]) 6. jun. 2017 kl. 14:12 (UTC) | ||
== Referanser == | == Referanser == | ||
<references/> | <references/> |
Nåværende revisjon fra 6. jun. 2017 kl. 15:12
Kretskort
Det sies at Eagle[1] har støtte for fresing og borring av kretskort på Modela. Bør sjekkes ut.--Tingo (diskusjon) 31. mai 2017 kl. 10:05 (UTC)
Nodela[2] er et annet alternativ, det er et web-grensesnitt skrevet i javascript (nodejs) for å frese kretskort rett fra Eagle-filer. Kildekode på Github[3]. --Tingo (diskusjon) 31. mai 2017 kl. 11:53 (UTC)
Nodela - test
Installerte Nodela, men fikk en feil som sa at den krevde en nyere versjon av nodejs enn den som følger med Debian Jessie. Oppgraderte derfor nodejs fra jessie-backports. Nå er det slik
bitraf@desktop-41nl8sd:~/progs/nodela$ node --version v4.8.2 bitraf@desktop-41nl8sd:~/progs/nodela$ node nodela.js /home/bitraf/progs/nodela/node_modules/serialport/node_modules/bindings/bindings.js:83 throw e ^ Error: Module did not self-register. at Error (native) at Object.Module._extensions..node (module.js:434:18) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at bindings (/home/bitraf/progs/nodela/node_modules/serialport/node_modules/bindings/bindings.js:76:44) at Object.<anonymous> (/home/bitraf/progs/nodela/node_modules/serialport/lib/bindings.js:3:35) at Module._compile (module.js:409:26) at Object.Module._extensions..js (module.js:416:10)
ok, da prøver jeg å kjøre npm install på nytt
bitraf@desktop-41nl8sd:~/progs/nodela$ npm install bash: npm: command not found
Åh? Hvorfor er ikke den installert? La meg prøve å fikse det
bitraf@desktop-41nl8sd:~$ sudo apt install -o Acquire::ForceIPv4=true -t jessie-backports npm Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: npm : Depends: node-gyp (>= 0.10.9) but it is not going to be installed E: Unable to correct problems, you have held broken packages.
bitraf@desktop-41nl8sd:~$ sudo apt install -o Acquire::ForceIPv4=true node-gyp Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: node-gyp : Depends: nodejs-dev but it is not going to be installed E: Unable to correct problems, you have held broken packages.
bitraf@desktop-41nl8sd:~$ sudo apt install -o Acquire::ForceIPv4=true -t jessie-backports nodejs-dev Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: nodejs-dev : Depends: libssl1.0-dev (>= 1.0.2) but it is not installable E: Unable to correct problems, you have held broken packages.
bitraf@desktop-41nl8sd:~$ sudo apt install -o Acquire::ForceIPv4=true -t jessie- backports libssl1.0-dev Reading package lists... Done Building dependency tree Reading state information... Done Package libssl1.0-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'libssl1.0-dev' has no installation candidate
vi har et problem.--Tingo (diskusjon) 1. jun. 2017 kl. 16:41 (UTC)
aptitude klarer heller ikke å fikse problemet:
bitraf@desktop-41nl8sd:~$ sudo aptitude install npm The following NEW packages will be installed: gyp{a} libc-ares-dev{a} libc-ares2{a} libjs-node-uuid{a} libssl-dev{ab} libssl-doc{a} libv8-3.14-dev{a} libv8-3.14.5{a} node-abbrev{a} node-ansi{a} node-ansi-color-table{a}
node-archy{a} node-async{a} node-block-stream{a} node-combined-stream{a} node-cookie-jar{a} node-delayed-stream{a} node-forever-agent{a} node-form-data{a} node-fstream{a} node-fstream-ignore{a} node-github-url-from-git{a} node-glob{a} node-graceful-fs{a} node-gyp{a} node-inherits{a} node-ini{a} node-json-stringify-safe{a} node-lockfile{a} node-lru-cache{a} node-mime{a} node-minimatch{a} node-mkdirp{a} node-mute-stream{a} node-node-uuid{a} node-nopt{a} node-normalize-package-data{a} node-npmlog{a} node-once{a} node-osenv{a} node-qs{a} node-read{a} node-read-package-json{a} node-request{a} node-retry{a} node-rimraf{a} node-semver{a} node-sha{a} node-sigmund{a} node-slide{a} node-tar{a} node-tunnel-agent{a} node-underscore{a} node-which{a} nodejs-dev{ab} npm zlib1g-dev{a} 0 packages upgraded, 57 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/5,435 kB of archives. After unpacking 20.3 MB will be used. The following packages have unmet dependencies: libssl-dev : Depends: libssl1.0.0 (= 1.0.1t-1+deb8u6) but 1.0.2k-1~bpo8+1 is installed. nodejs-dev : Depends: nodejs (= 0.10.29~dfsg-2) but 4.8.2~dfsg-1~bpo8+1 is installed. The following actions will resolve these dependencies: Keep the following packages at their current version: 1) libssl-dev [Not Installed] 2) node-gyp [Not Installed] 3) nodejs-dev [Not Installed] 4) npm [Not Installed] Accept this solution? [Y/n/q/?] q Abandoning all efforts to resolve these dependencies. Abort.
nå gir jeg meg. --Tingo (diskusjon) 1. jun. 2017 kl. 16:48 (UTC)
- 2017-06-06 : siden Debian ikke ville, så har jeg forsøkt meg på slegge-varianten. Først installerte jeg KVM[4] på maskinen, deretter satte jeg opp en virtuell maskin (vm) og brukte Fedora-Cloud-Base-25[5] som image. Med litt fikling (den virtuelle maskinen krevde 512MB RAM for å kjøre dnf) så fikk jeg installert både nodejs og nodela på VMen. Når åpner <VM ip adresse:8080> i Chrome så kommer nodela opp - Yes! Det gjenstår og se om jeg kan la vm'en få tilgang til usb serieporten (på host) som styrer CNC maskina. --Tingo (diskusjon) 6. jun. 2017 kl. 14:12 (UTC)