How to turn on the iPhone if the button does not work

To turn on the iPhone without a power button, just connect it with a USB cable to your computer.

If the iPhone does not turn on immediately, the battery is likely to be completely depleted, in which case it will be necessary to wait about 10 minutes until it has enough charge to turn on, after which the iPhone will turn on.

Setting up a network in Windows via the command line

To begin, open the command line by clicking on the shortcut in the Start menu or typing the command “cmd” in the “Run” line.

Here is an example of viewing the current configuration:

netsh interface ip show config

View a list of network interfaces:

netsh interface ipv4 show interfaces

An example of configuring static parameters for an interface named Ethernet 2:

netsh interface ip set address name="Ethernet 2" static 192.168.0.101 255.255.255.0 192.168.0.1 1

Or so:

netsh interface ipv4 set address name="Ethernet 2" source=static address=192.168.1.2 mask=255.255.255.0 gateway=192.168.1.1
netsh interface ipv4 add dnsserver name="Local" address=8.8.8.8 index=1

Example of obtaining parameters for the Ethernet 2 interface by DHCP:

netsh interface ip set address name="Ethernet 2" dhcp

Example of obtaining the DNS parameters for the Ethernet 2 interface by DHCP:

netsh interface ip set dns "Ethernet 2" dhcp

Export the current configuration to a file:

netsh -c interface dump > d:cfg1.txt

Importing a configuration from a file:

netsh -f d:cfg1.txt

Configuring Cloud in Mikrotik

Starting from the version of RouterOS v6.14, the Cloud function is added which allows using the Dynamic DNS name for a device that is automatically assigned and can be accessed by it even if the IP address is changed.

Example of switching through the console:

ip cloud set enabled=yes

Example of viewing parameters:

ip cloud print

Enable device time update with DDNS server time (if SNTP or NTP service is not configured):

ip cloud update-time yes/no

Immediate update of DDNS:

ip cloud force-update

View the DDNS name:

ip cloud dns-name

View the public IP address to which DDNS is bound:

ip cloud public-address

Binding DDNS to a local IP address instead of a public one, for example to 192.168.1.101, etc.)

ip cloud advanced use-local-address yes/no

View the current status of the Cloud (updated, updated, error, etc.):

ip cloud status

Through the graphical interface of the Cloud settings can be found in the menu “IP” – “Cloud”.

Troubleshooting “Recipient address rejected: Intentional policy rejection, please try again later”

I once told alibaba.com the email of one of the servers with iRedMail, but the letters for some reason did not come.
In the logs /var/log/mail.log saw the following message:

Continue reading “Troubleshooting “Recipient address rejected: Intentional policy rejection, please try again later””

Automatically installing Mikbill in Debian 7

For the test, I will perform the automatic installation of Mikbill in Debian 7 and describe the process.

See also my article – How to make a bootable USB flash drive with Debian

Switch directly to the root user:

su -

Download the archive from Mikbill and unpack it:

wget http://www.mikbill.ru/mikbill.tar.gz
tar xzvf mikbill.tar.gz

Run the installation script in Debian 7:

cd DISTR/Debian7x
./install_debian7x

During the installation process, we answer the questions, the IP address of the billing page (where it will be opened), the billing domain, MySQL passwords.

After installing the billing did not open in the browser, there was an error:

502 bad gateway

To solve it, in the text editor opened the configuration:

nano /etc/php5/fpm/pool.d/www.conf

Found the string:

listen = /var/run/php5-fpm.sock

And replaced it with:

listen = /var/run/php-worker-socket

After rebooting the system, everything worked.

Check if Mikbill and radius are working with commands:

netstat -anp|grep 0.0.0.0:2007
netstat -anp|grep 0.0.0.0:1812
netstat -anp|grep 0.0.0.0:1813

The standard login and password to admin panel is admin/admin.
You also need to set the time zone in the system by typing:

dpkg-reconfigure tzdata

And the time zone in billing and /etc/php5/.