Minggu, 13 Oktober 2013

slow internet in lubuntu / ubuntu 12.04

this problem I got cause compalaining from my mom as internet cafe keeper :D

so the problem is "why connection so slow right now" but check on internet provider and some client that use old version that running well. only some client which use lubuntu 12.04 having slow connection.

as usual check on google that problem is because activated ip version 6 and may that machine look at the address and host to applied v.6 version.

resolve problem is only disable  ipv.6 in sysctl /etc/sysctl.conf  . with option add it on.

 
# disable IPv6
net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.lo.disable_ipv6=1

or easily execute this command on terminal :
echo -e "\n# disable IPv6\nnet.ipv6.conf.all.disable_ipv6=1\nnet.ipv6.conf.default.disable_ipv6=1\nnet.ipv6.conf.lo.disable_ipv6=1" | sudo tee -a /etc/sysctl.conf

then do :
sudo sysctl -p
sudo ifconfig eth0 down
sudo ifconfig eth0 up

reference :

http://www.noobslab.com/2012/05/disable-ipv6-if-your-internet-is.html

http://ubuntuforums.org/showthread.php?t=2083341

Senin, 01 Juli 2013

error short tag pada program php di centos 6

 

pengalaman ini ketika saya mendapat ke anehan ketika menjalakan aplikasi di server centos yang berupa sytax error. dan pada komputer lokal kode program ini berjalan normal, yang mana komputer lokal yang saya gunakan adalah Lubunutu.

 

jadi si centos ini hanya mengenal tag php <?php tetapi tidak mengenal tag <? , jika menuliskan kode php dengan awalan <? maka terjadilah sytax error, dan sebagai informasi framework php yang di gunakan adalah yii framework.

dan tampilan error adalah seperti ini. :
Parse error: syntax error, unexpected $end in /var/www/html/apps/protected/views/as/index.php on line 231 Call Stack:

jadi bagai mana memperbaikinya. mudah ;)

buka konfigurasi di  php.ini
vim /etc/php.ini

cari tulisan short_open_tag  pada server saya pada baris 229 dan ubah menjadi On.

 









From capture from computer

demikian mudah kan :D

error short tag in php programing on centos 6

well this experience I got when I use centos 6 server as appliation server, partial code are running but some are sytax error, don't know that make crazy. even though I know that already crazy. :D haha

the strange things is because that code running well on my local computer that use Lubuntu, wtf what's wrong with this server. well done I give up with this condition but a friend as gurus tell that is problem in short tag which is php on that server didn't recognize sytax <? instead just <?php  oh wow, I just know this problem, never know before, hahaha. well I am newbie. hmm also for information that use php framework called yii.

and error showing like this :
Parse error: syntax error, unexpected $end in /var/www/html/apps/protected/views/as/index.php on line 231 Call Stack:

 

so how to resolve it on centos server. ?? easy ;)

just open configuration ini php.ini
vim /etc/php.ini

search line writing short_open_tag  that is on line 229 on my server. change that to on.

 









From capture from computer

well done. our duty finish.

Sabtu, 29 Juni 2013

rsync dari sever dengan ssh

sedikit tips dan trik dari saya.

 

bagai mana rsync ke server melalui ssh, baik lah tanpa basa basi ini caranya.
rsync -avhP -e "ssh -p port_number" root@ipaddress_or_host:/source/location_file /Destination/on_your_computer

yang perlu di tekankan dalah -e untuk memilih mode protokol yang di gunakan dan -p port number yang digunakan karena ssh server saya tidak mengunakan port 22.

rsync from sever through ssh

well this little bit tips and tricky, handy for me may for another people. ;)

this case I used because, in my computer have bad connection directly to server but so good on local intranet, honestly it little bit nasty because it was use for download torrent then sync complete download to my computer. LOL

okay go head. this command I run on my computer which is use Lubuntu.
rsync -avhP -e "ssh -p port_number" root@ipaddress or host:/source/location_file /Destination/on_your_computer

 

most important things is -e which use to choice protocol to ssh and use option -p because that my ssh server port doesn't use port number 22.

reference

http://oreilly.com/pub/h/38

Senin, 25 Maret 2013

web based skype application

well, this stories while I search web based on skype, and in skype forum that skype officially doesn't made a web based application for skype chat. that sure sometime that make I in trouble when in another computer want to use a skype but the skype application doesn't exist.

 

so I am not mean to be promoted and I doesn't work in this company which provide this application, just share what I know and if you know another web based application then informed to me that would be cool and great for me.

ok, chek it out for try https://imo.im with that web based application I made success with voice call and not sure with video call, but it's help me a lot when in another computer. ;)

 

 

 

skype berbasis web

oke, ini cerita berasal ketika saya sudah lama ingin mencari skype berbasis web untuk chating dan berharap dapat video dan voice chat seperti google talk. dan pencarian udah lama sih tapi belum beruntung atau memang nasib belum ketemu waktu itu.

 

dan akhirnya saya menemukan https://imo.im/ dan setelah saya coba oh wow ternyata lewat sini voice call :D jadi kesimpulannya saya tidak perlu report istall skype lagi kalau mau chat lewat komputer lain ;)