<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux Explore &#187; software</title>
	<atom:link href="https://blog.linuxexplore.com/tag/software/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.linuxexplore.com</link>
	<description>Exploring Linux</description>
	<lastBuildDate>Mon, 07 Apr 2014 00:30:50 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.38</generator>
	<item>
		<title>Chroot SFTP Users for Web Hosting Server.</title>
		<link>https://blog.linuxexplore.com/2013/02/20/chroot-sftp-users-for-web-hosting-server/</link>
		<comments>https://blog.linuxexplore.com/2013/02/20/chroot-sftp-users-for-web-hosting-server/#comments</comments>
		<pubDate>Tue, 19 Feb 2013 20:37:25 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Linux Explore How to]]></category>
		<category><![CDATA[centos 6]]></category>
		<category><![CDATA[chroot]]></category>
		<category><![CDATA[chroot jail]]></category>
		<category><![CDATA[chroot sftp]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[internal-sftp]]></category>
		<category><![CDATA[kernel version]]></category>
		<category><![CDATA[Linux Security]]></category>
		<category><![CDATA[openssh]]></category>
		<category><![CDATA[openssh-server]]></category>
		<category><![CDATA[openssh-server-5.3]]></category>
		<category><![CDATA[public_html]]></category>
		<category><![CDATA[restorecon]]></category>
		<category><![CDATA[selinux chroot]]></category>
		<category><![CDATA[setsebool]]></category>
		<category><![CDATA[SFTP]]></category>
		<category><![CDATA[SFTP CentOS]]></category>
		<category><![CDATA[sftp chroot]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[ssh public key]]></category>
		<category><![CDATA[SSH server]]></category>
		<category><![CDATA[sshd_config]]></category>
		<category><![CDATA[ssh_chroot_rw_homedirs]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[unix operating systems]]></category>
		<category><![CDATA[web hosting]]></category>

		<guid isPermaLink="false">http://linuxexplore.com/?p=717</guid>
		<description><![CDATA[A chroot on Unix operating systems is an operation that changes the apparent root directory for the current running process and its children. A program that is run in such a modified environment cannot name (and therefore normally not access) files outside the designated directory tree. The term &#8220;chroot&#8221; may refer to the chroot(2) system&#8230;]]></description>
				<content:encoded><![CDATA[<p>A <b>chroot</b> on Unix operating systems is an operation that changes the apparent root directory for the current running process and its children. A program that is run in such a modified environment cannot name (and therefore normally not access) files outside the designated directory tree. The term &#8220;chroot&#8221; may refer to the <tt>chroot(2)</tt> system call or the <tt>chroot(8)</tt> wrapper program. The modified environment is called a &#8220;chroot jail&#8221;. From <a title="Chroot" href="http://en.wikipedia.org/wiki/Chroot" target="_blank">Wikipedia</a>.</p>
<p>Why it is required? If you want to set up your Linux box as a web hosting server for its users, you may need to give SFTP access. But they can get access to whole system Linux tree, just for reading but still very unsecure. So it is mandatory to lock them in their home directory.</p>
<p>There are many other applications, it&#8217;s just a common example, so lets start its configuration.</p>
<h2>Linux Box Detail:</h2>
<p>Its mine Linux Box, your Linux system may vary. Only thing to take care is the openssh-server version, because openssh-server-5.3p1 support SFTP chroot. Older version supports but its tricky, please let me k now if you want to know that too.</p>
<p lang="en-IN"><strong>Operating System:</strong> CentOS 6.3/x86_64</p>
<p lang="en-IN"><strong>Kernel Version:</strong> 2.6.32-279.19.1.el6/x86_64</p>
<p lang="en-IN"><strong>Openssh Server Version:</strong> openssh-server-5.3p1-81.el6_3/x86_64</p>
<pre><a href="http://linuxexplore.files.wordpress.com/2013/02/chroot-ori12.png"><img class="aligncenter size-large wp-image-728" alt="chroot-ori1" src="http://linuxexplore.files.wordpress.com/2013/02/chroot-ori12.png?w=610" width="610" height="328" /></a></pre>
<h2>sshd Server Configuration:</h2>
<p>Add the following tail output to your Linux box&#8217;s SSH</p>
<p>server configuration file /etc/ssh/sshd_config.</p>
<pre>[rahulpanwar@myhost ~]# tail -6 /etc/ssh/sshd_config
#Subsystem sftp /usr/libexec/openssh/sftp-server
Subsystem sftp internal-sftp
Match Group www-hosting
ChrootDirectory %h
ForceCommand internal-sftp
AllowTcpForwarding no</pre>
<p lang="en-IN">Then restart sshd service to enable this configuration.</p>
<pre>[rahulpanwar@myhost ~]# sudo /etc/init.d/sshd restart</pre>
<h2>Create Chroot Users:</h2>
<pre>[rahulpanwar@myhost ~]# sudo mkdir /etc/skel/public_html
[rahulpanwar@myhost ~]# sudo groupadd www-hosting
[rahulpanwar@myhost ~]# sudo useradd -s /sbin/nologin -g www-hosting linuxexplore.com</pre>
<h2>Setting Permissions:</h2>
<pre>[rahulpanwar@myhost ~]# sudo chown root:www-hosting /home/linuxexplore.com
[rahulpanwar@myhost ~]# sudo chmod 755 /home/linuxexplore.com</pre>
<p lang="en-IN">That’s all now create multiple users for web hosting, and offer the secure sftp access to your customers.</p>
<h2>Shell Script to Create Web Hosting Users:</h2>
<pre>#!/bin/bash
HOSTING_DIR="/etc/skel/public_html"
CHROOT_GRP="www-hosting"
USR_NAME="$1"

[ ! -d "$HOSTING_DIR" ] &amp;&amp; mkdir -p $HOSTING_DIR
grep ^"${CHROOT_GRP}:" /etc/group || /usr/sbin/groupadd www-hosting
grep ^"${USR_NAMEP}:" /etc/passwd || /usr/sbin/useradd -s /sbin/nologin -g $CHROO_GRP $USR_NAME
chown root:$CHROOT_GRP /home/$USR_NAME
chmod 755 /home/$USR_NAME</pre>
<h2>Selinux Configuration:</h2>
<p lang="en-IN"><a title="Selinux disable temporarily or permanently" href="http://linuxexplore.com/2012/08/04/selinux-disable-temporarily-or-permanently/" target="_blank">Disable the selinux permanently</a> or configure it for read write user&#8217;s home directory in SSH chroot.</p>
<pre>[rahulpanwar@myhost ~]# sudo setsebool -P ssh_chroot_rw_homedirs on
<span style="color:#333333;"><span style="font-family:Monaco, Consolas, Andale Mono, DejaVu Sans Mono, monospace;"><span style="font-size:small;">[rahulpanwar@myhost ~]# sudo restorecon -R /home/$USERNAME</span></span></span></pre>
<h2>Troubleshooting</h2>
<p lang="en-IN">From: <span style="color:#0000ff;"><span style="text-decoration:underline;"><a href="https://wiki.archlinux.org/index.php/SFTP-chroot">https://wiki.archlinux.org/index.php/SFTP-chroot</a></span></span></p>
<pre>sshd[3505]: fatal: bad ownership or modes for chroot directory "/home/linuxexplore.com"</pre>
<p>It&#8217;s ChrootDirectory ownership problem, sshd will reject sftp connections to accounts that are set to chroot into any directory that has ownership/permissions that sshd doesn&#8217;t consider secure. sshd&#8217;s apparently strict ownership/permissions requirements dictate that every directory in the chroot path must be owned by root and only writable for the owner. So, for example, if the chroot environment is in a user&#8217;s home directory both /home and /home/username must be owned by root and have permissions like 755 or 750 ( group ownership should allow user to access ).</p>
<p>If you are using sftp with public key check the following link:</p>
<p><a href="http://www.centos.org/modules/newbb/viewtopic.php?topic_id=37903&amp;forum=59">http://www.centos.org/modules/newbb/viewtopic.php?topic_id=37903&amp;forum=59</a></p>
<p>If chroot environment is in user&#8217;s home directory, make sure user have access to its home directory, or user would not be able to access its publickey, produce the error given in above <a title="CentOS 6" href="http://centos.org" target="_blank">CentOS</a> forum link.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2013/02/20/chroot-sftp-users-for-web-hosting-server/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Linux File System and Windows File System, Difference</title>
		<link>https://blog.linuxexplore.com/2012/10/01/linux-file-system-and-windows-file-system-difference/</link>
		<comments>https://blog.linuxexplore.com/2012/10/01/linux-file-system-and-windows-file-system-difference/#comments</comments>
		<pubDate>Sun, 30 Sep 2012 19:52:46 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Linux Explore Tips & Tricks]]></category>
		<category><![CDATA[ext2]]></category>
		<category><![CDATA[ext3]]></category>
		<category><![CDATA[ext4]]></category>
		<category><![CDATA[IBM]]></category>
		<category><![CDATA[Intel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux file systems]]></category>
		<category><![CDATA[Linux filesystem]]></category>
		<category><![CDATA[Linux partitions]]></category>
		<category><![CDATA[Linux VS Windows]]></category>
		<category><![CDATA[master boot record]]></category>
		<category><![CDATA[Nigel McFarlane]]></category>
		<category><![CDATA[NTFS]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Windows filesystem]]></category>
		<category><![CDATA[Windows partitions]]></category>

		<guid isPermaLink="false">http://linuxexplore.com/?p=648</guid>
		<description><![CDATA[Windows vs Linux Windows uses FAT and NTFS as file systems, while Linux uses a variety of file systems. Unlike Windows, Linux is bootable from a network drive. In contrast to Windows, everything is either a file or a process in Linux. Please see one of my earlier post What “Everything Is a File” Means on Linux.&#8230;]]></description>
				<content:encoded><![CDATA[<p style="text-align:center;"><a href="http://linuxexplore.files.wordpress.com/2012/10/ubuntu-910-vs-windows-7.jpg"><img class="size-full wp-image-649 aligncenter" title="ubuntu-910-vs-windows-7" src="http://linuxexplore.files.wordpress.com/2012/10/ubuntu-910-vs-windows-7.jpg" alt="Linux vs Windows" width="640" height="390" /></a>Windows vs Linux</p>
<p>Windows uses FAT and NTFS as file systems, while Linux uses a variety of file systems.</p>
<p>Unlike Windows, Linux is bootable from a network drive.</p>
<p>In contrast to Windows, everything is either a file or a process in Linux. Please see one of my earlier post <a title="What “Everything Is a File” Means on Linux" href="http://linuxexplore.com/2012/07/28/intowire-what-everything-is-a-file-means-on-linux/" target="_blank">What “Everything Is a File” Means on Linux</a>.</p>
<p>Linux has two kinds of major partitions called data partitions and swap partitions. Because of the existence of swap partitions, you never run out of memory in Linux (like in windows).</p>
<p>In terms of recovery tools, only a limited number of tools can be used on Windows, while there is a large number of UNIX based recovery tools available for Linux file systems.</p>
<p><a href="http://linuxexplore.files.wordpress.com/2012/10/primary-extended-logical-linux-windows-file-system.png"><img class=" wp-image-650 aligncenter" title="primary extended logical Linux windows file system" src="http://linuxexplore.files.wordpress.com/2012/10/primary-extended-logical-linux-windows-file-system.png" alt="Linux Windows filesystem" width="362" height="349" /></a></p>
<p><strong> From the author </strong><strong>Nigel McFarlane:</strong></p>
<p>Both <strong>Windows</strong> and <strong>Linux</strong> organize disk-based files into a hierarchy of directories. Such directories are usually called &#8220;<strong>folders</strong>&#8221; when viewed in a GUI. One whole hierarchy is called a &#8220;<strong>file system</strong>&#8221; on both platforms. The architecture of Windows and Linux file systems is similar in some points, but diverges greatly when tools are considered. Here&#8217;s a quick comparison.</p>
<p>On hardware derived from <strong>Intel</strong> or <strong>IBM</strong> PCs, both <strong>Windows</strong> and <strong>Linux</strong> use the Master Block Record/ Master Boot Record (<strong>MBR</strong>). That is the bit of disk used to boot the operating system and to state whether the disk is partitioned or not. On both <strong>Windows</strong> and <strong>Linux</strong>, it is common to have at most one file system per partition. That is about the end of the similarity.</p>
<p>Each <strong>Windows</strong> file system gets a drive letter, like &#8220;C:&#8221;. On <strong>Linux</strong>, each file system gets a device, like /dev/hda1 (&#8220;hard disk A part 1&#8243;), which is represented as a file. Such a file is a device file (since a disk is a device), hence the &#8220;dev&#8221; part of the path name. Also, the device file is not an ordinary text file, it is a &#8220;<strong>special file</strong>.&#8221; Since disks are block devices (unlike a serial mouse), such a file is fully described as a &#8220;<strong>block special device file</strong>.&#8221; The numbered part of the path can be a little weird to get right; it&#8217;s best to be guided by documentation there or extract the right name from a report.</p>
<p>On <strong>Windows</strong>, file systems can be <strong>FAT16</strong>, <strong>FAT32</strong> or <strong>NTFS</strong>, to name a few. Recall <strong>FAT16</strong> is the ancient standard responsible for <strong>Windows</strong> file names with the &#8220;<strong>8.3</strong>&#8221; file name length restriction. On <strong>Linux</strong>, filesystems can be &#8220;<strong>minix</strong>,&#8221; &#8220;<strong>ext</strong>,&#8221; or &#8220;<strong>ext2</strong>,&#8221; to name a few. Also, &#8220;<strong>minix</strong>&#8221; is an example of the ancient standard responsible for <strong>UNIX</strong> file names once being limited to 14 characters. Linux also has &#8220;<strong>msdos</strong>&#8221; and &#8220;<strong>vfat</strong>&#8221; file systems for compatibility with <strong>Windows</strong> and <strong>DOS</strong>, plus more.</p>
<p>Windows uses <strong>FORMAT.EXE</strong> to format a disk. Linux uses &#8220;<strong>mkfs</strong>&#8221; (&#8220;make file system&#8221;) in various specialist forms.</p>
<p>Each Windows file system has a File Allocation Table (<strong>FAT</strong>, <strong>VFAT</strong>, or similar) that states which disk blocks hold the topmost directory. On <strong>Linux</strong>, the equivalent on most filesystems is the <strong>superblock</strong>. A <strong>Linux</strong> file system has multiple copies of the <strong>superblock</strong> physically saved on the disk. This provides redundancy in case of a partial disk corruption. The <strong>superblock</strong> is just about always in memory on <strong>Linux</strong>; that is not the case for ancient <strong>DOS</strong>-like file systems. There are no special restrictions on files placed in the topmost directory on <strong>Linux</strong>, either.</p>
<p>On <strong>Windows</strong>, there is one drive letter per mounted file system: for example, C: for C: and D: for D:. On <strong>Linux</strong> there are no drive letters, so one file system is mounted on &#8220;/&#8221; and all other file systems are mounted on subdirectories of &#8220;/.&#8221; This arrangement is like the little-used <strong>MS-DOS</strong> command <strong>SUBST</strong>, or the <strong>NET USE</strong> command that supports <strong>Novell</strong>&#8216;s <strong>NetWare</strong>. The equivalent <strong>Linux</strong> command is &#8220;<strong>mount</strong>.&#8221;</p>
<p>You can see all this at work on <strong>Linux</strong>, but for some of it you need to be logged in as <strong>root</strong>. Type &#8220;<strong>cat /etc/fstab</strong>&#8221; to see all the mountable devices, including floppy disks and CD players. Type &#8220;<strong>df</strong>&#8221; to see the devices currently mounted, and their free space. In the usual case you can even see the <strong>superblock</strong>: try &#8220;<strong>/sbin/dumpe2fs /dev/hda1</strong>&#8221; where <strong>hda1</strong> comes from the output of &#8220;<strong>df</strong>.&#8221; The name &#8220;<strong>dumpe2fs</strong>&#8221; is a casualty of history; it replaces the older &#8220;<strong>dumpfs</strong>.&#8221; The information produced is really just for diagnostic purposes.</p>
<p>Mostly file systems work for you silently. If you want to dig into Linux further, then there are plenty of tools that can be used as inspection points.</p>
<p><strong>About the author</strong><br />
<strong>Nigel McFarlane</strong> is an open source software analyst and technologist with a broad background in technology and software engineering. He has an extensive programming background and degrees in computer science and physics. His latest book is &#8220;<strong>Rapid Application Development with Mozilla</strong>&#8221; from Prentice Hall PTR.</p>
<p><strong>Source:</strong><br />
<a href="http://searchopensource.techtarget.com/tip/1,289483,sid39_gci990200,00.html" rel="nofollow" target="_blank">http://searchopensource.techtarget.c&#8230;990200,00.html</a></p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2012/10/01/linux-file-system-and-windows-file-system-difference/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Ubuntu 12.10 Beta 2 Release</title>
		<link>https://blog.linuxexplore.com/2012/09/29/ubuntu-12-10-beta-2-release/</link>
		<comments>https://blog.linuxexplore.com/2012/09/29/ubuntu-12-10-beta-2-release/#comments</comments>
		<pubDate>Fri, 28 Sep 2012 19:06:28 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Linux Distro]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[cloud images]]></category>
		<category><![CDATA[Distrowatch]]></category>
		<category><![CDATA[Download ubuntu]]></category>
		<category><![CDATA[Edubuntu DVD]]></category>
		<category><![CDATA[enterprise-it]]></category>
		<category><![CDATA[free download]]></category>
		<category><![CDATA[kubuntu]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Lubuntu]]></category>
		<category><![CDATA[Quantal Quetzal]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Software download]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ubuntu 12.10]]></category>
		<category><![CDATA[Ubuntu Core Products]]></category>
		<category><![CDATA[Ubuntu Desktop]]></category>
		<category><![CDATA[Ubuntu Netboot]]></category>
		<category><![CDATA[Ubuntu news]]></category>
		<category><![CDATA[Ubuntu Server]]></category>
		<category><![CDATA[Ubuntu Studio]]></category>
		<category><![CDATA[xubuntu]]></category>

		<guid isPermaLink="false">http://linuxexplore.com/?p=637</guid>
		<description><![CDATA[Ubuntu released the second and final beta of Ubuntu 12.10 version, code name &#8220;Quantal Quetzal&#8221;, just two days before. It is a development release, the Ubuntu developers are moving quickly to bring an absolute latest and greatest software. From the release announcement &#8220;The Ubuntu team is pleased to announce the final beta release of Ubuntu&#8230;]]></description>
				<content:encoded><![CDATA[<p>Ubuntu released the second and final beta of <a href="https://wiki.ubuntu.com/QuantalQuetzal/TechnicalOverview/Beta2" target="_blank">Ubuntu</a> 12.10 version, code name &#8220;Quantal Quetzal&#8221;, just two days before. It is a development release, the Ubuntu developers are moving quickly to bring an absolute latest and greatest software. From the <a href="https://lists.ubuntu.com/archives/ubuntu-announce/2012-September/000163.html" target="_blank">release announcement</a> &#8220;The Ubuntu team is pleased to announce the final beta release of Ubuntu 12.10 Desktop, Server, Cloud, and Core products. Some of the new features available since beta 1 are: Quantal beta 2 includes the 3.5.0-15.23 Ubuntu Linux kernel which is based on the 3.5.4 upstream Linux kernel; Unity has been updated to version 6.6 which contains the new default web application in the launcher, a new shopping lens, improvements to the dash and multiple bug fixes; GNOME has been updated to 3.5.92 for most components (some to 3.6.0); accessibility is turned on by default.</p>
<p><a href="http://linuxexplore.files.wordpress.com/2012/09/ubuntu.png"><img class="wp-image-638 aligncenter" title="ubuntu" src="http://linuxexplore.files.wordpress.com/2012/09/ubuntu.png" alt="" width="640" height="512" /></a></p>
<h2 id="Download_the_Beta_2">Download the Beta 2</h2>
<p>Beta 2 images can be downloaded from a location near you.<br />
<strong>Note:</strong> The Ubuntu Desktop images are now bigger than a standard CD, and you should use a USB or DVD for installation. Some image consolidation has occurred as well.</p>
<p>You can download Beta 2 ISOs from:</p>
<p><a href="http://releases.ubuntu.com/12.10/">http://releases.ubuntu.com/12.10/</a> (Ubuntu Desktop and Server)<br />
<a href="http://cloud-images.ubuntu.com/releases/12.10/beta-2/">http://cloud-images.ubuntu.com/releases/12.10/beta-2/</a> (Ubuntu Cloud Server)<br />
<a href="http://cdimage.ubuntu.com/netboot/12.10/">http://cdimage.ubuntu.com/netboot/12.10/</a> (Ubuntu Netboot)<br />
<a href="http://cdimage.ubuntu.com/ubuntu-core/releases/12.10/beta-2/">http://cdimage.ubuntu.com/ubuntu-core/releases/12.10/beta-2/</a> (Ubuntu Core)<br />
<a href="http://cdimage.ubuntu.com/kubuntu/releases/12.10/beta-2/">http://cdimage.ubuntu.com/kubuntu/releases/12.10/beta-2/</a> (Kubuntu)<br />
<a href="http://cdimage.ubuntu.com/kubuntu-active/releases/12.10/beta-2/">http://cdimage.ubuntu.com/kubuntu-active/releases/12.10/beta-2/</a> (Kubuntu Active)<br />
<a href="http://cdimage.ubuntu.com/lubuntu/releases/12.10/beta-2/">http://cdimage.ubuntu.com/lubuntu/releases/12.10/beta-2/</a> (Lubuntu)<br />
<a href="http://cdimage.ubuntu.com/edubuntu/releases/12.10/beta-2/">http://cdimage.ubuntu.com/edubuntu/releases/12.10/beta-2/</a> (Edubuntu DVD)<br />
<a href="http://cdimage.ubuntu.com/ubuntustudio/releases/12.10/beta-2/">http://cdimage.ubuntu.com/ubuntustudio/releases/12.10/beta-2/</a> (Ubuntu Studio)<br />
<a href="http://cdimage.ubuntu.com/xubuntu/releases/12.10/beta-2/">http://cdimage.ubuntu.com/xubuntu/releases/12.10/beta-2/</a> (Xubuntu)</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2012/09/29/ubuntu-12-10-beta-2-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>More Helpful Commands in Linux</title>
		<link>https://blog.linuxexplore.com/2012/08/24/more-helpful-commands-in-linux/</link>
		<comments>https://blog.linuxexplore.com/2012/08/24/more-helpful-commands-in-linux/#comments</comments>
		<pubDate>Thu, 23 Aug 2012 19:26:36 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Linux Explore Tips & Tricks]]></category>
		<category><![CDATA[awk]]></category>
		<category><![CDATA[backdrop image]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[cat]]></category>
		<category><![CDATA[command line tools]]></category>
		<category><![CDATA[cut]]></category>
		<category><![CDATA[echo]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[enterprise-it]]></category>
		<category><![CDATA[inkscape]]></category>
		<category><![CDATA[intowire]]></category>
		<category><![CDATA[kde]]></category>
		<category><![CDATA[KStars]]></category>
		<category><![CDATA[kubuntu]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Administrator]]></category>
		<category><![CDATA[Linux hacks]]></category>
		<category><![CDATA[Linux Howto]]></category>
		<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[Linux Tricks]]></category>
		<category><![CDATA[macros]]></category>
		<category><![CDATA[Operating system]]></category>
		<category><![CDATA[print]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[SVG file]]></category>
		<category><![CDATA[tar]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://linuxexplore.wordpress.com/?p=609</guid>
		<description><![CDATA[A backdrop of stars Difficulty: Easy Application: KStars You may already have played with KStars, but how about creating a KStars backdrop image that&#8217;s updated every time you start up? KStars can be run with the &#8211;dump switch, which dumps out an image from your startup settings, but doesn&#8217;t load the GUI at all. You&#8230;]]></description>
				<content:encoded><![CDATA[<h2>A backdrop of stars</h2>
<ul>
<li>Difficulty: Easy</li>
<li>Application: KStars</li>
</ul>
<p>You may already have played with KStars, but how about creating a KStars backdrop image that&#8217;s updated every time you start up?</p>
<p>KStars can be run with the &#8211;dump switch, which dumps out an image from your startup settings, but doesn&#8217;t load the GUI at all. You can create a script to run this and generate a desktop image, which will change every day (or you can just use this method to generate images).</p>
<p>Run KStars like this:</p>
<pre>kstars --dump --width 1024 --height 768 --filename = ~/kstarsback.png</pre>
<p>You can add this to a script in your ~/.kde/Autostart folder to be run at startup. Find the file in Konqueror, drag it to the desktop and select &#8216;Set as wallpaper&#8217; to use it as a randomly generated backdrop.</p>
<h2>Open an SVG directly</h2>
<ul>
<li>Difficulty: Easy</li>
<li>Application: Inkscape</li>
</ul>
<p>You can run Inkscape from a shell and immediately edit a graphic directly from a URL. Just type:</p>
<pre>inkscape <a href="http://www.somehost.com/graphic.svg" rel="nofollow">http://www.somehost.com/graphic.svg</a></pre>
<p>Remember to save it as something else though!</p>
<h2>Editing without an editor</h2>
<ul>
<li>Difficulty: Intermediate</li>
<li>Application: Various</li>
</ul>
<p>Very long files are often hard to manipulate with a text editor. If you need to do it regularly, chances are you&#8217;ll find it much faster to use some handy command-line tools instead, like in the following examples.</p>
<p>To print columns eg 1 and 3 from a file file1 into file2, we can use awk:</p>
<pre>awk '{print $1, $3}' file1 &gt; file2</pre>
<p>To output only characters from column 8 to column 15 of file1, we can use cut:</p>
<pre>cut -c 8-15 file1 &gt; file2</pre>
<p>To replace the word word1 with the word word2 in the file file1, we can use the sed command:</p>
<pre>sed "s/word1/word2/g" file1 &gt; file2</pre>
<p>This is often a quicker way to get results than even opening a text editor.</p>
<h2>Backup selected files only</h2>
<ul>
<li>Difficulty: Intermediate</li>
<li>Application: tar</li>
</ul>
<p>Want to use tar to backup only certain files in a directory? Then you&#8217;ll want to use the -T flag as follows. First, create a file with the file you want to backup:</p>
<pre>cat &gt;&gt; /etc/backup.conf
# /etc/passwd
# /etc/shadow
# /etc/yp.conf
# /etc/sysctl.conf
EOF</pre>
<p>Then run tar with the -T flag pointing to the file just created:</p>
<pre>tar -cjf bck-etc-`date +%Y-%m-%d`.tar.bz2 -T /etc/backup.conf</pre>
<p>Now you have your backup.</p>
<p><a href="http://www.intowire.com/iWiRE/blog/view/57463/more-helpful-commands-in-linux#.UDZyp9Pzxw4.wordpress">Read more&#8230;&#8230;</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2012/08/24/more-helpful-commands-in-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Look what Stella brought to CentOS 6.3, Desktop OS based on Centos</title>
		<link>https://blog.linuxexplore.com/2012/08/08/look-what-stella-brought-to-centos-6-3-desktop-os-based-on-centos/</link>
		<comments>https://blog.linuxexplore.com/2012/08/08/look-what-stella-brought-to-centos-6-3-desktop-os-based-on-centos/#comments</comments>
		<pubDate>Wed, 08 Aug 2012 16:40:54 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Linux Explore How to]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Browser]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[CentOS 6.3]]></category>
		<category><![CDATA[CentOS update]]></category>
		<category><![CDATA[core enterprise]]></category>
		<category><![CDATA[default media player]]></category>
		<category><![CDATA[Desktop OS]]></category>
		<category><![CDATA[enterprise-it]]></category>
		<category><![CDATA[Entertainment]]></category>
		<category><![CDATA[intowire]]></category>
		<category><![CDATA[Libreoffice]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Administrator]]></category>
		<category><![CDATA[Linux games]]></category>
		<category><![CDATA[Linux hacks]]></category>
		<category><![CDATA[Linux Howto]]></category>
		<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[Linux Tricks]]></category>
		<category><![CDATA[Mandriva]]></category>
		<category><![CDATA[Media Player]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[Openoffice]]></category>
		<category><![CDATA[Operating system]]></category>
		<category><![CDATA[Remote Desktop]]></category>
		<category><![CDATA[ROMP]]></category>
		<category><![CDATA[ROSA Media Player]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Stella]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[video file formats]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[VLC]]></category>
		<category><![CDATA[VLC player]]></category>

		<guid isPermaLink="false">http://linuxexplore.wordpress.com/?p=575</guid>
		<description><![CDATA[There is a new Linux distribution released almost every week, sometimes, even every day. The latest is one called Stella, and the first version is Stella 6.3. Stella is a desktop-focused remix of CentOS, and Stella 6.3 is based on CentOS 6.3. If you are familiar with CentOS, you know that out of the box,&#8230;]]></description>
				<content:encoded><![CDATA[<p>There is a new Linux distribution released almost every week, sometimes, even every day. The latest is one called Stella, and the first version is Stella 6.3. Stella is a desktop-focused remix of <a href="http://linuxbsdos.com/category/centos" rel="nofollow">CentOS</a>, and Stella 6.3 is based on CentOS 6.3.</p>
<p>If you are familiar with CentOS, you know that out of the box, it is not really designed as a desktop distribution. Stella changes all that, as it is primarily aimed at desktop users, while retaining the core enterprise features and capabilities of CentOS.</p>
<p>And you can see that just by looking at the package manager. The package categories tell you that everything you can find in CentOS is also available in Stella. Plus desktop applications that you will not find in any default installation of CentOS. For example, an application listed in the screen shot below, is <a href="http://www.linuxbsdos.com/2012/04/10/romp-media-player-with-built-in-desktop-recorder/" rel="nofollow">ROSA Media Player</a> (ROMP), the default media player in <a href="http://www.linuxbsdos.com/category/rosa-desktop/" rel="nofollow">ROSA Desktop</a>, a distribution based on <a href="http://linuxbsdos.com/category/mandriva" rel="nofollow">Mandriva</a> Linux.</p>
<p style="text-align:center;"><a href="http://www.intowire.com/iWiRE/blog/view/52955/look-what-stella-brought-to-centos-63-desktop-os-based-on-centos#.UCKUDqSEaAM.wordpress"><img src="http://linuxexplore.files.wordpress.com/2012/08/stelladesktop8-600x469.png" alt="" /></a></p>
<p>Because it is loaded with desktop applications and media codecs not available in CentOS, you can play most audio and video file formats out of the box. Here it shows a favorite online video playing in Firefox.</p>
<p style="text-align:center;"><a href="http://www.intowire.com/iWiRE/blog/view/52955/look-what-stella-brought-to-centos-63-desktop-os-based-on-centos#.UCKUDqSEaAM.wordpress"><img src="http://linuxexplore.files.wordpress.com/2012/08/stelladesktop7-600x450.png" alt="" /></a></p>
<p>The next few screen shots show what the desktop looks like and some of the applications accessible from the menu. This one shows installed Internet applications.</p>
<p style="text-align:center;"><a href="http://www.intowire.com/iWiRE/blog/view/52955/look-what-stella-brought-to-centos-63-desktop-os-based-on-centos#.UCKUDqSEaAM.wordpress"><img src="http://linuxexplore.files.wordpress.com/2012/08/stelladesktop1-600x450.png" alt="" /></a></p>
<p>Installed Office applications.</p>
<p style="text-align:center;"><a href="http://www.intowire.com/iWiRE/blog/view/52955/look-what-stella-brought-to-centos-63-desktop-os-based-on-centos#.UCKUDqSEaAM.wordpress"><img src="http://linuxexplore.files.wordpress.com/2012/08/stelladesktop2-600x450.png" alt="" /></a></p>
<p>Installed multimedia applications.</p>
<p style="text-align:center;"><a href="http://www.intowire.com/iWiRE/blog/view/52955/look-what-stella-brought-to-centos-63-desktop-os-based-on-centos#.UCKUDqSEaAM.wordpress"><img src="http://linuxexplore.files.wordpress.com/2012/08/stelladesktop3-600x450.png" alt="" /></a></p>
<p>Updates manager.</p>
<p style="text-align:center;"><a href="http://www.intowire.com/iWiRE/blog/view/52955/look-what-stella-brought-to-centos-63-desktop-os-based-on-centos#.UCKUDqSEaAM.wordpress"><img src="http://linuxexplore.files.wordpress.com/2012/08/stelladesktop4-600x450.png" alt="" /></a></p>
<p><a href="http://www.intowire.com/iWiRE/blog/view/52955/look-what-stella-brought-to-centos-63-desktop-os-based-on-centos#.UCKUDqSEaAM.wordpress">Read full story</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2012/08/08/look-what-stella-brought-to-centos-6-3-desktop-os-based-on-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
