Skip to content
Archiv der Artikel die von erstellt wurden.

Synology DiskStation autoindex Multimedia files by mediaserver

NAS> cat /etc/rc.local mount –bind /volume1/Multimedia/MP3 /volume1/music mount –bind /volume1/Multimedia/video /volume1/video mount –bind /volume1/Multimedia/Bilder /volume1/photo chmod 755 /etc/rc.local Thanks to Wim http://dev.eek.be/2010/01/change-folders-for-synology-media-server/ to do: echo repair > /sys/block/md2/md/sync_action

Synoindex Synology DS410

use this with SSH to add files to your Mediaserverindex.   NAS> synoindex Copyright (c) 2003-2011 Synology Inc. All rights reserved. usage: Add:    synoindex -a filename Delete: synoindex -d filename Add folder:    synoindex -A folder Delete folder: synoindex -D folder Rename/move file/folder:    synoindex -N newfullpath oldfullpath Update Photo Images:        synoindex -U photo Execute file index: [...]

Schon mal “Desktop anzeigen” verlegt?

C:\Dokumente und Einstellungen\UserName\Anwendungsdaten\Microsoft\Internet Explorer\Quick Launch Datei erzeugen namens “Desktop anzeigen.scf” Inhalt: [Shell] Command=2 IconFile=explorer.exe,3 [Taskbar] Command=ToggleDesktop   …und wieda da

Catch all network traffic except ssh with tcpdump

tcpdump -p -s0 -w tcpdump_file.cap port not 22

copy backup ntds.dit Active Directory

If you want to copy / backup Active Directory Information do the following: (tested on Server 2008) Stop Active Directory Domain Services cmd.exe ntdsutil –> Activate Instance NTDS –> files –> compact to c:\horst (temp Folder) now U have a copy of your AD Information in C:\horst\ntds.dit Now, say you backup your AD Data every [...]

Squid Proxy Cache mit Einbindung Windows AD

Der folgende Text wurde Quick&Dirty aus Word eingefügt, daher gibt es noch ein “hübscheres” PDF ngud.de – Squid Proxy Cache mit Einbindung Windows AD_anon Verwendete Software Debian Lenny 5.0.6 Linux 2.6.26-2-686 #1 SMP Mon Aug 30 07:01:57 UTC 2010 i686 GNU/Linux Squid 2.7.STABLE3 Samba 3.2.5-41 Kerberos krb5-config 1.22 / krb5-user 1.6.dfsg.4 Winbind 3.2.5-41 Für das [...]

Powershell: read eventlogs from remote servers and send them as mail

with the help of the Microsoft Community here is a script which reads the eventlogs from multiple Servers and finally sends the output with the help of the Send-MailMessage Cmdlet (Powershell v 2.0) It has 2 forech () Sections because it should go server by server. $meldungen = @() $compName = $("server1", "server2") $Logs =$("System", [...]

Copy directories depending on LastWriteTime with Powershell

This is my first PowerShell Script, Comments welcome. Thanks to Google and all the Scripting Gods out there The intention of this Powershell Script is not to know what it has to copy, the only filter is in “$dirs = Get-ChildItem $Quelle -filter erp* | % {$_.fullname}“. I filter for erp as the first three [...]

Tagesdatum in Batchdatei

So, damit ich es nicht schon wieder vergesse jetzt mal als Blog. Lösung für ein Tagesdatum in einer Batchdatei FOR /F “tokens=1-3 delims=.” %%J IN (“%date%”) DO SET “Tagesdatum=%%L-%%K-%%J” echo %Tagesdatum%     have a nice day (-:

create a cheap ssl certificate

Run the following command to create server.key and server.crt files for your apache $ openssl req -new -x509 -nodes -out /path/to/server.crt -keyout /path/to/server.key -days 3650 -day 3650 will make that certificate 10 years, should be enough These can be used as follows in your /etc/apache2/sites-enabled/website.conf file: SSLCertificateFile    /path/to/server.crt SSLCertificateKeyFile /path/to/server.key Remember to chmod them.