Posts

dd-wrt adblock startup script

Image
#ww-wrt gui Administration-Commands-Save as StartUp #!/bin/sh logger WAN up script executing if test -s /tmp/hosts0 then         rm /tmp/hosts0 fi logger Downloading hosts file curl -k https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts | grep 0.0.0.0 |  sed 's/[[:space:]]*#.*$//g;' |  grep -v localhost | tr ' ' '\t' |  tr -s '\t' | tr -d '\015' | sort -u >/tmp/hosts0 grep addn-hosts /tmp/dnsmasq.conf ||  echo "addn-hosts=/tmp/hosts0" >>/tmp/dnsmasq.conf logger Restarting dnsmasq killall dnsmasq dnsmasq --conf-file=/tmp/dnsmasq.conf

Disable Touchpad on the Lenovo T530 while i use only trackpoint

Image
[risko@t520 ~]$ cat .e16/Init/disable-touchpad.sh #!/bin/sh xinput set-prop `xinput | grep "TouchPad" | gawk '{print $6}' | cut -c 4,5` "Device Enabled" 0

ASUS M4A88T-I Deluxe 16GB RAM 2x8GB DDR3 support and working fine

Image
BIOS Information Vendor: American Megatrends Inc. Version: 1201 Release Date: 07/27/2012 Base Board Information Manufacturer: ASUSTeK Computer INC. Product Name: M4A88T-I DELUXE Version: Rev X.0x Serial Number: 106050290000193 Processor Information Socket Designation: AM3 Type: Central Processor Family: Phenom II Manufacturer: AMD               ID: 43 0F 10 00 FF FB 8B 17 Signature: Family 16, Model 4, Stepping 3 Version: AMD Phenom(tm) II X4 965 Processor                   Voltage: 1.5 V External Clock: 200 MHz Max Speed: 3400 MHz Current Speed: 3400 MHz Status: Populated, Enabled Physical Memory Array Location: System Board Or Motherboard Use: System Memory Error Correction Type: None Maximum Capacity: 16 GB Error Information Handle: Not Provided Number Of Devices: 2 Memory Device Array Handle: 0x0027 Er...

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...

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