forked from jamiepg1/nautilus-share
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
112 lines (85 loc) · 3.2 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
====Compilation from sources====
* You need the following dependencies:
** gnome nautilus 2.10
** libglade
** gtk+
** libanautilus-extension1a
* The common INSTALL procedure as root:
<pre>
./configure --prefix=/usr
make
make install
</pre>
* The common UNISTALL procedure as root:
<pre>
make uninstall
</pre>
<Mantainer>
autoreconf --install --force
intltoolize --force
autoreconf
./configure --disable-nls
make
sudo make install
Para Actualizar plantilla de idioma
cd po
make update-po
</Mantainer>
All the instructions are available here:
http://gentoo.ovibes.net/nautilus-share/
The following is a quick rip from the wiki.
===Source code (0.7.x only)===
* Version 0.7 require samba 3.0.23, you need to configure samba to work with "net usershare"
** [http://gentoo.ovibes.net/nautilus-share/nautilus-share-0.7.0.tar.gz nautilus-share-0.7.0.tar.gz].
* Here are the info from the samba's[http://samba.org/samba/docs/man/manpages-3/net.8.html net] command to setup '''usershare'''
<pre>
USERSHARE
Starting with version 3.0.23, a Samba server now supports the ability
for non-root users to add user define shares to be exported using the
"net usershare" commands.
To set this up, first set up your smb.conf by adding to the [global]
section : usershare path = /usr/local/samba/lib/usershares Next create
the directory /usr/local/samba/lib/usershares, change the owner to
root and set the group owner to the UNIX group who should have the
ability to create usershares, for example a group called "serverops".
Set the permissions on /usr/local/samba/lib/usershares to 01770.
(Owner and group all access, no access for others, plus the sticky
bit, which means that a file in that directory can be renamed or
deleted only by the owner of the file). Finally, tell smbd how
many usershares you will allow by adding to the [global] section
of smb.conf a line such as : usershare max shares = 100. To
allow 100 usershare definitions. Now, members of the UNIX group
"serverops" can create user defined shares on demand using the
commands below.
The usershare commands are:
net usershare add sharename path [comment] [acl] [guest_ok=[y|n]] - to add or change a user defined share.
net usershare delete sharename - to delete a user defined share.
net usershare info [-l|--long] [wildcard sharename] - to print info about a user defined share.
net usershare list [-l|--long] [wildcard sharename] - to list user defined shares.
</pre>
====Setup and configuration (apply to Ubuntu Feisty and Gutsy)====
* A quick and easy wait to have it running (must be done as root):
<pre>
export USERSHARES_DIR="/var/lib/samba/usershare"
export USERSHARES_GROUP="samba"
mkdir -p ${USERSHARES_DIR}
groupadd ${USERSHARES_GROUP}
chown root:${USERSHARES_GROUP} ${USERSHARES_DIR}
chmod 01770 ${USERSHARES_DIR}
</pre>
* use the following '''/etc/samba/smb.conf''':
<pre>
;/etc/samba/smb.conf
[global]
workgroup = WORKGROUP ; you can change to your own workgroup
security = share
usershare path = /var/lib/samba/usershare
usershare max shares = 100
usershare allow guests = yes
usershare owner only = yes
</pre>
* Add the samba group to your user (replace your_username by your login):
<pre>
usermod -a -G ${USERSHARES_GROUP} your_username
</pre>
* Logout and login