Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Printrun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
Printrun
Commits
a2653796
Commit
a2653796
authored
May 06, 2013
by
D1plo1d
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Getting websockets working on ubuntu and updating README
parent
0871caf2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
README.md
README.md
+2
-2
Vagrantfile
Vagrantfile
+1
-1
inspect.js
server/static/js/inspect.js
+2
-1
No files found.
README.md
View file @
a2653796
...
@@ -28,7 +28,7 @@ A precompiled version is available at http://koti.kapsi.fi/~kliment/printrun/
...
@@ -28,7 +28,7 @@ A precompiled version is available at http://koti.kapsi.fi/~kliment/printrun/
You can run Printrun directly from source, as there are no packages available yet. Fetch and install the dependencies using
You can run Printrun directly from source, as there are no packages available yet. Fetch and install the dependencies using
1.
`sudo apt-get install python-serial python-wxgtk2.8 python-pyglet python-tornado python-setuptools python-libxml2 python-gobject`
1.
`sudo apt-get install python-serial python-wxgtk2.8 python-pyglet python-tornado python-setuptools python-libxml2 python-gobject`
2.
`sudo apt-get install avahi-daemon python-avahi`
2.
`sudo apt-get install avahi-daemon python-avahi
tornado
`
3.
`sudo easy_install https://github.com/D1plo1d/py-mdns/archive/master.zip`
3.
`sudo easy_install https://github.com/D1plo1d/py-mdns/archive/master.zip`
### Fedora 15 and newer (untested)
### Fedora 15 and newer (untested)
...
@@ -36,7 +36,7 @@ You can run Printrun directly from source, as there are no packages available ye
...
@@ -36,7 +36,7 @@ You can run Printrun directly from source, as there are no packages available ye
You can run Printrun directly from source, as there are no packages available yet. Fetch and install the dependencies using
You can run Printrun directly from source, as there are no packages available yet. Fetch and install the dependencies using
1.
`sudo yum install pyserial wxpython pyglet python-tornado`
1.
`sudo yum install pyserial wxpython pyglet python-tornado`
2.
`sudo
easy_install libxml2
`
2.
`sudo
apt-get install avahi-daemon python-avahi tornado
`
2.
`sudo easy_install https://github.com/D1plo1d/py-mdns/archive/master.zip`
2.
`sudo easy_install https://github.com/D1plo1d/py-mdns/archive/master.zip`
### Archlinux
### Archlinux
...
...
Vagrantfile
View file @
a2653796
...
@@ -20,7 +20,7 @@ Vagrant.configure("2") do |config|
...
@@ -20,7 +20,7 @@ Vagrant.configure("2") do |config|
# Create a private network, which allows host-only access to the machine
# Create a private network, which allows host-only access to the machine
# using a specific IP.
# using a specific IP.
#
config.vm.network :private_network, ip: "192.168.33.10"
config
.
vm
.
network
:private_network
,
ip:
"192.168.33.10"
# Create a public network, which generally matched to bridged network.
# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
# Bridged networks make the machine appear as another physical device on
...
...
server/static/js/inspect.js
View file @
a2653796
...
@@ -19,7 +19,8 @@
...
@@ -19,7 +19,8 @@
var
connect
=
function
()
{
var
connect
=
function
()
{
// Let us open a web socket
// Let us open a web socket
var
url
=
"ws://localhost:8888/socket?user=admin&password=admin"
;
var
hostname
=
window
.
location
.
hostname
;
var
url
=
"ws://"
+
hostname
+
":8888/socket?user=admin&password=admin"
;
console
.
log
(
url
);
console
.
log
(
url
);
var
ws
=
new
WebSocket
(
url
,
"construct.text.0.0.1"
);
var
ws
=
new
WebSocket
(
url
,
"construct.text.0.0.1"
);
$
(
function
()
{
$
(
function
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment