Tuesday, December 14, 2010

Time for Foss.in

Today I’m very excited to travel back to Bangalore. Time for Foss.in from tomorrow onwards. This time few interesting topics by extraordinary persons. So lemme check how it goes.

As of now I’m not sure how many folks are coming from Wipro. am the one from Wipro Hyderabad travelling for FOSS Conference.

Travelling in one of my favorite trains GARIBH Rath (being a Garibh, I have to choose this) :-). I am gonna spend this weekend with my Bangalore buddies.

I’ll update more once I reach there.

Monday, December 13, 2010

samba conf

After a long gap I got a requirement to configure samba on Linux Machine.
Here is the generic and very easy to use configuration file.


[root@localhost ~]# cat /etc/samba/smb.conf
# smb.conf is the main Samba configuration file.
[global]
workgroup = TUX-NET
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/
[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775
[root@localhost ~]#
create a user
[root@localhost ~]# useradd naresh
set the password for the user
[root@localhost ~]# /usr/bin/smbpasswd -a naresh
New SMB password:
Retype new SMB password:
Added user naresh.

[root@localhost ~]#
Now the user is added to samba and password is set.
Start the samba service.

[root@localhost ~]# /etc/init.d/smb start
Starting SMB services:
Starting NMB services:
make sure that Samba service is running as daemon process.
[root@localhost ~]# ps ax | grep mbd
2289 ? Ss 0:05 nmbd -D
4505 ? Ss 0:00 smbd -D

Now you can access Linux file system from windows by doing
start->run
\\10.10.10.10

Enter the user name and password and access your Linux file system as windows file system. Every user can access this own home directory. Of,course root can access all the file system.

you may map remote directory in to local drive. follow the steps

Mycomputer-> Tools->MapNetworkDrive->
Driver: Z:
folder:\\10.10.10.10\naresh

If you find any issues let me know.

Wednesday, December 8, 2010

Awesome Climate@HYD

very chilled,
Today is very cold weather in Hyderabad and Drizzling in the evening at my office Gachibowli.

Finally I have discovered that winter is in :-) hehehehe.
I was reminding my winter days at Bangalore. Basically, Bangalore is breezy city, imaging what would be the situation in winter. I was wearing jacket every day and going to office on my bike with full speed, having “gharam chai” at office with Teammates in that chilled atmosphere. Coming back to room in late night with shivering it was superb timing. Never comes back those days.

In this romantic weather, spending time with loved one is the real meaning of awesome.