Posts

Showing posts from September, 2012

Deleting comment lines

เวลาที่ไฟล์สำหรับ Config ที่มี Comment เยอะ ๆ แล้วต้องการลบออกให้หมด ทำได้โดยใช้คำสั่ง sed '/^\#/d' myFile > tt mv tt myFile ความหมาย : sed '/^\#/d' myFile : removes all lines starting with # from the file myFile and outputs the result in the console, > tt : redirects the output into a temporary file called tt, mv tt myFile : moves the temporary file tt to myFile. ที่มา : http://soft.zoneo.net/Linux/remove_comment_lines.php อีกวิธี : http://linuxconfig.org/remove-comment-lines-from-linux-config-files

Sony Tablet S : ICS Rooted

เก็บเล็กผสมน้อยมาจาก xda ครับ (ใช้วิธี adb restore) ใช้ไฟล์ที่จำเป็นตามนี้ ics-rooted.tar.gz 1.adb restore settings.ab #เรียก function restore ที่ tablet ให้ตอบตกลงด้วย 2.adb shell ls -ld /data/data/com.android.settings/a #drwxrwxrwx system system a 3.adb shell 4.cd /data/data/com.android.settings 5.rm -r a #permission denied ก็ปล่อยมัน 6.while : ; do ln -s /data a/file99; done #โปรแกรมจะ loop ไม่รู้จบ ให้เปิด cmd อันใหม่ขึ้นมา 7.adb restore settings.ab #เรียก function restore อีกครั้ง ที่ tablet ให้ตอบตกลง แล้วรอจนเสร็จ แล้วค่อยยกเลิก cmd อันแรก 8.adb shell ls -ld /data #drwxrwxrwx system system data 9.adb push busybox /data/local/tmp 10.adb push rootkit.tar.gz /data/local/tmp 11.adb push Superuser.apk /data/local/tmp 12.adb push su /data/local/tmp 13.adb shell 14.cd /data/local/tmp 15.chmod 755 busybox 16../busybox tar zxf rootkit.tar.gz 17.exit 18.adb install ZipSigner2.apk 19.adb push VpnFaker.apk /sdcard/VpnFaker_unsign.apk 20.เรียกโปรแกรม ZipSigner2 20.1 Input เป็น /sdcard