October 19, 2018

HAProxy logging on RHEL7

How to configure RHEL7 rsyslog for haproxy logging.

Problem: The haproxy config (/etc/haproxy/haproxy.cfg) reports how to enable logs; however, this seems to be syslogd specific which is not what is running in RHEL7

Solution: enable logging via rsyslog configs:
Modify /etc/rsyslog.conf to include:

# Provides UDP syslog reception
$ModLoad imudp
$UDPServerRun 514
# Provides TCP syslog reception
$ModLoad imtcp $InputTCPServerRun 514

*note: maybe only UDP or maybe only TCP is needed.

Modify /etc/rsyslog.d/listen.conf

SYSLOGD_OPTIONS="-m 0 -r"
local2.* /var/log/haproxy.log

*note: this could just as easily be /etc/rsyslog.d/haproxy.conf, i chose the prior only because it pre-existed.

*note: local2 is the default in haproxy, but this could be changed if desired.

*note: the -r is required, the -m 0 is not, but meant to reduce junk. If it is looking up DNS and you don’t want, then add -x

Now sudo systemctl restart rsyslog and tail -f /var/log/haproxy.log to see the records.

Note: There are many and more complex settings, this is just a most basic configuration.

As always, good luck!

~~
resources used:

  1. https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_MRG/1.3/html/Realtime_Tuning_Guide/sect-Realtime_Tuning_Guide-General_System_Tuning-syslog_tuning_tips.html
  2. https://linux.die.net/man/8/rsyslogd

Please consider crypto tipping:
  

October 14, 2018

ubuntu bluetooth mouse laggy


Problem: Ubuntu Bluetooth Mouse Super Laggy

Potential Solution: To reduce or potentially remove Bluetooth mouse lag, disable all unused plugins in the Bluetooth Manager:



If it does not help (or help enough), try this: https://superuser.com/a/554343 


~~

Please consider crypto tipping:
  

July 13, 2018

jdupes

Better Than fdupes!!! thank you @jbruchon

JDupes https://github.com/jbruchon/jdupes

OUT OF DATE. please see -X nostr:text and -X onlystr:text option in 1.20+

Features:

  • Raw speed!
  • Preserve duplicates specific to a folder and delete the rest:
    – option 1: given three folders X,Y, Z: jdupes -nrdNIO ./X/ ./Y/ ./Z/ preserve files in folder X and purges duplicates in Y and Z.
    – option 2: given three folders E,F,G: jdupes -nrdNIO ./E/ ./G/ ; jdupes -nrdNIO ./F/ ./G/ deletes duplicates only from G, retaining any duplicates in E or F.
  • and more…

Please consider crypto tipping:
  

July 04, 2018

Prepare or Fix Linux for ButterFlight, BetaFlight, CleanFlight

ButterFlight | BetaFlight | CleanFlight
Failed to open serial port: FILE_ERROR_ACCESS_DENIED

See also: https://steronius.blogspot.com/2020/08/linux-emuflight-betaflight.html

Problem/Symptoms:
Failed to open serial port: FILE_ERROR_ACCESS_DENIED
betaflight linux failed to open serial port
butterflight linux failed to open serial port
cleanflight linux failed to open serial port
butterflight can’t flash firmware
betaflight can’t flash firmware
cleanflight can’t flash firmware

Cause:
Linux user accounts require permissions for Serial and USB subsystems.

Solutions:
1) For Failed to open serial port: FILE_ERROR_ACCESS_DENIED :
ref: https://websistent.com/fix-serial-port-permission-denied-errors-linux/

sudo usermod -a -G dialout $(whoami)
newgrp dialout   #(temp workaround to bypass logout & re-login requirement)

2) For unable to flash firmware to flight controller (FC) :
ref: https://github.com/ButterFlight/butterflight/blob/master/docs/USB%20Flashing.md

echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE="0664", GROUP="plugdev"' | sudo tee /etc/udev/rules.d/45-stdfu-permissions.rules
sudo usermod -a -G plugdev $(whoami)
newgrp plugdev   #(temp workaround to bypass logout & re-login requirement)

