Wednesday, November 5, 2008

how to speed up your youtube using squid

After struggled a week to find info how to cache youtube with squid proxy, ( the truth is, it is hard to cache youtube because of their multiple server redirection )

Use squid on linux!! I have successfully done it. You can save your limited bandwidth with squid proxy and cache

get it now..

Squid is a proxy http server that speeds up getting pages from the internet by keeping copies of commonly accessed pages or graphics instead of downloading them each time. To install it:-

On ubuntu, opensuse, mandriva, fedora, gentoo, arch etc, you can find in a repo by keyword squid. If you made any changes, you can reconfigure it using :

/usr/sbin/squid -k reconfigure (depending upon the installation location of squid)

Let's play fast youtube with ubuntu

1. From a root terminal type apt-get install squid

2. Open gedit /etc/squid/squid.conf

3. Find the TAG: visible_hostname and after the comments section add visible_hostname where is your machine’s hostname.

4. Check http_port is either set to 3128 or a port number that you can remember for configuring your browser.

5. Close and save

6. Type adduser squid and specify a password

7. Restart squid by typing: /etc/init.d/squid restart

8. Stop the service by typing /etc/init.d/squid stop

9. Test it in debug mode by typing squid -z (which creates the cache files)

10. Type squid -NCd10 to test squid in debug mode and leave it running.

11. Open Firefox and type the URL localhost:3128 or whatever port you chose. It will fail to retrieve a page, but at the bottom it will confirm that the error is generated by squid.

12. Back at the Terminal type CTRL-C to cancel the debug mode

13. Start squid for real with /etc/init.d/squid start. It will start automatically from now on.

14. To configure Firefox to use squid, go to Edit>Preferences and click Advanced.

15. Click Network>Settings and then Manual Proxy Configuration. For http proxy, enter localhost and for port 3128 (or whichever port you chose).

16. Then click OK and close the Preferences dialogue.

17. Now go to any webpage. If you get the page, it’s working

Yahoo-Mail-Configuring-Email-Client-(Mozilla Thunderbird)-on-Ubuntu-Debian-based


First you need to add the following line to source list file by editing the /etc/apt/sources.list file
$ sudo gedit /etc/apt/sources.list

Add the following line
deb http://tskariah.000webhost.com/ubuntu ubuntu main
Save and exit the file

Add the PGP public key for the new repository
$ wget http://tskariah.000webhost.com/t_skariah.asc.gpg -O- | sudo apt-key add -

Update the source list
$ sudo apt-get update

Install YPOPs!
$ sudo aptitude install ypops

Re-configure YPOPs! for Ubuntu
$ sudo dpkg-reconfigure -fgnome ypops

Other front-ends could be “dialog” (default), or “web”.The old /etc/ypops.ini would be saved as /etc/ypops.ini.bak
A dialog will popup with help for every option available .
Configuration note


Don’t check the ‘Add a new account’ in the first step unless you have multiple yahoo accounts.
If you’re installing YPOPs! on a LAN computer that acts as a router, replace the bind address 127.0.0.1 with the LAN address reachable by the other network PCs (192.168.1.1 or 10.10.0.1 for example).


How to start YPOPs! for Ubuntu manually
$ sudo /etc/init.d/ypops start

How to stop YPOPs! for Ubuntu manually:
$ sudo /etc/init.d/ypops stop

How to automatically start YPOPs! for Ubuntu at bootup
Use the configuration wizard.

How to remove YPOPs! for Ubuntu:
$ sudo apt-get remove ypops

Directory structure:
/etc/init.d/ypops - init script/etc/ypops.ini - config file/usr/bin/ypops - executable file/var/log/ypops/ - log directory/var/run/ypops.pid - pid file

WARNING: The log directory is readable by all. If the log-level is set to Advanced, YPOPs! would dump all the HTML pages there, which might contain private information.

If you want to configure Mozilla Thunderbird to access your yahoo email use the following steps
  • Click Tools-> Account Settings
  • Click Add Account button.
  • Choose Email account. Click Next
  • Type name and email address in the boxes. Click Next
  • Choose POP and type ‘localhost’ as the incoming server.
  • Depending on your preferences check or uncheck Use Global Inbox
  • Click Next. If your username is not already there by default, add it.
  • Click Next. Add the way you want your Account Name to look in Thunderbird.
  • Click Finish.

