1. Gitlab.com에  로그인 한다.

2. Settings - Applications 로 들어간다.

3. 다음과 같은 방식으로 셋팅


♣ 여기서 Redirect URL은 보통 GitLab서버에 저장하기 위해 DDNS/포트포워딩을 하는데, 그 도메인 주소를 적어준다.


4. Save를 누른 후, 다음과 같이 키가 생성이 된다.



5. Gitlab 서버가 설치 된 우분투 서버에서,

$ sudo vim /etc/gitlab/gitlab.rb


gitlab_rails['omniauth_providers'] = [

   {

    "name" => "gitlab",

    "app_id" => "APPLICATION ID Num.",

    "app_secret" => "SECRET Num.",

    "args" => { "scope" => "api" }


6. 저장 후

$ sudo gitlab-ctl reconfigure




Reference : https://docs.gitlab.com/ee/integration/gitlab.html

블로그 이미지

mind10

,

npm 패키지 전역 설치를 할경우


user/계정명/AppData 밑에 쪽에 설치되는데, 


계정명이 한글일 경우 Unicode 문제를 발생하여 


Electron-builder 에서 문제가된다.


따라서, 서브 계정을 새로 하나 만들어서 하는게 좋다.

블로그 이미지

mind10

,

Electron-builder 사용시


위와 같은 에러가 발생했을 경우



npm --add-python-to-path='true' --debug install --global windows-build-tools




블로그 이미지

mind10

,

If you use in electron :


npm install grpc --runtime=electron --target=[VERSION]




'JavaScript > Error' 카테고리의 다른 글

Electron 배포판을 만들경우  (0) 2018.11.19
Can't find Python executable "python" after installing  (0) 2018.11.19
블로그 이미지

mind10

,



adduser : 계정생성 및 비밀번호 와 사용자 정보를 입력받아 계정을 생성하고, 사용자가 설정한 기본 쉘을 사용자의 쉘로 지정해 주고 홈 디렉토리도 생성 해준다. 


useradd : 순수 계정만 생성, 기본 쉘인 sh가 할당 (홈 디렉토리/ 비밀번호 등은 따로 설정해 주어야 한다)


Option 


-c (Comment) : 패스워드 파일에 사용자 설명 추가

-d (Home) : 디렉토리 위치 지정

-e (Expiredate) : 지정된 날짜에 사용자 계정 삭제

-f (Inactive) : 패스워드 만기 후 계정 영구 삭제 기간

-u (User ID) : 사용자 아이디 퍼미션

-s (Shell) : 사용자의 로그인 쉘 지정

-n (Mode) : 사용자가 계정 추가 기본 모드를 지정하지 않을 시

-G (Groups) : 사용자 그룹 지정

-m (Move) : 홈 디렉토리 지정

-M (No create home) : 홈 디렉토리를 생성하지 않음


'Ubuntu > Server' 카테고리의 다른 글

phpMyAdmin 설치  (0) 2018.04.12
Samba 설치하기  (0) 2018.03.28
블로그 이미지

mind10

,

phpMyAdmin 설치

Ubuntu/Server 2018. 4. 12. 17:27

php.ini 경로


/etc/php/7.0/apache2/php.ini



phpMyAdmin 설정 파일



설치 폴더에서 config.sample.inc.php -> config.inc.php로 복사


그 안에서


$cfg['blowfish_secret'] = '' 안에 임시 쿠키 암호를 넣어줘야한다.


https://www.question-defense.com/tools/phpmyadmin-blowfish-secret-generator


위 사이트로 들어가면 리프레쉬 할때마다 랜덤으로 생성해준다.


접속해서 





Error 처리


The $cfg['TempDir'] (./tmp/) is not accessible. phpMyAdmin is not able to cache templates and will be slow because of this.


config.inc.php 를 열어서

$cfg['TempDir'] = '/tmp';


를 추가해준다.


그래도 연결이 안될경우 


sudo chmod 777 /tmp 해주면 된다.

'Ubuntu > Server' 카테고리의 다른 글

adduser 와 useradd 의 차이  (0) 2018.04.23
Samba 설치하기  (0) 2018.03.28
블로그 이미지

mind10

,

Samba 설치하기

Ubuntu/Server 2018. 3. 28. 17:08


Samba 설치하기


$ sudo apt-get install samba



Samba 계정 설정 및 제거


$ sudo useradd [username]

$ sudo smbpasswd -a [username]        // 설정

$ sudo smbpasswd -x [username]        // 삭제



공유 폴더 생성


$ sudo mkdir /[folder1]/[folder2]

$ sudo chmod 755 -R /[folder2]


보통 일반적으로 설정이 정상적임에도 불구하고 다른 컴퓨터에서 공유폴더로 접근이 안되는경우가 있는데, 폴더 권한 설정을 의심한다.


$ sudo chown -R [username] /[folder1]

ex) sudo chown -R nobody /share_folder // 누굿나 접근 가능


주의 할점은 최상의 폴더의 권한이 접근이 제한되어 있으면 안된다.

 

그룹 사용자 지정


$ sudo groupadd [groupname]

$ sudo gpasswd -a [username] [groupname]


Samba 서버 재시작


$ sudo /etc/init.d/smbd restart

$ sudo service smbd restart


Samba 설정 변경


$ sudo vim /etc/samba/smb.conf


1. 특정 사용만을 위한 개인 폴더


[ShareDirectoryName]

comment = user account

path = /media/ShareDirectoryName

valid users = username

writeable = yes

create mask = 0777

directory mask  = 0777


2. 다수 사용자들을 위한 폴더 생성


[ShareDirectoryName]

comment = user account

path =/media/ShareDirectoryName

valid users = username1, username2, username3

writeable = yes

create mask = 0777

directory mask = 0777


3. 특정 그룹 사용자들을 위한 폴더 생성


[ShareDirectoryName]

comment = user account

path =/media/ShareDirectoryName

valid users = @groupname

browseable = yes

writeable = yes

create mask = 0777

directory mask = 0777


4. 로그인 없이 공용으로 사용하기위한 폴더 생성


[ShareDirectoryName]

comment = user account

path =/media/ShareDirectoryName

guest ok = yes

writeable = yes

create mask = 0777

directory mask = 0777



※ GUI로 SAMBA 설정하기


$ sudo apt-get install system-config-samba


실행시 /etc/libuser.conf가 없다는 오류 메시지 출력시


$ sudo touch /etc/libuser.conf


'Ubuntu > Server' 카테고리의 다른 글

adduser 와 useradd 의 차이  (0) 2018.04.23
phpMyAdmin 설치  (0) 2018.04.12
블로그 이미지

mind10

,

여러 네트워크 장비를 연결할때,

이더넷은 인터넷이 안되는 장비 네트워크에 연결

와이파이는 인터넷에 연결하는 경우


우선 순위가 보통 이더넷이 더 높아서 인터넷 연결이 안되는 경우가 있다.


이런 경우,


1. 네트워크 설정 - 어댑터 설정변경(Control Panel → Network and Internet → Network Connections)

에서 alt키를 누르면 도구모음이 나오는데,

고급  고급설정 (Advanced  Advanced Settings)에서




여기에서 와이파이 우선 순위를 제일 위쪽에 놓으면 된다.


그래도 안되는 경우


이더넷과 와이파이의 어댑터 설정으로 들어가보면



Internet Protocol Version 4(TCP/IPv4)의 속성을 누르면


여기서 고급 으로 들어가면



여기서 자동 메트릭이 체크 되어 있는데

이 체크를 지우고 직접 숫자를 넣어준다.


숫자가 낮을수록 우선순위가 높다.


이데넷 설정도 바꿔주고 숫자는 와이파이 보다 높게 하면 


와이파이로 인터넷이 우선순위로 연결된다.



'유용한 팁' 카테고리의 다른 글

Syntax Highlight 넣기  (0) 2014.05.15
특정 홈페이지가 잘 안열리거나 그럴경우  (0) 2014.05.06
구글 검색 Tip  (0) 2013.03.01
티스토리에 배경 음악 달기..  (0) 2013.02.26
블로그 이미지

mind10

,
  • 윈도우에 공유 폴더 생성 (ex: d:\ubuntushare)

  • Virtual Box 설정
    • 장치-공유 폴더 설정-공유 폴더 
      • 윈도우에서 만든 폴더 지정 및 자동 마운트 설정
  • 리눅스 설정
    • $ sudo mkdir /mnt/share
      $ sudo mount -t vboxsf ubuntushare /mnt/share
      $ ls /mnt/share
  • link 연결
    • $ sudo ln -s /mnt/share /home/user/share
  • 재부팅 시 다시 설정해야 하므로 쉘 스크립트로 만들어서 저장
    • $vim mkShare.sh
      #! /bin/bash
      sudo mount -t vboxsf ubuntushare /mnt/share
      sudo ln -s /mnt/share /home/user/share

      $ chmod 755 mkShare.sh
      $ ./mkShare.sh
  • 부팅 시에 자동으로 실행하기 위해서는
    • $ vim /etc/rc.local
      ......
      ....
      $HOME/mkShare.sh &


블로그 이미지

mind10

,

이 현상은 메모리에서 Non paged pool 이 대부분의 메모리를 점유하고

반환을 하지 않는 현상이 나타날때 쓴다.


Computer leaks nonpaged pool memory when IPSEC traffic is configured to use AuthIP without encryption in Windows

Symptoms

Assume that a Windows-based computer is configured by using a specific IP Security (IPsec) rule (AuthNoEncap - AuthIP with NULL Encryption). When the computer receives User Datagram Protocol (UDP) traffic, a nonpaged pool leak occurs. If there is a large volume of traffic, the computer may become unresponsive.For example, you may encounter this issue in the following scenario:
  • You configure the computers in a domain to use Authenticated IP (AuthIP) only for IPsec and without encryption.
  • In the domain, a computer sends a large volume of UDP traffic to a remote computer.
In this scenario, nonpaged pool memory usage increases on the remote computer. High UDP network traffic can completely exhaust the nonpaged pool memory. This causes the remote computer to become unresponsive until it is restarted.

Note Windows-based computers that host the DNS Server role are an example of a workload susceptible to this memory leak, because they service UDP-formatted DNS queries from a large collection of unique clients. However, the issue can apply to any remote computer that receives sufficient UDP traffic.
Resolution
To resolve this problem, install the hotfix that is described in this article.

Note To resolve this problem in Windows 8.1 and Windows Server 2012 R2, install update rollup 2928680.

KB2928680을 설치해본다.

or



Memory leak in Windows 8.1 with Killer E2200 and Windows Network Data Usage Monitoring



Recently upgraded to a new computer with Intel’s latest Haswell generation and Microsoft Windows 8.1. Although its performance has been stellar, a few days ago unexpectedly ran into severely degraded performance.

Saw in the Task Manager that all available memory was taken up by the Non-Paged Pool. After a system reboot the memory used by the Non-Paged Pool quickly started to increase until all memory was taken.

Looked up what information could fine online about memory leaks in Windows 8.1 and came upon this forum post in which others detailed similar experiences when using Windows 8 on hardware equipped with Qualcomm’s Killer ethernet networking products.


The actual cause of the memory leak seems to be the Windows Network Data Usage Monitoring Driver service which in combination with a Killer network driver starts to fill up the Non-Paged Pool memory.

Considering that my MSI H87-G43 Gaming motherboard is equipped with the Killer Ethernet E2200 and am using the Killer Network Manager driver, knew it had to be the same cause.

Applied the suggested fix of altering the registry key value of the “Start” entry to 4 in HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Ndu\ to disable the Windows Network Data Usage Monitor Driver from starting and after a reboot the issue seems properly solved!

블로그 이미지

mind10

,

날짜를 2014, 1, 1로 변경하면 


잘 설치된다.

블로그 이미지

mind10

,



'소소한 일상' 카테고리의 다른 글

독수리슛 모음  (0) 2015.02.12
대대장님 지나가십니다.  (0) 2015.01.26
할렘쉐크  (0) 2013.03.04
블로그 이미지

mind10

,





'소소한 일상' 카테고리의 다른 글

러시아 부부싸움  (0) 2015.02.27
대대장님 지나가십니다.  (0) 2015.01.26
할렘쉐크  (0) 2013.03.04
블로그 이미지

mind10

,

Cydia 접속 느림 문제

iOS 2015. 2. 9. 05:02

/Applications/Cydia.app에 들어가서 ko.lproj 폴더를 삭제한다.

블로그 이미지

mind10

,



'소소한 일상' 카테고리의 다른 글

러시아 부부싸움  (0) 2015.02.27
독수리슛 모음  (0) 2015.02.12
할렘쉐크  (0) 2013.03.04
블로그 이미지

mind10

,