Monday 26 October 2009

samba, nmbd, NT_ error

SMB (server message block)
Is the protocol that can be used for file sharing / transport between computer.

CIFS (in windows) is basically SMB on windows.

NMBd is daemon for NetBIOS machine. In windows it is a "computer browser" service and NMB.

Computer browser service is responsible for updating the table for Netbios name of all machines and elect primary/master netbios server. This master server will be the number 1 priority of netbios client to get the updated table.

Command to see the list of all netbios machine in workgroup:
net view

This table can be completed with additional manually addes netbios name in lmhosts file of a netbios client.

NetBIOS
is protocol that was used for communication between PC's in a network.
It is using broadcast method and NetBIOS name in a "workgroup".
Workgroup is basically a group of computers in same "broadcast".
"broadcast" scope is basically a VLAN.

So if you have subnet mask 255.255.255.0 and your ip is for example between 172.16.3.1-254.
then your broadcast ip is 172.16.3.255.

You can try to ping that ip, which means it will broadcast ping to every pc's which has ip 172.16.3.1-254, the first one who response will reply our ping packet.

In linux you can try ping -b (broadcast option).


To start smb (samba):
sudo /etc/init.d/samba start


To test samba/smb.conf file:
testparm


To see what is shared in a pc:
smbclient -L pc -U username


To get to smb CLI, to get/put file(s):
smbclient //servername/sharedfodler/


If you get this:
Error NT_STATUS_CONNECTION_REFUSED => you must start the samba

NT_STATUS_LOGON_FAILURE => make sure you put username/password correctly
You can try this command:
sudo smbpasswd -a usertest
To add a new user for samba.


Yes, you are correct, samba user and unix OS are different.
However, by change some setting you can make smb to use pam_unix_os, so it will use username in OS.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>



SMB (server message block)
Adalah protokol yang dapat digunakan untuk file sharing / transportasi antara komputer.

CIFS (di jendela) pada dasarnya SMB di jendela.

NetBIOS
adalah protokol yang digunakan untuk komunikasi antar PC dalam sebuah jaringan.
Hal ini menggunakan metode penyiaran dan nama NetBIOS dalam "workgroup".
Workgroup pada dasarnya adalah sekelompok komputer di sama "siaran".
"siaran" ruang lingkup pada dasarnya adalah sebuah VLAN.

Jadi jika Anda memiliki subnet mask 255.255.255.0 dan ip adalah misalnya antara 172.16.3.1-254.
maka ip broadcast anda adalah 172.16.3.255.

Anda dapat mencoba untuk melakukan ping ke ip itu, yang berarti akan disiarkan ping ke setiap pc's yang memiliki ip 172.16.3.1-254, orang pertama yang respons akan menjawab paket ping kita.

Dalam linux Anda dapat mencoba ping-b (siaran pilihan).


Untuk memulai smb (samba):
sudo / etc / init.d / samba start


Untuk menguji samba / smb.conf file:
testparm


Untuk melihat apa yang dipakai bersama-sama dalam sebuah pc:
smbclient-L pc-U username


Untuk mencapai seseorang CLI, untuk mendapatkan / meletakkan file (s):
smbclient / / namaserver / sharedfodler /


Jika Anda mendapatkan ini:
Error NT_STATUS_CONNECTION_REFUSED => Anda harus memulai samba

NT_STATUS_LOGON_FAILURE => pastikan Anda memasukkan username / password benar
Anda dapat mencoba perintah ini:
sudo smbpasswd-a usertest
Untuk menambahkan pengguna baru untuk samba.


Ya, Anda benar, user dan unix samba OS adalah berbeda.
Namun, dengan mengubah beberapa pengaturan yang dapat membuat seseorang untuk menggunakan pam_unix_os, sehingga akan menggunakan username di OS.

Thursday 15 October 2009

unix : make a manual run process is not killed or dead after you close terminal?

First what is PID 1??

PID 1 is for /sbin/init (can be check by ps 1 in xterm)

it is the first and important process that manage your PC.

Now, when you open xterm and run a command for example gedit.
The gedit will be having parent PID of your xterm.
Hence when you close the xterm, the gedit will also be closed...

How to avoid this??

1. use nohup, with this way after you close the xterm, the gedit Parent PID will be the PID 1.
type : "nohup gedit" inside xterm.
2. create script, and inside that file put "gedit &", and run the script.

Note:
if you try to run it at background, like running "gedit &" in xterm directly (not in a script),
then you close the xterm, the gedit will be closed as well. Because the gedit Parent PID is still the xterm.


