레이블이 linux인 게시물을 표시합니다. 모든 게시물 표시
레이블이 linux인 게시물을 표시합니다. 모든 게시물 표시

2020년 6월 21일 일요일

/usr/local/ 과 /opt/


/opt and /usr/local directories
/opt is for third-party applications that don't rely on any dependencies outside the scope of said package. /usr/local is for packages installed on this machine outside the scope of the distribution package manager.
참조: https://askubuntu.com/a/34922/689555


I would install third-party binary-only packages to /opt.
Anything you build yourself from source I would put in /usr/local.
참조: https://askubuntu.com/a/34894/689555


사용자 프로필의 경우 /usr/local/, 공유 사용자의 경우 /opt/
참조: https://developer.android.com/studio/install


2019년 9월 16일 월요일

문제의 gnome-terminal


새로 Ubuntu를 설치한뒤부터 gnome-terminal 이 실행되지 않음.

# Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal: GDBus.Error:org.freedesktop.DBus.Error.TimedOut: Failed to activate service 'org.gnome.Terminal': timed out (service_start_timeout=120000ms)

아래처럼 하니 되는데, 왜 되는지 아직은 모르겠음.
gnome-terminal --disable-factory


2017년 5월 12일 금요일

X-11 forwarding error

X-11 forwarding error :
Segmentation fault

일부 gedit, gnome-terminal 등 application에서 발생..

환경 :
Server : Ubuntu 16.10 (Nvidia GTX 1080)

Client : Windows 7 (moba xterm) -->  문제 발생
Client : OS X Maverics 에서는 문제 없었음..

해결 :
/usr/lib/x86_64-linux-gnu$ sudo ln -s /usr/lib/nvidia-375/libGLX_indirect.so.0


참고 : https://askubuntu.com/a/796159

2015년 10월 13일 화요일

[Solved] testdisk 설치시 문제

# yum install testdisk
Loading "installonlyn" plugin
Loading "fastestmirror" plugin
Setting up Install Process
Setting up repositories
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
Parsing package install arguments
Nothing to do


Solution : 아래처럼 repo 추가
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

...
Is this ok [y/N]: y
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: ntfs-3g                      ######################### [1/2]
  Installing: testdisk                     ######################### [2/2]

Installed: testdisk.x86_64 0:7.0-1.el5
Dependency Installed: ntfs-3g.x86_64 2:2011.4.12-5.el5
Complete!

2013년 10월 20일 일요일

Take Screenshot After Some Delay: gnome-screenshot


$ gnome-screenshot -w -d 2

 -d 2 is used for delaying the screenshot for 2 seconds. So within the 2 seconds, we can make the window which we want to take screenshot as active.

2012년 7월 22일 일요일

No fmex9.pfb when update to Ubuntu 10.04

Ubuntu 10.04 로 업그레이드 하고 나서 생기는 문제.


dvips: ! Couldn't find font file fmex9.pfb

solution

It is caused by the pdfmap file in $HOME/.texmf-var.
The solution is just remove or rename $HOME/.texmf-var to $HOME/.texmf-var_Ubuntu904.
Then pdflatex the lyx file inside LyX again . The texlive will produce another new subdirectory $HOME/.texmf-var.
Done.
by Kuo-Ping Chiao
2010-5-9

ㄳㄳ

2011년 9월 19일 월요일

find where-to-look criteria what-to-do

막 쓰지 말고 이해하고 써야겠다 ㅋㅋ


find where-to-look criteria what-to-do

Example 1)
find ./ -name *.url
You can use shell-style wildcards in the -name search argument:
find . -name foo\*bar

Example 2)
프로그램 컴파일 폴더 지울때 사용
find . -iname "build" -type d -print0 | xargs -0 rm -r


xargs -0; files with space in name

find -print0
It is safer to use ‘find -print0’ or ‘find -fprint0’ and process the output by giving the ‘-0’ or ‘--null’ option to GNU xargs, GNU tar, GNU cpio, or perl. The locate command also has a ‘-0’ or ‘--null’ option which does the same thing.

2011년 4월 16일 토요일

Deleting the build directories

find . -name 'build' -type d

build 삭제.

find . -type d -name build -depth -exec rm -rf {} \;