๐ป 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
๋น์ ์ด ์ข์ํ ๋งํ ์ฝํ ์ธ
์์คํ ๊ณต๊ฐ ๊ฐ์ฌํฉ๋๋ค