>>>>>>>>>>>>>>>>>>>


Pertama apa itu PID 1??

PID 1 adalah untuk /sbin/init (dapat diperiksa apa "id 1" di xterm, tulis "ps 1")
ini adalah proses pertama dan proses penting yang mengelola PC Anda.

Sekarang, ketika Anda membuka xterm dan menjalankan perintah misalnya gedit.
Yang gedit akan memiliki orangtua PID xterm Anda.
Karena itu bila Anda menutup xterm, yang gedit juga akan ditutup ...

Bagaimana menghindari hal ini??

1. menggunakan nohup, dengan cara ini setelah Anda menutup xterm, yang gedit akan Parent PID 1. ketik "nohup gedit" in xterm.
2. membuat file script, dan di dalam file itu tulis "gedit &", dan jalankan script.

Catatan:
jika Anda mencoba untuk menjalankannya di latar belakang, seperti menjalankan "gedit &" di xterm secara langsung (tidak dalam naskah),maka saat Anda menutup xterm, yang gedit akan ditutup juga. Karena Parent PID gedit masih xterm.

Windows XP SP3 - repair and recovery

I just had problem with it, i use the installer CD but somehow it does not have menu to recovery menu. I try to continue to setup, in order to get to the repair, but once again though the partion has already c:\windows, this cd does not recognise it and it then continued to formatting...

So, the only solution for repair/ recovery when your CD does not have that option, use F8 (press plenty of time) after the BIOS POST, so that you ll get the menu to do safe mode - last known good - etc...

if for a reason it doe not fix your problem, install another OS at second HD (add another HD to the PC) or add your HD of WinXP as slave to another PC.

So that you can play with the folders of the WinXP...

Notice :
:\windows\repair -> contain last good regedit hive
:\windows\system32\dllcache contain dlls that last exist before the currently ones in system32.

Ubuntu : nautilus problem : segmentation fault

What is nautilus??

nautilus is like explorer in windows.
It is responsible for GUI in x-windows gdm (gnome display manager).
Example if you try to open/explore my document folder by grafic (GUI), then the process name is nautilus.

If for a reason nautilus dead, then you can not see folders/files on your desktop.
You can type nautilus in command line to activate it.

If you get error like segmentation fault, try to remove the CD/DVD in your CD/DVD-ROM...

..................................


Apa nautilus??

nautilus adalah seperti explorer.exe di windows.
Hal ini bertanggung jawab untuk GUI di x-windows gdm (gnome display manager).
Contoh jika Anda mencoba untuk membuka / mengeksplorasi "my dokument"folder dengan grafic (GUI), maka nama proses itu nautilus.

Jika karena suatu alasan nautilus mati, maka Anda tidak dapat melihat folder / file di desktop Anda. Anda dapat mengetikkan di command line (xterm) : "nautilus" untuk mengaktifkannya.

Jika Anda mendapatkan error seperti segmentasi kesalahan, cobalah untuk memindahkan CD / DVD dalam CD / DVD-ROM ...

Tuesday 13 October 2009

UNix : zip, compress, gzip, and tar

You can use zip for a file, or zip -r for a directory..
ex : zip -r file.zip directory

compress and gzip is to compress a file.
ex: gzip filename
the result will be filename.gz (the filename will be gone)

gunzip -c filename.gz or zcat filename.gz
To cat the filename inside filename.gz wihtout uncompress it.

gunzip filename.gz will uncompress back to the filename.


Tar is to make archive, for example archive a folder to a file name .tar.
So that you can compress that .tar afterward.

to archive: tar -cf something.tar filename
to view inside the archived : tar -vtf something.tar
to unarchive : tar -xf something.tar

UNiX : less, more, vi(m), find, grep case insensitive

if using more, i have no idea.

if using less, just type -i (minus and i letter), and then /theword to start searching...

if using vi/vim, just type /\ctheword (/ is to start search, \c to ignore case sensitive for the whole word, theword is word that you wanna find) or just type :set ic (to ignore case)...

if using find, use find -iname, ex : find / -iname "*aaaa"
(only for find in some later version though)
workaround : find -name [Aa][Aa][Aa]

if using grep, type : grep -i.

------------------------------------------

Monday 12 October 2009

Debug, dump and Symbol on windows and UNIx-like OS

First, lets distinguished these 2 words, dump and debug.

Dump is for dump the memory or stack to a file to be debug-ed by a special software.

In unix, you can just run kill -3 program.exe to dump all the stack of a running process.
After that, if this is java, it will create heapdump file.
Which you can debug/analyze using heap analyzer tool - free.

