What are you using for a file server?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
metron9
Posts: 45
Joined: Sat Sep 08, 2012 7:18 am
Location: Minnesota U.S.A.

What are you using for a file server?

Post by metron9 »

I have been using Novell for the past 20 years with zero problems.

All of the old code compiled with clipper and linked with exospace works fine when creating index files
The old code will not function using shared folders.
I have also tried using a Synology File server http://www.synology.com/us/index.php
Even the new stuff I write using HMG has index errors when using mapped drives on the Synology drive.
I am able to run the new compiled programs in HMG using mapped folders on my local computer
But I would expect there will be problems if using a shared folder from other computers.

Should I just stay with Novell or is there another easy server setup I can put in to serve about 10 clients?
What do you use for a server for programs you write using HMG?

Perhaps when indexing files I should create the indexes on the local computer and reindex them every time?
But that wont work either as other users are accessing the same files over the network.

Getting frustrated.

P.S. I still am unable to get a novell client to run on a new Windows 7 Professional setup.
Perhaps I am stuck with novell and windows xp... for ever... and ever...
User avatar
mol
Posts: 3825
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: What are you using for a file server?

Post by mol »

I've used linux (ubuntu server) and samba for a few of my clients. All worked excellent without any problems.
User avatar
metron9
Posts: 45
Joined: Sat Sep 08, 2012 7:18 am
Location: Minnesota U.S.A.

Re: What are you using for a file server?

Post by metron9 »

I have an Ubuntu box set up.

What do I need to install to create a server.

When the server is set up do I just map drives to it from a windows 7 box?

Right now I do have a windows server 2003 box and I can run the HMG programs when I
map the drives like this

I right click on my computer
Select map drive
I put \\server08\Drive_I in the connection box

It maps the drive letter I: to the directory I create on the server.

Is this similar to what an ubuntu server will do?

EDIT....
Ok I did some reading.
I have ubuntu 10.04 I installed samba

The info i am reading says to make changes to the smb.conf file
Searching the file system there are many smb.conf files
I see you use sudo restsrt smbd and restsrt nmbd but what smb.conf file does it use?

There are files smb.conf.dapper and .etch and .gutsy in the usr\share\samba directory.

A little how it works overview would be nice, the details of the how too document I am reading skips this background on how it really works.
Last edited by metron9 on Wed Oct 03, 2012 5:58 pm, edited 1 time in total.
User avatar
mol
Posts: 3825
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: What are you using for a file server?

Post by mol »

If you install Samba on linux (e.g. ubuntu) - it works as windows server.
You must declare shared folders in samba config file - smb.conf
You can set passwords and users which are enabled to use data on server.
Really simple and costless.
User avatar
metron9
Posts: 45
Joined: Sat Sep 08, 2012 7:18 am
Location: Minnesota U.S.A.

Re: What are you using for a file server?

Post by metron9 »

Ok I started the server, now i should be able to browse to the server the how too guide says but does not actually explain how to browse to it.

Is there a IP address the server has, how do I find that. Then I should be able to map a drive to it.
User avatar
mol
Posts: 3825
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: What are you using for a file server?

Post by mol »

what a server did you installed? If linux, you should be asked for network configuration during installation
User avatar
apais
Posts: 441
Joined: Fri Aug 01, 2008 6:03 pm
DBs Used: DBF, Leto, MariaDB, SQLite
Location: uruguay
Contact:

Re: What are you using for a file server?

Post by apais »

Are you willing to dedicate a PC for file sharing ?

In www.turnkeylinux.org ther is an ubuntu-based samba server ready to install and use.
Make sure to turn off oplocks on every samba server you install.
They are configurable tru a very atractive and simple web interface (webmin)

I have this kind of server in clients running for years now

HTH
Angel
Angel Pais
Web Apps consultant/architect/developer.
User avatar
metron9
Posts: 45
Joined: Sat Sep 08, 2012 7:18 am
Location: Minnesota U.S.A.

Re: What are you using for a file server?

Post by metron9 »

