{"id":685,"date":"2021-09-30T21:00:43","date_gmt":"2021-10-01T00:00:43","guid":{"rendered":"https:\/\/blog.galsoft.duckdns.org\/?p=685"},"modified":"2021-09-30T21:00:47","modified_gmt":"2021-10-01T00:00:47","slug":"configurar-proxy-en-linux","status":"publish","type":"post","link":"https:\/\/blog.galsoft.com.ar\/?p=685","title":{"rendered":"Configurar proxy en Linux"},"content":{"rendered":"<p>Como configurar un proxy en Linux v\u00eda terminal.<\/p>\n<p>Generalmente con un proxy com\u00fan la configuraci\u00f3n consiste en:<\/p>\n<p>Editar el archivo \/etc\/bash.bashrc<\/p>\n<p><strong>$ sudo nano \/etc\/bash.bashrc<\/strong><\/p>\n<p>Poner las siguientes l\u00edneas al final de este archivo<\/p>\n<p><strong>export http_proxy=http:\/\/username:password@proxyserver.net:port\/<\/strong><br><strong>export https_proxy=http:\/\/username:password@proxyserver.net:port\/<\/strong><br><strong>export ftp_proxy=http:\/\/username:password@proxyserver.net:port\/<\/strong><\/p>\n<p>Editar el archivo \/etc\/environment<\/p>\n<p>$ <strong>sudo nano \/etc\/environment<\/strong><\/p>\n<p>Poner las siguientes lineas al final de este archivo<\/p>\n<p><strong>http_proxy=http:\/\/username:password@proxyserver.net:port\/<\/strong><br><strong>https_proxy=http:\/\/username:password@proxyserver.net:port\/<\/strong><br><strong>ftp_proxy=http:\/\/username:password@proxyserver.net:port\/<\/strong><\/p>\n<p>Editar el archivo \/etc\/apt\/apt.conf<\/p>\n<p>$ <strong>sudo nano \/etc\/apt\/apt.conf<\/strong><\/p>\n<p>Poner las siguientes l\u00edneas al final del archivo:<\/p>\n<p><strong>Acquire::http::Proxy \u201chttp:\/\/username:password@proxyserver.net:port\u201d;<\/strong><br><strong>Acquire::https::Proxy \u201chttp:\/\/username:password@proxyserver.net:port\u201d;<\/strong><br><strong>Acquire::ftp::Proxy \u201chttp:\/\/username:password@proxyserver.net:port\u201d;<\/strong><\/p>\n<p>Si no existen usuario y contrase\u00f1a para validar, solo se pone lo que<br>continua despues de @, en formato ip:puerto<\/p>","protected":false},"excerpt":{"rendered":"<p>Como configurar un proxy en Linux v\u00eda terminal. Generalmente con un proxy com\u00fan la configuraci\u00f3n consiste en: Editar el archivo \/etc\/bash.bashrc $ sudo nano \/etc\/bash.bashrc Poner las siguientes l\u00edneas al final de este archivo export http_proxy=<a href=\"http:\/\/username:password@proxyserver.net:port\/export\">http:\/\/username:password@proxyserver.net:port\/export<\/a> https_proxy=<a href=\"http:\/\/username:password@proxyserver.net:port\/export\">http:\/\/username:password@proxyserver.net:port\/export<\/a> ftp_proxy=<a href=\"http:\/\/username:password@proxyserver.net:port\/\">http:\/\/username:password@proxyserver.net:port\/<\/a> Editar el archivo \/etc\/environment $ sudo nano \/etc\/environment Poner las siguientes lineas al final de este archivo [&hellip;]<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"0","ocean_second_sidebar":"0","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"0","ocean_custom_header_template":"0","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"0","ocean_menu_typo_font_family":"0","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"0","ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"off","ocean_gallery_id":[],"footnotes":""},"categories":[1],"tags":[],"class_list":["post-685","post","type-post","status-publish","format-standard","hentry","category-linux","entry"],"_links":{"self":[{"href":"https:\/\/blog.galsoft.com.ar\/index.php?rest_route=\/wp\/v2\/posts\/685","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.galsoft.com.ar\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.galsoft.com.ar\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.galsoft.com.ar\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.galsoft.com.ar\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=685"}],"version-history":[{"count":1,"href":"https:\/\/blog.galsoft.com.ar\/index.php?rest_route=\/wp\/v2\/posts\/685\/revisions"}],"predecessor-version":[{"id":686,"href":"https:\/\/blog.galsoft.com.ar\/index.php?rest_route=\/wp\/v2\/posts\/685\/revisions\/686"}],"wp:attachment":[{"href":"https:\/\/blog.galsoft.com.ar\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=685"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.galsoft.com.ar\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=685"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.galsoft.com.ar\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=685"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}