{"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\/hu\/blog\/administrirovanie\/tty-terminal-kotoryj-ne-dlya-domashnego-ispolzovaniya","title":{"rendered":"TTY \u2014 termin\u00e1l, amely nem otthoni haszn\u00e1latra k\u00e9sz\u00fclt","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p><img decoding=\"async\" alt=\"TTY \u2014 termin\u00e1l, amely nem otthoni haszn\u00e1latra k\u00e9sz\u00fclt\" src=\"\/wp-content\/uploads\/2020\/02\/c1c0afe0522c210d350a1cf8d3855119.jpg\" style=\"display:block;margin: 0 auto;\" \/><\/p>\n<p><\/p>\n<p>Lehets\u00e9ges t\u00fal\u00e9lni csak a TTY lehet\u0151s\u00e9geivel? Itt van a r\u00f6vid t\u00f6rt\u00e9netem arr\u00f3l, hogyan szenvedtem a TTY-vel, v\u00e1gyva arra, hogy norm\u00e1lisan m\u0171k\u00f6dj\u00f6n.<\/p>\n<p><noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><\/p>\n<h1 id=\"predystoriya\">H\u00e1tt\u00e9r<\/h1>\n<p><\/p>\n<p>Nemr\u00e9g a r\u00e9gi laptopomon t\u00f6nkrement a videok\u00e1rtya. Annyira t\u00f6nkrement, hogy m\u00e9g egy oper\u00e1ci\u00f3s rendszer telep\u00edt\u0151t sem tudtam elind\u00edtani. A Windows telep\u00edt\u00e9se hib\u00e1kkal le\u00e1llt az alapvet\u0151 illeszt\u0151programok install\u00e1l\u00e1sakor. A Linux telep\u00edt\u00e9se egy\u00e1ltal\u00e1n nem akart elindulni, m\u00e9g akkor sem, ha a boot konfigur\u00e1ci\u00f3ban be\u00edrtam a nouveau.modeset=0-t.<br \/>\nNem akartam \u00faj grafikus k\u00e1rty\u00e1t venni egy laptophoz, amely m\u00e1r szolg\u00e1latot tett. Azonban, mint igazi Linux-haszn\u00e1l\u00f3, kezdtem azon gondolkodni: \"Mi\u00e9rt ne csin\u00e1ln\u00e9k egy termin\u00e1lg\u00e9pet a laptopomb\u00f3l, ahogy az a 80-as \u00e9vekben volt?\". \u00cdgy sz\u00fcletett meg az \u00f6tlet, hogy ne telep\u00edtsek xserver-t Linuxra, hanem pr\u00f3b\u00e1ljak meg \u00e9lni TTY-n (\u00fcres konzolon).<\/p>\n<p><\/p>\n<h1 id=\"pervye-trudnosti\">Az els\u0151 neh\u00e9zs\u00e9gek<\/h1>\n<p><\/p>\n<p>A PC-re telep\u00edtettem <noindex><a rel=\"nofollow\" href=\"https:\/\/www.archlinux.org\/\">Arch Linux<\/a><\/noindex>. Szeretem ezt a disztrib\u00faci\u00f3t, mert b\u00e1rmilyen m\u00f3don testre szabhat\u00f3 (\u00e9s maga a telep\u00edt\u00e9s is konzolb\u00f3l t\u00f6rt\u00e9nt, ami nekem hasznos volt). A k\u00e9zik\u00f6nyvet k\u00f6vetve telep\u00edtettem a rendszert, mint mindig. Most szerettem volna megn\u00e9zni, mit tud a konzol. Sejtettem, hogy xserver n\u00e9lk\u00fcl sz\u00e1mos lehet\u0151s\u00e9gt\u0151l megfosztottam magam. Meg akartam n\u00e9zni, hogy az \u00fcres konzol le tudja-e j\u00e1tszani a vide\u00f3t vagy meg tudja-e mutatni a f\u00e9nyk\u00e9pet (ahogy ezt a w3m teszi konzolon), de minden pr\u00f3b\u00e1lkoz\u00e1som hi\u00e1baval\u00f3 volt. Ezut\u00e1n elkezdtem b\u00f6ng\u00e9sz\u0151ket kipr\u00f3b\u00e1lni, ahol szembe ker\u00fcltem a v\u00e1g\u00f3lap probl\u00e9m\u00e1j\u00e1val: ez teljesen haszontalan GUI n\u00e9lk\u00fcl. Nem tudok semmit kijel\u00f6lni, a v\u00e1g\u00f3lap \u00fcres. Persze van bels\u0151 v\u00e1g\u00f3lap (mint a Vim-n\u00e1l), de az bels\u0151, eml\u00e9kszem, hogy a Vim konfigur\u00e1ci\u00f3kban meg lehet hat\u00e1rozni a k\u00fcls\u0151 v\u00e1g\u00f3lap haszn\u00e1lat\u00e1t, de itt felmer\u00fclt a k\u00e9rd\u00e9s: mi\u00e9rt? Olyan voltam, mintha ketrecbe z\u00e1rtak volna. Vide\u00f3t nem n\u00e9zhetek, mert xserver sz\u00fcks\u00e9ges, az alsa-mixer sem m\u0171k\u00f6dik n\u00e9lk\u00fcle, \u00edgy nincs hang, a b\u00f6ng\u00e9sz\u0151k haszontalanok, t\u00e9nyleg mind. <noindex><a rel=\"nofollow\" href=\"http:\/\/w3m.sourceforge.net\/\">w3m<\/a><\/noindex> (ami nem t\u00f6lt\u00f6tt be k\u00e9peket), <noindex><a rel=\"nofollow\" href=\"http:\/\/elinks.or.cz\/\">elinks<\/a><\/noindex> (ami b\u00e1r k\u00e9nyelmes volt, de szint\u00e9n teljesen haszontalan), <noindex><a rel=\"nofollow\" href=\"https:\/\/www.brow.sh\/\">browsh<\/a><\/noindex> (ami minden k\u00e9pet ASCII \u00e1br\u00e1zol\u00e1sk\u00e9nt dolgozott fel \u00e9s k\u00fcld\u00f6tt a termin\u00e1lba, de ott nem lehetett hivatkoz\u00e1sokra kattintani). A nap estefel\u00e9 j\u00e1rt, \u00e9s a kezemben volt egy \"csonk\", amivel csak k\u00f3dot lehetett ford\u00edtani. A maximum, amit tehettem, az az volt, hogy seg\u00edts\u00e9get kerestem a k\u00f3dhoz a how2-n \u00e9s surf-oltam a ddgr seg\u00edts\u00e9g\u00e9vel.<\/p>\n<p><\/p>\n<h1 id=\"tak-est-li-vyhod\">Van teh\u00e1t ki\u00fat?<\/h1>\n<p><\/p>\n<p>Itt elkezdem gondolkodni, hogy nem a helyes \u00faton j\u00e1rok. K\u00f6nnyebb lenne csak grafikus k\u00e1rty\u00e1t venni, mint a f\u00e9lk\u00e9sz cuccal szenvedni. Nem mondan\u00e1m, hogy a Linux egyed\u00fcl TTY-vel teljesen haszontalan rendszer, nem, lehet, hogy a szerver-adminisztr\u00e1toroknak megfelel\u0151 lehet, de az \u00e9n c\u00e9lom az volt, hogy a TTY-b\u00f3l \"cukork\u00e1t\" csin\u00e1ljak, \u00e9s v\u00e9g\u00fcl Frankenstein sz\u00f6rny lett bel\u0151le, amely g\u00f6rcs\u00f6lt, amikor GUI-val kellett m\u0171veleteket v\u00e9geznie. T\u00f6bbre v\u00e1gytam, \u00edgy v\u00e9gleg lemondtam a vide\u00f3- \u00e9s audiomateri\u00e1lok lej\u00e1tsz\u00e1s\u00e1r\u00f3l, \u00e9s elkezdtem gondolkodni, hogyan csin\u00e1ljak SSH-szervert, amivel sz\u00f3rakozhatok, amikor nem vagyok otthon.<\/p>\n<p><\/p>\n<h3 id=\"chego-imenno-ya-hotel\">What exactly did I want?<\/h3>\n<p><\/p>\n<ul>\n<li>Working with code: Vim, NeoVim, linters, debuggers, interpreters, compilers, and everything else.<\/li>\n<li>The ability to surf the internet calmly.<\/li>\n<li>Software for the institution (at least some programs that can render documents online 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 configured Vim, Nvim, and all the other joys of a lazy programmer fairly quickly. However, the ability to surf the internet turned out to be challenging (<em>who would have thought<\/em>), as I still can't copy links. Then I thought that surfing the internet from the console <em>was at least unreasonable.<\/em> I started looking for alternatives. Finding RSS readers for the console took a while, but I eventually found a couple, and I began using them and enjoying the flow of information.<br \/>\nNow for the software to work with documents. Here, I had to put in some effort and write a script to render my .md file without a graphics card (<em>the irony<\/em>). For this, I used a service for viewing and sending .md files, and then, with the help of another service for processing web pages into .pdf, I created documents. Problem solved.<\/p>\n<p><\/p>\n<p>There were also some problems with convenience. 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\">ez<\/a><\/noindex>. Also, the issue of panels (or rather their lack), which was quickly solved using tmux. I chose Ranger + fzf and ripgrep for fast searching as my file manager. I picked elinks as my browser (due to the fact that you can navigate links using numbers). There were a few other issues, but they were quickly resolved with a specific set of utilities.<\/p>\n<p><\/p>\n<h1 id=\"rezultat\">Eredm\u00e9ny<\/h1>\n<p><\/p>\n<p>Nem \u00e9rte meg az id\u0151t, amit erre ford\u00edtottam. Azonnal figyelmeztetem, hogy ha egy id\u0151re a konzolra v\u00e1ltasz, k\u00e9sz\u00fclj fel arra, hogy egy kis szenved\u00e9s v\u00e1r r\u00e1d. Ennek ellen\u00e9re v\u00e9g\u00fcl egy teljesen m\u0171k\u00f6d\u0151 rendszert kaptam, f\u00e1jlkezel\u0151vel, panelek, b\u00f6ng\u00e9sz\u0151k, szerkeszt\u0151k \u00e9s ford\u00edt\u00f3k t\u00e1rsas\u00e1g\u00e1ban. \u00d6sszess\u00e9g\u00e9ben nem rossz, de egy h\u00e9t ut\u00e1n egyszer\u0171en nem b\u00edrtam tov\u00e1bb, \u00e9s vettem egy \u00faj sz\u00e1m\u00edt\u00f3g\u00e9pet. Ezzel be is fejeztem. Ossz\u00e1tok meg a tapasztalataitokat, k\u00edv\u00e1ncsi lenn\u00e9k, mit csin\u00e1ltatok, amikor egy ideig konzol- csak m\u00f3dba ker\u00fcltetek.<\/p>\n<p>Forr\u00e1s: <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.3 - 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\/hu\/blog\/administrirovanie\/tty-terminal-kotoryj-ne-dlya-domashnego-ispolzovaniya\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<meta property=\"og:locale\" content=\"hu_HU\" \/>\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\/hu\/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 termin\u00e1l, amely nem otthoni haszn\u00e1latra k\u00e9sz\u00fclt | ProHoster","description":"Lehets\u00e9ges t\u00fal\u00e9lni.","canonical_url":"https:\/\/prohoster.info\/hu\/blog\/administrirovanie\/tty-terminal-kotoryj-ne-dlya-domashnego-ispolzovaniya","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"hu_HU","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\/hu\/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\/hu\/wp-json\/wp\/v2\/posts\/56209","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/comments?post=56209"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts\/56209\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/media\/56210"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/media?parent=56209"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/categories?post=56209"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/tags?post=56209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}