php timezone canimi sikiyor.
ozellikle eski sunucularda
sunucu timezone/date dogru
ancak php europe/istanbul olanlari 1 saat geri aliyor.
konumuz +3 +2 yaz saati kis saati degil
calissin bu sistemler.

1- pecl install timezonedb
2- nano /usr/local/lib/php.ini

extension=timezonedb.so

3- service httpd restart

test icin:

<?php
// Prints something like: Monday 8th of August 2005 03:12:46 PM
echo date('l jS \of F Y h:i:s A');
?>

ya da

php.ini icinde

Europe/Istanbul olan satiri

Etc/GMT-3

olarak degistir.

daha kolay..

batch rename bunch of files – batch remove a part of a filename – linux

yani

toplu olarak dosyalari yeniden isimlendirmek veyahut isimde var olan bir bolumu degistirmek

komut bu su amac icin kullandim

user.bayi1.kullaniciadi.tar.gz dosyalarim var 100 kadar
ben bunlarin
kullaniciadi.tar.gz
olmasini istiyorum

dizinde su komudu calistir


rename "user.bayi1." "" *

olduda bitti masallah..

This is the best way to upgrade wget on Centos 5.x hosts

cd ~
wget http://ftp.gnu.org/gnu/wget/wget-1.16.tar.gz
yum -y remove wget
tar -xzvf wget-1.16.tar.gz
cd wget-1.16
./configure --with-ssl=openssl --with-libssl-prefix=/usr/lib64/openssl --prefix=/usr
make && make install

bunu denemedim
ama calisira benziyor.
bir ara denerim

