Wednesday, February 20, 2008

Join Ubuntu fiesty (7.04) ke domain SME Server

package yang dibutuhkan adalah
1. smbfs
2. winbind
3. libpam-mount

hal yang perlu dimodifikasi adalah
1. samba- /etc/samba/smb.conf
masukkan script berikut di smb.conf
workgroup = vaidmap uid = 10000-20000
idmap gid = 10000-20000
template shell = /bin/bash
template homedir = /home/%D/%U
winbind enum users=yes
winbind enum groups = yes
winbind cache time = 20
winbind separator = +
password server = *
security = domain
winbind use default domain = yes

2. /etc/nsswitch.conf
passwd: compat
group: compat

ganti dengan
passwd: compat winbind
group: compat winbind

3. /etc/pam.d - edit the following files:
common-account:

account sufficient pam_unix.so
account required pam_winbind.so

common-auth:

auth required pam_unix.so
auth sufficient pam_winbind.so use_first_pass
auth required pam_unix.so use_first_pass

common-session:

session required pam_unix.so
session required pam_mkhomedir.so umask=0022 skel=/etc/skel/
session optional pam_mount.so

4 di SME box ketikkan command berikut;

signal-event machine-account-create clientname$
smbpasswd -a -m clientname$ ( atau pdbedit -a -m clientname$)

5. Join ke domain dan lakukan pengetesan

NOTE: winbind harus running (/etc/init.d/winbind start),
net rpc join -D va -U admin

Test dengan:
wbinfo -u
wbinfo -g


perintah diatas akan menampilkan seluruh nama user di domain VA


selamat mencoba

Tuesday, February 19, 2008

Installs TN5250 at Ubuntu Feisty (7.04)

1. donwload package (dari machine Ubuntu) tn5250 at 2. click 2x dan ikuti langkah yang diberikan

nah untuk menjalankan nya buka terminal > dan ketikan perintah ini
"xt5250 font_80=12x40 font_132=12x24 map=37 env.DEVNAME=MYAS400 env.TERM=IBM-3179 as400"

untuk keterangan script tersebut bisa dibaca di manual nya TN5250. yang terpenting adalah untuk ukuran layar nya adalah dengan tambahan "font_80=12x40 font_132=12x24". karena ukuran standarnya kecil banget.

trus yang bikin rumit lagi urusan key maps nya.
file yang harus kita oprek ada di /usr/share/tn5250/XTerm"
untuk sample manual Key maps nya bisa didapat di google dengan keyword "tn5250-HOWTO"

sampe sekarang masalah yang muncul adalah fungsi F13-F16 yang tidak bisa jalan.

any idea???


thank,
asnan

Monday, February 11, 2008

IP Address dan Subnetting

IP address adalah sebuah address logika yang diberikan ke sebuah device fisikal ( yang sering kita sebut LAN Card dan yang paling banyak digunakan adalah 3Com) Dengan IP ini lah sebuah paket bisa diteruskan tempat tujuan. IP address terdiri atas 32 bit angka binari, yang ditulis dalam empat kelompok terdiri atas 8 bit dan dipisahkan dengan titik. Sebagai contoh alamat

11000000.10101000.00000001.0000001

dan untuk mempermudah pengunaan selalu ditulis dalam notasi decimal sebagai IP 192.168.1.1
secara umum IP addres tersusun atas porsi NETWORK dan porsi HOST
Kelas A memiliki porsi Network 8 bit pertama dan 24 bit sisanya untuk Host dan network mask nya kan tertulis 255.0.0.0
Kelas B memiliki porsi Network 16 bit pertama dan 16 bit sisanya untuk Host dan network mask nya kan tertulis 255.255.0.0
Kelas C memiliki porsi Network 24 bit pertama dan 8 bit sisanya untuk Host dan network mask nya kan tertulis 255.255.255.0
Untuk memedakan kelas satu denngan yang lainnya maka dibuat atusan sebagai berikut

8 bit pertama untuk kelas A harus dimulai dengan 0
8 bit pertama untuk kelas B harus dimulai dengan 10
8 bit pertama untuk kelas c harus dimulai dengan 110

berikut nitasi binari dan decimal nya dari pembagian kelas;

