DataLogic QuickScan QS6500 with Ubuntu as USB Keyboard

download configuration codes
https://easeofaccess.scanning.datalogic.com/public/marketlit/Send.aspx?file=R44-2816A

reset to factory default (Page 3)
scan: Return handheld to factory defaults

configure as USB Keyboard
Interface Selection (Page 30 / 33)
scan: START
scan: USB Keyboard
scan: END

OPTIONAL, configure Keyboard Layout (Page 53 / 54)
scan: START
scan: Germany
scan: END

OPTIONAL, enable Interleaved 2 of 5 - continued (for DHL package barcodes)
Interface Selection (Page 169)

jCarousel

# install drupal module
http://drupal.org/project/jcarousel
 
# create new page and set filter to PHP, add this content
<?php
    jcarousel_add('ie7');
    drupal_add_js (
      '$(document).ready(function(){
         $("#carousel").jcarousel({
           scroll: 1,
           auto: 2,
           wrap: "last"
         });
}); ',
      'inline');
?>
 
<div id="carousel-horiz">
<ul id="carousel" class="jcarousel-skin-tango">
  <li><a href="http://example.com" target="_blank"><img src="http://static.flickr.com/66/199481236_dc98b5abb3_s.jpg" border="0" width="75" height="75" /></a

GRML

# install grml2usb
cat <<EOF> /etc/apt/sources.list.d/chromium.list
deb http://deb.grml.org/ grml-testing main
EOF
 
# install grml2usb package
apt-get update
apt-get install grml2usb -y --force-yes
 
# format partition on USB pen (OPTIONAL)
mkfs.vfat /dev/sdb1
 
# install GRML to USB pen
grml2usb grml-small_2009.10.iso /dev/sdb1
 
LINKS
http://git.grml.org/?p=grml-live.git;a=blob_plain;f=templates/GRML/grml-cheatcodes.txt;hb=HEAD
http://www.linux-user.de/ausgabe/2006/06/008-grml/index.html

HqEclipse

You can install the plugin using the Eclipse Update Manager:

Help > Install new Software
Work with: http://hge.javaforge.com/hgeclipse
[ Add... ]
[ OK ]
check HqEclipse
[ Next > ]
[ Next > ]
check "I accept the terms of the license agreement"
[ Finish ]

confirm Security Warnings dialog with [ OK ]

Restart your Eclipse

https://j2m.googlecode.com/hg/
https://hgeclipse-demo.googlecode.com/hg/

http://code.google.com/p/hgeclipse-demo/

Create OpenSSL certificate for Apache (SSL with Apache2)

# install packages
apt-get install openssl
# apache2 apache2.2-common php5
 
# enable ssl in apache
a2enmod ssl
a2ensite default-ssl
 
# creating an RSA key (use -des3 to create a password protected key file)
openssl genrsa -out key.pem 1024
 
# creating a certificate request
openssl req -new -nodes -x509 -out /etc/ssl/certs/ssl-cert-snakeoil.pem -keyout /etc/ssl/private/ssl-cert-snakeoil.key -days 365 -subj "/C=DE/ST=NRW/L=Cologne/O=Your Company/OU=IT/CN=www.YOUR_SERVER.com/emailAddress=you@YOUR_SERVER.com"
 
# restart apache
service apache2 restart
 
 
 
# v2
 
openssl x509 -req

Install uShare (UPnP server)

# install
apt-get install -y ushare
 
# change rc order
update-rc.d -f ushare remove
update-rc.d ushare defaults 99
 
# configure network
echo "post-up route add -net 239.0.0.0 netmask 255.0.0.0 eth0" >> /etc/network/interfaces
 
# configure ushare
sed -i '22s|USHARE_DIR=|USHARE_DIR=/media/mp3,/media/video,/media/images|g' /etc/ushare.conf 
 
# restart services
service ushare networking
service ushare restart
 
# web interface
http://YOUR_SERVER_IP:49152/web/ushare.html
 
