리눅스 buffer/cache 메모리 비우기
#!/bin/sh sync # pagecache sysctl -w vm.drop_caches=1 # dentries + inodes sync sysctl -w vm.drop_caches=2 # pagecache + dentries + inodes sync sysctl -w vm.drop_caches=3
리눅스 buffer/cache 메모리 비우기 더 읽기"
#!/bin/sh sync # pagecache sysctl -w vm.drop_caches=1 # dentries + inodes sync sysctl -w vm.drop_caches=2 # pagecache + dentries + inodes sync sysctl -w vm.drop_caches=3
리눅스 buffer/cache 메모리 비우기 더 읽기"
출처 : https://www.conory.com/note_linux/42241 원래 부팅시 정해진 서비스 또는 스크립트를 실행시키는 건 init (System V Init)라는 프로그램의 몫이였습니다. 유닉스가 처음 생길때부터 그래왔고, 지금도 그렇습니다.(하지만 지금은 다른 아이로 교체되는 시기입니다.) init는 그 이름처럼 리눅스의 초기화부분을 담당합니다. init 사용자들이 /etc/rc.d/init.d 디렉토리에 부팅시 실행할 서비스 스크립트를 넣으면, init는 부팅이나 특정행동이 있을때 그 스크립트들을 자동으로 실행시키는 역활을 했었습니다. 그러면 사용자들은 chkconfig명령으로 자동실행
systemd에서 부팅시 실행할 서비스 관리하기 더 읽기"
systemd documentation systemd has very comprehensive documentation. Refer to http://0pointer.de/blog/projects/systemd-docs.html Boot Kernel Command Line On boot systemd activates (by default), the target unit default.target whose job is to activate services and other units by pulling them in via dependencies. To override the unit to activate, systemd parses its own kernel command line arguments via the systemd.unit= command line option. This may be used
출처 : http://www.sensi.org/~alec/unix/redhat/sysvinit.html #!/bin/bash # # /etc/rc.d/init.d/<servicename> # # <description of the *service*> # <any general comments about this init script> # # <tags — see below for tag definitions. *Every line* from the top # of the file to the end of the tags section must begin with a # # character. After the tags
System V init scripts for Red Hat Linux 더 읽기"
출처 : http://snoopybox.co.kr/1720 1. runlevel 일단 runlevel 이야기부터 하자면, 우분투는 레드햇 계열과 달리 기본 runlevel이 2이며, 각 level의 의미는 아래와 같다. 즉 0, 1, 2, 6만 의미가 있고 3, 4, 5는 2와 같으며 사용하지 않기 때문에 별 의미가 없다. 0 : System halt.1 : Single-User mode.2 : Graphical multi-user plus networking (DEFAULT)3 : Same as “2”, but not
출처 : http://faq.hostway.co.kr/?mid=Linux_ETC&page=2&document_srl=3570 간혹 fstab에 잘못된 Block Device 정보가 등록 되거나, 디스크의 Label 또는 정보가 변경 되어 정상적인 부팅이 되지 않고 Repair Filesystem 모드로 들어가는 경우가 생길 때가 있습니다. Repair Filesystem 상태일 때는 / 파티션이 Read-only 상태로 마운트가 되기 때문에 /etc/fstab 파일의 수정이 불가능한데, 아래와 같이 Read-Write 모드로 remount 해주면 수정이 가능합니다. (싱글모드로 부팅할 경우에도
fstab 손상으로 / 파티션이 Read-Only 상태일 때 Remount 하는 방법 더 읽기"
■사용자 추가 smbpasswd -a ${계정명} ■사용자 삭제 smbpasswd -x ${계정명} ■사용자 enable/disable smbpasswd -e ${계정명} smbpasswd -d ${계정명} ■비밀번호 변경 smbpasswd ${계정명} ■목록 보기 pdbedit -w -L ■목록에서 삭제 pdbedit -x ${계정명}
NAME iptables – IPv4 기반 패킷 필터링 및 NAT 를 위한 관리자 툴 SYNOPSIS iptables [-t table] -[AD] chain rule-specification [options] iptables [-t table] -I chain [rulenum] rule-specification [options] iptables [-t table] -R chain rulenum rule-specification [options] iptables [-t table] -D chain rulenum [options] iptables [-t table] -[LFZ] [chain] [options] iptables [-t table] -N
[root@localhost ~]# fdisk -l (현재 파티션 테이블 확인) Disk /dev/sda: 32.2 GB, 32212254720 bytes 255 heads, 63 sectors/track, 3916 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 13 104391 83 Linux /dev/sda2 14 666 5245222+ 83 Linux /dev/sda3 667
1. 설정파일 셋팅 # vi /etc/sysconfig/vncservers VNCSERVERS=”2:root 3:oracle”VNCSERVERARGS[2]=”-geometry 1024×768 -nolisten tcp -localhost”VNCSERVERARGS[3]=”-geometry 1024×768″ ※ oracle은 일반계정으로 미리 만들어져 있어야 한다. 2. 스크립트 셋팅 # su – oracle$ mkdir ~/.vnc$ cd ~/.vnc$ vi xstartup #!/bin/shunset SESSION_MANAGERexec /etc/X11/xinit/xinitrc[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresourcesxsetroot -solid greyvncconfig -iconic &xterm -geometry 80×24+10+10 -ls
CentOS 5.x에 VNC Server 설치하기 더 읽기"
DHCP서버는 따로 운영 중일때 Bridge 모드를 활용한다. 1.무선 인터페이스 편집 (ral0) # vi hostname.ral0 !ifconfig ral0 \ media autoselect mediaopt hostap nwid “TestAP” \ wpakey 123456789 chan 1 up # chmod 600 /etc/hostname.ral0 2. 유선 인터페이스와 무선 인터페이스 브릿징 (ral0+rl0) # vi /etc/hostname.bridge0 add ral0 add rl0 up # chmod 600 /etc/hostname.bridge0 3. 네트워크 재시작
■ 기본 네트워크 구조 eth0 : 10.10.10.81/24 gateway 10.10.10.254wlan0 : AP Mode ■ 추가 설치 패키지 apt-get install bridge-utilsapt-get install hostapd ■ AP 셋팅 1. /etc/network/interfaces auto lo br0iface lo inet loopback # wireless wlan0allow-hotplug wlan0iface wlan0 inet manual # eth0 connected to the ISP routerallow-hotplug eth0 # Setup bridgeiface br0 inet static bridge_ports wlan0
원본 : http://linuxholic.tistory.com/166 우분투 사용자 모임과 데비안사용자모임에서 발췌 편집했다http://www.ubuntu.or.kr/wiki.phphttp://www.debianusers.org/시작* 일단 나중에 설치될 프로그램들을 위해 아래 소스를 소스리스트에 추가한다. sudo gedit /etc/apt/sources.list <–터미널에 요명령 그대로 친다. deb http://packages.freecontrib.org/ubuntu/plf dapper free non-freedeb http://archive.ubuntu.com/ubuntu/ dapper main restricted universe multiversedeb-src http://archive.ubuntu.com/ubuntu/ dapper main restricted universe multiversedeb http://wine.budgetdedicated.com/apt dapper main위 소스를 복사후 붙여넣고 저장한다.(mplayer,w32codec,wine을 설치할수있다) sudo apt-get update 명령실행1.해상도 및 nvidia 드라이버설치 (3D 가속기능)우분투 초기 설치하시
우분투 리눅스 데스크탑 설치 후 해야할 일들 더 읽기"
1. /etc/init.d/oracle.sh 를 아래와 같이 만들어 준다. (퍼미션은 755) #!/usr/bin/bash ORA_HOME=/export/home/oracle/app/oracle/product/11.2.0/dbhome_2ORA_OWNER=oracle if [ ! -f ${ORA_HOME}/bin/dbstart ]thenecho “Oracle startup: cannot start”exitfi echo ${ORA_HOME} case “$1” in’start’)echo su – ${ORA_OWNER} -c “${ORA_HOME}/bin/dbstart”su – ${ORA_OWNER} -c “${ORA_HOME}/bin/dbstart ${ORA_HOME}”#su – ${ORA_OWNER} -c “${ORA_HOME}/bin/emctl start dbconsole”#su – ${ORA_OWNER} -c “${ORA_HOME}/bin/isqlplusctl start”;;’stop’)#su – ${ORA_OWNER} -c “${ORA_HOME}/bin/isqlplusctl stop”#su – ${ORA_OWNER} -c
Solaris+Oracle에서 Oracle 설치 후 구동하기 더 읽기"
1단계 : 파티셔닝 및 포맷 # fdisk -e /dev/rsd0cfdisk: 1> reinitIn memory copy is initialized to:Offset: 0 Signature: 0xAA55 Starting Ending LBA Info: #: id C H S – C H S [ start: size ]——————————————————————————- 0: 00 0 0 0 – 0 0 0 [ 0: 0 ] unused 1: 00 0 0 0 – 0 0