Kelas Nomor Network Bit pertama Jumlah network Jumlah Host
A 1-126 00000001-01111110 127 16777214
B 128-191 10000000-10111111 16284 65534
C 192-223 11000000-11011111 2097152 254

IP 127.0.0.0 adalah loopback address jadi tidak dapat dipakai untuk Ip address
Disamping itu ada addres yang diperuntukan khusus untuk jaringan private, sebagai berikut:

Kelas Kelompok private address
A 10.0.0.1 – 10.255.255.254
B 172.16.0.1 – 172.31.255.254
C 192.168.0.1 – 192.168.255.254

Subnetting
Dengan semakin meningkatnya pengunaan IP, sementara jumlah Ip terbatas maka dibuatlah metode untuk memperbanyak jumlah Ip dengan SUBNETTING. Cara subnetting adalah dengan mengambil 2 bit teratas dari host id untuk dipakai oleh network Id sebagai bagian dari subnetmask baru,

Network ID Host Id
IP address 10000000.01011001.00 000000.00000000
Subnet mask baru 11111111.11111111.11 000000.00000000

Contoh diatas adalah network ID 128.89.0.0 dengan subnet mask 255.255.192.0
Penjelasannya sebagai berikut;
- oktet pertama dapat diketahui IP addressnya adalah kelas B. dan Dari pengambilan 2 bit teratas dari host ID diketahui angka 192
- Hitungan dengan rumus nya (256-angka dari bit teratas yang diambil) = 256-192=64
- Jadi subnet yang dipakai adalah kelipatan 64 yaitu 64 dan 128

Kelompok IP yang bisa dipaia adalah
- 128.89.64.1 – 128.89.127.254
- 128.89.128.1 – 128.89.191.254
untuk menghitung jumlah subnet yang bisa dipakai sebagai berikut;
jumlah subnet = 2n - 2
n adalah jumlah bit dari host teratas yang diambil
untuk menghitung jumlah host per subnet adalah sbb;
jumlah host per subnet = 2n - 2
n adalah jumlah bit host yang tersisa setelah dikurangi untuk subnetting
contoh
Untuk kelas B dengan 4 bit teratas yang dipakai subnet masknya dalah sebagai beikut
11111111.11111111.11110000.00000000 atau 255.255.240.0
jadi jumlah subnet = 24 - 2 = 16
jumlah host per subnet = 212 – 2 = 4094

Moga bermafaat.

Wednesday, February 06, 2008

cara Mudah download file youtube

cara ini bisa digunakan mendownload file youtube dan mengconvert ke file yang di inginkan. bisa mp3, agp, mpg, mp4 dll.
step nya..

1. buka file youtube yang akan didownload and copy linknya (copy dari address box)
2. buka www.zamzar.com
3. di step pertama zamzar clik url (warna biru), paste link yang udah dicopy dilangkah pertama.
4. pilih jenis file yang kita inginkan (mp3, avi, mp4 dll)
5. masukkan email address yang kamu punya. ini digunakan zamzar untuk mengirimkan link hasil convert file dari youtube.
6. setelah step 5 kelar. buka mail kamu dan lihat mail dari zamzar dimana akan ada link untuk mendowloand
7. dapet dah file yang kamu inginkan


moga bermanfaat untuk yang suka musik gratis. pi awas itu bagian dari pembajakan juga..
so klo ada resiko tanggung sendiri :)

XAMPP

Many people know from their own experience that it's not easy to install an Apache web server and it gets harder if you want to add MySQL, PHP and Perl.

XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl. XAMPP is really very easy to install and to use - just download, extract and start.



the next..

I will develope webbase application

Mohon Maaf

Mohon maaf beribu maaf aku tak menggugatmu
Bukan sekedar karena aku tahu kekuatan gugatanku jauh lebih kecil dibanding kekuatanmu untuk tidak mendengarku serta dibanding kekukuhanmu untuk tidak akan mengubah dirimu sebagaimana yang kudambakan seandainya aku menggugatmu
Tetapi juga karena engkau jauh lebih tahu tentang hal-hal yang aku gugatkan dibanding kadar pengetahuanku -- sekurang-kurang nya demikianlah anggapan yang hidup di dalam dirimu