For other process other than java, you can use gdb -gnu debugger- either to debug running process or to debug a "will be running" process.

Here is the link : http://www.ibm.com/developerworks/linux/library/l-debug/


In windows, you can run adplus -hang for running process or -crash for "will be running" process, and then debug it using windbg. Adplus basically based on cdb (commandline debugger), meanwhile windbg is GUI, and kd is kernel debugger. They are all in same installation packages,

Windbg can also be used to debug/analyze kernel dump, which if you set it before, then you can get kernel dump when you experience the blue screen. It also can be used for dump running process/service or a "will be running" service.

Here is the link : http://support.microsoft.com/kb/824344

Here is the link for example debugging .NET:
http://blogs.msdn.com/tess/archive/2006/01/11/511773.aspx

Here is the link about kd : http://windowsitpro.com/article/articleid/21217/using-the-windbg-debugging-tool.html

Note : In every thing you do make sure you are aware the switch of the command, sometime it is needed when you just want to get the stack and don't want to stop the process.


Now about Symbol, it is used to humanizer the binary code of exe or dll that you debug.
Some programming symbol are different with each other.
For windows, you can make this url as symbol source http://msdl.microsoft.com/download/symbols.

In unix, symbol can be mean the source code (the one that were compiled to get the binary file). Core means the dump file.
You can use : gdb sourcefilename corefile : to analyze the core file.
In unix the source code usually can be found in internet or request to the developer, because it is open source :)

Here is the link : http://support.microsoft.com/kb/311503



>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Pertama, mari kita membedakan 2 kata ini, dump dan debug.

Dump adalah untuk membuang memori atau tumpukan ke sebuah file yang akan debug-ed oleh software khusus.

Pada unix, Anda bisa jalankan membunuh -3 program.exe untuk membuang semua tumpukan proses yang berjalan.
Setelah itu, jika hal ini java, itu akan menciptakan file heapdump.
Anda dapat debug / menganalisis dengan menggunakan alat analisa tumpukan - gratis.

Di jendela, Anda dapat menjalankan adplus-menggantung untuk itu, dan kemudian men-debug dengan menggunakan WinDbg.
WinDbg juga dapat digunakan untuk debug / menganalisis kernel dump, yang jika Anda mengatur hal ini sebelumnya, maka anda bisa mendapatkan kernel dump bila Anda mengalami layar biru.

Wednesday 7 October 2009

GDM, KDM, XDM, XDMCP, VNC, rdesktop/tsclient, xnest

GDM vs KDM
This display manager not so much different, for gdm you put user name and then password at other screen, if kdm you use the same screen.

XDM vs GDM/KDM
XDM is x display manager, however gdm and kdm have builtin xdm inside it.
So if you have gdm, you only need to enable xdmcp (protocol of xdm), you dont need to install the xdm.

XDMCP
is a protocol, like RDP in windows.
You can use this protocol to get Xsession(s) of a Xserver.
the port is UDP 177.

VNC viewer and Server

VNC viewer is a client, it is just like remote control, it remotely controlling the current desktop. So you will disturb the one in front of the remote server. Can be installed on win or linux pc.

VNC server can work on windows server, so after you install this on windows server, you can use vncviewer on your PC to remotely controlling the windows server desktop.

similar product : remote admin (radmin)


Rdesktop/tsclient
installed on linux PC to connect to terminal server of windows server.

Xnest
is an add-on so you can have addition xdmcp in tsclient option.
which you can choose to get X session of a Xserver.

exceed/x-win32
Tools, installed on windows, to get xdmcp on Xserver.

on linux pc:
1. to be enable to be rdesktop-ed
system - preferences - remote desktop

2. to be enabled to be xdmcp-ed
sudo gdmsetup - remote - same as local

Note:

Other stuff is ssh -X, where you can get a remote GUI application at your PC.
example you can get firefox running on remote server, but displayed in your current PC.



>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

GDM vs KDM
DM ini tidak begitu jauh berbeda, untuk gdm Anda memasukkan nama pengguna dan password di layar lain, jika kdm Anda menggunakan layar yang sama.

XDM vs GDM / KDM
XDM adalah x display manager, namun memiliki kdm gdm dan xdm builtin di dalamnya.
Jadi jika Anda memiliki gdm, Anda hanya perlu mengaktifkan XDMCP (xdm protokol), Anda tidak perlu menginstal xdm.

XDMCP
adalah sebuah protokol, seperti RDP di jendela.
Anda dapat menggunakan protokol ini untuk mendapatkan xsession (s) dari Xserver.
dengan port UDP 177.

