2/04/2011

Iphone : repository

iphone repo is debian repository
Os: Debian or Ubuntu
how to :
1. โครงสร้าง folder ของ application , theme , wallpaper , ringtone จะเหมือนกับโครงสร้าง folder เหล่านั้น ที่อยู่ใน iphone
Theme
[ThemeFolder]
--[DEBIAN]
----Control(file)
--[Library]
----[Themes]
------[ThemeFolderFile]

2. build a deb
#dpkg-deb -b FolderName
result : FolderName.deb

3. move file to folder for download file
etc. /var/www/cydia/deb/

4.create package info
in path /var/www/cydia use command
#dpkg-scanpackages -m . /dev/null >Packages

5.compact file Packages
#bzip2 Packages
result : Packages.bz2

from : http://www.saurik.com/id/7

2/03/2011

Debian : useradd & adduser

-adduser จะสร้าง home เพิ่ม group พร้อมทั้งให้กรอก password
-useradd จะเพิ่ม user เข้าไปใน /etc/passwd กับเพิ่ม group เข้าไปที่ /etc/group ถ้าต้องการให้สร้าง home ให้ด้วย ต้องใส่ option -m

2/02/2011

Debian : apt-get

dist-upgrade vs upgrade

This command installs the latest versions of any out-of-date packages on your system. It never installs a package that is not yet installed.

apt-get dist-upgradeThis command installs up-to-date version of packages, and may install additional packages.

if you want to do a distro-upgrade, use dist-upgrade. For instance, moving from Debian -stable to Debian -testing. Dist-upgrade is a special upgrade that is used if you are fetching packages from a new location, which is specified in /etc/apt/sources.list

If you want to simply upgrade the packages you have installed for your current distro, use 'apt-get upgrade'.