Autostart opendj CentOS

Posted Posted in tech

https://backstage.forgerock.com/knowledge/kb/book/b73824898#a56766667 cd /etc/systemd/system vim opendj.service [Unit] Description=opendj LDAP Server After=network.target remote-fs.target nss-lookup.target [Service] Type=forking PIDFile=/opt/opendj/logs/server.pid ExecStart=/opt/opendj/bin/start-ds –quiet ExecStop=/opt/opendj/bin/stop-ds –quiet PrivateTmp=true LimitNOFILE=infinity [Install] WantedBy=multi-user.target systemctl enable opendj.service systemctl start opendj.service systemctl stop opendj.service

Autostart IBM HTTP Server CentOS

Posted Posted in tech

http://publib.boulder.ibm.com/httpserv/ihsdiag/startstop_questions.html#how-do-i-start-ihs-during-the-linux-boot-process cd /etc/systemd/system vim ihs.service [Unit] Description=IBM HTTP Server After=network.target remote-fs.target nss-lookup.target [Service] Type=forking PIDFile=/opt/IBM/HTTPServer/logs/httpd.pid ExecStart=/opt/IBM/HTTPServer/bin/apachectl start -d /opt/IBM/HTTPServer ExecStop=/opt/IBM/HTTPServer/bin/apachectl graceful-stop ExecReload=/opt/IBM/HTTPServer/bin/apachectl graceful PrivateTmp=true LimitNOFILE=infinity [Install] WantedBy=multi-user.target vim ihsadmin.service [Unit] Description=IBM HTTP Administration Server After=network.target remote-fs.target nss-lookup.target [Service] Type=forking PIDFile=/opt/IBM/HTTPServer/logs/admin.pid ExecStart=/opt/IBM/HTTPServer/bin/adminctl start ExecStop=/opt/IBM/HTTPServer/bin/adminctl stop PrivateTmp=true LimitNOFILE=infinity [Install] WantedBy=multi-user.target   systemctl enable ihs.service systemctl start ihs […]

Centos 7 Installation

Posted Posted in tech

yum -y install binutils bind-utils compat-db.x86_64 compat-libstdc* compat-libstdc++-33.i686 compat-libstdc++-33.x86_64 elfutils-libelf elfutils-libelf-devel elfutils-libs.i686 elfutils-libs.x86_64 elfutils.x86_64 firefox ftp gcc gcc-c++ glibc-common glibc-devel glibc-headers glibc* gtk2-engines.x86_64 gtk2.i686 gtk2.x86_64 kernel-devel kernel-headers ksh ksh.x86_64 libaio libaio-devel libaioi libcanberra-gtk2.x86_64 libcyanberra-gtk2.i686 libgcc.i686 libgcc.x86_64 libgcc* libstdci libstdc++.i686 libstdc++.x86_64 libXft.i686 libXft.x86_64 libXmu.i686 libXmu.x86_64 libXp libXp.i686 libXp.x86_64 libXpi libXtst.i686 libXtst.x86_64 make mc mlocate net-tools ntp […]

postfix macos high sierra

Posted Posted in tech

sudo vim /etc/postfix/main.cf message_size_limit = 10485760 mailbox_size_limit = 0 biff = no smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated permit recipient_delimiter = + tls_random_source = dev:/dev/urandom #smtpd_tls_ciphers = medium myhostname = mail.hensler.net mydomain = hensler.net myorigin = $mydomain #inet_interfaces = $myhostname, localhost mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,mail.$mydomain mynetworks = 127.0.0.0/8 smtpd_banner = $myhostname smtpd_use_tls= yes smtp_use_tls = […]

dnsmasq macos high sierra

Posted Posted in tech

brew install dnsmasq   sudo vim /usr/local/etc/dnsmasq.conf bogus-priv local=/lan.hensler.net/ domain=lan.hensler.net expand-hosts listen-address=127.0.0.1 listen-address=10.0.29.150   sudo vim /etc/hosts ## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost 10.0.29.60 hostname   /etc/resolv.conf domain lan.hensler.net […]

openldap macos High Sierra

Posted Posted in tech

sudo vim /etc/openldap/slapd.conf include /private/etc/openldap/schema/core.schema include /private/etc/openldap/schema/cosine.schema include /private/etc/openldap/schema/inetorgperson.schema pidfile /private/var/db/openldap/run/slapd.pid argsfile /private/var/db/openldap/run/slapd.args database bdb suffix “dc=hensler,dc=local” rootdn “cn=manager,dc=hensler,dc=local” rootpw {SSHA}DXreBCiCpU1sH728ubClNXpHblzw80Wo directory /private/var/db/openldap/openldap-data index objectClass eq cachesize 2000 sudo vim /etc/openldap/sample.ldif version: 1 dn: dc=hensler,dc=local objectClass: top objectClass: dcObject objectClass: organization dc: hensler o: Some Org description: A sample domain dn: ou=people,dc=hensler,dc=local objectClass: top objectClass: […]

chroot macos High Sierra

Posted Posted in tech

create standard user sftpusr allow ssh remote login for sftpusr sudo vim /etc/ssh/sshd_config # override default of no subsystems # Subsystem sftp /usr/libexec/sftp-server #Subsystem sftp internal-sftp -l VERBOSE -f LOCAL3 Subsystem sftp internal-sftp Match User sftpusr X11Forwarding no AllowTcpForwarding no ForceCommand internal-sftp ChrootDirectory /chroot/%u run command sudo mkdir /chroot sudo mkdir /chroot/bin sudo cp /bin/bash […]

wordpress macos High Sierra

Posted Posted in tech

