2011
05.16

OpenERP

Open source ERP software, if you need more information, browse this page:

Prisme Solutions Informatique SA – OpenERP partner in Switzerland

2011
05.10

OpenVX VPS

Download OS template

You can get OS template from this web site:

http://wiki.openvz.org/Download/template/precreated

cd /vz/template/cache
wget http://download.openvz.org/template/precreated/ubuntu-10.04-x86_64.tar.gz

Create VPS

vzctl create 13 –ostemplate ubuntu-10.04-x86_64 –config basic
Creating container private area (ubuntu-10.04-x86_64)
Performing postcreate actions
Container private area was created

(13 is the machine unique id, vps id)

Configuration VPS

(it’s also possible to directly split the host for a pre-defined number of vps: vzsplit -n 10)

vzctl set 13 –onboot yes –save
vzctl set 13 –hostname host.domain.com –save
vzctl set 13 –ipadd 1.2.3.4 –save
vzctl set 13 –nameserver 1.2.3.5  –save
vzctl set 13 –numothersock 240 –save
vzctl set 13 –vmguarpages $((256 * 256)) –save
vzctl set 13 –privvmpages $((256 * 1024)) –save
vzctl set 13 –diskspace 10G:15G –save

First startup

vzctl start 13
vzctl exec 13 passwd
vzctl exec 13 cat /proc/user_beancounters

Failcnt is important, all the values in this column should be 0.
If failcnt is not 0, you need to change the variable value in /etc/sysconfig/vz-scripts/13.conf configuration file.
After each modification, check the configuration file with this command:

vzcfgvalidate /etc/sysconfig/vz-scripts/13.conf

 

Check VPS status and manage

vzlist -a

To stop a vps, run

vzctl stop 13

To restart a vps, run

vzctl restart 13

Enter/exit in vps from host:

vzctl enter 13

to exit, only exit terminal

2010
08.10

Download the live-cd (respectively for your system CPU)

http://cdimage.ubuntu.com/daily-live/current/

Burn the iso image on a cd

On your RAID controller, configure your virtual drive (if exist)

Boot on the live-cd

Start a terminal

Drive partitionning with gparted

sudo gparted

Mount the partition (sda1 is your harddisk device)

sudo mkdir /mnt/ubuntu
sudo mount /dev/sda1 /mnt/ubuntu

Get the lucid files (–arch=x86 if you have an old cpu)

sudo apt-get install debootstrap
sudo debootstrap –arch=amd64 lucid /mnt/ubuntu http://ch.archive.ubuntu.com/ubuntu

On the version just installed, you need to mount correct dev & proc

sudo mount -o bind /dev /mnt/ubuntu/dev
sudo mount -o bind /proc /mnt/ubuntu/proc

Now we able to use the new installation from the live-cd

sudo chroot /mnt/ubuntu /bin/bash

Modification of /etc/fstab

apt-get install nano
nano /etc/fstab

Add theses lines (modify drive name with yours, you can see them with gparted)

/dev/sda1    /        ext4    defaults            0    1
/dev/sda3    none        swap    sw            0    0
proc        /proc        proc    defaults            0    0
sys        /sys        sysfs    defaults            0    0
/dev/cdrom    /mnt/cdrom    iso9660    notauto,ro,user,exec    0    0

After saved this file, try to mount all partitions with:

mount -a

If you receive no error, you can continue this procedure

You need to configure your keyboard with (follow the step)

dpkg-reconfigure console-setup

Boot loader installation

apt-get install grub

Last kernel, installation

apt-get install python-software-properties
add-apt-repository ppa:kernel-ppa
apt-get update
apt-cache search linux-image*

Get the name of the last kernel package for your distribution type (like server) and for your cpu (like amd64)

apt-get install install linux-imag-2.X.XX-X-XXXXXXX

Setup of grub

grub-install –recheck /dev/sda1
update-grub
nano /boot/grub/menu.lst

Check path at the end of the file

title           Debian GNU/Linux, kernel 2.6.18-4-k7
root            (hd0,2)
kernel          /boot/vmlinuz-2.6.18-4-k7 root=/dev/hda3 ro
initrd          /boot/initrd.img-2.6.18-4-k7
savedefault

Boot flag
Open gparted and add the boot flag on your partition, where grub is installed.

User creation

adduser administrator
addgroup –system admin
adduser administrator admin
nano /etc/sudoers

add in admin group:

%admin ALL=(ALL) ALL
paswd root

End

Reboot

sudo reboot

Don’t be suprised with the fsck, it’s finally boot ;-)

