title: OpenIndiana driving me nuts: install vlc

text: I've scoured the internet in search of a way to install VLC on OpenIndiana version 158a and I cannot find it. Here are the error messages I'm getting:                No suitable version of required package pkg://openindiana.org/SUNWless@436,5.11-0.133:20140117T203457Z found:         Reject:  pkg://openindiana.org/SUNWless@436,5.11-0.133:20140117T203457Z         Reason:  All versions matching 'require' dependency pkg:/text/less@436,5.11-0.151.1.9 are rejected           Reject:  pkg://openindiana.org/text/less@436,5.11-0.151.1.9:20140117T203457Z           Reason:  This version is excluded by installed incorporation pkg://openindiana.org/consolidation/sfw/sfw-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z           Reject:  pkg://solaris/text/less@436,5.11-0.175.0.0.0.2.537:20111019T120500Z                    pkg://solaris/text/less@436,5.11-0.175.1.0.0.24.0:20120904T174442Z           Reason:  Currently installed package 'text/less' is from sticky publisher 'openindiana.org'.                    This version is excluded by installed incorporation pkg://openindiana.org/consolidation/sfw/sfw-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z       No suitable version of required package pkg://openindiana.org/SUNWapch22m-jk@1.2.28,5.11-0.133:20120502T231432Z found:         Reject:  pkg://openindiana.org/SUNWapch22m-jk@1.2.28,5.11-0.133:20120502T231432Z         Reason:  A version for 'require' dependency on pkg:/web/server/apache-22/plugin/plugin-tomcat@1.2.28,5.11-0.151.1.4 cannot be found       No suitable version of required package pkg://openindiana.org/SUNWsmdoc@5.0.9,5.11-0.130:20120902T085559Z found:         Reject:  pkg://openindiana.org/SUNWsmdoc@5.0.9,5.11-0.130:20120902T085559Z         Reason:  A version for 'require' dependency on pkg:/SUNWnet-snmp-doc@5.4.1,5.11-0.151.1.6 cannot be found       No suitable version of required package pkg://openindiana.org/SUNWmysql5test@5.0.86,5.11-0.133:20110912T022246Z found:         Reject:  pkg://openindiana.org/SUNWmysql5test@5.0.86,5.11-0.133:20110912T022246Z         Reason:  A version for 'require' dependency on pkg:/database/mysql-5/tests@5.0.86,5.11-0.151.1 cannot be found       No suitable version of required package pkg://openindiana.org/web/server/apache-22/plugin/plugin-security@2.5.9,5.11-0.134:20140117T203607Z found:         Reject:  pkg://openindiana.org/web/server/apache-22/plugin/plugin-security@2.5.9,5.11-0.134:20140117T203607Z         Reason:  All versions matching 'require' dependency pkg:/web/server/apache-22/module/apache-security@2.5.9,5.11-0.151.1.9 are rejected           Reject:  pkg://openindiana.org/web/server/apache-22/module/apache-security@2.5.9,5.11-0.151.1.9:20140117T203606Z           Reason:  This version is excluded by installed incorporation pkg://openindiana.org/consolidation/sfw/sfw-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z           Reject:  pkg://solaris/web/server/apache-22/module/apache-security@2.5.9,5.11-0.175.0.0.0.2.537:20111019T121840Z                    pkg://solaris/web/server/apache-22/module/apache-security@2.5.9,5.11-0.175.1.0.0.24.0:20120904T175054Z           Reason:  Higher ranked publisher openindiana.org was selected                    This version is excluded by installed incorporation pkg://openindiana.org/consolidation/sfw/sfw-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z       No suitable version of required package pkg://openindiana.org/SUNWlibevent@1.3.5,5.11-0.133:20140117T202701Z found:         Reject:  pkg://openindiana.org/SUNWlibevent@1.3.5,5.11-0.133:20140117T202701Z         Reason:  All versions matching 'require' dependency pkg:/library/libevent@1.4.14.2,5.11-0.151.1.9 are rejected           Reject:  pkg://openindiana.org/library/libevent@1.4.14.2,5.11-0.151.1.9:20140117T202701Z           Reason:  This version is excluded by installed incorporation pkg://openindiana.org/consolidation/sfw/sfw-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z           Reject:  pkg://solaris/library/libevent@1.4.14.2,5.11-0.175.1.0.0.24.0:20120904T172541Z           Reason:  Higher ranked publisher openindiana.org was selected                    This version is excluded by installed incorporation pkg://openindiana.org/consolidation/sfw/sfw-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z       No suitable version of required package pkg://openindiana.org/SUNWprivoxy@3.0.8,5.11-0.133:20140117T203600Z found:         Reject:  pkg://openindiana.org/SUNWprivoxy@3.0.8,5.11-0.133:20140117T203600Z         Reason:  All versions matching 'require' dependency pkg:/web/proxy/privoxy@3.0.8,5.11-0.151.1.9 are rejected           Reject:  pkg://openindiana.org/web/proxy/privoxy@3.0.8,5.11-0.151.1.9:20140117T203558Z           Reason:  This version is excluded by installed incorporation pkg://openindiana.org/consolidation/sfw/sfw-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z           Reject:  pkg://solaris/web/proxy/privoxy@3.0.17,5.11-0.175.0.0.0.2.537:20111019T121232Z                    pkg://solaris/web/proxy/privoxy@3.0.17,5.11-0.175.1.0.0.24.0:20120904T174956Z           Reason:  Higher ranked publisher openindiana.org was selected                    This version is excluded by installed incorporation pkg://openindiana.org/consolidation/sfw/sfw-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z       No suitable version of required package pkg://openindiana.org/SUNWcups@1.4.2,5.11-0.133:20140117T203006Z found:         Reject:  pkg://openindiana.org/SUNWcups@1.4.2,5.11-0.133:20140117T203006Z         Reason:  All versions matching 'require' dependency pkg:/print/cups@1.4.2,5.11-0.151.1.9 are rejected           Reject:  pkg://openindiana.org/print/cups@1.4.2,5.11-0.151.1.9:20140117T203003Z           Reason:  This version is excluded by installed incorporation pkg://openindiana.org/consolidation/sfw/sfw-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z           Reject:  pkg://solaris/print/cups@1.4.5,5.11-0.175.0.0.0.2.537:20111019T110834Z                    pkg://solaris/print/cups@1.4.5,5.11-0.175.1.0.0.24.0:20120904T173040Z           Reason:  Currently installed package 'print/cups' is from sticky publisher 'openindiana.org'.                    This version is excluded by installed incorporation pkg://openindiana.org/consolidation/sfw/sfw-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z       No suitable version of required package pkg://openindiana.org/SUNWapch22m-fcgid@2.3.4,5.11-0.133:20120329T215038Z found:         Reject:  pkg://openindiana.org/SUNWapch22m-fcgid@2.3.4,5.11-0.133:20120329T215038Z         Reason:  A version for 'require' dependency on pkg:/web/server/apache-22/plugin/plugin-fastcgi@2.3.4,5.11-0.151.1.3 cannot be found       No suitable version of required package pkg://openindiana.org/SUNWpython26-simplejson@0.5.11,5.11-0.133:20120902T084315Z found:         Reject:  pkg://openindiana.org/SUNWpython26-simplejson@0.5.11,5.11-0.133:20120902T084315Z         Reason:  All versions matching 'require' dependency pkg:/library/python-2/simplejson-devel-26@0.5.11,5.11-0.151.1.6 are rejected           Reject:  pkg://solaris/library/python-2/simplejson-devel-26@0.5.11,5.11-0.175.0.0.0.0.0:20110927T111040Z           Reason:  Higher ranked publisher openindiana.org was selected                    This version is excluded by installed incorporation pkg://openindiana.org/consolidation/gnome/gnome-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z       No suitable version of required package pkg://openindiana.org/system/input-method/library/m17n/contrib@0.5.11,5.11-0.151.1.9:20140117T210609Z found:         Reject:  pkg://openindiana.org/system/input-method/library/m17n/contrib@0.5.11,5.11-0.151.1.9:20140117T210609Z         Reason:  All versions matching 'require' dependency pkg:/text/gawk@3.1.5,5.11-0.151.1.9 are rejected           Reject:  pkg://openindiana.org/text/gawk@3.1.5,5.11-0.151.1.9:20140117T203448Z           Reason:  This version is excluded by installed incorporation pkg://openindiana.org/consolidation/sfw/sfw-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z           Reject:  pkg://solaris/text/gawk@3.1.5,5.11-0.175.0.0.0.2.537:20111019T120248Z                    pkg://solaris/text/gawk@3.1.8,5.11-0.175.0.10.1.0.0:20120918T171830Z                    pkg://solaris/text/gawk@3.1.8,5.11-0.175.1.0.0.24.0:20120904T174414Z           Reason:  Currently installed package 'text/gawk' is from sticky publisher 'openindiana.org'.                    This version is excluded by installed incorporation pkg://openindiana.org/consolidation/sfw/sfw-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z       No suitable version of required package pkg://openindiana.org/system/input-method/scim/anthy@1.2.4,5.11-0.151.1.9:20140117T210614Z found:         Reject:  pkg://openindiana.org/system/input-method/scim/anthy@1.2.4,5.11-0.151.1.9:20140117T210614Z         Reason:  All versions matching 'require' dependency pkg:/system/input-method/library/libanthy@0.5.11,5.11-0.151.1.9 are rejected           Reject:  pkg://openindiana.org/system/input-method/library/libanthy@0.5.11,5.11-0.151.1.9:20140117T210550Z           Reason:  All versions matching 'require' dependency pkg:/system/library/math@0.5.11,5.11-0.151.1.9 are rejected             Reject:  pkg://openindiana.org/system/library/math@0.5.11,5.11-0.151.1.9:20140117T203342Z             Reason:  This version is excluded by installed incorporation pkg://openindiana.org/consolidation/sunpro/sunpro-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z             Reject:  pkg://solaris/system/library/math@0.5.11,5.11-0.174.0.0.0.0.0:20110921T190432Z                      pkg://solaris/system/library/math@0.5.11,5.11-0.175.1.0.0.19.0:20120625T151932Z             Reason:  Currently installed package 'system/library/math' is from sticky publisher 'openindiana.org'.                      This version is excluded by installed incorporation pkg://openindiana.org/consolidation/sunpro/sunpro-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z           Reject:  pkg://solaris/system/input-method/library/libanthy@0.5.11,5.11-0.175.0.0.0.1.765:20111012T045650Z                    pkg://solaris/system/input-method/library/libanthy@0.5.11,5.11-0.175.1.0.0.23.1134:20120820T155244Z           Reason:  Currently installed package 'system/input-method/library/libanthy' is from sticky publisher 'openindiana.org'.       No suitable version of required package pkg://openindiana.org/SUNWlibvirt@0.5.11,5.11-0.133:20140117T203612Z found:         Reject:  pkg://openindiana.org/SUNWlibvirt@0.5.11,5.11-0.133:20140117T203612Z         Reason:  All versions matching 'require' dependency pkg:/system/library/libvirt@0.5.11,5.11-0.151.1.9 are rejected           Reject:  pkg://openindiana.org/system/library/libvirt@0.5.11,5.11-0.151.1.9:20140117T203612Z           Reason:  This version is excluded by installed incorporation pkg://openindiana.org/consolidation/xvm/xvm-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z       No suitable version of required package pkg://openindiana.org/SUNWvirtinst@0.5.11,5.11-0.133:20140117T203613Z found:         Reject:  pkg://openindiana.org/SUNWvirtinst@0.5.11,5.11-0.133:20140117T203613Z         Reason:  All versions matching 'require' dependency pkg:/system/virtinst@0.5.11,5.11-0.151.1.9 are rejected           Reject:  pkg://openindiana.org/system/virtinst@0.5.11,5.11-0.151.1.9:20140117T203614Z           Reason:  This version is excluded by installed incorporation pkg://openindiana.org/consolidation/xvm/xvm-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z       No suitable version of required package pkg://openindiana.org/xvm@0.5.11,5.11-0.134:20140117T203707Z found:         Reject:  pkg://openindiana.org/xvm@0.5.11,5.11-0.134:20140117T203707Z         Reason:  All versions matching 'require' dependency pkg:/system/xvm@0.5.11,5.11-0.151.1.9 are rejected           Reject:  pkg://openindiana.org/system/xvm@0.5.11,5.11-0.151.1.9:20140117T203707Z           Reason:  This version is excluded by installed incorporation pkg://openindiana.org/consolidation/xvm/xvm-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z       No suitable version of required package pkg://openindiana.org/SUNWxvmdom@3.4.2,5.11-0.133:20140117T203613Z found:         Reject:  pkg://openindiana.org/SUNWxvmdom@3.4.2,5.11-0.133:20140117T203613Z         Reason:  All versions matching 'require' dependency pkg:/system/xvm/xvmstore@3.4.2,5.11-0.151.1.9 are rejected           Reject:  pkg://openindiana.org/system/xvm/xvmstore@3.4.2,5.11-0.151.1.9:20140117T203615Z           Reason:  This version is excluded by installed incorporation pkg://openindiana.org/consolidation/xvm/xvm-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z       No suitable version of required package pkg://openindiana.org/SUNWvdisk@0.5.11,5.11-0.133:20140117T203613Z found:         Reject:  pkg://openindiana.org/SUNWvdisk@0.5.11,5.11-0.133:20140117T203613Z         Reason:  All versions matching 'require' dependency pkg:/system/storage/vdiskadm@0.5.11,5.11-0.151.1.9 are rejected           Reject:  pkg://openindiana.org/system/storage/vdiskadm@0.5.11,5.11-0.151.1.9:20140117T203613Z           Reason:  This version is excluded by installed incorporation pkg://openindiana.org/consolidation/xvm/xvm-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z       No suitable version of required package pkg://openindiana.org/SUNWDTraceToolkit@0.5.11,5.11-0.144:20140117T202034Z found:         Reject:  pkg://openindiana.org/SUNWDTraceToolkit@0.5.11,5.11-0.144:20140117T202034Z         Reason:  All versions matching 'require' dependency pkg:/developer/dtrace/toolkit@0.5.11,5.11-0.151.1.9 are rejected           Reject:  pkg://openindiana.org/developer/dtrace/toolkit@0.5.11,5.11-0.151.1.9:20140117T202032Z           Reason:  This version is excluded by installed incorporation pkg://openindiana.org/consolidation/admin/admin-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z           Reject:  pkg://solaris/developer/dtrace/toolkit@0.99,5.11-0.173.0.0.0.1.0:20110826T145551Z           Reason:  Currently installed package 'developer/dtrace/toolkit' is from sticky publisher 'openindiana.org'.                    This version is excluded by installed incorporation pkg://openindiana.org/consolidation/admin/admin-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z       No suitable version of required package pkg://openindiana.org/SUNWdistro-license-copyright@0.5.11,5.11-0.133:20120209T202643Z found:         Reject:  pkg://openindiana.org/SUNWdistro-license-copyright@0.5.11,5.11-0.133:20120209T202643Z         Reason:  A version for 'require' dependency on pkg:/release/copyright@0.5.11,5.11-0.151.1.2 cannot be found       No suitable version of required package pkg://openindiana.org/SUNWdistro-license-copyright@0.5.11,5.11-0.133:20120114T201201Z found:         Reject:  pkg://openindiana.org/SUNWdistro-license-copyright@0.5.11,5.11-0.133:20120114T201201Z         Reason:  A version for 'require' dependency on pkg:/release/copyright@0.5.11,5.11-0.151.1.1 cannot be found       No suitable version of required package pkg://openindiana.org/SUNWpython26-lxml@2.1.2,5.11-0.144:20140117T202836Z found:         Reject:  pkg://openindiana.org/SUNWpython26-lxml@2.1.2,5.11-0.144:20140117T202836Z         Reason:  All versions matching 'require' dependency pkg:/library/python-2/lxml-26@2.1.2,5.11-0.151.1.9 are rejected           Reject:  pkg://openindiana.org/library/python-2/lxml-26@2.1.2,5.11-0.151.1.9:20140117T202836Z           Reason:  This version is excluded by installed incorporation pkg://openindiana.org/consolidation/admin/admin-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z           Reject:  pkg://solaris/library/python-2/lxml-26@2.1.2,5.11-0.175.0.0.0.2.537:20111019T104936Z                    pkg://solaris/library/python-2/lxml-26@2.3.3,5.11-0.175.1.0.0.24.0:20120904T172712Z           Reason:  Higher ranked publisher openindiana.org was selected                    This version is excluded by installed incorporation pkg://openindiana.org/consolidation/admin/admin-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z       No suitable version of required package pkg://openindiana.org/SUNWadmap@0.5.11,5.11-0.151:20140117T203411Z found:         Reject:  pkg://openindiana.org/SUNWadmap@0.5.11,5.11-0.151:20140117T203411Z         Reason:  All versions matching 'require' dependency pkg:/system/management/sysidtool@0.5.11,5.11-0.151.1.9 are rejected           Reject:  pkg://openindiana.org/system/management/sysidtool@0.5.11,5.11-0.151.1.9:20140117T203411Z           Reason:  This version is excluded by installed incorporation pkg://openindiana.org/consolidation/admin/admin-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z       No suitable version of required package pkg://openindiana.org/SUNWsolnm@0.5.11,5.11-0.133:20140117T203030Z found:         Reject:  pkg://openindiana.org/SUNWsolnm@0.5.11,5.11-0.133:20140117T203030Z         Reason:  All versions matching 'require' dependency pkg:/release/name@0.5.11,5.11-0.151.1.9 are rejected           Reject:  pkg://openindiana.org/release/name@0.5.11,5.11-0.151.1.9:20140117T203030Z           Reason:  This version is excluded by installed incorporation pkg://openindiana.org/consolidation/solaris_re/solaris_re-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z           Reject:  pkg://solaris/release/name@0.5.11,5.11-0.175.0.0.0.2.0:20111019T122735Z                    pkg://solaris/release/name@0.5.11,5.11-0.175.1.0.0.24.3:20120919T185319Z           Reason:  Currently installed package 'release/name' is from sticky publisher 'openindiana.org'.                    This version is excluded by installed incorporation pkg://openindiana.org/consolidation/solaris_re/solaris_re-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z       No suitable version of required package pkg://openindiana.org/SUNWadmlib-sysid@0.5.11,5.11-0.151:20140117T203343Z found:         Reject:  pkg://openindiana.org/SUNWadmlib-sysid@0.5.11,5.11-0.151:20140117T203343Z         Reason:  All versions matching 'require' dependency pkg:/system/library/sysidtool@0.5.11,5.11-0.151.1.9 are rejected           Reject:  pkg://openindiana.org/system/library/sysidtool@0.5.11,5.11-0.151.1.9:20140117T203343Z           Reason:  This version is excluded by installed incorporation pkg://openindiana.org/consolidation/admin/admin-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z       No suitable version of required package pkg://openindiana.org/SUNWadmr@0.5.11,5.11-0.151:20140117T203247Z found:         Reject:  pkg://openindiana.org/SUNWadmr@0.5.11,5.11-0.151:20140117T203247Z         Reason:  All versions matching 'require' dependency pkg:/service/management/sysidtool@0.5.11,5.11-0.151.1.9 are rejected           Reject:  pkg://openindiana.org/service/management/sysidtool@0.5.11,5.11-0.151.1.9:20140117T203247Z           Reason:  This version is excluded by installed incorporation pkg://openindiana.org/consolidation/admin/admin-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z       No suitable version of required package pkg://openindiana.org/SUNWwsr2@0.5.11,5.11-0.151:20140117T203404Z found:         Reject:  pkg://openindiana.org/SUNWwsr2@0.5.11,5.11-0.151:20140117T203404Z         Reason:  All versions matching 'require' dependency pkg:/system/management/product-registry@0.5.11,5.11-0.151.1.9 are rejected           Reject:  pkg://openindiana.org/system/management/product-registry@0.5.11,5.11-0.151.1.9:20140117T203404Z           Reason:  This version is excluded by installed incorporation pkg://openindiana.org/consolidation/admin/admin-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z       No suitable version of required package pkg://openindiana.org/SUNWdistro-license-copyright@0.5.11,5.11-0.133:20110912T024345Z found:         Reject:  pkg://openindiana.org/SUNWdistro-license-copyright@0.5.11,5.11-0.133:20110912T024345Z         Reason:  A version for 'require' dependency on pkg:/release/copyright@0.5.11,5.11-0.151.1 cannot be found       No suitable version of required package pkg://openindiana.org/release/copyright@0.5.11,5.11-0.151:20140117T203030Z found:         Reject:  pkg://openindiana.org/release/copyright@0.5.11,5.11-0.151:20140117T203030Z         Reason:  All versions matching 'require' dependency pkg:/release/notices@0.5.11,5.11-0.151.1.9 are rejected           Reject:  pkg://openindiana.org/release/notices@0.5.11,5.11-0.151.1.9:20140117T203030Z           Reason:  This version is excluded by installed incorporation pkg://openindiana.org/consolidation/solaris_re/solaris_re-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z           Reject:  pkg://solaris/release/notices@0.5.11,5.11-0.175.0.0.0.2.0:20111019T122736Z                    pkg://solaris/release/notices@0.5.11,5.11-0.175.1.0.0.24.3:20120919T185319Z           Reason:  Currently installed package 'release/notices' is from sticky publisher 'openindiana.org'.                    This version is excluded by installed incorporation pkg://openindiana.org/consolidation/solaris_re/solaris_re-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z       No suitable version of required package pkg://openindiana.org/SUNWservicetag@0.5.11,5.11-0.133:20140117T203408Z found:         Reject:  pkg://openindiana.org/SUNWservicetag@0.5.11,5.11-0.133:20140117T203408Z         Reason:  All versions matching 'require' dependency pkg:/system/management/service-tag@0.5.11,5.11-0.151.1.9 are rejected           Reject:  pkg://openindiana.org/system/management/service-tag@0.5.11,5.11-0.151.1.9:20140117T203404Z           Reason:  This version is excluded by installed incorporation pkg://openindiana.org/consolidation/cns/cns-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z           Reject:  pkg://solaris/system/management/service-tag@1.1.5,5.11-0.175.0.0.0.1.0:20111012T230436Z                    pkg://solaris/system/management/service-tag@1.1.5,5.11-0.175.1.0.0.23.0:20120820T162400Z           Reason:  Currently installed package 'system/management/service-tag' is from sticky publisher 'openindiana.org'.                    This version is excluded by installed incorporation pkg://openindiana.org/consolidation/cns/cns-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z       No suitable version of required package pkg://openindiana.org/SUNWpython-lxml@2.1.2,5.11-0.144:20140117T202837Z found:         Reject:  pkg://openindiana.org/SUNWpython-lxml@2.1.2,5.11-0.144:20140117T202837Z         Reason:  All versions matching 'require' dependency pkg:/library/python-2/lxml-24@2.1.2,5.11-0.151.1.9 are rejected           Reject:  pkg://openindiana.org/library/python-2/lxml-24@2.1.2,5.11-0.151.1.9:20140117T202834Z           Reason:  This version is excluded by installed incorporation pkg://openindiana.org/consolidation/admin/admin-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z       No suitable version of required package pkg://openindiana.org/SUNWcedu@0.5.11,5.11-0.130:20110912T025547Z found:         Reject:  pkg://openindiana.org/SUNWcedu@0.5.11,5.11-0.130:20110912T025547Z         Reason:  A version for 'require' dependency on pkg:/SUNWced@0.5.11,5.11-0.151.1 cannot be found       No suitable version of required package pkg://openindiana.org/SUNWcedu@0.5.11,5.11-0.130:20120114T202543Z found:         Reject:  pkg://openindiana.org/SUNWcedu@0.5.11,5.11-0.130:20120114T202543Z         Reason:  A version for 'require' dependency on pkg:/SUNWced@0.5.11,5.11-0.151.1.1 cannot be found       No suitable version of required package pkg://openindiana.org/SUNWcedu@0.5.11,5.11-0.130:20120902T085559Z found:         Reject:  pkg://openindiana.org/SUNWcedu@0.5.11,5.11-0.130:20120902T085559Z         Reason:  A version for 'require' dependency on pkg:/SUNWced@0.5.11,5.11-0.151.1.6 cannot be found       No suitable version of required package pkg://openindiana.org/SUNWcedu@0.5.11,5.11-0.130:20120502T231741Z found:         Reject:  pkg://openindiana.org/SUNWcedu@0.5.11,5.11-0.130:20120502T231741Z         Reason:  A version for 'require' dependency on pkg:/SUNWced@0.5.11,5.11-0.151.1.4 cannot be found       No suitable version of required package pkg://openindiana.org/SUNWcedu@0.5.11,5.11-0.130:20120329T215246Z found:         Reject:  pkg://openindiana.org/SUNWcedu@0.5.11,5.11-0.130:20120329T215246Z         Reason:  A version for 'require' dependency on pkg:/SUNWced@0.5.11,5.11-0.151.1.3 cannot be found       No suitable version of required package pkg://openindiana.org/SUNWddu@0.5.11,5.11-0.133:20140117T202127Z found:         Reject:  pkg://openindiana.org/SUNWddu@0.5.11,5.11-0.133:20140117T202127Z         Reason:  All versions matching 'require' dependency pkg:/diagnostic/ddu@0.5.11,5.11-0.151.1.9 are rejected           Reject:  pkg://openindiana.org/diagnostic/ddu@0.5.11,5.11-0.151.1.9:20140117T202126Z           Reason:  This version is excluded by installed incorporation pkg://openindiana.org/consolidation/hcts/hcts-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z           Reject:  pkg://solaris/diagnostic/ddu@0.5.11,5.11-0.175.0.0.0.2.1:20111019T054215Z                    pkg://solaris/diagnostic/ddu@0.5.11,5.11-0.175.1.0.0.24.2:20120919T184236Z           Reason:  Currently installed package 'diagnostic/ddu' is from sticky publisher 'openindiana.org'.                    This version is excluded by installed incorporation pkg://openindiana.org/consolidation/hcts/hcts-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z       No suitable version of required package pkg://openindiana.org/SUNWcedu@0.5.11,5.11-0.130:20130721T125046Z found:         Reject:  pkg://openindiana.org/SUNWcedu@0.5.11,5.11-0.130:20130721T125046Z         Reason:  A version for 'require' dependency on pkg:/SUNWced@0.5.11,5.11-0.151.1.8 cannot be found       No suitable version of required package pkg://openindiana.org/SUNWstosreg@0.5.11,5.11-0.151:20140117T203027Z found:         Reject:  pkg://openindiana.org/SUNWstosreg@0.5.11,5.11-0.151:20140117T203027Z         Reason:  All versions matching 'require' dependency pkg:/release/registration@0.5.11,5.11-0.151.1.9 are rejected           Reject:  pkg://openindiana.org/release/registration@0.5.11,5.11-0.151.1.9:20140117T203100Z           Reason:  This version is excluded by installed incorporation pkg://openindiana.org/consolidation/cns/cns-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z           Reject:  pkg://solaris/release/registration@1.1.5,5.11-0.175.0.0.0.1.0:20111012T230321Z                    pkg://solaris/release/registration@1.1.5,5.11-0.175.1.0.0.23.0:20120820T162239Z           Reason:  Currently installed package 'release/registration' is from sticky publisher 'openindiana.org'.                    This version is excluded by installed incorporation pkg://openindiana.org/consolidation/cns/cns-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z       No suitable version of required package pkg://openindiana.org/SUNWced@0.5.11,5.11-0.133:20140117T202152Z found:         Reject:  pkg://openindiana.org/SUNWced@0.5.11,5.11-0.133:20140117T202152Z         Reason:  All versions matching 'require' dependency pkg:/driver/network/ce@0.5.11,5.11-0.151.1.9 are rejected           Reject:  pkg://openindiana.org/driver/network/ce@0.5.11,5.11-0.151.1.9:20140117T202150Z           Reason:  This version is excluded by installed incorporation pkg://openindiana.org/consolidation/nspg/nspg-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z       No suitable version of required package pkg://openindiana.org/system/trusted/trusted-nonglobal@0.5.11,5.11-0.151.1.8:20130721T133909Z found:         Reject:  pkg://openindiana.org/system/trusted/trusted-nonglobal@0.5.11,5.11-0.151.1.8:20130721T133909Z         Reason:  All acceptable versions of 'require' dependency on pkg:/mail/thunderbird/plugin/thunderbird-lightning are obsolete       No suitable version of required package pkg://openindiana.org/SUNWcedu@0.5.11,5.11-0.130:20120630T191328Z found:         Reject:  pkg://openindiana.org/SUNWcedu@0.5.11,5.11-0.130:20120630T191328Z         Reason:  A version for 'require' dependency on pkg:/SUNWced@0.5.11,5.11-0.151.1.5 cannot be found       No suitable version of required package pkg://openindiana.org/SUNWcedu@0.5.11,5.11-0.130:20120209T204500Z found:         Reject:  pkg://openindiana.org/SUNWcedu@0.5.11,5.11-0.130:20120209T204500Z         Reason:  A version for 'require' dependency on pkg:/SUNWced@0.5.11,5.11-0.151.1.2 cannot be found       No suitable version of required package pkg://openindiana.org/SUNWcea@0.5.11,5.11-0.133:20140117T202029Z found:         Reject:  pkg://openindiana.org/SUNWcea@0.5.11,5.11-0.133:20140117T202029Z         Reason:  All versions matching 'require' dependency pkg:/developer/debug/mdb/module/module-ce@0.5.11,5.11-0.151.1.9 are rejected           Reject:  pkg://openindiana.org/developer/debug/mdb/module/module-ce@0.5.11,5.11-0.151.1.9:20140117T202026Z           Reason:  This version is excluded by installed incorporation pkg://openindiana.org/consolidation/nspg/nspg-incorporation@0.5.11,5.11-0.151.1.8:20130721T125047Z       No suitable version of required package pkg://openindiana.org/SUNWcedu@0.5.11,5.11-0.130:20121003T222432Z found:         Reject:  pkg://openindiana.org/SUNWcedu@0.5.11,5.11-0.130:20121003T222432Z         Reason:  A version for 'require' dependency on pkg:/SUNWced@0.5.11,5.11-0.151.1.7 cannot be found      And that's not all of it, either. I'm totally new to OpenIndiana, and the reason I migrated to it is because my beloved OpenSolaris was discontinued and I found out that this is the next step. Could someone help me?


