Montag, 26. November 2012

windows tools

wget 

http://users.ugent.be/~bpuype/wget/

CODE: downloader.ps1

# downloader.ps1 (powershell + wget)
# Author josy1024@gmail.com

# file lister
# only urls without "#" am anfang
#
$urllistfile = Gc "urllist.txt"
$rundir= $(get-location).Path

# location checker (download to)
# move downloads to subfolder? - updater?
# check for versions?

Write-Output "Command dir: " + $rundir

# downloader
ForEach($url In $urllistfile)

Write-Output ("get URL: " + $url)
Invoke-Expression "$rundir\wget.exe --no-check-certificate -t 1 $url"

}


robocopy

(onlinenotiz)

mac tools

7zip 

keka based on p7zip: http://www.kekaosx.com/de/

notepad++ 

editra http://editra.org/,
macvim> http://code.google.com/p/macvim/

Go2Shell (im app store, für alle die bash und cmd line lieben!)

curl (wget alternative)

curl -o filename.gz http://fqnd/filename.gz

Mittwoch, 21. November 2012

inspired by operations anti-patterns


alias "operations fail" alias "sysadmins in endlosschleifen" alias "sysadmin selbstbeschäftigung"

inspired of getting al that input from the puppetconf i decided to list all interesing points.


config management (transparency work)

testing modules (have you ever made a rollout with 100% working software?), read release notes!

release management (plan your releases - easy step forward and easy step back, change people for test an production environment to test your documentation!)

dev's and OP's (sometimes its better to have an developer in th OP's team - script on top of a script on top of the script on top of a script => developers see "all scripts" and can simplify the program)

deal with errors: (its okay to have network problems, server failures, how is the structure? simple point of stupidity) (there is more between OKAY and ERROR) (QUEUE!)

mysql is for "web scale": focus on treasures on that products are made for (compare all and real features!)

alerting => (whats to deal with service error, notify team nagios or team pager? - sms, email, jabber?) - notify the persons who can fix the problems!

updates (the more frequent you update or change the smaller long-term risc you have on an every update can cause problems)

something new? (be an inventor? NO - or use something that already exists!)

knowledge silus (responsibility for services - nobody sees the whole structure! - silos build walls!, )

netboot (do not netboot all things - it doesn't scale!)

logging (analyze log (logstash) or >/dev/null, disable debug log on production!)

network - free for all (split it, dont wanna have broadcasts from printers, clients, )

multi-site (have it or use it, decentral backup)

test backups (i don't mean delete production data!)

desaster recovery + test plans






Sonntag, 7. Oktober 2012

chrome OS und owncloud fürs heimoffice

die anleitung in worte

vorbereitungen zum setup: pakete installieren:
(suse yast center. apache, und ein paar php abhängigkeiten)

ich hab den ganzen quellcode auf /srv/www/htdocs/owncloud entpackt

das webinterface fordert dann zum anlegen eines users auf (ich josy => im bild blau unterstrichen)

hab dann von meinem windows client aus auf den server verbunden und einen syncordner eingerichtet.
(grade mal 12 gb zum testen)

owncloud hat dann sofort gemeldet! zeit passt nicht bitte zeit richtig einstellen.
=> hab auf dem chromeos im systemconfig tool die zeit auf zeitserver gestellt.  und auf dem windows system ebenfalls die zeit überprüft.

dann hat der sync gestartet und die dateien sind sofort im webportal aufgetaucht!

ich würd sage. coole runde sache das owncloud!

screens




quelle anleitung: http://owncloud.org/support/install/


technische details fürs chromeos setup:

mkdir /var/lib/systemd/migrated #(für apache install  erforderlich?)
chkconfig apache2 on # apache autostart
/srv/www/htdocs/owncloud #pfad zum entpacken (hab ich verwendet)  "Latest stable release" (407)
chown -R wwwrun.www /srv/www/htdocs/owncloud # berechtigungen für apache setzen
 vi /etc/php5/apache2/php.ini # (diverse max post & filesizes)
- firewall abdrehen # (heiminstallation)
- zeitserver einschalten # (zb 0.europe.pool.ntp.org bzw 0.at.pool.ntp.org)
- setupdauer ca. 90 min. (mit protokoll)

abhängigkeiten:
apache, php5, paar php module, nosql, (ggf. mysql postgresql?), zeitsynchrone geräte!

aufgetauchte fragen:("For larger installs you should use MySQL or PostgreSQL.") => was bedeutet large installs - wieviele dateien oder speicher?)

zb: ornder derzeit 7GB, owncloud.db 528kb (ca. 1500 bilder)


was tu ich nun damit?

verteilte bilddaten über 2 oder 3 computer :-) *genial*
ich hab einen archivserver für bilder.
über 2 clients/notebooks können dann bilder ausgetauscht werden und werden aussynchronisiert. im lokalen lan dann auch ordentlich schnell.
zum trennen kann man ja noch 2 user anlegen
? 2 und mehr user - zugriff auf "shared" files? 
...


Montag, 7. Mai 2012

google mail cleanup old / unwanted stuff


  • create a label for all "unwanted" stuff: 31_days
  • create a filter for unwanted keywords or senders and mark it with the label "31_days"
  • do a search for the "old stuff" with:
    before:2012/1/1 label:31_days label:inbox
  • select "select all konversation"
  • move to trash

Mittwoch, 4. April 2012

wordpress cas and authenticated ldap

PLUGIN: http://wordpress.org/extend/plugins/wpcas-w-ldap/

to use this plugin with authenticated ldap servers:

file: "wpcas-w-ldap.php"

# OLD:
# $bind = @ldap_bind($ds);
#           gugler2012040410000186
# NEW:
            $bind = @ldap_bind($ds, $wpcasldap_use_options['AuthLDAPBindDN'], $wpcasldap_use_options['AuthLDAPBindPassword']);


config file: "wpcasldap-conf.php"


$wpcasldap_options = array (
    ...
    'AuthLDAPBindDN' => "cn=binduser,ou=unit,dc=domain,dc=tld",

    'AuthLDAPBindPassword' => "password",
    ...


Donnerstag, 22. März 2012

iphone enterprise

configurationsmanagement für apple geräte, dass auch funktioniert:
"das iphone konfigurationsprogramm"
inventarisierung, paketverwaltung, policy's, PKI,

beispiele:

  • wlan zugänge vordefinieren
  • zertifikate der internen PKI hinterlegen
  • passwort/code regeln
  • ... uvm ...


http://www.apple.com/support/iphone/enterprise/
http://help.apple.com/iosdeployment-ipcu/