반응형
VNC  Virtual Network Computing 

GUI  환경에서 원격 관리를 할수 있도록 하는 프로그램이입니다.
대부분의 운영체제에서 사용이 가능합니다. 

Cent OS 6.5에 VNC 서버를 설치 해보도록 하겠습니다. 

설치. 
yum install tigervnc-server

환경설정.

vi /etc/sysconfig/vncservers


VNCSERVERS="1:user"    
VNCSERVERARGS[1]="-geometry 1024x768"


[root@localhost user]# service vncserver start
Starting VNC server: 1:user
New 'localhost.localdomain:1 (user)' desktop is localhost.localdomain:1

Starting applications specified in /home/user/.vnc/xstartup
Log file is /home/user/.vnc/localhost.localdomain:1.log


아래와같이 접속합니다. 



아래와 같은 에러가 출력되면
일반 유저모드에서   vncpasswd를 지정하여 생성을 하도록 한다ㅏ.

[root@localhost ~]# service vncserver start
Starting VNC server: 1:user
You will require a password to access your desktops.

getpassword error: Inappropriate ioctl for device
Password:                                                  [FAILED]


반응형
반응형






리눅스에서 svn 디렉토리를 모두 삭제하는 방법

쉘에서! 

find . -name .svn -print0 | xargs -0 rm -rf






반응형

'IT이야기 > linux' 카테고리의 다른 글

VNC Server 설치  (0) 2017.07.26
lxr 설치하기  (0) 2014.08.06
masboard에서 프로그램하기  (0) 2014.01.18
marsboard에서 홈서버 및 워드프레스 설치  (2) 2014.01.03
masboard에 ftpserver 설치  (0) 2014.01.01
masboard에서 윈도우 파일 마운트  (0) 2014.01.01
반응형



Lxr 설치 매뉴얼


매뉴얼은 ubuntu 서버 환경으로 제작되어 있습니다.


apatch2 설치

기본적으로 apatch2가 설치 되어 있어야 하며 apt-get install apache2 명령어로 쉽게 설치 할수 있습니다.


glimpse 설치


    . wget http://webglimpse.net/trial/glimpse-latest.tar.gz
    . tar xvfz glimpse-latest.tar.gz
    ./configure && make && sudo make install


lxr 설치 및 환경 세팅


http://packages.ubuntu.com/lucid/all/lxr/download 로 이동하여


lxr_0.3.1-5_all.deb (140801 일기준) 을 받아


dpkg – I v패키지 명으로 하여 설치 할 수 있습니다.


기본 설치는 /usr/share/lxr 에 됩니다.
sudo vi /etc/apache2/sites-available/default
후 다음 내용 추가

Alias /lxr "/usr/share/lxr"

<Directory "/usr/share/lxr">

Options All

AllowOverride All

</Directory>



version 명으로 된 디렉토리 아래 바로 소스를 둘 것이므로 다음처럼 수정합니다.


# The source is here.

sourceroot: /usr/share/lxr/source/$v/

srcrootname: Linux


# Glimpse can be found here.

glimpsebin: /usr/local/bin/glimpse

소스 코드 복사 및 DB 구축
sudo mkdir /usr/share/lxr/source/<VERSION>
sudo cp
소스/usr/share/lxr/source/<VERSION>
cd /usr/share/lxr/source



cd <VERSION>
sudo genxref ./
sudo glimpseindex -H ./ ./검색할위치     ( 생성위치  검색할 위치)



sudo chmod 644 .glimpse_*
sudo chmod 644 fileidx
sudo chmod 644 xref



참고 사이트

http://blog.dasomoli.org/305

반응형
반응형





마스 보드에서 뭐할것이 없을까 고민 끝에 프로그래밍 학습을 하기로 마음을 먹었습니다. 


그럼 우선 gcc를 설치해야되는데 ...   


gcc 가 설치되어 있었습니다. 


언제 설치했지;;




폴더 만들고! 




간단하게 ..코딩!


정상 적으로 되는 것 처럼 보이네요 .



반응형
반응형




apm 설치


정말 잘정리된 블로그가 있어서 링크!

apach2, php, mysql  설치 방법이 자세히 적혀 있어요.!!! 


VirtualHost를 이용하여 파일링크!  
하나는 워드프레스를 설치를 하려고 합니다.


우선 전 apm 만 설치하고 

 root@A20:/etc/apache2/sites-enabled# pwd

/etc/apache2/sites-enabled


전 실수를 잘하는 타입이라 백업을 해놨습니다.

root@A20:/etc/apache2/sites-enabled# cp 000-default 000-default_bak 


Listen 8082
<VirtualHost *:8082>
AddDefaultCharset UTF-8
        DocumentRoot /www
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /www>
                Options Indexes FollowSymLinks MultiViews
                #AllowOverride None
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>

        LogLevel warn
        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

추가 하고!  

pure-ftp로 위치 지정하여 워드프레스 파일을 업로드 할준비를 합니다.

pure-pw로  권한 및 경로 지정과 pure-pw 관련 유저추가 및 경로 변경방법은 


 http://theurgistk.tistory.com/185

위 링크를 따라가서 보시면 됩니다.




root@A20:/etc/apache2/sites-enabled# pure-pw list

honam               /www 

경로가 제대로 되어 있는지 확인



워드프레스 사이트이동! 


http://ko.wordpress.org/ 


다운을 받아 앞축을 푼 후 ftp로 업로드 





그리고 인스톨하셔서 사용하시면됩니다!!


그리고 a20으로 접속하였을때는

 http://theurgistk.tistory.com/184