title: extracting/copy ranges of columns from large data file

text: I was trying to prepare data files from one large file by extracting columns and pasting into a new file. The number of columns of the given data is very large. I want to prepare a number of data files by splitting the data.   I was trying the script below, but it is not working. I expect the error is due to specifying ranges of columns to copy.               #!/bin/bash          paste <(awk '{print $1,$2,$3,...$19,$20}' Precipitation.csv ) > aaaaa1     paste <(awk '{print $21,$22,$23,...$39,$40}' Precipitation.csv ) > aaaaa2      paste <(awk '{print $41,$42,$43,...$99,$100}' Precipitation.csv ) > aaaaa3       Would you please help me in correcting the code?


title: Boot Log for Arch Linux

text: My Arch install throws up a red error when booting but I can't see what it says because it flies by so quickly during loading. Where is the boot log? Would it be somewhere in /var/log? or maybe in /boot? Would much rather see the log text file than the scroll lock trick.


title: How can I send power on/off signals to a VGA monitor?

text: I've used some old spare parts to make a sort-of kiosk for my kitchen. It's running OpenBSD and has a simple text based UI (no X Server). I plan to add an Arduino with a motion sensor that communicates over serial port to my app so that if there is any motion the monitor will turn on and display the time and weather and after a period of no activity it will turn off. I would like to know if this is possible to do in software before I have to take the monitor apart and create a hardware solution (emulate pressing the power button with an opto-isolator or transistor or hacking up the VGA cable). I have a feeling this is possible because power-management software seems to be capable of doing so but I am not sure how to go about it.