rsync -auHxv --numeric-ids --exclude=/etc/fstab --exclude=/etc/network/* --exclude=/proc/* --exclude=/tmp/* --exclude=/sys/* --exclude=/dev/* --exclude=/mnt/* --exclude=/boot/* --exclude=/root/* root@OLD_IP:/* /

Asrock guzel bir anakartim var
Avaton CPU gomulu.
Guzel ustunde IPMI side var
ancak zaman zaman IPMI web Interface cevap vermez oluyor.
bu durumda ipmi ipinden ssh yapabiliyorum.
ipmi web interface BMC denen dalgaya bagli olduguan gore
ssh de yapabiliyorsam
ssh yaptikdan sonra asagidaki konutu calistirim BMC yi cold reset edebiliyorum.

ipmitool mc reset cold -I lan -H 10.0.0.1 -U admin -P password

Hello,
I better write this in English and help people all around the world to setup their ipv6 ip addresses easy and fast on Online.net dedicated servers with Proxmox v.4.x installed.

Facts:
1- have an online.net dedicated server
2- Installed Proxmox v.4.x onto it.
3- Need to have 2 seperate KVM virtual machines on it. 1 centos with DirectAdmin, and the other one with Debian and virtualmin. Don’t ask why.
4- Both server and KVM servers need to have ipv4 and ipv6 ip addressess.
5- So in total Server will have 3 ipv4 and /56 ipv assigned to it.
*This is important that you have to understand you can not use this tutorial to create ipv6 only KVM instances.
To do this you must first create another bridge let’s say vmbr2 and assing ipv6 to it.
Other way if you follow my tutorial, Online.net will disable your network port for using unauthorized mac address on their switches.

Anyway Let’s go to the tutorial:
1- Grab a server and install default Proxmox v4.x onto it. In my case Dedibox classic 2016 With Xeon-D and 2x250Gb RAID1 SSD and 32Gb ram.
2- Order additional 2 IPv4’s from online.net
3- Make a /56 subnet froum your assigned /48 ipv6 from your console on online.net. Do not forget to grab/copy your DUID for your newly created /56 ipv6 subnet.
4- On Proxmox host create your KVM servers and assign them ipv4 ips as usual.
5- After everything finished. On proxmox host node do these steps

1-1)

nano /etc/modprobe.d/local.conf
insert:

####
options ipv6 disable=0

2-2- Get IPv6 to start on boot

nano /etc/module

insert:
###
ipv6

3-3)
nano /etc/sysctl.conf

and insert lines below to bottom of this file:

# ONLINE IPv6
net.ipv6.conf.all.forwarding=1
net.ipv6.conf.all.accept_ra = 1
net.ipv6.conf.all.accept_ra_defrtr = 1
net.ipv6.conf.all.accept_ra_from_local = 0
net.ipv6.conf.all.accept_ra_min_hop_limit = 1
net.ipv6.conf.all.accept_ra_mtu = 1
net.ipv6.conf.all.accept_ra_pinfo = 1
net.ipv6.conf.all.accept_ra_rt_info_max_plen = 0
net.ipv6.conf.all.accept_ra_rtr_pref = 1

4-4)
nano /etc/dhcp/dhclient6.conf

insert:

####
interface "vmbr0" {
        send dhcp6.client-id "THE-DUID-OF-YOUR-/56-IPV6-BLOCK";
        request;
}
####

5-5)

nano /etc/network/interfaces

insert below:

####
iface vmbr0 inet6 auto
####

6-6)

nano /root/startipv6.sh

insert below:
####
sleep 30
dhclient -1 -cf /etc/dhcp/dhclient6.conf -pf /run/dhclient6.eth0.pid -v -nw -6 -P vmbr0
ip -6 addr add 2001:bc8:aaa:aaa::/56 dev vmbr0 
#### write your own /56 block above please ###

and then make this script executable:

chmod +x startipv6.sh

7-7)

nano /etc/rc.local

insert right before exit 0 line

####
/bin/sh /root/startipv6.sh
####

THE END OF THE CONFIGURATION FOR YOUR PROXMOX INSTALLATION.

now you better reboot to make things fine...

NOTES FOR MUCH KNOWING GEEKS:

1- yes I know I can use pre-up post-down etc,etc… in /etc/network/interfaces
BUT they do not work in my case. Why I don’t know…
2- yes I know I can add static /56 to my vmbr0 using /etc/network/interfaces. Only if IT WORKS 🙂

so don’t be a fool and don’t follow my guide if you know better than me 🙂

NOW THE KVM part:

In your newly created KVM server of Ubuntu 16.04:

1-1)

nano /etc/network/interfaces

insert below:

###
iface ens18 inet6 static
       address 2001:bc8:aaa:aaa:9:9::
       netmask 64
       gateway 2001:bc8:aaa:aaa::
       up ip -6 route add 2001:bc8:aaa:aaa::/56 dev ens18
       up ip -6 route add default via 2001:bc8:aaa:aaa::

###DO NOT FORGET TO CHANGE TO YOUR OWN DESIRED IPV6's ABOVE###

2-2)

nano /root/startipv6.sh

insert:
######
sleep  10
ifconfig ens18 add 2001:bc8:aaa:aaa:9:9:a:b00b/128
ifconfig ens18 add 2001:bc8:aaa:aaa:9:9:beef:ca1f/128
ifconfig ens18 add 2001:bc8:aaa:aaa:9:9:ea75:ca75/128
ifconfig ens18 add 2001:bc8:aaa:aaa:9:9:9:555/128
ifconfig ens18 add 2001:bc8:aaa:aaa:9:9:16:26/128
ifconfig ens18 add 2001:bc8:aaa:aaa:9:9:6:6/128
ifconfig ens18 add 2001:bc8:aaa:aaa:9:9:9:9/128
ifconfig ens18 add 2001:bc8:aaa:aaa:9:9:666:666/128
ifconfig ens18 add 2001:bc8:aaa:aaa:9:9:dead:beef/128
ifconfig ens18 add 2001:bc8:aaa:aaa:9:9:5a11:a:b0a7/128
ifconfig ens18 add 2001:bc8:aaa:aaa:9:9:c01a:cafe/128
ifconfig ens18 add 2001:bc8:aaa:aaa:9:9:be:be5t/128
ifconfig ens18 add 2001:bc8:aaa:aaa:9:9:fa7:10af/128
ifconfig ens18 add 2001:bc8:aaa:aaa:9:9:388d:2001/128
ifconfig ens18 add 2001:bc8:aaa:aaa:9:9:1234:5678/128
ifconfig ens18 add 2001:bc8:aaa:aaa:9:9:f:a/128
ifconfig ens18 add 2001:bc8:aaa:aaa:9:9:e:0c/128
ifconfig ens18 add 2001:bc8:aaa:aaa:9:9:ee:ee/128
ifconfig ens18 add 2001:bc8:aaa:aaa:9:9:dd:99/128
ifconfig ens18 add 2001:bc8:aaa:aaa:9:9:c:7356/128
ifconfig ens18 add 2001:bc8:aaa:aaa:9:9:999:555/128
ifconfig ens18 add 2001:bc8:aaa:aaa:9:9:ddaa:eebb/128
ifconfig ens18 add 2001:bc8:aaa:aaa:9:9:2001:dead/128
ifconfig ens18 add 2001:bc8:aaa:aaa:9:9:f:8912/128
ifconfig ens18 add 2001:bc8:aaa:aaa:9:9:1ce:babe/128
ifconfig ens18 add 2001:bc8:aaa:aaa:9:9:f:b00b/128
ifconfig ens18 add 2001:bc8:aaa:aaa:9:9:b00b:dead/128
ifconfig ens18 add 2001:bc8:aaa:aaa:9:9:6:d00f/128
ifconfig ens18 add 2001:bc8:aaa:aaa:9:9:4:1/128
ifconfig ens18 add 2001:bc8:aaa:aaa:9:9:c:00b/128
ifconfig ens18 add 2001:bc8:aaa:aaa:9:9:e:fa11/128

##These are JUST for example. 
#you can add whatever ipv6 ip addresses as you like,
#in your own /64 which you created on your /etc/network/interfaces

3-3)

chmmod +x /root/startipv6.sh

and

4-4)

nano /etc/rc.local

/bin/sh /root/startipv6.sh

###
DONE!...

AGAIN: This way works for me. Without any problems at all.
Almost ZERO problems for me.
No ipv6 drops etc.

So Although I know there are better ways to do these.
I prefer to make my ipv6 appear on my own adapters like that.

Thats’s all folks.

If you have anything to ask
shoot me an email at shukko at shukko.com address.

Regards and Happy IPV6 for all..

01.Eylul.2016 degil henuz
31 agustos su an ama olsun ben genede basliga oyle yazdim.
Guzel bir tarih eylul 1.

Konumuz su:
Turkcell T50 telefonumuz var.
Sikintimiz buyuk. Cok yavas calisiyor.
Stock Roma en yakin Turkiyede calisabilecek orjinal ZTE ispanya rom unu kursak nasil olur.
Tamam kuralim.

yaklasik 3 saat kadar sacma sapan seylerle ugrastiktan sonra sorunlarimi cozdum.
yazalim buraya sizde cozun adim admin.

Not: Ben windows kullanmiyorum o yuzden ADB yani Android Gelistirici windows ivir ziviri icin baska bir yerlerden arastirip yukleyebilirsiniz. Su anda bu islemleri Fedora 24 uzerinde yaptim.

1- Oncelikle bilgisayarimiza ADB ve Fastboot yeteneklerini kazandiralim

sudo dnf install android-tools

2- T50 telefonumuzu elimize alalim ve gelistiri secenekleri / developer zimbirtisini acalim.

yedi kere basiyoruz settings > telefon hakkinda > build numarasi yazan yere aciltikdan sonra

3- ayarlar Gelistirici seceneklerinde usb hata ayiklamayi aktif et.

4- Telefonu bilgisayara bagla usb kablosu ile . Sadece sarj icin kullanicam yaz. Usb hata ayiklama icin izin verme kutucugu cikacak herzaman izin ver diyip onayla.

5- Bilgisayarimizda yapacaklarimiz sirasiyla su sekilde

sudo adb start-server

sudo adb devices
*telefon bagli olarak gozukmesi gerekir*

sudo adb reboot bootloader
*telefon kapanacak ve turkcell logosu gorunecek*

sudo fastboot flash recovery Downloads/twrp.img
*onceden indirmis oldugumuz twrp.img dosyasini yukleyecegiz. indirme linkleri en asagida mevcut.
sending ‘recovery’ (12694 KB)…
OKAY [ 0.401s]
writing ‘recovery’…
OKAY [ 0.558s]
finished. total time: 0.959s
yazdiginda tamam dir
recoveryimizi twrp ile degistirdik.

6- simdi rom dosyamizi indirmeye sira geldi.
son ispanya romu asagidaki linkde tikla ve indir.

7- Bu dosyayi telefonu normal sekilde bilgisayar baglayip depolama surucusu icine normal ana dizine at gitsin.

8- telefonu kapat, usb kablosunu sok.

9- ses acma ve power tuslarina basili tutup telefonu ac
twrp ekrani gelicek

install dedikten sonra update.zip secip yukle.

oldu bitti masallah. Gule gule en son model stock ispanya romunu kullanabilirsin.

Simdi yukarida yazmadim burada aciklama olarak yazmak istiyorum.
1- twrp.img dosyasini t50 icin cocugunu birisi yapmis internetin kivrimlari arasinda kaybolmus gitmis. tam vazgecmek uzere iken son anda buldum bunu. Bulmamaydim bu islem olmazdi.
2- ilgili update.zip dosyasi icinde veryson kontrolu var. telefonun versyon olmuyor diyip yuklemiyordu orjinalini.
update.zip icinde veryson kontrolu yapan satirlari sildim xda dan bir yerden bularak hangi dosyanin neresinde oldugunu. ancak bu seferde signature verifikasyonu gecemiyordu.
Bunun icin twrp de signature checki kapatip islem yapmis olduk. Bu yuzden gerekli idi twrp zaten.

sonuc olarak oldu konu tamamlandi
bu update.zip om dosyasi tarafimdan editlenmis dosya dolayisi ile direk kullanilmaz stock recovery imaji ile.
twrp gerekir mecburen evet.

gule gule kullaniniz.

Konu hakkinda sagdan soldan arayip bulupda soru sormak isteyen olursa.
shukko at shukko.com adresine mail atabilirsiniz.

DOSYA Indirme linklerimiz:

1- Editlenmis ispanyol romumuz: Orjinal dosya adi ve numarasi ve tarihi : 2014111715285043.zip
*not: update.zip dosyasini oldugu gibi kullanin. acmayin zipi etmeyin.

2- twrp.img recovery imajimiz.
**not: twrp.img.zip dosyasini acip icindeki twrp.img yi kullanin.

Telefonumuz artik ZTE BLADE VEC 4G olmustur.

bu uzantilardan mail almak istemiyoruz.

system_filter.exim icine ekliyoruz

#For blocking all incoming and outgoing .win emails
if first_delivery
and ("$h_to:, $h_cc:" contains ".win")
or ("$h_from:" contains ".win")
then
seen finish
endif

#For blocking all .top tld
if first_delivery
and ("$h_to:, $h_cc:" contains ".top")
or ("$h_from:" contains ".top")
then
seen finish
endif

#For blocking all .xyz tld
if first_delivery
and ("$h_to:, $h_cc:" contains ".xyz")
or ("$h_from:" contains ".xyz")
then
seen finish
endif

#For blocking all .science tld
if first_delivery
and ("$h_to:, $h_cc:" contains ".science")
or ("$h_from:" contains ".science")
then
seen finish
endif