Ubuntu 환경에서 커널버전 및 Ubuntu 버전을 확인하는 법에 대해 알아보자.


커널버전 알아보기

    $ uname -a Linux leechwin-linux 4.4.0-59-generic #80-Ubuntu SMP Fri Jan 6 17:47:47 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux $ cat /proc/version Linux version 4.4.0-59-generic (buildd@lgw01-11) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) ) #80-Ubuntu SMP Fri Jan 6 17:47:47 UTC 2017

Ubuntu 버전확인하기

    $ cat /etc/issue Ubuntu 16.04.1 LTS \n \l $ cat /etc/*release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=16.04 DISTRIB_CODENAME=xenial DISTRIB_DESCRIPTION="Ubuntu 16.04.1 LTS" NAME="Ubuntu" VERSION="16.04.1 LTS (Xenial Xerus)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 16.04.1 LTS" VERSION_ID="16.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" VERSION_CODENAME=xenial UBUNTU_CODENAME=xenial $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.1 LTS Release: 16.04 Codename: xenial

참고로 /etc/issue 파일은 내부에서 콘솔 로그인시 출력해주는 메시지이다.

Posted by leechwin
,

Ubuntu 16.04이상에서 다운받은 deb 패키지 파일이 더블클릭으로 설치가 잘 안되는 경우가 있다.

이때 다음과 같은 방법으로 해결이 가능하다.


1.GDebi 패키지 설치

    • $ sudo apt-get install gdebi

    • open GDebi and click File -> Open and navigate to the downloaded DEB file.


2. Command line에서 다음과 같이 수행

    • $ sudo dpkg -i downloaded.deb $ sudo apt-get -f install


Reference: http://askubuntu.com/questions/760638/problem-with-deb-packages-on-ubuntu-16-04

Posted by leechwin
,

nodejs 설치후 $ node app.js 등과 같이 app을 실행시킬때 다음과 같은 에러가 발생하는 경우가 있다.

  •  /usr/bin/env: node: No such file or directory

원인은 node 명령이 등록이 되지않아서 인데, 실제로 nodejs 라는 명령으로 실행하면 실행이 된다.


이때는 다음과 같이 nodejs의 심볼릭 링크를 만들어 주면 된다.

  • $ ln -s /usr/bin/nodejs /usr/local/bin/node

이후 $ node app.js 명령이 실행이 된다.


참고: https://github.com/nodejs/node-v0.x-archive/issues/3911

'Node.js' 카테고리의 다른 글

[Node.js][Winston] Log File Managment  (0) 2017.02.03
[Node.js][Winston] Custom Log Format  (0) 2017.02.03
[Node.js] NVM을 통한 nodejs 설치  (0) 2016.12.21
[BOWER] Proxy 설정  (0) 2016.12.16
[NPM] Proxy 설정  (1) 2016.12.16
Posted by leechwin
,