{"id":260,"date":"2009-05-19T22:33:50","date_gmt":"2009-05-20T01:33:50","guid":{"rendered":"http:\/\/wordpress.matbra.com\/?p=260"},"modified":"2010-07-25T02:13:29","modified_gmt":"2010-07-25T05:13:29","slug":"executar-script-ao-iniciar-computador","status":"publish","type":"post","link":"https:\/\/wordpress.matbra.com\/en\/2009\/05\/19\/executar-script-ao-iniciar-computador\/","title":{"rendered":"Execute file in computer startup"},"content":{"rendered":"<p>Good Night,<\/p>\n<p>This is a simple tip, how to execute some file in computer startup. (I used this tip to enable the port forward on startup)<\/p>\n<p>Copy your file to \/etc\/init.d\/ using &#8220;cp file \/etc\/init.d\/file&#8221; <\/p>\n<p>Edit \/etc\/rc.local (as root) and add the file that you want to execute. You must use the full path like \/etc\/init.d\/file.sh for example. <\/p>\n<p>The file must have execution permissions, do this using &#8220;chmod +x \/etc\/init.d\/file.sh&#8221;<\/p>\n<p>Matheus<\/p>\n<p>PS: You must add the line before &#8220;exit 0&#8221; in rc.local<br \/>\n<\/p>","protected":false},"excerpt":{"rendered":"<p>Good Night, This is a simple tip, how to execute some file in computer startup. (I used this tip to enable the port forward on&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/wordpress.matbra.com\/en\/2009\/05\/19\/executar-script-ao-iniciar-computador\/\">Continue reading<span class=\"screen-reader-text\">Execute file in computer startup<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":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","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[34],"tags":[100,98,99,319],"class_list":["post-260","post","type-post","status-publish","format-standard","hentry","category-linux","tag-firewall","tag-iniciar","tag-init","tag-linux","entry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/psjGE-4c","_links":{"self":[{"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/posts\/260","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/comments?post=260"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/posts\/260\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/media?parent=260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/categories?post=260"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.matbra.com\/en\/wp-json\/wp\/v2\/tags?post=260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}