In Client Machine, i.e. your laptop.<\/strong><\/p>\nYou will need to install x11vnc & screen<\/p>\n
#!\/bin\/bash\r\n#Run VNC server in remote device. 10.0.0.2 is my machine which has monitor connected.\r\nssh root@10.0.0.2 \"nohup \/root\/vncserver.sh > \/dev\/null 2>&1 &\"\r\nxrandr --addmode VIRTUAL1 1920x1080\r\nxrandr --output VIRTUAL1 --mode 1920x1080 --right-of eDP1 # find your main display\r\nscreen -X -S vnc quit\r\nkillall x11vnc\r\n# adjust postion 1920x1080+3511+180, i.e. 3511+180 accordingly\r\n# i have different resultion display so had to move.\r\nscreen -dmS vnc x11vnc -connect 10.0.0.2:5500 -display :0 -clip 1920x1080+3511+180 -wirecopyrect -viewonly --nossl -ncache 10 -ncache_cr\r\n<\/pre>\nIn server Machine (LAN address 10.0.0.2)<\/strong><\/p>\nif [[ $(ps -ef | grep -c vncviewer) -ne 1 ]];\r\nthen\r\n echo \"Running\"\r\nelse\r\n export DISPLAY=:0.0;\r\n vncviewer -listen 0 -fullscreen -owncmap -viewonly;\r\nfi\r\n<\/pre>\nYou will need to install VNC Viewer in client side.<\/p>\n","protected":false},"excerpt":{"rendered":"
You are doomed if your laptop has only one HDMI Port & you\u00a0are running Linux\u00a0in that box. Unlike windows – where there are tons of easy to run solution, & there are still tons of solutions if you have big numbers in your pocket. Certainly – I neither wish to spend money on external VGA\/HDMI … <\/p>\n
Continue reading<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[3,6,8,1],"tags":[29],"class_list":["post-200","post","type-post","status-publish","format-standard","hentry","category-linux","category-server","category-snippets","category-uncategorized","tag-hack","item-wrap"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_shortlink":"https:\/\/wp.me\/pciGs2-3e","jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/madhurendra.com\/wp-json\/wp\/v2\/posts\/200","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/madhurendra.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/madhurendra.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/madhurendra.com\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/madhurendra.com\/wp-json\/wp\/v2\/comments?post=200"}],"version-history":[{"count":5,"href":"https:\/\/madhurendra.com\/wp-json\/wp\/v2\/posts\/200\/revisions"}],"predecessor-version":[{"id":212,"href":"https:\/\/madhurendra.com\/wp-json\/wp\/v2\/posts\/200\/revisions\/212"}],"wp:attachment":[{"href":"https:\/\/madhurendra.com\/wp-json\/wp\/v2\/media?parent=200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/madhurendra.com\/wp-json\/wp\/v2\/categories?post=200"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/madhurendra.com\/wp-json\/wp\/v2\/tags?post=200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}