프로그램 사용/wiki2011. 5. 21. 16:30
현재 사용하는 위키 버전은 좀 구형인데 1.15.x 대 이다.
아무튼 해당 확장기능을 다운로드 받으려면 mediawiki의 버전이 필요한데
1.15.x 대용 ConfirmAccount 확장기능의 소스에 문제가 있는지 db를 찾지 못하는 문제가 발생한다.

웹 페이지에 접속을 하면 아래와 같은 에러가 발생을 하는데
1146: Table 'wikidb.mw_account_requests' doesn't exist (localhost) 

디비를 확인해보면
$ mysql -uroot -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 8288
Server version: 5.1.41-3ubuntu12.10 (Ubuntu)

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| bugtracker         |
| intranet           |
| mysql              |
| phpmyadmin         |
| vtigercrm520       |
| wikidb             |
+--------------------+
7 rows in set (0.00 sec)

mysql> use wikidb;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> show tables;
+----------------------+
| Tables_in_wikidb     |
+----------------------+
| account_credentials  |
| account_requests     |
| mw_archive           |
| mw_category          |
| mw_categorylinks     |
| mw_change_tag        |
| mw_externallinks     |
| mw_filearchive       |
| mw_hitcounter        |
| mw_image             |
| mw_imagelinks        |
| mw_interwiki         |
| mw_ipblocks          |
| mw_job               |
| mw_langlinks         |
| mw_logging           |
| mw_math              |
| mw_objectcache       |
| mw_oldimage          |
| mw_page              |
| mw_page_props        |
| mw_page_restrictions |
| mw_pagelinks         |
| mw_protected_titles  |
| mw_querycache        |
| mw_querycache_info   |
| mw_querycachetwo     |
| mw_recentchanges     |
| mw_redirect          |
| mw_revision          |
| mw_searchindex       |
| mw_site_stats        |
| mw_tag_summary       |
| mw_templatelinks     |
| mw_text              |
| mw_trackbacks        |
| mw_transcache        |
| mw_updatelog         |
| mw_user              |
| mw_user_groups       |
| mw_user_newtalk      |
| mw_valid_tag         |
| mw_watchlist         |
+----------------------+
43 rows in set (0.00 sec)

mysql> rename table account_requests to mw_account_requests;
Query OK, 0 rows affected (0.01 sec)

mysql> rename table account_credentials to mw_account_credentials;
Query OK, 0 rows affected (0.00 sec)

mysql> exit;
Bye 
mw_ 접두가 붙지 않고 그냥 테이블이 생성되어 있다.


아무튼 해당 추가기능은 다음과 같이 추가하고 손을 봐주면 된다.
$ sudo wget http://upload.wikimedia.org/ext-dist/ConfirmAccount-MW1.15-r86790.tar.gz
$sudo tar -xzf ConfirmAccount-MW1.15-r86790.tar.gz -C /var/www/mediawiki/extensions
$cd /var/www/mediawiki
$vi LocalSettings.php
require_once("$IP/extensions/ConfirmAccount/SpecialConfirmAccount.php");
$ mysql -h DB_HOST  -u WIKIUSER -p  WIKIDB  <  ConfirmAccount.sql
$ mysql -h localhost -uroot -p
mysql> use wikidb;
mysql> rename table account_requests to mw_account_requests;
mysql> rename table account_credentials to mw_account_credentials;

추가가 완료되면 다음과 같은 페이지가 특수 페이지 목록에 추가됨




