์ƒˆ์†Œ์‹

์ธ๊ธฐ ๊ฒ€์ƒ‰์–ด

๐Ÿ’ป Linux

220426

  • -
๋ฐ˜์‘ํ˜•
# ๋ฉ”์ผ ์„œ๋ฒ„ ๋‹ค์šด๋กœ๋“œ
wget <http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/20/Everything/x86_64/os/Packages/s/squirrelmail-1.4.22-13.fc20.noarch.rpm>
yum -y localinstall squirrelmail-1.4.22-13.fc20.noarch.rpm # ํ˜น์€ rpm -Uvh ์‚ฌ์šฉ
  • ์†Œ์œ ์ž ๊ถŒํ•œ ๋ณ€๊ฒฝ
[root@mail tmp] chown apache.apache -R /usr/share/squirrelmail/
[root@mail tmp] chown apache.apache -R /var/lib/squirrelmail/
[root@mail tmp] chown apache.apache -R /var/spool/squirrelmail/
[root@mail tmp] chown apache.apache -R /etc/squirrelmail/config.php
  • ์„ค์ • ํŒŒ์ผ ๋ณ€๊ฒฝ
[root@mail tmp]# /usr/share/squirrelmail/config/conf.pl
 > 2 > 1 > chaechae.com > A > 4 > mail.chaechae.com > 8 > other > s > enter > R
10 > 1 > ko_KR > 2 > euc-kr > s > enter > r > s > enter > q
  • Alias ์„ค์ •
[root@mail tmp]# vim /etc/httpd/conf/httpd.conf
	> 1 Alias   /webmail        /usr/share/squirrelmail
systemctl restart httpd
systemctl enable httpd
# ๋ฉ”์ผ ์„œ๋ฒ„ ์กด์žฌ ํ•ด์•ผํ•จ ( 2022-04-25 ์ˆ˜์—… )
192.168.0.45/webmail ์ ‘์† > webmail ์ •์ƒ ์ž‘๋™ ํ™•์ธ
CC,BCC(์ฐธ์กฐ,์ˆจ์€์ฐธ์กฐ) chaechae ์ž…๋ ฅ

  • ์„ค์น˜
[root@localhost ~] yum -y install syslinux tftp-server vsftpd dhcp xinetd
[root@localhost ~] systemctl stop firewalld
[root@localhost ~] systemctl disable firewalld
[root@localhost ~] setenforce 0
  • dhcp ์„ค์ •
[root@localhost ~] vim /etc/dhcp/dhcpd.conf
subnet 192.168.111.0 netmask 255.255.255.0 {
        option routers 192.168.111.2 ;
        option subnet-mask 255.255.255.0 ;
        range dynamic-bootp 192.168.111.30 192.168.111.50 ;
        option domain-name-servers 192.168.111.2 ;
        allow booting ;
        allow bootp ;
        next-server 192.168.111.100 ; # ๋ช‡๋ฒˆ ์•„์ดํ”ผ์—์„œ ํŒŒ์ผ์„ ๊ฐ€์ ธ์™€์„œ ์•„์ดํ”ผ ํ• ๋‹น ๋ฐ›์„๊ฑด์ง€
        filename "pxelinux.0";
}
[root@localhost ~] systemctl restart dhcpd
[root@localhost ~] vim /etc/xinetd.d/tftp
 disable                 = no

cd๋กฌ - ์ปค๋„ฅํŠธ - isoํŒŒ์ผ Centos7์„ ํƒ ํ›„ ํ™•์ธ

# cd๋กฌ ์–ธ๋งˆ์šดํŠธ ํ›„ ์žฌ๋งˆ์šดํŠธ
[root@localhost ~] umount /dev/cdrom
[root@localhost ~] mount /dev/cdrom /var/ftp/pub
mount: /dev/sr0 is write-protected, mounting read-only

[root@localhost ~] cp /var/ftp/pub/images/pxeboot/vmlinuz /var/lib/tftpboot/
[root@localhost ~] cp /var/ftp/pub/images/pxeboot/initrd.img /var/lib/tftpboot/
[root@localhost ~] cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/
[root@localhost ~] ls /var/lib/tftpboot/

[root@localhost ~] mkdir /var/lib/tftpboot/pxelinux.cfg
[root@localhost ~] cd /var/lib/tftpboot/pxelinux.cfg
[root@localhost pxelinux.cfg] vim default
DEFAULT CentOS7_Auto_Install

LABEL   CentOS7_Auto_Install
 kernel vmlinuz
 APPEND initrd=initrd.img repo=ftp://192.168.111.100/pub #์„ค์น˜ํŒŒ์ผ ๋‹ค์šด๋กœ๋“œ ๊ฒฝ๋กœ

[root@localhost pxelinux.cfg] ps -ef | grep dnsmasq
[root@localhost pxelinux.cfg] kill -9 1774 #dnsmasq๊ฐ€ ์ผœ์ ธ์žˆ๋Š” ๊ฒฝ์šฐ ์‚ญ์ œ

[root@localhost pxelinux.cfg] systemctl restart dhcpd
[root@localhost pxelinux.cfg] systemctl restart vsftpd
[root@localhost pxelinux.cfg] systemctl restart xinetd

