четверг, 25 августа 2016 г.

time zone in linux Смена времени в линуксе

Можно долго настраивать  вручную коммандой:

# date +%T -s "10:13:13"

А можно быстро  выбрать timezone и время настроится автоматически:

dpkg-reconfigure tzdata

переключить время в 24 часовый формат
 
sudo localectl set-locale LC_TIME=en_GB.UTF-8

or

dpkg-reconfigure locales
---------------------------------------------------------------
timedatectl
timedatectl list-timezones

lrwxrwxrwx 1 root root 30 Aug 17 02:21 /etc/localtime -> /usr/share/zoneinfo/UTC
set

sudo ln -sf /usr/share/zoneinfo/America/Chicago /etc/localtime
ln -sf /usr/share/zoneinfo/UTC  /etc/localtime

четверг, 21 июля 2016 г.

DHCP fast start

1) install:
apt-get install isc-dhcp-server
2)  edit:
vim /etc/dhcp/dhcpd.conf

ddns-update-style none;
ddns-domainname "example.com";
ignore client-updates;
option host-name = config-option server.ddns-hostname;


option domain-name              "example.com";
option domain-name-servers      10.10.10.2;
option time-offset              -18000; # Pacific Standard Time
option ntp-servers              10.10.10.1;
one-lease-per-client off;
default-lease-time 86400;
max-lease-time 604800;
option ip-forwarding off;


subnet 10.10.10.0 netmask 255.255.255.0 {
        range 10.10.10.100  10.10.10.200;
        next-server  10.10.10.1;
        option routers                  10.10.10.1;
        option subnet-mask              255.255.255.0;
        option ntp-servers              10.10.10.1;
        option tftp-server-name "https://10.10.10.1/provisioning/prov";

    }

3) restart
/etc/init.d/isc-dhcp-server restart
4) show for IP leases:
tail -f /var/lib/dhcp/dhcpd.leases

четверг, 31 марта 2016 г.

Apt-get in old debian version

1) watch your debian version here :

cat /etc/debian_version

2) Change your version here (such etch, squeeze  etc) :

vi /etc/apt/sources.list

deb http://archive.debian.org/debian/ squeeze main non-free contrib deb-src http://archive.debian.org/debian/ squeeze main non-free contrib 
deb http://archive.debian.org/debian-security/  squeeze/updates main non-free contrib deb-src http://archive.debian.org/debian-security/ squeeze/updates main non-free contrib


2) apt-get update

среда, 30 марта 2016 г.

DNS tools


посмотреть МХ записи для домменого имени

host -t mx yahoo.com
yahoo.com MX 1 mx2.mail.yahoo.com
yahoo.com MX 1 mx3.mail.yahoo.com
yahoo.com MX 1 mx1.mail.yahoo.com
yahoo.com MX 9 mta-v1.mail.yahoo.com

Проверить сервер на ресолв
nslookup ya.ru 172.25.1.1 - проверить DNS сервер 172.25.1.1

Еще один способ
dig @1.1.1.1 facebook.com

вторник, 26 января 2016 г.

XBOX Falcon, Freeboot и зависания.

      Этот метод избавил мой старенький Фелкон от регулярных зависаний после 5-10 мин игры.
Зависания появились сразу, после установки Freeboot. Установщик чипа "наотрез" отказался решать эту проблему, сославшись на плохую репутацию "Фелконов", их якобы постоянный перегрев  и то что делал я это на свой страх и риск.
       Но меня смутило то, что  период зависаний никак не был связан с нагрузкой в играх и перегревом микросхем приставки,  к тому же до "чиповки",  на дисках, приставка практически никогда не зависала.
Погуглив нашел этот великий сайт:

У меня метод сработал на 100%. Ребята, спасибо вам БОЛЬШОЕ!

1. Put the NAND Flasher 360 for XBOX 360 v1.2.0 on your USB stick, start your Xbox 360 and put the USB stick in.

2. Use the File Manager on your Xbox 360 to start NAND Flasher 360 for XBOX 360 v1.2.0 by opening the default.xex file


3. Click Dump NAND to make an backup of your original Xbox 360 NAND to the USB stick

4. After it finishes, shutdown the Xbox and put the USB stick back in your PC
You will need the program called 360_Flash_Tool_v0.97 to open your original NAND and change the SMC values.

5. Open the 360_Flash_Tool_v0.97 application and if it asks, enter the CPU key from your Xbox 360 to continue

6. Click on ... to select and open the orig_nand.bin file from the USB stick (this is your original NAND from your Xbox 360)

7. Click on Tools and select Edit Config.

8. The next screen will show the current values of your Xbox 360 NAND. Click on Edit Config down left to be able to change the values.

The only values you need to change are:
Power Mode should be 8280
Power VCS Control should be 8565
Both ANA Fuse Value should be 03


These are the changes that will make your RGH Falcon not freeze anymore. Thanks goes to the amazing people on the forums who tirelessly tried many solutions until they found what works (none of which are affiliated with this site in any way). This is only a simplified guide for educational purposes based on their findings.



9. When you make the changes to be as the picture above, save the modified NAND as updflash.bin
10. Put the newly created updflash.bin on your USB stick and put it in your Xbox 360
11. Use again the File Manager on your Xbox 360 to start NAND Flasher 360 for XBOX 360 v1.2.0 by opening the default.xex file
12. This time click on Write NAND and choose updflash.bin
13. Wait until the update procedure is finished and shutdown your Xbox 360

That is it! From now on, your RGH Glitched Falcon Xbox 360 will be free of freezing issues (at least from the RGH). You can test it by playing a game without freeze for more than an hour.

Just in case you need them for another Xbox 360:
The possible alternative values for Power Mode can be 8280 or 8380 or 8480
The possible alternative values for Power VCS Control can be 8555 or 8565
The possible alternative values for ANA Fuse Value can be 01 or 03