<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>yeon_.log</title>
        <link>https://velog.io/</link>
        <description>👾</description>
        <lastBuildDate>Tue, 12 Mar 2024 08:17:07 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <image>
            <title>yeon_.log</title>
            <url>https://velog.velcdn.com/images/yeon_/profile/95dfccf7-7e57-4891-aa2c-7d08c093b06f/image.jpg</url>
            <link>https://velog.io/</link>
        </image>
        <copyright>Copyright (C) 2019. yeon_.log. All rights reserved.</copyright>
        <atom:link href="https://v2.velog.io/rss/yeon_" rel="self" type="application/rss+xml"/>
        <item>
            <title><![CDATA[RedMine 구축 (1)]]></title>
            <link>https://velog.io/@yeon_/RedMine-%EA%B5%AC%EC%B6%95-1</link>
            <guid>https://velog.io/@yeon_/RedMine-%EA%B5%AC%EC%B6%95-1</guid>
            <pubDate>Tue, 12 Mar 2024 08:17:07 GMT</pubDate>
            <description><![CDATA[<h4 id="잡설-intro">잡설 (intro)</h4>
<p>redmine 을 구축하는 법에 대해 서술하려고 한다.</p>
<p>현재 다니고 있는 회사에서 일감관리를 위해 Redmine 을 사용하고 있었다.
2016년에 최초 구축하여 업데이트하지 않아 엄청 오래되고, 플러그인도 몇개 없어 되게 원초적인...상태 그대로 쓰고 있다가,</p>
<p>프로젝트 및 일감관리 효율을 위해 다른 오픈소스를 찾거나 관리를 하자고 얘기가 나와서 레드마인에 대해 알아보고 있었다.</p>
<p>그런데 자료도 별로 없고.. 에러도 나고.. 
Hyper-V 도 없어 스냅샷 없이 VMware 맨땅에 구축하다보니 가상디스크만 몇번을 지웠다 올렸따 지웠다 올렸다..</p>
<p>추후에 다시 레드마인을 구축할 일이 있을 경우를 대비해 레드마인 구축과정을 기록하겠다.</p>
<p>아 참고로, 기존에는 Redmine 3.2.1 버전을 사용하고있었어서 버전을 동일하게 맞춘 뒤 이것저것 고도화(?) 를 시도해보려고 하였으나, ubuntu 버전 및 3rd party 버전을 Redmine 공식 가이드와 동일하게 맞추고 설치를 해도 매번 번번히 난해한 에러코드를 뱉으면서 apache2 및 passenger 실행 부터 실패하였다..</p>
<p>최신 버전으로 구축을 권장한다.
(다만 플러그인은 3.x.x,4.x.x 버전이 제일 호환되는 것이 많아보여서 4.x.x 버전대가 제일 알맞은 것 같기도 하다)</p>
<p>이 글을 쓰다가 귀찮고 힘들어서,,, hyper-v를 구성하고 왔다
(참고: <a href="https://velog.io/@yeon_/win-10-Home-%EC%97%90%EC%84%9C-Hyper-V-%EB%A1%9C-%EB%A6%AC%EB%88%85%EC%8A%A4-%EA%B5%AC%EC%84%B1%ED%95%98%EA%B8%B0">https://velog.io/@yeon_/win-10-Home-%EC%97%90%EC%84%9C-Hyper-V-%EB%A1%9C-%EB%A6%AC%EB%88%85%EC%8A%A4-%EA%B5%AC%EC%84%B1%ED%95%98%EA%B8%B0</a>)</p>
<p>하여튼간에, Redmine 구성에 대해서 한국 자료가 별로 없는 듯 하여 포스팅을 해본다.</p>
<p>본인은 완전 로컬머신으로 막 굴릴것이라서, root 권한을 남발할것이라..
root 권한 등에 주의하길 바란다.</p>
<h4 id="1-레드마인-설치">1. 레드마인 설치</h4>
<p>레드마인 설치 자체는 공식에 있는 가이드를 따라서 하면 간단하다.
이 글을 설치하는 동안, 5.1.2 버전이 새로 나와 나는 5.1.2 버전으로 구성하였다.
5.x.x 버전을 구성하려거든 해당 링크에서 버전명만 바꿔서 설치하면 된다.
다른 버전도 공식 가이드를 참고하면 된다.
*<a href="https://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_50x_on_Ubuntu_2004_with_Apache2">https://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_50x_on_Ubuntu_2004_with_Apache2</a></p>
<h4 id="2-레드마인-설치-시-에러">2. 레드마인 설치 시 에러</h4>
<p>내가 위의 공식 가이드를 따라 설치하다가 에러난 케이스에 대해 설명하겠다.
1.bundler install
번들러 설치할때 나는 매번 에러가 났다..
그럴때 마다 exit 하고 (root 가 아닌 사용자 권한)  gem update --system
 로 gem update 해준 후 다시 bundler install 진행해주면된다.</p>
<p> 만약 update 해도 안된다면, reboot 하고 install 해보면 된다.</p>
<pre><code>  //install 하면 에러 발생
 root@yeon-Virtual-Machine:/opt/redmine# bundle install


Unfortunately, an unexpected error occurred, and Bundler cannot continue.

First, try this link to see if there are any existing issue reports for this error:
https://github.com/rubygems/rubygems/search?q=undefined+class%2Fmodule+YAML++Syck++&amp;type=Issues

If there aren&#39;t any reports for this error yet, please fill in the new issue form located at https://github.com/rubygems/rubygems/issues/new?labels=Bundler&amp;template=bundler-related-issue.md, and copy and paste the report template above in there.

root@yeon-Virtual-Machine:/opt/redmine# gem update --system

//update 후 다시 install 시 정상 install 됨
root@yeon-Virtual-Machine:/opt/redmine# bundle install


Post-install message from rubyzip:
RubyZip 3.0 is coming!
**********************

The public API of some Rubyzip classes has been modernized to use named
parameters for optional arguments. Please check your usage of the
following classes:
  * `Zip::File`
  * `Zip::Entry`
  * `Zip::InputStream`
  * `Zip::OutputStream`

Please ensure that your Gemfiles and .gemspecs are suitably restrictive
to avoid an unexpected breakage when 3.0 is released (e.g. ~&gt; 2.3.0).
See https://github.com/rubyzip/rubyzip for details. The Changelog also
lists other enhancements and bugfixes that have been implemented since
version 2.3.0.
</code></pre><ol start="2">
<li>500 error
레드마인 구축이 정상적으로 다 끝났는데, 가끔씩 500 error 라던가 internal error 가 발생할때가 있다.
그럴때는 99.9% 권한 문제다. chmod 로 권한 부여를 해주면 된다.<pre><code>#전체 사용자에게 redmine-5.1.2 에 대해 모든 권한 부여
sudo chmod -R 777 /opt/redmine-5.1.2/
</code></pre></li>
</ol>
<p>##특정 사용자에게만 권한 부여하기 (redmine)</p>
<h1 id="그룹-생성">그룹 생성</h1>
<p>sudo groupadd redmineusers</p>
<h1 id="redmine-사용자를-그룹에-추가">redmine 사용자를 그룹에 추가</h1>
<p>sudo usermod -aG redmineusers redmine</p>
<h1 id="해당-디렉토리-및-하위-디렉토리에-대해-그룹에-대한-쓰기-권한-부여">해당 디렉토리 및 하위 디렉토리에 대해 그룹에 대한 쓰기 권한 부여</h1>
<p>sudo chgrp -R redmineusers /opt/redmine-5.1.2/
sudo chmod -R 770 /opt/redmine-5.1.2/</p>
<pre><code>
#### 3. 플러그인 설치
레드마인을 그냥 생짜로 쓰기엔 너무 아쉽다.
내가 설치한 플러그인들을 간단하게 남겨둘테니, 링크로 들어가서 참고하면 된다.

참고로 모든 플러그인은 설치 후, apache2를 재시작하여야 적용 된다.

플러그인을 정상 적용했는데 에러가 날 경우는 아래를 참고하여 플러그인 마이그레이션 및 클린업을 한 후 apache2를 재시작해보면된다. 그래도 안되면.. 권한 문제거나.. 플러그인 호환성 문제거나 .. 중 하나다</code></pre><h1 id="db-마이그레이션">DB 마이그레이션</h1>
<p>redmine $  bundle exec rake db:migrate RAILS_ENV=production</p>
<h1 id="플러그인-마이그레이션">플러그인 마이그레이션</h1>
<p>redmine $  bundle exec rake redmine:plugins:migrate RAILS_ENV=production</p>
<h1 id="클린업">클린업</h1>
<p>redmine $  bundle exec rake tmp:cache:clear tmp:sessions:clear RAILS_ENV=production</p>
<pre><code>1. 동적 일감 편집 툴 (편한 일감 수정 툴)
링크 - https://www.redmine.org/plugins/redmine_issue_dynamic_edit</code></pre><p>#레드마인 plugin 경로로 이동
cd /opt/redmine/plugins
git clone <a href="https://github.com/Ilogeek/redmine_issue_dynamic_edit.git">https://github.com/Ilogeek/redmine_issue_dynamic_edit.git</a></p>
<p>#apache2 재시작
systemctl restart apache2</p>
<pre><code>2. 태그 추가하기 및 생산성 툴
링크 -https://www.redmine.org/plugins/additional_tags</code></pre><p>#redmine 경로로 이동 (플러그인x)
cd $REDMINE_ROOT
#플러그인 설치 (additionals 와 additinal_tag 같이 설치)
git clone -b stable <a href="https://www.github.com/alphanodes/additionals.git">https://www.github.com/alphanodes/additionals.git</a> plugins/additionals
git clone -b stable <a href="https://www.github.com/alphanodes/additional_tags.git">https://www.github.com/alphanodes/additional_tags.git</a> plugins/additional_tags
bundle install
bundle exec rake redmine:plugins:migrate RAILS_ENV=production</p>
<pre><code>
3. 코드 리뷰
링크-https://www.redmine.org/plugins/redmine_code_review</code></pre><p>#레드마인 plugin 경로로 이동
cd /opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/haru/redmine_code_review.git">https://github.com/haru/redmine_code_review.git</a>
rake redmine:plugins:migrate RAILS_ENV=production</p>
<pre><code>
4. 듀 데이트 설정
링크-https://www.redmine.org/plugins/context-menu-due-date</code></pre><p>#레드마인 plugin 경로로 이동
cd /opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/ablidadev/context_menu_due_date">https://github.com/ablidadev/context_menu_due_date</a></p>
<pre><code>
5. 업무흐름 커스텀 플러그인
링크- https://www.redmine.org/plugins/redmine_custom_workflows</code></pre><p>#레드마인 plugin 경로로 이동
cd /opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/anteo/redmine_custom_workflows.git">https://github.com/anteo/redmine_custom_workflows.git</a>
#레드마인 경로로 이동 
cd ../
bundle install
RAILS_ENV=production bundle exec rake redmine:plugins:migrate NAME=redmine_custom_workflows</p>
<pre><code>
6. DMSF
링크- https://www.redmine.org/plugins/redmine_dmsf</code></pre><p>#레드마인 plugin 경로로 이동
cd /opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/danmunn/redmine_dmsf.git">https://github.com/danmunn/redmine_dmsf.git</a>
#레드마인 경로로 이동 
cd ../
bundle install
bundle config set --local without &#39;development test&#39;
bundle install
RAILS_ENV=production bundle exec rake redmine:plugins:migrate NAME=redmine_dmsf
chown -R www-data:www-data plugins/redmine_dmsf</p>
<pre><code>
7. 문서 숏컷
링크- https://www.redmine.org/plugins/redmine_documents_short</code></pre><p>#레드마인 plugin 경로로 이동
cd /opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/smoreau/redmine_documents_short.git">https://github.com/smoreau/redmine_documents_short.git</a></p>
<pre><code>
8.예상 시간 숨기기
링크- https://www.redmine.org/plugins/redmine_hide_estimated_hours</code></pre><p>#레드마인 plugin 경로로 이동
cd /opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/return1/redmine_hide_estimated_hours.git">https://github.com/return1/redmine_hide_estimated_hours.git</a></p>
<pre><code>
9. 이슈 to-do list
경로- https://www.redmine.org/plugins/redmine_issue_todo_lists2</code></pre><p>#레드마인 plugin 경로로 이동
cd /opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/jcatrysse/redmine_issue_todo_lists2.git">https://github.com/jcatrysse/redmine_issue_todo_lists2.git</a>
#레드마인 경로로 이동
cd ../
bundle exec rake redmine:plugins:migrate NAME=redmine_issue_todo_lists2 RAILS_ENV=production</p>
<pre><code>
10. logs
경로- https://www.redmine.org/plugins/redmine_logs</code></pre><p>#레드마인 plugin 경로로 이동
cd /opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/haru/redmine_logs.git">https://github.com/haru/redmine_logs.git</a></p>
<pre><code>
10. 큰 캘린더
경로- https://www.redmine.org/plugins/mega_calendar</code></pre><p>#레드마인 plugin 경로로 이동
cd /opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/berti92/mega_calendar.git">https://github.com/berti92/mega_calendar.git</a>
#권한 설정
chown -R www-data.www-data mega_calendar
#플러그인 폴더로 이동
cd /opt/redmine/plugins/mega_calendar
#gem install
bundle
#레드마인 경로로 이동 
cd ../../
#마이그레이션
bundle install
bundle exec rake redmine:plugins:migrate RAILS_ENV=production</p>
<pre><code>
11. MS 프로젝트 연결
경로- https://www.redmine.org/plugins/microsoft_project_connector
</code></pre><p>#레드마인  경로로 이동
cd /opt/redmine/
#플러그인 설치
git clone -b main <a href="https://github.com/conveniencable/microsoft_project_connector">https://github.com/conveniencable/microsoft_project_connector</a></p>
<pre><code>
12. 오버뷰 개선
경로- redmine.org/plugins/redmine_better_overview
</code></pre><p>#레드마인  경로로 이동
cd /opt/redmine/
#플러그인 설치
git clone <a href="https://github.com/maxrossello/redmine_better_overview.git">https://github.com/maxrossello/redmine_better_overview.git</a> plugins/redmine_better_overview
bundle install</p>
<pre><code>
13. 레드마인 대쉬보드
링크- https://www.redmine.org/plugins/redmine-dashboard</code></pre><p>#레드마인 plugin 경로로 이동
cd /opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/jgraichen/redmine_dashboard.git">https://github.com/jgraichen/redmine_dashboard.git</a>
#레드마인 경로로 이동 
cd ../
#마이그레이션
bundle install --without development test </p>
<pre><code>
14. 이슈 작성자 편집
링크- https://www.redmine.org/plugins/redmine_editauthor</code></pre><p>#레드마인 plugin 경로로 이동
cd /opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/nounderline/redmine_editauthor.git">https://github.com/nounderline/redmine_editauthor.git</a></p>
<pre><code>
15. 레드마인 엑셀 연결
링크- redmine.org/plugins/redmine_excel_connector
</code></pre><p>#레드마인  경로로 이동
cd /opt/redmine/
#플러그인 설치
git clone -b main <a href="https://github.com/conveniencable/redmine_excel_connector">https://github.com/conveniencable/redmine_excel_connector</a>
bundle exec rake redmine:plugins:migrate RAILS_ENV=production</p>
<pre><code>
16. 이슈 관람자 
링크- redmine.org/plugins/redmine_extended_watchers</code></pre><p>#레드마인 plugin 경로로 이동
cd /opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/maxrossello/redmine_extended_watchers.git">https://github.com/maxrossello/redmine_extended_watchers.git</a></p>
<pre><code>
17. 다중 로그인
링크- https://www.redmine.org/plugins/redmine_impersonate
</code></pre><p>#레드마인 plugin 경로로 이동
cd /opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/nounderline/redmine_impersonate.git">https://github.com/nounderline/redmine_impersonate.git</a></p>
<pre><code>
18. 레드마인 OAuth
링크- https://www.redmine.org/plugins/redmine_oauth</code></pre><p>#레드마인 plugin 경로로 이동
cd /opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/kontron/redmine_oauth.git">https://github.com/kontron/redmine_oauth.git</a>
chown -R www-data:www-data redmine_oauth
#레드마인 경로로 이동
cd ../
bundle install</p>
<pre><code>
19. 레드마인 테마
링크- https://www.redmine.org/plugins/redmine_pluggable_themes</code></pre><p>#레드마인  경로로 이동
cd /opt/redmine
#테마 설치
git clone <a href="https://github.com/maxrossello/redmine_pluggable_themes.git">https://github.com/maxrossello/redmine_pluggable_themes.git</a> plugins/redmine_pluggable_themes</p>
<pre><code>20. 위키 플러그인
링크- redmine.org/plugins/redmine_paste_as_wiki_tables</code></pre><p>#레드마인 plugin 경로로 이동
cd /opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/jcatrysse/redmine_paste_as_wiki_tables.git">https://github.com/jcatrysse/redmine_paste_as_wiki_tables.git</a>
bundle exec rake redmine:plugins:migrate NAME=redmine_paste_as_wiki_tables RAILS_ENV=production</p>
<pre><code>
21. 위키 프레젠테이션 변환
링크- https://www.redmine.org/plugins/redmine_reveal</code></pre><p>#레드마인 plugin 경로로 이동
cd /opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/mikitex70/redmine_reveal.git">https://github.com/mikitex70/redmine_reveal.git</a></p>
<pre><code>
22. 레드마인 숏컷
링크- redmine.org/plugins/redmine_shortcuts</code></pre><p>#레드마인 plugin 경로로 이동
cd /opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/davidegiacometti/redmine_shortcuts.git">https://github.com/davidegiacometti/redmine_shortcuts.git</a></p>
<pre><code>
23. 레드마인 센트리 클라이언트
링크-redmine.org/plugins/redmine_sentry_client</code></pre><p>#레드마인 plugin 경로로 이동
cd /opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/jop-software/redmine_sentry_client.git">https://github.com/jop-software/redmine_sentry_client.git</a>
#레드마인 경로로 이동
cd ../
#번들 설치
bundle install</p>
<pre><code>
24. 레드마인 sudo
링크- https://www.redmine.org/plugins/redmine_sudo_mode</code></pre><p>#레드마인 plugin 경로로 이동
cd /opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/jbbarth/redmine_sudo.git">https://github.com/jbbarth/redmine_sudo.git</a>
#레드마인 경로로 이동
cd ../
#번들 설치
rake redmine:plugins:migrate</p>
<pre><code>
25. 레드마인 기간 변경
링크- https://www.redmine.org/plugins/redmine_translation_terms</code></pre><p>#레드마인 경로로 이동
cd /opt/redmine
#플러그인 설치
git clone <a href="https://github.com/maxrossello/redmine_translation_terms.git">https://github.com/maxrossello/redmine_translation_terms.git</a> plugins/translation_terms</p>
<pre><code>
26. close date 추가

링크- https://www.redmine.org/plugins/redmine_closed_date</code></pre><p>#레드마인 plugin 경로로 이동
cd opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/fraoustin/redmine_closed_date.git">https://github.com/fraoustin/redmine_closed_date.git</a>
#레드마인 경로로 이동 
cd ../
#번들 설치
bundle exec rake deface:precompile RAILS_ENV=production
bundle exec rake deface:clean RAILS_ENV=production</p>
<pre><code>
27. redmine_admonition
링크- redmine.org/plugins/redmine_admonition</code></pre><p>#레드마인 plugin 경로로 이동
cd opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/fraoustin/redmine_admonition.git">https://github.com/fraoustin/redmine_admonition.git</a></p>
<pre><code>
28. 레드마인 워터마크
링크- https://www.redmine.org/plugins/redmine_watermark</code></pre><p>#레드마인 plugin 경로로 이동
cd opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/witcan/redmine_watermark.git">https://github.com/witcan/redmine_watermark.git</a></p>
<pre><code>
29. 일감 정보 제한
링크- https://www.redmine.org/plugins/redmine_view_issue_description</code></pre><p>#레드마인 plugin 경로로 이동
cd opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/redminetrustteam/redmine_view_issue_description.git">https://github.com/redminetrustteam/redmine_view_issue_description.git</a></p>
<pre><code>
30. redmine_indicator
링크- https://www.redmine.org/plugins/redmine_indicator</code></pre><p>#레드마인 plugin 경로로 이동
cd opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/fraoustin/redmine_indicator.git">https://github.com/fraoustin/redmine_indicator.git</a>
#레드마인 경로로 이동
cd ../
#마이그레이션
rake redmine:plugins:migrate NAME=redmine_indicator</p>
<pre><code>
31. 좋아요 기능
링크- https://www.redmine.org/plugins/redmine_hearts</code></pre><p>#레드마인 plugin 경로로 이동
cd opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/cat-in-136/redmine_hearts.git">https://github.com/cat-in-136/redmine_hearts.git</a>
#레드마인 경로로 이동
cd ../
#마이그레이션
rake redmine:plugins:migrate NAME=redmine_indicator</p>
<pre><code>
32. dafalut_due 지정
링크-https://www.redmine.org/plugins/redmine_default_due</code></pre><p>#레드마인 plugin 경로로 이동
cd opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/fraoustin/redmine_default_due.git">https://github.com/fraoustin/redmine_default_due.git</a>
#레드마인 경로로 이동
cd ../
#번들 실행
bundle exec rake deface:precompile RAILS_ENV=production
bundle exec rake deface:clean RAILS_ENV=production</p>
<pre><code>
33. 다크모드
링크-https://www.redmine.org/plugins/redmine_dark</code></pre><p>#레드마인 plugin 경로로 이동
cd opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/fraoustin/redmine_dark.git">https://github.com/fraoustin/redmine_dark.git</a></p>
<pre><code>
34.redmine_context_due
링크-https://www.redmine.org/plugins/redmine_context_due</code></pre><p>#레드마인 plugin 경로로 이동
cd opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/fraoustin/redmine_context_due.git">https://github.com/fraoustin/redmine_context_due.git</a></p>
<pre><code>
35. 메일 회신
링크- https://www.redmine.org/plugins/reply-to-author-email</code></pre><p>#레드마인 plugin 경로로 이동
cd opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/ablidadev/redmine_reply_to_author_email.git">https://github.com/ablidadev/redmine_reply_to_author_email.git</a></p>
<pre><code>
36. 레드와인</code></pre><p>#레드마인 plugin 경로로 이동
cd opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/maxrossello/redwine.git">https://github.com/maxrossello/redwine.git</a> plugins/redwine
bundle install</p>
<pre><code>
37. redmine_rtmaterial
링크- https://www.redmine.org/plugins/redmine_rtmaterial
</code></pre><p>#레드마인 plugin 경로로 이동
cd opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/fraoustin/redmine_rtmaterial.git">https://github.com/fraoustin/redmine_rtmaterial.git</a>
#레드마인 경로로 이동
cd ../
#번들 실행
rake redmine:plugins:migrate NAME=redmine_rtmaterial</p>
<pre><code>
38. 투표 기능
링크- https://www.redmine.org/plugins/redmine_scheduling_poll</code></pre><p>#레드마인 plugin 경로로 이동
cd opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/cat-in-136/redmine_scheduling_poll.git">https://github.com/cat-in-136/redmine_scheduling_poll.git</a>
#레드마인 경로로 이동
cd ../
#번들 실행
bundle exec rake redmine:plugins NAME=redmine_scheduling_poll RAILS_ENV=production</p>
<pre><code>
39. 테마 변경기능
링크-https://www.redmine.org/plugins/redmine_theme_changer</code></pre><p>#레드마인 plugin 경로로 이동
cd opt/redmine/plugins
#플러그인 설치
<a href="https://github.com/haru/redmine_theme_changer.git">https://github.com/haru/redmine_theme_changer.git</a>
#레드마인 경로로 이동
cd ../
#번들 실행
rake redmine:plugins:migrate RAILS_ENV=production</p>
<pre><code>
40.Time entities limit by estimation
경로- https://www.redmine.org/plugins/time_entries_limit_by_estimation</code></pre><p>#레드마인 plugin 경로로 이동
cd opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/DigitalWand/time_entries_limit_by_estimation.git">https://github.com/DigitalWand/time_entries_limit_by_estimation.git</a></p>
<pre><code>
41.  TW watchers
링크- https://www.redmine.org/plugins/tw_watchers</code></pre><p>#레드마인 plugin 경로로 이동
cd opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/terentev-mn/watchers.git">https://github.com/terentev-mn/watchers.git</a></p>
<pre><code>
42. 위키 확장
링크- https://www.redmine.org/plugins/redmine_wiki_extensions</code></pre><p>#레드마인 plugin 경로로 이동
cd opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/haru/redmine_wiki_extensions.git">https://github.com/haru/redmine_wiki_extensions.git</a>
#레드마인 경로로 이동
cd ../
#번들 실행
rake redmine:plugins:migrate RAILS_ENV=production</p>
<pre><code>
43. View Customize
링크-https://www.redmine.org/plugins/view_customize</code></pre><p>#레드마인 plugin 경로로 이동
cd opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/onozaty/redmine-view-customize.git">https://github.com/onozaty/redmine-view-customize.git</a> view_customize
#레드마인 경로로 이동
cd ../
#번들 실행
bundle install --without development test
bundle exec rake redmine:plugins:migrate RAILS_ENV=production</p>
<pre><code>
44. 위키 덤프
링크- https://www.redmine.org/plugins/wikidump</code></pre><p>#레드마인 plugin 경로로 이동
cd opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/znerol/redmine_wikidump.git">https://github.com/znerol/redmine_wikidump.git</a></p>
<pre><code>
45.workload
링크- https://www.redmine.org/plugins/redmine_workload</code></pre><p>#레드마인 plugin 경로로 이동
cd opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/xmera-circle/redmine_workload.git">https://github.com/xmera-circle/redmine_workload.git</a></p>
<pre><code>
46. Xapian search
링크- https://www.redmine.org/plugins/xapian_search</code></pre><p>#레드마인 plugin 경로로 이동
cd opt/redmine/plugins
#플러그인 설치
git clone <a href="https://github.com/xelkano/redmine_xapian.git">https://github.com/xelkano/redmine_xapian.git</a>
#레드마인 경로로 이동
cd ..
#번들 설치
bundle install
RAILS_ENV=production bundle exec rake db:migrate
RAILS_ENV=production bundle exec rake redmine:plugins:migrate NAME=redmine_xapian </p>
<pre><code>이 플러그인을 설치하다가 에러가 난다면, plugins/redmine_xapian/ 경로의 Gemfile 의 23번째 줄을 주석처리하면 된다.</code></pre>]]></description>
        </item>
        <item>
            <title><![CDATA[win 10 Home 에서 Hyper-V 로 우분투 리눅스(ubuntu linux) 구성하기 (with panic - not syncing: No working init found. 에러)]]></title>
            <link>https://velog.io/@yeon_/win-10-Home-%EC%97%90%EC%84%9C-Hyper-V-%EB%A1%9C-%EB%A6%AC%EB%88%85%EC%8A%A4-%EA%B5%AC%EC%84%B1%ED%95%98%EA%B8%B0</link>
            <guid>https://velog.io/@yeon_/win-10-Home-%EC%97%90%EC%84%9C-Hyper-V-%EB%A1%9C-%EB%A6%AC%EB%88%85%EC%8A%A4-%EA%B5%AC%EC%84%B1%ED%95%98%EA%B8%B0</guid>
            <pubDate>Fri, 08 Mar 2024 06:03:21 GMT</pubDate>
            <description><![CDATA[<p>회사에서 업무 PC로 win10 Home 을 사용하고 있어 주구장창 VMware 만 사용하다가,
서버 구성에 있어 스냅샷을 사용하지 못하니 너무 불편하여 자료를 찾아 win 10 Home 에서도 hyper-V를 사용할 수 있는 방법을 찾아냈다.</p>
<p>hyper-V 설치하는 방법과 Hyper-V에서 리눅스 구성하는 방법으로 설명하겠다.</p>
<h1 id="hyper-v-설치">Hyper-V 설치</h1>
<h4 id="1-hyper-vbat-파일-작성">1. Hyper-V.bat 파일 작성</h4>
<p>아래 내용으로 배치파일을 작성한다. (ex. Hyper-V.bat)
인코딩은 UTF-8 로 작성하였다.</p>
<pre><code>pushd &quot;%~dp0&quot;
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum &gt;hyper-v.txt
for /f %%i in (&#39;findstr /i . hyper-v.txt 2^&gt;nul&#39;) do dism /online /norestart /add-package:&quot;%SystemRoot%\servicing\Packages\%%i&quot;
del hyper-v.txt
Dism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALL
pause</code></pre><h4 id="2-batch-파일-실행">2. batch 파일 실행</h4>
<p>cmd 를 관리자 권한으로 실행하여서 배치 파일 경로로 이동 후start 파일명 으로 실행하거나,
윈도우 탐색기에서 배치 파일 경로까지 이동하여 관리자 권한으로 파일을 실행하면된다.</p>
<p>본인은 cmd 에서 여는것을 선호하는 편이다. (에러가 발생할 경우 보통 cmd 창이 바로 닫힐 때도 있어서..)</p>
<p>정상 실행 시 아래와 같이 뜬다. (본인은 설치에 약 2시간 걸렸음)</p>
<pre><code>D:\&gt; Hyper-V.bat
...
배포 이미지 서비스 및 관리 도구
버전: 10.0.19041.844

이미지 버전: 10.0.19044.1645

1 중 1을(를) 처리하는 중 - Microsoft-Hyper-V-ClientEdition-Package~31bf3856ad364e35~amd64~en-US~10.0.19041.928 패키지를 추가하는 중
[==========================100.0%==========================]
작업을 완료했습니다.

D:\Temp&gt;dism /online /norestart /add-package:&quot;C:\WINDOWS\servicing\Packages\Microsoft-Hyper-V-ClientEdition-Package~31bf3856ad364e35~amd64~ja-JP~10.0.19041.928.mum&quot;

배포 이미지 서비스 및 관리 도구
버전: 10.0.19041.844

이미지 버전: 10.0.19044.1645
...</code></pre><h4 id="3-확인">3. 확인</h4>
<p>제어판 &gt; 프로그램 및 기능 &gt; Windows 기능 켜기/끄기 확인</p>
<p>hyper-v 구성이 완료되었다.</p>
<h1 id="ubuntu-리눅스-구성">ubuntu 리눅스 구성</h1>
<p>*<em>나는 완전 로컬 머신용으로 돌릴것이라서, ssh 설정이나 방화벽, root 권한 등에 유의해서 작업바란다.
본인은 모든 설정/보안을 대부분 다 풀어놓고 작업하니, 회사 등 실제 서비스용 머신에서는 이렇게 하면 안된다.. *</em></p>
<h4 id="1-vm-구성">1. vm 구성</h4>
<p>hyper-V에서 새 가상 컴퓨터 마법사를 눌러 VM을 생성해준다.
다음을 눌러 Vm 이름을 지정해주고, 다음을 눌러 세대를 정해준다 (1세대로 하였음)
시작메모리를 기본(1024MB)로 지정하고 네트워크 구성을 Defalut switch 로 설정한 후 
vm 머신의 위치를 지정해주면 된다.
그리고 다음은 .iso 이미지를 삽입해주면 되는데, 우분투 리눅스 공홈에서 다운받은 .iso 이미지 파일을 지정해주면 된다.
(<a href="https://ubuntu.com/download/desktop/thank-you?version=22.04.4&amp;architecture=amd64">https://ubuntu.com/download/desktop/thank-you?version=22.04.4&amp;architecture=amd64</a>)</p>
<h4 id="2-에러">2. 에러</h4>
<p>새로 생긴 가상머신을 클릭하여, 부팅옵션 중 무엇을 클릭해도 아래와 같이 에러가 발생한다.
무슨 에러인지도 모르겠고 Vmware 에서는 정상적인 .iso 로 디스크 이미지를 삽입하였기 때문에 도통 무슨 에러인지 감이 잡히지 않았다.</p>
<p><img src="https://velog.velcdn.com/images/yeon_/post/abc2aa8f-1da8-4253-ab7b-dfce78412ab8/image.png" alt=""></p>
<p>결국 .iso 이미지를 다시 다운받았고 vm을 다시 구성하였으나 동일한 에러만 계속 발생하였다.</p>
<h4 id="3-에러-해결">3. 에러 해결</h4>
<p><em>panic - not syncing: No working init found.</em> 로 찾아보니.... 1번에서 지정한 시작메모리가 문제였다. ㅠㅠ
기본 1024MB 인 경우 디스크 이미지 쓰는데 문제가 생기는듯...
동적 메모리라 문제 없는 줄 알았는데.. 기본 메모리가 문제였다.
vm 머신을 종료하고, 시작메모리를 2048MB 로 수정하고 다시 시작한 후 try or  istall Ubuntu 로 부팅하면 잘 부팅이 된다!!</p>
<h4 id="4-리눅스-구성">4. 리눅스 구성</h4>
<p><img src="https://velog.velcdn.com/images/yeon_/post/9ecc5296-b3a2-464d-a240-c69e4ebc373b/image.png" alt="">
install Ubuntu 를 클릭하여 리눅스 구성을 시작해주면 된다.</p>
<p>쭉쭉 next 를 누르면서 구성하면 된다.</p>
<p>그리고 약 1시간 정도 기다려주면 리눅스 구성이 완료된다.</p>
<p>그리고 기다리고 있는데... 또 무한 까만화면...ㄱ-</p>
<p>혹시나 싶어 vm 종료 후 3048MB 로 늘려주고 다시 시작하니까 잘 된다..^^</p>
<h4 id="5-리눅스-tool-설치">5. 리눅스 tool 설치</h4>
<p>vm에서만 리눅스를 쓰기에는.. 이만저만 불편한게 많다.
그래서 vm에서 간단한 툴들만 설치하고, putty 에서 리눅스를 돌려줄거다.</p>
<pre><code>sudo su
#패스워드 입력
#apt 업데이트
apt-get update
#기본 툴 install
apt-get install net-tools
apt-get install vim
apt-get install openssh-server

#방화벽허용
ufw allow 22

#ssh 설정파일 수정
vi /etc/ssh/sshd_config
#/PermitRoot 로 검색하여 yes 로 변경 후 루트 로그인허용 (보안상 취약해짐)
#/PasswordA 로 검색하여 주석해제하여 비밀번호로 로그인 허용
#:wq 로 저장 후 닫기

#설정 값 저장 후 ssh 재시작
systemctl restart ssh
</code></pre><h4 id="6-putty-로-접속">6. putty 로 접속</h4>
<p>리눅스에서 ifconfig 로 ip 확인 후, putty 로 접속</p>
<p><img src="https://velog.velcdn.com/images/yeon_/post/efb626e8-438f-4633-8fb0-aacb88401885/image.png" alt="">
접속성공^^!</p>
<p>이제 putty 에서 편하게 리눅스 작업을 진행하면 된다.</p>
]]></description>
        </item>
        <item>
            <title><![CDATA[[mysql] repair 로 테이블 복구가 안될때]]></title>
            <link>https://velog.io/@yeon_/mysql-repair-%EB%A1%9C-%ED%85%8C%EC%9D%B4%EB%B8%94-%EB%B3%B5%EA%B5%AC%EA%B0%80-%EC%95%88%EB%90%A0%EB%95%8C</link>
            <guid>https://velog.io/@yeon_/mysql-repair-%EB%A1%9C-%ED%85%8C%EC%9D%B4%EB%B8%94-%EB%B3%B5%EA%B5%AC%EA%B0%80-%EC%95%88%EB%90%A0%EB%95%8C</guid>
            <pubDate>Wed, 15 Nov 2023 08:32:05 GMT</pubDate>
            <description><![CDATA[<blockquote>
<h1 id="-myisam-테이블-복구하는법">## myisam 테이블 복구하는법</h1>
</blockquote>
<ol>
<li>repair table 실행</li>
<li>repair table 로 복구되지 않을 시, myisamchk 로 복구 시도</li>
<li>테이블 데이터 확인 후 깨져있을 시 repair table 실행</li>
<li>check table 로 테이블 확인</li>
</ol>
<p>본래는 포스팅을 할 생각이 없었어서 캡쳐 등의 자료가 없다..</p>
<p>myisam 엔진형식인 테이블이 깨졌다.</p>
<p>repair table 을 실행하여도 테이블이 복구되지 않는다.
등에서 식은땀이 흘렀다.</p>
<p>repair 를 실행하면 ,anaylze 쿼리를 실행한것 처럼 테이블 상태를 체크만(?) 해주고 복구는 해주지 않는다..</p>
<p>심지어 하필이면 테이블의 엔진 형식이 INNO DB 가 아닌 Myisam 이었다.</p>
<p><img src="https://velog.velcdn.com/images/yeon_/post/391b9651-eefc-4627-bb77-9f37c49b310c/image.png" alt=""></p>
<p>처음에는 file#P# 형식이 파티션이 아닌, 테이블이 깨져서 데이터 파일도 깨진줄 알고 당황을 했다.</p>
<p>이것 저것 자료를 찾아보다, myisamchk 를 통하여 복구하는 방법을 찾아냈다.</p>
<p>myisamchk -r /경로  로 복구를 해주면 된다.
윈도우는 maria DB설치 경로의 bin 폴더에서 명령을 실행해줘야한다.
bin 폴더 하위에 myisamchk.exe가 있어서 실행이 필요해서 그런듯하다.</p>
<p>또한 경로를 쌍따옴표로 묶어서 처리하는 편이 편하다.
(나는 쌍따옴표없이 경로 입력하였을시 파일이 없다는 에러가 계속 발생하였다.. 아마도 # 때문인듯)</p>
<ol>
<li>리눅스 기준<pre><code>myisamchk -r /var/lib/mysql/db명/테이블명
</code></pre></li>
</ol>
<pre><code>
2. 윈도우 기준</code></pre><p>C:\MariaDB 5.5\bin&gt;myisamchk -r --safe-recover --force &quot;../data/test/file#P#basic_p.MYI&quot;</p>
<pre><code>
myisamchk 로 복구하는데는 약 반나절이 걸렸던 것 같다.
나의 경우에는, myisamchk 로 복구 후에도 여전히 테이블의 데이터들이 깨져있어서 repair table 까지 실행 한 후 정상적으로 테이블 복구에 성공했다.

repair는 거의 하루 꼬박 걸렸던 것 같다.
</code></pre>]]></description>
        </item>
    </channel>
</rss>