[root@localhost tftpboot] yum -y install system-config-kickstart system-config-keyboard
[root@localhost tftpboot] system-config-kickstart
๊ธฐ๋ณธ ์–ธ์–ด - ํ•œ๊ตญ์–ด / ์‹œ๊ฐ„๋Œ€ - aisa,seoul - UTC ์‹œ๊ฐ„ ์‚ฌ์šฉ / ์„ค์น˜ํ›„ ์‹œ์Šคํ…œ ์žฌ๋ถ€ํŒ… ์„ ํƒ
์„ค์น˜ ๋ฐฉ๋ฒ• - ์ƒˆ๋กœ ์„ค์น˜ ์‹คํ–‰ / FTP ์„œ๋ฒ„ 192.168.111.100 / ๋””๋ ‰ํ„ฐ๋ฆฌ pub
๋ถ€ํŠธ๋กœ๋” ์˜ต์…˜ - ์ƒˆ๋กœ์šด ๋ถ€ํŠธ๋กœ๋” ์„ค์น˜
ํŒŒํ‹ฐ์…˜ ์ •๋ณด - ๋งˆ์Šคํ„ฐ ๋ถ€ํŠธ ๋ ˆ์ฝ”๋“œ ๋‚ด์šฉ ์‚ญ์ œ / ๋””์Šคํฌ ๋ ˆ์ด๋ธ” ์ดˆ๊ธฐํ™”
		๋ ˆ์ด์•„์›ƒ ์ถ”๊ฐ€ > ๋งˆ์šดํŠธ ์ง€์  / ํŒŒ์ผ์‹œ์Šคํ…œ ext4 10240
		ํŒŒ์ผ ์‹œ์Šคํ…œ ์Šค์™‘ 1024
		๋งˆ์šดํŠธ ์ง€์  /data ํŒŒ์ผ์‹œ์Šคํ…œ ext4 ์‚ฌ์šฉ์•ˆ๋œ ๋””์Šคํฌ ๊ณต๊ฐ„ ๋ชจ๋‘์ฑ„์›€
๋ฐฉํ™”๋ฒฝ - selinux ๋น„ํ™œ์„ฑ / ๋ฐฉํ™”๋ฒฝ ์‚ฌ์šฉ์•ˆํ•จ
์ €์žฅ - ํŒŒ์ผ์‹œ์Šคํ…œ/var/ftp์— centos์— ์ €์žฅ

cd /var/ftp 
ls

vim centos.cfg
 40 %packages
 41 @base
 42 @core
 43 @directory-client
 44 @fonts
 45 @gnome-desktop
 46 @input-methods
 47 @internet-browser
 48 @java-platform
 49 @multimedia
 50 @network-file-system-client
 51 @x11
 52 %end

[root@localhost ftp] vim /var/lib/tftpboot/pxelinux.cfg/default 
DEFAULT CentOS7_Auto_Install

LABEL   CentOS7_Auto_Install
 kernel vmlinuz
 APPEND initrd=initrd.img repo=ftp://192.168.111.100/pub ks=ftp://192.168.111.100/centos.ks
#์„ค์น˜ํŒŒ์ผ ๋‹ค์šด๋กœ๋“œ ๊ฒฝ๋กœ

[root@localhost ftp] systemctl restart vsftpd
[root@localhost ftp] systemctl restart xinetd
PXE ๊ณ ์ • IP ํ• ๋‹น 192.168.111.60
[root@localhost ~] vim /etc/dhcp/dhcpd.conf
subnet 192.168.111.0 netmask 255.255.255.0 {
        option routers 192.168.111.2 ;
        option subnet-mask 255.255.255.0 ;
        range dynamic-bootp 192.168.111.30 192.168.111.50 ;
        option domain-name-servers 192.168.111.2 ;
        allow booting ;
        allow bootp ;
        next-server 192.168.111.100 ;
        filename "pxelinux.0";

host client1 {
        option host-name "client1";
        hardware ethernet 00:50:56:24:2C:23;
        fixed-address 192.168.111.60;
        }
}
[root@localhost ftp] systemctl restart dhcpd
[root@localhost ftp] systemctl status dhcpd
๋ฐ˜์‘ํ˜•

'๐Ÿ’ป Linux' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

20220425  (0) 2022.04.29
CentOS7 ํ”„๋ก์‹œ ์„œ๋ฒ„  (0) 2022.04.21
CentOS7 DHCP ์ž๋™ ํ• ๋‹น, ์ˆ˜๋™ ํ• ๋‹น  (0) 2022.04.21
CentOS7 Samba Ubuntu Window  (0) 2022.04.21
CentOS7 Samba ์ด๊ธฐ์ข… ๊ณต์œ  ํด๋”  (0) 2022.04.21
Contents

ํฌ์ŠคํŒ… ์ฃผ์†Œ๋ฅผ ๋ณต์‚ฌํ–ˆ์Šต๋‹ˆ๋‹ค

์ด ๊ธ€์ด ๋„์›€์ด ๋˜์—ˆ๋‹ค๋ฉด ๊ณต๊ฐ ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค.