{"id":9408,"date":"2019-03-31T14:47:02","date_gmt":"2019-03-31T14:47:02","guid":{"rendered":"http:\/\/blog.bachi.net\/?p=9408"},"modified":"2019-03-31T14:47:02","modified_gmt":"2019-03-31T14:47:02","slug":"putty-on-linux-clipboard-issue-copy-paste","status":"publish","type":"post","link":"https:\/\/blog.bachi.net\/?p=9408","title":{"rendered":"PuTTY on Linux: Clipboard Issue (Copy\/Paste)"},"content":{"rendered":"<p><a href=\"https:\/\/bugs.launchpad.net\/ubuntu\/+source\/putty\/+bug\/116165\">support for CLIPBOARD selection<\/a><br \/>\n<a href=\"https:\/\/the.earth.li\/~sgtatham\/putty\/0.71\/htmldoc\/Chapter4.html#config-clipboards\">4.11.4 Assigning copy and paste actions to clipboards<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\r\n\r\n$ dpkg-query -L putty\r\n\/.\r\n\/usr\r\n\/usr\/bin\r\n\/usr\/bin\/pageant\r\n\/usr\/bin\/putty\r\n\/usr\/share\r\n\/usr\/share\/applications\r\n\/usr\/share\/applications\/putty.desktop\r\n\/usr\/share\/doc\r\n\/usr\/share\/doc\/putty\r\n\/usr\/share\/doc\/putty\/copyright\r\n\/usr\/share\/man\r\n\/usr\/share\/man\/man1\r\n\/usr\/share\/man\/man1\/pageant.1.gz\r\n\/usr\/share\/man\/man1\/putty.1.gz\r\n\/usr\/share\/menu\r\n\/usr\/share\/menu\/putty\r\n\/usr\/share\/pixmaps\r\n\/usr\/share\/pixmaps\/putty.png\r\n\/usr\/share\/pixmaps\/putty.xpm\r\n\/usr\/share\/doc\/putty\/changelog.Debian.gz\r\n\r\n\r\n$ .\/configure \r\nchecking for a BSD-compatible install... \/usr\/bin\/install -c\r\nchecking whether build environment is sane... yes\r\nchecking for a thread-safe mkdir -p... \/bin\/mkdir -p\r\nchecking for gawk... gawk\r\nchecking whether make sets $(MAKE)... yes\r\nchecking whether make supports nested variables... yes\r\nchecking for ranlib... ranlib\r\nchecking for style of include used by make... GNU\r\nchecking for gcc... gcc\r\nchecking whether the C compiler works... no\r\nconfigure: error: in `\/home\/andreas\/Downloads\/putty-0.71':\r\nconfigure: error: C compiler cannot create executables\r\nSee `config.log' for more details\r\n\r\n\r\n$ sudo apt-get install build-essential\r\n$ sudo apt-get install coreutils\r\n$ sudo apt-get install autoconf automake groff libtool\r\n\r\n$ .\/configure \r\nchecking for a BSD-compatible install... \/usr\/bin\/install -c\r\nchecking whether build environment is sane... yes\r\nchecking for a thread-safe mkdir -p... \/bin\/mkdir -p\r\nchecking for gawk... gawk\r\nchecking whether make sets $(MAKE)... yes\r\nchecking whether make supports nested variables... yes\r\nchecking for ranlib... ranlib\r\nchecking for style of include used by make... GNU\r\nchecking for gcc... gcc\r\nchecking whether the C compiler works... yes\r\nchecking for C compiler default output file name... a.out\r\nchecking for suffix of executables... \r\nchecking whether we are cross compiling... no\r\nchecking for suffix of object files... o\r\nchecking whether we are using the GNU C compiler... yes\r\nchecking whether gcc accepts -g... yes\r\nchecking for gcc option to accept ISO C89... none needed\r\nchecking whether gcc understands -c and -o together... yes\r\nchecking dependency style of gcc... gcc3\r\nchecking for ar... ar\r\nchecking the archiver (ar) interface... ar\r\nchecking for gcc option to accept ISO C99... none needed\r\nchecking for utmpx.h... yes\r\nchecking for pkg-config... \/usr\/bin\/pkg-config\r\nchecking pkg-config is at least version 0.16... yes\r\nchecking for GTK+ - version &gt;= 3.0.0... Package gtk+-3.0 was not found in the pkg-config search path.\r\nPerhaps you should add the directory containing `gtk+-3.0.pc'\r\nto the PKG_CONFIG_PATH environment variable\r\nNo package 'gtk+-3.0' found\r\nno\r\n*** Could not run GTK+ test program, checking why...\r\n*** The test program failed to compile or link. See the file config.log for the\r\n*** exact error that occurred. This usually means GTK+ is incorrectly installed.\r\nchecking for pkg-config... (cached) \/usr\/bin\/pkg-config\r\nchecking pkg-config is at least version 0.7... yes\r\nchecking for GTK+ - version &gt;= 2.0.0... Package gtk+-2.0 was not found in the pkg-config search path.\r\nPerhaps you should add the directory containing `gtk+-2.0.pc'\r\nto the PKG_CONFIG_PATH environment variable\r\nNo package 'gtk+-2.0' found\r\nno\r\n*** Could not run GTK+ test program, checking why...\r\n*** The test program failed to compile or link. See the file config.log for the\r\n*** exact error that occured. This usually means GTK+ is incorrectly installed.\r\nchecking for gtk-config... absent\r\nchecking for library containing socket... none required\r\nchecking how to run the C preprocessor... gcc -E\r\nchecking for grep that handles long lines and -e... \/bin\/grep\r\nchecking for egrep... \/bin\/grep -E\r\nchecking for ANSI C header files... yes\r\nchecking for sys\/types.h... yes\r\nchecking for sys\/stat.h... yes\r\nchecking for stdlib.h... yes\r\nchecking for string.h... yes\r\nchecking for memory.h... yes\r\nchecking for strings.h... yes\r\nchecking for inttypes.h... yes\r\nchecking for stdint.h... yes\r\nchecking for unistd.h... yes\r\nchecking for library containing dlopen... -ldl\r\nchecking for XOpenDisplay in -lX11... no\r\nchecking for getaddrinfo... yes\r\nchecking for posix_openpt... yes\r\nchecking for ptsname... yes\r\nchecking for setresuid... yes\r\nchecking for strsignal... yes\r\nchecking for updwtmpx... yes\r\nchecking for fstatat... yes\r\nchecking for dirfd... yes\r\nchecking whether CLOCK_MONOTONIC is declared... yes\r\nchecking for library containing clock_gettime... none required\r\nchecking for SO_PEERCRED and dependencies... yes\r\nchecking that generated files are newer than configure... done\r\nconfigure: creating .\/config.status\r\nconfig.status: creating Makefile\r\nconfig.status: creating uxconfig.h\r\nconfig.status: executing depfiles commands\r\n\r\n'configure' was unable to find any version of the GTK libraries on\r\nyour system. Therefore, PuTTY itself and the other GUI utilities will\r\nnot be built by the generated Makefile: only the command-line tools\r\nsuch as puttygen, plink and psftp will be built.\r\n\r\n$ sudo apt-get install libgtk-3-dev\r\n\r\n$ .\/configure \r\nchecking for a BSD-compatible install... \/usr\/bin\/install -c\r\nchecking whether build environment is sane... yes\r\nchecking for a thread-safe mkdir -p... \/bin\/mkdir -p\r\nchecking for gawk... gawk\r\nchecking whether make sets $ dpkg-query -L putty\r\n\/.\r\n\/usr\r\n\/usr\/bin\r\n\/usr\/bin\/pageant\r\n\/usr\/bin\/putty\r\n\/usr\/share\r\n\/usr\/share\/applications\r\n\/usr\/share\/applications\/putty.desktop\r\n\/usr\/share\/doc\r\n\/usr\/share\/doc\/putty\r\n\/usr\/share\/doc\/putty\/copyright\r\n\/usr\/share\/man\r\n\/usr\/share\/man\/man1\r\n\/usr\/share\/man\/man1\/pageant.1.gz\r\n\/usr\/share\/man\/man1\/putty.1.gz\r\n\/usr\/share\/menu\r\n\/usr\/share\/menu\/putty\r\n\/usr\/share\/pixmaps\r\n\/usr\/share\/pixmaps\/putty.png\r\n\/usr\/share\/pixmaps\/putty.xpm\r\n\/usr\/share\/doc\/putty\/changelog.Debian.gz\r\n$(MAKE)... yes\r\nchecking whether make supports nested variables... yes\r\nchecking for ranlib... ranlib\r\nchecking for style of include used by make... GNU\r\nchecking for gcc... gcc\r\nchecking whether the C compiler works... yes\r\nchecking for C compiler default output file name... a.out\r\nchecking for suffix of executables... \r\nchecking whether we are cross compiling... no\r\nchecking for suffix of object files... o\r\nchecking whether we are using the GNU C compiler... yes\r\nchecking whether gcc accepts -g... yes\r\nchecking for gcc option to accept ISO C89... none needed\r\nchecking whether gcc understands -c and -o together... yes\r\nchecking dependency style of gcc... gcc3\r\nchecking for ar... ar\r\nchecking the archiver (ar) interface... ar\r\nchecking for gcc option to accept ISO C99... none needed\r\nchecking for utmpx.h... yes\r\nchecking for pkg-config... \/usr\/bin\/pkg-config\r\nchecking pkg-config is at least version 0.16... yes\r\nchecking for GTK+ - version &gt;= 3.0.0... yes (version 3.22.30)\r\nchecking for pango_font_family_is_monospace... yes\r\nchecking for pango_font_map_list_families... yes\r\nchecking for library containing socket... none required\r\nchecking how to run the C preprocessor... gcc -E\r\nchecking for grep that handles long lines and -e... \/bin\/grep\r\nchecking for egrep... \/bin\/grep -E\r\nchecking for ANSI C header files... yes\r\nchecking for sys\/types.h... yes\r\nchecking for sys\/stat.h... yes\r\nchecking for stdlib.h... yes\r\nchecking for string.h... yes\r\nchecking for memory.h... yes\r\nchecking for strings.h... yes\r\nchecking for inttypes.h... yes\r\nchecking for stdint.h... yes\r\nchecking for unistd.h... yes\r\nchecking for library containing dlopen... -ldl\r\nchecking for XOpenDisplay in -lX11... yes\r\nchecking for getaddrinfo... yes\r\nchecking for posix_openpt... yes\r\nchecking for ptsname... yes\r\nchecking for setresuid... yes\r\nchecking for strsignal... yes\r\nchecking for updwtmpx... yes\r\nchecking for fstatat... yes\r\nchecking for dirfd... yes\r\nchecking whether CLOCK_MONOTONIC is declared... yes\r\nchecking for library containing clock_gettime... none required\r\nchecking for SO_PEERCRED and dependencies... yes\r\nchecking that generated files are newer than configure... done\r\nconfigure: creating .\/config.status\r\nconfig.status: creating Makefile\r\nconfig.status: creating uxconfig.h\r\nconfig.status: executing depfiles commands\r\n\r\n$ make\r\nmake  all-am\r\n&#x5B;...] \r\nmake&#x5B;1]: Leaving directory '\/home\/andreas\/Downloads\/putty-0.71'\r\n\r\n$ .\/putty\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>support for CLIPBOARD selection 4.11.4 Assigning copy and paste actions to clipboards $ dpkg-query -L putty \/. \/usr \/usr\/bin \/usr\/bin\/pageant \/usr\/bin\/putty \/usr\/share \/usr\/share\/applications \/usr\/share\/applications\/putty.desktop \/usr\/share\/doc \/usr\/share\/doc\/putty \/usr\/share\/doc\/putty\/copyright \/usr\/share\/man \/usr\/share\/man\/man1 \/usr\/share\/man\/man1\/pageant.1.gz \/usr\/share\/man\/man1\/putty.1.gz \/usr\/share\/menu \/usr\/share\/menu\/putty \/usr\/share\/pixmaps \/usr\/share\/pixmaps\/putty.png \/usr\/share\/pixmaps\/putty.xpm \/usr\/share\/doc\/putty\/changelog.Debian.gz $ .\/configure checking for a BSD-compatible install&#8230; \/usr\/bin\/install -c checking whether build environment is sane&#8230; yes checking for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-9408","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/9408","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9408"}],"version-history":[{"count":1,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/9408\/revisions"}],"predecessor-version":[{"id":9409,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/9408\/revisions\/9409"}],"wp:attachment":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9408"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9408"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9408"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}