{"id":5,"date":"2013-03-09T00:54:44","date_gmt":"2013-03-09T00:54:44","guid":{"rendered":"https:\/\/notiz.comanet.xyz\/?p=5"},"modified":"2019-03-03T19:42:33","modified_gmt":"2019-03-03T18:42:33","slug":"linux-programi","status":"publish","type":"post","link":"https:\/\/notiz.comanet.xyz\/?p=5","title":{"rendered":"Linux Programi"},"content":{"rendered":"<h2> \t<span class=\"mw-headline\" id=\"Webmin\">Webmin <\/span><\/h2>\n<p> \tA web-based administration interface for Unix systems.<\/p>\n<p> \tA web-based administration interface for Unix systems. Using Webmin you can configure DNS, Samba, NFS, local\/remote filesystems and more using your web browser.After installation, enter the URL <a class=\"external free\" href=\"http:\/\/localhost:10000\/\" rel=\"nofollow\">http:\/\/localhost:10000\/<\/a> into your browser and login as root with your root password.<\/p>\n<ul>\n<li> \t\tU Suse linuxu ga nema nego mora se skinuti sa Weba <a class=\"external free\" href=\"http:\/\/www.webmin.com\/\" rel=\"nofollow\">http:\/\/www.webmin.com\/<\/a><\/li>\n<li> \t\tU Yast\/systemservice(runlevel) pokrenuti ga da starta zajedno sa linuxsom<\/li>\n<li> \t\tInstalirat Dodatke &#8211; PureFTPD<\/li>\n<\/ul>\n<p> \t&nbsp;<\/p>\n<table border=\"1\" class=\"wikitable\">\n<tbody>\n<tr>\n<th> \t\t\t\tDirectory to backup<\/th>\n<th> \t\t\t\tFilesystem<\/th>\n<th> \t\t\t\tBackup to<\/th>\n<th> \t\t\t\tScheduled?<\/th>\n<th> \t\t\t\tAt times<\/th>\n<th> \t\t\t\tAction<\/th>\n<\/tr>\n<tr align=\"left\">\n<td> \t\t\t\t\/etc<\/td>\n<td> \t\t\t\tTAR<\/td>\n<td> \t\t\t\t\/root\/backup\/etc.tar.gz<\/td>\n<td> \t\t\t\tYes<\/td>\n<td> \t\t\t\tEvery day at 19:00<\/td>\n<td> \t\t\t\tBackup..<\/td>\n<\/tr>\n<tr align=\"left\">\n<td> \t\t\t\t\/root\/backup<\/td>\n<td> \t\t\t\tTAR<\/td>\n<td> \t\t\t\tvelarava.com:\/html\/backup\/backup.tar.gz<\/td>\n<td> \t\t\t\tYes<\/td>\n<td> \t\t\t\tAEvery day at 21:00<\/td>\n<td> \t\t\t\tBackup..<\/td>\n<\/tr>\n<tr align=\"left\">\n<td> \t\t\t\t\/home\/tonton\/.kde\/share\/apps\/ksysguard<\/td>\n<td> \t\t\t\tTAR<\/td>\n<td> \t\t\t\t\/root\/backup\/ksysguard.tar.gz<\/td>\n<td> \t\t\t\tYes<\/td>\n<td> \t\t\t\tAfter \/etc<\/td>\n<td> \t\t\t\tBackup..<\/td>\n<\/tr>\n<tr align=\"left\">\n<td> \t\t\t\t\/srv\/www\/htdocs<\/td>\n<td> \t\t\t\tTAR<\/td>\n<td> \t\t\t\t\/root\/backup\/htdocs.tar.gz<\/td>\n<td> \t\t\t\tYes<\/td>\n<td> \t\t\t\tAfter \/home\/tonton\/.kde\/share\/apps\/ksysguard<\/td>\n<td> \t\t\t\tBackup<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> \t<b>Plus MySql Backup<\/b><br \/> \t&nbsp;<\/p>\n<p> <!--nextpage--> <\/p>\n<p> \t&nbsp;<\/p>\n<h2> \t<span class=\"mw-headline\" id=\"lm-sensors\">lm-sensors <\/span><\/h2>\n<p> \t<b>sensors<\/b> &#8211; Hardware health monitoring for Linux <a class=\"external free\" href=\"http:\/\/www.lm-sensors.org\/\" rel=\"nofollow\">http:\/\/www.lm-sensors.org\/<\/a><\/p>\n<p> \tThis package includes programs that show data from some sensor chips. The interface \/proc\/bus\/i2c\/ is provided by loading kernel modules. Which modules to load can be interactively detected as root by calling \/usr\/sbin\/sensors-detect. The default configuration in \/etc\/sensors.conf should be changed to fit the actual set up of the mainboard.<\/p>\n<ul>\n<li> \t\tInstalirat sa suse dvd-ea<\/li>\n<li> \t\tZa &quot;Linux Server&quot; PC, kopirat <a class=\"internal\" href=\"http:\/\/comanet.ddns.net\/notizjoomla\/files\/Lm_sensors.tar.gz\" title=\"Lm sensors.tar.gz\">Config data&lrm;<\/a> u (\/etc\/sysconfig\/lm_sensors) za neki drugi PC\/drugi hardware mora se konfiguracija ponovo napraviti (<a href=\"http:\/\/tonton.homelinux.net\/notizwiki\/index.php?title=Lm_sensors_manual\" title=\"Lm sensors manual\">lm_sensors manual<\/a>).<\/li>\n<li> \t\tU skriveni direktorij (\/home\/xxxuserxxx\/.kde\/share\/apps\/ksysguard) kopirati <a class=\"internal\" href=\"http:\/\/tonton.homelinux.net\/notizwiki\/images\/b\/ba\/Tonton1.sgrd.tar.gz\" title=\"Tonton1.sgrd.tar.gz\">konfiguraciju<\/a><a href=\"http:\/\/comanet.ddns.net\/notizjoomla\/files\/Tonton1_sgrd.tar.gz\">&lrm;<\/a><\/li>\n<li> \t\tStartati &quot;Performance Monitor (KSysGuard)&quot; i odabrati gornju kofiguraciju<\/li>\n<\/ul>\n<p> <!--nextpage--> <\/p>\n<h2> \t<span class=\"mw-headline\" id=\"ddclient\">ddclient <\/span><\/h2>\n<p> \tddclient &#8211; A Perl client to update dynamic DNS entries<\/p>\n<p> \tDDclient is a small full featured client requiring only Perl. Supported features include: operating as a daemon, manual and automatic updates, static and dynamic updates, optimized updates for multiple addresses, MX, wildcards, abuse avoidance, retrying failed updates, and sending update status to syslog and through e-mail. This release may now obtain your IP address from any interface, web based IP detection, many router with user configurable FW definitions and now provides Full support for DynDNS.org&#39;s NIC2 protocol. Support is also included for other dynamic DNS services. Comes with sample scripts for use with DHCP, PPP, and cron.<\/p>\n<ul>\n<li> \t\t<b>tonton.homelinux.net<\/b><\/li>\n<li> \t\t<a class=\"external free\" href=\"http:\/\/www.dyndns.com\/\" rel=\"nofollow\">http:\/\/www.dyndns.com\/<\/a><\/li>\n<\/ul>\n<ul>\n<li> \t\tInstalirat sa suse dvd-ea &quot;ddclient&quot; (!OPREZ! postoji i ddt-client)<\/li>\n<li> \t\tKopirati <a class=\"internal\" href=\"http:\/\/comanet.ddns.net\/notizjoomla\/files\/Ddclient_conf.tar.gz\" title=\"Ddclient.conf.tar.gz\">ddclient.conf<\/a>&lrm; u (\/etc)<\/li>\n<li> \t\tKopirati <a class=\"internal\" href=\"http:\/\/comanet.ddns.net\/notizjoomla\/files\/Ddclient.tar.gz\" title=\"Ddclient.tar.gz\">ddclient<\/a>&lrm; u (\/etc\/init.d)<\/li>\n<li> \t\tU Yast\/systemservice(runlevel) pokrenuti ga da starta zajedno sa linuxsom&lrm;<\/li>\n<li> \t\tU \/etc je sada ddclient.cache fail sa podacima zadnjeg updejta.<\/li>\n<\/ul>\n<p> <!--nextpage--> <\/p>\n<h2> \t<span class=\"mw-headline\" id=\"pure-ftpd\">pure-ftpd <\/span><\/h2>\n<p> \tpure-ftpd &#8211; A Lightweight, Fast, and Secure FTP Server<\/p>\n<p> \tPure-FTPd is a fast, production-quality, and standard-conforming FTP server, based-on Troll-FTPd. Unlike other popular FTP servers, it has no known security flaws, is trivial to set up, and is especially designed for modern Linux kernels (setfsuid and sendfile capabilities) . Features include: PAM support, IPv6, chroot()ed home directories, virtual domains, built-in LS, anti-warez system, bandwidth throttling, FXP, bounded ports for passive downloads, upload and download ratios, Apache log files, and more.<\/p>\n<ul>\n<li> \t\tInstalirat sa suse dvd-ea<\/li>\n<li> \t\tKopirat (pure-ftpd.conf, pure-ftpd.passwd, pure-ftpd.pdb) (<a class=\"internal\" href=\"http:\/\/comanet.ddns.net\/notizjoomla\/files\/Pure-ftpd.tar.gz\" title=\"Pure-ftpd.tar.gz\">Download<\/a>) u etc\/pure-ftpd<\/li>\n<li> \t\tU Yast\/systemservice(runlevel) pokrenuti ga da starta zajedno sa linuxsom<\/li>\n<\/ul>\n<hr \/>\n<h3> \t<span class=\"mw-headline\" id=\"Anleitung_f.C3.BCr_die_Einrichtung_von_pure-ftpd_.28FTP_Server_unter_Suse_Linux.29\">Anleitung f&uuml;r die Einrichtung von pure-ftpd (FTP Server unter Suse Linux) <\/span><\/h3>\n<p> \tZun&auml;chst installiert man mit Yast das pure-ftpd.rpm (von Suse9.1 DVD)<\/p>\n<p> \tDann legen wir mit Yast eine Gruppe Ftpuser an.<\/p>\n<p> \tYast &#8212;&gt; Sicherheit und Benutzer&#8212;-&gt; Gruppe bearbeiten und anlegen&#8212;-&gt;hinzuf&uuml;gen<\/p>\n<p> \tAnschlie&szlig;end einen User ftpuser. (Namen k&ouml;nnt Ihr nat&uuml;rlich frei w&auml;hlen)<\/p>\n<p> \tYast &#8212;&gt; Sicherheit und Benutzer&#8212;-&gt; Benutzer bearbeiten und anlegen&#8212;-&gt;hinzuf&uuml;gen<\/p>\n<p> \tDer User ftpuser geh&ouml;rt nur der Gruppe Ftpuser an und hat keine weiteren Rechte. Er dient nur als Container f&uuml;r die virtuellen FTP-User.<\/p>\n<p> \tLogin Shell \/bin\/false&nbsp;!!!<\/p>\n<p> \tNun k&ouml;nnen wir Yast verlassen und uns um die Einrichtung des Servers k&uuml;mmern.<\/p>\n<hr \/>\n<h3> \t<span class=\"mw-headline\" id=\"Einrichtung_des_Servers\">Einrichtung des Servers <\/span><\/h3>\n<p> \tBitte eine Konsole &ouml;ffnen und sich zum root machen. su rootpasswort<\/p>\n<p> \tNun wird der virtuelle User gast hinzugef&uuml;gt. (gast durch Usernamen Deiner Wahl ersetzen) Wichtig! Der Shareordner muss existent sein, es muss aber nicht das home des ftpusers sein&nbsp;!<\/p>\n<p> \troot@linux # pure-pw useradd gast -u ftpuser -d \/pfad\/zu\/Deinem\/Shareordner\/<\/p>\n<p> \tPasswort vergeben und gut merken Smile<\/p>\n<p> \tAnmerkung: Solltest Du oben den User ftpuser anderst genannt haben musst Du dies nat&uuml;rlich nun beim Anlegen der virtuellen User ber&uuml;cksichtigen. Also w&auml;re der Befehl so:<\/p>\n<p> \troot@linux # pure-pw useradd gast -u Dein angelegter FTP-User -d \/pfad\/zu\/Deinem\/Shareordner\/<\/p>\n<p> \tAnschlie&szlig;end muss das Passwort f&uuml;r den gerade angelegten User in der Datenbank gespeichert werden. Dazu folgendes eingeben.<\/p>\n<p> \troot@linux # pure-pw mkdb root@linux # rcpure-ftpd restart<\/p>\n<p> \tSo nun darf der User gast mit dem von Euch gew&auml;hltem Passwort auf den Server zugreifen und zwar in den von Euch festgelegten Shareordner)<\/p>\n<p> \tNun wird es Zeit den Server mal zu starten Smile<\/p>\n<p> \troot@linux # rcpure-ftpd start<\/p>\n<p> \tMal schauen ob das Dingen wirklich rennt.<\/p>\n<p> \troot@linux # rcpure-ftpd status Checking for pure-ftpd: running<\/p>\n<p> \tSollte dies dann da stehen habt Ihr gewonnen Smile<\/p>\n<p> \tNun k&ouml;nnt Ihr einen Cron f&uuml;r den automatischen Start des FTP anlegen bzw. eine Verkn&uuml;pfung auf dem Desktop um das Teil bei Bedarf zu starten.<\/p>\n<hr \/>\n<h3> \t<span class=\"mw-headline\" id=\"Feineinstellungen\">Feineinstellungen <\/span><\/h3>\n<p> \tDazu geht Ihr in das Verzeichniss \/etc\/pure-ftpd\/ und &auml;ndert als root die Datei pure-ftpd.conf entsprechend Euren Vorstellungen ab. Hier eine Beispiel zum leichteren Verstehen.<\/p>\n<p> \tCode:<\/p>\n<pre># <\/pre>\n<ol>\n<li> \t\tKonfigurationsdatei f&uuml;r Pure-FTPd<\/li>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li>\n<ol>\n<li> \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&nbsp;<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<li> \t\tWenn Sie Pure-FTPd mit dieser Konfiguration starten m&ouml;chten,<\/li>\n<li> \t\tanstelle der Kommandozeilenoptionen , geben Sie den<\/li>\n<li> \t\tBefehl<\/li>\n<li> \t\t\/usr\/sbin\/pure-config.pl \/etc\/pure-ftpd.conf<\/li>\n<li> \t\toder<\/li>\n<li> \t\trcpure-ftpd start<\/li>\n<li> \t\tein und der FTP- Server wird gestartet.<\/li>\n<li> \t\tmit rcpure-ftpd stop gestoppt und mit rcpure-ftpd restart<\/li>\n<li> \t\tneu gestartet<\/li>\n<li> \t\tDamit der FTP- Server automatisch beim Hochfahren startet,<\/li>\n<li> \t\tan der Konsole den Befehl<\/li>\n<li> \t\tchkconfig -a pure-ftpd<\/li>\n<li> \t\tausf&uuml;hren.<\/li>\n<li> \t\tVergessen Sie nicht, sich die Dokumentation auf<\/li>\n<li> \t\t<a class=\"external free\" href=\"http:\/\/www.pureftpd.org\/documentation.html\" rel=\"nofollow\">http:\/\/www.pureftpd.org\/documentation.html<\/a> anzusehen.<\/li>\n<li> \t\tDort finden Sie eine komplette Liste der Optionen.<\/li>\n<\/ol>\n<ol>\n<li> \t\tJeder User wird direkt in sein Heimatverzeichnis geleitet<\/li>\n<\/ol>\n<p> \tChrootEveryone yes<\/p>\n<ol>\n<li> \t\tWenn die vorherige Option auf &quot;no&quot; gesetzt ist, werden Mitglieder der<\/li>\n<li> \t\tfolgenden Gruppe dort nicht &quot;eingesperrt&quot;. Andere schon.<\/li>\n<li> \t\tWenn Sie mit niemanden chroot vorhaben,<\/li>\n<li> \t\tChrootEveryone und TrustedGID auskommentieren mit &quot;#&quot;<\/li>\n<li> \t\tDieser Gruppen- ID wird &quot;vertraut&quot;, d.h. User die dieser Gruppe angehoeren<\/li>\n<li> \t\tkoennen z.B. wenn aktiviert Dotfiles bearbeiten. Nachteil dabei ist, dass die<\/li>\n<li> \t\tQuotas (Speicherplatzbeschraenkung) dann nicht mehr aktiv sind.<\/li>\n<li> \t\tTrustedGID 100<\/li>\n<\/ol>\n<ol>\n<li> \t\tEinschalten der Nichtkompatibilit&auml;t f&uuml;r ruhende Clients<\/li>\n<\/ol>\n<p> \tBrokenClientsCompatibility no<\/p>\n<ol>\n<li> \t\tMaximale Zahl von Clients die gleichzeitig zugreifen duerfen<\/li>\n<\/ol>\n<p> \tMaxClientsNumber 10<\/p>\n<ol>\n<li> \t\tPure-FTPd wird als Daemon gestartet<\/li>\n<\/ol>\n<p> \tDaemonize yes<\/p>\n<ol>\n<li> \t\tMaximale Zahl von aehnlichen Clients mit der selben IP Addresse<\/li>\n<\/ol>\n<p> \tMaxClientsPerIP 8<\/p>\n<ol>\n<li> \t\tWenn Sie alle Client-Kommandos mitloggen wollen auf &quot;yes&quot; setzen.<\/li>\n<li> \t\tDiese Anweisung kann ausserdem dazu genutzt werden die Server-Antworten mitzuloggen.<\/li>\n<\/ol>\n<p> \tVerboseLog no<\/p>\n<ol>\n<li> \t\tZeigt dot-files an: yes|no, sebst wenn der Client nicht &quot;-a&quot; sendet.<\/li>\n<li> \t\tDotfiles sind Dateien die mit einem Punkt beginnen.<\/li>\n<li> \t\tBeispiele&nbsp;: .ftpquota .htaccess .htpasswd<\/li>\n<\/ol>\n<p> \tDisplayDotFiles no<\/p>\n<ol>\n<li> \t\tErlaubt bei &#39;yes&#39; keine authentifizierten Benutzer &#8211; nur oeffentlicher anonymer FTP.<\/li>\n<\/ol>\n<p> \tAnonymousOnly no<\/p>\n<ol>\n<li> \t\tVerbietet anonyme Verbindungen. Erlaubt nur authentifizierte Benutzer.<\/li>\n<\/ol>\n<p> \tNoAnonymous yes<\/p>\n<ol>\n<li> \t\tSyslog Einrichtung (auth, authpriv, daemon, ftp, security, user, local*)<\/li>\n<li> \t\tDie Vorgabe ist &quot;ftp&quot;.<\/li>\n<\/ol>\n<p> \tSyslogFacility ftp<\/p>\n<ol>\n<li> \t\tGlueckskekse anzeigen<\/li>\n<li> \t\tHier habe ich den Pfad \/ web\/fortune angegeben. In dieser Datei<\/li>\n<li> \t\tkann sich zum Beispiel die Begruessung beim Einloggen befinden.<\/li>\n<li> \t\tMehrere Eintraege werden durch&nbsp;% gertennt.<\/li>\n<li> \t\tBeispiel:<\/li>\n<li> \t\tHallo&#8230;<\/li>\n<li> \t\t&nbsp;%<\/li>\n<li> \t\tWillkomen&#8230;.<\/li>\n<li> \t\t&nbsp;%<\/li>\n<li> \t\tblablabla<\/li>\n<\/ol>\n<p> \tFortunesFile \/web\/fortune<\/p>\n<ol>\n<li> \t\tHostnamen nicht in Logdateien aufloesen. Logs sind kleiner, aber<\/li>\n<li> \t\tbenoetigen weniger Bandbreite. Auf &quot;yes&quot; setzen bei stark frequentierten<\/li>\n<li> \t\tServern oder wenn Sie keinen DNS laufen haben.<\/li>\n<\/ol>\n<p> \tDontResolve yes<\/p>\n<ol>\n<li> \t\tMaximale Leerlaufzeit in Minuten (Vorgabe = 15 Minuten)<\/li>\n<li> \t\tNach dieser Zeit wird die Verbindung getrennt.<\/li>\n<\/ol>\n<p> \tMaxIdleTime 15<\/p>\n<ol>\n<li> \t\tLDAP Konfigurationsdatei (siehe README.LDAP)<\/li>\n<li> \t\tLDAPConfigFile \/etc\/pureftp-ldap.conf<\/li>\n<\/ol>\n<ol>\n<li> \t\tPureDB Benutzerdatenbank (siehe README.Virtual-Users)<\/li>\n<li> \t\tWer keine virtuellen User einrichten m&ouml;chte, sollte ein &quot;#&quot; davorsetzen.<\/li>\n<li> \t\tAuf die Konfiguration von virtuellen Usern gehe ich<\/li>\n<li> \t\tnach der Serverkonfiguration ein.<\/li>\n<li> \t\tAchtung&nbsp;!<\/li>\n<li> \t\tAb der Version 8.1 (SuSE) fehlt dieser Eintrag in der Konfigurationsdatei.<\/li>\n<li> \t\tEr muss, sofern man virtual users nutzen will, nachgetragen werden.<\/li>\n<\/ol>\n<p> \tPureDB \/etc\/pureftpd.pdb<\/p>\n<ol>\n<li> \t\tPfad zu pure-authd socket (siehe README.Authentication-Modules)<\/li>\n<li> \t\tExtAuth \/var\/run\/ftpd.sock<\/li>\n<\/ol>\n<ol>\n<li> \t\tWenn Sie PAM Authentifizierung aktivieren wollen, &quot;#&quot; vor der folgenden<\/li>\n<li> \t\tZeile entfernen<\/li>\n<li> \t\tPAMAuthentication yes<\/li>\n<\/ol>\n<ol>\n<li> \t\tWenn Sie einfache Unix (\/etc\/passwd) Authentifizierung aktivieren wollen,<\/li>\n<li> \t\t&quot;#&quot; vor der folgenden Zeile entfernen<\/li>\n<li> \t\tHier werden die User anhand der \/etc\/passwd und etc\/shadow identifiziert,<\/li>\n<li> \t\talso die dem System bekannten User.<\/li>\n<\/ol>\n<p> \tUnixAuthentication yes<\/p>\n<ol>\n<li> \t\tBitte beachten Sie: LDAPConfigFile, MySQLConfigFile, PAMAuthentication und<\/li>\n<li> \t\tUnixAuthentication k&ouml;nne alein fuer sich und kombiniert genutzt werden.<\/li>\n<li> \t\tZum Beispiel: Wenn Sie MySQLConfigdatei, dann UnixAuthentication benutzen,<\/li>\n<li> \t\twird der SQL-Server gefragt. Wenn die SQL Authentifizierung fehlschl&auml;gt,weil der<\/li>\n<li> \t\tBenutzer nicht gefunden wurde, wird ein neuer Versuch mit \/etc\/passwd und<\/li>\n<li> \t\t\/etc\/shadow gestartet. Wenn die SQL Authentifizierung fehlschl&auml;gt,weil<\/li>\n<li> \t\tdas Passwort falsch ist, wird die Authentifizierungskette hier gestoppt.<\/li>\n<li> \t\tAuthentifizierungsmethoden laufen in der Reihenfolge ab, in der sie<\/li>\n<li> \t\tvergeben wurden.<\/li>\n<\/ol>\n<ol>\n<li> \t\t&#39;ls&#39; Recursionslimit. Das erste Argument ist diemaximale Zahl von<\/li>\n<li> \t\tDateien, die angezeigt werden. Das Zweite ist die maximale<\/li>\n<li> \t\tUnterverzeichnistiefe<\/li>\n<\/ol>\n<p> \tLimitRecursion 2000 10<\/p>\n<ol>\n<li> \t\tIst es anonymen Benutzern erlaubt neue Verzeichnisse anzulegen?<\/li>\n<\/ol>\n<p> \tAnonymousCanCreateDirs no<\/p>\n<ol>\n<li> \t\tWenn im System mehr geladen wird als der folgende Wert,ist<\/li>\n<li> \t\tanonymen Benutzern ist kein download erlaubt.<\/li>\n<\/ol>\n<p> \tMaxLoad<\/p>\n<ol>\n<li> \t\tPortbereich fuer passive Verbindungen. &#8211; fuer firewalling.<\/li>\n<li> \t\tPassivePortRange 30000 5000<\/li>\n<\/ol>\n<p> \t&nbsp;<\/p>\n<pre># IP Addresse dazu bringen in PASV\/EPSV\/SPSV zu antworten. - fuer NAT. <\/pre>\n<ol>\n<li> \t\tForcePassiveIP 192.168.0.<\/li>\n<\/ol>\n<ol>\n<li> \t\tUpload\/download Verhaeltnis f&uuml;r anonyme Benutzer.<\/li>\n<li> \t\tAnonymousRatio 1 10<\/li>\n<\/ol>\n<ol>\n<li> \t\tUpload\/download Verhaeltnis fuer alle Benutzer.<\/li>\n<li> \t\tDiese Anweisung uebertrumpft die Vorherige.<\/li>\n<li> \t\tUserRatio 1 10<\/li>\n<\/ol>\n<ol>\n<li> \t\tVerbietet downloading von Dateien die im &quot;Besitz&quot; von z.B. &quot;ftp&quot; sind,<\/li>\n<li> \t\tDateien die hochgeladen sind, aber nicht best&auml;tigt durch den lokalen Admin.<\/li>\n<\/ol>\n<p> \tAntiWarez yes<\/p>\n<ol>\n<li> \t\tIP Addresse\/Port horcht nach (Vorgabe=alle IP und Port 21).<\/li>\n<li> \t\tBind 127.0.0.1,21<\/li>\n<\/ol>\n<ol>\n<li> \t\tMaximale Bandbreite fuer anonyme Benutzer in Kb\/s<\/li>\n<li> \t\tAnonymousBandwidth 8<\/li>\n<\/ol>\n<ol>\n<li> \t\tMaximale Bandbreite fuer *alle* Benutzer (inklusiv anonymous) in Kb\/s<\/li>\n<li> \t\tBenutzen Sie AnonymousBandwidth *oder* UserBandwidth, beides ergibt keinen Sinn.<\/li>\n<li> \t\tUserBandwidth 8<\/li>\n<\/ol>\n<ol>\n<li> \t\tDateierzeugungsmaske. &lt;umask fuer Dateien&gt;:&lt;umask fuer Verzeichnisse&gt; .<\/li>\n<li> \t\t177:077 wenn Sie aengstlich sind.<\/li>\n<li> \t\tUmask ist das Gegenst&uuml;ck zu chmod. Nehme ich den h&ouml;chsten chmod Wert<\/li>\n<li> \t\talso 777 und ziehe davon den umask Wert ab, so ist das Ergebnis die<\/li>\n<li> \t\tgesetzten Dateiattribute.<\/li>\n<li> \t\tIn diesem Beispiel: 777&nbsp;? 022 = 755 . Der chmod Wert fuer die Verzeichnisse<\/li>\n<li> \t\tist also 755. Erster Wert fuer Dateien zweiter Wert nach dem Doppelpunkt<\/li>\n<li> \t\tfuer Verzeichnisse<\/li>\n<\/ol>\n<p> \tUmask 022:022<\/p>\n<ol>\n<li> \t\tMinimum UserID fuer einen authentifizierten Benutzer zum einloggen.<\/li>\n<li> \t\tMininal User- ID zum Login User- ID?s unter 100 sind nicht zugelassen.<\/li>\n<li> \t\tDas sind die Systemuser z.B. root hat die User- ID 0<\/li>\n<\/ol>\n<p> \tMinUID 100<\/p>\n<ol>\n<li> \t\tErlaubt FXP Uebertragungen nur f&uuml;r authentifizierte Benutzer.<\/li>\n<li> \t\tFXP ist eine Art FTP aber von Server zu Server<\/li>\n<\/ol>\n<p> \tAllowUserFXP no<\/p>\n<ol>\n<li> \t\tErlaubt anonymes FXP fuer anonyme und nicht-anonyme Bentzer.<\/li>\n<\/ol>\n<p> \tAllowAnonymousFXP no<\/p>\n<ol>\n<li> \t\tVerbietet Benutzern Dateien, die mit einem Punkt beginnen, l&ouml;schen\/schreiben,<\/li>\n<li> \t\tselbst wenn sie Besitzer sind. Wenn aber TrustedGID aktiviert ist,<\/li>\n<li> \t\that diese Gruppe Zugriff zu dot-files.<\/li>\n<\/ol>\n<p> \tProhibitDotFilesWrite no<\/p>\n<ol>\n<li> \t\tVerbietet *lesen* von Dateien, die mit einem Punkt beginnen (.history, .ssh&#8230;)<\/li>\n<\/ol>\n<p> \tProhibitDotFilesRead no<\/p>\n<ol>\n<li> \t\tNie Dateien ueberschreiben. Wenn eine Datei, die mit gleichem<\/li>\n<li> \t\tNamen bereits auf dem Server existiert hochgeladen wird,<\/li>\n<li> \t\twird sie automatisch in datei.1, datei.2, datei.3, &#8230; umbenannt<\/li>\n<\/ol>\n<p> \tAutoRename no<\/p>\n<ol>\n<li> \t\tVerbietet anonymen Benutzern das Hochladen neuer Dateien (no = hochladen ist erlaubt)<\/li>\n<\/ol>\n<p> \tAnonymousCantUpload no<\/p>\n<ol>\n<li> \t\tNur nicht-anonyme Verbindungen mit dieser speziellen IP Addresse sind zugelassen.<\/li>\n<li> \t\tSie koennen diese Anweisung nutzen, um verschieden oeffentlichen IPs Zugang zu gewaehren<\/li>\n<li> \t\tfuer anonymen FTP, und eine private firewalled IP fuer Fernadministration zu unterhalten.<\/li>\n<li> \t\tSie koennen auch nur erlauben eine nicht-routfaehige lokale IP (wie 10.x.x.x) zu<\/li>\n<li> \t\tauthentifizieren, und einen oeffentlichen und nur FTP server auf einer anderen IP unterhalten.<\/li>\n<li> \t\tTrustedIP 10.1.1.1<\/li>\n<\/ol>\n<ol>\n<li> \t\tWenn Sie die Prozess-ID zu jder Log-Zeile hinzuf&uuml;gen m&ouml;chten, &quot;#&quot; vor der naechsten Zeile<\/li>\n<li> \t\tentfernen.<\/li>\n<li> \t\tLogPID yes # Eine zusaetzliche Log-Datei erzeugen mit transferlogging in einem apacheaehnlichen Format:<\/li>\n<li> \t\tfw.c9x.org &#8211; jedi [13\/Dec\/1975:19:36:39] &quot;GET \/ftp\/linux.tar.bz2&quot; 200 21809338<\/li>\n<li> \t\tDiese Log-Datei kann dann &uuml;ber&#39;s www mit traffic analyzern ausgewertet werden.<\/li>\n<li> \t\tAltLog clf:\/var\/log\/pureftpd.log<\/li>\n<\/ol>\n<ol>\n<li> \t\tEine zusaetzliche Log-Datei erzeugen mit transferlogging in einem f&uuml;r Format, das optimiert<\/li>\n<li> \t\tist fuer Statistikberichte und mit ftpStats ausgewertet werden kann.<\/li>\n<li> \t\t(<a class=\"external free\" href=\"http:\/\/www.shagged.org\/ftpstats\" rel=\"nofollow\">http:\/\/www.shagged.org\/ftpstats<\/a>) .<\/li>\n<li> \t\tAltLog stats:\/var\/log\/pureftpd.log<\/li>\n<\/ol>\n<ol>\n<li> \t\tEine zusaetzliche Log-Datei erzeugen mit transferlogging im W3C Standardformat<\/li>\n<li> \t\t(kompatible mit den meissten kommerziellen Loganalyzern)<\/li>\n<li> \t\tAltLog w3c:\/var\/log\/pureftpd.log<\/li>\n<\/ol>\n<ol>\n<li> \t\tVerbietet das CHMOD Kommando. Benutzer k&ouml;nnen die Dateiattribute nicht aendern.<\/li>\n<li> \t\t(Aenderungen erlaubt=no)<\/li>\n<\/ol>\n<p> \tNoChmod no<\/p>\n<ol>\n<li> \t\tErlaubt Benutzer das betrachten und hochladen und runterladen von Dateien,<\/li>\n<li> \t\taber *NICHT* zu loeschen.(l&ouml;schen erlaubt=no)<\/li>\n<\/ol>\n<p> \tKeepAllFiles no<\/p>\n<ol>\n<li> \t\tPure-FTPd erstellt automatisch Heimatverzeichnisse wenn sie fehlen.<\/li>\n<\/ol>\n<p> \tCreateHomeDir yes<\/p>\n<ol>\n<li> \t\tAktivieren von virtuellen quotas. Die erste Zahl ist die max. Anzahl von Dateien.<\/li>\n<li> \t\tDie zweite Zahl die max. Groesse im Megabyte.<\/li>\n<li> \t\t1000:10 begrenzt jeden Benutzer auf 1000 Dateien und 10 MB.<\/li>\n<\/ol>\n<p> \tQuota 1000:100<\/p>\n<ol>\n<li> \t\tWenn Ihr pure-ftpd mit stand-alone support kompiliert wurde, koennen<\/li>\n<li> \t\tSie den Ort der PID-Datei aendern<\/li>\n<li> \t\tDie Vorgabe ist \/var\/run\/pure-ftpd.pid<\/li>\n<\/ol>\n<p> \tPIDFile \/var\/run\/pure-ftpd.pid<\/p>\n<ol>\n<li> \t\tWenn Ihr pure-ftpd mit pure-uploadscript support kompiliert wurde,<\/li>\n<li> \t\tbringt dies pure-ftpd dazu, Info&#39;s ueber neue Uploads nach zu schreiben<\/li>\n<li> \t\t\/var\/run\/pure-ftpd.upload.pipe zu schreiben.So kann pure-uploadscript<\/li>\n<li> \t\tes lesen und ein Script zum Handhaben der uploads erzeugen.<\/li>\n<li> \t\tCallUploadScript yes<\/li>\n<\/ol>\n<ol>\n<li> \t\tDiese Option ist nuetzlich bei Servern, bei denen anonymes upload<\/li>\n<li> \t\terlaubt ist. Wie \/var\/ftp z.B. in \/var, es sichtert etwas Platz und<\/li>\n<li> \t\tschuetzt die Log-Dateien. Wenn im Verzeichnis X Prozent belegt ist,<\/li>\n<li> \t\tsind neue uploads sind nicht erlaubt.<\/li>\n<\/ol>\n<p> \tMaxDiskUsage 90<\/p>\n<ol>\n<li> \t\tAuf &#39;yes&#39; sezten, wenn Sie Ihren Usern das Umbenennen von Dateien<\/li>\n<li> \t\tnicht erlauben wollen.<\/li>\n<\/ol>\n<p> \tNoRename no<\/p>\n<ol>\n<li> \t\t&#39;customer proof&#39;&nbsp;: Schutz gegen allgemeine Benutzerfehler wie<\/li>\n<li> \t\t&#39;chmod 0 public_html&#39;, dies ist zwar gueltig, aber es k&ouml;nnte bei unkundigen<\/li>\n<li> \t\tBenutzern dazu f&uuml;hren, dass sie ihre Dateien selbst sperren, und dann<\/li>\n<li> \t\tIhren technischen Support mit dummen Fragen beschaeftigen.<\/li>\n<li> \t\twenn Sie sicher sind, dass alle Ihre Benutzer etwas Unix-Basiswissen haben<\/li>\n<li> \t\tist diese Eigenschaft nutzlos. Sind Sie ein Hosting Service, aktivieren.<\/li>\n<\/ol>\n<p> \tCustomerProof yes<\/p>\n<ol>\n<li> \t\tFuer gleichzige Nutzer Zugriffsbeschraenkungen. Es wird nur funktionieren,<\/li>\n<li> \t\twenn der FTP Server mit -peruserlimits kompiliert wurde (bei den meissten<\/li>\n<li> \t\tbinaer Distributionen ist dies der Fall) .<\/li>\n<li> \t\tDas Format ist&nbsp;: &lt;max.Sitzungen je Benutzer&gt;:&lt;max. anonyme Sitzungen&gt;<\/li>\n<li> \t\tZum Beispiel: 3:20 bedeutet,dass der selbe authentifizierte Benutzer<\/li>\n<li> \t\tmaximal 3 aktive Sitzungen haben kann<\/li>\n<li> \t\tund maximal 20 anonyme Sitzungen sind erlaubt.<\/li>\n<li> \t\tPerUserLimits 3:20<\/li>\n<\/ol>\n<p> \t&nbsp;<\/p>\n<ol>\n<li> \t\tIn der Version 1.0.16-38 (SuSE Linux 9.0) kommt folgender Parameter hinzu:<\/li>\n<li> \t\tDiese Option akzeptiert drei Werte&nbsp;:<\/li>\n<li> \t\t0&nbsp;: SSL\/TLS Verschluesselungsschicht abgeschaltet (default).<\/li>\n<li> \t\t1&nbsp;: akzeptiert beite traditionelle und verschluesselte Sitzungen.<\/li>\n<li> \t\t2&nbsp;: lehnt Verbindungen die nicht den SSL\/TLS Sicherheitsmechanismus nutzen ab,<\/li>\n<li> \t\tinklusiv anonymer Sitzungen.<\/li>\n<li> \t\tNicht blind aktivieren. Seien Sie sicher, dass&nbsp;:<\/li>\n<li> \t\t1) Ihr Server mit SSL\/TLS Unterstuetzung kompiliert wurde (&#8211;with-tls),<\/li>\n<li> \t\t2) Ein gueltiges Zertifikat vorhanden ist,<\/li>\n<li> \t\t3) Nur kombatible Clients sich einloggen werden.<\/li>\n<li> \t\tTLS 1<\/li>\n<\/ol>\n<p> \t&nbsp;<\/p>\n<p> \tAnschliessend einen gepflegten Restart des Servers nicht vergessen Smile<\/p>\n<hr \/>\n<h3> \t<span class=\"mw-headline\" id=\"Weiteres\">Weiteres <\/span><\/h3>\n<p> \tIhr wollt ein Verzeichniss &auml;ndern? Kein Problem! (gast wieder durch den jeweiligen Usernamen ersetzen)<\/p>\n<p> \troot@linux # pure-pw usermod gast -d \/neues\/verzeichniss\/ root@linux # pure-pw mkdb root@linux # rcpure-ftpd restart<\/p>\n<p> \tServer Status abfragen:<\/p>\n<p> \troot@linux # rcpure-ftpd status Checking for pure-ftpd: running<\/p>\n<p> \tEinen neuen User hinzuf&uuml;gen:<\/p>\n<p> \troot@linux # pure-pw useradd neueruser -u ftpuser -d \/pfad\/zu\/seinem\/Shareordner\/ root@linux # pure-pw mkdb root@linux # rcpure-ftpd restart<\/p>\n<p> \tSchon kann sich der neu erstellte User mit seinem Usernamen und dem von Euch vergebenen Passwort einloggen.<\/p>\n<p> \tAbschliessend sei noch angemerkt das es f&uuml;r Webmin ein Modul gibt, mit dem Ihr den FTP gut &uuml;berwachen k&ouml;nnt. Vergesst auch nicht in Eurer Firewall den Port 21 freizugeben.<\/p>\n<p> \tSo das wars ich hoffe Ihr kommt dank dieser Anleitung in den Genuss einen FTP- Server zu betreiben.<br \/> \t&nbsp;<\/p>\n<p> <!--nextpage--> <\/p>\n<p> \t&nbsp;<\/p>\n<h2> \t<span class=\"mw-headline\" id=\"apcupsd\">apcupsd <\/span><\/h2>\n<p> \tAPC UPS Daemon (powerful daemon for APC UPS&#39;es)<\/p>\n<p> \t<a class=\"external free\" href=\"http:\/\/www.apcupsd.org\/\" rel=\"nofollow\">http:\/\/www.apcupsd.org\/<\/a><\/p>\n<p> \t<a class=\"internal\" href=\"http:\/\/comanet.ddns.net\/notizjoomla\/files\/Apcupsd.pdf\" title=\"Apcupsd.pdf\">Apcupsd Manual (pdf)<\/a>&lrm;<\/p>\n<p> \tControls and monitors the status of an APC UPS under Linux. Allows your computer or server to run for a specified length of time on UPS power, and then executes a controlled shutdown in the case of an extended power failure. Find APC on the Internet at: <a class=\"external free\" href=\"http:\/\/www.apc.com\" rel=\"nofollow\">http:\/\/www.apc.com<\/a> APC also made their PowerChute plus available for download at: <a class=\"external free\" href=\"http:\/\/www.apc.com\/tools\/download\/\" rel=\"nofollow\">http:\/\/www.apc.com\/tools\/download\/<\/a><\/p>\n<p> \t&nbsp;<\/p>\n<h3> \t<span class=\"mw-headline\" id=\"USB_Configuration\">USB Configuration <\/span><\/h3>\n<p> \tChecking Out Your Linux USB Subsystem<\/p>\n<p> \tYou need to check three things:<\/p>\n<pre>  1. That your USB subsystem can see the UPS  2. That the kernel has bound the correct driver  3. That the correct device nodes are available in \/dev <\/pre>\n<p> \t&nbsp;<\/p>\n<p> \tVerifying Device Detection and Driver<\/p>\n<p> \tTo make sure that your USB subsystem can see the UPS, just do this from a shell prompt:<\/p>\n<pre>    cat \/proc\/bus\/usb\/devices <\/pre>\n<p> \t&nbsp;<\/p>\n<p> \tThis information is updated by the kernel whenever a device is plugged in or unplugged, irrespective of whether apcupsd is running or not. It contains details on all the USB devices in your system including hubs (internal and external), input devices, and UPSes.<\/p>\n<p> \tYou should get some output back that includes something like this, featuring a BackUPS RS 1000:<\/p>\n<pre>    T:  Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  3 Spd=1.5 MxCh= 0    D:  Ver= 1.10 Cls=00(&gt;ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1    P:  Vendor=051d ProdID=0002 Rev= 1.06    S:  Manufacturer=American Power Conversion    S:  Product=Back-UPS RS 1000 FW:7.g3 .D USB FW:g3    S:  SerialNumber=JB0308036505    C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 24mA    I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=00 Prot=00 Driver=hid <\/pre>\n<p> \t&nbsp;<\/p>\n<p> \tThe important things to check for are the S: lines describing your UPS and and the I: line showing what driver is handling it. If on the I: line, Driver is listed as Driver=none then you do not have the HID driver loaded or the driver did not attach to the UPS. One common cause is having a Linux kernel older than 2.4.22 (such as a stock RedHat 9 or RHEL 3 kernel). If this is the case for your system, please upgrade to at least kernel version 2.4.22 and try again. If you are already running a 2.4.22 or higher kernel, please read further for instructions for other possible courses of action.<\/p>\n<p> \tFor a detailed description of the contents of the \/proc\/bus\/usb files, see Interpreting \/proc\/bus\/usb (linux-2.4) or Interpreting \/proc\/bus\/usb (linux-2.6) as appropriate for your kernel version.<\/p>\n<p> \tHere is another example, this time featuring a Back-UPS 350:<\/p>\n<pre>    T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=1.5 MxCh= 0    D:  Ver= 1.10 Cls=00(&gt;ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1    P:  Vendor=051d ProdID=0002 Rev= 1.00    S:  Manufacturer=American Power Conversion    S:  Product=Back-UPS 350 FW: 5.2.I USB FW: c1    S:  SerialNumber=BB0115017954    C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 30mA    I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=00 Prot=00 Driver=hid    E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl= 10ms <\/pre>\n<p> \t&nbsp;<\/p>\n<p> \tIn general, if you see your UPS model in the S: field, which means Manufacturer=, Product=, and SerialNumber=, and you see Driver=hid in the I: field, you know the UPS has been recognized and is bound to the correct driver.<\/p>\n<h3> \t<span class=\"mw-headline\" id=\"Configuration_Examples\">Configuration Examples <\/span><\/h3>\n<p> \tA Simple USB Configuration<\/p>\n<p> \tIf you have a USB UPS, and you have apcupsd version 3.10.7 (3.10.17a for *BSD) or higher, the essential elements of your apcupsd.conf file should look like the following:<\/p>\n<pre>    ## apcupsd.conf v1.1 ##    UPSCABLE usb    UPSTYPE usb    DEVICE    LOCKFILE \/var\/lock    UPSCLASS standalone    UPSMODE disable <\/pre>\n<p> \t&nbsp;<\/p>\n<p> \tNotice that we have not specified a device. In doing so, apcupsd will try all the well known USB ports. We strongly recommend you use this (empty device address) form unless you have a good reason to do otherwise.<\/p>\n<p> \tPlease use the explicit specifications of a device only if you know exactly what you are doing. In general, it is much easier to let apcupsd find the device itself.<\/p>\n<p> \tPlease see USB Configuration for detailed help on setting up your system to work with a USB UPS.<\/p>\n<p> \tA Simple Configuration for a SmartUPS<\/p>\n<p> \tIf you have a Smart UPS using the cable supplied by APC, or you build a CUSTOM SMART cable outlined in the cables chapter, a very simple configuration file would look like the following:<\/p>\n<pre>    ## apcupsd.conf v1.1 ##    UPSCABLE smart    UPSTYPE smartups    DEVICE \/dev\/ttyS0    LOCKFILE \/var\/lock    UPSCLASS standalone    UPSMODE disable <\/pre>\n<p> \t&nbsp;<\/p>\n<p> \tNormally you would have many more configuration directives to completely customize your installation, but this example shows you the minimum required.<\/p>\n<p> \tA Simple Configuration for a Simple Signaling or Dumb<\/p>\n<p> \tIf you have a simple signaling or dumb UPS such as a BackUPS, you will need to know exactly what cable you have and specify it on the UPSCABLE directive. Please see the list of UPSes versus cables in the beginning of this document for more information. The cable number is normally stamped in the plastic at one end of the cable. If you specify the wrong cable, it is very likely that at the first power failure, your computer will be immediately shutdown. This is an unfortunate consequence of the dumb signaling mode. To avoid this, first replace \/etc\/apcupsd\/apccontrol with safe.apccontrol found in the examples directory, then test until everything works correctly. Once you have the correct cable, be sure to remember to reinstall the correct apccontrol file and test that your computer is correctly shutdown during a power failure.<\/p>\n<pre>    ## apcupsd.conf v1.1 ##    UPSCABLE (number of cable you have)    UPSTYPE dumb    DEVICE \/dev\/ttyS0    LOCKFILE \/var\/lock    UPSCLASS standalone    UPSMODE disable <\/pre>\n<p> \t&nbsp;<\/p>\n<p> \tIf your cable does not have low battery detection, as is the case with some older models, you will also need to define TIMEOUT nnn where you set nn to be the number of seconds on a power failure after which a shutdown is effected.<\/p>\n<p> \tNormally you would have many more configuration directives to completely customize your installation, but this example shows you the minimum required.<\/p>\n<p> \tNIS Server\/Client Configuration Using the Net Driver<\/p>\n<p> \tNIS (Network Information Server) mode allows for communication between instances of apcupsd running on different hosts. Only one of those hosts, the server, needs to talk to the UPS directly. The others, clients, optain information about the state of the UPS by querying the server. NIS is not related to Sun&#39;s NIS\/YP services.<\/p>\n<p> \tNIS clients and servers require that apcupsd be compiled with the Net Driver &#8211;enable-net. This is typically enabled by default.<\/p>\n<p> \tThe NIS server is connected to the UPS and should be configured exactly as a standalone configuration, but with NETSERVER on. In all other respects, the server should be configured in standalone mode. You may also set the NIS server specific options NISIP to restict which IP address of the server which apcupsd listens on. The default, 0.0.0.0, means to list on all of the server host&#39;s IP addresses; NISPORT (default 3551) to set which TCP port the server listens on; and EVENTSFILE and EVENTSFILEMAX to provide information about the last few events to clients. You may also need to modify your firewall rules on the server&#39;s host to allow traffic to the NISPORT.<\/p>\n<p> \tFor the NIS client computer, you will have a configuration that looks something like what follows. What is important is that you get the information from an ether UPSCABLE with UPSTYPE set as net over the network and you must specify the address of a NIS server using DEVICE. The client apcupsd will then poll the NIS server specified in DEVICE every NETTIME seconds.<\/p>\n<pre>    ## apcupsd.conf v1.1 ##    UPSCABLE ether    UPSTYPE net    LOCKFILE \/var\/lock    DEVICE server-network-address:3551    UPSCLASS standalone    UPSMODE disable    NETTIME 10 <\/pre>\n<p> \t&nbsp;<\/p>\n<p> \tThe DEVICE is set to server-address:port, where server-address is the fully qualified domain name or IP address of the apcupsd NIS server, and TCP port is the NISPORT that the server is listening on. The default is 3551, but older versions of apcupsd used port 7000.<\/p>\n<p> \tIf you set NETTIME too large, your slave may not see the change in state of the NIS server before the server has shutdown. Normally, you have at least 30 seconds of grace time between the time the NIS server decides to shutdown and the time it no longer responds. Your slave must poll during this interval.<\/p>\n<p> \tAny client run using the Net driver will shutdown when its own timers expire or when the NIS server shuts down, whichever occurs first. This means that if you want the slave to shutdown before the server, you need only set BATTERYLEVEL, MINUTES or TIMEOUT on the client for a faster shutdown than the values defined on the NIS server. This can often be useful if the slave is less important than the master and you wish to reduce battery power consumption so that the master can remain up longer during a power outage.<\/p>\n<p> \tNIS clients work principally by reading the STATFLAG record that is sent by the NIS server (present in the output of apcaccess). The low 16 bits are the standard APC status flag, and the upper 16 bits represent the internal state of apcupsd, so the slave can see when the power fails and know when to shutdown.<\/p>\n<p> \tIt would be possible to have a client also work as a server, but that would increase the delay of information getting from the UPS to the secondary client.<\/p>\n<p> \tDifferences between NIS Client\/Server and the old (now removed) Master\/Slave modes<\/p>\n<p> \tThe difference between the NIS mode and the removed master\/slave mode is that the NIS server has no explicit knowledge of the slaves. The NIS server makes its information available via the net (NIS), and the NIS slaves read it. When the NIS server is going to shutdown, it makes the information available to any NIS slave that polls it, but the NIS server does not explicitly call each NIS slave as is the case in the Master\/Slave networking described several sections above.<\/p>\n<p> \tThink of the difference as push (Master\/Slave) vs. pull (NIS-based). In the case of M\/S, the master makes all the shutdown decisions and notifies the slaves when they are to shut down or when some other interesting event happens. The slaves just do whatever the master says, whenever the master says to. On the other hand, with the NIS-based network config you basically &#8220;publish<i>the UPS status from one server and then your clients view that status and make their own decisions.<\/i><\/p>\n<p> \tPowerChute Network Shutdown Driver (PCNET)<\/p>\n<p> \tAs of 3.14, Apcupsd supports the PowerChute Network Shutdown protocol. This is an alternative to SNMP for use with APC&#39;s AP9617 family of network smartslot modules. Note that the older AP9606 modules do not support PCNET.<\/p>\n<p> \tTo enable PCNET support, configure with the &#8211;enable-pcnet flag. This is typically enabled by default.<\/p>\n<p> \tThe required apcupsd.conf settings are straightforward:<\/p>\n<pre>    ## apcupsd.conf v1.1 ##    UPSCABLE ether    UPSTYPE pcnet    LOCKFILE \/var\/lock    DEVICE ipaddr:user:passphrase    UPSCLASS standalone    UPSMODE disable <\/pre>\n<p> \t&nbsp;<\/p>\n<p> \tThe DEVICE setting specifies the IP address of the UPS as well as the username and authentication passphrase to use. Note that the username and passphrase are not the Web\/SNMP login credentials. They are separate settings. The default username on a new card is &quot;admin&quot; and the default passphrase is &quot;admin user phrase&quot;. To change the passphrase, log in to the Web UI and go to the UPS tab, then to PowerChute -&gt; Configuration. (This assumes firmware v3.3.1. Other versions may place the setting elsewhere.)<\/p>\n<p> \tNote that you may leave DEVICE blank and Apcupsd will accept information from any PCNET UPS on the network, however it will be very insecure since an attacker could easily send packets crafted to cause your server to shut down. Using the ipaddr, user, and passphrase will prevent this behavior.<\/p>\n<p> \tYou may need to take steps to ensure networking stays active during your OS&#39;s shutdown sequence in order for the PCNET driver to power off the UPS (the so-called &quot;killpower&quot; operation). On a Linux distro, you can use commands such as&#8230;<\/p>\n<pre>  chkconfig --level 0 network on  chkconfig --level 0 iptables on <\/pre>\n<p> \t&nbsp;<\/p>\n<p> \t&#8230;to make sure networking stays up.<\/p>\n<h2> \t&nbsp;<\/h2>\n<p> <!--nextpage--> <\/p>\n<h2> \t<span class=\"mw-headline\" id=\"NUT_Network_UPS_Tools\">NUT Network UPS Tools <\/span><\/h2>\n<p> \t<b>nut &#8211; UPS monitoring software<\/b><\/p>\n<p> \tThis is a developing project to monitor a large assortment of UPS hardware. Many models have ports on the back to allow other devices to check their status. If it gives basic information about the power and battery status, it can probably be supported without too much difficulty. More advanced features on the higher-end models are also supported to allow tracking of values over time such as temperature and voltage. Network communications are used so that multiple systems can monitor a single physical UPS and shut down together if necessary without any special &quot;sharing hardware&quot; on the UPS itself. Detailed information about supported hardware can be found in \/usr\/share\/doc\/packages\/nut\/README<\/p>\n<p> \t&nbsp;<\/p>\n<h3> \t<span class=\"mw-headline\" id=\"Model_information\">Model information <\/span><\/h3>\n<p> \tAPC Smart-UPS, Back-UPS Pro, Matrix-UPS, Belkin Regulator Pro, Best Power Fortress, Fortress (FOR), Fortress Telecom (FTC), Patriot Pro (PRO), Patriot Pro II (PR2), Engetron Jr, Fenton Technologies PowerPal, PowerOn, PowerPure, Effekta MI\/MT\/MH models (2502 cable), PowerGuard PG-600, IPT Anzen, MGE Pulsar, MGE Pulsar\/Comet\/Galaxy, Mustek Electronics, Opti-UPS, Advice Partner\/King, PowerCom, Toshiba 1500 series, Trust (KingPro) 425\/625, Microdowell BBox, IMV\/Victron many models that use the same basic principle to communicate with the computer. See generic-ups.txt in \/usr\/share\/doc\/packages\/nut for more information, including a list of supported equipment.<\/p>\n<p> \tPlease edit the variables in \/etc\/sysconfig\/smartups or edit the files below \/etc\/ups and read \/usr\/share\/doc\/packages\/nut\/<a class=\"internal\" href=\"http:\/\/comanet.ddns.net\/notizjoomla\/files\/NUT-README.txt\" target=\"_blank\" title=\"NUT-README.txt\" rel=\"noopener noreferrer\">README<\/a>&lrm;<\/p>\n<p> \t&nbsp;<\/p>\n<p> \t&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Webmin A web-based administration interface for Unix systems. A web-based administration interface for Unix systems. Using Webmin you can configure DNS, Samba, NFS, local\/remote filesystems and more using your web browser.After installation, enter the URL http:\/\/localhost:10000\/ into your browser and login as root with your root password. U Suse linuxu ga nema nego mora se&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-5","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/posts\/5","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5"}],"version-history":[{"count":1,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/posts\/5\/revisions"}],"predecessor-version":[{"id":491,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/posts\/5\/revisions\/491"}],"wp:attachment":[{"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}