Posts

Showing posts from April, 2014

Zabbix 2.2 on gentoo Install Notes

Image
https://www.zabbix.com/wiki/howto/install/gentoo/gentoo https://www.zabbix.com/wiki/howto/install/centos/centosinstall ZABBIX  package  /etc/portage/package.use net-analyzer/zabbix agent frontend mysql server ssh # required by net-analyzer/zabbix-2.2.2-r1[frontend] # required by zabbix (argument) >=dev-lang/php-5.5.11:5.5 xmlwriter sysvipc apache2 bcmath gd sockets xmlreader mysql mysqli threads # required by dev-lang/php-5.5.11 # required by net-analyzer/zabbix-2.2.2-r1[frontend] # required by zabbix (argument) >=app-admin/eselect-php-0.7.1-r3 apache2 >=www-servers/apache-2.4.9-r2 threads emerge -a zabbix MYSQL if the mysql is fresh install do emerge –config =dev-db/mysql-5.5.32  # this should also ask u to create mysql root password ~ # systemctl start mysqld  ~ # systemctl enable mysqld mysql -u root -p mysql> use mysql; mysql>  CREATE DATABASE `zabbix` DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; mysql>  USE zabbix; mysql&g

app-emulation/vmware-modules-279.2::gentoo failed

Image
vmware-modules-279.2.ebuild pastebin.com/jzNZUqax files -rw-r--r-- 1 risko risko 5000 Apr 12 21:01 279-linux-3.14.patch http://pastebin.com/fpwy6Vmf -rw-r--r-- 1 root  root  2380 Apr 12 21:01 279-vmblock-3.11.patch http://pastebin.com/699BTUiW -rw-r--r-- 1 root  root  2572 Apr 12 21:01 279-vmblock-3.12.patch http://pastebin.com/NxKs4vNx cp files/* /usr/portage/app-emulation/vmware-modules/files/ cp vmware-modules-279.2.ebuild /usr/portage/app-emulation/vmware-modules/ ebuild /usr/portage/app-emulation/vmware-modules/vmware-modules-279.2.ebuild digest

plex media server systemd

cat /etc/systemd/system/pms.service [Unit] Description=Plex Media Server for Linux After=network.target [Service] Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/var/lib/plexmediaserver/Library/Application Support" Environment=PLEX_MEDIA_SERVER_HOME=/usr/lib/plexmediaserver Environment=PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6 Environment=PLEX_MEDIA_SERVER_TMPDIR=/tmp Environment=LD_LIBRARY_PATH=/usr/lib/plexmediaserver Environment=LC_ALL=en_US.UTF-8 Environment=LANG=en_US.UTF-8 ExecStartPre=/bin/sh -c '/usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}"' ExecStart=/bin/sh -c '/usr/lib/plexmediaserver/Plex\ Media\ Server' Type=simple User=plex Group=plex Restart=on-failure RestartSec=5 StartLimitInterval=60s StartLimitBurst=3 [Install] WantedBy=multi-user.target

emerge failed app-emulation/vmware-modules-279.1-r1

put these into folder named files. -rw-r--r-- 1 risko risko 5000 Apr 12 21:01 279-linux-3.14.patch http://pastebin.com/fpwy6Vmf -rw-r--r-- 1 root  root  2380 Apr 12 21:01 279-vmblock-3.11.patch http://pastebin.com/699BTUiW -rw-r--r-- 1 root  root  2572 Apr 12 21:01 279-vmblock-3.12.patch http://pastebin.com/NxKs4vNx -rw-r--r-- 1 root  root  1190 Apr 12 21:01 279-vmnet-3.13.patch http://pastebin.com/2DFip3cX get the updated ebuild file vmware-modules-279.1-r1.ebuild http://pastebin.com/PgXmxhyU cp files/* /usr/portage/app-emulation/vmware-modules/files/ cp vmware-modules-279.1-r1.ebuild /usr/portage/app-emulation/vmware-modules/ ebuild /usr/portage/app-emulation/vmware-modules/vmware-modules-279.1-r1.ebuild digest

zabbix server on Scientific Linux 6.5

yum install wget wget http://mirror.switch.ch/ftp/mirror/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -ivh epel-release-6-8.noarch.rpm yum install ntp ntpdate ch.pool.ntp.org date yum install yum-plugin-fastestmirror yum install open-vm-tools yum install zabbix22-server-mysql zabbix22-web-mysql zabbix22-agent yum install mysql-server chkconfig mysqld on service mysqld start /usr/bin/mysql_secure_installation mysql -uroot -p****** cd /usr/share/zabbix-mysql/ mysql -uroot -p****** zabbix < schema.sql mysql -uroot -p****** zabbix < images.sql mysql -uroot -p****** zabbix < data.sql vi /etc/zabbix/zabbix_server.conf service zabbix-server start vi /etc/httpd/conf.d/zabbix.conf  service httpd restart iptables -L -v chkconfig zabbix-server on service start zabbix-agent  vi /etc/selinux/config  reboot service httpd start chkconfig httpd on /sbin/service iptables save  vi /etc/sysconfig/iptables iptables-restore /etc/s

zabbix agent on gentoo

