{"id":56209,"date":"2020-02-07T00:00:00","date_gmt":"2020-02-06T21:00:00","guid":{"rendered":"https:\/\/prohoster.info\/blog\/blog_prohoster\/tty-terminal-kotoryj-ne-dlya-domashnego-ispolzovaniya"},"modified":"2020-02-18T14:04:26","modified_gmt":"2020-02-18T11:04:26","slug":"tty-terminal-kotoryj-ne-dlya-domashnego-ispolzovaniya","status":"publish","type":"post","link":"https:\/\/prohoster.info\/en\/blog\/administrirovanie\/tty-terminal-kotoryj-ne-dlya-domashnego-ispolzovaniya","title":{"rendered":"TTY \u2014 a terminal not intended for home use","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p><img decoding=\"async\" alt=\"TTY \u2014 a terminal not intended for home use\" src=\"\/wp-content\/uploads\/2020\/02\/c1c0afe0522c210d350a1cf8d3855119.jpg\" style=\"display:block;margin: 0 auto;\" \/><\/p>\n<p><\/p>\n<p>Is it possible to survive using only TTY capabilities? Here's my brief story about how I struggled with TTY, wanting to get it to work properly.<\/p>\n<p><noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><\/p>\n<h1 id=\"predystoriya\">Background<\/h1>\n<p><\/p>\n<p>Recently, the graphics card on my old laptop failed. It failed so badly that I couldn't even launch an installer for any OS. Windows crashed with errors during the installation of basic drivers. Installing Linux wouldn't start at all, even when I specified nouveau.modeset=0 in the boot configuration.<br \/>\nI didn't want to buy a new graphics card for a laptop that has already served its time. However, as a true Linux enthusiast, I started to think: \"Why not turn my laptop into a terminal computer, like it was in the '80s?\". Thus, the idea was born not to install X server on Linux but to try living solely on TTY (plain console).<\/p>\n<p><\/p>\n<h1 id=\"pervye-trudnosti\">The First Difficulties<\/h1>\n<p><\/p>\n<p>I installed it on my PC. <noindex><a rel=\"nofollow\" href=\"https:\/\/www.archlinux.org\/\">Arch Linux<\/a><\/noindex>I love this distribution for its flexibility in customization (plus, the installation was done from the console, which suited me). Following the manual, I installed the system as I always do. Now I wanted to see what the console could do. I suspected that without X server, I had cut off many possibilities. I wanted to check if a plain console could play videos or show photos (like w3m does), but all attempts were in vain. Then I started trying browsers, but there I also ran into the clipboard issue: it\u2019s useless without a GUI. I can't select anything, the clipboard stays empty. There is, of course, an internal buffer (like in Vim), but remember that it's internal; I recall that in Vim's configs, you can specify the use of an external buffer, but I wondered: why bother? It felt like I was in a cage. I couldn't watch videos since X server is required, alsa-mixer also refuses to work without it, leading to no sound, and browsers are useless\u2014all of them. <noindex><a rel=\"nofollow\" href=\"http:\/\/w3m.sourceforge.net\/\">w3m<\/a><\/noindex> (which didn't load images), <noindex><a rel=\"nofollow\" href=\"http:\/\/elinks.or.cz\/\">elinks<\/a><\/noindex> (which was convenient but also absolutely useless), <noindex><a rel=\"nofollow\" href=\"https:\/\/www.brow.sh\/\">browsh<\/a><\/noindex> (that processed all images and sent them to the terminal as ASCII art, but you couldn't even click a link). The evening was approaching, and I was left with a \"mutilated tool\" that could only compile code. The most I could do was look for code references on how2 and surf using ddgr.<\/p>\n<p><\/p>\n<h1 id=\"tak-est-li-vyhod\">So is there a way out?<\/h1>\n<p><\/p>\n<p>At this point, I started to ponder that I had taken the wrong path. It would be easier to just buy a graphics card than to struggle with this makeshift setup. Not that I could call Linux with just TTY a completely useless system\u2014no, perhaps it would suit server administrators, but my original goal was to make TTY a \"sweet setup,\" and instead, I ended up with a Frankenstein monster, convulsing whenever it came to GUI operations. I wanted more, so I finally abandoned the ideas of playing videos and audio materials, and started thinking about how to set up an SSH server, through which I could entertain myself while away from home.<\/p>\n<p><\/p>\n<h3 id=\"chego-imenno-ya-hotel\">What did I actually want?<\/h3>\n<p><\/p>\n<ul>\n<li>Working with code: Vim, NeoVim, linters, debuggers, interpreters, compilers, and all that jazz.<\/li>\n<li>The ability to surf the internet peacefully.<\/li>\n<li>Software for the institute (at least some programs that can render a document in the web with .md markup).<\/li>\n<li>Convenience.<\/li>\n<\/ul>\n<p><\/p>\n<h1 id=\"vyzhivanie\">Survival.<\/h1>\n<p><\/p>\n<p>I installed and set up Vim, Nvim, and all the other joys of a lazy programmer quite quickly. However, surfing the internet posed some challenges (<em>who would have thought?<\/em>), since I still couldn't copy links. Then I thought that surfing the internet from the console <em>was at least imprudent,<\/em> and I began looking for alternatives. It took a while to find console RSS feed readers, but I eventually found a couple and happily started using them to enjoy the flow of information.<br \/>\nNow, for document handling software. Here I had to put in some effort to write a script so that my .md file could render without a graphics card (<em>irony<\/em>). For this, I used a service to view and distribute .md files, and then with another service for processing web pages, I created documents in .pdf. Problem solved.<\/p>\n<p><\/p>\n<p>Comfort also had its issues. The terminal doesn't support all colors properly, resulting in something like <noindex><a rel=\"nofollow\" href=\"https:\/\/unix.stackexchange.com\/questions\/111296\/linux-tty-colours\">this one<\/a><\/noindex>. The question of panels (or rather their lack) was quickly solved using tmux. I chose Ranger + fzf and ripgrep for quick file searching. I went with elinks as my browser (since you can navigate links with numbers). There were a few other moments, but they all got resolved quickly with a certain list of utilities.<\/p>\n<p><\/p>\n<h1 id=\"rezultat\">Result<\/h1>\n<p><\/p>\n<p>It wasn't worth the time spent. Let me warn you right away, if you want to switch to console mode for a while, be prepared to struggle. However, in the end, I had a completely functional system with a file manager, panels, a browser, editors, and compilers. Overall, not bad, but after a week, I just couldn't take it anymore and bought a new PC. That's all I have. Share your experiences; I would be interested to know what you did when you found yourself in console-only mode for a while.<\/p>\n<p>Source: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/487188\/\">habr.com<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043b\u0438 \u0432\u044b\u0436\u0438\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 TTY? \u0422\u0443\u0442 \u043c\u043e\u044f \u043a\u0440\u0430\u0442\u043a\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u044f \u043c\u0443\u0447\u0438\u043b\u0441\u044f \u0441 TTY, \u0436\u0435\u043b\u0430\u044f \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u043e\u0442 \u043d\u0435\u0433\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u041f\u0440\u0435\u0434\u044b\u0441\u0442\u043e\u0440\u0438\u044f \u041d\u0435\u0434\u0430\u0432\u043d\u043e, \u043d\u0430 \u043c\u043e\u0451\u043c \u0441\u0442\u0430\u0440\u0435\u043d\u044c\u043a\u043e\u043c \u043d\u043e\u0443\u0442\u0431\u0443\u043a\u0435 \u043f\u043e\u043b\u0435\u0442\u0435\u043b\u0430 \u0432\u0438\u0434\u0435\u043e\u043a\u0430\u0440\u0442\u0430. \u0414\u0430 \u0442\u0430\u043a \u043f\u043e\u043b\u0435\u0442\u0435\u043b\u0430, \u0447\u0442\u043e \u044f \u043d\u0435 \u043c\u043e\u0433 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0434\u0430\u0436\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0449\u0438\u043a \u043b\u044e\u0431\u043e\u0439 \u041e\u0421. Windows \u0432\u044b\u043b\u0435\u0442\u0430\u043b\u0430 \u0441 \u043e\u0448\u0438\u0431\u043a\u0430\u043c\u0438 \u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0431\u0430\u0437\u043e\u0432\u044b\u0445 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u043e\u0432. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Linux \u0432\u043e\u043e\u0431\u0449\u0435 [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":56210,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-56209","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.2 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043b\u0438 \u0432\u044b\u0436\u0438\u0442\u044c.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/en\/blog\/administrirovanie\/tty-terminal-kotoryj-ne-dlya-domashnego-ispolzovaniya\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.2\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47TTY \u2014 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u0434\u043b\u044f \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043b\u0438 \u0432\u044b\u0436\u0438\u0442\u044c.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/en\/blog\/administrirovanie\/tty-terminal-kotoryj-ne-dlya-domashnego-ispolzovaniya\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-02-06T21:00:00+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-02-18T11:04:26+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47TTY \u2014 a terminal that is not for home use | ProHoster","description":"Is it possible to survive.","canonical_url":"https:\/\/prohoster.info\/en\/blog\/administrirovanie\/tty-terminal-kotoryj-ne-dlya-domashnego-ispolzovaniya","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"en_US","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47TTY \u2014 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u0434\u043b\u044f \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f | ProHoster","og:description":"\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043b\u0438 \u0432\u044b\u0436\u0438\u0442\u044c.","og:url":"https:\/\/prohoster.info\/en\/blog\/administrirovanie\/tty-terminal-kotoryj-ne-dlya-domashnego-ispolzovaniya","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2020-02-06T21:00:00+00:00","article:modified_time":"2020-02-18T11:04:26+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"56209","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":null,"breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-02-28 19:29:18","updated":"2022-10-04 10:40:02","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/posts\/56209","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/comments?post=56209"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/posts\/56209\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/media\/56210"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/media?parent=56209"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/categories?post=56209"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/tags?post=56209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}