Thursday, February 28, 2008

Funny Video, PC vs Mac vs Linux



Gabe Schwarzer, the video creator who brought us the original Mac vs. PC "South Park" style parody ad is back with a sequel. Gabe wrote in to tell us his Mac vs. PC vs. Linux video is up on his website.

In the credits, Gabe notes that he used the South Park Studios app to make the characters. He also says he created the video on a PC and a Mac "because one just isn't enough." I guess that tells us exactly how he feels about Linux -- presuming the video doesn't settle the issue in the first place.

Wednesday, February 27, 2008

script how to join to Active Directory Domain Ccontroller Windows with openSuSE 10.3

this is my experience integrate Linux GUI(GDM/KDM) login with authentication from AD Win2003 to my clients
I'm using sadms http://sadms.sourceforge.net/ with OpenSUSE 10.3

description about SADMS:
---
SADMS takes care of handling configuration
to achieve the integration of
Linux hosts to an Active Directory domain,
to the effect that::

Linux hosts become Windows domain hosts
(and act either as station or server)

Windows domain users become Linux users
(authentication is offloaded to the domain
---

but the join domain not always succeed, so after quite time, I notice that the configuration itself doing this thing below:

(there is weird in the opensuse that sometime, the connected opensuse computer, doesn't want to authenticate to the domain, so I created a custom script in init.d, for restart the samba, winbind at the end of service started, as opensuse doesn't provide rc.local like in fedora distribution)

network: 172.16.x.x - 172.17.x.x
realm (domain in CAPITAL): COMPANY.CO.ID
active directory server hostname: ADServer01



1. create or replace configuration krb5.conf
# krb5.conf
# KERBEROS CONFIG FILE
# SADMS
# 2005-07-10 07:47:33

[libdefaults]
ticket_lifetime = 24000
default_realm = COMPANY.CO.ID
default_tgs_entypes = rc4-hmac des-cbc-md5
default_tkt__enctypes = rc4-hmac des-cbc-md5
permitted_enctypes = rc4-hmac des-cbc-md5
# dns_lookup_realm = true
# dns_lookup_kdc = true
dns_fallback = yes

[realms]
COMPANY.CO.ID = {
kdc = ADServer01
default_domain = 172.16.0.5
}

[domain_realm]
.172.16.0.5 = COMPANY.CO.ID
172.16.0.5 = COMPANY.CO.ID

[appdefaults]
pam = {
debug = false
ticket_lifetime = 36000
renew_lifetime = 36000
forwardable = true
krb4_convert = false
}

[logging]
default = FILE:/var/log/krb5libs.log
kdc = FILE:/var/log/krb5kdc.log
admin_server = FILE:/var/log/kadmind.log

#[kdc]
# profile = /var/kerberos/krb5kdc/kdc.conf


2. smb.conf configuration
# smb.conf
# SAMBA CONFIG FILE
# SADMS
# 2007-06-21

[global]

# netbios name
netbios name = %h

# server string is the equivalent of the NT Description field
server string = COMPANY Linux Samba Server %h

# realm = Kerberos realm
realm = COMPANY.CO.ID

# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = COMPANY

# Security mode.
security = ADS

# Use password server option only with security = server
password server = *

# Password encryption
encrypt passwords = yes

# This option is important for security. It allows you to restrict
# connections to machines which are on your local network.
hosts allow = 172.16. 172.17. 127.
hosts deny = 0.0.0.0/0.0.0.0

# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user "nobody" is used
guest account = nobody

# this tells Samba to use a separate log file for each machine
# that connects
; log file = /var/log/samba/%m.log;
log file = /var/log/samba/samba.log

# The following are needed to allow password changing from Windows to
# update the Linux system password also.
# noTE: Use these with 'encrypt passwords' and 'smb passwd file' above.
# noTE2: You do noT need these to allow workstations to change only
# the encrypted SMB passwords. They allow the Unix password
# to be kept in sync with the SMB password.
; unix password sync = yes
; passwd program = /usr/bin/passwd %u
; passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*

# Unix users can map to different SMB User names
username map = /etc/samba/smbusers

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
; include = /etc/samba/smb.conf.%m

# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
socket options = TCP_noDELAY SO_RCVBUF=8192 SO_SNDBUF=8192

# All NetBIOS names must be resolved to IP Addresses
# 'Name Resolve Order' allows the named resolution mechanism to be specified
# the default order is "host lmhosts wins bcast". "host" means use the unix
# system gethostbyname() function call that will use either /etc/hosts OR
# DNS or NIS depending on the settings of /etc/host.config, /etc/nsswitch.conf
# and the /etc/resolv.conf file. "host" therefore is system configuration
# dependant. This parameter is most often of use to prevent DNS lookups
# in order to resolve NetBIOS names to IP Addresses. Use with care!
# The example below excludes use of name resolution for machines that are noT
# on the local network segment
# - OR - are not deliberately to be known via lmhosts or via WINS.
; name resolve order = wins lmhosts bcast

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
; wins support = yes

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# note: Samba can be either a WINS Server, or a WINS Client, but noT both
wins server = ADServer01

# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
printcap name = cups
load printers = yes

# It should not be necessary to spell out the print system type unless
# yours is non-standard. Currently supported print systems include:
# bsd, sysv, plp, lprng, aix, hpux, qnx
printing = cups

# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
# this has been changed in version 1.9.18 to no.
dns proxy = no

# PAM-related
obey pam restrictions = yes
pam password change = yes

# Winbind separator
winbind separator = /

# Winbind use default domain
# This parameter specifies whether the winbindd daemon should
# operate on users without domain component in their username.
# Users without a domain component are treated as is part of
# the winbindd server's own domain. While this does not benefit
# Windows users, it makes SSH, FTP and e-mail function in a way
# much closer to the way they would in a native unix system.
# Default: winbind use default domain = no
winbind use default domain = yes

# RID to UID map
; idmap backend = rid:"BUILTIN=1000-9999,COMPANY=10000-60000"

; idmap domains = COMPANY
; idmap config COMPANY:backend = rid
; idmap config COMPANY:range = 10000-60000
; idmap config BUILTIN:backend = rid
; idmap config BUILTIN:range = 1000-9999

# RID idmap does not work with trusted domains
; allow trusted domains = no

# Domain user id range
idmap uid = 1000-60000

# Domain group id range
idmap gid = 1000-60000

# Allow enumeration of domain users and groups
winbind enum users = yes
winbind enum groups = yes

# Allow nested groups
; winbind nested groups = yes

# Winbind templates
# This parameter is designed to control how Winbind retrieves
# Name Service Information to construct a user's home directory
# and login shell. Currently the following settings are available:
# - template - The default, using the parameters of template shell
# and template homedir)
# - sfu - When Samba is running in security = ads and your Active
# Directory Domain Controller does support the Microsoft "Services
# for Unix" (SFU) LDAP schema, winbind can retrieve the login shell
# and the home directory attributes directly from your Directory
# Server. Note that retrieving UID and GID from your ADS-Server
# requires to use idmap backend = idmap_ad as well.
; winbind nss info = template

# When filling out the user information for a Windows NT user, the
# winbindd(8) daemon uses this parameter to fill in the home
# directory for that user. If the string %D is present it is sub-
# stituted with the user’s Windows NT domain name. If the string
# %U is present it is substituted with the user’s Windows NT user
# name.
template homedir = /home/%D/%U

# When filling out the user information for a Windows NT user, the
# winbindd(8) daemon uses this parameter to fill in the login
# shell for that user.
template shell = /bin/bash

# This option defines the default primary group for each user cre-
# ated by winbindd(8)’s local account management functions (simi-
# lar to the ’add user script’).
;template primary group = "COMPANY/Domain Users"
;template primary group = "Domain Users"

# Services
default service = homes
preload = global homes printers

# Default share values
valid users = @"COMPANY/Domain Users"
admin users = "COMPANY/edp"

#==================

create mask = 0644
directory mask = 0711
wins support = True
[homes]
comment = Home Directory
browseable = no
writable = yes
valid users = @"COMPANY/Domain Users"
; read only = No
; create mask = 0664
; directory mask = 0755

;[users]
; path = /home
; comment = All Home Directories
; browseable = yes
; writable = yes
; valid users = @"COMPANY/Domain Users"
; admin users = "COMPANY/edp"
; read list = @"COMPANY/Domain Users"
; write list = @"COMPANY/Domain Users"

;[tmp]
; comment = Temporary file space
; path = /tmp
; read only = no
; public = yes

# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
comment = All Printers
path = /var/tmp
browseable = no
guest ok = yes
writable = no
printable = yes
public = yes
;to allow user 'guest account' to print


3. ntp configuration
################################################################################
## /etc/ntp.conf
##
## Sample NTP configuration file.
## See package 'ntp-doc' for documentation, Mini-HOWTO and FAQ.
## Copyright (c) 1998 S.u.S.E. GmbH Fuerth, Germany.
##
## Author: Michael Andres,
##
################################################################################

##
## Radio and modem clocks by convention have addresses in the
## form 127.127.t.u, where t is the clock type and u is a unit
## number in the range 0-3.
##
## Most of these clocks require support in the form of a
## serial port or special bus peripheral. The particular
## device is normally specified by adding a soft link
## /dev/device-u to the particular hardware device involved,
## where u correspond to the unit number above.
##
## Generic DCF77 clock on serial port (Conrad DCF77)
## Address: 127.127.8.u
## Serial Port: /dev/refclock-u
##
## (create soft link /dev/refclock-0 to the particular ttyS?)
##
# server 127.127.8.0 mode 5 prefer

##
## Undisciplined Local Clock. This is a fake driver intended for backup
## and when no outside source of synchronized time is available.
##
server 127.127.1.0 # local clock (LCL)
fudge 127.127.1.0 stratum 10 # LCL is unsynchronized


##
## Outside source of synchronized time
##
## server xx.xx.xx.xx # IP address of server

##
## Miscellaneous stuff
##

driftfile /var/lib/ntp/drift/ntp.drift # path for drift file

logfile /var/log/ntp # alternate log file

server ADServer01.company.co.id
restrict 127.0.0.1
restrict default ignore
restrict ADServer01.company.co.id nomodify notrap noquery
# logconfig =syncstatus + sysevents
# logconfig =all

# statsdir /tmp/ # directory for statistics files
# filegen peerstats file peerstats type day enable
# filegen loopstats file loopstats type day enable
# filegen clockstats file clockstats type day enable

#
# Authentication stuff
#
# keys /etc/ntp.keys # path for keys file
# trustedkey 1 2 3 4 5 6 14 15 # define trusted keys
# requestkey 15 # key (7) for accessing server variables
# controlkey 15 # key (6) for accessing server variables


4. pam.d 5 related files(common-account, common-auth, common-password, common-session, samba)
- common-account
#%PAM-1.0
#
# This file is autogenerated by pam-config. All changes
# will be overwritten.
#
# Account-related modules common to all services
#
# This file is included from other service-specific PAM config files,
# and should contain a list of the accountorization modules that define
# the central access policy for use on the system. The default is to
# only deny service to users whose accounts are expired.
#
account sufficient pam_unix2.so
account [default=bad success=ok user_unknown=ignore] pam_winbind.so
account required pam_permit.so

- common-auth
#%PAM-1.0
#
# This file is autogenerated by pam-config. All changes
# will be overwritten.
#
# Authentication-related modules common to all services
#
# This file is included from other service-specific PAM config files,
# and should contain a list of the authentication modules that define
# the central authentication scheme for use on the system
# (e.g., /etc/shadow, LDAP, Kerberos, etc.). The default is to use the
# traditional Unix authentication mechanisms.
#
auth required pam_env.so
auth required pam_mount.so
auth sufficient pam_unix2.so use_first_pass
auth sufficient pam_winbind.so use_first_pass
auth required pam_deny.so

- common-password
#%PAM-1.0
#
# This file is autogenerated by pam-config. All changes
# will be overwritten.
#
# Password-related modules common to all services
#
# This file is included from other service-specific PAM config files,
# and should contain a list of modules that define the services to be
# used to change user passwords.
#
password requisite pam_pwcheck.so nullok cracklib
password sufficient pam_unix2.so use_authtok nullok
password sufficient pam_winbind.so use_authtok
password required pam_deny.so

- common-session
#%PAM-1.0
#
# This file is autogenerated by pam-config. All changes
# will be overwritten.
#
# Session-related modules common to all services
#
# This file is included from other service-specific PAM config files,
# and should contain a list of modules that define tasks to be performed
# at the start and end of sessions of *any* kind (both interactive and
# non-interactive
#
session required pam_mkhomedir.so skel=/etc/skel/ umask=0066
session required pam_limits.so
session required pam_unix2.so
session optional pam_umask.so
#session optional pam_mount.so

- samba
#%PAM-1.0
auth required pam_nologin.so
auth include system-auth
account include system-auth
session include system-auth
password include system-auth


5. change nsswitch.conf
passwd: compat winbind
group: compat winbind
shadow: compat winbind

hosts: files dns wins
networks: files dns

services: files
protocols: files
rpc: files
ethers: files
netmasks: files
netgroup: files nis
publickey: files

bootparams: files
automount: files nis
aliases: files

Tuesday, February 26, 2008

PLATINGUI spec rpm - easy deployment with repository

for a company that used SAPGUI linux client:
here is rpm spec that I used for my client,
(worked with OpenSuSE 10.3, and used createrepo)

1. download www.sap.com - ftp://ftp.sap.com/pub/sapgui/java/710r2/PlatinGUI-Linux-710r2.jar
2. install as usually with java -jar in linux
3. run this prepare.sh

# ./prepare.sh 7.10rev2
(this will create SAPGUI7.10rev in directory /usr/src/packages/SOURCES)

file prepare.sh
----
#!/bin/sh

cd /opt/SAPClients/SAPGUI$1
cp -p /usr/share/applications/SAPGUI$1.desktop ./
cd /opt/SAPClients/
tar cfvz SAPGUI$1.tar.gz SAPGUI$1
#cp -p SAPGUI$1.tar.gz /usr/src/redhat/SOURCES
cp -p SAPGUI$1.tar.gz /usr/src/packages/SOURCES
----

4. create file SAPGUI.spec

file SAPGUI.spec
----
#change version number in pkgrelease and _platinguipath

%define pkgrelease 7.10rev2
%define dwrelease 710r2
%define microrelease 2
%define _platinguipath /opt/SAPClients/SAPGUI7.10rev2

Name: SAPGUI
Version: Linux
Release: %{pkgrelease}.%{microrelease}
License: GPL
Group: Applications/Databases/Interfaces
Source0: ftp://ftp.sap.com/pub/sapgui/java/%{pkgrelease}/PLATINGUI-Linux-%{dwrelease}.tar.gz
URL: http://www.sap.com
Buildarch: noarch
BuildRoot: %{_tmppath}/%{name}-root

Summary: PlatinGUI client Linux

%description
SAPGUI client java environment for linux

%prep
%setup -q -n %{name}%{pkgrelease}


%build


%install
[ "${RPM_BUILD_ROOT}" != "/" ] && [ -d "${RPM_BUILD_ROOT}" ] && \
rm -rf "${RPM_BUILD_ROOT}"

# Create directories.

install -d "${RPM_BUILD_ROOT}%{_platinguipath}"/{bin,jar,inst,security,doc}
install -d "${RPM_BUILD_ROOT}%{_platinguipath}"/bin/gmux
install -d "${RPM_BUILD_ROOT}%{_platinguipath}"/inst/hicolor
install -d "${RPM_BUILD_ROOT}%{_platinguipath}"/inst/hicolor/{128x128,16x16,22x22,32x32,48x48,64x64}
install -d "${RPM_BUILD_ROOT}%{_platinguipath}"/inst/hicolor/{128x128,16x16,22x22,32x32,48x48,64x64}/apps
install -d "${RPM_BUILD_ROOT}%{_platinguipath}"/doc/{applet,intro,relnotes,sysreq,webdynpro,admconf,backgrnd,install,license,start,userconf}
install -d "${RPM_BUILD_ROOT}/usr/share/applications"


# Install files.

install install.* "${RPM_BUILD_ROOT}%{_platinguipath}"/
install bin/{guilogon,guistart,libGnomeConnect.so,libJPlatin.so,libKde3Connect.so,sapftp,sapgui,saphttp} "${RPM_BUILD_ROOT}%{_platinguipath}/bin"/
install bin/gmux/* "${RPM_BUILD_ROOT}%{_platinguipath}/bin/gmux"/
install jar/* "${RPM_BUILD_ROOT}%{_platinguipath}/jar"/
install inst/hicolor/128x128/apps/* "${RPM_BUILD_ROOT}%{_platinguipath}/inst/hicolor/128x128/apps"/
install inst/hicolor/16x16/apps/* "${RPM_BUILD_ROOT}%{_platinguipath}/inst/hicolor/16x16/apps"/
install inst/hicolor/22x22/apps/* "${RPM_BUILD_ROOT}%{_platinguipath}/inst/hicolor/22x22/apps"/
install inst/hicolor/32x32/apps/* "${RPM_BUILD_ROOT}%{_platinguipath}/inst/hicolor/32x32/apps"/
install inst/hicolor/48x48/apps/* "${RPM_BUILD_ROOT}%{_platinguipath}/inst/hicolor/48x48/apps"/
install inst/hicolor/64x64/apps/* "${RPM_BUILD_ROOT}%{_platinguipath}/inst/hicolor/64x64/apps"/
install security/* "${RPM_BUILD_ROOT}%{_platinguipath}/security"/
install doc/*.htm "${RPM_BUILD_ROOT}%{_platinguipath}/doc"/
install doc/admconf/* "${RPM_BUILD_ROOT}%{_platinguipath}/doc/admconf"/
install doc/applet/* "${RPM_BUILD_ROOT}%{_platinguipath}/doc/applet"/
install doc/backgrnd/* "${RPM_BUILD_ROOT}%{_platinguipath}/doc/backgrnd"/
install doc/install/* "${RPM_BUILD_ROOT}%{_platinguipath}/doc/install"/
install doc/intro/* "${RPM_BUILD_ROOT}%{_platinguipath}/doc/intro"/
install doc/license/* "${RPM_BUILD_ROOT}%{_platinguipath}/doc/license"/
install doc/relnotes/* "${RPM_BUILD_ROOT}%{_platinguipath}/doc/relnotes"/
install doc/start/* "${RPM_BUILD_ROOT}%{_platinguipath}/doc/start"/
install doc/sysreq/* "${RPM_BUILD_ROOT}%{_platinguipath}/doc/sysreq"/
install doc/userconf/* "${RPM_BUILD_ROOT}%{_platinguipath}/doc/userconf"/
install doc/webdynpro/* "${RPM_BUILD_ROOT}%{_platinguipath}/doc/webdynpro"/
install *.desktop "${RPM_BUILD_ROOT}/usr/share/applications"/

%clean
[ "${RPM_BUILD_ROOT}" != "/" ] && [ -d "${RPM_BUILD_ROOT}" ] && \
rm -rf "${RPM_BUILD_ROOT}"


%files
%defattr(644, root, root, 755)
%{_platinguipath}/install.*
%attr(0755,root,root) %{_platinguipath}/bin/*
%{_platinguipath}/inst/*
%{_platinguipath}/jar/*
%{_platinguipath}/security/*
%{_platinguipath}/doc/*
/usr/share/applications/*.desktop
#/usr/lib/debug/opt/SAPGUI/bin/*
#/usr/lib/debug/opt/SAPGUI/bin/gmux/*


%changelog
* Thu Feb 26 2008 Lewi Supranata .K
- add shortcut to /usr/share/applications for OpenSUSE
* Thu Feb 21 2008 Lewi Supranata .K
- Version PlatinGUI-710r1
- First build
----

5. run rpmbuild
# rpmbuild -ba SAPGUI.spec

6. done and put just newly created /usr/src/packages/RPMS/noarch/SAPGUI-Linux-7.10rev2.2.noarch.rpm to your repository server dir

7. createrepo /home/repo/SAPGUI
(recreate repo data in directory SAPGUI)

8. zypper in SAPGUI
(for install new SAPGUI packages)

enjoy your easy and fast installation SAPGUI for linux

Monday, February 25, 2008

Nokia CDMA - Fedora Linux - Old Archives from http://www.mbone.info

NOKIA CDMA with Linux v.1.0

(original url: http://mbone.petra.ac.id/u/ichtus/CDMA/cdma.html)
if connection too slow, please try this link

- CHANGES v.1.0 - 10 September 2004
1. Upgrade to postpaid
(thank you for starone, as 9 September I can connect internet again, and without fee as long as this month)
2. Change back to "Baud" 115200 (more stable connection)

- CHANGES v.0.5 - 19 August 2004
1. Rework requirement issue
2. Some small fix

- CHANGES v.0.4 - 22 July 2004
1. Add ICQ client connection issue (starone DNS, doesn't resolve correct for ICQ server hostname)
2. Change "Baud" to 230400 (more higher bandwidth!)
3. Remove TODO section

- CHANGES v.0.3 - 1 July 2004
1. FC1 kernel else than 2.4.22-1.2115.nptl report not working
2. Typo phonenix to phoenix

- CHANGES v.0.2 - 29 June 2004
1. Troubleshooting Kabel dan Handphone
2. Penambahan screenshot "Modem Lights Applet" connect
3. Fedora Core 2 testing
4. Add Handphone Nokia 6585 via Infrared
5. Remove koneksi dengan script pppd (tidak bekerja, bantuan dari rekan-2 sangat diharapkan)

- started, v.0.1 - 16 June 2004

Nokia phones CDMA compatible under Linux (N2280, N3105, N6585) - Tested !

website yang direkomendasikan untuk dibaca terlebih dahulu:
1. http://www.google.com
(keyword: linux cdma)
2. http://www.infolinux.web.id
(keyword: cdma di freebsd)

Daftar Isi:
1. Background
2. Peralatan yang dibutuhkan
3. Program yang dibutuhkan
4. Tahap konfigurasi (dengan redhat-config-network)
5. Dial CDMA dengan Linux
6. Debugging
7. Troubleshooting Koneksi
8. ICQ client connection problem




Background:

Akhir-akhir karena gencarnya penyedia jasa komunikasi melakukan gebrakan dengan teknologi CDMA, yang diawali dengan Telkom Flexi, Fren dari mobile-8, dan terakhir starone dari Indosat
banyak teman yang mencoba teknologi baru ini untuk mencari solusi murah berinternet ria (ya walaupun menurut penulis sendiri tetap mahal di handsetnya :) ), dan sekalian bersama little manual ini penulis juga berterima kasih kepada teman saya Stefanus dan Ferry yang bersedia meminjamkan handset nokia beserta kabel data untuk uji coba CDMA di Linux.

"Siapa bilang linux tidak bisa cdma?"



Peralatan yang dibutuhkan:
1. Handset Nokia 2280, Nokia 3105, Nokia 6585 (untuk tipe nokia yang lain, belum diuji coba walaupun penulis yakin bisa)
2. Kabel Data USB(bisa dibeli di toko-2 handphone) (note: Kabel dengan kabel data driver Prolific yang berjalan dengan baik di Linux)
3. Komputer dengan basis Linux

Program yang dibutuhkan di FC1:
1. ppp-2.4.1-15
2. wvdial-1.53-12
3. redhat-config-network-1.3.10-1
4. kernel module pl2303 (catatan: FC1 sudah menyediakan module, tanpa harus recompile kernel. kernel-2.4.22-1.2115.nptl kernel bawaan dari fedora)

Program yang dibutuhkan di FC2:
1. ppp-2.4.2-2
2. wvdial-1.53-13
3. system-config-network-1.3.16-1 (di FC2, utilitas redhat-config-* berubah menjadi system-config-*)
4. kernel module pl2303 (catatan: FC2 sudah menyediakan module, tanpa harus recompile kernel)

Referensi CDMA AT command:
1. driver nmpCDMA1xRTT.inf (driver nokia cdma modem di windows, bisa didapatkan di website nokia)

Tahap konfigurasi (sebagai root):
1. Pengujian koneksi modem di nokia

# wvdialconf --config hanyaTesting.conf

ttyUSB0<*1>: ATQ0 V1 E1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB0<*1>: Modem Identifier: ATI -- ERROR
ttyUSB0<*1>: Speed 4800: AT -- OK
ttyUSB0<*1>: Speed 9600: AT -- OK
ttyUSB0<*1>: Speed 19200: AT -- OK
ttyUSB0<*1>: Speed 38400: AT -- OK
ttyUSB0<*1>: Speed 57600: AT -- OK
ttyUSB0<*1>: Speed 115200: AT -- OK
ttyUSB0<*1>: Speed 230400: AT -- OK
ttyUSB0<*1>: Speed 460800: AT -- [fe][fe]
ttyUSB0<*1>: Speed 460800: AT -- [fe][fe]
ttyUSB0<*1>: Speed 460800: AT -- [fe][fe]
ttyUSB0<*1>: Max speed is 230400; that should be safe.
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK


2. Set up koneksi starone dengan redhat-config-network:

# redhat-config-network



Redhat-config-network-gui

contoh koneksi (liat gambar diatas).

klik bagian hardware:

redhat-config-network

add new, pilih modem:

redhat-config-network-2

set properties seperti di gambar yang bawah:

Redhat-config-network-gui-3
pada N2280 dan N3550

untuk N6585 via infrared:
Screenshot-Redhat-config-network-gui-9

klik OK.

Kembali ke bagian Devices, klik New, pilih "Modem connection":

Redhat-config-network-gui-4

isi properties seperti tahap-tahap dibawah:

Redhat-config-network-gui-5

Redhat-config-network-gui-6

Redhat-config-network-gui-7

klik Apply. Lanjutkan langkah seperti gambar dibawah,

edit koneksi yang telah dibuat tadi, dengan klik tombol edit:

Redhat-config-network-gui-8

set Modem port ke modem yang sudah dibuat pada gambar pertama tadi, dan turn on "Let PPP do all authentication" (stupid mode=1).

edit file wvdial.conf (dengan memakai text editor favorite anda):
Gnome-terminal

Pada bagian [Modem1]:
1. hilangkan baris
Init3 = ATM1L0

Pada bagian [Dialer starone]
1. tambahkan baris
Init1 = AT
Init2 = AT+crm=1
Init3 = AT+cso=33
Init4 = ATE0V1

ok. konfigurasi sudah selesai.


catatan:

- N6585 dengan menggunakan koneksi via infrared membutuhkan beberapa langkah untuk memastikan infrared hubungan dari komputer dengan ponsel
1. Nyalakan service infrared

# service irda start

2. Load module serial infrared

# modprobe ircomm

3. Testing modem dengan memakai wvdial

# cd /dev/
# ln -s ircomm0 modem
# wvdialconf testcdma.conf

4. lanjutan tahap-tahap instalasi seperti biasa


Dial CDMA dengan Linux (starone)

Ada 3 cara untuk mengaktifkan dial starone pada konfigurasi yang sudah kita buat sebelumnya:
1. Terminal
untuk konek ke starone

$ /sbin/ifup starone

untuk mematikan koneksi

$ /sbin/ifdown starone



2. gnome-applet-modem (koneksi internet pada gnome)
Gnome-modem-applets

edit preference dari Modem Lights (modem applet di taskbar gnome):
Modemlights_applet2

Modemlights_applet2-1

tampilan di taskbar gnome
Screenshot-Modemlights_applet2-2

klik connect
Screenshot-Modemlights_applet2-3


3. dengan wvdial

# wvdial starone


Debugging

# tail -f /var/log/messages

jika berhasil, kira-kira akan keluar output seperti ini:

Jun 14 23:06:58 ichtusmobile ifup-ppp: pppd started for starone on /dev/ttyUSB0 at 115200
Jun 14 23:06:58 ichtusmobile pppd[2179]: pppd 2.4.1 started by root, uid 0
Jun 14 23:06:59 ichtusmobile wvdial[2200]: WvDial: Internet dialer version 1.53
Jun 14 23:06:59 ichtusmobile wvdial[2200]: Initializing modem.
Jun 14 23:07:00 ichtusmobile wvdial[2200]: Sending: AT
Jun 14 23:07:00 ichtusmobile wvdial[2200]: AT
Jun 14 23:07:00 ichtusmobile wvdial[2200]: OK
Jun 14 23:07:00 ichtusmobile wvdial[2200]: Sending: AT+crm=1
Jun 14 23:07:00 ichtusmobile wvdial[2200]: AT+crm=1
Jun 14 23:07:00 ichtusmobile wvdial[2200]: OK
Jun 14 23:07:00 ichtusmobile wvdial[2200]: Sending: AT+cso=33
Jun 14 23:07:00 ichtusmobile wvdial[2200]: AT+cso=33
Jun 14 23:07:00 ichtusmobile wvdial[2200]: OK
Jun 14 23:07:00 ichtusmobile wvdial[2200]: Sending: ATE0V1
Jun 14 23:07:00 ichtusmobile wvdial[2200]: ATE0V1
Jun 14 23:07:00 ichtusmobile wvdial[2200]: OK
Jun 14 23:07:00 ichtusmobile wvdial[2200]: Modem initialized.
Jun 14 23:07:00 ichtusmobile wvdial[2200]: Sending: ATDT#777
Jun 14 23:07:00 ichtusmobile wvdial[2200]: Waiting for carrier.
Jun 14 23:07:03 ichtusmobile wvdial[2200]: CONNECT
Jun 14 23:07:03 ichtusmobile wvdial[2200]: Carrier detected. Chatmode finished.
Jun 14 23:07:03 ichtusmobile pppd[2179]: Serial connection established.
Jun 14 23:07:03 ichtusmobile pppd[2179]: Using interface ppp0
Jun 14 23:07:03 ichtusmobile pppd[2179]: Connect: ppp0 <--> /dev/ttyUSB0
Jun 14 23:07:06 ichtusmobile modprobe: modprobe: Can't locate module ppp-compress-21
Jun 14 23:07:06 ichtusmobile modprobe: modprobe: Can't locate module ppp-compress-21
Jun 14 23:07:09 ichtusmobile pppd[2179]: Could not determine remote IP address: defaulting to 10.64.64.64
Jun 14 23:07:09 ichtusmobile pppd[2179]: local IP address 219.83.80.63
Jun 14 23:07:09 ichtusmobile pppd[2179]: remote IP address 10.64.64.64
Jun 14 23:07:09 ichtusmobile pppd[2179]: primary DNS address 202.155.0.20
Jun 14 23:07:09 ichtusmobile pppd[2179]: secondary DNS address 202.155.0.15


Troubleshooting Kabel dan Handphone

List problem yang harus diperiksa:
1. Check kabel
Informasi dari forumponsel (http://www.forumponsel.com) adanya beberapa jenis kabel data DKU-5:
- DKU-5 buatan RRC (kotak berwarna kuning)
- DKU-5 dengan kotak warna putih
- DKU-5 original dari Nokia (not working under linux!)
- MA-8620E (type lama, bisa dicheck pada cd yang disertakan dalam kemasan terdapat program "Phone Data Suite", selain itu mungkin termasuk type MA yang baru)
- MA-8630E (type baru - not working under linux!) -> dilaporkan ada yang bisa dikenali di linux (FC2)

Bagi yang bisa membawa Laptop under linux bisa dicoba di toko handphonenya, atau membawa CD Linux Knoppix untuk testing dengan wvdial
Kabel DKU-5 dan MA yang saat ini berjalan under linux dengan module pl2303 (latest v.0.10) bisa dengan melakukan koneksi modem dengan menggunakan wvdial.


2. Check handphone
Handphone dari penulis(N2280 garansi Startel) mengalami masalah koneksi 3G modem karena adanya setting dari "NAM Programming" (*3001#12345#) yang tidak sesuai,
hal ini bisa diatasi dengan meng-copy setting tersebut dari N2280 yang tidak bermasalah dengan menggunakan program phoenix (terima kasih kepada Pak Alfred untuk hal ini) dan
men-save setting tersebut pada N2280 yang bermasalah.


ICQ client/Gaim connection problem

- Ada permasalahan di DNS server yang dipake starone (202.155.0.20 & 202.155.0.15), coba ubah setting atau preference dari ICQ client untuk
bagian server hostname menjadi ip address.
Contoh di icq client di linux dengan Gaim,
Tools -> Accounts -> Modify Icq Account -> Show more details -> ganti "Auth Host" login.oscar.aol.com => 205.188.179.233
-> ip address dari login.oscar.aol.com bisa didapatkan dengan koneksi internet yang lain dengan DNS server yang berbeda pula:
1. host -t A login.oscar.aol.com (linux)
2. ping login.oscar.aol.com (windows)

- Yahoo client dilaporkan tidak ada masalah (ymessenger, gaim, gyach)


Last update: 10 September 2004
last words,
any problem please send email to me:
1. ichtus_lewi@yahoo.com
2. ichtus@gmail.com

hosted firebird (1.5 or 2.03) in linux, using with Zahir Accounting

a week ago, with one of company in surabaya that current running Zahir Accounting Enterprise,
there is a plan moving Firebird database to the internet...there will be centralize Firebird database that will able accessed from different places

the result is NOT good enough..for the speed and performance factor
conclusion:
1. Firebird and zebedee combination is able or at least quick enough to access via internet
2. Zahir Accounting is NOT design for using database via internet

step that I've done: (server linux using: ubuntu 7.04)
1. install Fb firebirdss_2.0.3.12981-nptl_i386.deb ( alien --scripts FirebirdSS-2.0.3.12981-1.nptl.i686.rpm, from sourceforge.net)
# dpkg -i firebirdss_2.0.3.12981-nptl_i386.deb

or

install Fb superserver 1.5(firebird2-super-server 1.5.4.4910rel-6) from repository
# apt-get install firebird2-super-server

2. copy and upload file *.gdb(coba1.gdb and security.gdb) from Firebird database windows local to user local linux home directory

3. install zebedee
a. download zebedee-2.4.1A.tar.gz, blowfish-0.9.5a.tar.gz, bzip2-1.0.3.tar.gz, zlib-1.2.3.tar.gz
b. extract to some directory( there will create dir ~linux/blowfish-0.9.5a and ~linux/bzip2-1.0.3 and ~linux/zebedee-2.4.1A and ~/linux/zlib-1.2.3)
c.
$ cd zebedee-2.4.1A
$ make
$ cp zebedee ~linux/

4. run zebedee as non-root user
$ ~linux/zebedee -m -z9 -s localhost:3050

5. open firewall tcp port for zebedee at port 11965

6. create aliases in /opt/firebird/aliases.conf fo/home/r FB ver 2.03 and /etc/firebird/1.5
/aliases.conf
coba1.gdb = /home/jail/home/linux/coba1.gdb

7. copy security2.fdb to directory /opt/firebird or security.fdb for FB ver 2.03
or copy security.fdb to directory /usr/lib/firebird/1.5

8. restart firebird server
/etc/init.d/firebird restart

9. running zebedee di client computer
a. open command prompt di windows
b. cd to directory C:\Program Files\Zebedee
c. run zebedee -z9 -m 3050:IPAddressFirebirdServer:3050

10. run Zahir Accounting in client computer
a. Buka Data
b. entry server with "localhost"
c. entry lokasi file: "coba1.gdb"

result:
- opening for the first time, need at least 170kb data download for opening zahir, that's quite long time needed for just opening data
- when transaction or window forms still open, zahir will not tolerate if the connection closed, the connection to the database is not stateless connection

Sunday, February 17, 2008

New beginning of ICHTUS life blog

Hi..all, ni hao!
Create this blog because need of my desire to write my experience during life..

--
Lewi
http://profiles.friendster.com/ichtus
http://www.facebook.com/profile.php?id=586909581

Aktivasi DNS Over HTTPS (DoH) DNS Google di Mikrotik v6.47

Domain Name System atau biasa disebut DNS merupakan salah satu fitur yang ada pada setiap perangkat jaringan. Berfungsi pada sistem untuk me...