News:

The Latest electronic and computer Tips that work!

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - branx86

#136
Linux Fixes / Create a crontab startup script
November 04, 2019, 10:44:14 AM
1. Create script nano WhateverNameyouChoose.sh
2. Put the text below in the top of the script:
#!/bin/sh
# launcher.sh
# navigate to home directory, then to this directory, then execute python script, then back home

cd /
cd home/pi/bbt
sudo python bbt.py
cd /

3.Make script an executable: chmod 755 WhateverNameyouChoose.sh
4. crontab is a background (daemon) process that lets you execute scripts at specific times.
   sudo crontab -e
  To make script start at reboot: @reboot sh /home/pi/WhateverNameyouChoose.sh >/home/pi/logs/cronlog 2>&1

reboot should be working.
#137
Linux Fixes / Rsync to copy to another drive
November 01, 2019, 08:01:00 AM
rsync -aAXv --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} /* /mnt/bigdrive/BackupImages.1
#138
Windows Fixes / Safe mode windows 10
October 04, 2019, 08:51:41 AM
bcdedit /set {default} bootmenupolicy legacy

bcdedit /set {default} safeboot minimal

bcdedit /set {default} safeboot network

rstrui.exe to run roll back
#139
General Discussion / Sonoff Light switch
August 08, 2019, 01:42:40 PM
Connect wires to GPIO14 & Ground to Control for U.S. Light Switch




#140
Windows Fixes / Get Mac Address remotely
July 23, 2019, 09:32:54 AM
use getmac /s ipaddress       Exp. getmac /s 10.64.65.61

or  ping address
then   arp -a ipadress

IF it's a windows machine on the other end do " nbtstat -a remotecomputer  "
#141
Windows Fixes / Browser Favorite Locations
July 11, 2019, 09:59:37 AM
Chrome Favorites Location:
Users\Name_OF_User\AppData\Local\Google\Chrome\User Data\Default

Internet Explorer Location:
C:\Users(username)\Favorites\

Firefox Location:
C:\Users\<Windows login/user name>\AppData\Roaming\Mozilla\Firefox\Profiles\<profile folder>

Safari Location:
C:\Documents and Settings\YourUsername\Application Data\Apple Computer\Safari\Bookmarks.plist
#142
Windows Fixes / Remove arrows from Icon's win10
June 13, 2019, 05:24:40 PM
First open regedit
Then navigate    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer

Next, you're going to create a new value inside the Shell Icons key. Right-click the Shell Icons folder icon and choose New > String Value. Name the new value 29.




Now, you're going to modify that value. Double-click the new 29 value and type (or copy and paste) the following into the "Value data" box to remove arrows from shortcut icons:   %windir%\System32\shell32.dll,-50




To put the arrows back just Delete the 29 key.
#143
Arduino / Arduino 16x16 LED Sign
March 12, 2019, 09:34:10 PM
Use Arduino 1.0 to program  use the attachment to program ino and 16x16Scrolling Letters_Numbers to write messages.

IF you use Ardunio IDE 1.6.8
use settings:
      Board "Arduino/Genuino UNO"
      Programmer "AVRISP"
      Serial Monitor Baud Rate "9600"
#144


<script type="text/javascript">
   setInterval(refreshIframe, 5000);
   function refreshIframe() {
       var frame = document.getElementById("Frame");
       frame.src = frame.src;
   }
</script>

<iframe id="Frame" src="http://www.aspforums.net" frameborder="0"></iframe>

#145
Linux Fixes / Xibo install
December 31, 2018, 03:34:49 PM
st finished the install. Hope can save someone's time. Please fell free to modify, amend and comment.

Avoid using Chrome on install, it has strange problem.

Install CentOS minimum. I use CentOS-7.2.1511-x86_64 then update.

Install net-tools and editor if not using vi.
Disable /etc/sysconfig/selinux

sudo yum -y install httpd
sudo systemctl enable httpd
sudo firewall-cmd --permanent --add-port=80/tcp
sudo firewall-cmd --permanent --add-port=443/tcp
sudo firewall-cmd --reload

yum install -y epel-release
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm 102

PHP 5.6
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm 77

The following work for me.
yum install -y php56w php56w-opcache php56w-common
yum install -y php56w-pear php56w-devlop.x86_64
yum install -y php56w-devel php56w-intl php56w-soap php56w-mcrypt json
yum install -y php56w-pdo php56w-gd
yum install -y php56w-mysql
yum install -y php56w-mbstring

Install MariaDB
yum -y install mariadb-server
systemctl enable mariadb
systemctl start mariadb
mysql_secure_installation

Prepare compile zeromq
yum -y group install "Development Tools"

Download zeromq.
tar zxvf zeromq-4.2.0.tar.gz
./configure
make
make install
pecl install zmq-beta
edit /etc/php.ini and add extension=zmq.so 110

Extract cms to /var/www/xibo18.
Edit /etc/httpd/conf/httpd.conf change
DocumentRoot "/var/www/xibo18/web"
<Directory "/var/www/xibo18/web">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
Require all granted

chown -R apache:apache /var/www/xibo18

XMR
/var/www/xibo18/vendor/bin/config.json
{
"listenOn": "tcp://ip_addr:50001",
"pubOn": ["tcp://ip_addr:9505"],
"debug": false
}

XTR
EDITOR=joe crontab -e
'* * * * * /usr/bin/php /var/www/xibo18/bin/xtr.php'

Edit /etc/php.ini
max_execution_time = 120
memory_limit = 256M
post_max_size = 256M
upload_max_filesize = 256M
extension=zmq.so 110
date.timezone = TIME_ZONE

systemctl restart httpd

http://IP_ADDR

Enjoy.
#146
Raspberry Pi / Upgrade raspberry Pi Distro
December 14, 2018, 08:44:36 PM
1 sudo apt update

2 sudo apt dist-upgrade

3 sudo apt clean

4 sudo reboot

5. Done
#147
Raspberry Pi / Show Boot text on bootup
December 14, 2018, 08:01:11 PM
Just edit the /boot/cmdline.txt file, and remove the quiet directive.

# cat /boot/cmdline.txt
#dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=xxxxxxxx-yy rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles

cp /boot/cmdline.txt ~/boot_cmdline_bak.txt
sudo nano /boot/cmdline.txt
#148
Windows Fixes / gpresult to find out all the members Of
December 03, 2018, 09:44:04 AM
gpresult/Z     to find out all the members Of  in AD
#149
General Discussion / Knock Apart Utility Table
November 15, 2018, 03:29:05 PM







This table is made from a full sheet of 5/8-in. plywood for the interlocking base stand and a sheet of 3/4-in. plywood for the work surface and shelves. You'll also need four 10-ft. lengths of 1×3 pine for the edge banding and cleats.

Cut two 30-in. high by 48-in. long pieces from the 5/8-in. plywood for the base pieces. Then cut a slightly oversize 5/8-in. wide slot in the bottom half of one base and in the top half of the other. Make both slots about 15-1/2 in. long. Assemble the base and position the top so the corners are aligned with the legs. Screw loose fitting 12-in. long 1x3s along each side of each leg to hold everything stable.

The table is much more stable if you use the 3/4-in. waste from the top to make triangular braces (which also act as shelves) with 20-in. long sides. Using 1-1/4 in. drywall screws, attach 1x2s to the base about 12 in. up from the floor and screw the shelves down.


#150
General Discussion / Cheap OSB WorkBench
November 13, 2018, 08:26:37 AM
Made from four 8'  2x4's
One 2x4,about6' long
Two large OSB  7/16"Thick 3"Deck Screws  1-5/8"Deck Screws