Some sources:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/546091

https://help.ubuntu.com/6.10/ubuntu/installation-guide/hppa/linux-upgrade.html

2010
03.01

Backtrack 4 in virtualbox

Setup

  1. Download the iso image from http://www.backtrack-linux.org/downloads/
  2. Download VirtualBox and install http://www.virtualbox.org/wiki/Downloads
  3. Start VirtualBox and create a new virtual machine
    1. Select Linux OS
    2. Select Other version
    3. Select 512Mb ram, if it’s possible
    4. Create a new harddrive (fixed size) with 8go
    5. After wizard, on cd/dvd-rom, configure with image and select your backtrack iso image.
  4. Start the virtual machine
  5. User root password toor
  6. startx
  7. click on install on the desktop (follow the wizard)
  8. reboot virtual machine (reboot command after logout)
  9. You can remove the install shortcut on desktop

Settings (virtual box addons)

  1. Start virtual machine
  2. logon root/toor
  3. Peripheral / Install addons
  4. mkdir /mnt/cdrom (in terminal)
  5. ls /dev  (find the cdrom0 or cdrom…)
  6. mount /dev/cdrom… /mnt/cdrom
  7. ./VBoxLinuxAdditions-x86.run

Settings (Start X at boot)

  1. Create .bash_profile in /root
  2. Write startx in this file
  3. reboot

Settings (Network)

  1. Configure interface host lan in VirtualBox PCnet-FAST III with bridge network
  2. Configure interface host wlan in VirtualBox PCnet-FAST III with bridge network
  3. Activate your interface: ifconfig eth0 up
  4. Activate your interface: ifconfig eth1 up
  5. Use dhclient command to obtain dhcp config…

You can also use this 3 last commands in the .bash_profile file.

2010
03.01

Tweak Lotus platform 8.5

Java virtual machine of  Eclipse Framework use by Lotus 8.5 softwares has restricted memory settings. It’s possible to improve there, if you have enough memory on your system.

  1. Go to …\Lotus\Notes\framework\rcp\eclipse\plugins\com.ibm.rcp.j2se.win32.x86_1.6.0.20081029a-200811140851
  2. You need to edit jvm.properties
  3. For example:
    vmarg.Xmx=-Xmx1024m
    vmarg.Xms=-Xms128m

vmarg.Xmx : Max memory used by JVM
vmarg.Xms: Initial memory used by JVM

David

2010
03.01

To begin to develop applications on a simulator Java Card, you must install a development environment. This article will help you in this first step.

You must first download the software:

Now you can apply the installation procedure follows:

  1. Install the JDK5.0 with JRE in path without blank space
  2. Unzip Eclipse in the folder your want. Create the shortcuts with eclipse.exe -vm jdkfolder\jrefolder\bin\javaw.exe  (now Eclipse start with the version 5 of Java)
  3. Unzip the content off JCDE Plugins folder into Eclipse Plugin Folder
  4. Unzip the Java Card Dev kit in a folder like c:\jcdk\
  5. Start Eclipse, go in the menu “Java Card”, “Preferences” & Browse the Java Card Dev kit like c:\jcdk\

Congratulations you install the development environment & simulator for Java Card technology !

David

2010
03.01

To begin, here is the material, that we obtained from the site usasmartcard.com.

  • SCM Microsystems SCR3310 USB Smartcard Reader
  • NXP JCOP41 V2.2.1 72K JavaCard

We need the following software:

Here is the installation procedure to follow:

  1. Install the Sun Java J2SDK 1.4 (for example c: \jdk14\)
  2. Install the Sun Java JDK 1.5 (for example c: \jdk15\)
  3. Extract Eclipse
  4. Create a shortcut to Eclipse specifying the virtual machine to use. Attention plugin JCOP requires version 1.4 of java. Here is an example “eclipse.exe -vm c: \jdk14\jre\bin\javaw.exe”
  5. Install driver for SCR3310
  6. Start Eclipse and go to “Help / Software Update / Find and install”
  7. Select “Search for new features to install” and click “next”
  8. Unpack JCOP Tools and PH TargetPack
  9. Click on New local site to add a site related to the uncompressed JCOP Tools and PH TargetPack folders
  10. Select the new site and install the plugins

It was during the creation of a new project that we must activate the plugin JCOP Tools. To do that:

  1. Select “File / New Project” (in Eclipse)
  2. Find “Java Card Project”
  3. Select the method of activation => card
  4. Insert a card NXP JCOP41
  5. Click on next

Now you have a nice hardware development platform…

Good luck