tag:blogger.com,1999:blog-27669160056060794462024-03-19T05:07:44.913-07:00thilina's blogThilina Vithanagehttp://www.blogger.com/profile/03149562712378714596noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-2766916005606079446.post-78069676017183093402008-12-03T18:49:00.000-08:002008-12-03T18:50:19.979-08:00<style type="text/css">table.lfmWidgetchart_69fb7b11fff1021d55a1b453f2bc0fa3 td {margin:0 !important;padding:0 !important;border:0 !important;}table.lfmWidgetchart_69fb7b11fff1021d55a1b453f2bc0fa3 tr.lfmHead a:hover {background:url(http://cdn.last.fm/widgets/images/en/header/chart/topartists_regular_black.png) no-repeat 0 0 !important;}table.lfmWidgetchart_69fb7b11fff1021d55a1b453f2bc0fa3 tr.lfmEmbed object {float:left;}table.lfmWidgetchart_69fb7b11fff1021d55a1b453f2bc0fa3 tr.lfmFoot td.lfmConfig a:hover {background:url(http://cdn.last.fm/widgets/images/en/footer/black.png) no-repeat 0px 0 !important;;}table.lfmWidgetchart_69fb7b11fff1021d55a1b453f2bc0fa3 tr.lfmFoot td.lfmView a:hover {background:url(http://cdn.last.fm/widgets/images/en/footer/black.png) no-repeat -85px 0 !important;}table.lfmWidgetchart_69fb7b11fff1021d55a1b453f2bc0fa3 tr.lfmFoot td.lfmPopup a:hover {background:url(http://cdn.last.fm/widgets/images/en/footer/black.png) no-repeat -159px 0 !important;}</style><br /><table class="lfmWidgetchart_69fb7b11fff1021d55a1b453f2bc0fa3" cellpadding="0" cellspacing="0" border="0" style="width:184px;"><tr class="lfmHead"><td><a title="1stepkloser: Overall Top Artists" href="http://www.last.fm/user/1stepkloser/charts?charttype=overall&subtype=artist" target="_blank" style="display:block;overflow:hidden;height:20px;width:184px;background:url(http://cdn.last.fm/widgets/images/en/header/chart/topartists_regular_black.png) no-repeat 0 -20px;text-decoration:none;border:0;"></a></td></tr><tr class="lfmEmbed"><td><object type="application/x-shockwave-flash" data="http://cdn.last.fm/widgets/chart/19.swf" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="lfmEmbed_1260484300" width="184" height="140"> <param name="movie" value="http://cdn.last.fm/widgets/chart/19.swf" /> <param name="flashvars" value="type=topartists&user=1stepkloser&theme=black&lang=en&widget_id=chart_69fb7b11fff1021d55a1b453f2bc0fa3" /> <param name="allowScriptAccess" value="always" /> <param name="allowNetworking" value="all" /> <param name="allowFullScreen" value="true" /> <param name="quality" value="high" /> <param name="bgcolor" value="000000" /> <param name="wmode" value="transparent" /> <param name="menu" value="true" /> </object></td></tr><tr class="lfmFoot"><td style="background:url(http://cdn.last.fm/widgets/images/footer_bg/black.png) repeat-x 0 0;text-align:right;"><table cellspacing="0" cellpadding="0" border="0" style="width:184px;"><tr><td class="lfmConfig"><a href="http://www.last.fm/widgets/?colour=black&chartType=topartists&user=1stepkloser&chartFriends=1&from=code&widget=chart" title="Get your own widget" target="_blank" style="display:block;overflow:hidden;width:85px;height:20px;float:right;background:url(http://cdn.last.fm/widgets/images/en/footer/black.png) no-repeat 0px -20px;text-decoration:none;border:0;"></a></td><td class="lfmView" style="width:74px;"><a href="http://www.last.fm/user/1stepkloser" title="View 1stepkloser's profile" target="_blank" style="display:block;overflow:hidden;width:74px;height:20px;background:url(http://cdn.last.fm/widgets/images/en/footer/black.png) no-repeat -85px -20px;text-decoration:none;border:0;"></a></td><td class="lfmPopup"style="width:25px;"><a href="http://www.last.fm/widgets/popup/?colour=black&chartType=topartists&user=1stepkloser&chartFriends=1&from=code&widget=chart&resize=1" title="Load this chart in a pop up" target="_blank" style="display:block;overflow:hidden;width:25px;height:20px;background:url(http://cdn.last.fm/widgets/images/en/footer/black.png) no-repeat -159px -20px;text-decoration:none;border:0;" onclick="window.open(this.href + '&resize=0','lfm_popup','height=240,width=234,resizable=yes,scrollbars=yes'); return false;"></a></td></tr></table></td></tr></table>Thilina Vithanagehttp://www.blogger.com/profile/03149562712378714596noreply@blogger.com0tag:blogger.com,1999:blog-2766916005606079446.post-62343317936073549682008-01-09T11:45:00.000-08:002008-01-09T12:51:11.798-08:00Squid - caching Proxy<div style="text-align: left; font-family: arial;"><span style="font-size:100%;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbeq0LvXy1MZHc_uluIvRixP1kGBo46hCJHnE04jfbhXsCfUzREdQRpKKV6bLdoKcx7Ot1dq4XTUINoYsaScQ3kHx4F_HDhUD4yPsM_uRaZzKSKPyZ9ycX_Y8urmWA9PL_C6KcZeg_Lcm_/s1600-h/Squidlogo2.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbeq0LvXy1MZHc_uluIvRixP1kGBo46hCJHnE04jfbhXsCfUzREdQRpKKV6bLdoKcx7Ot1dq4XTUINoYsaScQ3kHx4F_HDhUD4yPsM_uRaZzKSKPyZ9ycX_Y8urmWA9PL_C6KcZeg_Lcm_/s200/Squidlogo2.png" alt="" id="BLOGGER_PHOTO_ID_5153580029872057266" border="0" /></a><br /></span></div><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" >Easy Installation guide for Squid caching Proxy</span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" ><br /><br /></span><span style="color: rgb(0, 0, 0); font-family: arial; font-weight: bold;font-family:arial;font-size:100%;" > #yum -y install squid </span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" ><br /></span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" >(or #apt-get install squid)<br /><br /></span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" >locate squid files</span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" ><br /></span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" > <span style="font-weight: bold;"> #locate squid</span></span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" ><br /><br /></span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" >open the squid configuration file</span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" ><br /></span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" > <span style="font-weight: bold;"># vi /etc/squid/squid.conf</span></span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" ><br /><br /></span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" >Read through the squid.conf file and uncomment necessary options that you may need</span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" ><br /></span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" >Here are the changes that you needed to do on squid.conf</span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" ><br /></span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" > #squid.conf</span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" ><br /><br /></span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" > acl our_network src 192.168.2.0/24 # creating access list</span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" ><br /></span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" > http_access allow our_network # allowing your private network for the proxy</span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" ><br /></span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" > http_access allow localhost</span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" ><br /></span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" > http_access deny all #denying all other</span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" ><br /><br /></span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" > http_port 3128 #define proxy listening port</span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" ><br /><br /></span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" > # define caching peer</span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" ><br /></span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" > #cache_peer hostname type proxy_port</span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" ><br /></span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" > cache_peer proxy.example.com parent 3128</span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" ><br /><br /></span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" > #caching memory size</span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" ><br /></span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" > cache_mem 50 MB</span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" ><br /><br /></span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" > #define cache dir</span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" ><br /></span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" > cache_dir ufs /var/spool/squid 100 16 256</span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" ><br /><br /></span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" > #define the access log file</span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" ><br /></span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" > access_log /var/log/squid/access.log squid</span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" ><br /><br /></span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" > #------------------ EOF (squid.conf) --------------------</span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" ><br /><br /></span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" >for advance squid configtations visit </span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" ><a href="http://www.squid-cache.org/Versions/v2/2.6/cfgman/"><span style=""><span class="a">www.squid-cache.org</span></span></a><br /><br /></span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" ><br /><br /><br /><br /><br /><br /><br /><span style="color: rgb(0, 0, 0);">building the caching directory</span></span><span style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;font-size:100%;" ><br /></span><pre style="color: rgb(0, 0, 0); font-family: arial;font-family:arial;"><span style="font-size:100%;"><span style="color: rgb(0, 0, 0); font-weight: bold;"># /usr/sbin/squid -z</span><br /><br /><span style="color: rgb(0, 0, 0);">add these line to .bashrc</span><br /><span style="color: rgb(0, 0, 0);">[root@localhost ~]<span style="font-weight: bold;"># vi .bashrc</span></span><br /><br /><span style="color: rgb(0, 0, 0);">alias squidup='/usr/sbin/squid -ND &'</span><br /><span style="color: rgb(0, 0, 0);">alias squiddown='/usr/sbin/squid -k kill'</span><br /><span style="color: rgb(0, 0, 0);">alias squidaclog='tail -f /var/log/squid/access.log'</span><br /><br /><span style="color: rgb(0, 0, 0);">Thats all .. (dont forget to configure your browser for the proxy)</span><br /><br /><span style="color: rgb(0, 0, 0);">start squid</span><br /><span style="color: rgb(0, 0, 0); font-weight: bold;">#squidup</span><br /><br /><span style="color: rgb(0, 0, 0);">shutdown squid</span><br /><span style="color: rgb(0, 0, 0); font-weight: bold;">#squiddown</span><br /><br /><span style="color: rgb(0, 0, 0);">Realtime access monitoring</span><br /><span style="color: rgb(0, 0, 0); font-weight: bold;">#squidaclog</span><br /><br /><br /><br /><br /></span></pre>Thilina Vithanagehttp://www.blogger.com/profile/03149562712378714596noreply@blogger.com0tag:blogger.com,1999:blog-2766916005606079446.post-24401404067582939192008-01-07T01:36:00.000-08:002008-01-07T02:54:11.171-08:00Fedora Core 8 : No sounds with FirefoxI recently installed FC8 and came up with the problem while trying to play flash video ( youtube / metacafe / vidzone ) with Firefox . The problem was not playing the sound while playing the video and also no problem with sounds in mplayer, amarok or totem. the i tried to find a solution from forums and noticed that this was a common problem with many FC and Ubuntu users.<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjL2UVi1sKLYpqVu7umrTZA73vBpQlfUgrKGRTDLU5aYppHqTQaeDCJSolH9ealPfFqPQWkx_9J_ThIIrSVg0nULVAtWArTydo5Qkb3_gLkRv1X6dQ9wxT-iZuv76pwsxBvsT0HB3c1BHbq/s1600-h/fedora.jpg"><img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 130px; height: 112px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjL2UVi1sKLYpqVu7umrTZA73vBpQlfUgrKGRTDLU5aYppHqTQaeDCJSolH9ealPfFqPQWkx_9J_ThIIrSVg0nULVAtWArTydo5Qkb3_gLkRv1X6dQ9wxT-iZuv76pwsxBvsT0HB3c1BHbq/s200/fedora.jpg" alt="" id="BLOGGER_PHOTO_ID_5152685830565931938" border="0" /></a><br />finally i came up with a solution that worked well.<br /><br />1. Remove the previously installed libflashsupport<br /> #yum remove libflashsupport<br /><br />2. remove previously installed flash-plugin<br /> #yum remove flash-plugin<br /><br />3. download and install only <a href="http://fpdownload.macromedia.com/get/flashplayer/current/flash-plugin-9.0.115.0-release.i386.rpm">flash-plugin-9.0.115.0-release.i386.rpm</a> from Adobe.com<br /> # rpm -Uhv flash-plugin-9.0.115.0-release.i386.rpm<br /><br />thats all.<br /><br />I suggest that anyone having this problem to go through this before going to solutions like alsa-oss solutions .<br /><br />if this doesn't work try out this thread from <a href="http://www.fedoraforum.org/forum/showthread.php?t=159807&highlight=firefox+sound">fedoraforum</a>Thilina Vithanagehttp://www.blogger.com/profile/03149562712378714596noreply@blogger.com6