title: Input a list of files & directories to be copied with ditto

text: I have a short list of files and directories of which I would like to make a flat copy of using ditto in a bash shell. There are approximately 8-10 files and/or directories that need to be copied. I know that I can just create a series of conditional statements such as:               if [ -d ~/Documents ];     then       ditto ~/Documents ~/BACKUP/Documents       echo "Documents copied successfully."     else       echo "WARNING: No documents were copied, directory does not exist in expected location."     fi      However, I am curious if there is a stylistically better or more efficient way of accomplishing this task? Another approach that I have considered is creating an array that holds the files/directories and then using a loop to move through the array to copy each file. Thoughts? Ideas? Insights? Best practices?


title: How can I do a "copy if changed" operation?

text: I would like to copy a set of files from directory A to directory B, with the caveat that if a file in directory A is identical to a file in directory B, that file should not be copied (and thus its modification time should not be updated). Is there a way to do that with existing tools, without writing my own script to do it? To elaborate a bit on my use-case: I am autogenerating a bunch of `.c` files in a temporary directory (by a method that has to generate all of them unconditionally), and when I re-generate them, I'd like to copy only the ones that have changed into the actual source directory, leaving the unchanged ones untouched (with their old creation times) so that `make` will know that it doesn't need to recompile them. (Not all the generated files are `.c` files, though, so I need to do binary comparisons rather than text comparisons.) (As a note: This grew out of the question I asked on http://stackoverflow.com/questions/8981552/speeding-up-file-comparions-with- cmp-on-cygwin/8981762#8981762, where I was trying to speed up the script file I was using to do this operation, but it occurs to me that I really should ask if there's a a better way to do this than writing my own script -- especially since any simple way of doing this in a shell script will invoke something like `cmp` on every pair of files, and starting all those processes takes too long.)


title: awk pattern matching and merge files

text: I have 3 files 1.csv and 2.csv and 3.csv 1.csv               TELECOM_DEVELOPMENT_AFGHANISTAN_COMPANY,AFGHANISTAN,Alphanumeric_A_MSISDN_blocking,1       CABLE&WIRELESS_BARBADOS,BARBADOS,Alphanumeric_A_MSISDN_blocking,791       SIMINN_ICELAND_TELECOM,ICELAND,Alphanumeric_A_MSISDN_blocking,109373       CABLE&WIRELESS_SEYCHELLES,SEYCHELLES,Alphanumeric_A_MSISDN_blocking,2       CABLE&WIRELESS_JAMAICA,JAMAICA,Alphanumeric_A_MSISDN_blocking,85        2.csv               SIMINN_ICELAND_TELECOM,ICELAND,SPAM_CHAIN_SMS_REJECT(Spam_Detection_and_Blocking),7795       CABLE&WIRELESS_SEYCHELLES,SEYCHELLES,SPAM_CHAIN_SMS_REJECT(Spam_Detection_and_Blocking),638      3.csv:               TELECOM_DEVELOPMENT_AFGHANISTAN_COMPANY,AFGHANISTAN,Calling_Party_Address_Blocking,79       CABLE&WIRELESS_BARBADOS,BARBADOS,Calling_Party_Address_Blocking,30       MOBILKOM_LIECHTENSTEIN,LIECHTENSTEIN,Calling_Party_Address_Blocking,6     SYNIVERSE_ANSI,UNITED_STATES,Calling_Party_Address_Blocking,12      I want to merge files so that it will print output file as below               TELECOM_DEVELOPMENT_AFGHANISTAN_COMPANY,AFGHANISTAN,Alphanumeric_A_MSISDN_blocking,1,NA,NA,Calling_Party_Address_Blocking,79     CABLE&WIRELESS_BARBADOS,BARBADOS,Alphanumeric_A_MSISDN_blocking,791,NA,NA,Calling_Party_Address_Blocking,30     SIMINN_ICELAND_TELECOM,ICELAND,Alphanumeric_A_MSISDN_blocking,109373,SPAM_CHAIN_SMS_REJECT(Spam_Detection_and_Blocking),7795,NA,NA     CABLE&WIRELESS_SEYCHELLES,SEYCHELLES,Alphanumeric_A_MSISDN_blocking,2,SPAM_CHAIN_SMS_REJECT(Spam_Detection_and_Blocking),638,NA,NA     CABLE&WIRELESS_JAMAICA,JAMAICA,Alphanumeric_A_MSISDN_blocking,85,NA,NA,NA,NA      MOBILKOM_LIECHTENSTEIN,LIECHTENSTEIN,NA,NA,NA,NA,Calling_Party_Address_Blocking,6     SYNIVERSE_ANSI,UNITED_STATES,NA,NA,NA,NA,Calling_Party_Address_Blocking,12


title: Installing software as user

text: I need to install some software as user on a machine where I don't have root access. So far I've been using gentoo-prefix, but ain't really fine with it: I need GCC 4.6 and gentoo only ships 4.5, I don't like having to compile everything, and I'm not a fan of gentoo and portage. Is there any other option of doing that?   Something like a fakeroot wouldn't be enough?


title: daemon causes problem to the device

text: Currently I am working on one hardware device and we are calling it as a **Unit** (there are about 100 units). This Unit is built on **Ubuntu 12.04**. There is one daemon called dispaly_msg which is used for displaying different messages (approximately 10 messages) on the Unit screen and it is continuously running if unit is ON. Now the problem arises when I keep the unit ON for about 2-3 days then it is not working properly we can say it just get hanged. When I checked the running processes then I get that this dispaly_msg daemon ran about 300 times. If I restart the system it works fine. Instead of restarting the unit I restart the only daemon process using `/etc/init.d/dispaly_msg restart` command it worked for 10 to 15 min and again it runs approximately 300 times. Can any one please suggest / tell me why this is happening. If anyone needs more information feel free, also suggestions can be appreciated.


title: Linux Terminal SSH Username Change

text: I want to connect via ssh to my Ubuntu server from my Linux PC. Xterm uses my Linux PC username for the login. I've another username on the server. It's not the same name like on my Linux PC. How can I change the username? The client always says that the password is incorrect with the clients username.


title: Doesn't awk print all lines if it is passed empty arguments

text: I thought that `awk` without arguments is equivalent to `awk {print} file`.   But when I do:               awk '' file      Nothing is printed. Why?


title: How to configure internet connection in X Window System applications?

text: I have to work on a Windows machine which I'm using as a client for my external RedHat machine. According to my job requirments I need to use some X window apps which are hosted on the Linux machine. For these kind of tasks I've configured a simple stack using xming and putty. It works fine, but for instance when I start Firefox it does not see any network connection and as a consequence I'm not able to use internet. from putty:               ping -c4 google.com     --- google.com ping statistics ---     4 packets transmitted, 4 received, 0% packet loss, time 3023ms     rtt min/avg/max/mdev = 17.887/18.258/18.836/0.378 ms


title: How to create a confirmation question in Linux?

text: I have a certain command (`git push server-name`) that has major consequences. How to require confirmation for **_this command only_**? It should ignore white space. The confirmation could be `Enter 'yes i am sure.' to confirm:` By the way, there is another command that does not require confirmation: `git push server-name-staging`.


title: Ubuntu 12.10 - setup a user, when ssh login gives me /etc/bash.bashrc: Permission denied

text: I setup a user on my Ubuntu 12.10 server named "deploy" and I believe i added the user to the sudoers properly. However, whenever I SSH into the server with this user, I get:               -bash: /etc/bash.bashrc: Permission denied      What would cause this permission error, and what is the proper way to debug this issue? SUDOERS:               Defaults        env_reset     Defaults        mail_badpass     Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"          # User privilege specification     root    ALL=(ALL:ALL) ALL     deploy    ALL=(ALL:ALL) ALL          # Members of the admin group may gain root privileges     %admin ALL=(ALL) ALL          # Allow members of group sudo to execute any command     %sudo   ALL=(ALL:ALL) ALL          # See sudoers(5) for more information on "#include" directives:          #includedir /etc/sudoers.d      PASSWD:               root:x:0:0:root:/root:/bin/bash     daemon:x:1:1:daemon:/usr/sbin:/bin/sh     bin:x:2:2:bin:/bin:/bin/sh     sys:x:3:3:sys:/dev:/bin/sh     sync:x:4:65534:sync:/bin:/bin/sync     games:x:5:60:games:/usr/games:/bin/sh     man:x:6:12:man:/var/cache/man:/bin/sh     lp:x:7:7:lp:/var/spool/lpd:/bin/sh     mail:x:8:8:mail:/var/mail:/bin/sh     news:x:9:9:news:/var/spool/news:/bin/sh     uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh     proxy:x:13:13:proxy:/bin:/bin/sh     www-data:x:33:33:www-data:/var/www:/bin/sh     backup:x:34:34:backup:/var/backups:/bin/sh     list:x:38:38:Mailing List Manager:/var/list:/bin/sh     irc:x:39:39:ircd:/var/run/ircd:/bin/sh     gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh     nobody:x:65534:65534:nobody:/nonexistent:/bin/sh     libuuid:x:100:101::/var/lib/libuuid:/bin/sh     syslog:x:101:103::/home/syslog:/bin/false     messagebus:x:102:104::/var/run/dbus:/bin/false     whoopsie:x:103:106::/nonexistent:/bin/false     landscape:x:104:109::/var/lib/landscape:/bin/false     sshd:x:105:65534::/var/run/sshd:/usr/sbin/nologin     deploy:x:1000:1001:,,,:/home/deploy:/bin/bash


title: Script stops command in it with exit 0

text: When I write a bash script similar to this on RHEL 6,               if [ "$2" = "" ] ; then         echo vip.start: ERROR: no NIC specified         echo vip.start: Need IP and base interface name         exit 1     fi     case "$1" in         [0-9]*)             break             ;;         *)             echo vip.start: ERROR: no IP address specified             echo vip.start: Need IP and base interface name             exit 1             ;;     esac               # Is it already up?     #This uses the same algorithm as vip.stop     ## If no conflicts, it should produce 'collisions:0     ##=>For Solaris     #exists=`ifconfig -a | awk '     #$1 ~ /:/        {split($1,nic,":");      #                 lastif=sprintf("%s:%s",nic[1],nic[2]);}     #$2 == "'$1'"    { print lastif ; exit; }     #     #'`          ##=> For Linux. Retreves IP Address     exists=$(ifconfig | grep -B1 "inet addr:$1" | awk '$1!="inet" && $1!="--" {print $1}')               if [ "$exists" = "" ] ; then         ping -c 1 $1 1>/dev/null 2>&1         if [ $? -eq 0 ] ; then         echo "vip.start: ERROR: vip $1 already active elsewhere! Cannot continue!"         exit 1         fi     else         echo vip.start: NOTICE: vip already exists, as $exists         exit 0     fi          ##=>This is fo Solaris     #ifconfig $2 addif $1 netmask + broadcast + up     ##=>This is for generic GNU/Linux     echo "Bringing up VIP virtual interface"     ifconfig $2 $1 up     echo "VIP virtual interface has started"          exit 0      This script takes a command line argument like, `vip.start 192.168.1.1 eth0:1` and then is supposed to bring up the interface. When ran with `bash -x vip.start 192.168.1.1 eth0:1`, it shows that the interface comes up, but then doesn't appear when I issue an `ifconfig`. However, when I comment out the `exit 0` the VIP stays up and the script exits.