add Use Flag agent antec ~ # grep zabb /etc/portage/package.use net-analyzer/zabbix agent emerge -a zabbix For some reason the conf file is expected in /etc antec ~ # cp /etc/zabbix/zabbix_agentd /etc/zabbix_agentd.conf antec ~ # ls -l /etc/zabbix_agentd.conf        -rw-r----- 1 zabbix zabbix 7015 Apr 13 23:40 /etc/zabbix_agentd.conf antec ~ # grep -s 192 /etc/zabbix_agentd.conf Server=192.168.192.200 Also had to cread zabbix dir in /run mkdir /run/zabbix chown zabbix:zabbix /run/zabbix systemctl start zabbix-agentd

nfs v4 server client autofs gentoo

https://wiki.gentoo.org/wiki/NFSv4 https://wiki.archlinux.org/index.php/NFS Server CONFIG_NFSD=y CONFIG_NFSD_V3=y # CONFIG_NFSD_V3_ACL is not set CONFIG_NFSD_V4=y # CONFIG_NFSD_FAULT_INJECTION is not set CONFIG_NFS_COMMON=y antec ~ # cat /etc/exports /export                 192.168.192.0/24(rw,fsid=0,no_subtree_check) /export/sata1           192.168.192.0/24(rw,nohide,no_subtree_check) /export/sata2           192.168.192.0/24(rw,nohide,no_subtree_check) antec ~ # cat /etc/fstab | grep export /misc/sata1 /export/sata1 none    bind  0  0 /misc/sata2 /export/sata2 none    bind  0  0 antec ~ # grep sata /etc/autofs/auto.misc  sata1 -fstype=ext4,rw :UUID="d4100459-eb46-4dd6-8856-1726d654e7b2" sata2 -fstype=ext4,rw :UUID="9c0c1c0d-43ee-4f60-b7cb-367c5062da47" nfsd.service                                enabled  rpc-idmapd.service                          enabled  rpc-mountd.service                          ena

Failed to emerge app-emulation/vmware-modules-279.1

/usr/src/linux-3.14.0-gentoo/Makefile:1274: recipe for target '_module_/var/tmp/portage/app-emulation/vmware-modules-279.1/work/vmblock-only' failed make[2]: *** [_module_/var/tmp/portage/app-emulation/vmware-modules-279.1/work/vmblock-only] Error 2 Makefile:133: recipe for target 'sub-make' failed make[1]: *** [sub-make] Error 2 make[1]: Leaving directory '/usr/src/linux-3.14.0-gentoo' Makefile:130: recipe for target 'vmblock.ko' failed make: *** [vmblock.ko] Error 2  * ERROR: app-emulation/vmware-modules-279.1::gentoo failed (compile phase):  *   emake failed  *  * If you need support, post the output of `emerge --info '=app-emulation/vmware-modules-279.1::gentoo'`,  * the complete build log and the output of `emerge -pqv '=app-emulation/vmware-modules-279.1::gentoo'`.  * The complete build log is located at '/var/tmp/portage/app-emulation/vmware-modules-279.1/temp/build.log'.  * The ebuild environment file is locat

VMware Workstation 10 systemd Server service /etc/systemd/system/vmware-workstation-server.service 

app-emulation/vmware-workstation 10.0.2.1744117 app-emulation/vmware-modules 279.2 antec ~ # uname -a Linux antec 3.14.1-gentoo-phenomx4-2014-04-17 #1 SMP Fri Apr 18 09:28:39 CEST 2014 x86_64 AMD Phenom(tm) II X4 965 Processor AuthenticAMD GNU/Linux modules patch found in  https://bugs.gentoo.org/show_bug.cgi?id=508204 antec ~ # cat /etc/systemd/system/vmware-workstation-server.service [Unit] Description=VMware Workstation Server Wants=vmware-authentication.service Wants=vmware.target [Service] Type=simple PIDFile=/var/run/vmware/vmware-hostd.PID #ExecStartPre=/opt/vmware/sbin/vmware-authdlauncher ExecStart=/opt/vmware/bin/vmware-hostd -a -d /etc/vmware/hostd/config.xml Restart=on-abort [Install] WantedBy=multi-user.target antec ~ # cat /etc/systemd/system/vmware-authentication.service     [Unit] Description=VMware Authentication Daemon After=vmware-vmnet.service PartOf=vmware.target [Service] Type=simple RemainAfterExit=yes ExecStart=/opt/vmwa

transmission https nginx

https://forum.transmissionbt.com/viewtopic.php?f=3&t=8163 http://www.cyberciti.biz/faq/nginx-self-signed-certificate-tutorial-on-centos-redhat-linux/ ~ # cat /etc/nginx/nginx.conf user nginx nginx; worker_processes 1; error_log /var/log/nginx/error_log info; events { worker_connections 1024; use epoll; } http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] ' '"$request" $status $bytes_sent ' '"$http_referer" "$http_user_agent" ' '"$gzip_ratio"'; client_header_timeout 10m; client_body_timeout 10m; send_timeout 10m; connection_pool_size 256; client_header_buffer_size 1k; large_client_header_buffers 4 2k; request_pool_size 4k; gzip on; gzip_min_length 1100; gzip_buffers 4 8k; gzip_types text/plain; output_buffers 1 32k; postpone_output 1460; sendfile on; tcp_nopu