Tuesday, September 21, 2010

A simple smb config in ubuntu

smb.conf

[global]
; General server settings
netbios name = YOUR_HOSTNAME
server string =
workgroup = YOUR_WORKGROUP
announce version = 5.0
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192

passdb backend = tdbsam
security = user
null passwords = true
username map = /etc/samba/smbusers
name resolve order = hosts wins bcast

wins support = yes

printing = CUPS
printcap name = CUPS

syslog = 1
syslog only = yes

; NOTE: If you need access to the user home directories uncomment the
; lines below and adjust the settings to your hearts content.
;[homes]
;valid users = %S
;create mode = 0600
;directory mode = 0755
;browseable = no
;read only = no
;veto files = /*.{*}/.*/mail/bin/

; NOTE: Only needed if you run samba as a primary domain controller.
; Not needed as this config doesn't cover that matter.
;[netlogon]
;path = /var/lib/samba/netlogon
;admin users = Administrator
;valid users = %U
;read only = no

; NOTE: Again - only needed if you're running a primary domain controller.
;[Profiles]
;path = /var/lib/samba/profiles
;valid users = %U
;create mode = 0600
;directory mode = 0700
;writeable = yes
;browseable = no

; NOTE: Inside this place you may build a printer driver repository for
; Windows - I'll cover this topic in another HOWTO.
[print$]
path = /var/lib/samba/printers
browseable = yes
guest ok = yes
read only = yes
write list = root
create mask = 0664
directory mask = 0775

[printers]
path = /tmp
printable = yes
guest ok = yes
browseable = no

; Uncomment if you need to share your CD-/DVD-ROM Drive
;[DVD-ROM Drive]
;path = /media/cdrom
;browseable = yes
;read only = yes
;guest ok = yes

[MyFiles]
path = /media/samba/
browseable = yes
read only = no
guest ok = no
create mask = 0644
directory mask = 0755
force user = YOUR_USERNAME
force group = YOUR_USERGROUP

- Thanks to Stormbringer from ubuntu comunity

Sunday, June 27, 2010

Sunday at NJ

I'm now in NJ, Church is to far from here (I'm in our staff house) no means of transpo except car so I did not hear mass may be this sat or sun. I went to walmart (thanks to Bong my roommate for driving me) to buy some prepaid sim (t-mobile) by the way you cannot buy just the sim it should be with the phone and activating your sim will go to a process its either you call the customer service or log in to there web site (http://www.t-mobile.com/shop/plans/activateprepaid.aspx?WT.mc_n=Prepaid_Activate&WT.mc_t=Other) and fill up some questionnaire same with there customer support and thats the time your sim will be activated and you will know your cell number. They did not print the number at the back of the sim card for security reason. I bought some hygiene stuff like soap tooth paste I bought the big size cause it save if you big in big size. Below is a photo of my room.




thats it for now..

Tuesday, June 1, 2010

Enable telnet service on HP-UX

check if there is an entry at /etc/inetd.conf
telnet stream tcp nowait root /usr/lbin/telnetd telnetd

-comment it out, then

run the command "inetd -c"

and you can verify whether the telnet is running by the command
"netstat -an | grep 23"

if there is any line is there in the output like
"tcp 0 0 *.23 *.* LISTEN"

means telnet is running.

Sunday, May 30, 2010

Verify SAN Disk

Luxadm is an utility, which discovers FC devices (luxadm probe).
# luxadm probe
No Network Array enclosures found in /dev/es

Found Fibre Channel device(s):
Node WWN:200600a0b829a7a0 Device Type:Disk device
Logical Path:/dev/rdsk/c4t600A0B800029A7A000000DC747A8168Ad0s2

I then run a luxadm on the device. Below you can see that I do indeed have two paths to the device.
1 controller = one path, 2 controllers = 2 paths

# luxadm display /dev/rdsk/c4t600A0B800029A7A000000DC747A8168Ad0s2
DEVICE PROPERTIES for disk: /dev/rdsk/c4t600A0B800029A7A000000DC747A8168Ad0s2
Vendor: SUN
Product ID: CSM200_R
Revision: 0619
Serial Num: SG71009283
Unformatted capacity: 12288.000 MBytes
Write Cache: Enabled
Read Cache: Enabled
Minimum prefetch: 0x1
Maximum prefetch: 0x1
Device Type: Disk device
Path(s):

/dev/rdsk/c4t600A0B800029A7A000000DC747A8168Ad0s2
/devices/scsi_vhci/ssd@g600a0b800029a7a000000dc747a8168a:c,raw
Controller /devices/pci@1f,4000/SUNW,qlc@5,1/fp@0,0
Device Address 203700a0b829a7a0,1
Host controller port WWN 210100e08bb370ab
Class secondary
State STANDBY
Controller /devices/pci@1f,4000/SUNW,qlc@5/fp@0,0
Device Address 203600a0b829a7a0,1
Host controller port WWN 210000e08b9370ab
Class primary
State ONLINE

-Check the state is online

for more details got to http://devnull.typepad.com/devnull/

Sunday, March 28, 2010

Money JARS that I'm practicing

I been attending CA2020 its not the usual IT community I been attending like plug,ubuntu-ph,etc its a community of business minded people and they share how to become financially free I learn one cool stuff from them the money jar which I'm practicing. Below how it works

Short description of each one.

> Necessity Account (NEC - 55%): This account is for managing your everyday expenses and bills. This would include things like your rent, mortgage, utilities, bills, taxes, food, clothes, etc. Basically it includes anything that you need to live, the necessities.

> Financial Freedom Account (FFA - 10%):The money that you put into this jar is used for investments and building your passive income streams. You never spend this money. The only time you would spend this money is once you become financially free. Even then you would only spend the returns on your investment. Never spend the principal or else you’ll go broke!

> Education Account (EDU - 10%): Money in this jar is meant to further your education and personal growth. An investment in yourself is a great way to use your money.

>Long Term Saving for Spending Account (LTSS - 10%): The money in this jar is for the bigger nice to have purchases.

> Play Account (PLAY - 10%):PLAY money is spent every month on purchases you wouldn’t normally make. The purpose of this jar is to nurture yourself. You could purchase an expensive bottle of wine at dinner, get a massage or go on a weekend getaway. Play can be anything your heart desires.

> Give Account (GIVE - 5%): The money in this account is for giving away.When you give your money or time you’re sending a sign of abundance to the Universe. You’re telling the Universe that you have plenty of everything, you’re abundant. Giving signals abundance. This will magnetically attract more abundance to you.

How the JARS Work

Thursday, February 11, 2010

Test web server is up

Finally I got my test web server up using dyndns, they have mature and more user friendly or its just me (lol!) anyway I'll be playing with this for a couple of mons. and test some apps. url myturf.homelinux.org

Sunday, January 3, 2010

Happy New Year!

I'll try to post more blogs this year, been busy with Facebook.hehehe