title: Resolve dependencies installing rpm packages

text: I am using RHEL6 Hi i have created the yum repository, i downloaded the snort rpm package from their website when i tried to install the rpm its thorws error e.g.               snort-2.9.5.3-1.f18.i386.rpm          1:snort-2.9.5.3-1.i386 requires libsfbpf.so.0     1:snort-2.9.5.3-1.i386 requires libdnet.so.1     1:snort-2.9.5.3-1.i386 requires libpcre.so.1      1) I tried finding these files on the internet and couldn't find any 2) How do i install the snort using yum, i tried `yum install \Desktop\snort-2.9.5*` it threw error that i have failed dependecies errors:               Resolving Dependencies     --> Running transaction check     ---> Package snort.i386 1:2.9.5.3-1 set to be updated     --> Processing Dependency: libdnet.so.1 for package: 1:snort-2.9.5.3-1.i386     --> Processing Dependency: libpcre.so.1 for package: 1:snort-2.9.5.3-1.i386     --> Processing Dependency: libsfbpf.so.0 for package: 1:snort-2.9.5.3-1.i386     --> Finished Dependency Resolution     Error: Package: 1:snort-2.9.5.3-1.i386 (/snort-2.9.5.3-1.f18.i386)                Requires: libsfbpf.so.0     Error: Package: 1:snort-2.9.5.3-1.i386 (/snort-2.9.5.3-1.f18.i386)                Requires: libdnet.so.1     Error: Package: 1:snort-2.9.5.3-1.i386 (/snort-2.9.5.3-1.f18.i386)                Requires: libpcre.so.1      You could try using --skip-broken to work around the problem      You could try running: rpm -Va --nofiles --nodigest      How do i get snort to be installed, i even tried to install fwbuilder but failed


title: search for first pattern and copy the string inside the ( ) into the 3rd field in lines where the second pattern found

text: Here are my spec:   1. first search for "#firstpattern("    2. copy the content inside the ( ) to the 3rd field inside the ( ) of all lines where the "secondpattern" found.    3. remove the entire line with the "#firstpattern" at   4. I'd like to process all files "files.txt" in the same folder. no need to save backups. A sed command but others should be fine. datain.txt :               ...some lines...          #firstpattern(stringtobecopied)     ...some lines...     secondpattern something here (something, some text here,  someting else).     secondpattern something here (something, some text here,  someting else).      dataout.txt :               ...some lines...     secondpattern something here (something, some text here, stringtobecopied, someting else).     secondpattern something here (something, some text here, stringtobecopied, someting else).


title: How do I get Debian to use systemd-logind for user session control?

text: I have one Debian Sid system (LinuxBBQ n00b killah) that uses logind for its user sessions. It is odd that that system is not even running systemd. The logind sessions are independent of X and are in effect for the tty sessions before X is even started. However, I do not know how this occurred and even the distro's lead developer cannot explain it. However, my main system is another Debian Sid distro (Siduction Linux) that is running systemd 204-7. logind is running and active, but it is not managing the user sessions. My question is, how would I go about switching session control from console-kit to logind? I have been trying to research this question for weeks, but have not found anything useful.


title: What is the xcalib -screen number for the HDMI monitor?

