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

#106
Raspberry Pi / Static IP on WLAN0
March 06, 2018, 04:27:08 PM
Add the following to the bottom of  /etc/dhcpcd.conf 

interface wlan0
static ip_address=192.168.0.34/255.255.255.0
static routers=192.168.1.1
static domain_name_servers=8.8.8.8 8.8.4.4

or

interface wlan0   or  eth0
static ip_address=192.168.0.34/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1 8.8.8.8 8.8.4.4
#107
You might have to unplug the network cable to login then put it back to preform.

netdom.exe resetpwd /s:<server> /ud:<user> /pd:*

<server> = a domain controller in the joined domain

<user> = DOMAIN\User format with rights to change the computer password

/pd: password you want to use.

Example:   netdom resetpwd  /s:Quartz /ud: administrator /pd: blusky123!

Step 1: Getting in
If you know the local admin password - great! just click Switch User and log in as .\administrator and your password ".\" replaces the computer name in case you dont know it.Unplug the network cable, disable wireless, then reboot the system. After reboot log in with you domain credentials and you should be able to get back in.

Step 2: Reestablishing Trust

Open PowerShell as administrator. Run this command sequence:
$credential = Get-Credential – (enter domain admin account when prompted)

Reset-ComputerMachinePassword -Server ClosestDomainControllerNameHere

Example:    Reset-ComputerMachinePassword -Server Quartz

and you are all set:)

Show domain controller          echo %LOGONSERVER%
lists all domain controllers             nltest /dclist:

#108
Windows Fixes / MS-SQL server 2008 Install
February 07, 2018, 11:52:55 AM
If you get "Cannot connect to PC-NAME\SQLEXPRESS. A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. "    You do not have the server component install or the server is not running






Please check the ServerName which you provided. It should match with the below shown Name in the UserName textbox, and that name should followed with \SQLEXPRESS:



(local)\SQLEXPRESS will work as well as .\SQLEXPRESS


Start your Local SQL Server Service

Start SQL Config Manager: Click Start -> Microsoft SQL Server 2008 R2 -> SQL Server Configuration Manager
Start SQL Services: Set the SQL Server (SQLEXPRESS) and SQL Server Browser services to automatic start mode. Right-click each service -> Properties -> Go into the Service Tab
This will ensure they start up again if you restart your computer. Please check to ensure the state is "Running" for both services.




Login and authenticate with your Local SQL Server

Now open up SQL Server Management Studio and click "Connect to Object Explorer" and select Server Name:
[Your PC name]\SQLEXPRESS

Example: 8540P-KL\SQLEXPRESS or (localhost)\SQLEXPRESS

To find your PC name: Right click My Computer -> Properties -> Computer Name tab

Alternative: Login using windows authentication: Using the user name [Your Domain]/[Your User Name]






Setup User Account

Create a new Login acct: In SQL Mgmt Studio -> Expand your local Server -> Security -> Right click on Logins -> New Login

Set Password settings on New User Account: Uncheck Enforce password policy, password expiration and user must change pw(Since this is local) Default database -> Your Database

Grant roles to New User Account: User Mapping Page -> Map to your db and grant db_owner role Status Page -> Grant Permission to connect and Enable Login






Setup Access Permissions/Settings for User

Enable all auth modes: Right click your Local Server -> Properties -> Security Tab -> Enable SQL Server and Windows Authentication Mode
Enable TCP/IP: Open SQL Server Configuration Manager -> SQL Server Network Configuration -> Protocols for SQLEXPRESS -> Enable TCP/IP
Restart SQL Server Service: You will have to restart the SQL Server(SQLEXPRESS) after enabling TCP/IP



Database Properties File for Spring Project

database.url=jdbc:jtds:sqlserver://[local PC Computer
name];instance=SQLEXPRESS;DatabaseName=[db name];

database.username=[Your user name] database.password=[Your password]

database.driverClassName=net.sourceforge.jtds.jdbc.Driver

#109
To create a text_left  new line to stack in camera feed use: %\n     example text_left CAMERA %t FrontDoor%\n0000 Grand Blvd%\nBryan,TX 77054  then it will result to   CAMERA 1
                FrontDoor
                0000 Grand Blvd
                Bryan,Tx 77054
#110
On a Apple Keyboard  hold the " option + R" to get the utilities menu.

On a microsoft Keyboard hold the " ALt " right after power up then to reload over the internet press the "windows key + R "
#111
Linux Fixes / How to Use symlink
December 28, 2017, 02:50:34 PM
Say var is the link your trying to make in another directory use the line below.
Path to where you put var is the original directory(Source).    "var"(Target) is the linked directory in the folder you want ,If the folder is already created it will put the sources path in the folder. You can delete the Target folder and it will create the Target folder name.