Follow along:

As always, good luck!
~~~


Please consider crypto tipping:
  

May 13, 2018

SAVE $$$ with TING

icon
OMG! I am saving so much money with TING! My costs are HALF my AT&T bill!!!

TL;DR? $25 credit with my referral: https://z3oifh75bbn.ting.com/

I dropped AT&T wireless (AT&T Mobile) completely and you can too. Drop Verizon, Drop T-Mobile, Drop Sprint, Drop MetroPCS, Drop Boost, Drop Cricket, Drop everyone else.  Nobody is as affordable as Ting.

TING has the simplest mobile billing ever! – You pay $6 per phone flat-rate, and then you pay only for the services you use. You do NOT pay for more than you actually use. Every month is adjusted automatically.

For example, our typical month goes as follows: We have two phones ($6 + $6). We use less than 500 minutes talk time (+ $9); we use less than 1000 text messages (+ $5); we use less than 1GB of data (+ $16). This calculates to $42 dollars plus fees and taxes. Our monthly bill is typically $46.23 which is approximately HALF my previous AT&T bill.

This is my actual bill: Simple as simple could be!



Want to save money also? Please use my referral https://z3oifh75bbn.ting.com – You will receive a $25 credit to apply to a phone or service. You will not be disappointed with Ting!



 ~~~



Want to get a "free" landline?  Visit my old post: http://steronius.blogspot.com/2015/05/practically-free-landline-service-with.html


As always, good luck!!!





Save money
save cash
pay less
save money for phone service
save money for cell phones
save money for mobile phones


Please consider crypto tipping:
  

April 14, 2018

Increase Keyboard Backlight Timeout on Ubuntu Dell XPS


Modify
/sys/devices/platform/dell-laptop/leds/dell\:\:kbd_backlight/stop_timeout

Default = 10s (seconds); Set to 20m (minutes)

Unsure how to disable timeout completely, but setting to a large value could work too.


Source:http://www.dell.com/support/article/us/en/04/sln308123/how-to-configure-the-keyboard-backlight-time-out-interval-in-ubuntu-linux

Please consider crypto tipping:
  

April 12, 2018

In-Production Active Directory Password Expiration Notification


It's been about a year now that we have used this powershell script in-production to email-notify users of their soon-to-expire or already-expired Active Directory passwords.

Maybe it's not perfect, but it works very well! (You have to schedule it to run daily.) Enjoy.


Please consider crypto tipping:
  

April 05, 2018

Installing PowerCLI 10 in Debian 9

Installing PowerCLI 10 in Debian 9
 

The PowerCLI compatibility matrix states PowerShell 6.0.1 is supported. 6.0.2 and 6.1.0-Preview is not. (reference)

Firstly, install PowerShell [almost] as per documentation: (reference) or (reference)
sudo apt remove --purge powershell
sudo apt install libc6 libgcc1 libgssapi-krb5-2 liblttng-ust0 libstdc++6 libcurl3 libunwind8 libuuid1 zlib1g libssl1.0.2 libicu57 libssl1.0.0 libssl1.0.2 libssl1.1 libicu52 libicu57 curl gnupg apt-transport-https
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch main" > /etc/apt/sources.list.d/microsoft.list'
sudo apt update
sudo apt install -y powershell=6.0.1-1.debian.9
sudo apt-mark hold powershell        #Pin this version... 'unhold' for non-recommended versions
pwsh

If you get a Segmentation fault you must sudo apt remove --purge libssl1.0.0!

Install PowerCLI inside PowerShell: (reference)
Install-Module -Name VMware.PowerCLI -Scope CurrentUser
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore   #Accept self-signed certificates
You may later update with
Update-Module VMware.PowerCLI
Update-Help

If you want a scope of AllUsers, then you will have to install with sudo pwsh and perform subsequent update with sudo pwsh as well.

~~~
Good Luck!
Please consider crypto tipping:
  

April 04, 2018

PROOF that LogMeIn, Inc. STILL SUCKS


 PROOF that LogMeIn, Inc. STILL SUCKS




