Tech notes and other stuff
https://j3ffrw.github.io/
Recent content on Tech notes and other stuffHugo -- gohugo.ioen-usSun, 19 Nov 2023 00:00:00 +0000Initial setup of Mikrotik Chateau 5G
https://j3ffrw.github.io/p514/
Sun, 19 Nov 2023 00:00:00 +0000https://j3ffrw.github.io/p514/Initial setup of Mikrotik Chateau 5G in preparation for Terraform management Notes on intial router settings:
default IP address is 192.168.88.1 both wireless and LAN ports 1 to 5 are assigned to same bridge. LTE modem is assigned as WAN port. Things to configure Admin credential Hostname Default wifi password Web console https Updating RouterOS and LTE modem firmware without a SIM card attached Admin credential After a config reset accessing the router webconsole or ssh you will be asked to give a password for admin Upload your ssh public key and assigned it to admin.Replace Tuya WB3s base IR blaster with ESP-12F
https://j3ffrw.github.io/p513/
Thu, 01 Dec 2022 00:31:19 +0800https://j3ffrw.github.io/p513/After acquiring another Tuya compatible IR blaster from the same brand/seller I found out that they no longer use an ESP chip. Instead they’ve opted to use Tuya’s WB3s chip. This is not compatible with ESPHome(at the time of this writing).
Luckily this module is a chip for chip replacement of most ESP8266 module like ESP-12F wb3s chip
Removal of WB3s module. I used bismuth to help me in the desoldering.Flashing Generic Tuya IR Blasters with ESPHome
https://j3ffrw.github.io/p512/
Thu, 01 Sep 2022 00:31:19 +0800https://j3ffrw.github.io/p512/Recently I had a need for a cheap IR Blaster for Home Assistant climate integration that doesn’t require a cloud to work. After a lengthy google search I found others were able to use a generic round Tuya IR blaster by reflashing them with ESPHome which suites my need. So I decided to get one for Php 390 in one of ecommerce site in my place. This one has a esp8266 chip.LRTimelapse timer free Max
https://j3ffrw.github.io/p511/
Sun, 15 Nov 2020 00:31:19 +0800https://j3ffrw.github.io/p511/Here’s my assembly guide for LRTimelapse timer free Max an intervalometer on steroids. Where to get one. Contact Hans/Sheeba at forum.lrtimelapse.com Hardware versions There are several versions of
LRTimelapse Pro Timer 3 and 2.511 , from the developer of LRTimelapse software, Gunther Wegner, this a commercial fully working unit, just buy the cable for your camera and off you go. Skip the rest of the article :p The Open Source free timer LRTimelapse timer free , also from Gunther, based on Arduino Uno and common LCD/button shield, source code LRTimelapse Pro Timer free Max, based on MEGA 2560 mini and common LCD/button shield.Make KSGER safe
https://j3ffrw.github.io/posts/2020-11-13-make_ksger_safe/
Fri, 13 Nov 2020 00:31:19 +0800https://j3ffrw.github.io/posts/2020-11-13-make_ksger_safe/Since this unit comes in different version and configuration you’ll need to make sure which of the changes apply to your unit.
This steps were performed on the the following configuration of Ksger T12 Soldering station.
Hardware Version 2.1S PSU version v2.DIY solder fume extractor
https://j3ffrw.github.io/p509/
Mon, 21 Sep 2020 00:31:19 +0800https://j3ffrw.github.io/p509/Most desktop solder fume extractor that is available doesn’t work well, to suck in the fumes they either need to be very close or need to be on top of the parts your soldering. The filter that came with those extractor doesn’t work either, they are too porous to be able to properly filter the fumes. As an alternative, I’ve repurposed an air purifier as a fume extractor by fitting it with an adjustable duct.Replacing a Leaking Plug Cylinder Head on a Honda Jazz GD1
https://j3ffrw.github.io/p508/
Tue, 01 Sep 2020 10:31:19 +0800https://j3ffrw.github.io/p508/To remove the plug you’ll need to pry it off little by little on all sides using a small flat screwdriver. Chances are the plastic is brittle and when you try to pry it on one side one of the tabs might break off and will fall inside which is bad.
Clean the dried oil on the surface of the hole, use a scrub pad if necessary.Formating Miniware DS213 v1.22 8MB Storage
https://j3ffrw.github.io/p507/
Mon, 31 Aug 2020 10:31:19 +0800https://j3ffrw.github.io/p507/I initially tried to format the DS213 v1.22 built-in 8MB storage on my linux machine but the files ended up unreadable after saving a few screenshots and CSV. The first method I tried was from the official forum. http://www.minidso.com/forum.php?mod=viewthread&tid=3342&highlight=format,
sudo dd of=/dev/sda if=/dev/zero status=progress sudo mkfs.fat -F 12 /dev/sda mkdir -p /tmp/p sudo mount /dev/sda /tmp/p -t msdos -o "fat=12" This essentially formats it to FAT12 but the files are unreadable or corrup once mounted.AC Cleaning
https://j3ffrw.github.io/p506/
Sat, 29 Aug 2020 10:31:19 +0800https://j3ffrw.github.io/p506/Now, normally I would hire a professional(someone who does this for a living) as it’s cheaper than paying my self on a per hour basis. But with this coronavirus spreading around in my area, the risk of having infected is greater than what I would be losing financially. I heard that you need at least Php 500K to get treated.
Cleaning your AC unit should be done at least once or twice a year specifically if it’s used daily.Integrate staticman to a hugo themes
https://j3ffrw.github.io/p505/
Wed, 12 Aug 2020 10:31:19 +0800https://j3ffrw.github.io/p505/Setup up backend related stuff: github, heruko, staticman(backend) https://travisdowns.github.io/blog/2020/02/05/now-with-comments.html#configuring-staticmanyml
Integrate staticman frontend to a hugo themes: post(single) https://dancwilliams.com/hugo-staticman-nested-replies-and-email-notifications/#
Note: things note covered above.
include the counterpart of staticman “path” to config.yml [data] comments = "data/comments/{options.entryId}" Ruckus Zap and Speedflex test setup
https://j3ffrw.github.io/p504/
Wed, 29 Jul 2020 10:31:19 +0800https://j3ffrw.github.io/p504/Buid zap tool. link Install Ruckus Speedlflex on Node #1 and #2.
Test basic connectivity between Node #1 and #2 using the app Speedflex itself .
On the control(laptop), run zap client
$ ./bin/linux/zap -s192.168.1.3 -d192.168.1.4 ./bin/linux/zap version 1.83, Copyright ( C ) 2004-2009 Ruckus Wireless, Inc. All Rights Reserved.Apache Benchmark cache buster
https://j3ffrw.github.io/p503/
Sat, 18 Apr 2020 00:10:00 +0800https://j3ffrw.github.io/p503/Allows ab to bypass or invalidate cdn/web cache by passing random parameters
Shortcut using docker https://github.com/j3ffrw/httpd/tree/cache_buster/2.4/alpine
Details of building Apache Benchmarch(httpd) from source Linux Mint 19.1
Build openssl wget https://www.openssl.org/source/old/1.1.1/openssl-1.1.1e.tar.gz tar xvzf openssl-1.1.1e.tar.gz cd openssl-1.1.1e mkdir /opt/ssl ./config --prefix=/opt/ssl --openssldir=/opt/ssl no-ssl2 shared zlib make -j4 make install Test openssl LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/ssl/lib /opt/ssl/bin/openssl version -a echo "" | LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/ssl/lib /opt/ssl/bin/openssl s_client -connect www.google.com:443 Build httpd 2.4.43 wget https://downloads.apache.org//httpd/httpd-2.4.43.tar.gz tar xvzf httpd-2.Migrating wordpress to Hugo
https://j3ffrw.github.io/p502/
Sun, 05 Jan 2020 00:10:00 +0000https://j3ffrw.github.io/p502/Use https://github.com/SchumacherFM/wordpress-to-hugo-exporter
Convert posts to page bundle https://gohugo.io/content-management/page-bundles/
cd content/posts find . -maxdepth 1 -type f | grep -v index | while read line; do echo $line; mkdir ${line%%\.md}; mv $line ${line%%\.md}/index.md;done Cleanup each post, convert image reference to shortcode equivalent vim search and replace snippets %s/^M//g %s/&gt;/>/g %s/&lt;/</g %s/\\_/_/g %s/&#8217;/'/g %s/&#8211;/-/g %s/<\/p>//g %s/<p>//g %s/</pre>//g %s/&#8220;/"/g %s/&#8221;/"/g %s/<br\ \/>//g Deploy at last. https://gohugo.io/hosting-and-deployment/hosting-on-github/ References:Determine w/c ssh public key was used to login
https://j3ffrw.github.io/p501/
Fri, 27 Apr 2018 15:10:00 +0000https://j3ffrw.github.io/p501/Generate fingerprint per key while read l; do [[ -n $l && ${l###} = $l ]] && ssh-keygen -l -f /dev/stdin <<<$l; done < .ssh/authorized_keys
Match fingerprint on /var/log/secure AUTHORIZED_FP=`while read l; do [[ -n $l && ${l###} = $l ]] && ssh-keygen -l -f /dev/stdin <<<$l; done < /home/centos/.ssh/authorized_keys 2>/dev/null | grep RSA` sudo cat /var/log/secure |grep "Accepted publickey" | while read line; do AUDIT_MESSAGE=`echo $line | awk -F" " '{print $1 " " $2 " " $3 " from " $11 " FP: " $16}'` AUDIT_FP=`echo $AUDIT_MESSAGE | awk -F" " '{print $7}'` #echo "$AUDIT_FP" MATCHED=`printf "$AUTHORIZED_FP" | grep -n $AUDIT_FP` if [[ "$?How to use Chipkit’s Max32 as USB Adapter for Xbee radios
https://j3ffrw.github.io/p485/
Wed, 01 Jan 2014 04:31:26 +0000https://j3ffrw.github.io/p485/Here’s an alternative way of hooking up your xbee to your computer using your existing Max32 or any 3.3V arduino-compatible boards.
Xbee to Max32 DOUT ------ 1(TX0) DIN ------ 0(RX0) VCC ------ 3.3V GND ------ GND RST to GND ( This is to deactivate the max32 mcu) Ref:
Arduino Uno to Xbee
Parallax XBee USB Adapter Board
http://www.parallax.com/product/32400
Using X-CTU on linux
http://lizard43.blogspot.com/2008/10/x-ctu-with-linux.html
Chipkit Max32 Schematics
http://www.digilentinc.com/Data/Products/CHIPKIT-MAX32/chipKIT%20Max32_bysa_sch.pdfOnline Electronics Shop/Seller in the Philippines
https://j3ffrw.github.io/p479/
Sat, 21 Dec 2013 18:25:03 +0000https://j3ffrw.github.io/p479/www.e-gizmo.com
www.circuit-help.com.ph
www.innovationph.com/
www.relixtechnologies.com/ http://www.tipidpc.com/useritems.php?username=relixtech
www.gadgetpinas.ph http://www.tipidpc.com/useritems.php?username=SOMASEGAR (Arduino’s and raspberry pi)
http://www.dynamodo.com
http://nipahut.com.ph/index.html
http://ph.element14.com/
http://depmechatronics.wordpress.com/
http://www.newportelec.com/ic.html
http://www.dynamodo.com/a random thought
https://j3ffrw.github.io/p470/
Sun, 24 Nov 2013 13:12:31 +0000https://j3ffrw.github.io/p470/Things to backup in linux after installation
https://j3ffrw.github.io/p460/
Sat, 02 Nov 2013 04:46:11 +0000https://j3ffrw.github.io/p460/Partition
mkdir ~/backup; cd ~/backup sfdisk -d /dev/sdx > sfdisk_dump fdisk -l /dev/sda > fdisk_listing LVM metadata backup
vgcfgbackup; cp /etc/lvm/backup/vg_groupname ~/backup
LUKS header
locate partition(s) with luks using blkid fdisk -l 2>&1 | cut -d' ' -f1 | grep "\/dev" | while read line; do blkid -p $line | grep crypto | cut -d: -f1; done or using cryptsetup fdisk -l 2>&1 | cut -d' ' -f1 | grep "\/dev" | while read line; do cryptsetup isLuks $line; if [ $?convert a bootable ISO-13346 (UDF) to ISO-9660
https://j3ffrw.github.io/p452/
Mon, 22 Jul 2013 10:51:36 +0000https://j3ffrw.github.io/p452/this is useful when you virtualbox is complaining about VBOX_E_IPRT_ERROR when using an iso file to install a guest OS(Windows 7)
mkdir -p isos/mountp cp udfimage.iso isos cd isos geteltorito udfimage.iso &gt; boot.bin mount -o loop -t auto udfimage.iso mountp cp -r mountp udfimagecontents cp boot.bin udfimagecontents mkisofs -udf -b boot.bin -no-emul-boot -hide boot.bin -relaxed-filenames -joliet-long -D -o newimage.iso udfimagecontents reference: http://poppleit.com/how-to-edit-windows-7-install-dvd-extract-boot-image-and-create-iso-04-04-2011/generating(self-signed) and enabling SSL in Apache
https://j3ffrw.github.io/p443/
Wed, 19 Jun 2013 03:55:08 +0000https://j3ffrw.github.io/p443/#generate SSL cert for apache
openssl version
OpenSSL 1.0.0-fips 29 Mar 2010
cd /etc/pki/tls/certs openssl genrsa -out mycert.pem 2048 ls -alh mycert.* openssl req -new -key mycert.pem -out mycert.csr ls -alh mycert.* openssl x509 -req -days 365 -in mycert.csr -signkey mycert.pem -out mycert.crt ls -alh mycert.* cp mycert.pem mycert.csr /etc/pki/tls/private/ # A single SSL enabled virtual host
httpd-2.2.15-28.el6.centos.i686
mySslEnabledVirtHost.conf
LoadModule ssl_module modules/mod_ssl.so Listen 443 SSLPassPhraseDialog builtin SSLSessionCache shmcb:/var/cache/mod_ssl/scache(512000) SSLSessionCacheTimeout 300 SSLMutex default SSLRandomSeed startup file:/dev/urandom 256 SSLRandomSeed connect builtin SSLCryptoDevice builtin <VirtualHost _default_:443> SSLEngine on SSLCertificateFile /etc/pki/tls/certs/mycert.Election day fixing day.
https://j3ffrw.github.io/p404/
Wed, 15 May 2013 06:57:28 +0000https://j3ffrw.github.io/p404/What better things to do during election day than fixing things up.
List of things to fix:
Canon EF-S 18-55mm 3.6-5.6 IS stock lens – problem: auto focus kaput
Quantaray LD 70-300mm – problem: auto focus kaput.
Let’s start off with quantaray.
This one seems to have gear problem since when it tries to drive the focus you could only hear the motor whirl freely.Pfsense + Freeradius + dd-wrt WPA2 Enterprise.
https://j3ffrw.github.io/p385/
Thu, 02 May 2013 11:27:16 +0000https://j3ffrw.github.io/p385/Here’s a simple setup to demonstrate WPA2-ENT authentication using a Username/Password pair.
This blog will be mostly screenshot with little description on what it does, since there are lots of explanation being offered on the web. check my references at the end of this post.
Network diagram:
Requirements:
Pfsense – for this demonstration i was using 2.1-BETA1
Freeradius – 1.6.7 pfsense package
Wifi Access point – buffalo whz-hp-g300nh2 running on ddwrt.Basic Stamp 2e IR Remote Decoder
https://j3ffrw.github.io/p375/
Tue, 30 Apr 2013 14:05:40 +0000https://j3ffrw.github.io/p375/Purpose: Remote control decoder
Status: * Decoding part – done.
Encoding part – not working – I need to check the 555 timer via scope(which i dont have) to verify the modulated frequency. BOM:
1 BASIC Stamp 2e processor PBASIC; variant Basic Stamp 2e 1 Electrolytic Capacitor package 100 mil [THT, electrolytic]; capacitance 1µF; voltage 6.3V 1 Ceramic Capacitor package 100 mil [THT, multilayer]; capacitance 0.01µF; voltage 6.Enable brightness function keys
https://j3ffrw.github.io/p370/
Thu, 28 Mar 2013 10:48:03 +0000https://j3ffrw.github.io/p370/insert acpi_backlight=vendor option into grub.
update-grub2
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor”
GRUB_CMDLINE_LINUX=””Disable discreet VGA card in linux mint
https://j3ffrw.github.io/p371/
Thu, 28 Mar 2013 10:31:19 +0000https://j3ffrw.github.io/p371/Nvidia:
sudo rmmod nvidia sudo tee /proc/acpi/bbswitch <<<OFF check the output of dmesg if the ff shows
bbswitch: device 0000:01:00.0 is in use by driver 'nvidia', refusing OFF
if it does contain the above message, find which application using it and kill it. Then try turning it off again.
sudo lsof -n -w -t /dev/nvidia*Dell T110 IPMI 2.0 SOL with CentOS 6.3
https://j3ffrw.github.io/p366/
Fri, 22 Mar 2013 11:20:20 +0000https://j3ffrw.github.io/p366/IPMI:
Enter Dell’s IPMI server management configuration utility. (Ctrl+E)
Set “IPMI over LAN” to “On”.
Configure “IPMI LAN Channel”, choose either static or dynamic.
Set “VLAN Enable” to “Off”.
Set “Administrator Account” to “Enable”
Set Username and password.
Press Esc key and select Save option.
BIOS:
Enter Dell’s BIOS. (F2)
Configure “Serial Communication” to be “On with Console Redirection via COM2”.add multiple email forwarders using AutoIt
https://j3ffrw.github.io/p363/
Thu, 21 Mar 2013 09:01:16 +0000https://j3ffrw.github.io/p363/#include <string.au3> #include <Array.au3> #Include <File.au3> #Include <FF.au3> #include <Date.au3> Global $Paused HotKeySet("{PAUSE}", "TogglePause") HotKeySet("{ESC}", "Terminate") $emailList="emaillist.csv" $fowardEmailto="[email protected]" $cpanelEmailForwardingPage="https://yourcpanel.com:2082/cpsess8672753610/frontend/x3/mail/addfwd.html" _FFConnect() if _FFIsConnected() Then ; do nothing Else ConsoleWrite("Not Connected " & @CRLF) EndIf ; check file if it exist $file = FileOpen($emailList,0) if $file=-1 Then MsgBox(0,"error","File does not exist or cant be read") Exit EndIf ; open file containing emails and put contents to an array Dim $aRecords _FileReadToArray($emailList,$aRecords) MsgBox(0, "", "size: " & $aRecords[0]) For $x=1 to $aRecords[0] _FFOpenURL($cpanelEmailForwardingPage) If($aRecords[$x] <> $fowardEmailto) Then writeForwarder($aRecords[$x]) EndIf Next Exit Func writeForwarder($email) $temp1 = StringSplit($email, "@") ConsoleWrite("email: " & $email & @CRLF) ConsoleWrite("name: " & $temp1[1] & @CRLF) ConsoleWrite("domain: " & $temp1[2] & @CRLF) ; Enter email on field _FFSetValue($temp1[1], "email", "id") ; Enter email domain on select dropdown box $test2='//select[@name="domain"]//option[@value="' & $temp1[2] & '"]' _FFXPath($test2, 'selected=true', 9) ; Enter emaill address to forward email _FFSetValue($fowardEmailto, "fwdemail", "id") ; submit fom _FFFormSubmit() ;Sleep(2000) EndFunc Func TogglePause() $Paused = NOT $Paused While $Paused Sleep(100) ToolTip('Script is "Paused"',0,0) WEnd EndFunc Func Terminate() Exit 0 EndFunc Tower of hanoi v.1
https://j3ffrw.github.io/p333/
Thu, 21 Feb 2013 10:30:08 +0000https://j3ffrw.github.io/p333/v.1 using iterative solution
todo:
v.2 shorten code.
v.3 use recursion
import java.util.logging.Level; import java.util.logging.Logger; /* * To change this template, choose Tools | Templates * and open the template in the editor. * even: right side move. * odd: left side move. */ /** * * @author Jefferson M. Fermo * * Iterative solution of tower of Hanoi. * * */ public class Hanoi { private Peg[] pegs; private final int NUMBEROFTOWERS = 3; private boolean directionOfMoveIsRight = false; private long numberOfMoves = 0; private int discCount = 0; int currentPeg = 0; int lastPegMove = 0; int moves = 0; public Hanoi(int discCount) throws Exception { this.make gopenvpn icon show in ubuntu 11.04 and up
https://j3ffrw.github.io/p322/
Tue, 19 Feb 2013 11:40:04 +0000https://j3ffrw.github.io/p322/gsettings set com.canonical.Unity.Panel systray-whitelist "['JavaEmbeddedFrame', 'Mumble', 'Wine', 'Skype', 'gopenvpn']"
also allow user to sudo gopenvpn and openvpn.allow httpd to access fuse mounted folders
https://j3ffrw.github.io/p316/
Fri, 08 Feb 2013 09:36:27 +0000https://j3ffrw.github.io/p316/Centos 6.3 selinux does not have httpd_use_fusefs in its database here’s a quick fix instead of turning off selinux totally.
https://docs.fedoraproject.org/en-US/Fedora/11/html/Security-Enhanced_Linux/sect-Security-Enhanced_Linux-Fixing_Problems-Allowing_Access_audit2allow.html
here’s a good reference about selinux management:
http://tag1consulting.com/blog/stop-disabling-selinuxKVM Spice USB-redirection quick speed test
https://j3ffrw.github.io/p295/
Mon, 04 Feb 2013 09:51:46 +0000https://j3ffrw.github.io/p295/Bare Metal: Write: 22.8MBs Read: 22.0MBs
Host to Guest: Write: 6.46MBs Read: 6.36MBs
Remote to Guest: Write: 5.00MBs Read: 4.92MBs * via remote-viewerallow non-admin users to run programs to as administrator
https://j3ffrw.github.io/p289/
Mon, 04 Feb 2013 08:21:52 +0000https://j3ffrw.github.io/p289/use RunasSpc to allow non-admin users to run programs at elevated rights without your password. free for private use.
link: http://www.robotronic.de/guidance.htmlKVM notes
https://j3ffrw.github.io/p287/
Mon, 28 Jan 2013 07:24:13 +0000https://j3ffrw.github.io/p287/For host machine- Centos 6.3 64:
KVM installation. http://www.howtoforge.com/virtualization-with-kvm-on-a-centos-6.0-server
http://blog.mattbrock.co.uk/2012/02/12/virtualisation-with-kvm-and-lvm-on-centos-6-via-the-command-line/
http://vitobotta.com/setting-up-kvm-lvm-virtual-machine-host/
Using Spice with LibVirt KVM http://wiki.centos.org/HowTos/Spice-libvirt
Viewing remote KVM Guest with usb redirection (linux mint maya 64): Option 1:
https://launchpad.net/~bderzhavets/+archive/lib-usbredir73
Option 2:
Compile spice:
wget http://downloads.us.xiph.org/releases/celt/celt-0.5.1.3.tar.gz wget http://spice-space.org/download/libcacard/libcacard-0.1.2.tar.bz2 ./configure --prefix=/usr http://spice-space.org/download/gtk/spice-gtk-0.16.tar.bz2 ./configure --enable-usbredir=yes --with-python=yes http://spice-space.org/download/releases/spice-protocol-0.12.2.tar.gz install virt-viewer 5.4-3. deb http://ubuntu.mirror.cambrium.nl/ubuntu/ raring main universe
libacl1.2.2.51-8
libattr1-1:2.4.46-8ubuntu2
libspice-client-glib-2.0-8
libspice-client-gtk-3.0-4
wget https://launchpad.net/~dnjl/+archive/build/+build/4077605/+files/virt-viewer_0.5.4-3~raring0_amd64.deb
Viewing remote KVM Guest with usb redirection using Ubuntu 13.04(live CD): enable universe sourcesmy pfsense notes
https://j3ffrw.github.io/p275/
Thu, 24 Jan 2013 07:43:33 +0000https://j3ffrw.github.io/p275/working folder of ntop, nut, dhcp:
/var/db
config folder of openvpn, ntp, dns(resolv), snmp, syslog
/var/etcProblem logging in from Netbootdisk into smb share after using Samba v3.5.10
https://j3ffrw.github.io/p220/
Tue, 13 Nov 2012 05:46:40 +0000https://j3ffrw.github.io/p220/Problem:
accounts created by smbpasswd -a does not work with samba-3.5.10-125.el6.x86_64 though it was working fine on a previous version I was using, samba-3.0.33-3.38.el5_8. Both ship with centos 5.8 and centos 6.3 respectively.
increasing log level = 3 shows the following error on samba 3.5.10 which where not on 3.0.33
*ntlm_password_check: Lanman passwords NOT PERMITTED for user myuser
On the client side, Netbootdisk on my instance, it is saying that my password is invalid.Ruckus zap tool installation and testing
https://j3ffrw.github.io/p217/
Thu, 08 Nov 2012 18:31:19 +0000https://j3ffrw.github.io/p217/Update: on 64bit OS edit Makefile after source checkout and remove -m32
Install Ruckus Zap tool on both PC/Laptop, installers can be found Ruckus website. Mac Windows For Linux: you have to compile from source. Open terminal and execute the following commands svn checkout http://zapwireless.googlecode.com/svn/trunk/ zapwireless-read-only # or git clone https://github.com/ryanchapman/zapwireless.git zapwireless-read-only cd zapwireless-read-only make && make install
Run zapd on both PC/Laptop,you should see something like the following.zPerf 1.0 (wip)
https://j3ffrw.github.io/p201/
Thu, 08 Nov 2012 11:11:29 +0000https://j3ffrw.github.io/p201/Purpose:
Provides a GUI Frontend for Ruckus amazing Zap tool
Visualize Zap tool results using charts.
Feature:
Generate CDF graph from zap result file. Save graph to image file Requirements:
jre6 or higher Ruckus zap tool Download zperf archive: zPerf How to use:
Extract zperf archive. Under zperf/bin/ folder, there are the three files, run/use the appropriate file for your OS, zperf - linux, zperf.Removing multiple devices in Windows
https://j3ffrw.github.io/p192/
Sun, 07 Oct 2012 03:46:14 +0000https://j3ffrw.github.io/p192/Device Remover
http://www.pro-it-education.de/software/deviceremover/Scripts, scripts and scripts.
https://j3ffrw.github.io/p185/
Fri, 27 Jul 2012 17:27:29 +0000https://j3ffrw.github.io/p185/find certain strings in files on certain folders find . -type f ! -exec grep -q '@olddomain.com' {} \; -exec grep -q 'olddomain.com' {} \; -print
find . -type f | xargs egrep -Hn '@olddomain.com'
search for top talkers using tshark tshark -r output.cap -T fields -e ip.src "tcp.flags.syn==1 && tcp.flags.ack==0" | sort | uniq -c | sort -rn | head
chmod multiples files mix with directory.Sending mysql commands with backticks via pssh
https://j3ffrw.github.io/p180/
Mon, 23 Jul 2012 02:10:28 +0000https://j3ffrw.github.io/p180/pssh -h servers -i 'echo "select * from \`tablename with space\`" | mysql -uusername -ppass database'when certs are revoke
https://j3ffrw.github.io/p166/
Tue, 17 Jul 2012 02:08:50 +0000https://j3ffrw.github.io/p166/Jul 17 09:59:23 localhost openvpn[6247]: XX.xx.XX.xx:port Re-using SSL/TLS context Jul 17 09:59:23 localhost openvpn[6247]: XX.xx.XX.xx:port LZO compression initialized Jul 17 09:59:41 localhost openvpn[6247]: XX.xx.XX.xx:port TLS\_ERROR: BIO read tls\_read\_plaintext error: error:140890B2:SSL routines:SSL3\_GET\_CLIENT\_CERTIFICATE:no certificate returned Jul 17 09:59:41 localhost openvpn[6247]: XX.xx.XX.xx:port TLS Error: TLS object -> incoming plaintext read error Jul 17 09:59:41 localhost openvpn[6247]: XX.xx.XX.xx:port TLS Error: TLS handshake failed compiling ffmpeg on centos 6
https://j3ffrw.github.io/p164/
Sat, 02 Jun 2012 10:45:10 +0000https://j3ffrw.github.io/p164/requirements: libtool for faad2
a52:
./configure --enable-shared=PKGS
faad2:
autoreconf -vif ./configure faac:
./bootstrap ./configure --without-mp4v2 --prefix=/usr lamemp3:
./configure --prefix=/usr
yasm:
.configure && make && make install
x264:
git clone git://git.videolan.org/x264.git ./configure --enable-shared --prefix=/usr make fprofiled make install xvidcore:
.configure && make && make install
ffmpeg:
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg cd ffmpeg ./configure --enable-gpl --enable-postproc --enable-nonfree --enable-postproc \ --enable-avfilter --enable-pthreads --enable-libxvid \ --enable-libx264 --enable-libmp3lame --enable-libfaac --disable-ffserver --disable-ffplay installing swftools on centos 6
https://j3ffrw.github.io/p153/
Sat, 02 Jun 2012 05:17:00 +0000https://j3ffrw.github.io/p153/install pdf2swf dependencies
zlib-devel, libjpeg-devel, freetype-devel, giflib-devel
wget http://www.swftools.org/swftools-0.9.2.tar.gz<br /> tar xvzf http://www.swftools.org/swftools-0.9.2.tar.gz<br /> cd swftools-0.9.2
Download the latest tarzgzipped version fo xpdf and put it on the swftools lib/pdf folder
cd lib/pdf/<br /> wget ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.03.tar.gz<br /> ./configure<br /> make
Before running make install
cd swfs<br /> vi Makefile
remove the two “rm” lines with -o option as this are invalid
make installPXE booting CENTOS 6 on Atheros Atl1e using Driver Update Disk
https://j3ffrw.github.io/p145/
Wed, 23 May 2012 06:38:52 +0000https://j3ffrw.github.io/p145/Download pschaff’s driver disk from elrepo, select architecture that match your installer. <br >http://www.elrepo.org/people/pschaff/dud/
the file you’ve downloaded should end with ‘.gz’. Uncompress that file. <br >gunzip DUP_el6_i686_20120402.iso.gz
Create a temp folder. <br >mkdir initrd_update
make a copy of that uncompressed file to the folder you have made <br >cp DUP_el6_i686_20120402.iso initrd_update/dd.img
enter that folder <br >cd initrd_update
run the ff.using sed in bash scripts
https://j3ffrw.github.io/p139/
Mon, 21 May 2012 03:40:54 +0000https://j3ffrw.github.io/p139/# Inserting a text on a specified line number ex. insert a text in line number 8 sed command “8i”
-e '8i\# PC-Check 7\.03 with net support'
special characters like # and . should have a \ suffix.
# Insert a blank line on line number
-e '8i\\`echo -e '\n\r'`'
# to append at end of the file: sed command: $a
-e '\$a#HQ to local DVR'
# search and replace, ^ - match all words beginning the word specified and replace the matching word,gpg notes
https://j3ffrw.github.io/p124/
Tue, 08 May 2012 11:03:09 +0000https://j3ffrw.github.io/p124/compress multiple files and encrypt using gpg
tar -cv folder | gpg -e -r recipientGpgKey -o output.tar.gpg
to decompress the above file:(prepare recipientGpgKey passphrase )
gpg --output output.tar --decrypt output.tar.gpg
you must specify –secret-keyring pathtokeyring if secret key is not available on the machineFwknopd with SPA, Part 2.
https://j3ffrw.github.io/p78/
Sat, 15 Oct 2011 10:41:28 +0000https://j3ffrw.github.io/p78/View both keys with gpg --list-keys $ gpg --list-keys pub 1024D/AAAAAAAA 2008-03-07 uid test fwknop <[email protected]> sub 2048g/DDDDDDDD 2008-03-07 Export both keys from remote and local terminals. gpg -a --export AAAAAAAA > remote.asc gpg -a --export BBBBBBBB > local.asc where AAAAAAAA is the remote key id and BBBBBBBB is the local key id.
securely transfer remote.asc to local terminal.
securely transfer local.asc to remote terminal.
import and signed both keys, you will need to enter the correct passphrase when signing both keys.fwknopd with SPA Part.1
https://j3ffrw.github.io/p76/
Sat, 15 Oct 2011 10:29:57 +0000https://j3ffrw.github.io/p76/Generate gpg keys on both remote and local terminal : `gpg --gen-key` Please select what kind of key you want: Select (1) DSA and Elgamal (default) What keysize do you want? (2048) Choose default 2048(just press enter) Key is valid for? (0) press enter key does not expire Is this correct? (y/N) press y Real name: enter key name e.g: term-Gpg Email address: enter email... Comment: optional press enter if none Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit?installing oflademo on red5
https://j3ffrw.github.io/p72/
Fri, 16 Sep 2011 08:54:04 +0000https://j3ffrw.github.io/p72/wget http://trac.red5.org/downloads/1_0/red5-1.0.0-RC1.tar.gz tar xvzf red5-1.0.0-RC1.tar.gz cd red5-1.0.0/webapps/ mkdir oflaDemo cd oflaDemo wget http://red5.googlecode.com/svn-history/r3990/snapshots/oflaDemo-r3989-java6.war unzip oflaDemo-r3989-java6.war cd ../.. ./red5.sh Kernel not loading usbserial on Huawei modems
https://j3ffrw.github.io/p69/
Wed, 14 Sep 2011 10:29:30 +0000https://j3ffrw.github.io/p69/remove pl2303 and usb_storage driver
rmmod pl2303<br /> rmmod usb_storage<br />
then reinsert huawei modem againCommon AT commands
https://j3ffrw.github.io/p67/
Mon, 12 Sep 2011 05:08:38 +0000https://j3ffrw.github.io/p67/Read all SMS in text mode: AT+CMGF=1 (set TEXT MODE) AT+CMGL="ALL" Read single sms in text mode: AT+CMGF=1 # (set TEXT MODE) AT+CMGR=1 # (location index) Delete single sms: AT+CMGD=1 # (location index) Sending SMS in text mode: AT+CMGF=1 (set TEXT MODE) AT+CMGS="0912xxxyyyy" > test message Press Ctrl+z Press Enter Read Sim Number: AT+CPBS="ON" AT+CPBR=1 +CPBR: 1,"+63948xxxyyyy",145,""; Setup apache to handle Eric Blue’s Document Browser 1.0
https://j3ffrw.github.io/p64/
Mon, 29 Aug 2011 08:39:54 +0000https://j3ffrw.github.io/p64/Download doc_browser http://eric-blue.com/projects/docbrowser/doc_browser_1_0.zip
Extract contents to a directory named projects/docbrowser
Create the ff. doc.conf inside apache conf.d cat >/etc/apache/conf.d <<EOL Alias /projects /var/www/projects</p> <p><Location /projects><br /> Order allow,deny<br /> Allow from all<br /> </Location></p> <p><Directory /var/www/projects><br /> Options +ExecCGI<br /> AddHandler cgi-script .cgi .pl<br /> </Directory><br /> EOL
Ensure that list.cgi and convert.cgi have execute permission enabled.
those script requires the ff.Allow normal user to run smartd in pfsense 1.2.3
https://j3ffrw.github.io/p60/
Fri, 19 Aug 2011 10:10:52 +0000https://j3ffrw.github.io/p60/chmod 4555 /usr/local/sbin/smartctlSMARTD on zabbix
https://j3ffrw.github.io/p46/
Sun, 12 Dec 2010 12:43:17 +0000https://j3ffrw.github.io/p46/UserParameter=system.smartd[*],sudo smartctl -A $1| grep $2| tail -1| cut -c 88-|cut -f1 -d" " zabbix ALL=NOPASSWD: /usr/sbin/smartctl lm_sensors 3.20 w/ coretemp using CENTOS 5.5 on GA-G31M-E2SL w/ it8718 chip
https://j3ffrw.github.io/p44/
Sun, 12 Dec 2010 07:07:46 +0000https://j3ffrw.github.io/p44/add elrepo to your repositories
yum –enablerepo=elrepo install kmod-coretemp # this will install lm_sensor 2.10.8 as its dependencies.
lsmod | grep coretemp # coretemp should be loaded by now
download latest lm_sensors 3.20 source, compile and install
edit /etc/init.d/lm_sensors entry from : PSENSORS=/usr/bin/sensors to: PSENSORS=/usr/local/bin/sensors
chkconfig lm_sensors on
done modinfo it87 modinfo coretemp
optionalMozilla’s ubuntu ppa’s
https://j3ffrw.github.io/p36/
Sat, 26 Jun 2010 03:39:18 +0000https://j3ffrw.github.io/p36/to get the latest versions of firefox and thunderbird for ubuntu do the ff
sudo add-apt-repository ppa:ubuntu-mozilla-daily/ppa
sudo apt-get update
sudo apt-get install thunderbird
sudo apt-get install firefoxElrepo
https://j3ffrw.github.io/p35/
Wed, 26 May 2010 03:35:25 +0000https://j3ffrw.github.io/p35/hardware drivers
http://elrepo.orgNUT
https://j3ffrw.github.io/p31/
Wed, 26 May 2010 03:33:52 +0000https://j3ffrw.github.io/p31/Compile NUT from source groupadd nut;adduser -g nut ups yum install gd-devel libusb-devel ./configure --with-user=ups --with-group=nut --with-usb --with-cgi --prefix=/ups --localstatedir=/ups/var --with-pidpath=/ups/var/state/ups --with-statepath=/ups/var/state/ups --enable-static make make install cd /ups;mkdir -p /ups/var/state/ups;chmod 0770 /ups/var/state/ups;chown root:nut /ups/var/state/ups copy libz.so to /ups/lib copy libz.a to /ups/lib chmod 0660 /dev/ttyS0;chown root:nut /dev/ttyS0 cat >/etc/udev/rules.d/99-my.rules <<EOL SUBSYSTEM=="tty", KERNEL=="ttyS0", OWNER="root", GROUP="nut" EOL For APC UPS BR550I or BR550GI use the ff.
vi /etc/udev/rules.d/52-nut-usbups.rules # This file is generated and installed by the Network UPS Tools package.ius repo
https://j3ffrw.github.io/p28/
Wed, 26 May 2010 02:28:57 +0000https://j3ffrw.github.io/p28/website: http://iuscommunity.org/
download: epel-release-* ; ius-release-*
to update PHP:
remove rhel packages:
rpm -qa | grep php yum shell remove php-gd php-cli php-odbc php-mbstring php-pdo php php-xml php-common php-ldap php-mysql php-imap install php52-gd php52-cli php52-odbc php52-mbstring php52-pdo php52 php52-xml php52-common php52-ldap php52-mysql php52-imap php52-mcrypt transaction solve transaction run Openstreetmap
https://j3ffrw.github.io/p17/
Mon, 17 Aug 2009 17:51:09 +0000https://j3ffrw.github.io/p17/I just recently joined Openstreetmap.org.ph and now Im totally addicted to it. visit Puerto Princesa using the following links
[OpenStreetMap][1]
d-txt n electrik fan
https://j3ffrw.github.io/p12/
Mon, 18 May 2009 16:16:50 +0000https://j3ffrw.github.io/p12/GSM Controller
most annoying interfacing i ever done, panay debugging ng serial port.bang bang!
https://j3ffrw.github.io/p6/
Mon, 18 May 2009 16:07:19 +0000https://j3ffrw.github.io/p6/DIY airsoft .6mm BB chronometer
Tech specs:
PIC16F877a 20Mhz
Demo using my Classic Army SLR105 A1 w/ Guarder SP120 spring
uses PORTB interrupts for BB detection.
beep beep beep!
https://j3ffrw.github.io/p1/
Thu, 14 May 2009 23:49:31 +0000https://j3ffrw.github.io/p1/Welcome to my blogblogblog. This is what i do when there’s nothing to do.
Nikko V2.0. tech specs:
PIC16F877a 20Mhz
Mission in life: to follow wall.About
https://j3ffrw.github.io/about/
Thu, 14 May 2009 15:49:31 +0000https://j3ffrw.github.io/about/Thinkering w/ everything. https://www.google.com/maps/contrib/109551899967615949009/photos