Posts Tagged ‘Windows 7’
there are a few things that bug me about Windows 7, and one of them is that it no longer is obvious how to show my file extensions. I hate how the default on windows installs has been to hide file extensions. I like to know what it is I am looking at. Is it an executable, is it ogg or mp3, maybe avi or mpeg? Before I simply would change my preferences from the tool bar. Whell the simple tool bar I have become so accustome to is no longer the same. So, what to do?
Open Windows Explorer and click Organize at the top left and then select Folder Options. Now go to the View tab and there it is, looking much like it did in Windows XP. For whatever reason this was not readily evident to me and it might not be for others.
I recently hobbled together a computer from old parts i had laying around for a year or more. One of the things I decided to do with this Frankenstein was to use it as a file server. I had also upgraded my Windows partition from XP to Windows 7. The last time I tried SAMBA, was many years ago when I was still a green newbie to Linux and do not remember if I ever got it to work then. This time around things worked smoothly and this is how I did it.
sudo aptitude install samba
gpasswd -a user sambashare
smbpasswd -a user
sudo mkdir /home/samba/share
sudo mkdir /home/samba/share/profiles
sudo mkdir /home/samba/share/netlogon
sudo chgrp sambashare /home/samba/
sudo chgrp sambashare /home/samba/share
sudo chgrp sambashare /home/samba/netlogon
sudo chgrp sambashare /home/samba/profiles
sudo chmod 775 /home/samba
sudo chmod 775 /home/samba/share
sudo chmod 775 /home/samba/profiles
sudo chmod 775 /home/samba/netlogon
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.back
at the bottom of /samba/smb.conf add (as root):
[sambashare]
path = /home/samba/share
valid users = @sambashare
read list = @sambashare
write list = @sambashare
force group = sambashare
read only = No
create mask = 0774
directory mask = 0775
then start and stop the samba server:
sudo /etc/init.d/samba stop
sudo /etc/init.d/samba start
In Windows 7 open Windows Explorer and you should see your linux computers host name. clicking on it will prompt you to give the user name and pasword created above. Now you should have a blank folder called sambashare, try moving things in there. If you see the files show up on your linux box then everything worked.you will also see your user’s home directory but will not be allowed to write to it.
NOTE: this was done with Debian Squeeze, however the same processes should apply to Debian Lenny.