This isn't the first time LMI, Inc SUCKED:

First they Made free LMI not free: https://blog.logmein.com/it-management/logmein-changes

Then they made Hamachi SUCK more and more.

They bought Lastpass/XMarks: https://blog.lastpass.com/2015/10/lastpass-joins-logmein.html/

"LogMeIn is retiring Xmarks from its line of products as of May 1, 2018. After this date, you will no longer have access to Xmarks."

There are no "good" alternatives! (None of the alternatives have profiles and background syncing.)


LMI JUST SUCKS

Will they destroy the best password manager LastPass too?

Export your data || All your data are belong to LMI SUCKS.


Please consider crypto tipping:
  

March 16, 2018

Easiest Walmart Receipt Download with Android


icon
Prerequisites:
- Android device
- Walmart App
- GDrive app

Step 1) Walmart App > Menu > Purchase History > Search (optional) > Click Receipt > Share > GDrive.
Step 2) Computer > GDrive > find your receipts and Download.



~~~
As always, Good Luck!
Please comment or tip me or use any/all of my affiliate links; Thank YOU!




easy
easiest
walmart
receipt
receipts
download
easy walmart receipt download 
walmart receipt save


Please consider crypto tipping:
  

March 01, 2018

Shotcut Video Editor Undo Dissolve & Add Blur

icon

[How to] Undo a Dissolve (Cross-Fade) in ShotCut


  1. Move the clips around or to new tracks if necessary.
  2. Stretch the left-edge and the right edge of each clip to their maximum.

Easy [How to] ShotCut Privacy Blur


  1. Duplicate the clip into a higher track.
  2. Select the duplicate clip in higher track.
  3. Add Inverse Color Filter specifically for visualizing the mask location. Be sure to deselect for final output.
  4. Add Mask Filter. Apply preset default; Operation=Minimum. Adjust as needed.
  5. Add Blur Filter. Adjust as needed.
  6. MUTE duplicate clip audio as needed. If it does not work. Remove filters and re-try applying to top-most track.

~~
As always, Good Luck!


Please consider crypto tipping:
  

February 28, 2018

Fix Brave Browser Sandbox in Debian/Ubuntu


icon
Brave is a super-quick privacy-focused ad-blocking modern web-browser.

Problem: Cannot run Brave web-browser
$ brave
[7970:7970:0228/075800.525306:FATAL:zygote_host_impl_linux.cc(126)] No usable sandbox! Update your kernel or see https://chromium.googlesource.com/chromium/src/+/master/docs/linux_suid_sandbox_development.md for more information on developing with the SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.
Aborted

Solution:
sudo su
echo 'kernel.unprivileged_userns_clone=1' > /etc/sysctl.d/00-local-userns.conf
service procps restart
exit

Source: https://community.brave.com/t/how-to-solve-no-sandbox-error-on-debian-based-linux-distros/3363

Please consider my Brave affiliate links to support my Youtube publications:
Excuse Me While I Nerd
Thibodaux Area Aerials


~~
As always, Good Luck!

Please consider crypto tipping:
  

February 24, 2018

Lost or Stolen Mobile Device Location Services (Find My Device)

Lost or Stolen Mobile Device Location
(Modern Devices 2014 2015 2016 2017 2018)


In the event of lost or stolen devices, it is best to have your device prepared ahead of time.

Below are the "native" ways to do, but I will also present two other free services afterward.  Generally your device has to be powered on and have connectivity.  Some services offer a last seen location.

Android

To prepare your Android device, install "Device Manager" from the Google Play Store. Login with your Google account and approve location sharing if necessary. You may need to turn on Settings->Location Access+GPS+WiFi. If you have multiple Android devices, this app will also help locate your other devices.

In the event of a lost or stolen device, visit https://www.google.com/android/devicemanager and login with your Google account that was used to setup the device. Device Manager allows you to locate, ring, lock or erase your device. (You may have to "Setup Lock & Erase" First.)

iOS

