sudo pip install web.py
se non è installato PIP procedere prima con questo:
Installare PIP
sudo apt-get update
sudo apt-get install tightvncserver
vncserver :1
# Questo fa ignorare la connessione di un cavo HDMI
hdmi_ignore_hotplug=1
# Sistema PAL
sdtv_mode=2
hdmi_force_hotplug=1questa va commentata
sudo fdisk -l
sudo fdisk -l /dev/sde
sudo fdisk -l /dev/sde
Disco /dev/sde: 7969 MB, 7969177600 byte
4 testine, 16 settori/tracce, 243200 cilindri, totale 15564800 settori
Unità = settori di 1 * 512 = 512 byte
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identificativo disco: 0xa6202af7
Dispositivo Boot Start End Blocks Id System
/dev/sde1 2048 1683593 840773 e W95 FAT16 (LBA)
/dev/sde2 1687552 15499263 6905856 85 Linux esteso
/dev/sde3 15499264 15564799 32768 83 Linux
/dev/sde5 1695744 1818623 61440 c W95 FAT32 (LBA)
/dev/sde6 1826816 15499263 6836224 83 Linux
sudo mount /dev/sde /mnt/ -o offset=$((1695744*512))
sudo umount /mnt
sudo ntpd -gq
sudo service ntp restart
/*** Styles ***/
/* Apply new Style from array */
$style->applyFromArray(
array(
'alignment' => array(
'horizontal' =>
PHPExcel_Style_Alignment::HORIZONTAL_GENERAL = 'general'
PHPExcel_Style_Alignment::HORIZONTAL_LEFT = 'left'
PHPExcel_Style_Alignment::HORIZONTAL_RIGHT = 'right'
PHPExcel_Style_Alignment::HORIZONTAL_CENTER = 'center'
PHPExcel_Style_Alignment::HORIZONTAL_CENTER_CONTINUOUS = 'centerContinuous'
PHPExcel_Style_Alignment::HORIZONTAL_JUSTIFY = 'justify'
'vertical' =>
PHPExcel_Style_Alignment::VERTICAL_BOTTOM = 'bottom'
PHPExcel_Style_Alignment::VERTICAL_TOP = 'top'
PHPExcel_Style_Alignment::VERTICAL_CENTER = 'center'
PHPExcel_Style_Alignment::VERTICAL_JUSTIFY = 'justify'
'rotation' => (int)
'wrap' => (boolean)
'shrinkToFit' => (boolean)
'indent' => (int)
)
'borders' => array(
'allborders' => array(
'style' =>
PHPExcel_Style_Border::BORDER_NONE = 'none';
PHPExcel_Style_Border::BORDER_DASHDOT = 'dashDot';
PHPExcel_Style_Border::BORDER_DASHDOTDOT = 'dashDotDot';
PHPExcel_Style_Border::BORDER_DASHED = 'dashed';
PHPExcel_Style_Border::BORDER_DOTTED = 'dotted';
PHPExcel_Style_Border::BORDER_DOUBLE = 'double';
PHPExcel_Style_Border::BORDER_HAIR = 'hair';
PHPExcel_Style_Border::BORDER_MEDIUM = 'medium';
PHPExcel_Style_Border::BORDER_MEDIUMDASHDOT = 'mediumDashDot';
PHPExcel_Style_Border::BORDER_MEDIUMDASHDOTDOT = 'mediumDashDotDot';
PHPExcel_Style_Border::BORDER_MEDIUMDASHED = 'mediumDashed';
PHPExcel_Style_Border::BORDER_SLANTDASHDOT = 'slantDashDot';
PHPExcel_Style_Border::BORDER_THICK = 'thick';
PHPExcel_Style_Border::BORDER_THIN = 'thin';
'color' => array(
'rgb' =>
PHPExcel_Style_Color::COLOR_BLACK = 'FF000000';
PHPExcel_Style_Color::COLOR_WHITE = 'FFFFFFFF';
PHPExcel_Style_Color::COLOR_RED = 'FFFF0000';
PHPExcel_Style_Color::COLOR_DARKRED = 'FF800000';
PHPExcel_Style_Color::COLOR_BLUE = 'FF0000FF';
PHPExcel_Style_Color::COLOR_DARKBLUE = 'FF000080';
PHPExcel_Style_Color::COLOR_GREEN = 'FF00FF00';
PHPExcel_Style_Color::COLOR_DARKGREEN = 'FF008000';
PHPExcel_Style_Color::COLOR_YELLOW = 'FFFFFF00';
PHPExcel_Style_Color::COLOR_DARKYELLOW = 'FF808000';
)
)
'left' => // See 'allborders'
'top' => // See 'allborders'
'right' => // See 'allborders'
'bottom' => // See 'allborders'
'diagonal' =>
'diagonaldirection' =>
)
'fill' => array(
'type' =>
PHPExcel_Style_Fill::FILL_NONE = 'none';
PHPExcel_Style_Fill::FILL_SOLID = 'solid';
PHPExcel_Style_Fill::FILL_GRADIENT_LINEAR = 'linear';
PHPExcel_Style_Fill::FILL_GRADIENT_PATH = 'path';
PHPExcel_Style_Fill::FILL_PATTERN_DARKDOWN = 'darkDown';
PHPExcel_Style_Fill::FILL_PATTERN_DARKGRAY = 'darkGray';
PHPExcel_Style_Fill::FILL_PATTERN_DARKGRID = 'darkGrid';
PHPExcel_Style_Fill::FILL_PATTERN_DARKHORIZONTAL = 'darkHorizontal';
PHPExcel_Style_Fill::FILL_PATTERN_DARKTRELLIS = 'darkTrellis';
PHPExcel_Style_Fill::FILL_PATTERN_DARKUP = 'darkUp';
PHPExcel_Style_Fill::FILL_PATTERN_DARKVERTICAL = 'darkVertical';
PHPExcel_Style_Fill::FILL_PATTERN_GRAY0625 = 'gray0625';
PHPExcel_Style_Fill::FILL_PATTERN_GRAY125 = 'gray125';
PHPExcel_Style_Fill::FILL_PATTERN_LIGHTDOWN = 'lightDown';
PHPExcel_Style_Fill::FILL_PATTERN_LIGHTGRAY = 'lightGray';
PHPExcel_Style_Fill::FILL_PATTERN_LIGHTGRID = 'lightGrid';
PHPExcel_Style_Fill::FILL_PATTERN_LIGHTHORIZONTAL = 'lightHorizontal';
PHPExcel_Style_Fill::FILL_PATTERN_LIGHTTRELLIS = 'lightTrellis';
PHPExcel_Style_Fill::FILL_PATTERN_LIGHTUP = 'lightUp';
PHPExcel_Style_Fill::FILL_PATTERN_LIGHTVERTICAL = 'lightVertical';
PHPExcel_Style_Fill::FILL_PATTERN_MEDIUMGRAY = 'mediumGray';
'rotation' => (double)
'startcolor' => // See 'borders' => 'allborders' => 'color'
'endcolor' => // See 'borders' => 'allborders' => 'color'
'color' => // See 'borders' => 'allborders' => 'color'
)
'font' => array(
'name' =>
'Arial'
'Calibri'
// etc.
'bold' => (boolean)
'italic' => (boolean)
'superScript' => (boolean)
'subScript' => (boolean)
'underline' => (boolean)
'strike' => (boolean)
'size' => (float)
'color' => // See 'borders' => 'allborders' => 'color'
)
'numberformat' =>
'protection' =>
)
)
dconf reset -f /org/gnome/gnome-panelRiavviare la sessione
.woff application/octet-stream
.woff2application/octet-stream
/modules/sendinblue
http://mt.google.com/vt/x=%2&y=%3&z=%1
http://mt.google.com/vt/lyrs=s&x=%2&y=%3&z=%1
http://mt.google.com/vt/lyrs=t&x=%2&y=%3&z=%1
apt-get install gpsdverificare con lsusb se viene riconosciuto il GPS:
root@alfredo-desktop:~# lsusb
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 004: ID 091e:0003 Garmin International GPS (various models)
Bus 003 Device 003: ID 046d:c00c Logitech, Inc. Optical Wheel Mouse
Bus 003 Device 002: ID 04e8:681c Samsung Electronics Co., Ltd Galaxy Portal/Spica/S
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
modprobe garmin_gpse successivamente verificare che device /dev/ttyUSBx è stato assegnato al GPS:
ll /dev/ttyUSB*
root@alfredo-desktop:~# ll /dev/ttyUSB*
crw-rw---- 1 root dialout 188, 0 mag 30 21:20 /dev/ttyUSB0
/dev/ttyUSB0a questo punto eseguire
rmmod garmin_gpse riavviare da root Qlandkarte GT
snx: error while loading shared libraries: libpam.so.0: cannot open shared object file: No such file or directoryverificare con questo comando:
sudo ldd /usr/bin/snx | grep "not found"dovrebbe restituire qualcosa del genere:
sudo apt-get install libstdc++5:i386 libpam0g:i386
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libstdc++6:i386 libxml2:i386 zlib1g:i386 libpopt0:i386
/usr/share/cups/model/CNCUPSLBP810CAPTJ.ppd
/usr/share/cups/model/CNCUPSLBP810CAPTK.ppd
/usr/share/ppd/CNCUPSLBP810CAPTJ.ppd
/usr/share/ppd/CNCUPSLBP810CAPTK.ppd
sudo dpkg -i cndrvcups-common_2.20-1ubuntu7_amd64.deb
sudo dpkg -i cndrvcups-capt_2.20-1ubuntu7_amd64.deb
sudo dpkg -i cndrvcups-common_2.60-1_amd64.deb
sudo dpkg -i cndrvcups-capt_2.60-1_amd64.deb
sudo ./lbp810.shI FILE NECESSARI SI TROVANO QUI
gnome-desktop-item-edit ~/Scrivania/ --create-new
/usr/bin/gksudo /path/applicazione
1) Editare il file config/setting.inc.php modificando il puntamento al DB
2) Sul nuovo DB modificare la tab. ps_shop_url con il nuovo phisical_uri
3) accedere al BO e andare in SEO e salvare la configurazione
sudo apt-get updateDipendenze
sudo apt-get install libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev libevent-dev libjansson-dev libpython-dev make
mkdir telegram
cd telegram/
git clone --recursive https://github.com/vysheng/tg.git && cd tg
./configure
makenella directory telegram creare lo script: send_message.sh contenente:
#!/bin/bash
to=$1
msg=$2
tgpath=*****DIRECTORY*****/telegram/tg
cd ${tgpath}
(sleep 5; echo "msg $to $msg"; sleep 2; echo "safe_quit") | ${tgpath}/bin/telegram-cli -k tg-server.pub -W
******DIR******/telegram/tg/bin/telegram-cli -k tg-server.pub -W
Telegram-cli version 1.2.0, Copyright (C) 2013-2015 Vitaly Valtman
Telegram-cli comes with ABSOLUTELY NO WARRANTY; for details type `show_license'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show_license' for details.
Telegram-cli uses libtgl version 1.2.0
I: config dir=[/home/alfredo/.telegram-cli]
>
msg Alfredo_Salzillo testattendere che venga chiesto il numero di cellulare: inserirlo anteponendo +39xxxxxxxxx
./send_message.sh Alfredo_Salzillo Test123
wget http://downloads.sourceforge.net/project/wkhtmltopdf/0.12.2.1/wkhtmltox-0.12.2.1_linux-trusty-amd64.deb
sudo dpkg -i wkhtmltox-0.12.2.1_linux-trusty-amd64.deb
sudo apt-get install xfonts-75dpi
sudo cp /usr/local/bin/wkhtmltopdf /usr/bin/
adduser alfredo sudo
unount -l /device
$ sudoadd-apt-repository ppa:webupd8team/java $ sudoapt-get update $ sudoapt-get install oracle-java8-installer
$java -version java version "1.8.0_25 " Java(TM) SE Runtime Environment (build 1.8.0_25-b17) Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
$ sudo apt-getinstall oracle-java8-set-default
$ sudo update-alternatives --config java
sudo apt-get update apt-cache search java | awk '{print($1)}' | grep -E -e '^(ia32-)?(sun|oracle)-java' -e '^openjdk-' -e '^icedtea' -e '^(default|gcj)-j(re|dk)' -e '^gcj-(.*)-j(re|dk)' -e 'java-common' | xargs sudo apt-get -y remove sudo apt-get -y autoremove
dpkg -l | grep ^rc | awk '{print($2)}' | xargs sudo apt-get -y purge
sudo bash -c 'ls -d /home/*/.java' | xargs sudo rm -rf
sudo rm -rf /usr/lib/jvm/*
for g in ControlPanel java java_vm javaws jcontrol jexec keytool mozilla-javaplugin.so orbd pack200 policytool rmid rmiregistry servertool tnameserv unpack200 appletviewer apt extcheck HtmlConverter idlj jar jarsigner javac javadoc javah javap jconsole jdb jhat jinfo jmap jps jrunscript jsadebugd jstack jstat jstatd native2ascii rmic schemagen serialver wsgen wsimport xjc xulrunner-1.9-javaplugin.so; do sudo update-alternatives --remove-all $g; done
sudo updatedb sudo locate -b '\pack200'
vboxmanage internalcommands sethduuid nome_file.vdi