반응형

우분투 리눅스에 원격데스크톱 서버를 설치할 수 있다.

 

RealVNC 도 있으나 이것은, 상업적으로 사용할 경우 유료이고,

이 원천 소스인 TightVNC도 있으니 이것을 설치하고

 

참고: https://www.whatwant.com/840

 

tightVNC Server 설치하기 (Ubuntu 12.04, 14.04, 16.04)

회사에서 VNC를 사용하고자 하는데, RealVNC 라는 업체에서 제공하는 것은 왠지 찝찝했다. 그러다가 발견한 문구 !!! "free for both personal and commercial usage, with full source code available" http://ww..

www.whatwant.com

뷰어는 RealVNC 뷰어를 사용한다.

 

참고: https://geeksvoyage.com/raspberry%20pi/ssh-vnc-for-pi/

 

라즈베리파이3 B+ 설치가이드(3) ssh와 vnc 연결하기

라즈베리파이 원격 접속을 위한 ssh와 vnc 설정 방법입니다.

geeksvoyage.com

실제 동작하는 부분 확인하였다.

반응형
반응형

참고 자료: https://askubuntu.com/questions/629995/apache-not-able-to-restart

 

Apache not able to restart

Trying to restart apache from terminal using following command: sudo service apache2 restart when executing that command getting below error: Job for apache2.service failed. See "systemctl status

askubuntu.com

apache2 같은 경우

 

다음과 같이 에러나 나면서 실행이 안될 수 있습니다.


● apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2019-05-27 15:26:18 KST; 37ms ago
  Process: 4183 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)

 5월 27 15:26:18 ns systemd[1]: Starting The Apache HTTP Server...
 5월 27 15:26:18 ns apachectl[4183]: apache2: Could not open configuration file /etc/apache2/apache2.conf: No such file or directory
 5월 27 15:26:18 ns apachectl[4183]: Action 'start' failed.
 5월 27 15:26:18 ns apachectl[4183]: The Apache error log may have more information.
 5월 27 15:26:18 ns systemd[1]: apache2.service: Control process exited, code=exited status=1
 5월 27 15:26:18 ns systemd[1]: Failed to start The Apache HTTP Server.
 5월 27 15:26:18 ns systemd[1]: apache2.service: Unit entered failed state.
 5월 27 15:26:18 ns systemd[1]: apache2.service: Failed with result 'exit-code'.

 

이런경우, 삭제 후 재설치 해야 하는데, 그 방법도 단순히 apt-get  install, apt-get remove 로는 되지 않습니다.

 

The problem is because some configuration files are deleted, you have to reinstall it.

 

REINSTALL APACHE2:

 

To replace configuration files that have been deleted, without purging the package, you can do:

 

sudo apt-get -o DPkg::Options::="--force-confmiss" --reinstall install apache2

 

To fully remove the apache2 config files, you should:

 

sudo apt-get purge apache2

 

which will then let you reinstall it in the usual way with:

 

sudo apt-get install apache2

 

Purge is required to remove all the config files - if you delete the config files but only remove the package, then this is remembered & missing config files are not reinstalled by default.

 

 

반응형
반응형

 

출처:  https://askubuntu.com/questions/544197/how-to-change-the-index-of-template

 

 

 

To change style

 

Use the IndexStyleSheet directive. For example:

 

IndexStyleSheet "/css/style.css"

 

The /etc/apache2/sites-enabled/your_site.conf file should looks like:

 

<VirtualHost *:80> ServerName something.com DocumentRoot /var/www/ IndexStyleSheet "/css/style.css" ...</VirtualHost>

 

And the /var/www/css/style.css stylesheet:

 

body { color: red; }

 

Result:

반응형

+ Recent posts