text: I must use a VGA-to-DVI cable and a HDMI cable to run two monitors. I'm trying to invert the colors on both monitors but I can only invert one of them:               $ xcalib -invert -alter -s 0 #works               $ xcalib -invert -alter -s 1     X Error of failed request:  BadValue (integer parameter out of range for operation)       Major opcode of failed request:  129 (XFree86-VidModeExtension)       Minor opcode of failed request:  19 (XF86VidModeGetGammaRampSize)       Value in failed request:  0x17       Serial number of failed request:  10       Current serial number in output stream:  10      I unplugged the HDMI cable and plugged it back in again. Now, the `xcalib -invert -alter -s 0` command inverts the other monitor. In other words, both monitors are inverted for the moment but I had to re-connect one monitor to get that to happen. Here is my setup:               $ xrandr     Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 8192 x 8192     VGA-0 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 510mm x 287mm        1920x1080      60.0*+        1680x1050      60.0          1280x1024      60.0          1440x900       59.9          1280x720       60.0          1024x768       60.0          800x600        60.3          640x480        60.0          720x400        70.1       HDMI-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 510mm x 287mm        1920x1080      60.0*+        1680x1050      59.9          1280x1024      60.0          1440x900       59.9          1280x720       60.0          1024x768       60.0          800x600        60.3          640x480        60.0          720x400        70.1        Graphics card:               $ lspci |egrep -i vga     01:05.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RS880 [Radeon HD 4200]      This is Ubuntu server 12.04 LTS w/gnome-panel. The problem still occurs on Ubuntu 14.04 but the work-around does not work.


title: Sort aligned columns

text: I have a program which output looks like this                #         Status   VAL1   VAL2   Description      1      some text    2.5    4.4   Some long other text      5    some text 2   14.5    2.0   Some long other text 2     12    some text 3  222.6   24.4   Some long other text 3     19    some text 4    3.4    1.5   Some long other text 4     21    some text 5   55.4   10.6   Some long other text 5     32    some text 6    2.9    9.4   Some long other text 6      I'd like to sort along the VAL2 column. I tried with `sort -k 4` but when there's spaces in the Status column `sort` get confused. Is there a way to work around this? Maybe to pass a character number instead of a field number?


title: How to remove a specific character in a string but only if there are no numbers in that line in Linux

text: I've been stumped with this seemingly simple-to-fix problem.. well, for a while. Here's example output from the file I need to edit:               $cat file     George Washington     Geneva Convention     123,281,029 USD     342,019,929 EUR      I need to remove the spaces between "George Washington" and "Geneva Convention", but not the spaces between "123,281,029 USD" or "342,019,929 EUR". Essentially, my goal here is to only remove the space between words in a line ONLY if there are no numbers in that line. I've tried to edit the file via `grep -v [0-9] $file | sed 's/ //'`, but only way that will work is if I output to another file, but that would mean excluding all lines with numbers from the old file to the new file, which is not what I need.. I've tried some pretty ridiculous loops with grep and `sed` but nothing seems to work just right. Again, here is the example output of the file:               $cat file     George Washington     Geneva Convention     123,281,029 USD     342,019,929 EUR      Here is my desired output:               $cat file     GeorgeWashington     GenevaConvention     123,281,029 USD     342,019,929 EUR


title: Ralink firmware not rightly installed

text: i've a usb wlan0 on a debian, I had to install a non-free firmware for it called firmware-ralink. But now it is not rightly installed and the wlan0, even if it's configured, it is not working. Here is the output of the dpkg -l of the firmware:               dpkg -l firmware-ralink     Desired=Unknown/Install/Remove/Purge/Hold     | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend     |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)     ||/ Name           Version      Architecture Description     +++-==============-============-============-=================================     ii  firmware-ralin 0.36+wheezy. all          Binary firmware for Ralink wirele      Can anyone help with this? Thanks Agnese


title: Setting up hostapd with a iwlwifi device to run a hotspot

text: I am trying to configure my opensuse 13.1 system to function as a hotspot (on my dell xps13 computer). So I tried setting up hostapd as explained here, but I get an error:               hostapd /etc/hostapd.conf     Configuration file: /etc/hostapd.conf     nl80211: Failed to set interface wlp1s0 into AP mode     nl80211 driver initialization failed.      My hostapd.conf file:               #interface=wlan0     interface=wlp1s0     driver=nl80211     bridge=br0          logger_syslog=-1     logger_syslog_level=2     logger_stdout=-1     logger_stdout_level=2          dump_file=/run/hostapd.dump     ctrl_interface=/var/run/hostapd     ctrl_interface_group=0     hw_mode=g     channel=3     beacon_int=100     dtim_period=2     max_num_sta=255     rts_threshold=2347     fragm_threshold=2346     macaddr_acl=0     ignore_broadcast_ssid=0               wmm_enabled=1     wmm_ac_bk_cwmin=4     wmm_ac_bk_cwmax=10     wmm_ac_bk_aifs=7     wmm_ac_bk_txop_limit=0     wmm_ac_bk_acm=0     # Note: for IEEE 802.11b mode: cWmin=5 cWmax=10     #     # Normal priority / AC_BE = best effort     wmm_ac_be_aifs=3     wmm_ac_be_cwmin=4     wmm_ac_be_cwmax=10     wmm_ac_be_txop_limit=0     wmm_ac_be_acm=0     # Note: for IEEE 802.11b mode: cWmin=5 cWmax=7     #     # High priority / AC_VI = video     wmm_ac_vi_aifs=2     wmm_ac_vi_cwmin=3     wmm_ac_vi_cwmax=4     wmm_ac_vi_txop_limit=94     wmm_ac_vi_acm=0     # Note: for IEEE 802.11b mode: cWmin=4 cWmax=5 txop_limit=188     #     # Highest priority / AC_VO = voice     wmm_ac_vo_aifs=2     wmm_ac_vo_cwmin=2     wmm_ac_vo_cwmax=3     wmm_ac_vo_txop_limit=47     wmm_ac_vo_acm=0     # Note: for IEEE 802.11b mode: cWmin=3 cWmax=4 burst=102               # EAPOL-Key index workaround (set bit7) for WinXP Supplicant (needed only if     # only broadcast keys are used)     eapol_key_index_workaround=0     # authentication server.     eap_server=0          # The own IP address of the access point (used as NAS-IP-Address)     own_ip_addr=127.0.0.1      The problem might be with the driver. Perhaps I should indicate another one, since:               >> lspci -k | grep -A 3 -i "network"     01:00.0 Network controller: Intel Corporation Centrino Advanced-N 6235 (rev 24)             Subsystem: Intel Corporation Centrino Advanced-N 6235 AGN             Kernel driver in use: iwlwifi             Kernel modules: iwlwifi      Some more netcard info:                >>hwinfo --netcard | grep -Ei "model|driver"        Model: "Intel WLAN controller"       Driver: "iwlwifi"       Driver Modules: "iwlwifi"       Driver Info #0:         Driver Status: iwlwifi is active         Driver Activation Cmd: "modprobe iwlwifi"       Model: "ASIX Electronics AX88x72A"       Driver: "asix"       Driver Modules: "asix"       Driver Info #0:         Driver Status: asix is active         Driver Activation Cmd: "modprobe asix"           >>modinfo iwlwifi | grep 'depend'     depends:        cfg80211      --update: I checked that my card supports AP like this:               >>iw dev     phy#0             Interface wlp1s0                     ifindex 2                     wdev 0x1                     addr c8:f7:33:da:ac:d7                     type managed                    >>iw phy#0 info     Wiphy phy0             Band 1:                     Capabilities: 0x1072                                                                                HT20/HT40                                                                                Static SM Power Save                             RX Greenfield                             RX HT20 SGI                             RX HT40 SGI                             No RX STBC                             Max AMSDU length: 3839 bytes                             DSSS/CCK HT40                     Maximum RX AMPDU length 65535 bytes (exponent: 0x003)                     Minimum RX AMPDU time spacing: 4 usec (0x05)                     HT TX/RX MCS rate indexes supported: 0-15, 32                     Frequencies:                             * 2412 MHz [1] (15.0 dBm)                             * 2417 MHz [2] (15.0 dBm)                             * 2422 MHz [3] (15.0 dBm)                             * 2427 MHz [4] (15.0 dBm)                             * 2432 MHz [5] (15.0 dBm)                             * 2437 MHz [6] (15.0 dBm)                             * 2442 MHz [7] (15.0 dBm)                             * 2447 MHz [8] (15.0 dBm)                             * 2452 MHz [9] (15.0 dBm)                             * 2457 MHz [10] (15.0 dBm)                             * 2462 MHz [11] (15.0 dBm)                             * 2467 MHz [12] (15.0 dBm) (passive scanning, no IBSS)                             * 2472 MHz [13] (15.0 dBm) (passive scanning, no IBSS)                     Bitrates (non-HT):                             * 1.0 Mbps                             * 2.0 Mbps (short preamble supported)                             * 5.5 Mbps (short preamble supported)                             * 11.0 Mbps (short preamble supported)                             * 6.0 Mbps                             * 9.0 Mbps                             * 12.0 Mbps                             * 18.0 Mbps                             * 24.0 Mbps                             * 36.0 Mbps                             * 48.0 Mbps                             * 54.0 Mbps             Band 2:                     Capabilities: 0x1072                             HT20/HT40                             Static SM Power Save                             RX Greenfield                             RX HT20 SGI                             RX HT40 SGI                             No RX STBC                             Max AMSDU length: 3839 bytes                             DSSS/CCK HT40                     Maximum RX AMPDU length 65535 bytes (exponent: 0x003)                     Minimum RX AMPDU time spacing: 4 usec (0x05)                     HT TX/RX MCS rate indexes supported: 0-15, 32                     Frequencies:                             * 5180 MHz [36] (15.0 dBm) (passive scanning, no IBSS)                             * 5200 MHz [40] (15.0 dBm) (passive scanning, no IBSS)                             * 5220 MHz [44] (15.0 dBm) (passive scanning, no IBSS)                             * 5240 MHz [48] (15.0 dBm) (passive scanning, no IBSS)                             * 5260 MHz [52] (15.0 dBm) (passive scanning, no IBSS, radar detection)                             * 5280 MHz [56] (15.0 dBm) (passive scanning, no IBSS, radar detection)                             * 5300 MHz [60] (15.0 dBm) (passive scanning, no IBSS, radar detection)                             * 5320 MHz [64] (15.0 dBm) (passive scanning, no IBSS, radar detection)                             * 5500 MHz [100] (15.0 dBm) (passive scanning, no IBSS, radar detection)                             * 5520 MHz [104] (15.0 dBm) (passive scanning, no IBSS, radar detection)                             * 5540 MHz [108] (15.0 dBm) (passive scanning, no IBSS, radar detection)                             * 5560 MHz [112] (15.0 dBm) (passive scanning, no IBSS, radar detection)                             * 5580 MHz [116] (15.0 dBm) (passive scanning, no IBSS, radar detection)                             * 5600 MHz [120] (15.0 dBm) (passive scanning, no IBSS, radar detection)                             * 5620 MHz [124] (15.0 dBm) (passive scanning, no IBSS, radar detection)                             * 5640 MHz [128] (15.0 dBm) (passive scanning, no IBSS, radar detection)                             * 5660 MHz [132] (15.0 dBm) (passive scanning, no IBSS, radar detection)                             * 5680 MHz [136] (15.0 dBm) (passive scanning, no IBSS, radar detection)                             * 5700 MHz [140] (15.0 dBm) (passive scanning, no IBSS, radar detection)                             * 5745 MHz [149] (15.0 dBm) (passive scanning, no IBSS)                             * 5765 MHz [153] (15.0 dBm) (passive scanning, no IBSS)                             * 5785 MHz [157] (15.0 dBm) (passive scanning, no IBSS)                             * 5805 MHz [161] (15.0 dBm) (passive scanning, no IBSS)                             * 5825 MHz [165] (15.0 dBm) (passive scanning, no IBSS)                     Bitrates (non-HT):                             * 6.0 Mbps                             * 9.0 Mbps                             * 12.0 Mbps                             * 18.0 Mbps                             * 24.0 Mbps                             * 36.0 Mbps                             * 48.0 Mbps                             * 54.0 Mbps             max # scan SSIDs: 20             max scan IEs length: 195 bytes             Coverage class: 0 (up to 0m)             Supported Ciphers:                     * WEP40 (00-0f-ac:1)                     * WEP104 (00-0f-ac:5)                     * TKIP (00-0f-ac:2)                     * CCMP (00-0f-ac:4)             Available Antennas: TX 0 RX 0             Supported interface modes:                      * IBSS                      * managed                      * AP                      * AP/VLAN                      * monitor             software interface modes (can always be added):                      * AP/VLAN                      * monitor             valid interface combinations:                      * #{ managed } <= 1, #{ AP } <= 1,                        total <= 2, #channels <= 1, STA/AP BI must match                      * #{ managed } <= 2,                        total <= 2, #channels <= 1             Supported commands:                      * new_interface                      * set_interface                      * new_key                      * start_ap                      * new_station                      * new_mpath                      * set_mesh_config                      * set_bss                      * authenticate                      * associate                      * deauthenticate                      * disassociate                      * join_ibss                      * join_mesh                      * remain_on_channel                      * set_tx_bitrate_mask                      * frame                      * frame_wait_cancel                      * set_wiphy_netns                      * set_channel                      * set_wds_peer                      * probe_client                      * set_noack_map                      * register_beacons                      * Unknown command (89)                      * Unknown command (92)                      * connect                      * disconnect             Supported TX frame types:                      * IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0                      * managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0                      * AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0                      * AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0                      * mesh point: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0                      * P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0                      * P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0                      * P2P-device: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0             Supported RX frame types:                      * IBSS: 0x40 0xb0 0xc0 0xd0                      * managed: 0x40 0xd0                      * AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0                      * AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0                      * mesh point: 0xb0 0xc0 0xd0                      * P2P-client: 0x40 0xd0                      * P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0                      * P2P-device: 0x40 0xd0             Device supports RSN-IBSS.             WoWLAN support:                      * wake up on disconnect                      * wake up on magic packet                      * wake up on pattern match, up to 20 patterns of 16-128 bytes                      * can do GTK rekeying                      * wake up on GTK rekey failure                      * wake up on EAP identity request                      * wake up on rfkill release             HT Capability overrides:                      * MCS: ff ff ff ff ff ff ff ff ff ff                      * maximum A-MSDU length                      * supported channel width                      * short GI for 40 MHz                      * max A-MPDU length exponent                      * min MPDU start spacing             Device supports TX status socket option.             Device supports HT-IBSS.      Thanks for any insight and suggestions. I really need to set up a wireless hotspot, so I am hoping that somebody can help me solve this. --update I have executed the following commands error free:                  nmcli nm wifi off         rfkill unblock wlan              ip link set dev wlp1s0 up         ip address add 192.168.5.1/24 dev wlp1s0              iptables -t nat -A POSTROUTING -s 192.168.5.0/24 -o enp0s20u2 -j MASQUERADE         sysctl -w net.ipv4.ip_forward=1 1> /dev/null              systemctl start hostapd.service         systemctl start dnsmasq.service      My /etc/hostapd is:               interface=wlp1s0     driver=nl80211     # bridge=br0     channel=3     hw_mode=g     auth_algs=1     ssid=test      My phone sees the test network. But keeps saying "Obtaining IP address...." I feel that I am very close now...


