Showing posts with label tips. Show all posts
Showing posts with label tips. Show all posts

Thursday, June 5, 2008

Watch videos in high quality on Youtube

Ok you all know that we have problems with youtube's poor quality of videos . Sometimes it's just annoying and it's getting on your nerves . It's so stupid when you upload something and youtube reduces it to poor quality.

Well those days are over , finaly something new on youtube. High quality videos!!!

Now you can watch your videos in good quality just by entering a simple code at the end of the URL of the video.
Just add this:

&fmt=18

or

&fmt=6

at the end of the URL.
You will notice the difference right away.
Note that the videos should load 2x slower , but who cares you get better quality!

Friday, May 16, 2008

glftpd and zipscript install guide


So, you need an FTP server on your box, and you don't know which one you should use? I'll solve that dilemma for you. glftpd is easy to install and is a fully functional, fairly robust FTP server.


That being said, lets get started! (NOTE: if any command spits back a permissions error, simply put sudo in front of the command).


cd /tmp/
wget http://www.glftpd.com/files/glftpd-LNX_2.01.tgz
tar -xzf glftpd-LNX_2.01.tgz



Let's grab the dependencies we need to get glftpd to work properly


apt-get install xinetd zip unzip openssl tcpd



Now, we move into the glftpd directory


cd glftpd-LNX_2.01
sh installgl.sh


For the prompts, do:

Use tcpd? [Y]es [N]o: Y
Use a jailed environment? [Y]es [N]o: N
Please enter the directory to install glftpd to [/glftpd]: (press enter) - Installing into /glftpd is the best way to go, imo
Press for the default (glftpd)> (press enter)

The install will then compile (hopefully with no errors).


