1. The smile that I get from Danial and Irfan each day. No matter what happen, each time I see they smile, it will brighten my day.
2. To read a manuscript (for the latest novel) that I've got from Ahmad Patria Abdullah. The novel remind me the time when I'm still young. I can't go back to that time but the memories remain.
3. When I do tasks that nobody wanted and it success. I don't bother if people didn't care with what I do but I care when people don't acknowledge it succeed because of me.
4. When I finish some task ahead of schedule.
Simple Samba Configuration
This is an English translation for this article.
With the current Linux distro evolution that making things much simpler to install, installing Samba is easy. Very easy in fact. What you need to do is configuring Samba so, it can fit your requirement.
At my workplace, most people use Windows-based operating system. Most servers also use Windows-based operating system with the exception of DNS, DHCP, and email filtering system. We also have two open source servers that is mainly to host our website.
Because of that, some users need to access the machine using Netbios protocol (although there are much simpler method such as SFTP that is enable by default) to transfer file between their machine and the server.
These are the steps that I used that allow users to access their own home directory in the machine.
1. Edit samba configuration file. The file's name is smb.conf but sometimes it can be named as samba.conf. It is located most probably in /etc/smb.conf or /etc/samba/smb.conf or /etc/sysconfig/smb.conf. If you didn't find the file, use locate or find command.
2. At Global Settings in the configuration file, remove the comment tags for workgroup and hosts allow. Replace the workgroup with your local workgroup name. And limit the computer that can access your samba because with more desktop that can access your server, it will become much more vulnerable towards internal attack (such as worms, viruses, rootkit and other malicious applications).
workgroup = your_local_workgroup
hosts allow = 127. your.local.ip
3. At the Share Definitions, remove comment tags or add [homes] section like this
[homes]
comment = Home Directories
path = /home/%S
browseable = yes
writeable = yes
valid users = %S
4. Save smb.conf and restart Samba daemon
$ /etc/init.d/smb restart
5. Add a new user. The user must exist in your Linux system mean it exist in /etc/passwd. You will be prompted to insert a password. Please don't use the same password as the server login. :)
$ smbpasswd -a new_user
New SMB password:
Retype new SMB password:
Added user new_user.
6. Connect to the server by using a dekstop machine or at the localhost. Its better to use Windows desktop to test the connection. Some machine especially Vista need you to tweak some configuration in the Vista itself before it can connect to the Samba. If you plan to test it just using a commandline (to see it works or not), just run this
$ smbclient -L localhost -Unama_user_baru
passwd : masukkan_passwd_di_sini
7. Samba will display status that notify it works. Most of the time, this configuration will work. Trust me. ^_^
Happy Samba-ing
With the current Linux distro evolution that making things much simpler to install, installing Samba is easy. Very easy in fact. What you need to do is configuring Samba so, it can fit your requirement.
At my workplace, most people use Windows-based operating system. Most servers also use Windows-based operating system with the exception of DNS, DHCP, and email filtering system. We also have two open source servers that is mainly to host our website.
Because of that, some users need to access the machine using Netbios protocol (although there are much simpler method such as SFTP that is enable by default) to transfer file between their machine and the server.
These are the steps that I used that allow users to access their own home directory in the machine.
1. Edit samba configuration file. The file's name is smb.conf but sometimes it can be named as samba.conf. It is located most probably in /etc/smb.conf or /etc/samba/smb.conf or /etc/sysconfig/smb.conf. If you didn't find the file, use locate or find command.
2. At Global Settings in the configuration file, remove the comment tags for workgroup and hosts allow. Replace the workgroup with your local workgroup name. And limit the computer that can access your samba because with more desktop that can access your server, it will become much more vulnerable towards internal attack (such as worms, viruses, rootkit and other malicious applications).
workgroup = your_local_workgroup
hosts allow = 127. your.local.ip
3. At the Share Definitions, remove comment tags or add [homes] section like this
[homes]
comment = Home Directories
path = /home/%S
browseable = yes
writeable = yes
valid users = %S
4. Save smb.conf and restart Samba daemon
$ /etc/init.d/smb restart
5. Add a new user. The user must exist in your Linux system mean it exist in /etc/passwd. You will be prompted to insert a password. Please don't use the same password as the server login. :)
$ smbpasswd -a new_user
New SMB password:
Retype new SMB password:
Added user new_user.
6. Connect to the server by using a dekstop machine or at the localhost. Its better to use Windows desktop to test the connection. Some machine especially Vista need you to tweak some configuration in the Vista itself before it can connect to the Samba. If you plan to test it just using a commandline (to see it works or not), just run this
$ smbclient -L localhost -Unama_user_baru
passwd : masukkan_passwd_di_sini
7. Samba will display status that notify it works. Most of the time, this configuration will work. Trust me. ^_^
Happy Samba-ing
Secure investment
Want to have a very secure investment in the current economic uncertainty? Buy gold or gold-related-investment but I suggest and prefer for me to buy and store directly. Some gold coins that come to mind is the Gold Dinar program that is supported by Kelantan Government and Kijang Gold Coins release by Bank Negara. Or if you are afraid ask your local Maybank branch about gold saving account. The minimum requirement to open the account is equivalent to 5 gram of gold. If today gold price is 90/gram,you need to fork out RM450 to open the account.
Lets us buy gold and silver. Its a precious metal before, now and forever. Even Islam recognize the value of gold and silver.
Lets us buy gold and silver. Its a precious metal before, now and forever. Even Islam recognize the value of gold and silver.
Konfigurasi dan penyelenggaraan Samba
Artikel ni untuk aku rujuk di kala susah. ^_^
Untuk memasang Samba, cuma pasang menggunakan pakej yang telah disertakan bersama-sama Linux Distro. Kalau katakan versi dah lama, sila kemaskini (update) versi terkini menggunakan arahan/cara yang digunakan bersama distro tersebut. Contoh, yum-updates dan lain-lain.
Langkah-langkah agar pengguna dapat memasuki direktori peribadi yang ada di dalam pelayan Linux menggunakan protokol Netbios adalah seperti berikut :
1. Ubah fail smb.conf (lokasi biasanya /etc/samba/smb.conf atau /etc/smb.conf atau /etc/sysconfig/smb.conf bergantung pada distro yang anda gunakan).
2. Pada Global Settings, buangkan tanda komen untuk workgroup dan hosts allow.
workgroup = your_local_workgroup
hosts allow = 127. your.local.ip.address
3. Dalam bahagian Share Definitions, buang tanda komen atau tambahkan skema [homes].
[homes]
comment = Home Directories
path = /home/%S
browseable = yes
writeable = yes
valid users = %S
4. Simpan smb.conf dan hidupkan kembali (restart) daemon samba.
$ /etc/init.d/smb restart
5. Tambahkan pengguna baru
$ smbpasswd -a nama_user_baru
New SMB password:
Retype new SMB password:
Added user nama_user_baru.
6. Sambungkan kepada pelayan tersebut sama ada menggunakan localhost atau pelanggan yang berlainan. Jika menggunakan localhost gunakan
$ smbclient -L localhost -Unama_user_baru
passwd : masukkan_passwd_di_sini
7. Status yang ditunjukkan bermakna samba telah siap dikonfigurasi.
Untuk memasang Samba, cuma pasang menggunakan pakej yang telah disertakan bersama-sama Linux Distro. Kalau katakan versi dah lama, sila kemaskini (update) versi terkini menggunakan arahan/cara yang digunakan bersama distro tersebut. Contoh, yum-updates dan lain-lain.
Langkah-langkah agar pengguna dapat memasuki direktori peribadi yang ada di dalam pelayan Linux menggunakan protokol Netbios adalah seperti berikut :
1. Ubah fail smb.conf (lokasi biasanya /etc/samba/smb.conf atau /etc/smb.conf atau /etc/sysconfig/smb.conf bergantung pada distro yang anda gunakan).
2. Pada Global Settings, buangkan tanda komen untuk workgroup dan hosts allow.
workgroup = your_local_workgroup
hosts allow = 127. your.local.ip.address
3. Dalam bahagian Share Definitions, buang tanda komen atau tambahkan skema [homes].
[homes]
comment = Home Directories
path = /home/%S
browseable = yes
writeable = yes
valid users = %S
4. Simpan smb.conf dan hidupkan kembali (restart) daemon samba.
$ /etc/init.d/smb restart
5. Tambahkan pengguna baru
$ smbpasswd -a nama_user_baru
New SMB password:
Retype new SMB password:
Added user nama_user_baru.
6. Sambungkan kepada pelayan tersebut sama ada menggunakan localhost atau pelanggan yang berlainan. Jika menggunakan localhost gunakan
$ smbclient -L localhost -Unama_user_baru
passwd : masukkan_passwd_di_sini
7. Status yang ditunjukkan bermakna samba telah siap dikonfigurasi.
Dua-dua sakit
Dua-dua budak kecik tuh sakit. Start dengan Danial yang muntah-muntah banyak kali hari Ahad malam (7/2) lepas. Terasa fedup gak sebab hari Ahad dan Isnin tu Danial muntah dalam 6 kali. 12a.m sekali, 2 a.m sekali, 5a.m sekali, 8a.m sekali, 2p.m sekali dan 11p.m sekali. Nasib baik lah sekarang pakai tikar je. Tilam yang kena muntah sembur Febreeze je. Hari Isnin malam tuh decide Danial kena tido bilik lain. Tak larat nak tukar cadar. So, alas dengan comforter je. Mungkin sebab dah kerap muntah hari sblm tuh, Isnin dia muntah sket-sket je. Sebab kesian dia cam tak selera nak makan,maka pegi lah beli satay dengan nasi himpit untuk Danial. Selasa baru bawak pegi klinik sebab Isnin klinik panel cuti.
Hari Selasa mlm tuh pulak Irfan start sakit. Muntah banyak. Sekali dengan lendir-lendir keluar. Kesian gak kat budak kecik tuh. Esok paginya bawak pegi klinik panel. Dua hari berturut2 bwk anak-anak aku pegi klinik.
Start Ahad tu aku tido kejap2 je. Danial asyik nangis sebab tak selesa. Hari Selasa Irfan lak. Dr bagi ubat batuk yang cair kahak untuk dua2. Apa lagi, selesema la bebudak tuh. Lagi susah diaorag nak tido. Last kena buat, dua-dua pakai baju lengan panjang dan seluar panjang waktu nak tido. Waktu diaorg tido, sapu Vicks kat dada, belakang dan kedua-dua tapak kaki. Pastu sarung stoking dan selimut. Malam nih, kejap2 je diaorg batuk. Irfan je batuk kerap. Itu pun senyap dah lepas sapu Vicks.
Ok lah. Dah dekat 3 pagi.Nak tido.
Hari Selasa mlm tuh pulak Irfan start sakit. Muntah banyak. Sekali dengan lendir-lendir keluar. Kesian gak kat budak kecik tuh. Esok paginya bawak pegi klinik panel. Dua hari berturut2 bwk anak-anak aku pegi klinik.
Start Ahad tu aku tido kejap2 je. Danial asyik nangis sebab tak selesa. Hari Selasa Irfan lak. Dr bagi ubat batuk yang cair kahak untuk dua2. Apa lagi, selesema la bebudak tuh. Lagi susah diaorag nak tido. Last kena buat, dua-dua pakai baju lengan panjang dan seluar panjang waktu nak tido. Waktu diaorg tido, sapu Vicks kat dada, belakang dan kedua-dua tapak kaki. Pastu sarung stoking dan selimut. Malam nih, kejap2 je diaorg batuk. Irfan je batuk kerap. Itu pun senyap dah lepas sapu Vicks.
Ok lah. Dah dekat 3 pagi.Nak tido.
Subscribe to:
Posts (Atom)