ln -s /path/to/where/you/put/var var
ln -s /mnt/bigdrive/Videos /var/www/html/vids    example - do not create the folder just put the folder name at the end of the symlink cmd to create the symlink name ( vids )
ln-s /mnt/bigdrive/Videos vids

Link to a windows share: mount -t cifs //server/share /mnt/abc -o user=user,pass=password,dom=domain
exapmle: mount -t cifs //192.168.2.1/C /mnt/Windows-C -o user=name_of_windows_user_account, pass=Windows_password

unlink [symlink to remove]
rm [symlink name]

Use crontab to start script at starup after reboot https://linuxhint.com/a-beginners-guide-to-crontab-on-centos/
#112
Windows Fixes / AutoLogon to Windows 10
December 06, 2017, 09:14:23 AM
Step 1: Open Registry Editor. To do so, type Regedit in the Start menu search box or Run command box and then press Enter key. Click Yes button when you see the UAC (User Account Control) box.




Step 2: In the Registry Editor, navigate to the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon



Step 3: On the right-side, look for the entry named DefaultUserName, double-click on it and make sure that your Microsoft account or local user account name is appearing under Value data box.


Step 4: Next, on the right-side again, look for the entry named DefaultPassword. If the entry doesn't exist, please create one by right-clicking on the empty space, clicking New and then clicking String Value. Rename it to DefaultPassword and enter your password in the Value data box. Click OK button.


Step 5: Finally, you need to enable automatic logon. To do so, on the right-side (once again), look for the entry labelled AutoAdminLogon and then change its value from 0 (zero) to 1 (one).


That's it! Restart your PC to see your Windows 10 automatically logging into your account without asking you to enter the password. Good luck!










#113
Windows Fixes / Clone Larger HDD to smaller SSD
November 13, 2017, 03:39:19 PM
Using Macrium Reflect ,you can also use Free MiniTool Partion Wizard 10.2
#114
Windows Fixes / Bootable USB to iso image
September 22, 2017, 08:59:37 PM
How to Convert a Bootable USB to an .iso File

Published 2015-02-03

Thanks to: https://forums.hak5.org/index.php?/topic/15567-convert-bootable-usb-to-iso/

Download and install ImgBurn. It's a free application, but be careful during installation that you don't install the 3rd party crap with it. Make sure you select "Custom" during each screen and deselect the crapware that tries to sneak in.

Plug the bootable stick into your machine.

Open the ImgBurn application.

Now click on the "Create image file from files / folders"


ImgBurn Main Screen

Next to the Sources pane, click on the Browse Folder button.

Browse Folder Button

Select the folder or drive you want to convert. In this instance I'm just imaging the D: drive.

Selecting D: Drive

Next, click on the Browse Folder button next to the Destination part.

Browse Folder Buttton

Select a location to store the .iso file, and the name for it. In this instance I'm saving it to C:\Temp\New Folder and naming it Image.

Setting Destination File

Click the Advanced tab, and then the Bootable Disc tab.


Check the Make Image Bootable checkbox, and click the Browse button next to Boot Image.


Browse to the Boot folder, and open the etfsboot.com file.


Set the Developer ID to Microsoft Corporation and the Sectors To Load to 8. Leave 07C0 in the Load Segment part.


Now click the big Build button on the bottom-left.


Because we didn't give the image a title, we get this error. Just click Yes to accept the default, or provide a name you desire.


And you'll receive a confirmation about what will happen next. Click OK. In my case, I actually had to go back to the advanced tab as well to permit making an image that exceeds the ISO standard size (Mine's over 10GB).


And then patiently wait...


And that's it! Enjoy your newly created .iso file.




























#115
Raspberry Pi / To autostart a program at boot Raspberry PI
September 11, 2017, 12:00:57 PM
Put the cmd in the " /etc/rc.local "
for python use & just in case of a loop.  example:  sudo python /directory/to/use/File.py
#117
Connect Tracer 4210RN to Raspberry_Pi to display on webpage

http://www.rototron.info/raspberry-pi-solar-serial-rest-api-tutorial/
#118
Raspberry Pi / Get Solar Info From Raspberry_PI
August 14, 2017, 02:41:15 PM
Get Solar info from Ras_Pi

http://www.rototron.info/raspberry-pi-solar-serial-rest-api-tutorial/

put info in a iframe box  and have it update every five seconds. use code below for all browsers:



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

#120
General Discussion / Wire SonOff to light switch
July 12, 2017, 02:12:25 PM
All Credit to the SuperHouse 



 You may reach them at http://www.superhouse.tv

This for a US wire color code setup