Download .deb package file
$ aptitude download package-name
View content
$ ar tv package-name.deb
Extract
$ ar xv package-name.deb
$ aptitude download package-name
$ ar tv package-name.deb
$ ar xv package-name.deb
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 로 수정해 주면 된다.
source-dir$ dpkg-buildpackage -rfakeroot -uc -b
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
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,
package-source-root$ dpkg-buildpackage -rfakeroot -uc -d
deb http://backports.debian.org/debian-backports lenny-backports main
# aptitude -t lenny-backports install PACKAGE