วันอาทิตย์ที่ 13 กุมภาพันธ์ พ.ศ. 2554

hosts file in windows 7

C:\Windows\winsxs\amd64_microsoft-windows-w..nfrastructure-other_31bf3856ad364e35_6.1.7600.16385_none_6079f415110c0210

วันพุธที่ 26 มกราคม พ.ศ. 2554

webdav

http://www.howtoforge.com/how-to-set-up-webdav-with-apache2-on-ubuntu-9.04
http://www.howtoforge.com/how-to-set-up-webdav-with-apache2-on-ubuntu-10.04
1 Preliminary Note


I'm using an Ubuntu 9.04 server with the IP address 192.168.0.100 here.



Because we must run all the steps from this tutorial with root privileges, we can either prepend all commands in this tutorial with the string sudo, or we become root right now by typing



sudo su







2 Installing WebDAV

If Apache is not already installed, install it as follows:



aptitude install apache2



Afterwards, enable the WebDAV modules:



a2enmod dav_fs

a2enmod dav



Restart Apache:



/etc/init.d/apache2 restart







3 Creating A Virtual Host

I will now create a default Apache vhost in the directory /var/www/web1/web. For this purpose, I will modify the default Apache vhost configuration in /etc/apache2/sites-available/default. If you already have a vhost for which you'd like to enable WebDAV, you must adjust this tutorial to your situation.



First, we create the directory /var/www/web1/web and make the Apache user (www-data) the owner of that directory:



mkdir -p /var/www/web1/web

chown www-data /var/www/web1/web



Then we back up the default Apache vhost configuration (/etc/apache2/sites-available/default) and create our own one:



mv /etc/apache2/sites-available/default /etc/apache2/sites-available/default_orig

vi /etc/apache2/sites-available/default


NameVirtualHost *




ServerAdmin webmaster@localhost
DocumentRoot /var/www/web1/web/



Options Indexes MultiViews

AllowOverride None

Order allow,deny

allow from all






Then reload Apache:
/etc/init.d/apache2 reload








4 Configure The Virtual Host For WebDAV

Now we create the WebDAV password file /var/www/web1/passwd.dav with the user test (the -c switch creates the file if it does not exist):



htpasswd -c /var/www/web1/passwd.dav test



You will be asked to type in a password for the user test.



