[IMP] point_of_sale: posbox_create_image fixes
- set keyboard layout to us - install GNU screen - add udev rules to make USB devices accessible to the usbusers group - setup crontab to delete odoo sessions/* - define inputrc and vimrc
This commit is contained in:
parent
c2cbb75319
commit
41929bd997
|
@ -0,0 +1,10 @@
|
||||||
|
# KEYBOARD CONFIGURATION FILE
|
||||||
|
|
||||||
|
# Consult the keyboard(5) manual page.
|
||||||
|
|
||||||
|
XKBMODEL="pc105"
|
||||||
|
XKBLAYOUT="us"
|
||||||
|
XKBVARIANT=""
|
||||||
|
XKBOPTIONS=""
|
||||||
|
|
||||||
|
BACKSPACE="guess"
|
|
@ -31,7 +31,7 @@ apt-get -y autoremove
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get -y dist-upgrade
|
apt-get -y dist-upgrade
|
||||||
|
|
||||||
PKGS_TO_INSTALL="adduser postgresql-client python python-dateutil python-decorator python-docutils python-feedparser python-imaging python-jinja2 python-ldap python-libxslt1 python-lxml python-mako python-mock python-openid python-passlib python-psutil python-psycopg2 python-pybabel python-pychart python-pydot python-pyparsing python-pypdf python-reportlab python-requests python-simplejson python-tz python-unittest2 python-vatnumber python-vobject python-werkzeug python-xlwt python-yaml postgresql python-gevent python-serial python-pip python-dev localepurge vim mc mg"
|
PKGS_TO_INSTALL="adduser postgresql-client python python-dateutil python-decorator python-docutils python-feedparser python-imaging python-jinja2 python-ldap python-libxslt1 python-lxml python-mako python-mock python-openid python-passlib python-psutil python-psycopg2 python-pybabel python-pychart python-pydot python-pyparsing python-pypdf python-reportlab python-requests python-simplejson python-tz python-unittest2 python-vatnumber python-vobject python-werkzeug python-xlwt python-yaml postgresql python-gevent python-serial python-pip python-dev localepurge vim mc mg screen"
|
||||||
|
|
||||||
apt-get -y install ${PKGS_TO_INSTALL}
|
apt-get -y install ${PKGS_TO_INSTALL}
|
||||||
|
|
||||||
|
@ -48,14 +48,22 @@ pip install pyusb==1.0.0b1
|
||||||
pip install qrcode
|
pip install qrcode
|
||||||
pip install evdev
|
pip install evdev
|
||||||
|
|
||||||
|
groupadd usbusers
|
||||||
|
usermod -a -G usbusers pi
|
||||||
usermod -a -G lp pi
|
usermod -a -G lp pi
|
||||||
|
|
||||||
sudo -u postgres createuser -s pi
|
sudo -u postgres createuser -s pi
|
||||||
mkdir /var/log/odoo
|
mkdir /var/log/odoo
|
||||||
chown pi:pi /var/log/odoo
|
chown pi:pi /var/log/odoo
|
||||||
|
|
||||||
|
echo "* * * * * rm /var/run/odoo/sessions/*" | crontab -
|
||||||
|
|
||||||
update-rc.d odoo defaults
|
update-rc.d odoo defaults
|
||||||
|
|
||||||
|
# https://www.raspberrypi.org/forums/viewtopic.php?p=79249
|
||||||
|
# to not have "setting up console font and keymap" during boot take ages
|
||||||
|
setupcon
|
||||||
|
|
||||||
# create dirs for ramdisks
|
# create dirs for ramdisks
|
||||||
create_ramdisk_dir () {
|
create_ramdisk_dir () {
|
||||||
mkdir "${1}_ram"
|
mkdir "${1}_ram"
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
SUBSYSTEM=="usb", GROUP="usbusers", MODE="0660"
|
||||||
|
SUBSYSTEMS=="usb", GROUP="usbusers", MODE="0660"
|
|
@ -0,0 +1,53 @@
|
||||||
|
#
|
||||||
|
set meta-flag on
|
||||||
|
set convert-meta off
|
||||||
|
set input-meta on
|
||||||
|
set output-meta on
|
||||||
|
set show-all-if-ambiguous on
|
||||||
|
set visible-stats on
|
||||||
|
set bell-style none
|
||||||
|
# set bell-style visible
|
||||||
|
#"\M-k": kill-whole-line
|
||||||
|
#----------------------------------------------------------
|
||||||
|
# arrows left/right/up/down
|
||||||
|
"\e[C": forward-char
|
||||||
|
"\e[D": backward-char
|
||||||
|
"\e[A": previous-history
|
||||||
|
"\e[B": next-history
|
||||||
|
# ---------------------------------------------------------
|
||||||
|
# pgup/pgdn
|
||||||
|
"\e[6~": history-search-forward
|
||||||
|
"\e[5~": history-search-backward
|
||||||
|
#----------------------------------------------------------
|
||||||
|
# insert,delete
|
||||||
|
#"\e[2~": quoted-insert
|
||||||
|
"\e[3~": delete-char
|
||||||
|
# esc+delete, esc+backspace
|
||||||
|
"\e\e[3~": kill-word
|
||||||
|
"\e\C-h": backward-kill-word
|
||||||
|
#----------------------------------------------------------
|
||||||
|
# ctrl left/right (rxvt)
|
||||||
|
"\eOc": forward-word
|
||||||
|
"\eOd": backward-word
|
||||||
|
# ctrl left/right (xterm)
|
||||||
|
"\e[1;5C": forward-word
|
||||||
|
"\e[1;5D": backward-word
|
||||||
|
# ctrl left/right (unknown)
|
||||||
|
#"\e[5C": forward-word
|
||||||
|
#"\e[5D": backward-word
|
||||||
|
#"\e\e[C": forward-word
|
||||||
|
#"\e\e[D": backward-word
|
||||||
|
# ---------------------------------------------------------
|
||||||
|
# home/end (linux console)
|
||||||
|
"\e[1~": beginning-of-line
|
||||||
|
"\e[4~": end-of-line
|
||||||
|
# home/end (rxvt)
|
||||||
|
"\e[7~": beginning-of-line
|
||||||
|
"\e[8~": end-of-line
|
||||||
|
# home/end (xterm, freebsd console)
|
||||||
|
"\e[H": beginning-of-line
|
||||||
|
"\e[F": end-of-line
|
||||||
|
# home/end (non RH/Debian xterm, unknown)
|
||||||
|
"\eOH": beginning-of-line
|
||||||
|
"\eOF": end-of-line
|
||||||
|
"\eOw": end-of-line
|
|
@ -0,0 +1,27 @@
|
||||||
|
set all&
|
||||||
|
set autoindent
|
||||||
|
set backspace=2
|
||||||
|
set nobackup
|
||||||
|
set nocompatible
|
||||||
|
set noerrorbells
|
||||||
|
set noexpandtab
|
||||||
|
set expandtab
|
||||||
|
set number
|
||||||
|
set hidden
|
||||||
|
set history=500
|
||||||
|
set hlsearch
|
||||||
|
set ignorecase
|
||||||
|
set modeline
|
||||||
|
set ruler
|
||||||
|
set shiftwidth=4
|
||||||
|
set scrolloff=5
|
||||||
|
set showcmd
|
||||||
|
set showmode
|
||||||
|
set tabstop=4
|
||||||
|
set textwidth=0
|
||||||
|
set visualbell
|
||||||
|
set t_vb=
|
||||||
|
set wrap
|
||||||
|
set list
|
||||||
|
set listchars=tab:~.,trail:.,extends:>,precedes:<
|
||||||
|
set viminfo="NONE"
|
Loading…
Reference in New Issue