Ubuntu server yapılandırması 1
tarih 13. Kas, 2009 yazar admin in Linux server, Makale , Problem ve Çözümleri, Ubuntu
Bu bölümde kuracağımız ve yapılandıracağımız programlardan kısaca bahsedersek. SSH, Telnet ve rlogin gibi ağ üzerindeki başka bir sunucuya uzakta bulunan bir başka makineden bağlantı sağlayan bir protokoldür. SSH açık haliyle Secure Shell yani güvenli kabuk anlamına gelir.
Telnet ve rlogin kullanıcı şifreleri dahil tüm iletişim açık yani şifrelenmeden gerçekleştirilirken, SSH güvensiz makineler arasındaki iletişimi güçlü bir kriptografik yöntemiyle şifreler.
2. Bölüm Ubuntu Server yapılandırması 1 (Ubuntu Jaunty Jackalope)
Bu makele Ubuntu 9.04 Server kurulumunun devamıdır.
4 root haklarını alın
Daha önce oluşturulmuş kullanıcı adınızı (örneğin yönetici ile giriş yapabilirsiniz ) sonra.B iz bu root ayrıcalığı ile eğitimi tüm adımları çalıştırmanız gerekir, ya bu dize sudo ile öğretici olacaktır.
sudo passwd root
5 SSH Sunucu Kurulumu (İsteğe bağlı)
6 vim-Nox kurulumu (Opsiyonel)
Ben bu derste benim metin editörü olarak vim kullanacağım.
7 Ağ Yapılandırması
Ubuntu sistemimiz DHCP üzerinde kendi ağ yapılandırırmış, bunu değiştirmek zorundayız çünkü sunucumuz statik bir IP adresi olmalıdır. /Etc/Network/ yolunu izleyip IP adresi 192.0.100 yapacağız.
# This file describes the network interfaces
available on your system
# and how to activate them. For more information,
see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
network u resetliyoruz.
hostu düzenliyoruz.
127.0.0.1 localhost.localdomain localhost 192.168.0.100 server1.example.com server1 # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts
8 / etc / apt / sources.list düzenleme Ve Linux Güncelleme
## Uncomment the following two lines to add software from the 'backports' ## repository. ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. # deb http://de.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse # deb-src http://de.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. ## This software is not part of Ubuntu, but is offered by Canonical and the ## respective vendors as a service to Ubuntu users. # deb http://archive.canonical.com/ubuntu jaunty partner # deb-src http://archive.canonical.com/ubuntu jaunty partner deb http://security.ubuntu.com/ubuntu jaunty-security main restricted deb-src http://security.ubuntu.com/ubuntu jaunty-security main restricted deb http://security.ubuntu.com/ubuntu jaunty-security universe deb-src http://security.ubuntu.com/ubuntu jaunty-security universe deb http://security.ubuntu.com/ubuntu jaunty-security multiverse deb-src http://security.ubuntu.com/ubuntu jaunty-security multiverse
ve çalıştırıyoruz.kod aptitude updategüncelleme yapıyoruz,güncellemeden sonra yeniden başlatıyoruz
kod aptitude safe-upgrade reboot
9 Varsayılan Shell değiştirme
kod aptitude update
dpkg-reconfigure dash [/important]
10 AppArmor’u Devre dışı bırakma
AppArmor güvenlik birimidir,güvenlik geliştirmeyi sağlamaktadır. Yapılandırma için buna ihtiyacımız yok şimdilik,daha çok hataya neden olabiliyor.
update-rc.d -f apparmor remove aptitude remove
apparmor apparmor-utils
11 Bazı Programları Yükleme
Kotayı yükleme
kodaptitude install quota
/etc/fstab. düzenliyoruz şunun gibi (yeni baglantı noktası ekliyoruz. /):
# /etc/fstab: static file system information. # # Use 'vol_id --uuid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 # / was on /dev/mapper/server1-root during installation UUID=b8d265bc-5959-404d-a68e-8dc1c76f18d6 / ext3 relatime,errors=remount-ro,usrquota,grpquota 0 1 # /boot was on /dev/sda5 during installation UUID=01e9c3c7-2ad0-4f52-a356-18290517b362 /boot ext2 relatime 0 2 # swap was on /dev/mapper/server1-swap_1 during installation UUID=c1e0bcbb-5c73-4bd2-a7b2-8beeb7526200 none swap sw 0 0 /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0 /dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
12 Quota
quota devre dışı bırakıyoruz.
touch /quota.user /quota.group
chmod 600 /quota.*
mount -o remount /
quotacheck -avugm
quotaon -avug
13 DNS Sunucusu
vi /etc/default/bind9
kod # run resolvconf? RESOLVCONF=yes # startup options for the server OPTIONS="-u bind -t /var/lib/named"
/var/lib Altında gerekli dizinler oluşturun.
kodmkdir -p /var/lib/named/etc mkdir /var/lib/named/dev mkdir -p /var/lib/named/var/cache/bind mkdir -p /var/lib/named/var/run/bind/runconfig dosyasını taşıyoruz.
yeni config dizinine bir symlink oluşturun.
mknod /var/lib/named/dev/random c 1 8
chmod 666 /var/lib/named/dev/null /var/lib/named/dev/random
chown -R bind:bind /var/lib/named/var/*
chown -R bind:bind /var/lib/named/etc/bind
syslogd düzenliyoruz. vi /etc/default/syslogd yoluyla loglar şunun gibi olacak SYSLOGD=”-a /var/lib/named/dev/log”
kod# # Top configuration file for syslogd # # # Full documentation of possible arguments are found in the manpage # syslogd(8). # # # For remote UDP logging use SYSLOGD="-r" # SYSLOGD="-a /var/lib/named/dev/log"resetleyip ve yeniden başlatıyoruz.kod/etc/init.d/sysklogd restart /etc/init.d/bind9 startUbuntu Server yapılandırması 2. bölüm
Ubuntu Server yapılandırması 3. bölüm