VNC viewer dan Server

VNC viewer adalah klien, hal itu sama seperti remote control, itu jauh mengendalikan desktop saat ini. Jadi, Anda akan mengganggu satu di depan server jauh.

VNC server dapat bekerja di windows server, jadi setelah Anda menginstal windows ini di server, Anda dapat menggunakan vncviewer pada PC untuk mengendalikan remote server jendela desktop.

produk serupa: remote admin (Radmin)


Rdesktop / tsclient
linux diinstal pada PC untuk melakukan koneksi ke server terminal server windows.

Xnest
adalah sebuah add-on sehingga Anda dapat memiliki XDMCP di tsclient Selain pilihan.
yang dapat anda pilih untuk mendapatkan sesi X dari Xserver.


di pc linux:
1. yang akan memungkinkan untuk menjadi rdesktop-ed
Sistem - Preferensi - remote desktop

2. harus diaktifkan untuk XDMCP-ed
sudo gdmsetup - remote - sama seperti lokal

Catatan:

Hal lain adalah ssh-X, di mana Anda bisa mendapatkan aplikasi GUI terpencil di PC Anda.
contoh anda bisa mendapatkan firefox berjalan di server jauh, tetapi ditampilkan dalam PC Anda saat ini.

Friday 2 October 2009

NT_STATUS_DUPLICATE_NAME and nmblookup

When you get this error after try to connecting to network file share from linux to other server, please do following:

1. From the target server, try access it locally for ex. \\localhost\sharedfolder.
If you cant, and u use windows,
Try: Windows - Run - ncpa.cpl.
In one of Network card, goes to properties - Click the File sharing.
If it is already checked, try to disable the window firewall (Control panel - windows firewall)
If still problem, check if your NetBIOS over TCP/IP enabled.

2. If everything is accessible over the target server, then lets check our PC. If you use linux, try nmblookup the targetservername. If it is not working then the problem is with the WINS server or netbios name resolution.

3. Go to target server, and execute ipconfig /flushdns (if windows and you use DHCP). In our pc, make sure you use smb://targetservername (not the alias).

Good luck :)

<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Ketika Anda mendapatkan error ini setelah mencoba untuk terhubung ke jaringan berbagi file dari linux ke server lain, silakan lakukan hal berikut:

1. Dari server target, coba akses secara lokal untuk contoh \\localhost\sharedfolder.
Jika Anda tak bisa, dan anda gunakan windows,
Cobalah: Windows - Run - ncpa.cpl.
Dalam salah satu kartu jaringan, pergi ke properti - Klik File sharing.
Jika sudah diperiksa, cobalah untuk menonaktifkan jendela firewall (Control panel - windows firewall)
Jika masih masalah, periksa jika Anda NetBIOS over TCP / IP diaktifkan.

2. Jika semuanya dapat diakses melalui server target, kemudian memungkinkan memeriksa PC. Jika Anda menggunakan linux, coba nmblookup yang targetservername. Jika tidak bekerja maka masalahnya adalah dengan WINS server atau resolusi nama netbios.

3. Pergi ke server target, dan jalankan ipconfig / flushdns (jika windows dan Anda menggunakan DHCP). Pc kami, pastikan Anda menggunakan smb: / / targetservername (bukan alias).

Good luck:)

Men love to play with kitchen utensils

how to get money on internet for totally free??

This is my first blog, and I hope you will like it...

There are many ways to get money over internet, lets do it in normal way and align with rule.

The easiest would be:
1. create blog and register them to adsense from google to put some link of advertisement, and some other webs which will pay your blog per word.

2. There is also some survey online which you can go to. And you ll get paid depends on how many survey you take.

I ll put the links to those website ASAP :)

ss_blog_claim=9015a87d125b47f39272bd44dea9825a



ss_blog_claim=9015a87d125b47f39272bd44dea9825a


Cara dapat uang dari internet termudah??

Ini adalah blog pertama saya, dan saya harap Anda akan menyukainya ...

Ada banyak cara untuk mendapatkan uang melalui internet, mari kita melakukannya dengan cara biasa dan sejajar dengan aturan.

Termudah adalah:
1. membuat blog dan mendaftarkan mereka untuk adsense dari google untuk menaruh beberapa link iklan, dan beberapa jaring yang akan membayar blog Anda per kata.

2. Ada juga beberapa survei online yang dapat Anda pergi ke. Dan Anda ll dibayar tergantung pada berapa banyak survei yang Anda ambil.

Aku akan meletakkan link ke situs mereka ASAP:)