Set Command Alias for commands often used.
1. Apply to all users.
root@debian:~# vi /etc/profile
# last line: add aliases
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -lA'
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
root@debian:~# source /etc/profile # reload
2.Apply to a user
user@debian:~$ vi .bashrc
# last line: add aliases
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -lA'
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
user@debian:~$ source .bashrc # reload
3/24/2011
3/22/2011
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
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
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'.
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'.
Subscribe to:
Comments (Atom)