1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-10-23 09:30:00 +00:00

DOC transfered wiki to sphinx-doc

* changed structure of index-file
* copied the WIKI at commit 67601b2d33f5a3cf8e9633e6ad92cca286840680
* adapted the markdown to rst
This commit is contained in:
Patrick Kanzler
2015-12-27 16:56:51 +01:00
parent b68a5782fe
commit 8a77c963c3
10 changed files with 538 additions and 2 deletions

40
doc/user/installation.rst Normal file
View File

@@ -0,0 +1,40 @@
************
Installation
************
System preparation
------------------
1. Install the required
`dependencies <https://github.com/manpaz/python-escpos/wiki/Dependencies>`__
2. Get the *Product ID* and *Vendor ID* from the lsusb command
``# lsusb Bus 002 Device 001: ID 1a2b:1a2b Device name``
3. Create a udev rule to let users belonging to *dialout* group use the
printer. You can create the file
``/etc/udev/rules.d/99-escpos.rules`` and add the following:
``SUBSYSTEM=="usb", ATTRS{idVendor}=="1a2b", ATTRS{idProduct}=="1a2b", MODE="0664", GROUP="dialout"``
Replace *idVendor* and *idProduct* hex numbers with the ones that you
got from the previous step. Note that you can either, add yourself to
"dialout" group, or use another group you already belongs instead
"dialout" and set it in the ``GROUP`` parameter in the above rule.
4. Restart udev ``# sudo service udev restart`` In some new systems it
is done with ``# sudo udevadm control --reload``
Install
-------
* Clone python-escpos from github
* Change directory to python-escpos and install the package
::
# cd python-escpos
# python setup.py build
# sudo python setup.py install
* Enjoy !!!