sudo vim /etc/apache2/httpd.conf ServerName localhost:80 DocumentRoot “/Users/bhr/Sites” <Directory “/Users/bhr/Sites”> Options FollowSymLinks Multiviews MultiviewsMatch Any AllowOverride None Require all granted </Directory> LoadModule php7_module libexec/apache2/libphp7.so LoadModule perl_module libexec/apache2/mod_perl.so LoadModule userdir_module libexec/apache2/mod_userdir.so LoadModule include_module libexec/apache2/mod_include.so LoadModule rewrite_module libexec/apache2/mod_rewrite.so LoadModule vhost_alias_module libexec/apache2/mod_vhost_alias.so LoadModule socache_shmcb_module libexec/apache2/mod_socache_shmcb.so LoadModule ssl_module libexec/apache2/mod_ssl.so Include /private/etc/apache2/extra/httpd-userdir.conf Include /private/etc/apache2/extra/httpd-vhosts.conf Include /private/etc/apache2/extra/httpd-ssl.conf sudo vim /private/etc/apache2/extra/httpd-userdir.conf Include /private/etc/apache2/users/*.conf […]

Ubuntu Installation

Posted Posted in tech

sudo ufw disable selinux not installed by default sudo vim /etc/network/interfaces auto enp0s25 iface enp0s25 inet static address 10.0.29.60 netmask 255.255.255.0 gateway 10.0.29.1 dns-nameservers 62.2.17.60 sudo passwd root sudo sed -i ‘s/#PermitRootLogin prohibit-password/PermitRootLogin yes/’ /etc/ssh/sshd_config sudo service ssh restart sudo vim /etc/security/limits.conf *    soft    nofile 65536 *    hard    nofile 65536 sudo vim /etc/environment LANG=en_US.utf-8 LC_ALL=en_US.utf-8

ffmpeg CentOS 7

Posted Posted in tech

https://gist.github.com/mustafaturan/7053900   To send videos with WhatsApp run ffmpeg with following codecs: ffmpeg –i “original–file.mp4” –vcodec libx264 –acodec aac “output–file.mp4”

IBM’s launchpad doesn’t start, Firefox version

Posted Posted in tech

Firefox starts with a chrome://*.xul URL, which is a reference to a Add-On extension in Mozilla-derivative browsers. Firefox as of version 43 blocks automated installation of unsigned extensions. IBM’s commonlaunchpad xpi extension (found in the extensions directory of the new Profile being used by launchpad.sh) is unsigned. To workaround this downgrade Firefox with a version […]

CentOS 7 postfix, dovecot mail server; forwarder

Posted Posted in tech

postfix https://www.server-world.info/en/note?os=CentOS_7&p=mail #virtual_alias_domains = hensler.net virtual_alias_maps = hash:/etc/postfix/virtual ADD forwarder addresses vi /etc/postfix/virtual postmap /etc/postfix/virtual service postfix restart dovecot https://www.server-world.info/en/note?os=CentOS_7&p=mail&f=2 DNS hensler.net. A xxx.xxx.xxx.xxx hensler.net. MX 10 mail.hensler.net mail.hensler.net. CNAME hensler.net wordpress.hensler.net. A xxx.xxx.xxx.xxx ROUTER 25,110,143,80,443 FIREWALL https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-using-firewalld-on-centos-7 systemctl stop firewalld.service firewall-cmd –zone=public –permanent –add-service=http firewall-cmd –zone=public –permanent –add-service=https firewall-cmd –add-service=smtp –permanent firewall-cmd –add-port={110/tcp,143/tcp} –permanent […]

mount nfs volumes (OSXFUSE) at startup using launchAgent

Posted 1 CommentPosted in tech

sudo vim /Users/bhr/Library/LaunchAgents/com.mmac.useragent.plist <?xml version=”1.0″ encoding=”UTF-8″?> <!DOCTYPE plist PUBLIC “-//Apple//DTD PLIST 1.0//EN” “http://www.apple.com/DTDs/PropertyList-1.0.dtd”> <plist version=”1.0″> <dict>         <key>KeepAlive</key>         <true/>         <key>Label</key>         <string>com.mmac.useragent</string>         <key>Program</key>         <string>/Users/bhr/startUp/bindfs.sh</string>         <key>RunAtLoad</key>         <true/>         <key>StandardErrorPath</key>         <string>/tmp/com.mmac.startup.stderr</string>         <key>StandardOutPath</key>         <string>/tmp/com.mmac.startup.stdout</string> </dict> </plist> sudo vim /Users/bhr/startUp/bindfs.sh #!/bin/bash sudo /usr/local/bin/bindfs -r -g SFTPGroup /Volumes/DATACUBE/Media/Movies/ /chroot/sftp/movies sudo /usr/local/bin/bindfs […]

vmrun

Posted Posted in tech

vim .bash_profile export PATH=$PATH:/Applications/VMware\ Fusion.app/Contents/Library/ POWER COMMANDS           PARAMETERS           DESCRIPTION ————–           ———-           ———– start                    Path to vmx file     Start a VM or Team                          [gui|nogui] stop                     Path to vmx file     Stop a VM or Team                          [hard|soft] reset                    Path to vmx file     Reset a VM or Team                          [hard|soft] suspend                  Path to vmx file     Suspend a […]

Samba Server Installation Centos 7

Posted Posted in tech

https://www.howtoforge.com/samba-server-installation-and-configuration-on-centos-7 yum install samba samba-client samba-common vi /etc/samba/smb.conf [global]         workgroup = WORKGROUP         server string = CNX5 Samba Server %v         netbios name = CNX5         security = user         map to guest = bad user         dns proxy = no [IBM]         path = /opt/IBM         valid users = root         browsable =yes […]

Autostart IBM HTTP Server

Posted Posted in tech

vi /etc/init.d/ihs #!/bin/bash # SERVICENAME should match this filename SERVICENAME=$(basename $0) LOCKFILE=”/var/lock/subsys/${SERVICENAME}” APACHECTL=/opt/IBM/HTTPServer/bin/apachectl # The next lines are for chkconfig on RedHat systems. # chkconfig: 2345 98 02 # description: Starts and stops IHS # The next lines are for chkconfig on SuSE systems. ### BEGIN INIT INFO # Provides: IHS_61.1 # Required-Start: $network $syslog […]

Autostart WebSphere Servers

Posted Posted in tech

Deployment Manager cd /opt/IBM/WebSphere/AppServer/bin/ ./wasservice.sh -add dmgr -serverName dmgr -profilePath /opt/IBM/WebSphere/AppServer/profiles/Dmgr01 service dmgr_was.init stop service dmgr_was.init start service dmgr_was.init status NodeAgent ./wasservice.sh -add node01 -serverName nodeagent -profilePath /opt/IBM/WebSphere/AppServer/profiles/AppSrv01 service node01_was.init stop service node01_was.init start service node01_was.init status #To have the node agent automatically start the Appserver JVM, set the Monitoring Policy of each JVM to […]

IBM Docs

Posted Posted in tech

http://www-01.ibm.com/support/docview.wss?uid=swg24039355 http://www-01.ibm.com/support/knowledgecenter/SSFHJY/welcome IBM Connections cnx5.sites IBM Connections 5 CR3 (CentOS 7) Conversion, Docs, Viewer cnxDocs.sites IBM Connections Docs 1.0.7 (Windows 2008 R2) create LCUSER db2set DB2CODEPAGE=1208 db2stop force db2start create database (cnx5.sites) createDb.bat updateDBSchema.bat db2 -td@ -vf appGrants.sql install Python disable Netbios disable TCPIP Netbios Helper FNCMIS If you want Docs to work with CCM libraries, […]

IBM Connections 5 Centos 7

Posted Posted in tech

Installation Manager 64bit yum install gtk2 yum install libXtst Download IBM Connections 5 http://www-01.ibm.com/support/docview.wss?uid=swg24037654   CCM CLFRP0038E: IBM Connections Content Manager failed to be configured on WebSphere Application Server. Error Step : Step “action-config-fncs-ccm” >> install ksh (korn shell) IHS grouped ihsgrp useradd -g ihsgrp -s/bin/bash -d /home/ihsadmin -m ihsadmin setupadm -create -usr ihsadmin -grp […]

IBM Domino 9 Centos 7

Posted Posted in tech

DOMINO 9.0.1 yum install glibc-2.*.i686 libgcc-4*.i686 libXtst-1.*.i686 libXmu-1.*.i686 libXp-1.*.i686 libXft-2.*.i686 libXi-1.*.i686 libstdc++-4.*.i686 groupadd notes useradd -g notes -s/bin/bash -d /home/notes -m notes passwd notes vim /etc/security/limits.conf *    soft    nofile 65536 *    hard    nofile 65536 /opt/ibm/domino/bin/server -listen #rc_domino Copy rc_domino_script into /opt/ibm/domino Copy rc_domino into /etc/init.d, check variable DOMINO_START_SCRIPT Copy domino.service into /etc/systemd/system chmod 755 rc_domino_script […]

Netatalk (Open Source AFP implementation) Centos 7

Posted Posted in tech

Install yum -y install netatalk avahi dbus nss-mdns chkconfig netatalk on chkconfig messagebus on chkconfig avahi-daemon on adduser afp passwd afp vi /etc/netatalk/afpd.conf “hostname” -tcp -noddp -uamlist uams_dhx.so,uams_dhx2.so -nosavepassword vi /etc/netatalk/AppleVolumes.default :DEFAULT: “HTTPD” allowed_hosts:10.0.29.0/24 allow:afp rwlist:afp options:upriv,usedots dperm:0770 fperm:0660 ~ “HOME” /var/www/html/ “HTML” vi /etc/nsswitch.conf hosts:      files mdns4_minimal dns mdns mdns4 vi /etc/avahi/services/afpd.service […]

Bertolt Brecht: Legende vom toten Soldaten

Posted Posted in something

Und als der Krieg im vierten LenzKeinen Ausblick auf Frieden botDa zog der Soldat seine KonsequenzUnd starb den Heldentod. Der Krieg war aber noch nicht garDrum tat es dem Kaiser leidDaß sein Soldat gestorben war:Es schien ihm noch vor der Zeit. Der Sommer zog über die Gräber herUnd der Soldat schlief schonDa kam eines Nachts […]

aha

Posted Posted in something

Château Lafite-Rothschild – 2014 Pauillac    – 1er grand cru classé Tiefes Purpur. Intensives und komplexes Bouquet mit Sauerkirsche und Cassis sowie Zeder, Lakritz und Zimt. Dazu kommen leichte und Frische verleihende Eukalyptus Nuancen. Eleganter, subtiler und feiner Gaumenauftakt. Der Wein ist vollmundig aber auch erfrischend. Schönes Zusammenspiel zwischen Komplexität, Kraft und Finesse. Dieser Lafite hat […]

iTunes library on external drive; iCloud Music; sharing across multiple devices

Posted Posted in tech

iTunes “master library” (bhr’s library) create new library with default values on local disk add Music to your iTunes library enable iCloud Music Library in preferences, wait for sync to complete recreate new library = (1) enable iCloud Music library change iTunes media folder location to external drive add movies, apps, videos etc. enable sharing […]

add mime-type to WordPress

Posted Posted in tech

WP Add Mime Types functions.php add_filter(‘upload_mimes’,’add_custom_mime_types’); function add_custom_mime_types($mimes){ return array_merge($mimes,array ( ‘ac3’ => ‘audio/ac3’, ‘mpa’ => ‘audio/MPA’, ‘flv’ => ‘video/x-flv’, ‘svg’ => ‘image/svg+xml’ )); }

WordPress Setup

Posted Posted in tech

WordPress Installation SEP 2016 CentOS 7 epel-release httpd mysqld php 7 phpmyadmin addtl. modules php70w-mysql, php70w-gd PHP7: http://idroot.net/tutorials/how-to-install-php-7-on-centos-7/ WordPress: https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-centos-7 OS cat /etc/redhat-release CentOS release 6.6 (Final) vi /etc/sysconfig/network NETWORKING=yes HOSTNAME=wordpress.sites vi /etc/selinux/config disable service iptables save service iptables stop chkconfig iptables off vi /etc/sysctl.conf net.ipv6.conf.all.disable_ipv6 = 1 yum install mc wget unzip xclock xauth […]

L2TP VPN Server on Mac OS X Yosemite

Posted Posted in tech

create configuration file man 5 vpnd | col -b > /Users/bhr/com.apple.RemoteAccessServers.plist copy configuration file sudo cp /Users/bhr/com.apple.RemoteAccessServers.plist /Library/Preferences/SystemConfiguration/com.apple.RemoteAccessServers.plist sudo chmod 644 /Library/Preferences/SystemConfiguration/com.apple.RemoteAccessServers.plist sudo chown root:wheel /Library/Preferences/SystemConfiguration/com.apple.RemoteAccessServers.plist edit configuration file sudo vi /Library/Preferences/SystemConfiguration/com.apple.RemoteAccessServers.plist <key>com.apple.ppp.l2tp</key> <dict> <key>DNS</key> <dict> <key>OfferedSearchDomains</key> <array> <string></string> </array> <key>OfferedServerAddresses</key> <array> <string>xxx.xxx.xxx.xxx</string> <string>xxx.xxx.xxx.xxx</string> </array> </dict> <key>IPSec</key> <dict> <key>AuthenticationMethod</key> <string>SharedSecret</string> <key>IdentifierVerification</key> <string>None</string> <key>LocalCertificate</key> <data> </data> <key>LocalIdentifier</key> […]

format SD card using diskutil

Posted Posted in tech

diskutil list /dev/disk0    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      GUID_partition_scheme                        *251.0 GB   disk0    1:                        EFI EFI                     209.7 MB   disk0s1    2:                  Apple_HFS imac HD                 250.1 GB   disk0s2    3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3 /dev/disk2    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      GUID_partition_scheme                        *15.9 GB    disk2    1:                        EFI EFI                     […]

Bürokratie

Posted Posted in something

Von den 10 Geboten reichen drei, um ein moralisch einwandfreies Leben zu führen: Morde nicht Stehle nicht Lüge nicht Der Rest ist Bürokratie; zur Erinnerung: Du sollt keine anderen Götter haben neben mir. Du sollst den Namen des Herrn nicht missbrauchen. Du sollst den Feiertag heiligen. Du sollst deinen Vater und deine Mutter ehren. Du […]

Schweizer

Posted Posted in something

Schweiz-Tipps Das ‘kleine Einmaleins’ für den Schweiz-Besucher Allgemeines Die Schweizer bringen unter ein ‘Sennechäppli’, was normale Menschen nicht einmal unter einen Sombrero brächten. Das wesentliche Merkmal des Kantons Aargau ist es, dass er zwischen Zürich, Basel und Bern liegt. Wenn die Welt untergeht heisst das noch lange nicht, dass das die Schweiz auch betrifft. ”Unser […]

Zinedin’s Abgang

Posted Posted in something

korrekt ! Die Wortwahl mindestens so gewaltig wie der Kopfstoss.   Lippenleser wollen nach Ansicht der TV-Bilder von dem Kopfstoss herausgefunden haben, dass Materazzi zu Zidane sagte: “Sohn einer Terroristen-Hure”. Der “Daily Mirror” zitiert Zidanes Mutter Malika daraufhin mit den Worten: “Wenn er das wirklich gesagt hat, möchte ich seine Eier auf dem Tablett serviert […]

vi commands

Posted Posted in tech

Undo Command u undo the last command. Screen Commands CTL/l Reprints current screen. CTL/L Exposes one more line at top of screen. CTL/E Exposes one more line at bottom of screen. CTL/F Pages forward one screen. CTL/B Pages back one screen. CTL/D Pages down half screen. CTL/U Pages up half screen. Cursor Positioning Commands j […]

Das Theodizeeproblem

Posted Posted in something

Das Theodizeeproblem besteht, logisch gesehen, im Widerspruch zwischen zwei Aussagen. Auf der einen Seite steht die Annahme, dass Gott allgütig, allwissend und allmächtig ist; auf der anderen die Erfahrung, dass es Übel bzw. Böses in der Welt gibt. Darum können Lösungen des Problems nur darin zu suchen sein, eine der beiden Annahmen auf irgendeine Weise […]

unix commands

Posted Posted in tech

*SEARCH find / -name *searchText* find . | xargs grep ‘zip’ *XSERVER in cygwin (startxwin.bat): xhost (SERVER IP ADDR) of XServer (AIX, Linux ..) *PS ps -ef | grep a* *X11 in Telnet session (PUTTY) of XServer: export DISPLAY=(CLIENT IP ADDR):0.0 in SSH session MAC OS X: xQuartz starten ssh -X root@xxx.xxx.xxx.xxx //xclock sollte ohne […]

Stufen

Posted Posted in something

Wie jede Blüte welktund jede Jugend dem Alter weicht,blüht jede Lebensstufe,blüht jede Weisheit auch und jede Tugendzu ihrer Zeit und darf nicht ewig dauern.Es muss das Herz bei jedem Lebensrufebereit zum Abschied sein und Neubeginne,um sich in Tapferkeit und ohne Trauernin and’re, neue Bindungen zu geben.Und jedem Anfang wohnt ein Zauber inne, der uns beschützt […]

the road not taken

Posted Posted in something

Two roads diverged in a yellow wood,And sorry I could not travel bothAnd be one traveler, long I stoodAnd looked down one as far as I couldTo where it bent in the undergrowth; Then took the other, as just as fair,And having perhaps the better claim,Because it was grassy and wanted wear;Though as for that […]