To prepare your iPhone or iPad, go to Settings->iCloud. Login if necessary (use your Apple account) and pan down to "Find my iPhone" (or iPad) and turn it on. Also turn on "Send Last Location". You may need to turn on Settings->Privacy->Location Services also.

In the event of a lost or stolen device, visit https://www.icloud.com/#find to locate your device.

3rd Party

Now although the above certainly work, I personally don't want to be limited to only this.

I also recommend both Prey (https://preyproject.com/) and Lookout (https://www.lookout.com/).

Prey is a free location/anti-theft app for up to three devices including laptop computers. If lost or stolen, visit https://panel.preyproject.com/app where you can locate, lock, erase, send an alert, or sound an alarm. Prey may also be able to access the front facing camera.

Lookout is a free antivirus, backup, and device-location app with additional paid backup features. Once installed and configured, visit https://www.lookout.com/d/missingDevice to locate, lock, erase, or sound an alarm.

Plan B (https://faq.lookout.com/categories/20504137-plan-b) offered by Lookout.com may also help you locate your Android device if you have not configured any previous location services.

Good luck!

Please consider crypto tipping:
  

February 22, 2018

Custom Mime File Type Icon in XFCE Thunar


I wanted to associate a custom icon for my old .PSP files in XFCE, but had no clue how.  Thanks to https://unix.stackexchange.com/questions/23776/how-to-change-a-file-type-icon-in-xfce-thunar, I was able to do it easily.



Firstly create a custom icon, then save it into ~/.local/share/icons/.  (Alternatively, with sudo/root access try /usr/share/icons/. For example, mine was ~/.local/share/icons/pspimage.png.

Then create a new mime xml in your user’s ~/.local/share/mime/packages/. For example, mine was ~/.local/share/mime/packages/pspimage.xml. (Alternatively, for system-wide, try /usr/share/mime/packages/.)

Which contained:
<?xml version="1.0"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
  <mime-type type="application/octet-stream">
    <comment>PaintShop Pro Image</comment>
    <glob pattern="*.psp"/>
    <glob pattern="*.pspimage"/>
    <generic-icon name="pspimage"/>
    <icon name="pspimage"/>
  </mime-type>
</mime-info>

Then simply update your system: (Alternatively, as sudo/root, perform same as below in /usr/share/mime/packages/.)
cd ~/.local/share/mime && update-mime-database $PWD

Refresh your Thunar view and viola.



~~
As always, good luck!

Please consider crypto tipping:
  

February 20, 2018

2 Ways to Linux CommandLine Thesaurus Synonyms

icon

[How to] Linux CommandLine Thesaurus | Linux CommandLine Synonyms


I wanted to use my linux commandline to lookup synonyms (thesaurus) recently but didn’t know how.

After some searching I was able to find 2 alternatives that worked very differently, yet helped me tremendously on each account.

Method 1 - DICT

sudo apt install dict dictd dict-gcide dict-moby-thesaurus
sudo systemctl enable dictd
sudo systemctl start dictd
dict --help # or try 'man dict'
#dict -d moby-thesaurus YOURWORDHERE
alias thes='dict -d moby-thesaurus'
thes engineer

Method 2 - WordNet

sudo apt install wordnet
man wn | grep -B1 synon
#wn YOURWORDHERE -syns#, where # is n, v, a, or r
#wn YOURWORDHERE -simsv
wn # or try 'man wn'
wn engineer -synsn | grep -v ^$   #grep just strips empty lines from output
wn engineer -synsv | grep -v ^$

Script for both:

#!/bin/sh
if [ "$1" = "" ] ; then
   echo "usage: $0 WORD"
fi
wn $1 -synsn | grep -v ^$
wn $1 -synsv | grep -v ^$
wn $1 -synsa | grep -v ^$
wn $1 -synsr | grep -v ^$
dict -d moby-thesaurus $1



~~
As always, good luck!

Please consider crypto tipping:
  

February 09, 2018

[Solved] PulseAudio stopped working in Debian 9

icon

[Solved] PulseAudio stopped working in Debian 9 Stretch on Dell Optiplex 9020

After some recent updates, unknown when and unknown why, PulseAudio stopped working properly. Sometimes it would work and sometimes not, it was the fight of all fights.

Multitudes of resources that failed to resolve only aggravated my situation. My final solution came from multiple sources, some of which i have already forgotten, but i will link some that helped.

Specifically to my Dell Optimplex with built-in Intel HD 4000 graphics, HDMI Audio was always a problem to the extreme. It always got in the way. If found a resource that spoke about making an NVidia HDMI work, but in actually this resource helped me disable it. Please refer to: https://www.linuxquestions.org/questions/linux-hardware-18/no-hdmi-audio-in-linux-819172/

When I performed the command aplay -l, I found my Intel HDMI Audio to be card 0. I created/modified my /etc/modprobe.d/sound.conf to contain options snd-hda-intel probe_mask=0xfff2 as per the post. Maybe that doesn’t even do anything. But then I chose the best thing ever. The post said to sudo rmmod snd_hda_intel then sudo modprobe snd_hda_intel, but screw that, i just sudo rmmod snd_hda_intel without reinserting it. Afterward aplay -l did not show card 0, hells yeah!

PulseAudio still caused me super rage mode, it just didn’t work as expected if it worked at all. i had to rm -rf ~/.config/pulse/ and rm ~/.asoundrc multiple times. Mostly the daemon would not start under my user account, but ran much better as root after the above “fix”.

So i decided, I need to run pulseaudio as root always (really this is called running under “system”). I found the command needed to be sudo pulseaudio --system --daemonize --disallow-exit. Warning: official documents say do not do this for security reasons, but F**K, it’s a pile of S**T and fails to work, so i’m doing it.

When I ran this, it seemed to work, but then would flake out. It seemed pulseaudio wanted to re-launch under my useraccount occasionally, so I eventually found to modify /etc/client.conf to include autospawn = no.  Of course  I had to sudo killall pulseaudio multiple times too.

Now everything seemed to work, so I proceeded to make it autostart at reboot this way. I ran sudo crontab -e and inserted @reboot pulseaudio --system --daemonize --disallow-exit. I rebooted and GLORY.

Additional Notes:
I should note that I had to verify my user/groups were in order too with sudo usermod -a -G pulse,pulse-access,audio $(whoami). I also did it for the user pulse but i really think that was overkill. Regardless attempting pulseaudio as user was still B******T. Also note, that modifying group memberships requires a reboot. (There are ways to avoid reboot, but reboot is wisest.)
http://rivendell.tryphon.org/wiki/Debian_6_Installing_Pulse_Audio
https://unix.stackexchange.com/questions/338687/pulseaudio-as-system-wide-systemd-service
https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/PerfectSetup/ ~~~

As always, good luck!









Coolest nerd tech ever:
 http://amzn.to/2BFbtM5

[SOLVED] NFS stopped mounting in Debian 9 Stretch

icon icon

NFS stopped mounting in Debian 9 Stretch

After some recent updates, unknown when and unknown why, NFS mounting to my Synology device stopped working.

Thanks to these resources, I re-configured it and it works at boot-up again.
https://wiki.manjaro.org/index.php?title=Fstab_-_Use_SystemD_automount
https://linoxide.com/file-system/example-linux-nfs-mount-entry-in-fstab-etcfstab/

My /etc/fstab now looks like this:
172.16.5.49:/volume1/data /mnt/synology nfs noauto,x-systemd.automount,x-systemd.device-timeout=10,rsize=8192,wsize=8192,timeo=14,hard,intr,noatime 0 0

~~~

As always, good luck!









Coolest nerd tech ever:
 http://amzn.to/2BFbtM5

January 29, 2018

trojan:powershell/peasecto.A powercli false positive vmware powercli



Problem:
Trojan:Powershell/Peasecto.A - VMWare PowerCLI False Positive

Available Resources:
1) https://blogs.vmware.com/PowerCLI/2018/01/windows-defender-reports-false-positive-powershell-modules.html
2) http://vmpro.at/windows-defender-reports-false-positive-for-powershell-modules/
3) https://social.technet.microsoft.com/Forums/en-US/40fa56dd-b73f-456a-9d97-cdb4500bc7ed/latest-updates-indicated-peasectoa-infection-?forum=WindowsDefenderATPPreview

