{"id":289,"date":"2010-12-11T10:23:54","date_gmt":"2010-12-11T16:23:54","guid":{"rendered":"https:\/\/mrguitar.net\/?p=289"},"modified":"2011-01-24T14:02:09","modified_gmt":"2011-01-24T20:02:09","slug":"system-config-more-like-sissy-config","status":"publish","type":"post","link":"https:\/\/mrguitar.net\/?p=289","title":{"rendered":"system-config??? More like sissy-config!"},"content":{"rendered":"<blockquote><p><strong>Sissy<\/strong> is a <a title=\"Pejorative\" href=\"http:\/\/en.wikipedia.org\/wiki\/Pejorative\">pejorative<\/a> for a <a title=\"Boy\" href=\"http:\/\/en.wikipedia.org\/wiki\/Boy\">boy<\/a> or <a title=\"Man\" href=\"http:\/\/en.wikipedia.org\/wiki\/Man\">man<\/a> to indicate that he fails to behave according to the traditional male <a title=\"Gender role\" href=\"http:\/\/en.wikipedia.org\/wiki\/Gender_role\">gender role<\/a>. Generally, it implies a lack of the <a title=\"Courage\" href=\"http:\/\/en.wikipedia.org\/wiki\/Courage\">courage<\/a> and <a title=\"Stoicism\" href=\"http:\/\/en.wikipedia.org\/wiki\/Stoicism\">stoicism<\/a> which are thought important to the male <a title=\"Role\" href=\"http:\/\/en.wikipedia.org\/wiki\/Role\">role<\/a>.<\/p>\n<p>wikipedia<\/p><\/blockquote>\n<p>We all love the ease of a nice graphical interface. Often times GUIs (and TUIs) are great because they lower the barriers of technology, but sometimes this ease of use has a price. In the Linux world my gripes with GUIs are that sometimes they:<\/p>\n<ol>\n<li>lack features of their command line counter parts<\/li>\n<li>are cumbersome<\/li>\n<li>difficult\/impossible to script.<\/li>\n<\/ol>\n<p>RHEL &amp; Fedora ship with a nice set of system tools that begin with the name system-config-*. Sometimes these tools really come in handy, but most of the time I use them I&#8217;m really just being lazy. In fact, I often feel a little guilty for &#8220;cheating&#8221; with these tools. I decided that I could do something about it. I wrote a little script today to help encourage myself and others to limit their use of these utils. It&#8217;s not that there&#8217;s anything wrong with using them, but that there&#8217;s often more efficient methods of accomplishing the end results. Like so many things in life I decided to address this head-on using mockery and sarcasm. This little script will create a symbolic link to a more appropriate command name, and if you chicken out, it will mock you. :)<\/p>\n<pre>#!\/bin\/bash\r\ncmds=(`ls \/usr\/bin\/system-config-*`)\r\nnum=${#cmds[*]}\r\ni=0\r\necho -e \"There are $num potential \\e[01;35m sissy-config\\e[00m commands on this system.\"\r\necho \"Do you wish to convirt them?\"\r\nselect yn in \"Yes\" \"No\"; do\r\n  case $yn in\r\n    Yes)\r\n       while [ $i -lt $num ]; do\r\n       c=$(echo ${cmds[$i]} | sed \"s\/system-config\/sissy-config\/g\")\r\n       ln -s ${cmds[$1]} $c\r\n       let i++\r\ndone; exit;;\r\n    No) echo \"OMFG! You are a sissy!!\"; exit;;\r\n   esac\r\ndone<\/pre>\n<p>You can download the script <a href=\"http:\/\/db.tt\/hSgCTqf\">here.<\/a> Don&#8217;t forget to run it as root or use sudo.<\/p>\n<p>Cheers.<\/p>\n<p><strong><span style=\"color: #ff0000;\">***Update***<\/span><\/strong><\/p>\n<p>While the script functions perfectly, the links do not execute properly. I&#8217;ve tried substituting cp &amp; mv and I get the same result. I don&#8217;t understand what I&#8217;m missing. I hope someone can comment and shed some light on this for me.<\/p>\n<p><strong><span style=\"color: #ff0000;\">***Update 2***<\/span><\/strong><\/p>\n<p>The problem with this script is that for some it creates a symlink to a symlink for some of these utilities. For this to work properly the script would need to search for the actual binaries. Maybe one day I&#8217;ll have time to fix this.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sissy is a pejorative for a boy or man to indicate that he fails to behave according to the traditional male gender role. Generally, it implies a lack of the courage and stoicism which are thought important to the male role. wikipedia We all love the ease of a nice graphical interface. Often times GUIs &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/mrguitar.net\/?p=289\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;system-config??? More like sissy-config!&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[6],"tags":[32,13,28,41,40],"class_list":["post-289","post","type-post","status-publish","format-standard","hentry","category-open-sourcenerd-stuff","tag-fedora","tag-linux","tag-red-hat","tag-sissy-config","tag-system-config"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mrguitar.net\/index.php?rest_route=\/wp\/v2\/posts\/289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mrguitar.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mrguitar.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mrguitar.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mrguitar.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=289"}],"version-history":[{"count":16,"href":"https:\/\/mrguitar.net\/index.php?rest_route=\/wp\/v2\/posts\/289\/revisions"}],"predecessor-version":[{"id":314,"href":"https:\/\/mrguitar.net\/index.php?rest_route=\/wp\/v2\/posts\/289\/revisions\/314"}],"wp:attachment":[{"href":"https:\/\/mrguitar.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mrguitar.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mrguitar.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}