Showing posts with label debian. Show all posts
Showing posts with label debian. Show all posts

Debian .deb package file download and extract or view content edit

Download .deb package file

$ aptitude download package-name

View content

$ ar tv package-name.deb

Extract

$ ar xv package-name.deb

edit

http://todayis.tistory.com/276
우분투나 데비안에서 고정 ip를 설정하는 방법이다.
데비안의 경우 설치 시 ip를 설정할 수 있지만, 우분투의 경우는 DHCP로 잡히기 때문에.. 필요에 따라 다시 설정을 해 주어야 한다.

먼저 네트워크 인터페이스를 내린다(중지 시킨다).
$ sudo ifdown eth0

네트워크 인터페이스 설정 파일을 자신의 상황에 맞게 수정한다.
$sudo vi /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
network 192.168.0.0
broadcase 192.168.0.255
gateway 192.168.0.1
dns-nameservers 168.126.63.1 168.126.63.2

네임 서버를 수정한다.
$ sudo vi /etc/resolv.conf
nameserver 168.126.63.1
nameserver 168.126.63.2

네트워크 인터페이스를 올린다(다시 동작 시킨다).
$ sudo ifup eth0


ip 를 자동으로 할당받고 싶다면, '/etc/network/interfaces' 에서 iface eth0 inet static 이하의 부분을 iface eth0 inet dhcp 로 수정해 주면 된다.

deb 메뉴얼 edit

소스에서 deb 패키지 빌드하기 edit

소스 디렉토리에서

source-dir$ dpkg-buildpackage -rfakeroot -uc -b

(dpkg-buildpackage 옵션 설명: /2011/05/dpkg-buildpackage.html, fakeroot??: /2011/05/fakeroot.html)

알아서 다 해준다.
deb파일은 소스 디렉토리 상위 디렉토리에 생성됨. (../source-dir)

dpkg-source: error: source package has two conflicting values - foo and bar edit

http://www.mail-archive.com/debian-mentors@lists.debian.org/msg19604.html

Why do you call the directory bar if the source package is foo?

Ideally, these three should match:

- The name of the directory
- The name of the source package in the control file
- The name of the source package in the debian changelog

In your case, dpkg-gencontrol is complaining about a mismatch between
the last two. I think dpkg-source gives a warning if the directory
name does not match.

Richard Braakman

fakeroot?? edit

http://ubuntuforums.org/showthread.php?t=208606

Re: fakeroot??
Quote:
Originally Posted by hwe001
Hi I am working on a workstation and can not use 'sudo', but how to install a software (eg Skype) locally? anyone knows how to use "fakeroot"? does that mean I still can use "fakeroot" to install a software locally?

Thanks, Harvey

No, fakeroot is used when building packages in your user account, and all it does it change the owner of the files in the package to root:root, instead of user:user.

If you want to install packages on your system directories, then you have to use sudo or be root. However, you can locally install software in your user directory and use it successfully. This is not secure, because you could mistakenly remove a file from your user account and break the software. A good example is the firefox binary from mozilla.org .. you can download it into your user directory, untar it, and just click on the 'firefox' script to start it. I have not used Skype, but maybe you can do this with Skype too.

You should get access to sudo to install software properly, or have someone who has sudo install it for you.

HTH,

dpkg-buildpackage -rfakeroot -uc -b edit

http://nixy.egloos.com/134717

dpkg-buildpackage -rfakeroot -uc -b

'-rfakeroot' 옵션은 root 권한(소유권 획득을 목적으로)을 흉내내기 위해서 fakeroot 프로그램을 쓸 수 있도록 한다. '-uc'는 changelog에 대해서 암호화 서명을 하지 않게 함을 의미하며, '-b'는 바이너리 패키지만 빌드함을 의미한다.

dpkg-buildpackage와 dpkg-deb edit

dpkg-buildpackagedpkg-deb이 패키징할 수 있게 debian/package-name/DEBIAN에 디렉토리와 메타데이터들을 생성해주고 debian/package-name/를 루트로잡고 컴파일된 바이너리파일들을 배치시켜주는듯.

package-source-root$ dpkg-buildpackage -rfakeroot -uc -d

package-source-root/debian/package-name/DEBIAN/...
package-source-root/debian/package-name/...

위의 명령어를 실행시키면 dpkg-buildpackagedpkg-deb으로 패키징까지 알아서 다 해줌.

데비안 백포트 사용하기 edit

http://backports.debian.org/Instructions/

데비안 lenny 기준으로 /etc/apt/sources.list에 추가

deb http://backports.debian.org/debian-backports lenny-backports main

백포트로 패키지 설치하기

# aptitude -t lenny-backports install PACKAGE
<- Older