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

2022년 1월 4일 화요일

Dell Optiplex 5090MT

Dell Optiplex 5090MT i7-10700 (내장그래픽) 모델

Ubuntu 18.04 설치시 아래를 따라했으나

https://www.dell.com/community/Optiplex-Desktops/Dual-boot-windows-and-Ubuntu-on-optiplex-5090/td-p/8040726

Black screen만 나옴. 


20.04 설치로 해결 !

https://askubuntu.com/a/1341267

2020년 9월 7일 월요일

A running instance of an image is a container.

An instance of an image is called a container. You have an image, which is a set of layers as you describe. If you start this image, you have a running container of this image. You can have many running containers of the same image.


You can see all your images with docker images whereas you can see your running containers with docker ps (and you can see all containers with docker ps -a).


So a running instance of an image is a container.


https://stackoverflow.com/a/23736802


Container ID is used as a hostname. See the image below:



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


2020년 4월 1일 수요일

Mac terminal 단축키

급할때 불편한 것. 시간날때.




Ctrl + A Go to the beginning of the line you are currently typing on
Ctrl + E Go to the end of the line you are currently typing on
Ctrl + U Clears the line before cursor position (or the entire line if you are at the end of the line)
Ctrl + H Alternative to using backspace
Ctrl + W Delete the word before the cursor
Ctrl + K Clear the line after the cursor
Ctrl + T Swap the last two characters before the cursor
Esc + T Swap the last two words before the cursor
Alt + F Move cursor forward one word on the current line
Alt + B Move cursor backward one word on the current line


http://stuffthatinterests.me/articles/move-the-os-x-terminal-cursor-position-by-clicking-the-mouse
http://archive.is/lOfZj

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


2019년 2월 12일 화요일

RetroPie

RetroPI 설정
https://github.com/RetroPie/RetroPie-Setup

Gl 관련 문제
sudo ln -s /usr/lib/arm-linux-gnueabihf/libEGL.so.1.0.0 /usr/lib/libEGL.sosudo ln -s /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2.0.0 /usr/lib/libGLESv2.so
https://www.raspberrypi.org/forums/viewtopic.php?t=191857

2018년 11월 21일 수요일

Varistor


Varistor란?
전자 제품 및 기기들을 구성하고 있는 소자들을 surge 전압으로부터 보호해주는 소자
https://goo.gl/uxHSXJ


Bourns Inc. MOV-07D201KTR
https://www.digikey.kr/product-detail/ko/bourns-inc/MOV-07D201KTR/MOV-07D201KTRCT-ND/2408228


A typical varistor protecting a transistor
https://www.electronicshub.org/varistor/




2018년 9월 17일 월요일

To change the default setting to display line numbers in vi/vim:

To change the default setting to display line numbers in vi/vim:

vi ~/.vimrc
then add the following line to the file:

set number
Either we can source ~/.vimrc or save and quit by :wq, now vim session will have numbering

https://stackoverflow.com/a/31105979/8608003

2018년 8월 10일 금요일

2017년 12월 14일 목요일

Virtualenv 환경 복사하기

On the first virtual env:

pip freeze > requirements.txt

On the second:

pip install -r requirements.txt


https://stackoverflow.com/a/11702289

2017년 11월 13일 월요일

process terminated with status -1 (Codeblocks)

Settings -> Environments

Terminal to launch console programs :
gnome-terminal -t $TITLE -x
인데, gnome-terminal 이 설치 안된 경우도 있음.

$ sudo apt-get install gnome-terminal

참고로 default는 다음과 같음
xterm -T $TITLE -e



2017년 10월 18일 수요일

2017년 7월 1일 토요일

SimpleHTTPServer

이런게 buit-in으로 있었다니...

$ sudo python -m SimpleHTTPServer 80

2017년 6월 21일 수요일

Jupyter notebook from the remote client


Server (jupyter notebook 구동) :
(server)$ jupyter notebook --no-browser --port=8888


Client :
(client)$ ssh -N -f -L localhost:8888:localhost:8888 user@ipaddress of server(client)$ open -a safari http://localhost:8888


localhost:8888(로칼):localhost:8888(remote)
원격 포트를 바꾸고자할때 사용할수는 있음

예를들면
localhost:8888:localhost:8889
으로 설정하면 원격 8889를 local 8888로 (remote port 8889 to local port 8888)

Cygwin을 사용해도 됨
(client)$ ssh -N -f -L localhost:8888:localhost:8888 user@ipaddress of server

ssh 포트가 포워딩되는 경우
ssh 포트 지정하듯
ssh -N -f -L localhost:8888:localhost:8888 user@ip_address_server -p SSH_PORT_NUMBER


Token authentication 문제가 나오면 server에 접속해서
(server)$ jupyter notebook list 를 하고 보이는 토큰 키를 넣어주면 끝.


2017년 5월 11일 목요일

Ubuntu Atom editor 설치
sudo add-apt-repository ppa:webupd8team/atom
sudo apt-get update
sudo apt-get install atom