(Please don't use the -c switch if /var/www/web1/passwd.dav is already existing because this will recreate the file from scratch, meaning you lose all users in that file!)



Now we change the permissions of the /var/www/web1/passwd.dav file so that only root and the members of the www-data group can access it:



chown root:www-data /var/www/web1/passwd.dav

chmod 640 /var/www/web1/passwd.dav



Now we modify our vhost in /etc/apache2/sites-available/default and add the following lines to it:



vi /etc/apache2/sites-available/default



[...]

Alias /webdav /var/www/web1/web





DAV On

AuthType Basic

AuthName "webdav"

AuthUserFile /var/www/web1/passwd.dav

Require valid-user



[...]

The Alias directive makes (together with ) that when you call /webdav, WebDAV is invoked, but you can still access the whole document root of the vhost. All other URLs of that vhost are still "normal" HTTP.



The final vhost should look like this:



NameVirtualHost *



ServerAdmin webmaster@localhost



DocumentRoot /var/www/web1/web/



Options Indexes MultiViews

AllowOverride None

Order allow,deny

allow from all





Alias /webdav /var/www/web1/web





DAV On

AuthType Basic

AuthName "webdav"

AuthUserFile /var/www/web1/passwd.dav

Require valid-user





Reload Apache afterwards:



/etc/init.d/apache2 reload







5 Testing WebDAV

We will now install cadaver, a command-line WebDAV client:



aptitude install cadaver



To test if WebDAV works, type:



cadaver http://localhost/webdav/



You should be prompted for a user name. Type in test and then the password for the user test. If all goes well, you should be granted access which means WebDAV is working ok. Type quit to leave the WebDAV shell:



root@server1:~# cadaver http://localhost/webdav/

Authentication required for webdav on server `localhost':

Username: test

Password:

dav:/webdav/> quit

Connection to `localhost' closed.

root@server1:~#

วันศุกร์ที่ 21 มกราคม พ.ศ. 2554

Post jailbreak Appsync Aptbackup

How to install Cracked Apps on iPad OS 3.2 with AppSync 3.2

Apple won’t let you install cracked apps on iPad OS 3.2, unless you patch mobileInstallation file on iPad. In this iPad guide you’ll learn how to install cracked apps, games on iPad 3.2 by patching mobileInstallation file with AppSync 3.2.

The developer of AppSync has pushed an AppSync for OS 3.2 via Cydia. AppSync works for both iPad 3G+WiFi and iPad WiFi only models running iPad firmware 3.2.

PREREQUISITES

Any iPad with firmware 3.2

iPad must be jailbroken (iPad jailbreak guides are linked at the bottom of this post)

Disclaimer: This guide is for Testing & educational purposes only. Use it at your own Risk. We strongly discourage Piracy and encourage you to purchase iPad Apps from the AppStore to encourage developers to keep up the great work.

Update 1: AppSync 4.0 for iOS 4.0 is available now!

Update 2: AppSync 4.1 for iOS 4.1 is out now!

Update 3: AppSync 4.2 for iOS 4.2.1 is available now!

Follow the step by step instruction below to patch mobileInstallation file on iPad with AppSync and install cracked apps on iPad 3.2.

How to install Cracked Apps on iPad OS 3.2 with AppSync

Step 1

Open the Cydia from your iPad Springboard (Home Screen).



Step 2

Go to the Manage Tab and Tap on big Sources button.

Tap on the Edit button at the top-right of the screen.

Then hit the Add button at the top-left side.



Step 3

Then input the following URL: http://cydia.hackulo.us

and Hit the Add Source button.

When a warning box appears, hit the Add Anyway. Now Cydia will add the Repo to the list. Once done, hit the big Return to Cydia button.



Step 4

Now Go to the Search Tab and Search for AppSync for OS 3.2. Then Tap on the AppSync for OS 3.2 from the Search results.

Hit the Install button at the top-right corner.

Then hit the Confirm button to begin the installation process.



Step 5

Now AppSync will patch mobileInstallation file on your iPad on OS 3.2. Once the process is complete close the Cydia.

That’s it..

Make sure to download and install a free app from iTunes App Store. Then go for any cracked app.

Now the only thing you need is a cracked app.. Please don’t ask for any cracked app or game here, you won’t get it.. Google is your friend. Once you get a cracked app (.ipa), simple connect your iPad to iTunes, double click on cracked .ipa file (game or app) and Sync your iPad with iTunes..

Have Fun!

Jailbreak iPad OS 3.2

You can jailbreak iPad 3G, WiFi OS 3.2 using Spirit Jailbreak. Follow the guide linked below to jailbreak iPad 3.2 with Spirit:

How to: Jailbreak iPad 3.2 with Spirit

You can follow us to Twitter, Join us at Facebook, and also Subscribed to RSS Feed to receive latest updates on iPhone, iPod Touch and iPad jailbreak and iPhone unlocking stuff.

You may also be interested in:

How to: install cracked apps on iPhone, iPod Touch *Without WiFi*

AppSync 3.1.3 for iPhone OS 3.1.3

Deb installation

http://cydevice.net/Thread-SSH-and-Deb-Installation-Guide-Windows

ipad backup

http://thebigboss.org/moreinfo/AptBackup.php

วิธีใช้โปรแกรม AptBackup [backup โปรแกรมจาก cydia ครับ]


โปรแกรมนี้เป็นการค้นพบ โดยบังเอิญของผมครับ

โปรแกรมนี้ สามารถ backup source จาก cydia

และยังสามารถ back app,theme[ที่ลงจากcydia] ได้อีกด้วย

โปรแกรมนี้ชื่อว่า AptBackup ครับ

รายละเอียดโปรแกรมครับ :

สำหรับ ท่านที่คุ้นเคยกับ Cydia มาตั้งแต่ไอโฟนเฟิร์มแวร์ 1.x อาจจะคุ้นเคยกับวิธี backup และ restore โปรแกรมต่างๆ ที่ติดตั้งผ่าน Cydia Package โดย command line กันไปบ้างแล้ว สำหรับหลายท่าน ที่ไม่คุ้นเคยกับ command line และการพิมพ์คำสั่ง ที่มีสัญลักษณ์เยอะๆ ก็คงจะรู้สึกว่ายุ่งยากพอสมควร ล่าสุดคุณ Chris Featherstone ก็ได้พัฒนาโปรแกรม AptBackup นี้ขึ้นมา โดยหลักการ ก็คือการสร้าง list โปรแกรมที่ติดตั้งผ่าน Cydia รวมถึง package sources ต่างๆ ออกมาเป็นไฟล์ แล้วเก็บเอาไว้ในข้อมูลของไอโฟน เวลาที่ทำการ backup iPhone/iPod touch ด้วยโปรแกรม iTunes ก็จะมีการรวมเอาไฟล์ดังกล่าวเข้าไปด้วย หากมีการ restore หรือ update firmware แล้วทำการ restore data ที่ได้ backup ไว้กลับมา ไฟล์ดังกล่าว ก็จะกลับมาด้วย เพียงแค่รันโปรแกรมนี้ ก็จะทำการดาวน์โหลดและติดตั้งโปรแกรมตามรายการทั้งหมดทันที แต่มีข้อแม้ตรงที่สามารถ restore ข้อมูลดังกล่าว ภายหลังจาก Restore data จาก iTunes เท่านั้นครับ ไม่สามารถสั่ง restore ในสภาวะปกติครับ

Name: AptBackup

Version: 1.1-3

Size: 43 kB

License: ฟรี

Install: Cydia (source: BigBoss)

รายละเอียดโปรแกรมจาก thaiiphoneclub.com

มาเริ่มกันเลยครับ

1.ลง openSSH จาก cydia ครับ[ส่วนมากcydia จะลงไว้ตั้งแต่แรกอยู่แล้วครับ ถ้าลงแล้วก็ข้ามไปเลย]

2.ลงโปรแกรม AptBackup จาก source bigboss ครับ ไม่ต้อง add อะไรทั้งนั้นครับ เพราะ source bigboss มีตั้งแต่แรกอยู่แล้วครับ



3.หลังจากลงเสร็จ เข้าโปรแกรม AptBackup



4.กด backup ด้านในโปรแกรมครับ รอมัน back up ดังรูปครับ



5.ใช้โปรแกรม จัดการไฟล์ ไป back up ไฟล์

โดยเข้าไปที่ ~/var/mobile/Library/Preferences

backup ไฟล์ดังนี้ครับ

1. aptbackup.cydiasources.tgz

2. aptbackup_dpkg-packages.txt

3. aptbackup_openssh.tgz



6. เปิด itune ขึ้นมาครับ sync iphone ให้ itune backup ให้เสร็จครับ ถ้ากลัวมันไม่ backup ให้ไปคลิกขวาที่ตัว iphone แล้ว กด back up ครับ

7.Restore original Firmware ตามที่ต้องการครับ ย้ำoriginal Firmware นะครับครับ ห้ามใช้ custom firmware ครับ ถ้าใช้ Custom Firmware ตอน restore อาจมีปัญหาได้ครับ

8.Jailbreak ให้เรียบร้อยโดยใช้ QuickPWN ครับ

9.หลัง jailbreak เสร็จ ไปที่ cydia

ลงโปรแกรมดังนี้

1.openSSH

2.Aptbackup

3.Sbsetting หรือ Bosspref

4.Five Icon Dock [ข้อ4 นี้ เอาไว้กรณีที่ ก่อน เรา restore เราได้ใช้ five icon dock อยู่แล้ว ถ้าเราไม่เคยใช้ตั้งแต่แรกก็ไม่ต้องลงครับ]

10. กด restore from backup ที่ backup ไว้ครั้งล่าสุดกับ itune ครับ

11. หลังจาก restore from backup เสร็จให้เข้าไปที่ AptBackup แล้วกด restore ในโปรแกรมครับ จะเป็นดังภาพ



12. เสร็จแล้ว มันก็จะกลับมาเป็นแบบเดิมครับเหมือนก่อนเรา restore ครับ



ถ้า ก่อนเรา restore เราได้ใช้โปรแกรม Categories จัดหมวดหมู่ Apps ไว้ หลังจากขั้นตอนที่ 11 ให้ ไปที่ Sbsetting หรือ Bosspref ไป ตั้งให้ Icon ที่ Hide อยู่ จาก Off –>> On ซะนะครับ

หมายเหตุ ถ้า กด restore ดังขั้นตอนที่ 11 แล้ว มันไม่ยอม back up กลับให้เป็นแบบเดิม ให้ทำดังนี้ครับ

1.ลง OpenSSH จาก cydia

2.ใช้โปรแกรมจัดการไฟล์เข้าไปที่ ~/var/mobile/Library/Preferences

ให้ เอาไฟล์ 3ไฟล์ ที่ back up ไว้ตอนแรกที่มีชื่อ ดังนี้

1. aptbackup.cydiasources.tgz

2. aptbackup_dpkg-packages.txt

3. aptbackup_openssh.tgz

มาใส่ครับ

3. จากนั้นเข้าไปที่โปรแกรม AptBackup อีกที แล้วกด restoreด้านในโปรแกรมครับ

แค่นี้ก็เรียบร้อยครับ ลองเอาไปใช้ดูนะครับ


http://me.srwz.us/iphone/appbackup
Backup Location




Backups are stored in /var/mobile/Library/Preferences/AppBackup/tarballs as files called bundleid.tar.gz, where bundleid is a given app’s bundle identifier (e.g. com.ooi.supermonkeyball). These files are regular gzip-compressed tar archives and can be opened with any program capable of viewing them (e.g. 7-zip on Windows). Backup times are stored in an XML property list at /var/mobile/Library/Preferences/AppBackup/backuptimes.plist as Unix timestamps.



If you want to “backup the backups,” you should back up the entire /var/mobile/Library/Preferences/AppBackup directory tree.