Enter the port you would like glftpd to listen on [1337]: (pick any port, I suggest something in the higher # range, 40000 plus)
Do you want to use [I]netd or [X]inetd? X
Do you wish to use European weeks? European weeks starts with a Monday.
This is for glftpd's 'reset' binary (see docs for more info) [Y/N]: Y
Please specify location, inside /glftpd, to install the cert (ftpd-dsa.pem) [/etc]: (press enter)
Please specify a generic name for this certificate. This can be any name but should say something about the ftp server like the name for it perhaps (press enter for glftpd): (you can put just about anything here...doesn't matter)


It will then create your certificate. Once that's done, glftpd is almost completely set up.

What you'll want to do next is set up your user account for the FTP. To do this, you:


ftp localhost port
user: glftpd
password: glftpd


This will get you logged in.

Once logged in, you want to create a user, set its flags, set its ratio, set its logins, set its ratio, etc.


site adduser user password ip [e.g., site adduser ronin hdwhore 127.0.0.1) And no, don't use localhost as your IP..was just using that as an example.
site change ronin ratio 0
site change ronin num_logins 0 (if you want unlimited logins to your FTP)
site change ronin flags +1ABCDEFGH


That takes care of the account. Now you're going to want to edit the glftpd.conf. 

To do so, you:

nano /etc/glftpd.conf


There's not much you NEED to edit here, so I'll just highlight what you should.


sitename_long MY[:space:]SITE[:space:]NAME (put whatever you feel like here)
sitename_short MSN (short version of the above
# TLS enforcements.
userrejectsecure !*
userrejectinsecure !* (remove the ! to enable Auth TLS requirements for login)
denydiruncrypted !*
denydatauncrypted !*



The rest doesn't need to be touched, unless you so choose to. CTRL+O, press ENTER, CTRL+X, and you're done editing the file. That completes the install for glftpd. Now, for zipscript.


cd /tmp/
wget http://se.pzs-ng.com/stable/project-zs-ng_r2414-v1.1.0a.tar.gz
tar -xzf http://se.pzs-ng.com/stable/project-zs-ng_r2414-v1.1.0a.tar.gz
cd http://se.pzs-ng.com/stable/project-zs-ng_r2414-v1.1.0a.tar.gz
./configure



When that's done, you need to edit zipscript/conf/zsconfig.h


nano zipscript/conf/zsconfig.h




I recommend changing the following folder listings below:


#define zip_dirs "/site/"
#define sfv_dirs "/site/test/ /site/incoming/mp3/ /site/incoming/games/ /site/incoming/apps/ /site/incoming/musicvideos/ /site/incoming/requests/"
#define audio_nocheck_dirs "/site/groups/ /site/incoming/requests/"
#define check_for_missing_nfo_dirs "/site/incoming/games/ /site/incoming/apps/"




If you don't do music, ignore the auto_nocheck variable

You'll also want to edit:


#define short_sitename "NG"


CTRL+O, PRESS ENTER, CTRL+X, and you're done editing zsconfig.h


make
make install
cd scripts/libcopy/
./libcopy.sh
chmod 666 /glftpd/ftp-data/logs/dupelog (this assumes you installed into /glftpd/)
nano /etc/crontab/
paste the below into your crontab
59 23 * * * chroot /glftpd /bin/cleanup >/dev/null 2>&1
29 4 * * * chroot /glftpd /bin/datacleaner >/dev/null 2>&1



Once that's done, you have 1 more step, and zipscript is complete.


nano /etc/glftpd.conf




Copy/paste this somewhere into your glftpd.conf


calc_crc *
post_check /bin/zipscript-c *
cscript DELE post /bin/postdel
cscript RMD post /bin/datacleaner
cscript SITE[:space:]NUKE post /bin/cleanup
cscript SITE[:space:]UNNUKE post /bin/postunnuke
cscript SITE[:space:]WIPE post /bin/cleanup

site_cmd RESCAN EXEC /bin/rescan
custom-rescan !8 *

cscript RETR post /bin/dl_speedtest

site_cmd AUDIOSORT EXEC /bin/audiosort
custom-audiosort !8 *



CTRL+O, PRESS ENTER, then CTRL+X.

You'll likely want to chmod the incoming (/glftpd/site/incoming) to 777, and any other directory you might dump into:


chmod -R 777 /glftp/site/*


Once that's done, you're done setting up your zipscript.

You now have a fully functioning FTP and file checker installed on your box, and it's ready to be used.

Monday, May 12, 2008

How to install rtorrent in Ubuntu


How-to install rtorrent on Ubuntu.


I am just learning about linux myself so bare with me but I have installed rtorrent several times before. Im gonna try and make this as simple as possible. You shouldn't have any problem doing this if you follow step by step. Copy and paste if ya want!


sudo apt-get update


sudo apt-get install build-essential libsigc++-2.0-dev pkg-config comerr-dev libcurl3-openssl-dev libidn11-dev libkadm55 libkrb5-dev libssl-dev zlib1g-dev libncurses5 libncurses5-dev



cd /tmp/


wget http://libtorrent.rakshasa.no/downloads/libtorrent-0.11.9.tar.gz


tar -zxvf libtorrent-0.11.9.tar.gz


cd /tmp/libtorrent-0.11.9


./configure


make


make install


cd /tmp/


wget http://libtorrent.rakshasa.no/downloads/rtorrent-0.7.9.tar.gz


tar -zxvf rtorrent-0.7.9.tar.gz


cd /tmp/rtorrent-0.7.9


./configure


make


make install


If you get any 'access denied' errors just put sudo in front of the command.

Now all you need to do is put a rtorrent cfg file in your /home/name dir. You can grab a cfg file from HERE and edit to your liking.Also make sure you rename rtorrent.rc to .rtorrent.rc so rtorrent will see it. To open rtorrent just type rtorrent from terminal and happy torrenting!

You can find a rtorrent user guide with a list of commands HERE

If for some reason you get this error..."rtorrent: error while loading shared libraries: libtorrent.so.10: cannot open shared object file: No such file or directory" type... sudo ldconfig and it should be golden!

Friday, May 2, 2008

Region-Free DVD-drives, All you need to know


Region-free DVD-Drives can be confusing without full information about them. Already the upload of a simple utility for them has generated some doubts and questions. I have then tried to cover the subject in a simple but all-covering text (at least I hope I achieved both).


This comes from my personal experience and what I read from many sources on the Web. Some subjects I didn't study in depth, so it might be incomplete or slightly imprecise here and there. Still, for its introduction and explanation purposes, I believe it will make no difference.

-------

The holders of the rights for the Movie DVD format (an organization named DVD Forum) impose everyone to implement Region Control. That's in the contract you have to sign with them in order to acquire the information on DVD structure necessary to build a drive or write a player than can play Movie DVDs.
 
Region control means that the drive and player will work together asking for a region choice and storing it inside the drive itself. They will then refuse to play any DVD from a region different from the one you chose. And that they will allow you to change that choice, but for only a limited number of times. They will keep count the changes you made and store it again inside the drive's flash-memory.

You will be able to change the region 5 times only (including the initial choice) then the drive will lock. You will have to send it to the factory where, for a fee, they will reset the region counter and give it back. This is called "Factory Reset", it does cost and it too has a counter. It can be done 5 times, then the drive will lock forever. In the end you will be able to change the region of a drive for 25 times, but once every 5 it will require sending it to the factory and will cost money. (it would look like the changes should be 30, but I believe I remember they are only 25. Probably the initial 5-choices-group is already considered like a Factory Reset and its counter starts at 1. This would mean you could actually send it in only 4 times, rather than 5.)

The DVD-drives have some software inside and and also tables of all the writable DVDs and CDs. They hold the proper parameters to burn each kind, together with the maximum speeds that can be reliably used.
This data is written in Flash-RAM. These are memories that can be re-written, but they retain their content even when they are disconnected from a power supply. That's different from standard RAM that forgets everything if power is interrupted.
Once in a while, the factories send out upgrades that rewrite what's stored inside the flash-RAM. This happens to correct bugs, or to implement a more reliable or faster burning strategy, or to add the parameters for a new CD/DVD kind that was just released.

Studying these upgrades (and the firmware inside the drives) some people have been able to find out how the drive software works and ways to deactivate the region block. Usually these "region free" patches are inserted inside one of the original upgrades from the factory.
Some drives have been "cracked" quickly, other ones have resisted for longer times (like the Mat****a mentioned in the RegionX upload description).
A place to look for a patch for your drive might be rpc1.org and in particular The Dangerous Brothers' pages tdb.rpc1.org
These patches generally run on PCs. In the past there has been a guy nicknamed xvi who worked on producing Mac versions of the patches. A couple of years ago he decided to quit, and since then patches have once again been available for PCs only.
Unfortunately these cannot be run in emulators like VirtualPC, GuestPC or similar. Emulators have only a limited access to DVD-drives (they cannot play movies, for example) that is not enough to support patching.
But those patches can be applied to DVD-drives connected externally to a PC and also an Intel-Mac running Windows via a USB-IDE adapter. (I'm sure this works for Pioneer drives, I've done it personally several times. I believe it should work with any other, but have never tried it).

Is patching a drive dangerous? Yes: it will void the warranty and also, if it doesn't work or if it is interrupted midway (a blackout for example) it will leave you with a dead drive that can not be patched again. If you do things with care it is not likely it will happen, yet it could. Current prices have dropped so low that it is no longer a heavy risk, in my humble opinion.
Just for an example, through the years I have successfully patched one Pioneer DVR-105, one DVR-107, one DVR-109, one DVR-110D, one DVR-111D and two DVR-112D. I never had any dead one. Also: for the last three kinds I applied patches that "took the D away", in other words I turned them into the version that can also write DVD-RAM. The difference is only in the firmware (and in the price), not in the hardware.

There is an utility by the famous xvi that can test your drive(s) and report which is region locked (RPC-2) and which is Region Free (RPC-1). It is called DVD Info X, and I'm uploading it at the same time as this text.


BUT... patching the drive is not enough. If you then try playing some other region DVD you will still be stopped by the same alert and still be asked to change region (if you still have region changes left).
Once again it's the player (DVD-player) that is stopping you, but this time it can no longer use the region stored inside the drive (the drive is region-free now). Rather it is using data (region and counter) stored inside itself.
And this is a much much easier problem to solve, because this data is stored on the Mac Hard Disk: a lot easier to reach and modify. There is a program called RegionX, once again by xvi, that deals with it. It has been uploaded here this past day. It does not apply a patch DVD Player, but simply changes its chosen region and at the same time resets its counters. This means that you will have to run it every time you want to change region, but you can do it as often and as many times you need. Also, this kind of approach has high chances of being still working when a new version of DVD Player is released (it already happened more than once). A patch instead would probably have to be revised and re-released every time.


important note: This RegionX program does NOT patch the drive, it will NOT make it region-free. Rather, if your drive is still region locked it will not work on the DVD-player counter but on the one inside the drive!!! This means you will be eating one of the 5 changes available. To make sure you're not doing that, better double-check that your drive IS region-free by using DVD Info X.


Summarizing: 

To be able to play every region DVDs on your Mac you need to do two things:
1. Only once: patch your drive to RPC-1. This needs to be done on a PC or Intel-Mac running Win and using a software specific for your drive.
2. Each time you need, change the region inside DVD-Player using RegionX.

---

Addendum: How comes VLC can play any region even on region-locked drives without ever asking for a choice?

The VLC project was started by a group of students in a Paris university-like school. VLC was and still is freeware. Those students couldn't afford buying the (quite expensive) papers detailing the internal structure of DVDs and/or purchasing a licence. When purchasing that documentation people also have to sign a non-disclosure agreement, so it cannot be redistributed. But others were already experimenting and discovering how a DVD is structured and were publishing that info on the web. Rather the VLC group did it on their own without any DVD-Forum support by using this "other-sources" info. Not having signed any contract with the DVD-Forum they are not bound to implementing any region lock, and so they didn't: they simply totally ignore whatever region choice is stored inside the drive.

Monday, April 28, 2008

Bypassing Comcast Throttling

Hey, all bittorrent users! Want to download from comcast users? Have comcast and want to upload again like the good 'ol days? Want to show comcast that throttling doesn't work? This guide is for you!

The Story Behind This Fix

Sandvine, everybody's favourite "load balancer" works using a simple Man In The Middle attack to stop torrenting. Whenever the unit detects a network connection that fits the profile of bittorrent seeding traffic it injects a pair of forged TCP reset, or RST packets into the connection. When the uploader and the downloader receive the RST packets, they immediately terminate the connection without finishing the transfer. Sandvine targets both sides of the connection, so both sides have to implement the fix.

There is a way to stop this! While we all can agree that sandvine won't be going away anytime soon, we can speed it's demise by rendering it completely ineffective. All you have to do is block RSTs on your bittorrent port(s) and this tutorial tells you how.

Here are the instructions: http://wakarimasu.googlepages.com/home

Direct links:

FAQ

Can be found here: http://wakarimasu.googlepages.com/faq

Windows 2000 and XP

Instructions here: http://wakarimasu.googlepages.com/windows

MacOS X


Instructions here: http://wakarimasu.googlepages.com/macosx

Linux/BSD/Solaris

Linux Users: Beating Sandvine with Linux iptables

BSD/Solaris - coming soon ...........

Comments, additions and corrections are welcome!

How to install and use Irssi (Linux IRC Client)

How to install:
Irssi follows the general Linux installation steps, either (./configure, make, make install) Or through a package system. To install with a package system, type the following commands in the terminal:

Debian Based:
apt-get install irssi

Red Hat Based:
yum install irssi

Gentoo:
emerge irssi

How to use:
To launch irssi just type the following in the terminal:
irssi

If you wish you leave irssi running after you close the terminal/ssh/putty, you can launch it using screen:
screen irssi

After you have closed your ssh client if you want to resume your irssi session use the following command:
screen -r

If you accidentally choose the wrong screen id, press Ctrl+A, loose go and then press D. That will detach you from the screen session and bring you back to the terminal

To get a list of all screen ID's use:
screen -ls

Once you have irssi installed and running, alot of the commands are the same as they are for all clients.

/server - [ Connect to server ]
/join #channel - [ Join a channel ]
/query nick - [ Send a private message ]


I'm sure you get the drift...The one thing irssi lacks compared to almost every other client out there, is a mouse

So to switch between different windows (channels) you press Ctrl+P or Ctrl+N

Note: If you will be connecting to an SSL server you will need to type:

/set use_ssl on

Irssi also allows you to split windows, and display multiple channels at the same time. The four main window split commands consist of:

/window new - [ Open a new split window ]
/window close - [ Close a split windows ]
/window balance - [ Make all split windows the same size ]
/window
- [ Switch control to another split window ]

If at anytime you want to scroll up through the channel text you can use the PgUp and PgDown buttons

Auto Connect on start up and performs.

Like many other IRC clients, irssi supports auto connect and performs. The first thing you have to do to set this up is create a network name using the command:

/network ADD NetworkName

Once this is done you can set up the commands to use on connect with the command:

/network add -autosendcmd '^nick nickname;/msg nickserv identify pass' NetworkName

Seperate all the commands you want sent to the server with a ';'. Once all the commands are entered, you can tell irssi which server to connect to on start up:

/server ADD -auto -network NetworkName irc.host.com 6667

And finally the last thing to do is add the auto join for the channels:

/channel ADD -auto #channel NetworkName password

Ebook Management Tool

Manage your E-book collection

MediaMan

It does everything you want and more. Well worth the $40 price tag, IMHO.

It has one or two quirks that I wish it didn't, like not being able to merge multiple collection files into one, but the pros far outweigh any cons and a major upgrade is due later in the year, so hopefully, this will be among the improvements.

It's been out for several years now, but is still relatively little-known. Is developed and supported by a lone programmer, who is so obviously committed to it, which is nice to see and another reason I don't mind the price tag.

Not only will it handle your ebooks, but your videos, music, DVDs, games and software.

The really neat thing is its Amazon e-commerce engine, which pulls down descriptions, ratings, images, metadata and all that good stuff within seconds, at the click of a button.

Unfortunately, no imdb, freedb or worldcat (or similar) support yet, but again, this may change in future.

And to top it off, you can link directly to your files to have them open with your default player/viewer at the click of a button. In the most recent version, you can even play your audio from directly within the program.

More? I could go on, but it's best to check it out for yourself.

For Mac users, check out Delicious Monster

Same price. Older and more polished. But pretty much the same app. Well supported by a dedicated team.

Both awesome in their own right. Sure to satisfy your needs.