Now scroll down to the bottom of the Account Settings pane and click on Outgoing server (SMTP).Click on Advanced. Click on Add.
  • Type 127.0.0.1 as the outgoing mail server. Port default is 25.
  • Check Use name and password. This is Thunderbird’s way of enabling authentication.
  • Type your Yahoo user name as username@yahoo.com.
  • Click No to Use secure connection and then OK twice.
  • Click OK to the Server Settings window.

Now get back into Account SettingsGo back to the Server Settings of you Yahoo Account in the Account Settings pane.

Do not check Use secure connection (SSL) or Use secure authentication.
  • Click on Advanced.
  • Choose where you want your emails to go in the POP tab.
  • Click on the SMTP tab and click on the drop down menu and select 127.0.0.1:25
  • Continue modifying any of your preferences in the account and then click on OK.

The first time you try to access the account, Mozilla will ask for a password and if you want Mozilla to remember the password.

Vodafone Mobile Connect Card (VMC) software On linux

Vodafone Mobile Connect Card (VMC) software On linux also can use with Huawei E 220 usb modem.

Betavine has been release vodafone-mobile-connect-card-driver-for-linux-2.0.beta3

Download free at: https://forge.vodafonebetavine.net/frs/?group_id=12

How to install? Enter this at terminal. (Note that VMC by Betavine requires some python lib, so you must get my installer first at http://huaweie220.blogspot.com)

sudo sh vodafone-mobile-connect-card-driver-for-linux-2.0.beta3-installer.run

some problem could be solve. See my screenshots here.

When you start it at terminal use "gksu vodafone-mobile-connect-card-driver-for-linux" command, it will get better. But what happen if you use a shortcut from application-Internet-vodafone-mobile-connect-card-driver-for-linux? It will show a message box like this:



to solve this problem, close the message box. Drag and drop the short-cut to desktop. Right-click the short-cut and enter properties. Select Launcher and add gksu like this:

gksu vodafone-mobile-connect-card-driver-for-linux



Press close. Replug your usb modem. Ok, on a Desktop, click the short-cut. For the first time, it will show this:



Ok enter your profile and this is mine:



close a program. Click the icon again and it will show this. If you cant get connect, (it still authenticated) just close the window and click again the icon. Maybe 2 to 5 times.



This is when it done!!





If you get another problem? this also can be solve.

I was informed that these two files needed their permissions changed from 0600 to 0660:
/etc/ppp/chap-secrets
/etc/ppp/pap-secrets

Vodafone Mobile Connect Card driver for Linux needs the following files and dirs with some specific permissions in order to work properly: /etc/ppp/pap-secrets should have 0660 mode, found 0600 /etc/ppp/chap-secrets should have 0660 mode, found 0600

How to solve this problem??

Ok, now it is easy, just open terminal and give this three command:

sudo chmod g+rw /etc/ppp/*-secrets
sudo chmod 0660 /etc/ppp/pap-secrets
sudo chmod 0660 /etc/ppp/chap-secrets

Another command you should know and use if VMC take a too long time to get connected.

sudo modprobe -r ehci_hcd

How to play VCD on Linux using VLC

regarding VLC’s playing VCDs. I think I’ve found something.

Open file, In the Open Disc dialogue, click at Disc tab and chosing VCD at disc type gives me this:

vcdx:///dev/hdd :audio-track=0

in the advanced options.
/dev/hdd is my CD-ROM drive, obviously.

I tried changing that to:
vcd:///dev/hdd :audio-track=0

removing the “x” from the MRL. It worked.

With VLC, it works, except that the sound is intermittent.
Cheers!

mplayer
------

It doesn't work for me even I use this:

mplayer vcd://2 or 1



How to know your vcd://**? (for newbies)
Right click at *.dat file and open with mplayer.. Right click at mplayer screen and open vcd dialogue, it will say "failed to open vcd://*. Sometime it is vcd://1 and other time is vcd://2.

I also create new directories..

sudo mkdir /dev/hdd
sudo mkdir /dev/cdrom
sudo mkdir /dev/dvd
sudo mkdir /dev/dvdrw

and then I put this:

sudo ln -s /dev/myphysicaldriveaddress /dev/disk
sudo ln -s /dev/myphysicaldriveaddress /dev/hdd
sudo ln -s /dev/myphysicaldriveaddress /dev/cdrom
sudo ln -s /dev/myphysicaldriveaddress /dev/dvd
sudo ln -s /dev/myphysicaldriveaddress /dev/dvdrw



I'll will upgrade my post if I found something new...

Several types of mobile broadband connection in Linux

In linux GPRS, EDGE, UMTS and HSDPA mobile broadband sand, we installer standard mobile pc suite and is designed specifically for Linux. However, we can connect the camera linux Huawei, Vodafone, 3 mobile phones and phones like Sony Ericsson, Nokia, Motorola, etc. with special software.


However, most still come with linux support special file for the connection (only supported Mandriva 2009 found nothing Huawei E220 installation). We edit wvdial.conf etc., resolv.conf and add a little long the. This is one reason that I presented HE220 installer, because I want to do all the work will be easy.


If you set all without my installer, it takes more than 30 minutes to set. With my setup, just open terminal, become root and type "make install" and "wvdial huawei". The installation was completed in about 10 seconds.


Download he220rc3 here:


He220rc3.tar.gz size 24.086 KB


http://www.filefactory.com/dlf/f/3179e2/b/5/h/21c360c872ddb97ba7a08f6765dae00d/j/0/n/he220rc3_tar_gz


http://www.filefactory.com/file/3179e2/n/he220rc3_tar_gz


he220r1 for Ubuntu and Ubuntu based solely on direct download for free:


http://www.wikiupload.com/download_page.php?id=65521


http://www.filefactory.com/file/2a5ec3/n/he220r1-for-ubuntu_tar_gz


http://www.savefile.com/files/1830364


http://www.2shared.com/file/4068697/de789423/he220r1-for-ubuntutar.html


For your information, this system is already in place in most 3G handsets and mobile. It is supported by ttyUSB0 usb 3g 3g ttyACM0 mobile phone dial-up configuration and another set as Novatel etc. You can check the file / etc / wvdial.conf and edit to your liking. Important that you share with installer companion, friend, lover and his family. Keep this on your installation of removable devices or backup data CD or DVD for future use.


This connection is geek, right? Do not worry if your computer can install my software, you can do a few steps.


KPPP = ppp for KDE


GPPP = ppp for gnome


Vodafone Mobile coonect card software for linux-Betavine = vodafone


UMTSmon = very simple but useful software

Network Manager applet = 0.7 this is new to linux 3G arena, published by Ubuntu Intrepid

Network applet = PCLOS and Mandriva (for version 2009) Mobile Internet Connector

How to remove messengerskinner.exe

MessengerSkinner.exe is a part of MessengerSkinner software. MessengerSkinner is a potentially unwanted application that may drop a copy of Trojan.Skintrim on to the computer. It may also display pop-up advertisements on the computer. Here is a full process on how to remove it. 


 

1. Temporarily Disable System Restore (Windows Me/XP).
2. Update the virus definitions.
3. Uninstall Messenger Skinner
a) Click Start > Settings> Control Panel or Start > Control Panel (this varies with the operating system).
b) In the Control Panel window, double-click Add/Remove Programs.
c) Click Messenger Skinner to remove.
d) Click Add/Remove, Change/Remove, or Remove (this varies with the operating system). Follow the prompts.

4. Reboot computer in SafeMode
5. Run a full system scan and clean/delete all infected file(s)
6. Delete/Modify any values added to the registry.
 

Navigate to and delete the following registry entries:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\”[RANDOM CHARACTERS]” = “c:\documents and settings\administrator\local settings\application data\[RANDOM CHARACTERS].exe [RANDOM CHARACTERS]”
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\”messengerskinner” = “C:\Program Files\MessengerSkinner\MessengerSkinner.exe”

Navigate to and delete the following registry subkeys:
HKEY_CURRENT_USER\Software\LanConfig
HKEY_CURRENT_USER\Software\MessengerSkinner
HKEY_LOCAL_MACHINE\SOFTWARE\MessengerSkinner
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MessengerSkinner
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\[RANDOM CHARACTERS]

7. Exit registry editor and restart the computer.

In order to make sure that threat is completely eliminated from your computer, carry out a full scan of your computer using AntiVirus and Antispyware Software. You can also try Online Virus Scanner which doesn’t need any installation.

What’s new in the Flash 10 security

The new version of Adobe Flash (actually 10 beta) has a variety of features and enhancements aimed to increase the security.

You can read a detailed article of Trevor McCaulery here: http://www.adobe.com/devnet/flashplayer/articles/fplayer10_security_changes.html

It seems that the Adobe security is based on:

  • require user interaction: to avoid automatic explotation and warn user about flash actions
  • new features that ovverride olds with a more secure implemtation