<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;CUMMQHc8eip7ImA9WxNVEkQ.&quot;"><id>tag:blogger.com,1999:blog-4523667190511269416</id><updated>2009-10-23T12:24:41.972+02:00</updated><title>Remind-Nix</title><subtitle type="html">Linux Howtos, tutorials and guides</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://remind-nix.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://remind-nix.blogspot.com/" /><link rel="hub" href="http://pubsubhubbub.appspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>Tvrtko</name><uri>http://www.blogger.com/profile/04956047142776324060</uri><email>noreply@blogger.com</email></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>27</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><link rel="self" href="http://feeds.feedburner.com/remind-nix" type="application/atom+xml" /><feedburner:emailServiceId>remind-nix</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><entry gd:etag="W/&quot;Ak8NQ3k4eCp7ImA9WxRWEk8.&quot;"><id>tag:blogger.com,1999:blog-4523667190511269416.post-1017039623395174673</id><published>2008-10-28T22:15:00.002+01:00</published><updated>2008-10-28T22:21:32.730+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-28T22:21:32.730+01:00</app:edited><title>Choosing which version of Java JRE system should use</title><content type="html">&lt;span style="font-size:85%;"&gt;Sometimes a number of various Java Runtime Environment versions is needed to be installed on a Linux system. To chose which one to use as a default use this command:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;sudo update-alternatives --config java&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;An output like this will show up:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;There are 6 alternatives which provide `java'.&lt;br /&gt;&lt;br /&gt;  Selection    Alternative&lt;br /&gt;-----------------------------------------------&lt;br /&gt;          1    /usr/bin/gij-4.3&lt;br /&gt;          2    /usr/lib/jvm/java-gcj/jre/bin/java&lt;br /&gt;          3    /usr/lib/jvm/java-6-sun/jre/bin/java&lt;br /&gt;*         4    /usr/lib/jvm/java-1.5.0-sun/jre/bin/java&lt;br /&gt; +        5    /usr/lib/jvm/java-6-openjdk/jre/bin/java&lt;br /&gt;          6    /usr/bin/gij-4.2&lt;br /&gt;&lt;br /&gt;Press enter to keep the default[*], or type selection number:&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;All to do here is enter the number of the selection next to the alternative JRE name and press enter.&lt;br /&gt;&lt;br /&gt;Hope this was helpful. Enjoy.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4523667190511269416-1017039623395174673?l=remind-nix.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://remind-nix.blogspot.com/feeds/1017039623395174673/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=4523667190511269416&amp;postID=1017039623395174673" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/1017039623395174673?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/1017039623395174673?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/remind-nix/~3/CaPIzTdKw9c/choosing-which-version-of-java-jre.html" title="Choosing which version of Java JRE system should use" /><author><name>Tvrtko</name><uri>http://www.blogger.com/profile/04956047142776324060</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06412307500393141951" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://remind-nix.blogspot.com/2008/10/choosing-which-version-of-java-jre.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A08GSXw8eyp7ImA9WxRWEUQ.&quot;"><id>tag:blogger.com,1999:blog-4523667190511269416.post-3094378948916751048</id><published>2008-10-28T14:13:00.002+01:00</published><updated>2008-10-28T14:17:08.273+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-10-28T14:17:08.273+01:00</app:edited><title>Schedule fsck program to check disks on next reboot</title><content type="html">&lt;span style="font-size:85%;"&gt;It's not save to run &lt;b&gt;fsck (file system check)&lt;/b&gt; while the disks are mounted. But it can be scheduled to run check on the next reboot simply by creating a file named &lt;b&gt;'forcefsck'&lt;/b&gt; on he root partition. Like this:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;$ sudo touch /forcefsck&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4523667190511269416-3094378948916751048?l=remind-nix.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://remind-nix.blogspot.com/feeds/3094378948916751048/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=4523667190511269416&amp;postID=3094378948916751048" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/3094378948916751048?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/3094378948916751048?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/remind-nix/~3/imcE2a0eAO4/schedule-fsck-program-to-check-disks-on.html" title="Schedule fsck program to check disks on next reboot" /><author><name>Tvrtko</name><uri>http://www.blogger.com/profile/04956047142776324060</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06412307500393141951" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://remind-nix.blogspot.com/2008/10/schedule-fsck-program-to-check-disks-on.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkcAQHk9fCp7ImA9WxRSGE8.&quot;"><id>tag:blogger.com,1999:blog-4523667190511269416.post-6775722421956992029</id><published>2008-09-19T12:23:00.001+02:00</published><updated>2008-09-19T12:27:21.764+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-09-19T12:27:21.764+02:00</app:edited><title>OpenSUSE: Install RPM packages with zypper CLI tool</title><content type="html">&lt;span style="font-size:85%;"&gt;Open Suse Linux uses RPM packages for software installation. Those files end in &lt;strong&gt;.rpm extension&lt;/strong&gt;.&lt;br /&gt;Most Suse users are familiar with the YaST graphic interface, but sometimes the quicker way to install a RPM package is from command line with the tool named &lt;strong&gt;zypper&lt;/strong&gt;. This tool is similar to &lt;strong&gt;apt-get&lt;/strong&gt; tool that Debian users use to install .deb packages and it uses already configured repositories to fetch packages. I'll explain its basic usage here.&lt;br /&gt;All &lt;strong&gt;zypper&lt;/strong&gt; commands have its longer and readable variant, and its shorter and less readable one. Commands for installing, removing and updating software needs root privileges.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;Commands for &lt;strong&gt;software management&lt;/strong&gt;:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:135%;"&gt;&lt;strong&gt;Installing software&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;$ zypper install [package name]&lt;br /&gt; $ zypper in [package name]&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:135%;"&gt;&lt;strong&gt;Removing software&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;$ zypper remove [package name]&lt;br /&gt; $ zypper rm [package name]&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:135%;"&gt;&lt;strong&gt;Updating all installed software&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;$ zypper update&lt;br /&gt; $ zypper up&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:135%;"&gt;&lt;strong&gt;Distribution upgrade&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;$ zypper dist-upgrade&lt;br /&gt; $ zypper dup&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Note: All of the above commands require root priviledeges.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;Commands for &lt;strong&gt;software querying&lt;/strong&gt;:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:135%;"&gt;&lt;strong&gt;Search for packages matching a pattern&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;$ zypper search [pattern]&lt;br /&gt; $ zypper se [pattern]&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:135%;"&gt;&lt;strong&gt;Show package information&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;$ zypper info [package]&lt;br /&gt; $ zypper se [package]&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;Commands for &lt;strong&gt;repository management&lt;/strong&gt;:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:135%;"&gt;&lt;strong&gt;List all repositories&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;$ zypper repos&lt;br /&gt; $ zypper lr&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;For all other commands and help type:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;$ zypper --help&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4523667190511269416-6775722421956992029?l=remind-nix.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://remind-nix.blogspot.com/feeds/6775722421956992029/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=4523667190511269416&amp;postID=6775722421956992029" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/6775722421956992029?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/6775722421956992029?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/remind-nix/~3/KqxjLKFNXLs/open-suse-linux-uses-rpm-packages-for.html" title="OpenSUSE: Install RPM packages with zypper CLI tool" /><author><name>Tvrtko</name><uri>http://www.blogger.com/profile/04956047142776324060</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06412307500393141951" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://remind-nix.blogspot.com/2008/09/open-suse-linux-uses-rpm-packages-for.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkYNRHo6eip7ImA9WxRSFkw.&quot;"><id>tag:blogger.com,1999:blog-4523667190511269416.post-4776873344496765001</id><published>2008-09-17T02:38:00.006+02:00</published><updated>2008-09-17T03:16:35.412+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-09-17T03:16:35.412+02:00</app:edited><title>Vim feature that makes editing easier (1)</title><content type="html">&lt;span style="font-size:85%;"&gt;Vim, along with the Emacs is the best free text editing choice in the Linux and OSS world. It has tons of features and improvements that can make text editing a lot easier and faster. I'll mention some of its features on the blog that I use the most.&lt;br /&gt;This post is not a beginners tutorial or guide and I'm assuming that the reader has basic Vim knowledge such as entering/exiting insert mode, basic movement keys etc.&lt;br /&gt;So let's get started.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:135%;"&gt;&lt;b&gt;One word replacement&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Let's assume we have this line of text in our file:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;Nikola Tesla was tha greatest engineer in tha world&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Assume that the Vim is in the command mode and that the cursor is on the letter 'w' of the word 'world' also. This line has two typos in it an that is the 'tha' words. We need to substitute that typos with the right word 'the'. In the Vim editor that is done easily with the simple &lt;b&gt;ex&lt;/b&gt; command:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;:s/tha/the/g&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;First letter &lt;b&gt;s&lt;/b&gt; of this command means &lt;b&gt;substitute&lt;/b&gt;. Expression after the first slash presents the text we need to replace, and the second expression after the second slash presents the text to substitute with. Finally the letter 'g' in this command after the last slash says vim to replace every 'tha' occurrence in the line with the right word 'the'.&lt;br /&gt;But what if we use the above command on this kinda sentence?&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;Nikola Tesla was tha greatest engineer in thailand&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;First three letters of the word 'thailand' will be substituted as well; the word 'thailand' is also a typo here cause it needs to start with the capital letter, but ignore that for now. The problem can be fixed with regular expressions that can be used in vim during a text search. Regular expressions are complex topic and I'm not gonna explain them here in depth. Let's just say that &lt;b&gt;\&lt;&lt;/b&gt; and &lt;b&gt;\&gt;&lt;/b&gt; can be used to mark start and end end of the word respectively, and our &lt;b&gt;ex&lt;/b&gt; command would look like this:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;:s/\&amp;lt;tha\&amp;gt;/the/g&lt;/tha\&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;This command works only on the line in witch cursor resides. To substitute each and every &lt;b&gt;bad&lt;/b&gt; occurrence with &lt;b&gt;new&lt;/b&gt; in the file this command is used:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;:%s/bad/new/g&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Read the &lt;b&gt;'%'&lt;/b&gt; character as: do the commands on the whole file.&lt;br /&gt;Substitutions that needs to be done from line 1 to 10 for example is used like this:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;:1,10s/bad/new/g&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Isn't Vim great? More neat vim features explained coming...&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4523667190511269416-4776873344496765001?l=remind-nix.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://remind-nix.blogspot.com/feeds/4776873344496765001/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=4523667190511269416&amp;postID=4776873344496765001" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/4776873344496765001?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/4776873344496765001?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/remind-nix/~3/yadnrNRfjqA/vim-feature-that-makes-editing-easier-1.html" title="Vim feature that makes editing easier (1)" /><author><name>Tvrtko</name><uri>http://www.blogger.com/profile/04956047142776324060</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06412307500393141951" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://remind-nix.blogspot.com/2008/09/vim-feature-that-makes-editing-easier-1.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkEAQnwyeCp7ImA9WxRSEEQ.&quot;"><id>tag:blogger.com,1999:blog-4523667190511269416.post-3929743738536295034</id><published>2008-09-11T01:35:00.003+02:00</published><updated>2008-09-11T01:50:43.290+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-09-11T01:50:43.290+02:00</app:edited><title>Find command: '-exec' action</title><content type="html">&lt;span style="font-size:85%;"&gt;There is a way to execute a command on each file using &lt;b&gt;find&lt;/b&gt; and it is done with the &lt;b&gt;-exec&lt;/b&gt; action argument.&lt;br /&gt;&lt;br /&gt;For example, removing all backup files under the '/' directory and its subdirectories is done like this:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;$ find / -name '*~' -exec rm '{}' \;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;This means: execute &lt;b&gt;rm&lt;/b&gt; command on each filename that ends with '~' on file system. The &lt;b&gt;'{}'&lt;/b&gt; part of the command is replaced with the filenames that are found during execution, and escaped semicolon (\;) at the end represents the end of the -exec action argument.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4523667190511269416-3929743738536295034?l=remind-nix.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://remind-nix.blogspot.com/feeds/3929743738536295034/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=4523667190511269416&amp;postID=3929743738536295034" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/3929743738536295034?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/3929743738536295034?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/remind-nix/~3/TtK5OM0lmzA/find-command-exec-action.html" title="Find command: '-exec' action" /><author><name>Tvrtko</name><uri>http://www.blogger.com/profile/04956047142776324060</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06412307500393141951" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://remind-nix.blogspot.com/2008/09/find-command-exec-action.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0EHSXk-eSp7ImA9WxRTFEU.&quot;"><id>tag:blogger.com,1999:blog-4523667190511269416.post-1380230034989374220</id><published>2008-09-04T00:22:00.004+02:00</published><updated>2008-09-04T00:40:38.751+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-09-04T00:40:38.751+02:00</app:edited><title>How to stop gnome-screensaver while watching videos</title><content type="html">&lt;span style="font-size:85%;"&gt;Today I made two python scripts that prevents activating the screensaver during video playback. Those scripts and some more explanation can be found &lt;a href = http://program-nix.blogspot.com/2008/09/python-hacks-stopping-gnome-screensaver.html&gt;on this link&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Don't forget to &lt;b&gt;chmod +x&lt;/b&gt; the scripts!&lt;br /&gt;&lt;br /&gt;Those scripts will work only if using &lt;b&gt;gnome-screensaver&lt;/b&gt; and &lt;b&gt;MPlayer&lt;/b&gt; but they can be customized for every need with a little python knowledge.&lt;br /&gt;&lt;br /&gt;Leave a comment if you have some trouble, I'll be glad to help.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4523667190511269416-1380230034989374220?l=remind-nix.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://remind-nix.blogspot.com/feeds/1380230034989374220/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=4523667190511269416&amp;postID=1380230034989374220" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/1380230034989374220?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/1380230034989374220?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/remind-nix/~3/yx9RM-Z-XDg/how-to-stop-gnome-screensaver-while.html" title="How to stop gnome-screensaver while watching videos" /><author><name>Tvrtko</name><uri>http://www.blogger.com/profile/04956047142776324060</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06412307500393141951" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://remind-nix.blogspot.com/2008/09/how-to-stop-gnome-screensaver-while.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CE4HSHk4fip7ImA9WxdaE04.&quot;"><id>tag:blogger.com,1999:blog-4523667190511269416.post-5043842198624331949</id><published>2008-08-21T16:39:00.009+02:00</published><updated>2008-08-21T17:35:39.736+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-08-21T17:35:39.736+02:00</app:edited><title>openSUSE: Installing flash player plugin on any internet browser</title><content type="html">&lt;span style="font-size:85%;"&gt;Download Flash Player installer in .tar.gz format from &lt;a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"&gt;this site&lt;/a&gt;. Run these commands in the directory where you saved the archive:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;~&gt; tar -xvvzf install_flash_player_9_linux.tar.gz&lt;br /&gt;~&gt; cd install_flash_player_9_linux&lt;br /&gt;~&gt; sudo cp libflashplayer.so /usr/lib/browser-plugins&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Enter root's password, restart any running internet browser and that's it. Worked for me for Firefox.&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4523667190511269416-5043842198624331949?l=remind-nix.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://remind-nix.blogspot.com/feeds/5043842198624331949/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=4523667190511269416&amp;postID=5043842198624331949" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/5043842198624331949?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/5043842198624331949?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/remind-nix/~3/c9p80e6cDrU/opensuse-installing-flash-player-plugin.html" title="openSUSE: Installing flash player plugin on any internet browser" /><author><name>Tvrtko</name><uri>http://www.blogger.com/profile/04956047142776324060</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06412307500393141951" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://remind-nix.blogspot.com/2008/08/opensuse-installing-flash-player-plugin.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEcDRHkyeip7ImA9WxdaEEo.&quot;"><id>tag:blogger.com,1999:blog-4523667190511269416.post-546079688680698534</id><published>2008-08-18T17:24:00.000+02:00</published><updated>2008-08-18T18:14:35.792+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-08-18T18:14:35.792+02:00</app:edited><title>Ubuntu: Installing Truetype Fonts (TTF)</title><content type="html">&lt;span style="font-size:85%;"&gt;To install basic &lt;b&gt;Microsoft TrueType Fonts&lt;/b&gt; such as Arial, Courier, Impact, Times New Roman etc. you need to &lt;a href="http://www.ubuntugeek.com/how-to-enable-the-universe-and-multiverse-repositories-in-ubuntu-804-hardy.html"&gt;enable the "Universe repositories"&lt;/a&gt; and install the &lt;b&gt;msttcorefonts&lt;/b&gt; package:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;$ sudo apt-get install msttcorefonts&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;New fonts will appear under the &lt;i&gt;/usr/share/fonts/truetype/msttcorefonts&lt;/i&gt; directory.&lt;br /&gt;Truetype fonts can also be installed by simply copying the &lt;b&gt;.ttf&lt;/b&gt; files in some subdirectory under the &lt;i&gt;/usr/share/fonts/truetype/&lt;/i&gt;.&lt;br /&gt;For example, If you downloaded some &lt;i&gt;&lt;b&gt;neat&lt;/b&gt;&lt;/i&gt; TTF fonts over the internet, you can install them like this:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;neat_fonts$ sudo mkdir /usr/share/fonts/truetype/neat&lt;br /&gt;neat_fonts$ sudo cp *.ttf /usr/share/fonts/truetype/neat&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Note: Name the subdirectory under /usr/share/fonts/truetype/ as you wish; "neat" is just for demonstrating purpose&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Log out and than login again to be able to use new fonts or just run this command to regenerate the fonts cache:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;$ sudo fc-cache -fv&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Those fonts will now be accessible to any user on the Ubuntu system.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4523667190511269416-546079688680698534?l=remind-nix.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://remind-nix.blogspot.com/feeds/546079688680698534/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=4523667190511269416&amp;postID=546079688680698534" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/546079688680698534?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/546079688680698534?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/remind-nix/~3/KReqgqb7C_8/ubuntu-installing-truetype-fonts-ttf.html" title="Ubuntu: Installing Truetype Fonts (TTF)" /><author><name>Tvrtko</name><uri>http://www.blogger.com/profile/04956047142776324060</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06412307500393141951" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://remind-nix.blogspot.com/2008/08/ubuntu-installing-truetype-fonts-ttf.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEQNR3g6cCp7ImA9WxdbFk4.&quot;"><id>tag:blogger.com,1999:blog-4523667190511269416.post-8803601423488944290</id><published>2008-08-13T00:26:00.000+02:00</published><updated>2008-08-13T16:06:36.618+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-08-13T16:06:36.618+02:00</app:edited><title>How to setup OpenDNS on Linux</title><content type="html">&lt;span style="font-size:85%;"&gt;Check the &lt;a href="http://www.opendns.com/"&gt;OpenDNS webpage&lt;/a&gt; for more information of its services. Here, I'll just explain how to configure your network and switch over to the OpenDNS servers.&lt;br /&gt;&lt;br /&gt;Use your favorite text editor and open the &lt;i&gt;&lt;b&gt;/etc/resolv.conf&lt;/i&gt;&lt;/b&gt; file &lt;b&gt;as root&lt;/b&gt; and change the nameserver lines to:&lt;br /&gt;&lt;pre&gt;nameserver 208.67.222.222&lt;br /&gt;nameserver 208.67.220.220&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Now it is needed to flush any cached addresses on the computer. Type this command:&lt;br /&gt;&lt;pre&gt;sudo /etc/init.d/networking restart&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;That will also restart all the networking services.&lt;br /&gt;Check &lt;a href="http://www.opendns.com/welcome"&gt;this website&lt;/a&gt; to check that you switched. If you get "Oops!" try again. :)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4523667190511269416-8803601423488944290?l=remind-nix.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://remind-nix.blogspot.com/feeds/8803601423488944290/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=4523667190511269416&amp;postID=8803601423488944290" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/8803601423488944290?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/8803601423488944290?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/remind-nix/~3/z_8_3GxU6pk/how-to-setup-opendns-on-linux.html" title="How to setup OpenDNS on Linux" /><author><name>Tvrtko</name><uri>http://www.blogger.com/profile/04956047142776324060</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06412307500393141951" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://remind-nix.blogspot.com/2008/08/how-to-setup-opendns-on-linux.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUMFRnw6eCp7ImA9WxdbE0Q.&quot;"><id>tag:blogger.com,1999:blog-4523667190511269416.post-6720991617723527425</id><published>2008-08-10T19:13:00.001+02:00</published><updated>2008-08-10T20:36:57.210+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-08-10T20:36:57.210+02:00</app:edited><title>Installing Internet Explorer on Linux / Ubuntu</title><content type="html">&lt;span style="font-size:85%;"&gt;Someone would ask: "Why would I need IE on Linux cause I got the newest and best browser ever called Firefox already installed?" :)&lt;br /&gt;Sometimes the IE is necessary for web designers working on Linux to test their pages, or to browse sites that don't open in any browser except the IE.&lt;br /&gt;Here I will explain how to install IE7 on Ubuntu box. Actually only the IE7 rendering engine will be installed on IE6 interface. I did this on my Ubuntu Hardy Linux installation, but the procedure should work on any Debian based distro.&lt;br /&gt;Start by adding two new repositories:&lt;br /&gt;&lt;pre&gt;$ sudo gedit /etc/apt/sources.list&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Add (or uncomment) those two new lines:&lt;br /&gt;&lt;pre&gt;deb http://us.archive.ubuntu.com/ubuntu hardy universe&lt;br /&gt;deb http://wine.budgetdedicated.com/apt hardy main&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Note: If using Ubuntu Gutsy type &lt;b&gt;gutsy&lt;/b&gt; instead &lt;b&gt;hardy&lt;/b&gt; in those two lines above.&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Next, add the winebudget GPG key and install/upgrade &lt;b&gt;wine&lt;/b&gt; and &lt;b&gt;cabextract&lt;/b&gt; packages:&lt;br /&gt;&lt;pre&gt;$ wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -&lt;br /&gt;$ sudo apt-get update&lt;br /&gt;$ sudo apt-get install cabextract wine&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Now, download IEs4Linux and install it:&lt;br /&gt;&lt;pre&gt;$ wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz&lt;br /&gt;$ tar zxvf ies4linux-latest.tar.gz&lt;br /&gt;$ cd ies4linux-*&lt;br /&gt;$ ./ies4linux --hack-ie7-proxy-settings&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Check the versions of IE you want to install and also check to install flash plugin. If you get some kinda error try it without flash plugin.&lt;br /&gt;Click &lt;b&gt;Advanced&lt;/b&gt; button and check the box at the bottom to install version 7.0. Click OK and than OK again. When the IE6 is installed it will run. You need to configure your proxy settings now in the Internet Options dialog. Once done, close the browser and the installation of IE7 rendering engine should continue.&lt;br /&gt;If the installation of IE7 won't continue try without the proxy hack argument &lt;i&gt;--hack-ie7-proxy-settings&lt;/i&gt;.&lt;br /&gt;&lt;br /&gt;That's it.&lt;br /&gt; &lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4523667190511269416-6720991617723527425?l=remind-nix.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://remind-nix.blogspot.com/feeds/6720991617723527425/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=4523667190511269416&amp;postID=6720991617723527425" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/6720991617723527425?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/6720991617723527425?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/remind-nix/~3/HOYvf7JlgOU/installing-internet-explorer-ubuntu.html" title="Installing Internet Explorer on Linux / Ubuntu" /><author><name>Tvrtko</name><uri>http://www.blogger.com/profile/04956047142776324060</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06412307500393141951" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://remind-nix.blogspot.com/2008/08/installing-internet-explorer-ubuntu.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0QASXkycCp7ImA9WxdbE0o.&quot;"><id>tag:blogger.com,1999:blog-4523667190511269416.post-8428846008610912693</id><published>2008-08-09T17:34:00.000+02:00</published><updated>2008-08-10T16:42:28.798+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-08-10T16:42:28.798+02:00</app:edited><title>Search &amp; Play YouTube videos in Totem Movie Player / Ubuntu</title><content type="html">&lt;span style="font-size:85%;"&gt;First think to do is to install appropriate &lt;i&gt;gstreamer&lt;/i&gt; plugins. Use the apt-get command:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;$ sudo apt-get install gstreamer0.10-plugins-bad&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Next, open up the Totem Movie Player. You can start it with the &lt;b&gt;totem &amp;amp;&lt;/b&gt; command in the CLI (command line interface) or from the desktop menu. On Ubuntu it can be found under Application -&gt; Sound &amp;amp; Video -&gt; Movie Player. If you don't have Totem install it the usual way of installing software packages.&lt;br /&gt;Under the player's &lt;b&gt;Edit..&lt;/b&gt; menu select &lt;b&gt;Plugins..&lt;/b&gt;. New window will pop and under it check the box next to &lt;b&gt;YouTube browser&lt;/b&gt;. The new sidebar should become visible. Something like this:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://2.bp.blogspot.com/_p2_APOwEK-Y/SJ3Bqxsz24I/AAAAAAAAANU/Qqi7R6e6qrA/s320/youtube_totem.jpg" alt="" id="BLOGGER_PHOTO_ID_5232551282714336130" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;It is also possible to install YouTube H.264 plugin for better quality. Download archive file from &lt;a href="http://www.soccio.it/code/totem/youtubeh264.tar.gz"&gt;here&lt;/a&gt;, and extract the files in the:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;/usr/lib/totem/plugins&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;enjoy.&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4523667190511269416-8428846008610912693?l=remind-nix.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://remind-nix.blogspot.com/feeds/8428846008610912693/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=4523667190511269416&amp;postID=8428846008610912693" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/8428846008610912693?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/8428846008610912693?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/remind-nix/~3/nPvQvpPO9h8/search-play-youtube-videos-in-totem.html" title="Search &amp; Play YouTube videos in Totem Movie Player / Ubuntu" /><author><name>Tvrtko</name><uri>http://www.blogger.com/profile/04956047142776324060</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06412307500393141951" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_p2_APOwEK-Y/SJ3Bqxsz24I/AAAAAAAAANU/Qqi7R6e6qrA/s72-c/youtube_totem.jpg" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://remind-nix.blogspot.com/2008/08/search-play-youtube-videos-in-totem.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUYAQXs4eSp7ImA9WxdbE0Q.&quot;"><id>tag:blogger.com,1999:blog-4523667190511269416.post-8767380890622290615</id><published>2008-08-09T16:53:00.000+02:00</published><updated>2008-08-10T20:32:20.531+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-08-10T20:32:20.531+02:00</app:edited><title>apt-get command</title><content type="html">&lt;span style="font-size:85%;"&gt;Most &lt;b&gt;Debian Linux&lt;/b&gt; are already familiar with the apt-get command. For those unfamiliar with it here's a short description.&lt;br /&gt;&lt;br /&gt;apt-get is a command-line tool for handling Debian Linux packages and it is used to install/remove individual packages, upgrade packages, apply patches, upgrade debian distribution, download .deb files etc. This command is a frontend to manyy GUI applications such as &lt;b&gt;"Synaptic Package Manager"&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:120%;"&gt;&lt;b&gt;&lt;u&gt;Install or upgrade package&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;$ apt-get install [package name]&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:120%;"&gt;&lt;b&gt;&lt;u&gt;Remove a package&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;$ apt-get remove [package name]&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:120%;"&gt;&lt;b&gt;&lt;u&gt;Remove a package and its configuration files&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Use this if 100% sure that the package will not be used never again :)&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;$ apt-get --purge remove [package name]&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:120%;"&gt;&lt;b&gt;&lt;u&gt;Upgrade a package&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This will list all possible software upgrades. If you wish to upgrade them all hit the 'y' key:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;$ apt-get upgrade&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;To upgrade single package use the &lt;b&gt;'install'&lt;/b&gt; argument option.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:120%;"&gt;&lt;b&gt;&lt;u&gt;Distribution upgrade&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Intelligently handles changing dependencies with new versions of packages; apt-get has a "smart" conflict resolution system, and it will attempt to upgrade the most important packages at the expense of less important ones if necessary.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;$ apt-get dist-upgrade&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;note: use auto-complete command line feature if you don't know full package name. It is done using the &amp;lt;TAB&amp;gt; key.&lt;/i&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4523667190511269416-8767380890622290615?l=remind-nix.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://remind-nix.blogspot.com/feeds/8767380890622290615/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=4523667190511269416&amp;postID=8767380890622290615" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/8767380890622290615?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/8767380890622290615?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/remind-nix/~3/8hyHfwQr72A/apt-get-and-dpkg-command.html" title="apt-get command" /><author><name>Tvrtko</name><uri>http://www.blogger.com/profile/04956047142776324060</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06412307500393141951" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://remind-nix.blogspot.com/2008/08/apt-get-and-dpkg-command.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CE4DRX0yeyp7ImA9WxdbE0Q.&quot;"><id>tag:blogger.com,1999:blog-4523667190511269416.post-4757338953353052603</id><published>2008-07-29T22:13:00.000+02:00</published><updated>2008-08-10T20:29:34.393+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-08-10T20:29:34.393+02:00</app:edited><title>Installing Apache2 server with PHP and MySQL support</title><content type="html">&lt;span style="font-size:85%;"&gt;Today I wanted to try out and start learning PHP scripting language a bit. PHP is server-side scripting language so for it to work I need a server that supports it. Apache web server is widely used with PHP so I'm going for that combo. Also, I would like to have a MySQL database support.&lt;br /&gt;Here's how I did that on Ubuntu 8.04 LTS. Googling around I found that the wanted combo is named LAMP (Linux-Apache-MySQL-PHP) task and it can be installed using &lt;b&gt;tasksel&lt;/b&gt; command:&lt;br /&gt;&lt;pre&gt;sudo tasksel install lamp-server&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;But unfortunately it gave me an error:&lt;br /&gt;&lt;pre&gt;tasksel: aptitude failed (100)&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Is it a bug or something wrong with my machine? Anyone has an answer please comment.&lt;br /&gt;So I turned to the good old &lt;b&gt;apt-get&lt;/b&gt;:&lt;br /&gt;&lt;pre&gt;sudo apt-get install apache2 php5-mysql libapache2-mod-php5 mysql-server libapache2-mod-auth-mysql&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;After the installation you'll be asked for MySQL 'root' user password. Enter it and don't forget! :) Now, the Apache server can be started with:&lt;br /&gt;&lt;pre&gt;$ sudo /etc/init.d/apache2 start&lt;br /&gt;apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;To hide this strange "Could not... " message you need to create a file &lt;b&gt;&lt;i&gt;/etc/apache2/conf.d/fqdn&lt;/b&gt;&lt;/i&gt; and put this line in it:&lt;br /&gt;&lt;pre&gt;ServerName localhost&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Now to check functionality create a 'test.php' in the &lt;b&gt;/var/www/&lt;/b&gt; directory with the line:&lt;br /&gt;&lt;pre&gt;&amp;lt?php phpinfo();?&amp;gt&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Open up your browser and type &lt;b&gt;http://localhost/test.php&lt;/b&gt; in the address bar. If you get something like this:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://lh4.ggpht.com/tvrtkom/SI-CpTE7MmI/AAAAAAAAANM/ovoAvhdtwRU/s144/phpinfo.gif" /&gt;&lt;br /&gt;&lt;br /&gt;you did it!&lt;br /&gt;For configuring databases, user privileges etc. there is an application called &lt;b&gt;"phpmyadmin"&lt;/b&gt; that really ease the job.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4523667190511269416-4757338953353052603?l=remind-nix.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://remind-nix.blogspot.com/feeds/4757338953353052603/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=4523667190511269416&amp;postID=4757338953353052603" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/4757338953353052603?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/4757338953353052603?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/remind-nix/~3/pZEru3LBEXU/installing-apache2-server-with-php-and.html" title="Installing Apache2 server with PHP and MySQL support" /><author><name>Tvrtko</name><uri>http://www.blogger.com/profile/04956047142776324060</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06412307500393141951" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh4.ggpht.com/tvrtkom/SI-CpTE7MmI/AAAAAAAAANM/ovoAvhdtwRU/s72-c/phpinfo.gif" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://remind-nix.blogspot.com/2008/07/installing-apache2-server-with-php-and.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUYHQHg6fip7ImA9WxdVFE0.&quot;"><id>tag:blogger.com,1999:blog-4523667190511269416.post-8276476034757047153</id><published>2008-07-09T13:12:00.000+02:00</published><updated>2008-07-18T19:45:31.616+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-07-18T19:45:31.616+02:00</app:edited><title>Mounting bin/cue files in Linux</title><content type="html">&lt;span style="font-size:85%;"&gt;It's impossible to mount .bin/.cue files in Linux with the &lt;i&gt;'mount'&lt;/i&gt; command. Bin/cue files always come in pairs; bin file is the raw image of a cd, and the cue file specifies the mode in which a cd is written and the number of bytes per sector in the image (bin) file.&lt;br /&gt;There are two methods for mounting bin/cue files. First is to convert bin/cue file to iso than burn it, and the second is to try mounting it directly with some other software tools.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;font size="2"&gt;&lt;u&gt;Converting to iso with bchunk&lt;/u&gt;&lt;/font&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;One of the commands for converting bin/cue image to .iso image is &lt;b&gt;bchunk&lt;/b&gt;. If you don't have it installed already type:&lt;pre&gt;sudo apt-get install bchunk&lt;/pre&gt;&lt;br /&gt;Now, to convert it to iso type:&lt;pre&gt;bchunk -v image.bin image.cue &amp;lt;basename&amp;gt;&lt;/pre&gt;&lt;br /&gt;And now, when the conversation is done mount an iso file:&lt;pre&gt;mount -o loop,ro -t iso9660 &amp;lt;filename&amp;gt;.iso &amp;lt;mountpoint&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;b&gt;&lt;font size="2"&gt;&lt;u&gt;Some other tools&lt;/u&gt;&lt;/font&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;CDfs&lt;/b&gt; - &lt;a href="http://freshmeat.net/redir/cdfs/1122/url_bz2/cdfs-2.6.23.tar.bz2"&gt;download&lt;/a&gt; - cdfs is a file system kernel module. You can use it instead of iso9660 when you mount cds. It will show all the tracks on a cd as files in the mounted directory, i.e. A data cd may show a single .iso file, an audio cd will show some .wav files, and a mixed cd may show an .iso file and an apple hfs image, and some .wav files.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;cdemu&lt;/b&gt; - &lt;a href="http://cdemu.sourceforge.net/"&gt;homepage&lt;/a&gt; - Userspace CDEmu is a CD/DVD-ROM device emulator for linux, licensed under GPL v2 or later.&lt;br /&gt;&lt;br /&gt;Enjoy!&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4523667190511269416-8276476034757047153?l=remind-nix.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://remind-nix.blogspot.com/feeds/8276476034757047153/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=4523667190511269416&amp;postID=8276476034757047153" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/8276476034757047153?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/8276476034757047153?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/remind-nix/~3/vSZlaI-enbE/mounting-bincue-files-in-linux.html" title="Mounting bin/cue files in Linux" /><author><name>Tvrtko</name><uri>http://www.blogger.com/profile/04956047142776324060</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06412307500393141951" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total><feedburner:origLink>http://remind-nix.blogspot.com/2008/07/mounting-bincue-files-in-linux.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUMGRXo4eCp7ImA9WxdWFkU.&quot;"><id>tag:blogger.com,1999:blog-4523667190511269416.post-1796565826500198503</id><published>2008-07-03T02:05:00.000+02:00</published><updated>2008-07-10T11:50:24.430+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-07-10T11:50:24.430+02:00</app:edited><title>Symbolic Links vs. Hard Links</title><content type="html">&lt;span style="font-size:85%;"&gt;Many times, it is required that two or more applications have access to the same file somewhere on the file system. Microsoft users are familiar with those kinda files named &lt;i&gt;icons&lt;/i&gt; that point to another directory or a file physically written on disk so when users run it, they actually run the file that icon points to. Links in Linux function that way, as a pointer to physical data. There are two kinds of links in Linux: &lt;b&gt;hard links and symbolic links&lt;/b&gt;.&lt;br /&gt;On most system all file names are hard links. The name of the file is just a name that refers to the actual data stored on the disk. It is possible to create multiple names (hard links) for the same data stored on the disk, so the data stored on the disk can be modified from different locations. Simply put, if one hard link is modified, all hard links (including the original file) is modified. Hard links on Linux are made with the &lt;i&gt;ln&lt;/i&gt; command. If the file '.myconf' allready exists, to create a hard link named '.conf' we'll write:&lt;pre&gt;ln /path/to/.myconf /path/to/.conf&lt;/pre&gt;&lt;br /&gt;If '.conf' is modified, '.myconf' is modified as well. All hard links pointing to same &lt;i&gt;original&lt;/i&gt; file have same characteristics of that file such as, amount of disk space used, file permissions and so on. Drawback of hard link is that it is hard to make a difference between it and the real file because they show all real file characteristics. Also, all hard links need to be located on the same filesystem.&lt;br /&gt;Symbolic links serves the same purpose as hard links, but they only contain a path to &lt;i&gt;original&lt;/i&gt; file, not all characteristics of a file, so they are easy to differentiate. To create symbolic link type:&lt;pre&gt;ln -s /path/to/original/file /path/to/symlink&lt;/pre&gt;&lt;br /&gt;Symbolic links are more used than hard links.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4523667190511269416-1796565826500198503?l=remind-nix.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://remind-nix.blogspot.com/feeds/1796565826500198503/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=4523667190511269416&amp;postID=1796565826500198503" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/1796565826500198503?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/1796565826500198503?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/remind-nix/~3/XvoaQ67T38A/symbolic-links-vs-hard-links.html" title="Symbolic Links vs. Hard Links" /><author><name>Tvrtko</name><uri>http://www.blogger.com/profile/04956047142776324060</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06412307500393141951" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://remind-nix.blogspot.com/2008/07/symbolic-links-vs-hard-links.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUMAQXozcCp7ImA9WxdWFkU.&quot;"><id>tag:blogger.com,1999:blog-4523667190511269416.post-7245813846477807576</id><published>2008-06-30T22:14:00.000+02:00</published><updated>2008-07-10T11:50:40.488+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-07-10T11:50:40.488+02:00</app:edited><title>Customizing BASH command prompt</title><content type="html">&lt;span style="font-size:85%;"&gt;The prompt text can hold more information than just username and hostname, such as command numbers, time, date, shell version etc.&lt;br /&gt;The text for the prompt is held in environment variable PS1 (Prompt String 1), and all that needs to be done is to change that variable.&lt;br /&gt;Default prompt on most Linux systems consists of username, hostname and current working directory, something like this:&lt;pre&gt;username@hostname:~$ &lt;/pre&gt;&lt;br /&gt;The prompt is fully customizable and the PS1 variable can be changed to users needs. We can have either extra short prompt with just one symbol, or a very long one showing all sorts of information in all sorts of colors. Simple example would be prompt consisting of simple series of characters, for example a &lt;i&gt;'my prompt: '&lt;/i&gt; character. So we assign a new value to PS1:&lt;pre&gt;tvrtko@tvrtko-laptop:~$ PS1='my prompt: '&lt;br /&gt;my prompt:&lt;br /&gt;my prompt:&lt;/pre&gt;&lt;br /&gt;Prompt string can have a wide range of characters, escaped control sequence characters and color codes.&lt;br /&gt;Here are bash escaped control sequence characters:&lt;br /&gt;&lt;br /&gt; * \a : an ASCII bell character (07)&lt;br /&gt; * \d : the date in "Weekday Month Date" format (e.g., "Tue May 26")&lt;br /&gt; * \D{format} : the format is passed to &lt;i&gt;strftime&lt;/i&gt; and than passed to the prompt&lt;br /&gt; * \e : an ASCII escape character (033)&lt;br /&gt; * \h : the hostname up to the first '.'&lt;br /&gt; * \H : the hostname&lt;br /&gt; * \j : the number of jobs currently managed by the shell&lt;br /&gt; * \l : the basename of the shell’s terminal device name&lt;br /&gt; * \n : newline&lt;br /&gt; * \r : carriage return&lt;br /&gt; * \s : the name of the shell, the basename of $0 (the portion following the final slash)&lt;br /&gt; * \t : the current time in 24-hour HH:MM:SS format&lt;br /&gt; * \T : the current time in 12-hour HH:MM:SS format&lt;br /&gt; * \@ : the current time in 12-hour am/pm format&lt;br /&gt; * \A : the current time in 24-hour HH:MM format&lt;br /&gt; * \u : the username of the current user&lt;br /&gt; * \v : the version of bash (e.g., 2.00)&lt;br /&gt; * \V : the release of bash, version + patch level (e.g., 2.00.0)&lt;br /&gt; * \w : the current working directory, with $HOME abbreviated with a tilde&lt;br /&gt; * \W : the basename of the current working directory, with $HOME abbreviated with a tilde&lt;br /&gt; * \! : the history number of this command&lt;br /&gt; * \# : the command number of this command&lt;br /&gt; * \$ : if the effective UID is 0, a #, otherwise a $&lt;br /&gt; * \nnn : the character corresponding to the octal number nnn&lt;br /&gt; * \\ : a backslash&lt;br /&gt; * \[ : begin a sequence of non-printing characters&lt;br /&gt; * \] : end a sequence of non-printing characters&lt;br /&gt;&lt;br /&gt;Now lets set a prompt displaying current time in 12-hour format, username, the command number and the &lt;i&gt;'$'&lt;/i&gt; sign at the end:&lt;pre&gt;my prompt: PS1='\T-\u-\# $ '&lt;br /&gt;10:22:28-tvrtko-4 $&lt;br /&gt;10:22:32-tvrtko-4 $ ls -a&lt;br /&gt;...&lt;br /&gt;10:22:38-tvrtko-5 $ &lt;/pre&gt;&lt;br /&gt;&lt;b&gt;How to add colors to a prompt?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;This might look a little complicated at start but its really not a big deal. To add colors to the shell prompt use the following export command syntax:&lt;br /&gt;&lt;pre&gt;'\e[x;ym $PS1 \e[0m'&lt;br /&gt;Where:&lt;br /&gt;    * \e[  - Start color scheme&lt;br /&gt;    * x;y  - Color pair to use (x - foreground;y - background)&lt;br /&gt;    * $PS1 - your shell prompt&lt;br /&gt;    * \e[0m - Stop color scheme&lt;br /&gt;&lt;br /&gt;foreground colors:&lt;br /&gt;    * 30 black&lt;br /&gt;    * 31 red&lt;br /&gt;    * 32 green&lt;br /&gt;    * 33 brown&lt;br /&gt;    * 34 blue&lt;br /&gt;    * 35 purple&lt;br /&gt;    * 36 light&lt;br /&gt;    * 37 gray&lt;br /&gt;&lt;br /&gt;background colors:&lt;br /&gt;    * 40 black&lt;br /&gt;    * 41 red&lt;br /&gt;    * 42 green&lt;br /&gt;    * 43 brown&lt;br /&gt;    * 44 blue&lt;br /&gt;    * 45 purple&lt;br /&gt;    * 46 light blue&lt;br /&gt;    * 47 white&lt;/pre&gt;&lt;br /&gt;Now lets set the new color prompt with light blue background displaying 24hr - time in black, username in brown and the &lt;i&gt;'$'&lt;/i&gt; sign in black again:&lt;br /&gt;&lt;br /&gt;&lt;img src='http://lh6.ggpht.com/tvrtkom/SGlMx6A1ngI/AAAAAAAAAMs/LE_tcYz-zr0/prompt2.jpg' /&gt;&lt;br /&gt;&lt;br /&gt;Notice that the &lt;i&gt;\e[0m&lt;/i&gt; end sequence brings back the default color. To set text after the prompt in brown foreground and black background we would end sequence with &lt;i&gt;\e[33;40m&lt;/i&gt;.&lt;br /&gt;To make prompt string effective every time bash starts put your &lt;b&gt;PS1='...'&lt;/b&gt; line in &lt;i&gt;.bashrc&lt;/i&gt; file.&lt;br /&gt;&lt;br /&gt;Well, I hope this guide was clear to understand. Have fun. &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4523667190511269416-7245813846477807576?l=remind-nix.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://remind-nix.blogspot.com/feeds/7245813846477807576/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=4523667190511269416&amp;postID=7245813846477807576" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/7245813846477807576?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/7245813846477807576?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/remind-nix/~3/dqXXv3cDH7Q/customizing-bash-command-prompt.html" title="Customizing BASH command prompt" /><author><name>Tvrtko</name><uri>http://www.blogger.com/profile/04956047142776324060</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06412307500393141951" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://remind-nix.blogspot.com/2008/06/customizing-bash-command-prompt.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUMBRnY6fyp7ImA9WxdWFkU.&quot;"><id>tag:blogger.com,1999:blog-4523667190511269416.post-7530603910146242317</id><published>2008-06-19T19:48:00.000+02:00</published><updated>2008-07-10T11:50:57.817+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-07-10T11:50:57.817+02:00</app:edited><title>How to start a script at boot time</title><content type="html">&lt;span style="font-size:85%;"&gt;Making script start at the boot time is really not a big deal, it's done with ease with a few commands and actually no knowledge about system &lt;i&gt;runlevels&lt;/i&gt; is required for simple tasks. But a little background info won't hurt.&lt;i&gt;Runlevel&lt;/i&gt; is a state or mode in which system works, and each &lt;i&gt;runlevel&lt;/i&gt; uses its own specific services/scripts. Usually there are 8 of them:&lt;br /&gt;&lt;br /&gt;* 0 System Halt&lt;br /&gt;* 1 Single user&lt;br /&gt;* 2 Full multi-user mode (Default)&lt;br /&gt;* 3-5 Same as 2&lt;br /&gt;* 6 System Reboot&lt;br /&gt;&lt;br /&gt;There is also runlevel called "s" which is used by the system when it changes runlevels.&lt;br /&gt;Default runlevel for a Linux based system is 2 generally. Finding out in which runlevel system resides is done running 'runlevel' command as root&lt;pre&gt;$ sudo runlevel&lt;br /&gt;[sudo] password for tvrtko:&lt;br /&gt;N 2&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Number 2 means system is in runlevel 2 and the N character means 'None' - system was in that runlevel since boot.&lt;br /&gt;For each runlevel there is a directory filled with needed scripts in &lt;i&gt;/etc&lt;/i&gt;. On Debian/Ubuntu systems these directories are called: rc0.d, rc1.d, rc2.d, rc3.d, rc4.d, rc5.d and rc6.d, and if you open one of them you'll see all those scripts with weird names that are actually just links to real scripts that reside in &lt;i&gt;/etc/init.d&lt;/i&gt; directory. Command &lt;b&gt;update-rc.d&lt;/b&gt; makes those links, and I will explain its most basic usage.&lt;br /&gt;&lt;br /&gt;Suppose I have a script named "myfirewall" filled with lots of commands needed to configure my network and protection, and I need to start it every time the system boots. This script must reside in &lt;i&gt;/etc/init.d&lt;/i&gt; directory for this to work, and it must be executable.&lt;pre&gt;$ chmod 755 /etc/init.d/myfirewall&lt;/pre&gt;&lt;br /&gt;All that it must be now is to run &lt;b&gt;update-rc.d&lt;/b&gt; command like this:&lt;pre&gt;$ sudo update-rc.d myfirewall defaults&lt;br /&gt;password:&lt;br /&gt;Adding system startup for /etc/init.d/myfirewall ...&lt;br /&gt;/etc/rc0.d/K20myfirewall -&gt; ../init.d/myfirewall&lt;br /&gt;/etc/rc1.d/K20myfirewall -&gt; ../init.d/myfirewall&lt;br /&gt;/etc/rc6.d/K20myfirewall -&gt; ../init.d/myfirewall&lt;br /&gt;/etc/rc2.d/S20myfirewall -&gt; ../init.d/myfirewall&lt;br /&gt;/etc/rc3.d/S20myfirewall -&gt; ../init.d/myfirewall&lt;br /&gt;/etc/rc4.d/S20myfirewall -&gt; ../init.d/myfirewall&lt;br /&gt;/etc/rc5.d/S20myfirewall -&gt; ../init.d/myfirewall&lt;/pre&gt;&lt;br /&gt;And that's it. The script will run for every runlevel now. Notice the script will run as &lt;i&gt;root&lt;/i&gt; user. If you need to run some service as a less privileged user simply create a script in &lt;i&gt;/etc/init.d&lt;/i&gt; with the line:&lt;pre&gt;su [username_you_want_as_owner] -c /path/to/program&lt;/pre&gt;&lt;br /&gt;To remove script from startup sequence:&lt;pre&gt;$ update-rc.d -f  myfirewall remove&lt;/pre&gt;&lt;br /&gt;This should be enough for a start.&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4523667190511269416-7530603910146242317?l=remind-nix.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://remind-nix.blogspot.com/feeds/7530603910146242317/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=4523667190511269416&amp;postID=7530603910146242317" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/7530603910146242317?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/7530603910146242317?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/remind-nix/~3/88TXwYY-_Vg/how-to-start-script-at-boot-time.html" title="How to start a script at boot time" /><author><name>Tvrtko</name><uri>http://www.blogger.com/profile/04956047142776324060</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06412307500393141951" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://remind-nix.blogspot.com/2008/06/how-to-start-script-at-boot-time.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUIFRHo7eip7ImA9WxdWFkU.&quot;"><id>tag:blogger.com,1999:blog-4523667190511269416.post-5433168309407661574</id><published>2008-06-18T22:35:00.000+02:00</published><updated>2008-07-10T11:51:55.402+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-07-10T11:51:55.402+02:00</app:edited><title>Linux Command: alias</title><content type="html">&lt;span style="font-size:85%;"&gt;&lt;br /&gt;The alias command is used for creating shorter meaningful synonyms for longer, complex and sometimes meaningless shell commands.&lt;br /&gt;Few years ago when I started being interested in all 'free' and 'open' things that Linux OS gives I also started being more an more frustrated typing some commands over and over again. Than I descovered aliases. Oh lucky me.&lt;br /&gt;Most of advanced or even beginner Linux users already know this, but those that don't will find it quite handy in future.&lt;br /&gt;Syntax goes like this:&lt;br /&gt;&lt;pre&gt;alias &lt;i&gt;[synonym]&lt;/i&gt;='&lt;i&gt;[true shell command]&lt;/i&gt;'&lt;/pre&gt;&lt;br /&gt;Real examples might be:&lt;br /&gt;&lt;pre&gt;alias lsa='ls -all -F'&lt;/pre&gt;&lt;br /&gt;Now if &lt;i&gt;lsa&lt;/i&gt; is typed in a shell it will automatically run command &lt;i&gt;ls -all -F&lt;/i&gt;. Saves so much typing.&lt;br /&gt;Aliases are most efficient if they are defined at a shell startup time. To do that all that's needed is to put the line at the end of your bash profile file which is usually full of commands that run at shell startup and user mostly don't even know or think about it. Look for the file named &lt;i&gt;'.bashrc'&lt;/i&gt;, &lt;i&gt;'.bash-profile'&lt;/i&gt; or simply &lt;i&gt;'.profile'&lt;/i&gt; in your home directory.&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4523667190511269416-5433168309407661574?l=remind-nix.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://remind-nix.blogspot.com/feeds/5433168309407661574/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=4523667190511269416&amp;postID=5433168309407661574" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/5433168309407661574?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/5433168309407661574?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/remind-nix/~3/14Y_8j6mY7U/linux-command-alias.html" title="Linux Command: alias" /><author><name>Tvrtko</name><uri>http://www.blogger.com/profile/04956047142776324060</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06412307500393141951" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://remind-nix.blogspot.com/2008/06/linux-command-alias.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUIGRno8fyp7ImA9WxdWFkU.&quot;"><id>tag:blogger.com,1999:blog-4523667190511269416.post-7813932058650676010</id><published>2008-06-10T21:09:00.000+02:00</published><updated>2008-07-10T11:52:07.477+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-07-10T11:52:07.477+02:00</app:edited><title>Renaming multiple files with 'rename' command</title><content type="html">&lt;span style="font-size:85%;"&gt;&lt;br /&gt;The syntax for the rename command is:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;rename [ -v ] [ -n ] [ -f ] perl_expression [ files ]&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;to rename for example multiple photo files with &lt;i&gt;'.JPG'&lt;/i&gt; extension to &lt;i&gt;'.jpg'&lt;/i&gt; extension:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;rename -v ’s/\.JPG$/\.jpg/’ *.JPG&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;The perl substitution for regular expression syntax is: s/old/new/.&lt;br /&gt;&lt;i&gt;s&lt;/i&gt; means 'substitute'. Period character substitutes any character, but in this case it's not wanted and we need to escape it with '\'.&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4523667190511269416-7813932058650676010?l=remind-nix.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://remind-nix.blogspot.com/feeds/7813932058650676010/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=4523667190511269416&amp;postID=7813932058650676010" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/7813932058650676010?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/7813932058650676010?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/remind-nix/~3/_ixZzFEJC8k/renaming-multiple-files-with-rename.html" title="Renaming multiple files with 'rename' command" /><author><name>Tvrtko</name><uri>http://www.blogger.com/profile/04956047142776324060</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06412307500393141951" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://remind-nix.blogspot.com/2008/06/renaming-multiple-files-with-rename.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUUNSH87fSp7ImA9WxdbFkk.&quot;"><id>tag:blogger.com,1999:blog-4523667190511269416.post-6765527000111568402</id><published>2008-06-03T19:08:00.000+02:00</published><updated>2008-08-13T18:01:39.105+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-08-13T18:01:39.105+02:00</app:edited><title>Downloading files from a cell-phone via Bluetooth</title><content type="html">&lt;span style="font-size:85%;"&gt;This is a guide for downloading files from a cell-phone to a linux pc from a terminal.&lt;br /&gt;First thing to do is to activate a bluetooth adapter on both pc and a cellphone and make it visible and accessible. The necessery software must be installed too:&lt;br /&gt;&lt;pre&gt;apt-get install obexftp bluetooth&lt;/pre&gt;&lt;br /&gt;First command is for scanning bluetooth enabled devices in range to get their address. Something like this:&lt;br /&gt;&lt;pre&gt;tvrtko@tvrtko-laptop:~$ hcitool scan&lt;br /&gt;Scanning ...&lt;br /&gt;      00:15:B9:9D:40:39       SGH-ZV10 t&lt;/pre&gt;&lt;br /&gt;Command for browsing appropriate channel for file transfers:&lt;br /&gt;&lt;pre class="long"&gt;tvrtko@tvrtko-laptop:~$ sdptool browse 00:15:B9:9D:40:39&lt;br /&gt;Browsing 00:15:B9:9D:40:39 ...&lt;br /&gt;Service Name: QC Voice Gateway&lt;br /&gt;Service RecHandle: 0x10000&lt;br /&gt;Service Class ID List:&lt;br /&gt; "Headset Audio Gateway" (0x1112)&lt;br /&gt; "Generic Audio" (0x1203)&lt;br /&gt;Protocol Descriptor List:&lt;br /&gt; "L2CAP" (0x0100)&lt;br /&gt; "RFCOMM" (0x0003)&lt;br /&gt;   Channel: 3&lt;br /&gt;Language Base Attr List:&lt;br /&gt; code_ISO639: 0x656e&lt;br /&gt; encoding:    0x6a&lt;br /&gt; base_offset: 0x100&lt;br /&gt;Profile Descriptor List:&lt;br /&gt; "Headset" (0x1108)&lt;br /&gt;   Version: 0x0100&lt;br /&gt;&lt;br /&gt;Service Name: QC Voice Gateway&lt;br /&gt;Service RecHandle: 0x10001&lt;br /&gt;Service Class ID List:&lt;br /&gt; "Handfree Audio Gateway" (0x111f)&lt;br /&gt; "Generic Audio" (0x1203)&lt;br /&gt;Protocol Descriptor List:&lt;br /&gt; "L2CAP" (0x0100)&lt;br /&gt; "RFCOMM" (0x0003)&lt;br /&gt;   Channel: 4&lt;br /&gt;Language Base Attr List:&lt;br /&gt; code_ISO639: 0x656e&lt;br /&gt; encoding:    0x6a&lt;br /&gt; base_offset: 0x100&lt;br /&gt;Profile Descriptor List:&lt;br /&gt; "Handsfree" (0x111e)&lt;br /&gt;   Version: 0x0101&lt;br /&gt;&lt;br /&gt;Service Name: FTP&lt;br /&gt;Service RecHandle: 0x10002&lt;br /&gt;Service Class ID List:&lt;br /&gt; "OBEX File Transfer" (0x1106)&lt;br /&gt;Protocol Descriptor List:&lt;br /&gt; "L2CAP" (0x0100)&lt;br /&gt; "RFCOMM" (0x0003)&lt;br /&gt;   Channel: 16&lt;br /&gt; "OBEX" (0x0008)&lt;br /&gt;Language Base Attr List:&lt;br /&gt; code_ISO639: 0x656e&lt;br /&gt; encoding:    0x6a&lt;br /&gt; base_offset: 0x100&lt;br /&gt;Profile Descriptor List:&lt;br /&gt; "OBEX File Transfer" (0x1106)&lt;br /&gt;   Version: 0x0100&lt;br /&gt;&lt;br /&gt;Service Name: OPP&lt;br /&gt;Service RecHandle: 0x10003&lt;br /&gt;Service Class ID List:&lt;br /&gt; "OBEX Object Push" (0x1105)&lt;br /&gt;Protocol Descriptor List:&lt;br /&gt; "L2CAP" (0x0100)&lt;br /&gt; "RFCOMM" (0x0003)&lt;br /&gt;   Channel: 17&lt;br /&gt; "OBEX" (0x0008)&lt;br /&gt;Language Base Attr List:&lt;br /&gt; code_ISO639: 0x656e&lt;br /&gt; encoding:    0x6a&lt;br /&gt; base_offset: 0x100&lt;br /&gt;Profile Descriptor List:&lt;br /&gt; "OBEX Object Push" (0x1105)&lt;br /&gt;   Version: 0x0100&lt;br /&gt;&lt;br /&gt;Service Name: Serial Port&lt;br /&gt;Service RecHandle: 0x10004&lt;br /&gt;Service Class ID List:&lt;br /&gt; "Serial Port" (0x1101)&lt;br /&gt;Protocol Descriptor List:&lt;br /&gt; "L2CAP" (0x0100)&lt;br /&gt; "RFCOMM" (0x0003)&lt;br /&gt;   Channel: 18&lt;br /&gt;Language Base Attr List:&lt;br /&gt; code_ISO639: 0x656e&lt;br /&gt; encoding:    0x6a&lt;br /&gt; base_offset: 0x100&lt;br /&gt;Profile Descriptor List:&lt;br /&gt; "Serial Port" (0x1101)&lt;br /&gt;&lt;br /&gt;Service Name: Dial-up Networking&lt;br /&gt;Service RecHandle: 0x10005&lt;br /&gt;Service Class ID List:&lt;br /&gt; "Dialup Networking" (0x1103)&lt;br /&gt;Protocol Descriptor List:&lt;br /&gt; "L2CAP" (0x0100)&lt;br /&gt; "RFCOMM" (0x0003)&lt;br /&gt;   Channel: 8&lt;br /&gt;Language Base Attr List:&lt;br /&gt; code_ISO639: 0x656e&lt;br /&gt; encoding:    0x6a&lt;br /&gt; base_offset: 0x100&lt;br /&gt;Profile Descriptor List:&lt;br /&gt; "Dialup Networking" (0x1103)&lt;br /&gt;   Version: 0x0100&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Our channel of interest is 16. Bellow &lt;i&gt;Service Class ID List: "OBEX File Transfer"&lt;/i&gt; lines.&lt;br /&gt;&lt;br /&gt;To browse files on a cellphone use the command to gat folder listing (in my case it is in XML format):&lt;br /&gt;&lt;pre&gt;tvrtko@tvrtko-laptop:~$ obexftp -b 00:15:B9:9D:40:39 -c / -l&lt;br /&gt;Browsing 00:15:B9:9D:40:39 ...&lt;br /&gt;Channel: 16&lt;br /&gt;Connecting...done&lt;br /&gt;Sending ""... done&lt;br /&gt;Receiving "(null)"...\&lt;br /&gt;&lt;br /&gt;(folder listing here)&lt;br /&gt;&lt;br /&gt;Disconnecting...done&lt;/pre&gt;&lt;br /&gt;And now, to download your newly taken photo you need to type command similar to this:&lt;br /&gt;&lt;pre&gt;tvrtko@tvrtko-laptop:~$ obexftp -b 00:15:B9:9D:40:39 -c /Pictures -g Photo-0062.jpg&lt;br /&gt;Browsing 00:15:B9:9D:40:39 ...&lt;br /&gt;Channel: 16&lt;br /&gt;Connecting...done&lt;br /&gt;....&lt;br /&gt;....&lt;/pre&gt;&lt;br /&gt;For uploading files use this command:&lt;br /&gt;&lt;pre&gt;obexftp -b 00:15:B9:9D:40:39 -c /Pictures -p Photo-0063.jpg&lt;/pre&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;NOTICE: Use right addresses, folder and filename specific for your cellphone&lt;/i&gt;&lt;/b&gt;&lt;i&gt;&lt;/i&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4523667190511269416-6765527000111568402?l=remind-nix.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://remind-nix.blogspot.com/feeds/6765527000111568402/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=4523667190511269416&amp;postID=6765527000111568402" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/6765527000111568402?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/6765527000111568402?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/remind-nix/~3/Ebg2hvUpz5A/downloading-files-from-cell-phone-via.html" title="Downloading files from a cell-phone via Bluetooth" /><author><name>Tvrtko</name><uri>http://www.blogger.com/profile/04956047142776324060</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06412307500393141951" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://remind-nix.blogspot.com/2008/06/downloading-files-from-cell-phone-via.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUIDRHs8cSp7ImA9WxdWFkU.&quot;"><id>tag:blogger.com,1999:blog-4523667190511269416.post-3360193534029255592</id><published>2008-04-22T22:33:00.000+02:00</published><updated>2008-07-10T11:52:55.579+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-07-10T11:52:55.579+02:00</app:edited><title>Ubuntu: Use root password instead default user password</title><content type="html">&lt;span style="font-size:85%;"&gt;After clean install of Ubuntu, you noticed u have to enter your user password to do administrative or system tasks. This is the way to change it.&lt;br /&gt;First make sure u set password for the 'root' user:&lt;br /&gt;&lt;pre&gt;sudo passwd root&lt;/pre&gt;&lt;br /&gt;Use your favorite text editor and edit '/usr/share/gconf/defaults/10_libgksu' file.&lt;br /&gt;Change:&lt;br /&gt;&lt;pre&gt;/apps/gksu/sudo-mode true&lt;/pre&gt;&lt;br /&gt;to:&lt;br /&gt;&lt;pre&gt;/apps/gksu/sudo-mode false&lt;/pre&gt;&lt;br /&gt;Then issue following command:&lt;br /&gt;&lt;pre&gt;sudo update-gconf-defaults&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4523667190511269416-3360193534029255592?l=remind-nix.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://remind-nix.blogspot.com/feeds/3360193534029255592/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=4523667190511269416&amp;postID=3360193534029255592" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/3360193534029255592?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/3360193534029255592?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/remind-nix/~3/4hEoFU-Zwis/ubuntu-use-root-password-instead.html" title="Ubuntu: Use root password instead default user password" /><author><name>Tvrtko</name><uri>http://www.blogger.com/profile/04956047142776324060</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06412307500393141951" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://remind-nix.blogspot.com/2008/04/ubuntu-use-root-password-instead.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUINQnozeip7ImA9WxdWFkU.&quot;"><id>tag:blogger.com,1999:blog-4523667190511269416.post-6444161996207015104</id><published>2008-04-12T11:07:00.000+02:00</published><updated>2008-07-10T11:53:13.482+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-07-10T11:53:13.482+02:00</app:edited><title>Fixing large fonts / graphics bug on Linux with intel driver</title><content type="html">&lt;span style="font-size:85%;"&gt;Problem with Intel drivers on linux which manifests like this: &lt;a href="http://i268.photobucket.com/albums/jj18/J4Ck_2008/Pantallazo-2.png"&gt;Click to see screen shot&lt;/a&gt; is easily fixed by adding this into /etc/X11/xorg.conf file:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;Section "Monitor"&lt;br /&gt;     ... #whatevert was in already.&lt;br /&gt;      Option "DDC" "no"&lt;br /&gt;EndSection&lt;br /&gt;&lt;/pre&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4523667190511269416-6444161996207015104?l=remind-nix.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://remind-nix.blogspot.com/feeds/6444161996207015104/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=4523667190511269416&amp;postID=6444161996207015104" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/6444161996207015104?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/6444161996207015104?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/remind-nix/~3/l-JcsEpNEwg/fixing-large-fonts-graphics-bug-with-on.html" title="Fixing large fonts / graphics bug on Linux with intel driver" /><author><name>Tvrtko</name><uri>http://www.blogger.com/profile/04956047142776324060</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06412307500393141951" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://remind-nix.blogspot.com/2008/04/fixing-large-fonts-graphics-bug-with-on.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUEFQ3ozeip7ImA9WxdWFkU.&quot;"><id>tag:blogger.com,1999:blog-4523667190511269416.post-3478711928171172421</id><published>2008-04-08T13:04:00.000+02:00</published><updated>2008-07-10T11:53:32.482+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-07-10T11:53:32.482+02:00</app:edited><title>HOWTO: compress and extract rar archives under linux</title><content type="html">&lt;span style="font-size:85%;"&gt;Quick how-to on extracting and compressing .rar archives. For this method it is essential that u have WinRar, hopefully installed on your windows partition.&lt;br /&gt;&lt;br /&gt;1. Install wine. You can do it with Synaptic Package Manager under Debian&lt;br /&gt;2. Copy 'rar.exe' from the directory where the WinRar is installed on windows partition to '$HOME/.wine/drive_c/windows/system32' on your linux system. If you don't have WinRar u should probably buy it :)&lt;br /&gt;3. Now you can call rar comand with 'wine rar &lt;options&gt; &lt;file&gt;'. Type 'wine rar -h' for help.&lt;br /&gt;4. Enjoy typing&lt;br /&gt;&lt;br /&gt;It's possible to run WinRar GUI with wine, so that is another option, but I think this is quicker method.&lt;br /&gt;&lt;/file&gt;&lt;/options&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4523667190511269416-3478711928171172421?l=remind-nix.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://remind-nix.blogspot.com/feeds/3478711928171172421/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=4523667190511269416&amp;postID=3478711928171172421" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/3478711928171172421?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/3478711928171172421?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/remind-nix/~3/Ozg1CsM6w-s/howto-compress-and-extract-rar-archives.html" title="HOWTO: compress and extract rar archives under linux" /><author><name>Tvrtko</name><uri>http://www.blogger.com/profile/04956047142776324060</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06412307500393141951" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://remind-nix.blogspot.com/2008/04/howto-compress-and-extract-rar-archives.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkUHSX4-fCp7ImA9WxdWFkU.&quot;"><id>tag:blogger.com,1999:blog-4523667190511269416.post-7854642680879041202</id><published>2008-04-02T04:15:00.000+02:00</published><updated>2008-07-10T12:03:58.054+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-07-10T12:03:58.054+02:00</app:edited><title>Tutorial - Adding new user to your Linux system</title><content type="html">&lt;span style="font-size:85%;"&gt;In this post I will try to explain basic usage of commands considering user and group administration on Linux systems such as adding/deleting a user or groups, setting permissions and so on. Only superuser (root) is allowed for user/group administration so you'll need to login as a root user with the 'su' command. On my shell its like this:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;tvrtko@debian:~$ su&lt;br /&gt;Password:&lt;br /&gt;debian:/home/tvrtko#&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Perhaps its needed to add a new user for new person that needs to work on the system, or you will need to add a user and a group for some software package to work securely. Creating user or updating user information is done with the 'useradd' command. So let say I need to create new account for my mother who just found out how cool is Linux. Her username will be 'mom' and I'm gonna add her on the system now:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;debian:/home/tvrtko# useradd mom&lt;br /&gt;debian:/home/tvrtko# cat /etc/passwd | grep mom&lt;br /&gt;mom:x:1001:1001::/home/mom:/bin/&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;With this command I simply added new user called 'mom'. Secondly I wanted to check out did it accualy succeed with the second command. Yes, mom is added in the '/etc/passwd' file. But what about hose other data? Every entry in 'passwd' file means is formated as:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;[account name]:[password]:[user ID / UID]:[group ID / GID]:[home directory]:[shell]&lt;/pre&gt;&lt;br /&gt;We see that her UID and GID are both 1001, these numbers are unique to user 'mom' and her initial group (which is also called 'mom'). Mom's home directory is '/home/mom. The last parameter is the type of shell she'll use, in this case 'sh'.&lt;br /&gt;Letter 'x' means the password is encrypted. But what is actually her password? I didn't type any password when creating account. Her password was randomly generated cause I didn't specify it, and I actually don't know it. But thats no problem, cause I know root password, and I can change any password for any user anytime with 'passwd' command. I'll do it now for mom:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;debian:/home/tvrtko# passwd mom&lt;br /&gt;Enter new UNIX password:&lt;br /&gt;Retype new UNIX password:&lt;br /&gt;passwd: password updated successfully&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Now any user that knows her password can login to her account with 'su mom' command.&lt;br /&gt;Now I'm noticing one other thing. I cannot go to moms home directory cause it doesn't exist, and I need to create one for her. I'll do it with this command&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;debian:/home/tvrtko# mkdir /home/mom&lt;br /&gt;debian:/home/tvrtko# chown mom /home/mom&lt;br /&gt;debian:/home/tvrtko# chgrp mom /home/mom&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Now mom has her own directory in which she can put her stuff. Directory 'mom' also belongs to her 'mom' group. But I could have saved myself from the trouble if I just put '-m' option when creating her account like this:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;debian:/home/tvrtko# useradd -m mom&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;The 'm' option automatically creates user directory.&lt;br /&gt;The process of creating a new user is over, I'll just change her default shell to 'bash' and change my file permissions so she can't digg through my files:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;debian:/home/tvrtko# usermod -s /bin/bash mom&lt;br /&gt;debian:/home/tvrtko# exit&lt;br /&gt;exit&lt;br /&gt;tvrtko@debian:~$ cd ..&lt;br /&gt;tvrtko@debian:/home$ chmod o= tvrtko&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;For further details of a particular command see the 'man' pages :)&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4523667190511269416-7854642680879041202?l=remind-nix.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://remind-nix.blogspot.com/feeds/7854642680879041202/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=4523667190511269416&amp;postID=7854642680879041202" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/7854642680879041202?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/7854642680879041202?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/remind-nix/~3/Nab4ZbDtfSw/tutorial-adding-new-user-to-your-linux.html" title="Tutorial - Adding new user to your Linux system" /><author><name>Tvrtko</name><uri>http://www.blogger.com/profile/04956047142776324060</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06412307500393141951" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://remind-nix.blogspot.com/2008/04/tutorial-adding-new-user-to-your-linux.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CU8EQXw-fSp7ImA9WxdWFkU.&quot;"><id>tag:blogger.com,1999:blog-4523667190511269416.post-3916583135024344223</id><published>2008-03-31T06:40:00.000+02:00</published><updated>2008-07-10T11:56:40.255+02:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-07-10T11:56:40.255+02:00</app:edited><title>Simple python script for extracting various archive types</title><content type="html">&lt;span style="font-size:85%;"&gt;Last couple of days I've been compiling lots of software from source and i got very annoyed typing the tar command over and over again so I created simple python script for this purpose. Now I can extract .tar, .tar.gz, .tar.bz2 and .zip archives with just one command. Of course it could be maybe done better with bash and aliases but i wanted to try out python.&lt;br /&gt;Here's the script:&lt;a href="http://boxstr.com/files/1556538_wm42s/unpack"&gt;unpack script&lt;/a&gt;&lt;br /&gt;And the whole code:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;#!/usr/bin/env python&lt;br /&gt;#&lt;br /&gt;# simple python script for extracting mostly used types of archives&lt;br /&gt;# this script extracts .tar, .tar.gz, .tar.bz2, .gz and .zip archives&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;import sys                                # required for fetching command line arguments&lt;br /&gt;import os                                 # required for calling commands for archive extracting&lt;br /&gt;&lt;br /&gt;def unpack(s):                             # this is definition of depack&lt;br /&gt;  if (s.find('.tar.gz') != -1):           #   function. It takes string&lt;br /&gt;     os.system("tar -xvvzf " + filename)  #   filename as argument.&lt;br /&gt;  elif (s.find('.tar.bz2') != -1):        #   functon than calls&lt;br /&gt;     os.system("tar -xvvjf " + filename)  #   appropriate command according&lt;br /&gt;  elif (s.find('.tar') != -1):            #   to file extension&lt;br /&gt;     os.system("tar -xvvf " + filename)&lt;br /&gt;  elif (s.find('.gz') != -1):&lt;br /&gt;     os.system("gunzip" + filename)&lt;br /&gt;  elif (s.find('.zip') != -1):&lt;br /&gt;     os.system("unzip " + filename)&lt;br /&gt;  else: print "Wrong archive or filename" # other types not supported&lt;br /&gt;&lt;br /&gt;try:                                       # this is main program&lt;br /&gt;  filename = sys.argv[1]                  #   first argument right after&lt;br /&gt;  unpack(filename)                        #   'unpack' command goes in the&lt;br /&gt;except IndexError:                         #   filename string&lt;br /&gt;  print "Filename is invalid!"            #   than the depack function is called&lt;br /&gt;&lt;br /&gt;# try-except block is used for handling IndexError exception if no argument is passed&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Usage:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;./unpack [archive filename]&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4523667190511269416-3916583135024344223?l=remind-nix.blogspot.com'/&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://remind-nix.blogspot.com/feeds/3916583135024344223/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=4523667190511269416&amp;postID=3916583135024344223" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/3916583135024344223?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/4523667190511269416/posts/default/3916583135024344223?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/remind-nix/~3/mRHjkCxAkgk/simple-python-script-for-extracting.html" title="Simple python script for extracting various archive types" /><author><name>Tvrtko</name><uri>http://www.blogger.com/profile/04956047142776324060</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="06412307500393141951" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://remind-nix.blogspot.com/2008/03/simple-python-script-for-extracting.html</feedburner:origLink></entry></feed>
