2017. 2. 13. 19:50


SYSTEMCTL

Starting with Ubuntu 15.04, Upstart will be deprecated in favor of Systemd. With Systemd to manage the services we can do the following:

systemctl start SERVICE - Use it to start a service. Does not persist after reboot

systemctl stop SERVICE - Use it to stop a service. Does not persist after reboot

systemctl restart SERVICE - Use it to restart a service

systemctl reload SERVICE - If the service supports it, it will reload the config files related to it without interrupting any process that is using the service.

systemctl status SERVICE - Shows the status of a service. Tells whether a service is currently running.

systemctl enable SERVICE - Turns the service on, on the next reboot or on the next start event. It persists after reboot.

systemctl disable SERVICE - Turns the service off on the next reboot or on the next stop event. It persists after reboot.

systemctl is-enabled SERVICE - Check if a service is currently configured to start or not on the next reboot.

systemctl is-active SERVICE - Check if a service is currently active.

systemctl show SERVICE - Show all the information about the service.

sudo systemctl mask SERVICE - Completely disable a service by linking it to /dev/null; you cannot start the service manually or enable the service.

sudo systemctl unmask SERVICE - Removes the link to /dev/null and restores the ability to enable and or manually start the service.


# 추가적으로 sysv-rc-conf를 설치하여 활용할 수 있다.


- 명령 설치

apt-get install sysv-rc-conf


명령 시작

sysv-rc-conf

Posted by citrine
2017. 2. 13. 16:07

원래 우분투10버전과 페도라15녀석을 멀티부팅용으로 설치해서 써왔다. 근데 필요에 의해 윈도우에서 가상 운영체제를 돌릴 수 있는 S/W를 사용하게 되었다. 이러한 류의 S/W중 가장 잘 알려진 Virtual Box와 VMware중 고민을 하던 찰나 작년초에 수업에서 한번 써봣던 VMware를 설치했다. 페도라녀석은 제대로 깔렸다... 그런데 우분투 녀석은

이런...

 

VMware Easy Install이란게 떳다... 그래서 걍 로그인 후 startx로 부팅해보면 난 사이드바만 뜨고 아무것도 안뜬다... 구글신한테 물어보니 stackoverflow와 유투브에서 해답이 나오더라.

 

StackOverflow 해결

  1. Restore the /etc/issue file:
  2. sudo mv /etc/issue.backup /etc/issue
  3. Restore the /etc/rc.local file:

    sudo mv /etc/rc.local.backup /etc/rc.local

  4. Restore the /etc/init/lightdm.conf file:

    sudo mv /opt/vmware-tools-installer/lightdm.conf /etc/init

Youtube 해결

sudo mv /etc/issue.backup /etc/rc.local

sudo mv /opt/vmware-tools-installer/lightdm.conf /etc/init

 

 

저 명령어를치고 나서 마지막으로 sudo reboot로 재부팅 고고

 

참고로 위의 이미지처럼 요번엔 Fedora13과 작년에 릴리즈된 Ubuntu13.10을 올렸다.

뭘써도 해결이 된다. 핵심은 sudo mv /opt/vmware-tools-installer/lightdm.conf /etc/init 이다.

 

 

해결ㅋ

 

링크

stackoverflow : http://stackoverflow.com/questions/10740243/ubuntu-intallation-is-stuck-at-vmware-tools-installation

youtube : http://www.youtube.com/watch?v=fmyRbxYyOmU

Posted by citrine
2017. 2. 13. 13:46


'sudo apt-get install openssh-server' reports 'E: Package openssh-server has no installation candidate'
오류 발생시 해결 방법




SSH Server 패키지를 설치하기 위해서
$ sudo apt-get install openssh-server


위와 같이 실행을 했더니... 아래와 비슷한 오류가 발생했다.
(한글이 깨지고 있다면 메시지 일부가 안보여서 약간 다를 수 있겠지만 유사할 듯..) 


Reading package lists... Done

Building dependency tree
Reading state information... Done
Package openssh-server is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package openssh-server has no installation candidate




문제의 원인은 미러 사이트에서 패키지를 다운받아 오지 못한다는거~

아래 링크를 참고하여

>>> [우분투] 설치 후에 가장 먼저 해야 할 일 <<<


 

/etc/apt/sources.list 의 미러 사이트를 변경한 후에

$ sudo apt-get update
패키지 업데이트 하고

$ sudo apt-get install openssh-server

ssh-server 설치를 하면 된다.

끝.

Posted by citrine
2017. 2. 13. 09:31

Ubuntu는 최초 로그인시 Root 로그인이 되지 않는다. 개발용으로 편히 사용하기 위해서는 다음과 같은 절차로 진행한다.


#절차

1. 등록한 계정으로 로그인하기


2. root 권한 얻기

  sudo -i


3. root 패스워드 등록히기

  passwd root


4. 재로그인 해보기


Posted by citrine