‘같은’이라고 쓰면 ‘가ㅌ은’ 이라고 뜨는데
‘Droid Sans Mono’, ‘monospace’, monospace, ‘Droid Sans Fallback’
뒤에 이것만 지워주면 된다, ‘Droid Sans Fallback’
‘같은’이라고 쓰면 ‘가ㅌ은’ 이라고 뜨는데
‘Droid Sans Mono’, ‘monospace’, monospace, ‘Droid Sans Fallback’
뒤에 이것만 지워주면 된다, ‘Droid Sans Fallback’
mvn test 실행시 ..라기보단 메이븐 빌드 자체가 안되는데
1 |
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project sb-tools-core: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: The forked VM terminated without saying properly goodbye. VM crash or System.exit called ? -> [Help 1]<br>[ERROR] <br>[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.<br>[ERROR] Re-run Maven using the -X switch to enable full debug logging.<br>[ERROR] <br>[ERROR] For more information about the errors and possible solutions, please read the following articles:<br>[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException<br>[ERROR] <br>[ERROR] After correcting the problems, you can resume the build with the command<br>[ERROR] mvn -rf :sb-tools-core |
모름
영문을 모르겠네.. 의존성 문제 아닌 것 같은게 노트북에서는 잘되니까
둘다 ubuntu 18.04, openjdk1.8, sdkman 이용 환경설치
노트북은 i5 8th. ram 8G sdd512 ubuntu 18.04 lenovo ideapad 320s
문제의 테스크탑은 amd ryzen 2700x? ram 32g 128ssd ubuntu 18.04
하드웨어 사양을 왜 썼냐면… 멀티코어 때문에 생기는 문제가 아닌가 싶어서
못함
다 깨지는건 아니고 일부..
TODO라던가 팝업플래그의 한글이 다 네모네모로 깨진다.
폰트문제일 것 같아서 찾아보고 설치.
sudo apt install fonts-nanum
sudo fc-cache -fv
리부팅
두가지 툴을 보통 사용
이었는데… fdisk에서 gpt가 지원이 되는 듯 한데..
원래 됐다 / 지금도 안된다 / 버전업되서 추가됐다
3가지중 뭘까
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
$ fdisk -v fdisk from util-linux 2.33.1 $ sudo fdisk -l 여기서 새로 설치한 디스크를 잘~ 확인 $ fdisk /dev/sdb Welcome to fdisk (util-linux 2.33.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): m Help: GPT M enter protective/hybrid MBR Generic d delete a partition F list free unpartitioned space l list known partition types n add a new partition p print the partition table t change a partition type v verify the partition table i print information about a partition Misc m print this menu x extra functionality (experts only) Script I load disk layout from sfdisk script file O dump disk layout to sfdisk script file Save & Exit w write table to disk and exit q quit without saving changes Create a new label g create a new empty GPT partition table G create a new empty SGI (IRIX) partition table o create a new empty DOS partition table s create a new empty Sun partition table (??) m -- 위에 나온거 다시볼 수 있다 (??) d -- 파티션 다 지우기 (??) g -- GTP로.. (??) n -- 파티션 생성 (??) i -- 파티션 정보보기 (??) p -- 파티션 테이블 정보보기 |
1 2 3 4 5 6 7 8 9 10 11 |
https://blog.hqcodeshop.fi/archives/273-GNU-Parted-Solving-the-dreaded-The-resulting-partition-is-not-properly-aligned-for-best-performance.html $ sudo parted /dev/sdb ~~~ parted는 기본으로 안 깔려있으니 설치 $ sudo apt install parted (parted) mktable gpt (parted) mkpart ext4 0% 100% |
1 2 3 4 5 6 |
http://mhugt.tistory.com/47 http://noota.tistory.com/entry/%EC%9E%90%EB%8F%99-%EB%A7%88%EC%9A%B4%ED%8A%B8-%EB%B6%80%ED%8C%85-%EC%8B%9C-%EC%9B%90%ED%95%98%EB%8A%94-%ED%95%98%EB%93%9C%EB%94%94%EC%8A%A4%ED%81%AC-%EC%9E%90%EB%8F%99%EC%9C%BC%EB%A1%9C-%EB%A7%88%EC%9A%B4%ED%8A%B8-%EB%90%98%EB%8F%84%EB%A1%9D-%EC%B2%98%EB%A6%AC%ED%95%98%EA%B8%B0 $ sudo mkfs.ext4 /dev/sdb1 $ mkdir tmpdir $ sudo mount /dev/sdb1 /tmpdir |
uuid 확인
1 |
$ sudo blkid |
1 2 3 4 5 |
$ ll /etc/disk/by-uuid $ nano /etc/fstab 맨뒷줄에 추가 UUID=xxxxxxxxxxxxxxxxxxxxxxuuidxxxxx /tmpdir ext4 defaults 0 0 |
tmpdir을 원하는 경로로 변경
마운트 테스트
1 |
$ sudo mount -fav |
https://askubuntu.com/questions/144235/locale-variables-have-no-effect-in-remote-shell-perl-warning-setting-locale-f/144448#144448
이렇게 표시되는 경우..
1 2 3 4 5 |
archmagece@scripton-base:~$ ls ''$'\354\225\210\353\205\225' ''$'\355\214\214\354\235\274' archmagece@scripton-base:~$ ls 안녕 파일 |
이 부분을 주석처리 해준다.
1 2 |
/etc/ssh/ssh_config # SendEnv LANG LC_* |
클라이언트 접속시에 로컬의 언어설정을 가져가는건데
간혹 문제가 생길수도 있다.
그런데 요즘은 대부분 관리하는 서버 설정이 unicode일테니까
증상:
https://github.com/Guake/guake/issues/551
exit로 닫으려고 하면 멈춘다.
강제종료 해야 닫힘
원인:
몰라. 버그
해결:
1 2 3 4 5 6 7 8 |
/usr/lib/python3/dist-packages/guake/guake_app.py goto 1402 딱 가면 이게 보이는데 self.delete_tab(self.notebook.page_num(widget), kill=False, prompt=False) 인덴트 1개 제거.if 범위 바깥으로. |
Structure needs cleaning
rsync는 그냥 복사하는것보다 저수준의 복사법을 쓰는건가
아니면 예외처리가 안되서 그런가
rsync실행중에 중단시켜서 그런건지 오류가 난다.
검색 해 보니까 백업 해 놓고 디스크 날릴 각오하고 고쳐야한다고…
그렇다고 하면 그래야지지
우분투 로그인하니까 you’ve got mail..
또 무슨 오류가?
cat /var/mail/root
1 2 3 4 5 |
........ ........ .......... run-parts: failed to exec /etc/cron.hourly/readweb: Exec format error run-parts: /etc/cron.hourly/readweb exited with return code 1 |
써있는대로… 실행이 안되서 오류가 났다고 하는건데
readweb 스크립트는 curl을 이용해서 특정 웹페이지를 저장하는 역할을 한다
검색을 해 보니
http://askubuntu.com/questions/264607/bash-script-not-executing-from-crontab
원인은 cron에는 path를 잡아주지 않기 때문에 실행명령어를 full path로 적어주거나 path를 따로 잡아줘야함
해결책 :
/usr/bin/curl 처럼 full path로 쓰거나
PATH=/usr/bin
를 잡아줘야하는데…
그냥 명령어를 full path로 명시하는게 낫지 않을까
sudo apt 16에서는 apt가 새로 추가됐다.apt-get은 레거시 지원은 되는것같은데 새로운게 더 좋아보이니 이걸로
먼저 기본적인 부분을 설치한다
(http://memo.polypia.net/archives/573)
DB mysql
1 |
sudo apt install mysql-common mysql-server mysql-client |
라이브러리 libmysqlclient-dev (예전인 mysql-client-dev 였던것같은데)
ruby 관련 설치
예전엔 전역설치가 됐는데 요즘은 보안상이유로 이를 권장하지 않고 지원도 잘 안해주니 루비를 실행시킬 사용자를 생성한다
sudo adduser redmine
sudo su – redmine
rvm.io 가서보면 설치방법이 간단하게 나온다.
1 2 3 |
Install RVM: $ gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 $ \curl -sSL https://get.rvm.io | bash -s stable |
위 실행이 끝나고 나면 source ~~경로 처리해주라고 나온다.
path를 다시 잡아주는 과정인데
잘 찾아보면 있는데 모르겠으면 재부팅
rvm version
안해도되지만 현재 rvm버전이 뭔지 확인 해 보고 .. 잘 설치됐나 확인하는 절차이기도 하니
특정 루비 버전을 지정해주기도 하는데 그냥 설치하는게 편하니
rvm install ruby
버전을 지정할 때는 ‘rvm install 2.x.x’ 처럼 입력하면 된다.
버전을 여러개 설치할 경우에는 ‘rvm use 1.9.3 –default’ 명령으로 버전을 변경 가능하다.
gem install rails
gem install bundler
이제 레드마인 다운로드
www.redmine.org
다운로드 해도 되지만 svn으로 받으면 편하니까
1 2 3 |
$ cd ~ $ svn co https://svn.redmine.org/redmine/branches/3.3-stable redmine-3.3 $ cd redmine-3.3 |
설치가이드 페이지
http://www.redmine.org/projects/redmine/wiki/RedmineInstall
1 mysql 데이터베이스와 사용자 생성
1 2 3 4 |
<span class="CodeRay"><span class="class">CREATE</span> <span class="type">DATABASE</span> redmine CHARACTER <span class="class">SET</span> utf8; <span class="class">CREATE</span> USER <span class="string"><span class="delimiter">'</span><span class="content">redmine</span><span class="delimiter">'</span></span><span class="error">@</span><span class="string"><span class="delimiter">'</span><span class="content">localhost</span><span class="delimiter">'</span></span> IDENTIFIED <span class="keyword">BY</span> <span class="string"><span class="delimiter">'</span><span class="content">my_password</span><span class="delimiter">'</span></span>; <span class="class">GRANT</span> <span class="keyword">ALL</span> PRIVILEGES <span class="keyword">ON</span> redmine.* <span class="keyword">TO</span> <span class="string"><span class="delimiter">'</span><span class="content">redmine</span><span class="delimiter">'</span></span><span class="error">@</span><span class="string"><span class="delimiter">'</span><span class="content">localhost</span><span class="delimiter">'</span></span>; </span> |
For versions of MySQL prior to 5.0.2 – skip the ‘create user’ step and instead:
1 |
<span class="CodeRay"><span class="class">GRANT</span> <span class="keyword">ALL</span> PRIVILEGES <span class="keyword">ON</span> redmine.* <span class="keyword">TO</span> <span class="string"><span class="delimiter">'</span><span class="content">redmine</span><span class="delimiter">'</span></span><span class="error">@</span><span class="string"><span class="delimiter">'</span><span class="content">localhost</span><span class="delimiter">'</span></span> IDENTIFIED <span class="keyword">BY</span> <span class="string"><span class="delimiter">'</span><span class="content">my_password</span><span class="delimiter">'</span></span>;</span> |
2 config/database.yml 설정
1 2 3 4 5 6 |
<span class="CodeRay"><span class="key">production</span>: <span class="key">adapter</span>: <span class="string"><span class="content">mysql</span></span> <span class="key">database</span>: <span class="string"><span class="content">redmine</span></span> <span class="key">host</span>: <span class="string"><span class="content">localhost</span></span> <span class="key">username</span>: <span class="string"><span class="content">redmine</span></span> <span class="key">password</span>: <span class="string"><span class="content">my_password</span></span></span> |
3 실행
rails의 의존성 설치
1 |
bundle install |
하다가 보통 mysql2와 rmagick에서 오류가 나는데
mysql2는 위에서libmysqlclient-dev를 설치해서 안날거고
rmagick은 다음줄을 설치하면 된다
sudo apt-get install imagemagick libmagickwand-dev
설치명령(하다가 뻑난경우 mysql 데이터베이스 삭제후다시 만들면 편하다)
디비스키마 생성
1 |
RAILS_ENV=production bundle exec rake db:migrate |
기본데이터 생성
1 |
RAILS_ENV=production bundle exec rake redmine:load_default_data |
디렉토리 권한설정
1 2 3 |
$ mkdir -p tmp tmp/pdf public/plugin_assets $ chown -R redmine:redmine files log tmp public/plugin_assets $ chmod -R 755 files log tmp public/plugin_assets |
실행테스트
1 |
bundle exec rails server webrick -e production |
서버주소:3000 로 접속확인
apache passenger 연동
$ gem install passenger
$ passenger-install-apache2-module
그냥 실행하면 설명이 나옴
(http://memo.polypia.net/archives/586)
virtualhost.conf
1 2 3 4 5 6 7 8 9 10 |
<VirtualHost *:80> ServerName pms.msync.co.kr DocumentRoot /site/redminepath/redmine-3.3/public <Directory /site/redminepath/redmine-3.3/public> Options Indexes FollowSymLinks AllowOverride all Require all granted </Directory> </VirtualHost> |
문제상황 및 처리
미디어위키 비밀번호를 분실
-> 디비에서 값을 직접 변경 해 줘도 로그인이 안 되었다. (아마도 SALT값이나 다른 보안코드를 저장해놓는 듯 싶었다)
-> 그래서 이메일로 비밀번호 찾기를 시도하는데 이메일이 전송되지 않았다. 이메일 서버를 설정한 적이 없으니…
-> 그래서 LocalSettings.php에 이메일 접속정보를 설정했더니 에미일은 안가고 오류가 난다.
-> 의존성 추가 필요
-> 완료
1 2 3 4 |
OS Ubuntu14.04 MediaWiki 1.23.13 PHP 5.5.9-1ubuntu4.17 (apache2handler) MySQL 5.6.30-0ubuntu0.14.04.1 |
위 환경에서 발생한 문제로 다른 버전에서는 발생하지 않을 수 있음
https://www.mediawiki.org/wiki/Manual:Configuration_settings/ko
https://help.ubuntu.com/community/MediaWiki
이메일 설정
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
$wgEnableEmail = true; $wgEnableUserEmail = true; $wgEmergencyContact = "wikidude@mydomain.com"; $wgPasswordSender = "wikidude@mydomain.com"; $wgNoReplyAddress = "noreply@mydomain.com"; $wgPasswordSender = "password_reminder@mydomain.com"; $wgSMTP = array( 'host' => "ssl://smtp.gmail.com", 'IDhost' => "gmail.com", 'port' => 465, 'auth' => true, 'username' => "user_name@mydomain.com", 'password' => "user_password" ); |
의존성 설치
1 2 3 |
sudo apt-get install php-pear sudo pear install mail sudo pear install Net_SMTP |
경고처리
1 2 3 4 5 6 7 8 |
1. 이메일 요청을 24시간 기다려야한다는 경고가 뜨는 경우 설정파일에 이걸 임시로 추가 $wgPasswordReminderResendTime = 0; 2. 비밀번호 연속 실패로 오류뜨는경우 You have made too many recent login attempts. Please wait 5 minutes before trying again apache를 재시작한다 |