gsettings set org.gnome.desktop.session idle-delay 3600

Posted by jtfafa
,

echo "deb http://security.ubuntu.com/ubuntu impish-security main" | sudo tee /etc/apt/sources.list.d/impish-security.list
sudo apt update
sudo apt install libssl1.1

wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list

sudo apt update
sudo apt install -y mongodb-org

sudo systemctl start mongod
sudo systemctl status mongod
sudo systemctl enable mongod

 

--------------------------------------------------------------------------------------------------------------------------------------

메모리 등 사양 때문에 Active가 안될 경우 4.4 버젼으로 설치해야 한다.

echo "deb http://security.ubuntu.com/ubuntu impish-security main" | sudo tee /etc/apt/sources.list.d/impish-security.list
sudo apt update
sudo apt install libssl1.1

wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list

sudo apt update
sudo apt install -y mongodb-org=4.4.11 mongodb-org-server=4.4.11 mongodb-org-shell=4.4.11 mongodb-org-mongos=4.4.11 mongodb-org-tools=4.4.11

sudo systemctl start mongod
sudo systemctl status mongod
sudo systemctl enable mongod

Posted by jtfafa
,

sudo add-apt-repository ppa:ubuntuhandbook1/gvfs

sudo apt update

sudo apt install gvfs

 

Posted by jtfafa
,

cd ~/.local/share/gnome-shell/extensions

git clone https://github.com/atareao/panel-date-format.git

mv panel-date-format.git panel-date-format@atareao.es

cd panel-date-format@atareao.es

vi metadata.json

cd schemas

vi es.atareao.panel-date-format.gschema.xml

%Y년 %m월 %d일 (%a),  %r

glib-compile-schemas ~/.local/share/gnome-shell/extensions/panel-date-format@atareao.es/schemas/

Posted by jtfafa
,

gnome-extensions disable ubuntu-dock@ubuntu.com

Posted by jtfafa
,

curl -H "Host: cdn.hancom.com" -H "Referer: https://www.hancom.com/cs_center" -fLO https://cdn.hancom.com/pds/hnc/DOWN/gooroom/hoffice_11.20.0.1520_amd64.deb

gsettings set org.freedesktop.ibus.engine.hangul use-event-forwarding false

Posted by jtfafa
,

/etc/docker/daemon.json
{
"bip": "192.168.137.254/24"
}
변경 없으면 추가

Posted by jtfafa
,

git clone https://github.com/oracle/docker-images.git

~/docker-images/OracleDatabase/SingleInstance/dockerfiles/11.2.0.2
경로에 oracle-xe-11.2.0-1.0.x86_64.rpm.zip 에 복사

cd ~/docker-images/OracleDatabase/SingleInstance/dockerfiles

./buildContainerImage.sh -v 11.2.0.2 -x -i

docker run -dit --name oracle-xe-11g --hostname db-server --shm-size=2g -p 1521:1521 -e ORACLE_PWD=[password] -v /etc/localtime:/etc/localtime:ro oracle/database:11.2.0.2-xe

'리눅스' 카테고리의 다른 글

[Ubuntu] 아래한글 설치  (0) 2021.12.02
[리눅스 공통] docker 기본 네트워크 IP 변경  (0) 2021.11.12
[HYPER-V] SSH 접속이 느릴때  (0) 2021.08.22
[WSL2] 고정IP 설정[파워쉘]  (0) 2021.08.03
[WSL2] CentOS에 한글 설치  (0) 2021.08.03
Posted by jtfafa
,

vim /etc/ssh/sshd_config

#GSSAPIAuthentication yes     -- 주석처리하고

GSSAPIAuthentication no        -- no로 변경

#UseDNS yes  

UseDNS no                          -- no 변경하여 한줄 추가


hyper-v에서 갑자기 ssh 접속이 느려서 인터넷 서핑하여 하나 따라 해 본것.

vmware에서는 이런 현상 없었는데.......

Posted by jtfafa
,

AutoStartSSH.ps1 작성(D드라이브 있으면 D드라이브에...)

 

---------------------------------------------------------------------------------------------------------

# 기존 파일 백업
$yyyymmdd = (get-date -format 'yyyyMMdd');
if ( -not (Test-Path D:\vhdx\Ubuntu2004\ext4_$yyyymmdd.vhdx) ) { 
  copy D:\vhdx\Ubuntu2004\ext4.vhdx D:\vhdx\Ubuntu2004\ext4_$yyyymmdd.vhdx; 
}

# backup.sh안에 ssh, nginx 시작스크립트 포함되어 있음.
wsl /root/backup.sh;

wsl service ssh start
wsl service nginx start

# WSL IP 얻음
$wsl_ip = bash.exe -c "hostname -I";

# 기존 포트포워딩 삭제
iex "netsh interface portproxy delete v4tov4 listenport=22 listenaddress=*";
iex "netsh interface portproxy delete v4tov4 listenport=80 listenaddress=*";

# 포트포워딩(ssh, nginx 포트)
iex "netsh interface portproxy add v4tov4 listenport=22 connectport=22 connectaddress=$wsl_ip";  
iex "netsh interface portproxy add v4tov4 listenport=80 connectport=80 connectaddress=$wsl_ip";

# 네트워크드라이브 X: 로 생성
net use X: \\wsl$\Ubuntu-20.04 /persistent:no;

---------------------------------------------------------------------------------------------------------

 

프로그램 : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe

파리미터 : -WindowStyle Minimized -ExecutionPolicy Unrestricted -File "D:\AutoStartSSH.ps1"

'리눅스' 카테고리의 다른 글

[WSL2] docker에 native oracle xe 11g image 생성  (0) 2021.09.02
[HYPER-V] SSH 접속이 느릴때  (0) 2021.08.22
[WSL2] CentOS에 한글 설치  (0) 2021.08.03
[WSL2] Ubuntu에 한글 설치  (0) 2021.08.03
[WSL2] centos8 세팅  (2) 2021.07.26
Posted by jtfafa
,