Sabtu, 19 Oktober 2013

source list default ubuntu 10.04

ini saya post karena saya kelupaan :D
#
# deb cdrom:[Ubuntu-Server 10.04.3 LTS _Lucid Lynx_ - Release i386 (20110719.2)]/ lucid main restricted

#deb cdrom:[Ubuntu-Server 10.04.3 LTS _Lucid Lynx_ - Release i386 (20110719.2)]/ lucid main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://us.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ lucid universe
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid universe
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ lucid multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid multiverse
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://us.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu lucid partner
# deb-src http://archive.canonical.com/ubuntu lucid partner

deb http://security.ubuntu.com/ubuntu lucid-security main restricted
deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted
deb http://security.ubuntu.com/ubuntu lucid-security universe
deb-src http://security.ubuntu.com/ubuntu lucid-security universe
deb http://security.ubuntu.com/ubuntu lucid-security multiverse
deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse

 

 

Rabu, 16 Oktober 2013

apache traffic server as internet accelerator (forward proxy)

squid make me mad in crazy configuration, well a lot of configuration about tuning squid if would like to search also a lot of bloging and writing about squid too, exactly cause most of people said squid is old horse working proxy software. and I not doubt about it, but I love to try something new because it's my passion about bleeding edge and something better and faster.

so why I'd thing to leave squid because of he is old working horse mean no power. LOL (it's joke don't mind). just because want to try something faster for caching in local network for about 12 user computer with a pity bandwidth in Indonesia. that was I tried use combine squid with varnish like I got here and here

but the result in my computer doesn't satisfied me, because of the varnish originally is reverse proxy and it's doesn't forward proxy. it will make you crazy if you want to inverted from reverse to forward proxy. :D and that why squid is still needed here to help varnish work. and the second problem is I have problem with when I do update application or browsing on my client the request is loaded first to the varnish first then transfered to client. it will be problem if didn't have dedicate internet(stable connection) & pretty big enough bandwidth to load. and the result a big packet are failed and delaying access happened.

well I admit that varnish is fast and you can check by googling which is varnish are faster than squid. and I tested on my machine are second hits are good and fast.  just wondering is had any software for my proxy cache sever because I got any problem (proxy very slow) when I moved my box from ubuntu 12.04 to the Centos 6 because of stability reason and long term support. ;)

oh, I found that amazing(maybe :D) the ATS(apache traffic sever) I read is amazing and I thought it amazing because it was use and already tested on yahoo, and as usually I love benchmark, soon as possible I check about speed bechmark, and that result some of test defeated varnish and sure squid ;)

lets see what I do :

install ATS on our Linux box, here I used CentOS 6.

Firstly, you must add the EPEL repositories if you haven’t already:
rpm -ivh http://mirror.us.leaseweb.net/epel/6/i386/epel-release-6-7.noarch.rpm

Next, we can just use yum to install Traffic Server and enabled service :
yum install trafficserver
chkconfig trafficserver on

then editing file configuration on  /etc/trafficserver some file configuration I modified is :

records.config

  • The main configuration file. This is where you configure core settings like global configuration, socket setup and certain features you want to enable. I changing some value :



# To enable forward proxy, you must turn off remap_required
CONFIG proxy.config.url_remap.remap_required INT 0

#If your proxy is serving as pure forward proxy, you will also want to set
CONFIG proxy.config.reverse_proxy.enabled 0

CONFIG proxy.config.http.server_port INT 8080
CONFIG proxy.config.http.server_port_attr STRING X

 

storage.config

  • Configure the data store. This is, where you configure the location and type of your data storage which holds cached objects. I just change amount and location.


from
/var/cache/trafficserver 256M

to
/home/cache 5G

at moment only that I configured on my linux box, but seems ATS is more tidy and more easy to understand for further configuration. you can see there is module configuration to modified.

reference :

http://trafficserver.apache.org/docs/trunk/admin/forward-proxy/index.en.html

http://daemonkeeper.net/735/apache-trafficserver-the-better-web-cache/

http://blog.hamzahkhan.com/2012/11/11/apache-traffic-server-basic-configuration-on-rhel6centos-6/

Minggu, 13 Oktober 2013

koneksi internet lambat pada pada ubuntu / lubuntu 12.04

keluhan datang dari ibu saya sebagai penjaga warnet :D kenapa internet lambat pada beberapa komputer client, dan lambatnya itu pada komputer yang mengunakan OS di sebut di judul tidak pada klien yang mengunakan OS ubuntu lama.

ternyata ini bukan karena internet providernya yang lambat tapi setelah saya googling permasalahan adalah ada pada karena mengaktifkan internet address v6. jadi si komputer mencari host dan menset ip v.6 pada dirinya sendiri.

cara mengatasinya dengan disable  ipv.6 di sysctl /etc/sysctl.conf  . dengan menambahkan opsi ini:
# disable IPv6
net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.lo.disable_ipv6=1

atau kalau mau mudahnya jalankan perintah ini di 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

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.