LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to build a home web server with ftp, file sharing, and some other stuff? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-build-a-home-web-server-with-ftp-file-sharing-and-some-other-stuff-685125/)

lancemac 11-21-2008 04:48 AM

How to build a home web server with ftp, file sharing, and some other stuff?
 
Hi guys
My project is to create a web server that will contain a web based proxy(to bypass censorship), ftp so i can access my file where every i am, act as a file host on my LAN, host a web based msn client and a web based torrent client.

I am using a old IBM thinkpad T21 and i have Slackware installed. I tried ubuntu but there are to many problems installing it.

My first problem is setting up file sharing. iv tried so many times with different configurations in Samba but i still cant get it to work.

I also dont wont this server on all the time. So i would like to put a wake on lan script on a different website that will turn on my server when i want it on. i know this is posible but i just dont know how.

I will be able to set up the rest i think.
thanks

rylan76 11-21-2008 07:38 AM

Don't know about the rest, but this below is the simplest way I have found of setting up samba to allow me to access my Windows share from other systems while the box is in Linux. This should allow for reading and writing files, creating directories over a SMB connection, etc.

Put this file in /etc/samba AND /usr/local/samba/lib:

smb.conf follows:
---
[global]

netbios name = development
workgroup = WORKGROUP
security = share
log file = /var/log/samba.log
log level = 1
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=16384 SO_SNDBUF=16384
wins support = yes
domain logons = no
logon drive = f:
logon home = \\stefan\%U
os level = 99
preferred master = yes
local master = yes
hosts allow = any
encrypt passwords = yes
browseable = yes
lanman auth = yes
lm announce = yes

[shared]
path = /mnt/win/shared
guest ok = yes
writeable = yes
create mode = 0666
directory mode = 0777
browseable = yes
public = yes
---

then kill and restart smbd and nmbd

Hopes this helps....


All times are GMT -5. The time now is 06:06 AM.