# LINKS
http://dl.dropbox.com/u/4170695/www/ushare/install.ushare.sh - install UPnP server
http://ushare.ge

Configure anonymous rsync account

# install rsync
apt-get install rsync
 
# configure share
cp /etc/rsyncd.conf /etc/rsyncd.conf.old
cat <<EOF> /etc/rsyncd.conf
uid = nobody
gid = nogroup
timeout = 600
log file = /var/log/rsyncd.log
transfer logging = true
 
[ftp]
comment = public archive
path = /var/www/pub
use chroot = yes
EOF
 
# enable rsync demon
sed -i 's|RSYNC_ENABLE=false|RSYNC_ENABLE=true|g' /etc/default/rsync
 
# restart rsync
/etc/init.d/rsync restart
 
 
 
# EXAMPLES
# list shares / modules
rsync YOUR_SERVER::
 
# sync files
rsync -rP YOUR_SERVER::stsbox/* .
 
 
 
# LINKS
http://transamrit.

Install CKeditor

# download
wget http://download.cksource.com/CKEditor/CKEditor/CKEditor%203.1/ckeditor_3.1.tar.gz -P /tmp/
 
# extract
tar xzf /tmp/ckeditor_3.1.tar.gz -C /var/www/
 
# create index.html
cat <<EOF> /var/www/ckeditor/index.html
<html>
<head>
	<meta content="text/html; charset=utf-8" http-equiv="content-type" />
	<script type="text/javascript" src="../ckeditor.js"></script>
	<script src="sample.js" type="text/javascript"></script>
	<link href="sample.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<textarea cols="80" id="editor1" name="editor1" rows="30"></textarea>
	<scr

Ubuntu LiveCD quick tweaks

GoTo: Applications > Accessories > Terminal

# Adobe Flash
wget http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.deb -P /tmp && \
sudo dpkg -i /tmp/install_flash_player_10_linux.deb

# Skype
wget http://www.skype.com/go/getskype-linux-beta-ubuntu-32 -P /tmp/ && \
sudo dpkg -i /tmp/skype*.deb || \
sudo apt-get install -f -y

# Nvidia graphic driver
sudo apt-get install nvidia-glx-185 -y && \
sudo nvidia-xconfig && \
sudo service gdm restart

# Boxee

Acrobat Reader

# create debconf answer file
debconf-set-selections <<\EOF
acroread acroread/default-viewer boolean false
EOF
 
# add ubuntu partner repository
cat <<EOF> /etc/apt/sources.list.d/partner.list
deb http://archive.canonical.com/ubuntu $(lsb_release -cs) partner
deb-src http://archive.canonical.com/ubuntu $(lsb_release -cs) partner
EOF
apt-get update
 
# install acrobat reader
apt-get install acroread
 
 
# OPTIONAL: set back evince as default pdf viewer
sed -i 's|application/pdf=AdobeReader.desktop|application/pdf=evince.desktop|g' /etc/gnome/defaults.list

Endian configuration

VPN > Advanced > lobal push options
Push these nameservers: check
Push domain: check

SmartGWT

# install gwt
wget http://smartgwt.googlecode.com/files/smartgwt-2.0.zip -P /tmp
unzip /tmp/smartgwt-2.0.zip -d /usr/share/
 
 
 
 
# create default GWT Project
File > New > Web Application Project
 
Project name:
Smart
 
Package:
smart
 
[ Finish ]
 
 
# add smartGWT
 
Smart > smart > Smart.gwt.xml add to module section:
<inherits name='com.smartgwt.SmartGwt'/>
 
Smart > war > Smart.html add to head section BEVORE first script section
<script>var isomorphicDir = "smart/sc/"</script>
 
# add smartgwt libs
Project > Properties
Java Build Path > Libraries
Add External Jar
/usr

Install Dropbox under Ubuntu Karmic 9.10

# login as root
sudo su
 
# add Dropbox repository
cat <<EOF> /etc/apt/sources.list.d/dropbox.list
deb http://linux.dropbox.com/ubuntu karmic main
deb-src http://linux.dropbox.com/ubuntu karmic main
EOF
 
# get repository key
gpg --keyserver pgp.mit.edu --recv-keys 3565780E
 
# update repository
apt-get update
 
# install Dropbox
apt-get install nautilus-dropbox -y --force-yes
 
# dowload client
#wget http://www.getdropbox.com/download?plat=lnx.x86 -P /tmp
#tar xzf /tmp/dropbox-lnx.x86-*.tar.gz -C /home/${USER}
 
# Create account (you get 250mb extra space with this link)
http

Acquia Marina

Node settings > Author and date > Default
Display author's username: uncheck
Display date posted: uncheck

Links
http://drupal.org/project/acquia_marina

Ubuntu automatic update with unattended-upgrades

apt-get install unattended-upgrades update-notifier-common
 
 
diff /etc/apt/apt.conf.d/50unattended-upgrades /root/50unattended-upgrades
4c4
< 	"Ubuntu karmic-updates";
---
> //	"Ubuntu karmic-updates";
19c19
< Unattended-Upgrade::Mail "root@localhost";
---
> //Unattended-Upgrade::Mail "root@localhost";
 
 
diff /etc/apt/apt.conf.d/10periodic  /root/10periodic 
2,4c2,3
< APT::Periodic::Download-Upgradeable-Packages "1";
< APT::Periodic::AutocleanInterval "1";
< APT::Periodic::Unattended-Upgrade "1";
---
> APT::Periodic::Download-Upgradeable-Packages "0";
> APT::Periodic::Auto

Install Eclipse

# install eclipse
apt-get install eclipse -y
 
Help > Install New Software
Work with: http://download.eclipse.org/releases/galileo
[ Add ]
 
# install eclipse gwt plugin
Help > Install New Software
Work with: http://dl.google.com/eclipse/plugin/3.5
[ Add ]
[ Next ]
 
 
# disable editor line break after 80 char
Project > Properties
Configure Worksapece Settings
[ Edit ]
Line Wraping
Maximum line widht: 240
 
# Links
http://code.google.com/intl/de/eclipse/docs/install-eclipse-3.5.html

Install boxee

## new
wget http://www.boxee.tv/download/ubuntu -P /tmp
dpkg -i /tmp/boxee*.deb
sudo apt-get install -f -y
 
 
 
 
### old
 
 
# add boxee repository
cat <<EOF> /etc/apt/sources.list.d/boxee.list
deb http://apt.boxee.tv hardy main
EOF
 
# add ubuntu jaunty repository
cat <<EOF> /etc/apt/sources.list.d/jaunty.list
deb http://de.archive.ubuntu.com/ubuntu/ jaunty main universe
EOF
 
# add repository
apt-get update
apt-get install boxee
apt-get install -f --force-yes
 
# get boxee beta version
wget http://dl.boxee.tv/boxee-0.9.20.10356.i486.deb -P /tmp
dpkg -i /tmp/boxee*.deb -y

syncTs.sh

#!/bin/bash
 
EXCLUDES="--exclude=pxelinux.cfg/default --exclude=settings.* --exclude=t5 --exclude=t6 --exclude=t7 --exclude=hwprofile/aktuellesprofil --exclude=sn"
 
for IP in {31..33}; do
	echo $IP
	for DIR in www scripts tftpboot number; do 
		rsync -av ${EXCLUDES} /media/${DIR}/ root@192.168.1.${IP}:/media/${DIR}/
	done
done

upstart

cat <<EOF> /etc/init/cdromrun.conf
start on started tty1
#start on runlevel 2
stop on runlevel [!2]
 
console output
 
script
   [ -f /cdrom/run ] && exec /cdrom/run
end script
EOF
 
# Links
http://upstart.ubuntu.com/getting-started.html
Syndicate content