본문 바로가기

OS/Linux

(19)
Centos7 현재 디렉토리 전체 size. du -ch | grep total http://www.codecoffee.com/tipsforlinux/articles/22.html
samba mount smbclient -L //192.168.101.100 -U usernamemount -t cifs //192.168.101.100/sales /mnt/cifs -o username=shareuser,password=sharepassword,domain=nixcraft
CentOS7 ntp 설치. yum install ntpservice ntpd start
CentOS 7 samba 설치. # selinuxenabled && echo enabled || echo disabled enabled# vi /etc/selinux/config# This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=disabled # SELINUXTYPE= can take one of these two v..
CentOS NTFS 마운트 mount: unknown filesystem type 'ntfs' centos7 ntfs 타입 마운트 안될때. [root@IGGY ~]# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm [root@IGGY ~]# rpm -Uhv rpmforge-release-0.3.6-1.el5.rf.i386.rpm [root@IGGY ~]# yum install fuse fuse-ntfs-3g dkms dkms-fuse [root@IGGY ~]# yum install fuse fuse-ntfs-3g [root@IGGY ~]# mount /dev/sda1 /IPTIME/
CentOS7 ifconfig 명령어 실행안될때. ifconfig 설치. CentOS 7 설치완료후 ifconfig 명령어가 실행안되였다.확인해 보니 ifconfig 가 아예 설치 되여 있지 않음. yum 명령어를 사용하여 ifconfig 툴 설치. yum install net-tools 설치완료후 ifconfig 사용가능. ^^
CentOS 7 설치 사용기. http://ftp.daum.net/centos/7.0.1406/isos/x86_64/CentOS-7.0-1406-x86_64-DVD.iso iso 이미지 다운로드후 설치 해보았다. 설치완료후 DISK 사용량 835M 쓰기 괜찮음것 같음.
sftp 명령어 포트 변경하기. sftp 사용시 포트가 22번 포트가 아닌경우에 수동으로 포트를 변경하여 접속하여야 한다.-oPort="xxxx" 옵션을 사용하여 변경가능하다.예 3333포트를 사용시. sftp -oPort=3333 1.2.3.4