The ubuntu I installed is 10.04 and i installed SAMBA. I bought a book today on Ubuntu that has SAMBA server in a chapter.

i will take a look at the link you provide apais, thank you.

The IT guy that I met with backi in July WAS going to set up a samba server but never came through so i am
doing it myself. Initially i thought a simple network drive could serve files, but i was not aware they could not
deal with index files and file locking issues. the link apais provides I think is what I need.

Yes I will buy a brand new core i7 based machine to serve me well into the future.

I did test indexing and file locking on the microsoft server2003 server today and it works well, i do hear the 2008 version
has the locking problems though and i am glad to hear the linux server ubuntu based server deals with that problem head on.
User avatar
metron9
Posts: 45
Joined: Sat Sep 08, 2012 7:18 am
Location: Minnesota U.S.A.

Re: What are you using for a file server?

Post by metron9 »

Fantastic!

Here is a screen full of windows. I downloaded and installed a turnkey file server in my windows 7 virtual box.

I muttled about for a while and actually connected a drive letter to a share folder in the samba server!

Lots of screens here, pretty complicated for a non server educated guy so i will be looking for documentation on how each of the screens work. For example The main screen you see when browsing to the ip address shows share names, I created ccsrv1 with a directory \drivei I can see that directory ccsrv1 from my windows7 desktop but I GET AN ERROR CONNECTING TO IT> I can connect to root and storage, the two default folders it created.

I don't see a place to disable the oplocks yet. i am going to test some database access and indexing for tonight but I am very happy i have come this far. I also created my first .ISO CD of the turnkey file server and i will install that on a real machine tomorrow. This stuff is getting to be more exciting than the original computers I started with 30 years ago.

Anything anyone wants to post up here on How To will be very welcome. there must be a way to slow the clock down on my wall because it seems it is always past my bedtime, never a long enough day even when getting up 20 hours ago.
Attachments
server.png
server.png (368.43 KiB) Viewed 4960 times
User avatar
mol
Posts: 3825
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: What are you using for a file server?

Post by mol »

I put here smb.conf from one of my client:

Code: Select all

[global]
	server string = Serwer w POLIMER II ver.2011.11.08
	netbios name = fileserver
	workgroup = polimer
	log file = /var/log/samba/log.%m
	max log size = 50
	socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 IPTOS_LOWDELAY
	dos charset = cp852
	unix charset = ISO8859-2
	mangling method = hash
	;client code page = 852
	;character set = ISO8859-2
	;dns proxy = NO
	guest ok = yes
	browseable = yes
	client lanman auth = yes
	Encrypt passwords = yes
	local master = yes
	preferred master = yes
	os level = 33
	wins support = yes
	wins proxy = no
	dns proxy = no
	domain master = yes
	domain logons = yes
	max ttl = 10800
	max wins ttl = 36000
	min wins ttl = 18000
	;password server = *
	;passdb backend = tdbsam
	null passwords = yes
	lanman auth = yes
	printing = cups
	printcap name = cups
	load printers = yes


[netlogon]
	comment = Network Logon Service
	path = /home/samba/netlogon
	guest ok = yes
	writable = no
	share modes = no

[homes]
	comment = User home folders
	read only = no
	Browseable =yes 

[tmp] 
	path=/tmp
	read only = no
	writeable=yes
	create mask= 0777
	force directory mode = 0777
	guest ok = yes

[c]
	path = /home/centrala
	browseable = yes
	writeable = yes
	force group = polimer
	read only = no
	create mask = 0777
	force security mode = 0777
	force directory mode = 0777
	force directory security mode = 0777
	guest ok = yes
	blocking locks = yes
	locking = Yes
	OPlocks = no
	level2 oplocks = no
	oplock contention limit = 20
	posix locking = no
	dos filetimes = yes

[printers]
	comment = Drukarki
	path = /var/spool/samba
	browseable = yes
	printable = yes
	writable = yes
	guest ok = yes

[lj2100]
	comment = LaserJet 2100
	printable = yes
	browseable = yes
	public = yes
	path = /var/spool/samba
	guest ok = yes
	print admin = root

Post Reply