title: Creating diagrams in ASCII

text: I am looking for a program which I can use to create ASCII diagrams such these:                   +---------+         |         |                        +--------------+         |   NFS   |--+                     |              |         |         |  |                 +-->|   CacheFS    |         +---------+  |   +----------+  |   |  /dev/hda5   |                      |   |          |  |   +--------------+         +---------+  +-->|          |  |         |         |      |          |--+         |   AFS   |----->| FS-Cache |         |         |      |          |--+         +---------+  +-->|          |  |                      |   |          |  |   +--------------+         +---------+  |   +----------+  |   |              |         |         |  |                 +-->|  CacheFiles  |         |  ISOFS  |--+                     |  /var/cache  |         |         |                        +--------------+         +---------+      It should preferably be a package available in Debian. The wonderful diagram displayed above is taken from the Linux kernel documentation. I cannot believe they were created by hand. There must be some tool to create them.


title: Can tar archiver zerofill a file?

text: I have received a tar archive from a co-worker and after decompresing I found that some text files are corrupted. More precisely they are filled with zeros. They have correct size but all bytes are equal to 0x00. Can this situation be caused by some uncompatibility of tar versions or eg. chinese character contained in the files or the files had to been corrupted in the time of compression? I do not expect that there was a problem during transfer because control checksum is OK.


title: Making applications persist when closed (like on Mac OS X) on Linux

text: Once an application is first launched in OS X from the dock, it stays open in the background, even after you close all open windows for that application. For example, if I open Google Chrome from the dock and start a session with 3 windows, then close all of those windows when finished with them, the Chrome icon will retain the small dot under its dock icon signifying that it is still 'open in the background'. This makes opening further windows for that application almost instant, rather than having to reload the application every time to create a new window. I am wondering if it is possible to implement this feature in a Linux environment, as I have not found a way to do so. Note that I am only talking about the application launching mechanism, I am aware of Docky and other programs that simulate the OS X dock, but I have not yet came across a way to make Linux exhibit this preloading behaviour.


title: Functions defined in .zshrc not found when running script

text: I have a function in `.zshrc` that mostly updates the `PATH`:               my_function()     {             PATH=...     }      and some scripts that depend on it, e.g. `my_script.sh` starts with the following lines:               my_function     # do stuff ...      I then have the following in `crontab`:               00 02 * * * /path/to/my/zsh /path/to/my_script.sh      but I have noticed that, even when I run `my_script.sh` as `./my_script.sh` manually (i.e. from my interactive(?) Zsh shell), I get the error:               Command not found: my_function      even though I can perfectly invoke `my_function` from the terminal. Why? I would like a solution that does **not** require me to add a shebang to my script (for more on this see this) I found the following diagram. I imagine that in my case, cron launches a non- interactive, non-login shell, which is why none of the init files are run. Is that correct? ![enter image description here](http://i.stack.imgur.com/PSAXf.png)


title: Open URxvt tab with shift-down, not with ctrl-t

text: On Debian, `Shift+Down` in URxvt opens new tab. But recently I started using another machine with Fedora, and here it has no effect; here `Ctrl+T` does that. But neither one works on both, so I'm doomed to think of where I am. Plus, I need `Ctrl+T` in some programs (Vim, MOC...). Inspired by a document on ArchWiki, I tried to add `URxvt.keysym.Shift-Down: perl:tabbedex:new_tab` to my ~/.XDefaults, but that did not have effect. (But even if it _did_ work, I'm not sure if it would release `Ctrl+T` for other use.) Any ideas?


Is there a way to monitor all events sent to the libnotify module? I am trying to debug faulty sound notifications from Thunderbird, and I am hoping that if the way Thunderbird links with sounds is faulty, I can at least play my own sound. I am using Ubuntu 12.04 with KDE.


title: Manage local package repository

text: I just installed a fresh Waldorf (Crunchbang, Debian Wheezy-based) on a computer which has no Internet access. Previously on a Xubuntu 10.04 VM, what I did when I needed some software was:   * go to packages.ubuntu.com;   * find the relevant packages and their dependencies, download the .deb's;   * run `dpkg-scanpackages <download dir> /dev/null | gzip -9c > Packages.gz`   * run `apt-get update` (`<download dir>` figures in my `/etc/apt/sources.list`, i.e. there is an entry which looks like `deb file:<download dir> ./`);   * run `apt-get install <top-package>`;      * if there were any unmet dependencies, (i.e. package downloaded from packages.ubuntu.com is too recent and depends on a newer version of some package already present on my system), go to launchpad.net, and find an older version of the package;     * resume installation. Now with Debian Wheezy, I can find the .deb on packages.debian.org just fine, but problems start when those packages need newer versions of already installed packages. I cannot find an equivalent to launchpad.net for Debian... I guess since Ubuntu is Debian-based I could still find the old .deb's I need on launchpad.net, but I'm starting to think that maybe I'm doing something wrong. Is that the case? What should actually be done to install packages on a computer which has no Internet access? For example, I'm trying to install openjdk-6-jre. Going down the dependency tree I found I also need tzdata-java and libnss3-1d, but I can't install those with the .deb found on packages.debian.org, because `apt-get` chokes on the versions:               tzdata-java : Depends: tzdata (= 2014a-0wheezy1) but 2013b-2 is installed.     libnss3-1d : Depends: libnss3 (= 2:3.14.5-1) but 2:3.14.3-1 is installed.      (In before "just compile from the source")


title: Has my machine been compromised?

text: I have a bunch of lines in my machine if I use "ps aux". Here are the lines:               samp      8413  0.0  0.0    968   564 ?        S    12:28   0:00 ./ssh 150     samp      8419  0.0  0.0    956   380 ?        S    12:28   0:00 ./ssh 150     samp      8420  0.0  0.0    956   380 ?        S    12:28   0:00 ./ssh 150     samp      8421  0.0  0.0    956   384 ?        S    12:28   0:00 ./ssh 150     samp      8422  0.0  0.0    956   384 ?        S    12:28   0:00 ./ssh 150     samp      8423  0.0  0.0    956   396 ?        S    12:28   0:00 ./ssh 150     samp      8424  0.0  0.0    956   384 ?        S    12:28   0:00 ./ssh 150      Just a few out of hundreds. I don't know what "./ssh 150" is or what it does, but I know it shouldn't be there. Or am I wrong? Edit: All my logins are fine under "root". However, under "samp", I have weird lines:               samp     pts/1        quannei.de       Wed Jan 29 07:59 - 08:01  (00:01)     samp     pts/0        go2tech.de       Sat Jan 11 11:24 - 11:24  (00:00)


title: undefined reference to `__intel_sse4_atol' problem

text: I'm trying to build OpenFOAM for Xeon Phi, but I got an error as defined here               icpc -std=c++0x -Dlinux64 -DWM_DP -wd327,525,654,819,1125,1476,1505,1572 -xHost -O2 -no-prec-div  -DNoRepository -I.. -I/root/OpenFOAM/OpenFOAM-2.3.0/src/transportModels/twoPhaseMixture/lnInclude -I/root/OpenFOAM/OpenFOAM-2.3.0/src/transportModels -I/root/OpenFOAM/OpenFOAM-2.3.0/src/transportModels/incompressible/lnInclude -I/root/OpenFOAM/OpenFOAM-2.3.0/src/transportModels/interfaceProperties/lnInclude -I/root/OpenFOAM/OpenFOAM-2.3.0/src/turbulenceModels/incompressible/turbulenceModel -I/root/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/root/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/root/OpenFOAM/OpenFOAM-2.3.0/src/fvOptions/lnInclude -I/root/OpenFOAM/OpenFOAM-2.3.0/src/sampling/lnInclude -IlnInclude -I. -I/root/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/root/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64IccDPOpt/porousInterFoam.o -L/root/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64IccDPOpt/lib \                  -ltwoPhaseMixture -linterfaceProperties -ltwoPhaseProperties -lincompressibleTransportModels -lincompressibleTurbulenceModel -lincompressibleRASModels -lincompressibleLESModels -lfiniteVolume -lmeshTools -lfvOptions -lsampling -lOpenFOAM -ldl   -L/lib -lm -o /root/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64IccDPOpt/bin/porousInterFoam     ld: warning: libimf.so, needed by /root/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64IccDPOpt/lib/libtwoPhaseMixture.so, not found (try using -rpath or -rpath-link)     ld: warning: libsvml.so, needed by /root/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64IccDPOpt/lib/libtwoPhaseMixture.so, not found (try using -rpath or -rpath-link)     ld: warning: libirng.so, needed by /root/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64IccDPOpt/lib/libtwoPhaseMixture.so, not found (try using -rpath or -rpath-link)     ld: warning: libintlc.so.5, needed by /root/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64IccDPOpt/lib/libtwoPhaseMixture.so, not found (try using -rpath or -rpath-link)     /root/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64IccDPOpt/lib/libtriSurface.so: undefined reference to `__intel_sse4_atol'      and I searched for libimf.so, and i found it here:               /opt/intel/composer_xe_2013_sp1.1.106/compiler/lib/mic/libimf.so     /opt/intel/composer_xe_2013_sp1.1.106/compiler/lib/ia32/libimf.so     /opt/intel/composer_xe_2013_sp1.1.106/compiler/lib/intel64/libimf.so     /opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/mic/libimf.so     /opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/ia32/libimf.so     /opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/intel64/libimf.so      where should I put the `-rpath or -rpath-link` flag? or should i run this command first?               /opt/intel/composer_xe_2013_sp1.2.144/bin/compilervars_arch.sh mic


