Saturday, December 20, 2008

Globul 3G data connect

If you are staring at the sentence "Supported OS: Windows XP/Vista" on your 3G data device and have no clue how to get it working on Linux then this post might help you.

I got a ZTE MF632 device working under Ubuntu Hardy with KPPP.

  • Create a new file /etc/udev/rules.d/57-zte-net.rules and put the following in it





ACTION!="add", GOTO="ZTE_End"

# Is this the ZeroCD device?
SUBSYSTEM=="usb", SYSFS{idProduct}=="2000",
SYSFS{idVendor}=="19d2", GOTO="ZTE_ZeroCD"

# Is this the actual modem?
SUBSYSTEM=="usb", SYSFS{idProduct}=="0001",
SYSFS{idVendor}=="19d2", GOTO="ZTE_Modem"

LABEL="ZTE_ZeroCD"
# This is the ZeroCD part of the card, remove
# the usb_storage kernel module so
# it does not get treated like a storage device
RUN+="/sbin/rmmod usb_storage"

LABEL="ZTE_Modem"
# This is the Modem part of the card, let's
# load usbserial with the correct vendor
# and product ID's so we get our usb serial devices
RUN+="/sbin/modprobe usbserial vendor=0x19d2 product=0x0001",
# Make users belonging to the dialout group
# able to use the usb serial devices.
MODE="660", GROUP="dialout"

LABEL="ZTE_End"


  • Plug your device in the USB port. This should create three new devices /dev/ttyUSB0, /dev/ttyUSB1 and /dev/ttyUSB2. You now can use the first one to connect to the network.

  • Use your favourite PPP program to configure new connection.  Don't forget to set the following parameters:



Modem initialization string 2 = AT+CGDCONT=1,"IP","globul"
Phone = *99***1#
Username = globul
Password = globul

Friday, September 26, 2008

VMware && USB && Ubuntu ?

To be able to use USB devices with VMware guest OSes under Ubuntu Gutsy you have to uncomment lines 42-45 in /etc/init.d/mountdevsubfs.sh




mkdir -p /dev/bus/usb/.usbfs
domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
ln -s .usbfs/devices /dev/bus/usb/devices
mount --rbind /dev/bus/usb /proc/bus/usb




Then conect with VM->Removable devices -> USB devices

Thursday, September 25, 2008

OpenSSL commands

Some useful openssl commands.

Check certificate details:



openssl  verify -verbose -issuer_checks server.crt



Generate new sertificate:



openssl req -new -x509 -days 365 -key server.key  -out server.crt



Check the modulus of an SSL certificate and key:



openssl rsa -noout -modulus -in server.key | openssl md5

openssl x509 -noout -modulus -in server.crt | openssl md5

Monday, May 12, 2008

Internet via WM6 device on Linux (USB)

This article shows how to use a Windows Mobile 5/6 device’s GPRS connecton with USB cable on Linux. The ‘conventional’ way is to use the /dev/ttyUSB device as a regular modem but since we are quite off the dial-up era we want to connect in a more modern way.


Microsoft provides a Remote NDIS stack, a derivative of the original USB communications device class  CDC to connect usb devices. It can be used in linux with the rndis_host kernel module. To avoid patching your kernel there is a simple way to get an internet connection.


svn co https://synce.svn.sourceforge.net/svnroot/synce/trunk/usb-rndis-lite


cd usb-rndis-lite/
make
sudo ./clean.sh
sudo make install


Now just plug in the USB cable and connect your device to the network through the Network sharing menu. Voila )

Thursday, January 10, 2008

Борек


  • 500г. кайма

  • 10 глави лук

  • сол и пипер на вкус

  • газирана вода

  • кори за баница

  • 4-5 яйца

  • олио


Една тава се намазва с олио. Намазват се поединично корите с олио така че мазнината да се разпредели равномерно. Каймата се запържва с лука и пипера след което готовата плънка се разнася върху двойка кори. По този начин се завиват всички кори и се нареждат в тавата като се нарязва предварително. След като се запече се добавя сместта от газираната вода и яйцата.