위의 파일을 마운트 한 페이지가 뜸니다.


 그런데 워드프레스는 약간 느린감이 있습니다.^-^;; 





반응형

'IT이야기 > linux' 카테고리의 다른 글

VNC Server 설치  (0) 2017.07.26
리눅스에서 svn 디렉토리를 모두 삭제하는 방법  (0) 2014.10.23
lxr 설치하기  (0) 2014.08.06
masboard에서 프로그램하기  (0) 2014.01.18
masboard에 ftpserver 설치  (0) 2014.01.01
masboard에서 윈도우 파일 마운트  (0) 2014.01.01
반응형







음 ftp server 라고하면 proftp 나 vsftp를 선호하는 분들이 많을꺼지만..

전 ..

pure-ftpd 를 설치 할라고 합니다. 


나를 포함한 일부의 사람들이, 대다수의 사람들이 사용하는 Proftpd 가 아닌, Pure-ftpd 를 사용하는 이유는 보안에 있어서 매우 강력함을 자랑하고, 자체적으로 한글에 대한 지원이 있으며, 쉘 상에서 접속한 사용자와 위치, 화일 전송에 대한 정보 등을 알 수 있기 때문이다 라고 설명되어 있습니다. 


apt-get install pure-ftpd로 설치를 진행~ 

############################################################

root@A20:/share# apt-get install pure-ftpd

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following extra packages will be installed:

  openbsd-inetd pure-ftpd-common

The following NEW packages will be installed:

  openbsd-inetd pure-ftpd pure-ftpd-common

0 upgraded, 3 newly installed, 0 to remove and 93 not upgraded.

Need to get 425 kB of archives.

After this operation, 942 kB of additional disk space will be used.

Do you want to continue [Y/n]? Y

Get:1 http://ftp.debian.org/debian/ wheezy/main openbsd-inetd armhf 0.20091229-2 [35.2 kB]

Get:2 http://ftp.debian.org/debian/ wheezy/main pure-ftpd-common all 1.0.36-1.1 [185 kB]

Get:3 http://ftp.debian.org/debian/ wheezy/main pure-ftpd armhf 1.0.36-1.1 [205 kB]

Fetched 425 kB in 5s (83.0 kB/s)

Preconfiguring packages ...

Selecting previously unselected package openbsd-inetd.

(Reading database ... 79152 files and directories currently installed.)

Unpacking openbsd-inetd (from .../openbsd-inetd_0.20091229-2_armhf.deb) ...

############################################################



설치 후 유저 생성 및 경로 설정


pure-pw useradd <login> [-f <passwd file>] -u <uid> [-g <gid>]

                -D/-d <home directory> [-c <gecos>]

                [-t <download bandwidth>] [-T <upload bandwidth>]

                [-n <max number of files>] [-N <max Mbytes>]

                [-q <upload ratio>] [-Q <download ratio>]

                [-r <allow client ip>/<mask>] [-R <deny client ip>/<mask>]

                [-i <allow local ip>/<mask>] [-I <deny local ip>/<mask>]

                [-y <max number of concurrent sessions>]

                [-z <hhmm>-<hhmm>] [-m]


pure-pw usermod <login> -f <passwd file> -u <uid> [-g <gid>]

                -D/-d <home directory> -[c <gecos>]

                [-t <download bandwidth>] [-T <upload bandwidth>]

                [-n <max number of files>] [-N <max Mbytes>]

                [-q <upload ratio>] [-Q <download ratio>]

                [-r <allow client ip>/<mask>] [-R <deny client ip>/<mask>]

                [-i <allow local ip>/<mask>] [-I <deny local ip>/<mask>]

                [-y <max number of concurrent sessions>]

                [-z <hhmm>-<hhmm>] [-m]

pure-pw userdel <login> [-f <passwd file>] [-m]

pure-pw passwd  <login> [-f <passwd file>] [-m]

pure-pw show    <login> [-f <passwd file>]

pure-pw mkdb    [<puredb database file> [-f <passwd file>]]

                [-F <puredb file>]

pure-pw list    [-f <passwd file>]


루트 권한으로 

pure-pw useradd test -u ftpuser -d /home/test  를 입력을하면 

암호를 입력 후 

pure-pw mkdb

입력을하면

 /etc/pure-ftpd  위치에  

pureftpd.passwd  pureftpd.pdb 

root@A20:/etc/pure-ftpd# cat pureftpd.passwd

test:$1$sMcHx1k0$n4SSzzSfogkztFcQHlyvW.:1000:114::/share::::::::::::


위의 내용이 생성이 된다. 

그러면  

/etc/pure-ftp/auth 로 이동을 하여 

심볼릭 링크 

$ ln -s ../conf/PureDB 50pure   

/etc/init.d/pure-ftpd restat 

하여 재시작하면 화면에 보여진다.














반응형
반응형



masboard에서 윈도우 파일 마운트 

win7 운영체제의 music 이란 파일을 접근할수 있도록 설정중..

mount -t cifs //192.168.0.2/music /mnt/samba/ -o username=theurgistk,password=password charset=euc-kr

음...마운트가 잘안되었다..

뭐가 문제지 ...         

구글검색하여 

apt-get install cifs-utils 

하고 

mount.cifs //192.168.0.2/music /mnt/samba/ -o username=theurgistk,password=password charset=euc-kr

로 변경하여 마운트 하니 잘되었다 .

참고 사이트 

http://www.vyatta.org/node/6677





apache2 디폴드로 선택되어 있는 경로를 설정하여 mount하였다. 

허접하지만 .꽤 쓸만해졌다!






반응형

+ Recent posts