H WSL - szenergy/szenergy-public-resources GitHub Wiki
Remove the default install
sudo apt-get remove --purge openssh-server
Update
sudo apt update
sudo apt upgrade -y
Install OpenSSH Server
sudo apt install -y openssh-server
Set the following in ssh config:
Configure OpenSSH
sudo nano /etc/ssh/sshd_config
Port 222
X11Forwarding yes
X11DisplayOffset 10
Check and run OpenSSH
sudo service ssh --full-restart
service ssh start
service ssh status
.bashrc
#export PATH=$PATH:/usr/local/cuda-10.0/bin
#export CUDADIR=/usr/local/cuda-10.0
#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-10.0/lib64
#dinamikusan lekérdezi a windows oldalat
export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0
#export DISPLAY=172.17.25.1:0
export XDG_RUNTIME_DIR=/home/he
export RUNLEVEL=3
export LIBGL_ALWAYS_INDIRECT=
export ROS_MASTER_URI=http://$(hostname -I | awk '{print $1}'):11311
export ROS_IP=$(hostname -I | awk '{print $1}')
source /opt/ros/melodic/setup.bash
source ~/catkin_ws/devel/setup.bash