title: Gummi: Extend with Markdown functionality, or suggest Markdown editor

text: I use Gummi for my LaTeX work, and I use online Markdown1) editors, for quick note taking, making protocols, and making quick handouts, etc. I'd like to combine both. Is there any way, to extend Gummi (which is pretty much Gedit and a Poppler rendering pane in one GUI) with making it render Markdown? If this is _not_ possible, I need a non-RIA2) Markdown editor. The best one I could find so far, is Qute. Unfortunately, it is pretty unstable, and the GUI isn't really suited for prolonged working with it (it's quirky and nice, but for one thing, I cannot chose fonts, and it doesn't really do syntax highlighting - for instance the way Gummi does it). Gummi is a comparably minimalist LaTeX editor, my favorite RIA Markdown editor - stackedit.io - implements pretty much everything I need or expect from a nice Markdown editor, as well as having the right _feel_ for an editor for that task. I tried looking into extending Gummi myself, but it seems there isn't really a way to add render plugins, etc. to make it a good Markdown editor. The only other thing I could come up with, is basically implementing a new editor in the likes of Gummi, but with Markdown rendering instead of a Poppler pane for PDF viewing. Unfortunately, I have a day job, and can't really shell out the extra time for that... * * *   * 1) like dillinger.io, stackedit.io, etc.   * 2) RIA: Rich Internet Applications. Basically a browser window, and the whole GUI and pretty much everything is implemented as a webpage.


title: Condition string matches reg.expression

text: So, in my script, I have to decide whether one of the parameters is a valid email address. I was trying, but it failed.               if $maddr="^.$*\(@\)\(*\)\(.\)\(??*\)"          then     ...      It's meant to mean: at least 1 character followed by @ followed by anything followed by a dot and followed by something, which has at least 2 characters. Any help is appreciated. (Yes, I'm rookie, I'm learning scripting atm)


title: Print last element of each row

text: How can one print the element after the last tab in a file? Exemple: File1               A    3    8    6    7     B    4    6    2    3    6    8     c    1    9      would return:               7     8     9


title: Using a Counter Loop for Environment Variable

text: I'm trying to write a code that moves files to a .junk directory using the built-in environment variables. My goal is that all a user would have to do is type sh junk filename1 filename2 filename3... and the script would use $1, $2, $3... to move the files. Unfortunately I can't quite get the counter loop to work correctly.               #!/bin/s          if [ $# = 0 ]     then echo "Usage: junk -l | -p | { filename }*"          elif [ $1 = "-l" ] && [ $HOME/.junk ]          then ls $HOME/.junk          elif [ $1 = "-p" ] && [ $HOME/.junk ]          then rm -r $HOME/.junk          elif [ $1 = "$@" ] && [ $HOME/.junk ]          then echo $#          i=1     s="$"          while [ $i -le $# ]     do      echo $s$i      mv $s$i .junk/$i      i=$(($i+1))     done          fi


title: Bash: slice of positional parameters

text: How can I get a slice of `$@` in Bash without first having to copy all positional parameters to another array like this?               argv=($@)     echo ${argv[@]:2};


title: Line match to trigger specific argument

text: I have a file with 2 types of contents as below.               QJKLJFLHLKJDGFIUD 03:12:23       JHKJFDGDSFGDFGHDF 03:15:45       HJIK       ASDSdSADSADSSADSA 03:30:34       DFDF       KWQA I have 2 binaries. One is on the local computer and other is on the remote computer. If the line contains a timestamp, I have to call local binary and pass the line as argument to the binary. If the line doesn't contain a timestamp, I have to call the remote binary and pass the line as argument to the binary. How can I achieve this?


title: Understanding IRQs usage

text: In the last couple of days, I've trying to implement a simple interrupt handler in C. So far so good, I think I've achieved my initial task. My ultimate goal is to inject some faults in the kernel through bit-flipping some CPU registers. After reading this, this and this, I chose IRQ number 10, since it seems it is a free, "open interrupt". My doubt is: how can I know if this is the "best" IRQ to call my interrupt handler? How can I possibly decide on this? Thanks and all the best, João P.S.: As far as I know, there are 16 IRQ lines, but Linux has 256 IDT entries, as clearly stated in `/include/asm/irq_vectors.h` (please see below). This also seems to be puzzling me.               /*      * Linux IRQ vector layout.      *      * There are 256 IDT entries (per CPU - each entry is 8 bytes) which can      * be defined by Linux. They are used as a jump table by the CPU when a      * given vector is triggered - by a CPU-external, CPU-internal or      * software-triggered event.      *      * Linux sets the kernel code address each entry jumps to early during      * bootup, and never changes them. This is the general layout of the      * IDT entries:      *      *  Vectors   0 ...  31 : system traps and exceptions - hardcoded events      *  Vectors  32 ... 127 : device interrupts      *  Vector  128         : legacy int80 syscall interface      *  Vectors 129 ... 237 : device interrupts      *  Vectors 238 ... 255 : special interrupts      *      * 64-bit x86 has per CPU IDT tables, 32-bit has one shared IDT table.      *      * This file enumerates the exact layout of them:      */


title: How to get the actual keyboard device given the output of /proc/bus/input/devices?

text: When I run:               cat /proc/bus/input/devices      ...I receive the following output:               ...          I: Bus=0003 Vendor=040b Product=2000 Version=0110     N: Name="Generic USB Keyboard"     P: Phys=usb-0000:00:1d.0-1/input0     S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb5/5-1/5-1:1.0/input/input14     U: Uniq=     H: Handlers=sysrq kbd event7      B: PROP=0     B: EV=120013     B: KEY=1000000000007 ff9f207ac14057ff febeffdfffefffff fffffffffffffffe     B: MSC=10     B: LED=7          ...      Is there any way that a script could parse this information and determine the corresponding device (in `/dev/input/...`) that represents this keyboard? I intend to use the device name in `xorg.conf` if that helps.


title: how to add wamp feature to lamp

text: I am used to do web development using wampserver in windows but recently I wanted to move to Linux and I am using LAMP now but I found that some useful feature in wampserver are not available in LAMP like :   * switch online/offline   * stop all services   * restart all services   * start all services How can I add those feature to Lamp especially switch online/offline? **edit : What i mean with switch online/offline is to give access to everyone or only localhost**


title: Reuse similar flags for multiple commands

text: Let's say I want to execute several commands with similar flags such as:               du -sh / --exclude=/dir1 --exclude=/dir2 --exclude=/dir3/dir4     tar cvf archive / --exclude=dir1 --exclude=dir2 --exclude=dir3/dir4      I want to reuse the sequence of `\--exclude` flags and make the code more clean by e.g. saving these flags to a variable. So afterwards above commands look like               du -sh / "$EFLAGS"     tar cvf archive / "$EFLAGS"      Note that `tar` excludes files and directories relative to the given directory. ### What is the best and cleanest solution? ## Background I want to backup my system using tar and exclude some directories that I don't need.


title: How to resolve ssh connection refused on AIX?

text: I am no longer successfully able to connect to my AIX LPAR.               ssh -v user@<ip>     OpenSSH_6.2p2, OpenSSL 1.0.1c 10 May 2012     debug1: Reading configuration data /etc/ssh_config     debug1: Connecting to <ip> [<ip>] port 22.     debug1: connect to address <ip> port 22: Connection refused     ssh: connect to host <ip> port 22: Connection refused      This was after attempting to make an `sshd_config` update take effect (potentially incorrectly) by running               stopsrc -s sshd     startsrc -s sshd      Prior to running the stop and start, I was able to connect, now it refuses as above. I still currently have one connection open, is there anything I can do to resolve/troubleshoot this? I've already looked at ssh Connection refused: how to troubleshoot? thread, but I am unable to figure out basic things like whether or not the SSH daemon is running (I don't think it is) or how to start it if it is not... `ps -ax` did not recognize `x` as a flag... (edited based on comments)               user1@<host>:/usr/sbin > ps -ef | grep ssh         root  5046410        1   0 09:37:38     -  0:00 sshd: user1 [priv]         root  5374164        1   0 13:28:03     -  0:00 sshd: user1 [priv]         user2 5832758 11141204   0 16:25:39     -  0:00 sshd: user2@pts/0         user1 7340048  9175212   0 09:37:40     -  0:00 sshd: user1@notty         root  9175212        1   0 09:37:40     -  0:00 sshd: user1 [priv]         user1 11075776 5046410   2 09:37:40     -  0:01 sshd: user1@pts/1         root  11141204       1   0 16:25:33     -  0:00 sshd: user2 [priv]      How can I connect to this LPAR again? Any help is very much appreciated!


title: Possible to add proxy after TOR exit node?

text: Can I configure the TOR Browser which comes with Whonix to use a proxy, so that it becomes an extra hop **after** the TOR exit node? Connecting as follows: Browser(workstation) > TOR(gateway) > exit node > proxy Effectively rendering it a proxychain. In contrast to the Tor Browser Bundle which connects to TOR via 127.0.0.1 under Whonix we have a different situation where we connect through the gateway to TOR. So a connection like I described maybe this might be possible. Is there any more recommended solution for proxy chaining under Whonix?


title: Is there a multi-user webdav server available for linux?

text: I'm looking to completely decommission my SMBA service and replace it with a WebDav service. All the google searches so far have pointed me to using Apache / Webdav. This is close to what I need but as far as I read it requires Apache to have access to my user's files and worse; if it creates a file the new file will be owned by Apache (not the user). Note that having files with the correct permissions is a requirement as some users have direct SSH access. So I'm quite simply looking for a way to either make Apache / Webdav work "correctly" with multi-users (that is change unix user to the logged in user before attempting to serve the file) or find a complete alternative to Apache / Webdav. So far searches haven't turned anything up.


title: Printing file content with grep

text: Is it possible to print to the console all file content using only grep command? (wihtout cat, less, echo, more...)


title: ftp and shebang

text: Is there a way to shebang-ify ftp and write small ftp scripts? For example:               #!/usr/bin/ftp     open 192.168.1.1     put *.gz     quit      Any thoughts?


title: Is there a standard way to have a program start when a user logs in on Linux?

text: Is there a standard way to make a program start when a user logs in? On Ubuntu, for example, you can place a `.desktop` file in `~/.config/autostart` and the application will launch on startup. Does this apply to other distros as well?


title: How to execute shortcut keys from command line?

text: I am running Gnome. I would like to execute a shortcut key combination from the command line. For example, type a command that generates the key codes for `Ctrl`+`Alt`+`Left`. Does anyone know of a way to do this?