Mohon maaf beribu maaf aku tidak mengingatkanmu, dan tidak akan mengkritikmu di bidang apapun saja sampai kapanpun saja
Bukan sekedar karena ilmumu jauh lebih mumpuni dibanding ilmuku yang hanya telanjang terhadap kenyataan
Juga bukan hanya karena pikiranmu sudah kukuh dan hatimu sudah bulat atas segala yang engkau inginkan
Tetapi juga karena engkau toh sudah besar, sudah dewasa, sudah matang segala-galanya sehingga pendapat Tuhanpun sama sekali tidak engkau butuhkan

Mohon maaf beribu maaf aku tidak menuntutmu, ... , aku tidak mengeluarkan statemen atau pernyataan apapun, juga tidak menghimbau atau melakukan tekanan-tekanan atas segala macam tindakan dan perilakumu
Mohoh maaf beribu maaf keputusan itu kuambil semata-mata karena aku sungguh tidak akan meminta apa-apa darimu, tidak mengharapkan apapun dari sepak terjangmu, tidak memimpikan peranmu atas hidupku, tidak menunggu perwujudan janji-janjimu, tidak mencantolkan nasibmu di pundakmu, tidak akan menadahkan tangan atau
mengemis setetes airpun dari kehebatanmu
.....

Emha Ainun Nadjib

Monday, February 04, 2008

You’re Beautiful

My life is brilliant.

My love is pure.
I saw an angel.
Of that I'm sure.
She smiled at me on the subway.
She was with another man.
But I won't lose no sleep on that,
'Cause I've got a plan.

You're beautiful. You're beautiful.
You're beautiful, it's true.
I saw your face in a crowded place,
And I don't know what to do,
'Cause Ill never be with you.

Yeah, she caught my eye,
As I walked on by.
She could see from my face that I was,
fucking high,
And I don't think that I'll see her again,
But we shared a moment that will last till the end.

You're beautiful. You're beautiful.
You're beautiful it's true
I saw your face in a crowded place,
And I don't know what to do,
You're beautiful, You're beautiful.
But it's time to face the truth
I will never be with you.

There must be an angel, with a smile on her face,
when she thought that I should be with you

You're beautiful. You're beautiful.
You're beautiful, it's true.
There must be an angel with a smile on her face,
When she thought up that I should be with you.
But it's time to face the truth,
I will never be with you.

melo mode ON

Friday, February 01, 2008

route add at Linux Box

Name

route - show / manipulate the IP routing table

Synopsis

route [-CFvnee]
route
[-v] [-A family] add [-net|-host] target [netmask Nm] [gw Gw] [metric N] [mss M] [window W] [irtt I] [reject] [mod] [dyn] [reinstate] [[dev] If]
route
[-v] [-A family] del [-net|-host] target [gw Gw] [netmask Nm] [metric N] [[dev] If]
route
[-V] [--version] [-h] [--help]

Description

Route manipulates the kernel's IP routing tables. Its primary use is to set up static routes to specific hosts or networks via an interface after it has been configured with the ifconfig(8) program.

When the add or del options are used, route modifies the routing tables. Without these options, route displays the current contents of the routing tables.

Options

-A family
use the specified address family (eg 'inet'; use 'route --help' for a full list).
-F
operate on the kernel's FIB (Forwarding Information Base) routing table. This is the default.
-C
operate on the kernel's routing cache.
-v
select verbose operation.
-n
show numerical addresses instead of trying to determine symbolic host names. This is useful if you are trying to determine why the route to your nameserver has vanished.
-e
use netstat(8)-format for displaying the routing table. -ee will generate a very long line with all parameters from the routing table.
del
delete a route.
add
add a new route.
target
the destination network or host. You can provide IP addresses in dotted decimal or host/network names.
-net
the target is a network.
-host
the target is a host.
netmask NM
when adding a network route, the netmask to be used.
gw GW
route packets via a gateway. NOTE: The specified gateway must be reachable first. This usually means that you have to set up a static route to the gateway beforehand. If you specify the address of one of your local interfaces, it will be used to decide about the interface to which the packets should be routed to. This is a BSDism compatibility hack.
metric M
set the metric field in the routing table (used by routing daemons) to M.
mss M
set the TCP Maximum Segment Size (MSS) for connections over this route to M bytes. The default is the device MTU minus headers, or a lower MTU when path mtu discovery occured. This setting can be used to force smaller TCP packets on the other end when path mtu discovery does not work (usually because of misconfigured firewalls that block ICMP Fragmentation Needed)
window W
set the TCP window size for connections over this route to W bytes. This is typically only used on AX.25 networks and with drivers unable to handle back to back frames.
irtt I
set the initial round trip time (irtt) for TCP connections over this route to I milliseconds (1-12000). This is typically only used on AX.25 networks. If omitted the RFC 1122 default of 300ms is used.
reject
install a blocking route, which will force a route lookup to fail. This is for example used to mask out networks before using the default route. This is NOT for firewalling.
mod, dyn, reinstate
install a dynamic or modified route. These flags are for diagnostic purposes, and are generally only set by routing daemons.
dev If
force the route to be associated with the specified device, as the kernel will otherwise try to determine the device on its own (by checking already existing routes and device specifications, and where the route is added to). In most normal networks you won't need this.