[링크 : http://www.mediawiki.org/wiki/Extension:ConfirmAccount]
    [링크 : http://www.mediawiki.org/wiki/Extension_talk:ConfirmAccount]
Posted by 구차니
Posted by 구차니
프로그램 사용/saned2011. 5. 11. 17:33

'프로그램 사용 > saned' 카테고리의 다른 글

saned 서버 설정하기  (0) 2011.05.07
부팅시에 saned 구동하도록 설정하기  (0) 2011.03.17
sanetwain + windows 사용하기  (0) 2011.03.16
scx4623 sane  (0) 2011.03.15
SANE, TWAIN, REMOTESCAN  (0) 2011.03.04
Posted by 구차니
프로그램 사용/CUPS2011. 5. 11. 17:06
/etc/samba/smb.conf 에서
use client driver = yes  
가 설정되어 있는지 확인하라고 한다. 

[링크 : http://www.linuxquestions.org/.../samba-client-access-denied-unable-to-connect-122851/

추가적으로 CUPS를 사용하고 있는데, 되는넘과 안되는 넘은 아래의 차이가 있었다.
# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
   load printers = yes

[printers]
        comment = All Printers
        browseable = no
        path = /var/spool/samba
        printable = yes
;       guest ok = no
;       read only = yes
        create mask = 0700
        use client driver = Yes
        printing = cups
        printcap = cups 


아무튼 해결된 듯 -_-
Posted by 구차니
relocate는 서버의 주소가 변경되었을 때 사용하는 명령어이고
switch는 서버내의 다른 브랜치나 태그로 변경할 때 사용하는 명령어이다.
만약에 두가지 모두 변경이 되면 대책이 없는듯?

서버 이전시에도 경로를 일단 유지하고
그 이후에 디렉토리 구조를 변경해야지 무난하게 사람들의 이전을 시킬수 있을듯 하다.
그게 아니라면, 미리 다 서버에 올리고 한번에 옮기는 수 밖에 -_-



SVN 도움말 중 다음 항목 참고 
4.19.2. To Checkout or to Switch... 
4.27. Relocating a working copy



Posted by 구차니
만약에 2개의 장소에서 독립적인 지역 저장소(local repositories)를
하나의 중앙 서버에서 합쳐서 서비스를 하려고 한다는 상황에 적절한 내용

--- 2011.05.11 추가
병합된 내용을 보니 날짜 / 시간별로 revision이 맞물려 들어간다.
---

# svnadmin load --help
load: 사용법: svnadmin load REPOS_PATH

stdin 으로 'dumpfile' 형식의 스트림을 읽어들여, 새로운 리비젼을
저장소의 파일시스템으로 커밋합니다. 이전에 저장소가
비어있었다면, 기본적으로 그것의 UUID 가 스트림에 지정된
한가지로 변경될것입니다. 진행 피드백은 stdout 으로 전송됩니다.

옵션:
  -q [--quiet]             : stderr 에 대한 진행사항이 (오류에 한해서) 없습니다
  --ignore-uuid            : 스트림에 어떤 repos UUID가 발견되어도 무시합니다
  --force-uuid             : 만약 있다면, repos UUID 를 스트림에서 발견된 것에 설정합니다,
  --use-pre-commit-hook    : 리비전을 새로이 커밋하기 전 post-commit 훅을 호출합니다.
  --use-post-commit-hook   : 리비전을 새로이 커밋한 뒤 post-commit 훅을 호출합니다.
  --parent-dir ARG         : 저장소의 지정된 디렉토리에 로드합니다

# svnadmin dump --help
dump: 사용법: svnadmin dump REPOS_PATH [-r LOWER[:UPPER] [--incremental]]

파일 시스템의 내용을 stdout으로 포터블한 형식의 'dumpfile'로 출력하며,
stderr로 피드백을 보냅니다. 리비젼 LOWER부터 UPPER까지 출력합니다.
주어진 리비젼이 없다면, 모든 리비젼 트리를 적재합니다. LOWER만 주어졌다면,
LOWER 값에 해당하는 리비전만 출력합니다.
--incremental 옵션을 사용한다면, 출력되는 첫번째 리비전에는 해당
리비전에서 바뀐 경로에 대한 것만 기술될 것이며, 그렇지 않은 경우에는
해당 리비전에 존재하는 모든 경로가 출력됩니다.
(이 옵션의 사용여부에 상관없이 출력되는 두번째 이후의 리비전에는 해당
리비전에 바뀐 내용이 있다면, 그 경로의 내용만 출력됩니다)

옵션:
  -r [--revision] ARG      : 리비젼 넘버 ARG ( 또는 X:Y 범위 )를 지정합니다
  --incremental            : incremental 적재를 합니다.
  --deltas                 : 적재된 결과물에 deltas를 사용합니다
  -q [--quiet]             : stderr 에 대한 진행사항이 (오류에 한해서) 없습니다

$ svnadmin dump repo1 > a1.d
$ svnadmin dump repo2 > a2.d
$ svnadmin create new
$ svn mkdir file:///.../new a1
$ svnadmin load new --parent-dir a1 < a1.d
$ svn mkdir file:///.../new a2
$ svnadmin load new --parent-dir a2 < a2.d 

[링크 : http://spyced.blogspot.com/2007/09/merging-two-subversion-repositories.html] 

간단하게 요약하자면
repo1 의 내용을 a1.d 에 
repo2 의 내용을 a2.d 에 파일로 저장하고

new라는 새로운 저장소를 만들어
그 안에 repo1은 a1 이라는 상위 디렉토리를 넣어주고
repo2는 a2 라는 상위 디렉토리를 넣어준다.

만약, 특별한 상위 디렉토리 없이 전부를 넣어주고 싶다면
--parent-dir /
이라고 해주면 목적지 저장소의 / 에 전부 넣어지게 된다.
(실험해보진 않았지만 parent는 저장소의 지정된 디렉토리 이므로,
엄밀하게는 미리 디렉토리를 생성해주고 그 안으로 넣어도록 지정이 가능할 것으로 보인다.)

[링크 : http://geekswithblogs.net/kariemali/archive/2009/06/02/how-to-merge-two-svn-repositories.aspx]
[링크 : http://stackoverflow.com/questions/267256/combining-multiple-svn-repositories-into-one]
Posted by 구차니
프로그램 사용/saned2011. 5. 7. 14:27
초기 설정에는 전부 주석이 되어있을뿐 어떠한 내용도 들어있지 않다.
그런 이유로 sane을 사용하려면 아래의 두줄을 설정해야 한다.

# saned.conf
# Configuration for the saned daemon

## Daemon options
# Port range for the data connection. Choose a range inside [1024 - 65535].
# Avoid specifying too large a range, for performance reasons.
#
# ONLY use this if your saned server is sitting behind a firewall. If your
# firewall is a Linux machine, we strongly recommend using the
# Netfilter nf_conntrack_sane connection tracking module instead.
#
#data_portrange = 10000 - 10100
data_portrange = 6656

## Access list
# A list of host names, IP addresses or IP subnets (CIDR notation) that
# are permitted to use local SANE devices. IPv6 addresses must be enclosed
# in brackets, and should always be specified in their compressed form.
#
# The hostname matching is not case-sensitive.

#scan-client.somedomain.firm
#192.168.0.1
#192.168.0.1/29
#[2001:7a8:185e::42:12]
#[2001:7a8:185e::42:12]/64
192.168.10.10/24

# NOTE: /etc/inetd.conf (or /etc/xinetd.conf) and
# /etc/services must also be properly configured to start
# the saned daemon as documented in saned(8), services(4)
# and inetd.conf(4) (or xinetd.conf(5)).

그리고 나서  sane을 구동하려면
/etc/default/saned 에서 RUN=no를 TUN=yes로 바꾸어 준다.
# Defaults for the saned initscript, from sane-utils

# Set to yes to start saned
RUN=yes

# Set to the user saned should run as
RUN_AS_USER=saned 
위의 설정은 부팅시 자동시작뿐만 아니라 수동으로 시작을 할지 안할지를 설정하는 부분이다.

 

'프로그램 사용 > saned' 카테고리의 다른 글

[조사중] epson TX213 스캐너 사용하기  (0) 2011.05.11
부팅시에 saned 구동하도록 설정하기  (0) 2011.03.17
sanetwain + windows 사용하기  (0) 2011.03.16
scx4623 sane  (0) 2011.03.15
SANE, TWAIN, REMOTESCAN  (0) 2011.03.04
Posted by 구차니
우분투 기준으로
/etc/samba/smb.conf 에 보면 프린터 항목이 다음과 같이 기술되어 있다.

[printers]
        comment = All Printers
        browseable = no
        path = /var/spool/samba
        printable = yes
;       guest ok = no
;       read only = yes
        create mask = 0700

# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
        comment = Printer Drivers
        path = /var/lib/samba/printers
;       browseable = yes
;       read only = yes
;       guest ok = no
# Uncomment to allow remote administration of Windows print drivers.
# You may need to replace 'lpadmin' with the name of the group your
# admin users are members of.
# Please note that you also need to set appropriate Unix permissions
# to the drivers directory for these users to have write rights in it
;   write list = root, @lpadmin 

위의 경로에는 다음과 같은 디렉토리 들이 존재하는데. 전부 비어있다.
$ cd /var/lib/samba/printers/
$ ll
drwxr-xr-x 11 root root  4096 2011-05-06 17:35 ./
drwxr-xr-x  5 root root  4096 2010-10-28 14:39 ../
drwxr-xr-x  2 root root  4096 2010-09-10 03:33 COLOR/
drwxr-xr-x  2 root root  4096 2010-09-10 03:33 IA64/
drwxr-xr-x  2 root root  4096 2010-09-10 03:33 W32ALPHA/
drwxr-xr-x  2 root root  4096 2010-09-10 03:33 W32MIPS/
drwxr-xr-x  2 root root  4096 2010-09-10 03:33 W32PPC/
drwxr-xr-x  2 root root  4096 2011-05-06 17:35 W32X86/
drwxr-xr-x  2 root root  4096 2010-09-10 03:33 WIN40/
drwxr-xr-x  2 root root  4096 2010-09-10 03:33 x64/ 

도대체 어디에 어떻게 넣으란거야 -_-

[링크 : http://www.linuxtopia.org/.../samba_reference_guide/29_CUPS-printing_105.html]
 [링크 : http://www.enterprisenetworkingplanet.com/.../Push-Windows-Printer-Drivers-with-CUPS.htm]
[링크 : http://www.cups.org/documentation.php/man-cupsaddsmb.html]
[링크 : https://wiki.samba.org/index.php/Samba_as_a_print_server]

21.5.1 Point'n'Print Client Drivers on Samba Servers
[링크 : http://www.scribd.com/doc/49933038/246/Point'n'Print-Client-Drivers-on-Samba-Servers] << 플래시 pdf
[링크 : http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/classicalprinting.html] << text 

---
$ rpcclient -U'Danka%xxxx' -c 'getdriver "Heidelberg Digimaster 9110 (PS)" 3' TURBO_XP
                로그인용아이디         드라이버정보 "공유 프린터 이름" 출력레벨        컴퓨터이름

\\PC_NAME\COLOR_PRINTER 라는 경로가 존재한다면
$ rpcclient -N -c 'getdriver "COLOR_PRINTER" 3' PC_NAME
이라고 입력을 하면된다. (물론 RPC를 통해 얻으므로 윈도우 시스템에 query를 해서 드라이버를 추출한다)
 

--- 2011.05.07 추가

문서를 보고 따라하는데 무언가 빼먹은게 있는듯 -_-
일단 smbclient를 이용해서 복사를 했지만 등록을 하지 않아서 안되는 것으로 보인다.
\\TURBO_XP\Heidelberg Digimaster 9110 (PS) 의 드라이버 정보를 보고
rpcclient -U'Danka%xxxx' -c 'getdriver "Heidelberg Digimaster 9110 (PS)" 3' TURBO_XP

\\TURBO_XP\print$ 에 공유된 드라이버 파일중 일부를 복사한다.
smbclient //TURBO_XP/print\$ -U'Danka%xxxx' -c 'cd W32X86/2;mget HD*_de.* hd*ppd Hd*_de.* Hddm*dll HDN*Aux.DLL'

\\SAMBA-CUPS\print$ 에 복사한 드라이버 파일을 넣어주고
smbclient //SAMBA-CUPS/print\$ -U'root%xxxx' -c \
'cd W32X86; put HDNIS01_de.DLL; \
put Hddm91c1_de.ppd; put HDNIS01U_de.DLL;        \
put HDNIS01U_de.HLP; put Hddm91c1_de.DLL;        \
put Hddm91c1_de.INI; put Hddm91c1KMMin.DLL;      \
put Hddm91c1_de.dat; put Hddm91c1_de.dat;        \
put Hddm91c1_de.def; put Hddm91c1_de.hre;        \
put Hddm91c1_de.vnd; put Hddm91c1_de.hlp;        \
put Hddm91c1_de_reg.HLP; put HDNIS01Aux.dll;     \
put HDNIS01_de.NTF'

\\SAMBA-CUPS\print$ 에 파일이 들어갔는지 확인하고
smbclient //SAMBA-CUPS/print\$ -U 'root%xxxx' -c 'cd W32X86; pwd; dir; cd 2; pwd; dir'

\\SAMBA-CUPS\print$ 에 드라이버를 추가(등록)한다.
rpcclient -Uroot%xxxx -c 'adddriver "Windows NT x86" \
  "dm9110:HDNIS01_de.DLL: \
  Hddm91c1_de.ppd:HDNIS01U_de.DLL:HDNIS01U_de.HLP:   \
  NULL:RAW:Hddm91c1_de.DLL,Hddm91c1_de.INI,          \
  Hddm91c1_de.dat,Hddm91c1_de.def,Hddm91c1_de.hre,   \
  Hddm91c1_de.vnd,Hddm91c1_de.hlp,Hddm91c1KMMin.DLL, \
  HDNIS01Aux.dll,HDNIS01_de.NTF,                     \
  Hddm91c1_de_reg.HLP' SAMBA-CUPS

\\SAMBA-CUPS\print$ 에 제대로 들어갔는지 확인하고
smbclient //SAMBA-CUPS/print\$ -Uroot%xxxx' -c 'cd W32X86;dir;pwd;cd 2;dir;pwd' 

유닉스에서 확인하고
rpcclient -U'root%xxxx' -c 'enumdrivers' SAMBA-CUPS

윈도우에서 다시 한번 더 확인한다.
rundll32 printui.dll,PrintUIEntry /s /t2 /n\\SAMBA-CUPS 

'프로그램 사용 > SMB(Samba)' 카테고리의 다른 글

samba에 갑작스러운 "엑세스 거부"  (0) 2011.11.23
삼바를 SSH통해 공유하기  (0) 2011.08.23
samba on Ubuntu 10.04 LTS  (0) 2010.11.11
cifsd  (0) 2010.03.18
삼바 3.0.x 에서 3.4.0 으로 사용자 이전하기  (0) 2010.02.05
Posted by 구차니
guest 유저는 기본 내장입니다~ 두둥! 이런 센스?

ajaxplorer-3.0.1/server/conf/conf.php
 39 define("ENABLE_USERS", 1);
 40 define("ADMIN_PASSWORD", "admin");
 41 define("ALLOW_GUEST_BROWSING", 0); 
 

3.0.1 버전 기준으로 conf.php에 보면 ALLOW_GUEST_BROWSING 이 녀석이 기본으로 0(=FALSE)가 되어있다.
1(=TRUE)로 바꾸어 주면 guest 계정이 생성된다.

물론 apache를 재기동할 필요는 없다. 
Posted by 구차니
아마쳐(armature)는 일반적으로 캐릭터 애니메이션에서 사용하는 도구이다.
[링크 : http://en.wikipedia.org/wiki/Armature_(computer_animation)]


아직 제대로 쓸줄은 모르지만 일단 메뉴 위치부터 파악...

2.49a 버전


2.57 버전


2.57 부터는 상위 메뉴에서 선택을 하도록 되어서 불편하지만
그래도 아이콘으로 되어있으니 눈에 쏙쏙 잘들어 오는듯 

'프로그램 사용 > Blender' 카테고리의 다른 글

blender 2.5용 Stereoscopic plugin  (0) 2011.09.07
Blender 2.5x 계열 UI 정리  (0) 2011.09.06
blender 에서 수치로 개체 조작하기  (0) 2011.04.30
Blender 2.57 released!  (2) 2011.04.20
Blender - 시점 변경하기  (7) 2011.04.17
Posted by 구차니