title: How can I know the default path for log directory?

text: I am programming in **shell scripting** , and would like to log results. Is there any way to know what is the **default path storage for logfiles** in my operating system? I have researched:               set | grep "log" -i      but there is nothing that seems to be like a log path directory.


title: Reliable way to detect ext2 or ext3 or ext4?

text: I need to detect a filesystem type from a C/C++ program using the filesystem superblock. However, I don't see much differences between superblocks for ext2 and ext4. The `s_rev_level` field is the same (=1), the `s_minor_rev_level` is the same (=0). I could check some features from `s_feature_compat` (and other feature fields) and try to locate features, which aren't supported by ext2. But - the person, formatting a partition, could disable some features on purpose. So, this method can detect the ext4, but it can't distinguish between the ext2 and the ext4 with disabled ext4-specific features. So, how to do that?


title: How to make .bashrc call dependant on tmux program being installed?

text: I have a section in my .bashrc that fires up the tmux program (terminal multiplexor). However if the tmux program isn't installed (say I'm setting up a new computer) then having this in my .bashrc file stops any terminal window from successfully opening at all. Of course installing tmux fixes this, but that isn't my problem. How can I make this conditional so that if tmux **isn't** installed it doesn't crap out / give an error message? Currently I have:               if [[ ! $TERM =~ screen ]]; then       exec tmux     fi      I want something like:               if tmux; then       if [[ ! $TERM =~ screen ]]; then         exec tmux       fi     fi      but that gives me               The program 'tmux' is currently not installed.  You can install it by typing:     sudo apt-get install tmux      Though it does at least give me a terminal prompt instead of closing the window! Also if/when tmux is installed this doesn't give any error / cause any issue when opening a new terminal window.


title: Socket connect to a ports bound to IP vs localhost

text: It is my understanding that sockets bound to ports using localhost will not be visible to the subnet because the binding is not with the nic IP address. Local processes connecting to such port will create a unix pipe instead of an IP socket. However if bound to the nic IP address the port is visible to the subnet. I want to learn the types of connections made when connecting to ports bound to localhost and the nic IP. ** Port bound to localhost **   * local process connect using localhost creates a unix pipe   * local process connect using nic IP creates a unix pipe   * foreign process connect using nic IP cannot connect ** Port bound to nic IP **   * local process connect using localhost creates a unix pipe   * local process connect using nic IP creates an IP socket   * foreign process connect using nic IP connects and creates an IP socket Are the above statements correct? I am reviewing network programming from this site: http://beej.us/guide/bgipc/output/html/multipage/unixsock.html in hopes of more insight.


title: What is the minimum version for liblgrp support on Solaris

text: What is the minimum version of Solaris SunOS that supports liblgrp?


title: iptables Port Forwarding — no service with the port

text: I have setup a network as in the image below: ![enter image description here](http://i.stack.imgur.com/YHWUs.jpg) **Firewall (FW)** running CentOS 6 has two physical interfaces with subinterfaces:   eth0:2 — 10.100.1.78/25   eth0:3 — 10.100.1.79/25   eth3 — 192.168.0.21/24   eth3:1 — 192.168.1.21/24   **The task** is to forward packets from **Host C** to either **Host A** or **Host B** on port 990. There is no router in the network and hosts don't see each other. **My solution:**   Host C needs to connect to Host A.   Host C sends a packet destined to FW (10.100.1.79, eth0:3) on port 990.   FW receives it on eth0:3 and forwards it to Host A (192.168.0.21) with the same port 990 **iptables** is empty and ACCEPT all policy is set, thus no packet is blocked. Here are the NAT rules:               iptables -A PREROUTING -t nat -p tcp -d 10.100.1.79 --dport 990 -j DNAT --to 192.168.0.21:990     iptables -A POSTROUTING -t nat -d 192.168.0.21 -p tcp -m tcp --dport 990 -j SNAT --to-source 10.100.1.79     iptables -A FORWARD -p tcp -i eth0:3 -d 192.168.0.22 --dport 990 -j ACCEPT      **There is no service listening on port 990 on FW**               PORT      STATE SERVICE     22/tcp    open  ssh     23/tcp    open  telnet     25/tcp    open  smtp     111/tcp   open  rpcbind     631/tcp   open  ipp     10000/tcp open  snet-sensor-mgmt      Here is the `ip route`:               10.100.1.0/25 dev eth0  proto kernel  scope link  src 10.100.1.76     192.168.1.0/24 dev eth3  proto kernel  scope link  src 192.168.1.21     192.168.0.0/24 dev eth3  proto kernel  scope link  src 192.168.0.21      When I try telnet localhost 990, the following message appears:               Trying 127.0.0.1...     telnet: connect to address 127.0.0.1: Connection refused      How can I accomplish the initial task? Do I have to have a service:990 running in order to forward packets?


title: iptables - the meaning of "ERROR: No valid subcommand given"?

text: I've installed iptables on a embedded device with linux. I believe the installation was successful because all the other apps are working fine (busybox etc.). I try to run them but i get the following error:               root@AlphaEdge:~ iptables -L     ERROR: No valid subcommand given.     Valid subcommands:      * iptables-xml      * xml      The only thing i found by googleing was this source code here, which I'm trying to figure out simultaneously while waiting for the answer.


title: Execution time and resources after processes that has been running for so long

text: This might be a basic question, but I am getting hard time finding an answer to it. I am using RHEL6. After running any process that takes significant cpu time, I get a line that tells (I guess) the run-time and IO usage automatically. It reads like:               77410.101u 124.968s 1:42:43.49 657.9%    0+0k 0+1353384io 0pf+0w      I have the following questions:   1. How do I interpret each field in this message? I can guess some time,IO usage and may be CPU usage ... but I am not sure.   2. What actually prints this line? Is it the shell? Is it the terminal emulator? Is there a running daemon taking care of that? What is the name of this feature/service/whatever it is.   3. Is it possible to control this message? Like set the cpu usage threshold for printing it?   4. Can I add extra information to it? Like the absolute path of the process, peak memory usage, peak disk usage, etc ...


title: terminal - having "$" instead of MyComputer:~ me$

text: Right now in my MacOS X terminal I have `MyComputer:~ me$` before all the commands. In some videos I saw they have just `$` - that's much less clutter, how is it done?


title: How do I force ssh to use a second interface with higher metric?

text: I have a Crunchbang VM with two interfaces, `eth0` and `eth1`, each of which connects to an OpenWRT VM (`eth0` being `10.232.64.20` and `eth1` being `10.232.65.20`). I'm using Network Manager and DHCP. My overall goal is having multiple `ssh` connections, and bonding them with `ifenslave`. By default, `eth1` (for some reason) is the default gateway:               user@crunchbang:~$ ip ro     default via 10.232.65.1 dev eth1  proto static     10.232.64.0/24 dev eth0  proto kernel  scope link  src 10.232.64.20     10.232.65.0/24 dev eth1  proto kernel  scope link  src 10.232.65.20      I added a route for `eth0`:               user@crunchbang:~$ sudo ip route add default via 10.232.64.1 dev eth0  proto static metric 1      Then I have two routes:               user@crunchbang:~$ ip ro     default via 10.232.65.1 dev eth1  proto static     default via 10.232.64.1 dev eth0  proto static  metric 1     10.232.64.0/24 dev eth0  proto kernel  scope link  src 10.232.64.20     10.232.65.0/24 dev eth1  proto kernel  scope link  src 10.232.65.20      However, `ssh` only gets out via `eth1`:               user@crunchbang:~$ ssh -b 10.232.64.20 user@1.2.3.4     ssh: connect to host 1.2.3.4 port 22: Connection timed out          user@crunchbang:~$ ssh -b 10.232.65.20 user@1.2.3.4     Enter passphrase for key '/home/user/.ssh/id_rsa':       After changing the `eth0` metric I have:               user@crunchbang:~$ ip ro     default via 10.232.64.1 dev eth0  proto static  metric 1     default via 10.232.65.1 dev eth1  proto static  metric 2     10.232.64.0/24 dev eth0  proto kernel  scope link  src 10.232.64.20     10.232.65.0/24 dev eth1  proto kernel  scope link  src 10.232.65.20      And now `ssh` only gets out via `eth0`:               user@crunchbang:~$ ssh -b 10.232.64.20 user@1.2.3.4     Enter passphrase for key '/home/user/.ssh/id_rsa':           user@crunchbang:~$ ssh -b 10.232.65.20 user@1.2.3.4     ssh: connect to host 1.2.3.4 port 22: Connection timed out      How do I force `ssh` to use an interface with a higher metric? **Edit** I have implemented and tested the configuration in the 4.2. Routing for multiple uplinks/providers section of the Linux Advanced Routing & Traffic Control HOWTO. Given that the configuration is simple, and that I didn't encounter errors, I'll just show code and results, with minimal explanation.               root@crunchbang:~# ip route add 10.232.64.0/24 dev eth0 src 10.232.64.20 table T0     root@crunchbang:~# ip route add default via 10.232.64.1 table T0     root@crunchbang:~# ip route add 10.232.65.0/24 dev eth1 src 10.232.65.20 table T1     root@crunchbang:~# ip route add default via 10.232.65.1 table T1     root@crunchbang:~# ip route flush table main     root@crunchbang:~# ip route add 10.232.64.0/24 dev eth0 src 10.232.64.20     root@crunchbang:~# ip route add 10.232.65.0/24 dev eth1 src 10.232.65.20     root@crunchbang:~# ip rule add from 10.232.64.20 table T0     root@crunchbang:~# ip rule add from 10.232.65.20 table T1     root@crunchbang:~# ip route add default scope global nexthop via 10.232.64.1 dev eth0 weight 1 nexthop via 10.232.65.1 dev eth1 weight 1      Here are the routing tables generated:               root@crunchbang:~# ip route show table T0     default via 10.232.64.1 dev eth0      10.232.64.0/24 dev eth0  scope link  src 10.232.64.20           root@crunchbang:~# ip route show table T1     default via 10.232.65.1 dev eth1      10.232.65.0/24 dev eth1  scope link  src 10.232.65.20           root@crunchbang:~# ip ro     default          nexthop via 10.232.64.1  dev eth0 weight 1         nexthop via 10.232.65.1  dev eth1 weight 1     10.232.64.0/24 dev eth0  scope link  src 10.232.64.20      10.232.65.0/24 dev eth1  scope link  src 10.232.65.20       With that configuration, ssh connects via both interfaces:               user@crunchbang:~$ ssh -b 10.232.64.20 user@1.2.3.4     Enter passphrase for key '/home/user/.ssh/id_rsa':           user@crunchbang:~$ ssh -b 10.232.65.20 user@1.2.3.4     Enter passphrase for key '/home/user/.ssh/id_rsa':       However, it does appear that I need to lose Network Manager. If anyone could explain why that's a bad idea, or warn of pitfalls, I would appreciate it. **Edit2** Removing Network Manager went well. I have just one last question. What is the current standard way to load the configuration at boot?


title: Install multiple packages via different methods in one Yum command

text: Is it possible to group these three commands into one?               yum install emacs     yum groupinstall "Virtualization"     yum localinstall /tmp/hello.rpm      I'd like to install a number of packages using all three methods above in a script but would like it to be a single operation so that the user only has to answer `y` one time.


title: Light, easy-to-use presentation software

text: I am looking for a Linux presentation software and the main features I need are:   * **Light** on dependencies and resource consumption ( _I use GTK+_ )   * Easy to use   * Align & Distribute information on slide   * Uses pictures The extra features I would like are:   * On-click animations   * .ppt Import/export   * Use templates/themes for easily unified presentation * * * Sliderocket looks like a presentation tool matching my needs. Unfortunately it is an online presentation editor and I am looking for an offline one. _I don't mind the software being proprietary and non-free of charge_