If dev If is the last option on the command line, the word dev may be omitted, as it's the default. Otherwise the order of the route modifiers (metric - netmask - gw - dev) doesn't matter.

Examples

route add -net 128.81.0.0 netmask 255.255.0.0 gw 128.89.0.254
add toute to netwotk 128.81.0.0

route
add -net 127.0.0.0

adds
the normal loopback entry, using netmask 255.0.0.0 (class A net, determined from the destination address) and associated with the "lo" device (assuming this device was prviously set up correctly with ifconfig(8)).
route add -net 192.56.76.0 netmask 255.255.255.0 dev eth0
adds a route to the network 192.56.76.x via "eth0". The Class C netmask modifier is not really necessary here because 192.* is a Class C IP address. The word "dev" can be omitted here.
route add default gw mango-gw
adds a default route (which will be used if no other route matches). All packets using this route will be gatewayed through "mango-gw". The device which will actually be used for that route depends on how we can reach "mango-gw" - the static route to "mango-gw" will have to be set up before.
route add ipx4 sl0
Adds the route to the "ipx4" host via the SLIP interface (assuming that "ipx4" is the SLIP host).
route add -net 192.57.66.0 netmask 255.255.255.0 gw ipx4
This command adds the net "192.57.66.x" to be gatewayed through the former route to the SLIP interface.
route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0
This is an obscure one documented so people know how to do it. This sets all of the class D (multicast) IP routes to go via "eth0". This is the correct normal configuration line with a multicasting kernel.
route add -net 10.0.0.0 netmask 255.0.0.0 reject
This installs a rejecting route for the private network "10.x.x.x."

Output

The output of the kernel routing table is organized in the following columns
Destination
The destination network or destination host.
Gateway
The gateway address or '*' if none set.
Genmask
The netmask for the destination net; '255.255.255.255' for a host destination and '0.0.0.0' for the default route.
Flags
Possible flags include
U (route is up)
H (target is a host)
G (use gateway)
R (reinstate route for dynamic routing)
D (dynamically installed by daemon or redirect)
M (modified from routing daemon or redirect)
A (installed by addrconf)
C (cache entry)
! (reject route)
Metric
The 'distance' to the target (usually counted in hops). It is not used by recent kernels, but may be needed by routing daemons.
Ref
Number of references to this route. (Not used in the Linux kernel.)
Use
Count of lookups for the route. Depending on the use of -F and -C this will be either route cache misses (-F) or hits (-C).
Iface
Interface to which packets for this route will be sent.
MSS
Default maximum segement size for TCP connections over this route.
Window
Default window size for TCP connections over this route.
irtt
Initial RTT (Round Trip Time). The kernel uses this to guess about the best TCP protocol parameters without waiting on (possibly slow) answers.
HH (cached only)
The number of ARP entries and cached routes that refer to the hardware header cache for the cached route. This will be -1 if a hardware address is not needed for the interface of the cached route (e.g. lo).
Arp (cached only)
Whether or not the hardware address for the cached route is up to date.

Files

/proc/net/ipv6_route
/proc/net/route
/proc/net/rt_cache

See Also

ifconfig(8), netstat(8), arp(8), rarp(8)

History

Route for Linux was originally written by Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org> and then modified by Johannes Stille and Linus Torvalds for pl15. Alan Cox added the mss and window options for Linux 1.1.22. irtt support and merged with netstat from Bernd Eckenfels.

Author

Currently maintained by Phil Blundell <Philip.Blundell@pobox.com>.