Difference between revisions of "RecycleBin"

From SME Server
Jump to navigationJump to search
(→‎Extras: add instructions to modify templates-custom.)
m (Text changes and reformmating)
Line 14: Line 14:
  
  
===Extras===
+
===Changing the recycle bin name===
To change recyclebin name you must to change this files
+
You can change the name of the recycle bin by making a copy of the template fragment into the templates-custom tree and making your modifications there.
 +
<ol></li><li>Create the proper folder structure:
  
  /etc/e-smith/templates/etc/smb.conf/10recyclebin
+
  mkdir -p /etc/e-smith/templates-custom/etc/smb.conf/ibays
/etc/e-smith/templates/etc/smb.conf/ibays/10recyclebin
 
  
Modifying this line: <br>
+
</li><li>Copy the template fragment to the template-custom tree
    $vfs->{recycle}->{repository} = "Recycle Bin";<br>
 
<br>
 
Where you change the "Recycle Bin" for something else. Eg. In Brazil would be "Lixeira"<br>
 
The SME way to do this is to create a custom template. Try to avoid change those files directly! <br>
 
  
To change the custom-template do this:
+
cp /etc/e-smith/templates/etc/smb.conf/ibays/10recyclebin /etc/e-smith/templates-custom/etc/smb.conf/ibays
  
* Create the proper folder structure:
+
</li><li>Use any editor to make your changes in the copied file
  
  mkdir -p /etc/e-smith/templates-custom/etc/smb.conf/ibays
+
  nano /etc/e-smith/templates-custom/etc/smb.conf/ibays/10recyclebin
 +
Modifying this line:
  
* Copy the template fragment to the template-custom tree
+
$vfs->{recycle}->{repository} = "Recycle Bin";
  
cp /etc/e-smith/templates/etc/smb.conf/ibays/10recyclebin /etc/e-smith/templates-custom/etc/smb.conf/ibays
+
to whatever you like for a name:
  
* Use any editor to make your changes in the copied file
+
$vfs->{recycle}->{repository} = "Add your name here";
  
vi /etc/e-smith/templates-custom/etc/smb.conf/ibays/10recyclebin
+
</li><li>Now let the server take the necessary actions to have the changes reflected for all ibays (replace <nowiki><ibayname></nowiki> with the ibayname:
Modifying this line: <br>
 
    $vfs->{recycle}->{repository} = "Recycle Bin";<br>
 
to
 
    $vfs->{recycle}->{repository} = "Lixeira";<br>
 
(or whatever name you like) and save your changes after finish making modifications (use ESC :wq on vi editor)
 
  
* Now let the server take the necessarry actions to have the changes reflected for the ibays
 
 
  signal-event ibay-modify <ibayname>
 
  signal-event ibay-modify <ibayname>
where <ibayname> is the ibay you´re changing to have a RecycleBin name different.<br>
+
</li></ol>
 
 
 
 
<br>
 
TIP: <br>
 
1) If your name has a DOT as first character, so it will be invisible! Eg: ".Lixeira"<br>
 
You could try by doing modification directly on /etc/e-smith/templates/etc/smb.conf/10recyclebin and if it works, change the template-custom.
 
<br><br>
 
2) I prefer this way because if I mess with something, I can just rebuild template using the signal-event stated above.
 
  
 +
{{Tip box|You can make the recycle bin hidden by adding a dot as a first character of the recycle bin name}}
 
----
 
----
 
[[Category: Howto]]
 
[[Category: Howto]]

Revision as of 13:11, 5 March 2008

Problem

Deleted files in ibays are lost forever.

Scenario

This has been a long known issue for network admins. Files stored on another computer/server. Accidentaly hit the DELETE key. Poof! Gone. Files aren't in the local Recycle bin on the local computer. This is especially frustrating for admins who map profile parts back to the server. The users desktop, documents, etc never find their way into the local recycle bin as the users expect.

Solution

Turn on the Recycle Bin.

db accounts setprop ibayname RecycleBin enabled
signal-event ibay-modify ibayname

An admin can now go and retrieve the files on the server.


Changing the recycle bin name

You can change the name of the recycle bin by making a copy of the template fragment into the templates-custom tree and making your modifications there.

  1. Create the proper folder structure: mkdir -p /etc/e-smith/templates-custom/etc/smb.conf/ibays
  2. Copy the template fragment to the template-custom tree cp /etc/e-smith/templates/etc/smb.conf/ibays/10recyclebin /etc/e-smith/templates-custom/etc/smb.conf/ibays
  3. Use any editor to make your changes in the copied file nano /etc/e-smith/templates-custom/etc/smb.conf/ibays/10recyclebin Modifying this line: $vfs->{recycle}->{repository} = "Recycle Bin"; to whatever you like for a name: $vfs->{recycle}->{repository} = "Add your name here";
  4. Now let the server take the necessary actions to have the changes reflected for all ibays (replace <ibayname> with the ibayname: signal-event ibay-modify <ibayname>


Information.png Tip:
You can make the recycle bin hidden by adding a dot as a first character of the recycle bin name