Ubuntu add public key

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 5A9BF3BB4E5E17B5

Java 1.7 mac sdk location

/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home

java -version

Slow mouse

#! /bin/sh

MID=$(xinput list | grep "USB OPTICAL MOUSE" | cut -c 55-57)

ATTRIB=$(xinput list-props $MID | grep "Device Accel Constant Deceleration" | cut -f 2 | cut -d "(" -f 2 | cut -c -3)

echo $MID, $ATTRIB
xinput set-prop $MID $ATTRIB 1.5

Openerp - How to solve "UnknownLocaleError: unknown locale 'en'"?

sudo apt-get install --reinstall python-babel-localedata

ssh-copy-id manual

cat ~/.ssh/id_rsa.pub | ssh user@machine "mkdir ~/.ssh; cat >> ~/.ssh/authorized_keys"

Recompress PDF

convert -density 100x100 -quality 65 -compress jpeg orig.pdf dest.pdf

Openerp dependencies

http://www.serpentcs.com/serpentcs-a-script-for-one-line-installation-of-openerp-7-0-server-instances
sudo apt-get install python-dateutil python-docutils python-feedparser \
python-gdata python-jinja2 python-ldap python-libxslt1 python-lxml python-mako \
python-mock python-openid python-psycopg2 python-psutil python-pybabel \
python-pychart python-pydot python-pyparsing python-reportlab python-simplejson \
python-tz python-unittest2 python-vatnumber python-vobject python-webdav \
python-werkzeug python-xlwt python-yaml python-zsi

Bloc de notes al navegador

A la barra d'url:

data:text/html,%20<html%20contenteditable><Title>Notepad</Title>

data:text/html;charset=utf-8,%20<title>Notepad%20(Nightmode)</title><body%20contenteditable%20style="font-family:%20DejaVu;font-weight:bold;background:#1E1E1E;color:#FFFFFF;font-size:1rem;line-height:1.4;max-width:80rem;margin:0%20auto;padding:2rem;"%20spellcheck="false">

Linconnect

Notificacions de l'android a l'escriptori.

http://www.webupd8.org/2014/01/get-android-notifications-on-your.html

wget http://raw.github.com/hauckwill/linconnect-server/master/LinConnectServer/install.sh
chmod +x install.sh
./install.sh

i
https://play.google.com/store/apps/details?id=com.willhauck.linconnectclient&hl=ca

Telegram

sudo add-apt-repository ppa:costales/unity-webapps-telegram
sudo apt-get update
sudo apt-get install unity-webapps-telegram

Connectar dos ordinadors per port sèrie

Al "servidor":

sudo /sbin/getty -L ttyUSB0 115200 vt100

al client:

connectar amb minicom (-s per configurar)

Imprimir a google cloud print

http://www.niftiestsoftware.com/cups-cloud-print/

sudo add-apt-repository ppa:simon-cadman/cups-cloud-print
sudo apt-get update
sudo apt-get install cupscloudprint
sudo /usr/lib/cloudprint-cups/setupcloudprint.py

---------------- o -------------------

git clone git://github.com/simoncadman/CUPS-Cloud-Print.git
cd CUPS-Cloud-Print/
./configure
make install
/usr/local/lib/cloudprint-cups/setupcloudprint.py

Dependency problems running steam

steam --reset

Allow a user to mount fuse filesystems

sudo usermod -a -G fuse username
 
(like sshfs)

google maps 3d mode

Revert to your system’s default: www.google.com/maps/preview/?force=clear

Ubuntu laptop mode

sudo apt-get install laptop-mode-tools
sudo apt-get install laptop-mode-tools

mtr - a network diagnostic tool

mtr www.google.com

Controladors privatius d'nvidia en portàtils amb gràfiques múltiples

Si teniem el bumblebee anterior:

sudo apt-get purge bumblebee* bbswitch-dkms
sudo apt-get install nvidia-319 nvidia-settings-319 nvidia-prime

http://www.webupd8.org/2013/08/using-nvidia-graphics-drivers-with.html

Evitar el requeriment de contrassenyes complexes en l'ubuntu 13.10

editeu /etc/pam.d/common-password

canvieu
password [success=1 default=ignore] pam_unix.so obscure sha512 
a
password [success=1 default=ignore minlen=4] 

obscure requereix passwords fortes. i afegin minlen podem canviar la longitud mínima.

 

apt-fast

apt-fast per instalar i actualitzar programes ràpidament.

Descarrega en paraŀlel diversos paquets.

http://www.webupd8.org/2012/10/speed-up-apt-get-downloads-with-apt.html

Apache2 server protect modules

apt-get install libapache-mod-security libapache2-mod-evasive

LED placa raspberry pi

/sys/class/leds/led0/

trigger - [none] mmc0 heartbeat timer rfkill1 phy1rx phy1tx phy1assoc phy1radio

echo none > trigger

brightness - 1 on / 0 off
 
Triggers adicionals
 
modprobe ledtrig_heartbeat
 
modprobe ledtrig_timer
milisegons a: delay_off  delay_on
 
 

Ubuntu 13.10 unity lent en ordinadors netbook

export UNITY_LOW_GFX_MODE=1 

And then save it to your home folder as .xprofile

 

Reduir mida d'un pdf a resolució de pantalla

gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf

Pages

Subscribe to Bitacoles RSS
Error | Bitacoles

Error

The website encountered an unexpected error. Please try again later.

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/bitacoles/includes/common.inc:2726) in drupal_send_headers() (line 1233 of /var/www/bitacoles/includes/bootstrap.inc).
  • PDOException: SQLSTATE[HY000]: General error: 14 unable to open database file: INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); Array ( [0] => 0 [1] => cron [2] => Attempting to re-run cron while it is already running. [3] => a:0:{} [4] => 4 [5] => [6] => http://bitacoles.enging.com/ [7] => [8] => 54.158.119.60 [9] => 1481220448 ) in dblog_watchdog() (line 160 of /var/www/bitacoles/modules/dblog/dblog.module).