You can install the default-jre to get the default Java package installed
sudo apt install -y default-jre
You can install the default-jre to get the default Java package installed
sudo apt install -y default-jre
You’ll need to install and setup adb and then run the following commands. Change ipaddress to the ip address of the device running Android Things
adb connect ipaddress adb root adb remount adb push bootanimation.zip /system/media/ adb reboot
bootanimation.zip will either need to be in the same directory as adb, or you can specify the path. For example if it is located on your Desktop you can use
For Windows
adb push \Users\username\Desktop\bootanimation.zip /system/media/
on Linux or MacOS
adb push ~/Desktop/bootanimation.zip /system/media/
You can use the -a option to resolve an address to a hostname.
-a Resolve addresses to hostnames.
Example from Windows command prompt
C:\Users\Bob>ping google.com -a Pinging google.com [64.233.185.138] with 32 bytes of data: Reply from 64.233.185.138: bytes=32 time=8ms TTL=44
You can view an email message in Exim with the following command and options.
exim -Mvh email-id
Example output
# exim -Mvh 1jTAsw-0101m5-TH mailnull 47 12 <> 1591431138 0 -received_time_usec .007773 -ident mailnull -received_protocol local -body_linecount 109 -max_received_linelength 98 -allow_unqualified_recipient -allow_unqualified_sender -localerror XX 1 larry@incredigeek.com 155P Received: from mailnull by cpanel.server.co with local (Exim 4.93) id 1jTAsw-0101m5-TH for larry@incredigeek.com; Sat, 06 Jun 2020 03:12:18 -0500 045 X-Failed-Recipients: bob@incredigeek.com 029 Auto-Submitted: auto-replied 068F From: Mail Delivery System Mailer-Daemon@cpanel.server.co 025T To: larry@incredigeek.com 064 References: 0.0.7.15D.1D63BD03648840.0@slot0.cn-sinosure.com 098 Content-Type: multipart/report; report-type=delivery-status; boundary=1121689138-eximdsn-67139566 018 MIME-Version: 1.0 059 Subject: Mail delivery failed: returning message to sender 057I Message-Id: E3ghaTA-001qN5-Hn@cpanel.host.com 038 Date: Sat, 06 Jun 2020 03:12:18 -0500
You can view the message body with the -b option
exim -Mvb email-id
Example
exim -Mvb email-id 1jTAsw-0101m5-TH --1231463132-eximdsn-21535482 email message --1231463132-eximdsn-21535482--
https://developer.android.com/things/hardware/raspberrypi
Download the Console Tools from the following link. You will need to sign into your Google account.
https://partner.android.com/things/console/#/tools
Unzip the file and Launch the correct utility for your OS.
On Windows you will need to launch as administrator by right clicking on the Windows Application and Run as administrator.
The program is easy to follow along with and automatically downloads and creates the SD card for the Pi.
After you are finished, put the card in the Pi and boot it up.
Open up the following file, change eth0 to your primary ethernet adapter. More info here.
vi /etc/sysconfig/network-scripts/ifcfg-eth0
and under IPADDR set it to the new IP. Update netmask and gateway if needed.
Save file and restart network
systemctl restart network
You may need to run the following to update the license on the server.
/usr/local/cpanel/cpkeyclt
You may need to migrate IP’s to the new address.
If you are keeping the old address on the server, then you may need to readd it through the IP Functions.
Had a problem with a WHM/cPanel server where it was working fine from a couple different networks, but then would not work on others. The server itself seemed fine and fully operational.
Checked firewall rules on routers, server, checked IP routes, tried disabling cPHulk. Ended up being there were a couple addresses added with the incorrect subnet mask which was keeping it from working. Removed the IP’s with the wrong subnet and it started working on all networks.
[root@host ~]# ifconfig eth0: flags=4163 mtu 1500 inet 192.168.1.70 netmask 255.255.255.224 broadcast 192.168.1.95 inet6 7f80::4588:523f:a697:c311 prefixlen 64 scopeid 0x20 ether 4b:02:de:0d:cf:1a txqueuelen 1000 (Ethernet) RX packets 171071 bytes 83556877 (79.6 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 163710 bytes 76482245 (72.9 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 eth0:cp1: flags=4163 mtu 1500 inet 192.168.1.74 netmask 255.255.255.224 broadcast 192.168.1.95 ether 4b:02:de:0d:cf:1a txqueuelen 1000 (Ethernet) eth0:cp6: flags=4163 mtu 1500 inet 192.168.1.75 netmask 255.255.224.0 broadcast 23.145.159.255 ether 4b:02:de:0d:cf:1a txqueuelen 1000 (Ethernet) … [root@host ~]#
Under eth0:cp6 the IP has a 255.255.224.0 subnet which is incorrect. Should have been a 255.255.255.224 (/27) subnet.
Removed the IP out of WHM and then readded with the correct subnet mask and it now works.
Open up the my.cnf file
vi /etc/my.cnf
Add the following line so MySQL will only work from the server. Basically blocks all remote MySQL conenctions.
Configure bind-address=127.0.0.1
Restart the MySQL service
systemctl restart mysqld
SSH into WHM server
ssh root@cpanel.host.com
Edit the following config file. Replace “website.com” with the website your enabling the shell_exec for
vi /opt/cpanel/ea-php72/root/etc/php-fpm.d/website.com.conf
Locate the following line and remove shell_exec from the list of disabled_functions
php_admin_value[disable_functions] = exec,passthru,shell_exec,system
The line should look like the following
php_admin_value[disable_functions] = exec,passthru,system
Save the file and restart the apache_php_fpm service
/scripts/restartsrv_apache_php_fpm
Log into WHM -> Software -> Easy Apache 4
Under PHP Extensions search for zip and select Install for your version(s) of PHP
Hit next till you get to the end and then hit provision. Once the provision is complete, hit done.