This is what i did:
1) DISABLED WINDOWS DEFENDER REALTIME and CLOUD
2) Find-Module "VMWare.*" | Install-Module -AllowClobber -Verbose -Scope AllUsers -Force
3) Find-Module "VMWare.*" | Update-Module -Verbose -Confirm:$false

See https://steronius.blogspot.com/2017/04/vmware-powercli-651-now-easily.html for my original PowerCLI install post.

~~~
As always, good luck!








Coolest nerd tech ever:

 http://amzn.to/2BFbtM5



January 24, 2018

Practically "Free" Landline service with ObiHai and Google voice (VOIP)


FREE LANDLINE PHONE - IT'S TRUE !!!

I have purged myself from paying for a traditional landline.

I can hardly believe that's it's been this long.  Since November of 2013, I have had practically free landline service by using Google Voice via an OBIHAI.com device over my Internet Service.  (Yes, I do pay separately for Internet.)  Google Voice calling is free nation-wide. (If you need to call overseas, they offer extremely low international rates.)

If I had retained my traditional phone service costing about $30 per month, I would have paid over $360+fees+taxes per year. However, I have only paid 80 cents per month for my optional e911 from Anveo.com, plus the initial cost of hardware.

How i did it:

I purchased the OBi200 from Amazon for less than $50.  You may also choose the Obi202, which is 2-port version. You should also purchase the replacement warranty 3rd party service for less than $5.  OBIHai Officially supports Google Voice. Also see the OBIHai+GoogleVoice Overview.



