Perpetuum Jazzile – Africa (live, HQ)
Posted by acervulus in Uncategorized on September 6th, 2009
Master & Slave with chrooted Bind9
Posted by acervulus in Uncategorized on August 19th, 2009
Instruction for first and second paragraph are the same: master and slave servers.
Differences are shown in next chapters.
1.Bind installation
Run command to install bind on your server:
apt-get install bind9
It will probably start right after the installation so we have to stop it with:
/etc/init.d/bind9 stop
2.Create chroot environment for bind
Tree directory structure is needed for bind:
mkdir -p /var/chroot/bind/{etc,dev,var/cache/bind,var/run/bind/run}
Of course bind should be the owner of these directories so we need to change it:
chown -R bind:bind /var/chroot/bind/var/*
Now we have to create some devices used by bind:
mknod /var/chroot/bind/dev/null c 1 3 mknod /var/chroot/bind/dev/random c 1 8 chmod 666 /var/chroot/bind/dev/{null,random}
Move your bind configuration files into chroot-ed environment and create symbolic link to it:
mv /etc/bind /var/chroot/bind/etc ln -s /var/chroot/bind/etc/bind /etc/bind
Next step is to create new file in /etc/rsyslog.d directory
nano /etc/rsyslog.d/chroot-bind.conf
and add following line so rsyslog watches log events in chroot bind:
$AddUnixListenSocket /var/chroot/bind/dev/log
Restart rsyslog to make changes visible for the service
/etc/init.d/rsyslog restart
One last thing and we can run bind. Edit /etc/default/bind9 and change line by adding directory where chroot-ed bind is configured:
OPTIONS=”-u bind -t /var/chroot/bind”
Run bind with command:
/etc/init.d/bind9 start
3.Master bind server configuration
Edit /etc/bind/named.conf.options file to be similar to below entries:
options { directory “/var/cache/bind”; auth-nxdomain no; # conform to RFC1035 listen-on-v6 { none; }; listen-on { 127.0.0.1; ns1.example.com_ip_address_here; }; allow-query { 0.0.0.0/0; }; notify yes; allow-transfer { ns2.example.com_ip_address_here; }; };
where:
- ns1.example.com_ip_address_here – is the master bind IP address
- ns2.example.com_ip_address_here – is the slave bind IP address
For adding new domain edit /etc/bind/named.conf.local file and add new zone:
zone “example.com” { type master; file “/var/cache/bind/example.com.hosts”; };
As defined above, we have to create /var/chroot/bind/var/cache/bind/example.com.hosts file and add example domain configuration in it:
$TTL 3600 $ORIGIN com. example.com. IN SOA ns1.example.com. root.example.com. ( 2009070101 ; Serial 604800 ; Refresh 86400 ; Retry 604800 ; Expire 86400 ) ; Negative Cache TTL ; example.com. IN NS ns1.example.com. example.com. IN NS ns2.example.com. example.com. IN MX 10 mail.example.com. ; $ORIGIN example.com. ; ns1 IN A ip_address_here ns2 IN A ip_address_here www IN A ip_address_here example.com. IN A ip_address_here
Each change in above file is connected with Serial number which must also be changed. If you don’t change the Serial number, any changes in that file won’t work even if bind will be restarted
4.Slave bind server configuration
Check /etc/bind/named.conf.options file and change it to be similar to below entries:
options { directory “/var/cache/bind”; auth-nxdomain no; # conform to RFC1035 listen-on-v6 { none;}; listen-on { 127.0.0.1; ns2.example.com_ip_address_here; }; allow-query { 0.0.0.0/0; }; };
For adding new domain edit /etc/bind/named.conf.local file and add new zone:
zone “example.com” { type slave; file “/var/cache/bind/example.com.hosts”; masters{ ns1.example.com_ip_address_here; }; };
5.Restarting bind’s
After master and slave configuration, it’s time to restart both bind’s with command:
/etc/init.d/bind9 restart
As you can see in /var/log/syslog files:
#master Jul 1 17:34:45 ns1.example.com named[10821]: client ns2_IP_here#40275: transfer of ‘example.com/IN’: AXFR started Jul 1 17:34:45 ns1.example.com named[10821]: client ns2_IP_here#40275: transfer of ‘example.com/IN’: AXFR ended #slave Jul 1 17:34:45 ns2.example.com named[4657]: zone example.com/IN: Transfer started. Jul 1 17:34:45 ns2.example.com named[4657]: transfer of ‘example.com/IN’ from ns1_IP_here#53: connected using ns2_IP_here#51526 Jul 1 17:34:45 ns2.example.com named[4657]: zone example.com/IN: transferred serial 2009070101 Jul 1 17:34:45 ns2.example.com named[4657]: transfer of ‘example.com/IN’ from ns1_IP_here#53: Transfer completed: 1 messages, 10 records, 269 bytes, 0.068 secs (3955 bytes/sec) Jul 1 17:34:45 ns2.example.com named[4657]: zone example.com/IN: sending notifies (serial 2009070101)
master bind notifies and sends whole configuration about zone’s changes to slave bind. On slave bind server file /var/chroot/bind/var/cache/bind/example.com.hosts will be automatically created.
Google Earth i Debian (Ubuntu) amd64
Kratko uputstvo kako instalirati Google Earth na Debian amd64:
OS: Debian Squeeze/Sid (Debian Testing/Unstable)
Platforma: AMD64 (x86_64)
Kernel: 2.6.30-1-amd64
1. Instaliranje googleearth-package:
googleearth-package is a utility to automatically build a Debian package of Google Earth,
apt-get install googleearth-package
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
fakeroot
The following NEW packages will be installed:
fakeroot googleearth-package
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 127kB of archives.
After this operation, 524kB of additional disk space will be used.
Do you want to continue [Y/n]?
<---output skraćen --->
Setting up googleearth-package (0.5.6) …
2. Pokretanje make-googleearth-package koji će napraviti googleearth deb paketić:
Napomena: make-googleearth-package pokrećemo kao običan korisnik (tj bez administratorskih privilegija)
make-googleearth-package
–2009-07-17 18:30:20– http://dl.google.com/earth/client/current/GoogleEarthLinux.bin
Resolving dl.google.com… 74.125.43.93, 74.125.43.190, 74.125.43.91, …
Connecting to dl.google.com|74.125.43.93|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 25606194 (24M) [application/octet-stream]
Saving to: `GoogleEarthLinux.bin’
100%[===================================================>] 25,606,194 150K/s in 3m 3s
2009-07-17 18:33:47 (137 KB/s) – `GoogleEarthLinux.bin’ saved [25606194/25606194]
Google Earth for GNU/Linux 5.0.11733.9347
Supported Google Earth version: 5.0.11733.9347
tar: Record size = 8 blocks
<---output skraćen --->
Package: googleearth
Version: 5.0.11733.9347+0.5.6-1
Section: non-free/science
Priority: optional
Maintainer: <oroborus@aenima.homelinux.net>
Architecture: amd64
Depends: ttf-dejavu | ttf-bitstream-vera | msttcorefonts, ia32-libs (>= 2.4), ia32-libs-gtk (>= 2.2), libc6-i386 (>= 2.1.3), libc6-i386 (>= 2.2), libc6-i386 (>= 2.2.3), libc6-i386 (>= 2.2.4), libc6-i386 (>= 2.3), libc6-i386 (>= 2.3.2) , lib32nss-mdns
Description: Google Earth, a 3D map/planet viewer
Package built with googleearth-package.
dpkg-deb: building package `googleearth’ in `./googleearth_5.0.11733.9347+0.5.6-1_amd64.deb’.
Success!
You can now install the package with e.g. sudo dpkg -i <package>.deb
3. Instaliranje googleearth_5.0.11733.9347+0.5.6-1_amd64.deb paketića:
dpkg -i googleearth/googleearth_5.0.11733.9347+0.5.6-1_amd64.deb
Selecting previously deselected package googleearth.
(Reading database … 126687 files and directories currently installed.)
Unpacking googleearth (from …/googleearth_5.0.11733.9347+0.5.6-1_amd64.deb) …
dpkg: dependency problems prevent configuration of googleearth:
googleearth depends on lib32nss-mdns; however:
Package lib32nss-mdns is not installed.
dpkg: error processing googleearth (–install):
dependency problems – leaving unconfigured
apt-get -f install
Reading package lists… Done
Building dependency tree
Reading state information… Done
Correcting dependencies… Done
The following extra packages will be installed:
lib32nss-mdns
<---output skraćen --->
Setting up lib32nss-mdns (0.10-3) …
Setting up googleearth (5.0.11733.9347+0.5.6-1) …
Processing triggers for menu …
4. Pokretanje googleearth programa:
$ googleearth
Ukoliko posle pokretanja googleearth programa dobijete poruku:
googleearth-bin: symbol lookup error: libssl.so.0.9.8: undefined symbol: EVP_idea_cbc
(detaljan opis greške, kao i način zaobilaženja iste možete naći na Debian Bug report – #528029)
Jedno od rešenja je kao root pokrenuti sledeću komandu:
cd /usr/lib/googleearth && ln libcrypto.so.0.9.8.moved.for.workaround libcrypto.so.0.9.8
što bi trebalo da reši problem.
Neke od blog stranica koje se bave ovim programom:
- The (unofficial) Google Earth blog
Frank Taylor’s comprehensive look at all things Earth. - Google Earth Hacks
Mickey Mellen’s collection of user content.
- Ogle Earth
Stefan Geens’ look at virtual globes. - Google’s LatLong blog
The latest info about Google Maps, Earth, and SketchUp.
Nezvanični tips&tricks:
- Google’s Earth: Tips and Insight for Google Earth users
- Google Earth Blog: Google Earth news and updates
- Google Sightseeing – Guide to interesting and unusual sights
- Ogle Earth – Google Earth news site charting innovative uses and political implications of Google Earth
- Rodsbot – Strange sights on Earth
- Google Earth in Education – A guided tour by a teacher for teachers, students and all.
Wikipedia članak o Google Earth programu.
Clay Shirky: How Twitter can make history
Predavanje koje na veoma jednostavan nacin prikazuje snagu interneta i novog medijskog prostora koji on pruza.
While news from Iran streams to the world, Clay Shirky shows how Facebook, Twitter and TXTs help citizens in repressive regimes to report on real news, bypassing censors (however briefly). The end of top-down control of news is changing the nature of politics.











Recent Comments