I then acquired a Google Voice phone number and configured my ObiHai to use it.  (Technically, I ported my existing number for a cost, but such is optional.  If you find you cannot port your landline number, you can circumvent the system by porting it to a mobile device SIM, then to Google -- This was a $30 and 5 day process for me -- again this is optional as I preferred to retain my existing number.)

My family has utilized "FREE" VOIP phone service for years now and it is of the same quality as any phone service from a traditional provider.  It works perfectly with my multi-phone cordless base-set much like this one.  Additionally, with Google Voice, I am able to receive voicemail recordings and missed call notifications direct to my Gmail.  I can also block numbers easily via web interface and use other awesome features such as having Calling Circles for filtering calls direct to voicemail.

Most telephony service providers are now only offer VOIP anyway.  With Google and OBiHai you can now remove the middle-man and have the same service without the $20-30 monthly costs associated with it.

Google Voice does NOT provide 911 service; however, Anveo.com provides me with e911 for a mere 80 cents per month.

Please consider using my Amazon affiliate Ad for the OBi200 above and optionally my Anveo.com referral code 7384061.

For a little more detail on the ObiHai device, see this nice article: https://www.geekzone.co.nz/sbiddle/8736

DO NOT BUY OBi300 nor OBi302, they DO NOT SUPPORT GOOGLE VOICE!
Buy OBi200 or OBi202, or research other products.
---
As Always, Good Luck!





Please comment or tip me or use any/all of my affiliate links; Thank YOU!
You can thank me with bitcoin.    


free phone
free landline
free voice
free google phone
free google voice
quit ATT
quit AT&T
stop paying

January 23, 2018

Open DNG raw files in GIMP


Problem: GIMP (GNU Image Manipulation Program) cannot open my .DNG raw file. (Debian/Ubuntu)

Solution: Install UFRaw: sudo aptitude install gimp gimp-ufraw

~~~

Please consider crypto tipping:
  

January 19, 2018

The Best Add-On for YouTube


EfYT

Enhancer for YouTube is one of the best add-ons ever.

Do you want to watch podcasts at 1.3x speed? Or long-ass drone videos at 10x speed?

Want to control volume (and/or speed) with the mouse wheel?

Want to demonetize everyone with an AdBlocker?

Want cinema mode?

I could not live without : https://www.mrfdev.com/enhancer-for-youtube