<?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>Ali Aboosaidi &#187; Linux</title>
	<atom:link href="http://insanelabs.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://insanelabs.com</link>
	<description>Umm... Unorthodox?</description>
	<lastBuildDate>Tue, 08 Nov 2011 21:04:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>VMware &#8211; Linux: OS cannot mount /dev/sd* after a virtual machine is converted &#8211; Waiting for device /dev/sd* to appear&#8230; not found &#8211; fall back</title>
		<link>http://insanelabs.com/linux/vmware-linux-os-cannot-mount-devsd-after-a-virtual-machine-is-converted-waiting-for-device-devsd-to-appear-not-found-fall-back/</link>
		<comments>http://insanelabs.com/linux/vmware-linux-os-cannot-mount-devsd-after-a-virtual-machine-is-converted-waiting-for-device-devsd-to-appear-not-found-fall-back/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 16:19:26 +0000</pubDate>
		<dc:creator>Ali</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[SuSE]]></category>

		<guid isPermaLink="false">http://insanelabs.com/?p=590</guid>
		<description><![CDATA[This happened when I created a SLES 11 VM with VMware Workstation and then moved to to ESX for production. Problem was that VMware Workstation used LSILogic SCSI drives to emulate my disks, but for some reason it wasn&#8217;t made clear to ESX by VMware Converter during conversion. To fix this browse to your datastore [...]
Related posts:<ol>
<li><a href="http://insanelabs.com/linux/linux-cannot-turn-on-a-virtual-machine-after-unclean-shutdown-failed-to-lock-the-file-error-vmware-server/" rel='bookmark' title='Linux: Cannot turn on a virtual machine after unclean shutdown &#8211; failed to lock the file error VMware Server' class="liinternal">Linux: Cannot turn on a virtual machine after unclean shutdown &#8211; failed to lock the file error VMware Server</a></li>
<li><a href="http://insanelabs.com/debian/linux-debian-etch-x64-and-vmware-server-cannot-connect-to-host-xxxx-no-connection-could-be-made-because-the-target-machine-actively-refused-it/" rel='bookmark' title='Debian: Etch x64 and VMware Server Cannot connect to host x.x.x.x: No connection could be made because the target machine actively refused it.' class="liinternal">Debian: Etch x64 and VMware Server Cannot connect to host x.x.x.x: No connection could be made because the target machine actively refused it.</a></li>
<li><a href="http://insanelabs.com/debian/debian-vmware-server-1x-and-debian-etch/" rel='bookmark' title='Debian: VMware Server 1.x and Debian Etch' class="liinternal">Debian: VMware Server 1.x and Debian Etch</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>This happened when I created a SLES 11 VM with VMware Workstation and then moved to to ESX for production. Problem was that VMware Workstation used LSILogic SCSI drives to emulate my disks, but for some reason it wasn&#8217;t made clear to ESX by VMware Converter during conversion.</p>
<p>To fix this browse to your datastore and download your guest&#8217;s configuration file &lt;vmname&gt;.vmx to your desktop (or use your root access and open it in vi through ssh). Open it with a text editor and add the following line above your SCSI devices:</p>
<pre>scsi0.virtualDev = "lsilogic"</pre>
<p>So the whole SCSI device section should look like this:</p>
<pre>scsi0.present = "true"
scsi0.sharedBus = "none"
scsi0.virtualDev = "lsilogic"
scsi0:0.present = "true"
scsi0:0.fileName = "disk1.vmdk"
scsi0:0.deviceType = "scsi-hardDisk"
scsi0:1.present = "true"
scsi0:1.fileName = "disk2.vmdk"
scsi0:1.deviceType = "scsi-hardDisk"</pre>
<p>Copy the config back to your datastore and start guest OS. You will be asked to confirm changes during post &#8211; answer yes to changes.</p>
<p>Disclaimer: Make sure you have a backup before making any change.</p>
<p>Related posts:<ol>
<li><a href="http://insanelabs.com/linux/linux-cannot-turn-on-a-virtual-machine-after-unclean-shutdown-failed-to-lock-the-file-error-vmware-server/" rel='bookmark' title='Linux: Cannot turn on a virtual machine after unclean shutdown &#8211; failed to lock the file error VMware Server' class="liinternal">Linux: Cannot turn on a virtual machine after unclean shutdown &#8211; failed to lock the file error VMware Server</a></li>
<li><a href="http://insanelabs.com/debian/linux-debian-etch-x64-and-vmware-server-cannot-connect-to-host-xxxx-no-connection-could-be-made-because-the-target-machine-actively-refused-it/" rel='bookmark' title='Debian: Etch x64 and VMware Server Cannot connect to host x.x.x.x: No connection could be made because the target machine actively refused it.' class="liinternal">Debian: Etch x64 and VMware Server Cannot connect to host x.x.x.x: No connection could be made because the target machine actively refused it.</a></li>
<li><a href="http://insanelabs.com/debian/debian-vmware-server-1x-and-debian-etch/" rel='bookmark' title='Debian: VMware Server 1.x and Debian Etch' class="liinternal">Debian: VMware Server 1.x and Debian Etch</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://insanelabs.com/linux/vmware-linux-os-cannot-mount-devsd-after-a-virtual-machine-is-converted-waiting-for-device-devsd-to-appear-not-found-fall-back/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux: How to ifdown in a remote server</title>
		<link>http://insanelabs.com/linux/linux-how-to-ifdown-in-a-remote-server/</link>
		<comments>http://insanelabs.com/linux/linux-how-to-ifdown-in-a-remote-server/#comments</comments>
		<pubDate>Sat, 14 Mar 2009 04:51:28 +0000</pubDate>
		<dc:creator>Ali</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://insanelabs.com/?p=545</guid>
		<description><![CDATA[6 million dollar question&#8230; want to ifdown/ifup but don&#8217;t have physical access to your server? you can ifdown and ifup in one command: ifdown eth0 &#038;&#038; ifup eth0 That&#8217;s how you combine more than one command in one line! Related posts: Linux: Mount remote Windows shares with smbfs Debian: NIC bonding (teaming) 32/64 bit OS [...]
Related posts:<ol>
<li><a href="http://insanelabs.com/linux/linux-mount-remote-windows-shares-with-smbfs/" rel='bookmark' title='Linux: Mount remote Windows shares with smbfs' class="liinternal">Linux: Mount remote Windows shares with smbfs</a></li>
<li><a href="http://insanelabs.com/debian/linux-nic-bonding-teaming-debian-3264/" rel='bookmark' title='Debian: NIC bonding (teaming) 32/64 bit OS' class="liinternal">Debian: NIC bonding (teaming) 32/64 bit OS</a></li>
<li><a href="http://insanelabs.com/linux/linux-vsftpd-and-symbolic-links/" rel='bookmark' title='Linux: vsftpd and symbolic links' class="liinternal">Linux: vsftpd and symbolic links</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>6 million dollar question&#8230; want to ifdown/ifup but don&#8217;t have physical access to your server? you can ifdown and ifup in one command:</p>
<pre>ifdown eth0 &#038;&#038; ifup eth0</pre>
<p>That&#8217;s how you combine more than one command in one line!</p>
<p>Related posts:<ol>
<li><a href="http://insanelabs.com/linux/linux-mount-remote-windows-shares-with-smbfs/" rel='bookmark' title='Linux: Mount remote Windows shares with smbfs' class="liinternal">Linux: Mount remote Windows shares with smbfs</a></li>
<li><a href="http://insanelabs.com/debian/linux-nic-bonding-teaming-debian-3264/" rel='bookmark' title='Debian: NIC bonding (teaming) 32/64 bit OS' class="liinternal">Debian: NIC bonding (teaming) 32/64 bit OS</a></li>
<li><a href="http://insanelabs.com/linux/linux-vsftpd-and-symbolic-links/" rel='bookmark' title='Linux: vsftpd and symbolic links' class="liinternal">Linux: vsftpd and symbolic links</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://insanelabs.com/linux/linux-how-to-ifdown-in-a-remote-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux: User management</title>
		<link>http://insanelabs.com/linux/linux-user-management/</link>
		<comments>http://insanelabs.com/linux/linux-user-management/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 16:20:21 +0000</pubDate>
		<dc:creator>Ali</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://insanelabs.com/?p=345</guid>
		<description><![CDATA[useradd: Add new users commands: -d specify home directory -s shell -p specify password -g user&#8217;s primary group -G user&#8217;s other group -m create home directory The following command creates a user &#8220;ali&#8221;, adds to groups users and admin and create his home directory: useradd -g users -G admin -p &#60;password&#62; -d /home/ali -m ali [...]
Related posts:<ol>
<li><a href="http://insanelabs.com/linux/linux-share-a-directory-between-local-users/" rel='bookmark' title='Linux: Share a directory between local users' class="liinternal">Linux: Share a directory between local users</a></li>
<li><a href="http://insanelabs.com/linux/linux-a-simple-and-quick-way-of-sharing-a-folder-with-windows-systems-using-samba/" rel='bookmark' title='Linux: A simple and quick way of sharing a folder with Windows systems using Samba' class="liinternal">Linux: A simple and quick way of sharing a folder with Windows systems using Samba</a></li>
<li><a href="http://insanelabs.com/vmware/vmware-esx-and-esxi-tips-and-tricks/" rel='bookmark' title='VMware ESX and ESXi &#8211; tips and tricks' class="liinternal">VMware ESX and ESXi &#8211; tips and tricks</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>useradd: Add new users commands:<br />
-d specify home directory<br />
-s shell<br />
-p specify password<br />
-g user&#8217;s primary group<br />
-G user&#8217;s other group<br />
-m create home directory</p>
<p>The following command creates a user &#8220;ali&#8221;, adds to groups users and admin and create his home directory:</p>
<pre>useradd -g users -G admin -p &lt;password&gt; -d /home/ali -m ali -s /bin/shell</pre>
<p>usermod: Modify existing users<br />
Use above switches to modify a user</p>
<p>Add &#8220;ali&#8221; to another group:</p>
<pre>usermod -G &lt;groupname&gt; ali</pre>
<p>userdel: Delete a user<br />
Removes the user &#8220;ali&#8221;. To delete home directories use -r switch:</p>
<pre>userdel -r ali</pre>
<p>passwd: user Password<br />
Logged on users can just use passwd to change their password. If root is changing a user&#8217;s password:</p>
<pre>passwd &lt;username&gt;</pre>
<p>su: switch user<br />
To switch from current user to another:</p>
<pre>su &lt;username&gt;</pre>
<p>You may switch from root to another user without entering user&#8217;s password, but not the other way around. This will not log off current user. To return to previous user shell type &#8220;exit&#8221;.</p>
<p>Users, passwords and group information are stored in these files:</p>
<p>Users: /etc/passwd<br />
Groups: /etc/group<br />
Passwords: /etc/shadow</p>
<p>Related posts:<ol>
<li><a href="http://insanelabs.com/linux/linux-share-a-directory-between-local-users/" rel='bookmark' title='Linux: Share a directory between local users' class="liinternal">Linux: Share a directory between local users</a></li>
<li><a href="http://insanelabs.com/linux/linux-a-simple-and-quick-way-of-sharing-a-folder-with-windows-systems-using-samba/" rel='bookmark' title='Linux: A simple and quick way of sharing a folder with Windows systems using Samba' class="liinternal">Linux: A simple and quick way of sharing a folder with Windows systems using Samba</a></li>
<li><a href="http://insanelabs.com/vmware/vmware-esx-and-esxi-tips-and-tricks/" rel='bookmark' title='VMware ESX and ESXi &#8211; tips and tricks' class="liinternal">VMware ESX and ESXi &#8211; tips and tricks</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://insanelabs.com/linux/linux-user-management/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mySQL: How to backup/restore SQL databases through SSH</title>
		<link>http://insanelabs.com/linux/mysql-how-to-backuprestore-sql-databases-through-ssh/</link>
		<comments>http://insanelabs.com/linux/mysql-how-to-backuprestore-sql-databases-through-ssh/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 20:48:45 +0000</pubDate>
		<dc:creator>Ali</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[mySQL]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://insanelabs.com/?p=176</guid>
		<description><![CDATA[To backup your database through SSH (create SQL dump): mysqldump --opt -u user -p dbname &#62; {path}/backup.sql To restore: mysql -u user -p dbname &#60; {path}/backup.sql Related posts: Backup Exec: Transfer scheduled jobs, database and settings to a new backup server Debian: Symantec Backup Exec 12 and Debian Etch 32/64 Linux: htpasswd: command not found
Related posts:<ol>
<li><a href="http://insanelabs.com/misc/backup-exec-transfer-scheduled-jobs-database-and-settings-to-a-new-backup-server/" rel='bookmark' title='Backup Exec: Transfer scheduled jobs, database and settings to a new backup server' class="liinternal">Backup Exec: Transfer scheduled jobs, database and settings to a new backup server</a></li>
<li><a href="http://insanelabs.com/debian/linux-symantec-backup-exec-12-and-debian-etch-3264/" rel='bookmark' title='Debian: Symantec Backup Exec 12 and Debian Etch 32/64' class="liinternal">Debian: Symantec Backup Exec 12 and Debian Etch 32/64</a></li>
<li><a href="http://insanelabs.com/linux/linux-htpasswd-command-not-found/" rel='bookmark' title='Linux: htpasswd: command not found' class="liinternal">Linux: htpasswd: command not found</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>To backup your database through SSH (create SQL dump):</p>
<pre><span style="color: #ff6600;">mysqldump --opt -u user -p dbname &gt; {path}/backup.sql</span></pre>
<p>To restore:</p>
<pre><span style="color: #ff6600;">mysql -u user -p dbname &lt; {path}/backup.sql</span></pre>
<p>Related posts:<ol>
<li><a href="http://insanelabs.com/misc/backup-exec-transfer-scheduled-jobs-database-and-settings-to-a-new-backup-server/" rel='bookmark' title='Backup Exec: Transfer scheduled jobs, database and settings to a new backup server' class="liinternal">Backup Exec: Transfer scheduled jobs, database and settings to a new backup server</a></li>
<li><a href="http://insanelabs.com/debian/linux-symantec-backup-exec-12-and-debian-etch-3264/" rel='bookmark' title='Debian: Symantec Backup Exec 12 and Debian Etch 32/64' class="liinternal">Debian: Symantec Backup Exec 12 and Debian Etch 32/64</a></li>
<li><a href="http://insanelabs.com/linux/linux-htpasswd-command-not-found/" rel='bookmark' title='Linux: htpasswd: command not found' class="liinternal">Linux: htpasswd: command not found</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://insanelabs.com/linux/mysql-how-to-backuprestore-sql-databases-through-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian: Symantec Backup Exec 12 and Debian Etch 32/64</title>
		<link>http://insanelabs.com/debian/linux-symantec-backup-exec-12-and-debian-etch-3264/</link>
		<comments>http://insanelabs.com/debian/linux-symantec-backup-exec-12-and-debian-etch-3264/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 00:27:03 +0000</pubDate>
		<dc:creator>Ali</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[backupexec]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RALUS]]></category>

		<guid isPermaLink="false">http://insanelabs.com/?p=93</guid>
		<description><![CDATA[A quick note for users of BE 2010 and later: deb packages are now included with the product and you no longer need to user alien to convert from rpm. There is also an installer included with the product but you still HAVE TO install the deb package separately FIRST. Then run the installer &#8220;./installralus&#8221; [...]
Related posts:<ol>
<li><a href="http://insanelabs.com/misc/backup-exec-transfer-scheduled-jobs-database-and-settings-to-a-new-backup-server/" rel='bookmark' title='Backup Exec: Transfer scheduled jobs, database and settings to a new backup server' class="liinternal">Backup Exec: Transfer scheduled jobs, database and settings to a new backup server</a></li>
<li><a href="http://insanelabs.com/debian/debian-vmware-server-1x-and-debian-etch/" rel='bookmark' title='Debian: VMware Server 1.x and Debian Etch' class="liinternal">Debian: VMware Server 1.x and Debian Etch</a></li>
<li><a href="http://insanelabs.com/linux/mysql-how-to-backuprestore-sql-databases-through-ssh/" rel='bookmark' title='mySQL: How to backup/restore SQL databases through SSH' class="liinternal">mySQL: How to backup/restore SQL databases through SSH</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="storycontent">
<p>A quick note for users of BE 2010 and later: deb packages are now included with the product and you no longer need to user alien to convert from rpm. There is also an installer included with the product but you still <span style="text-decoration: underline;"><strong>HAVE TO</strong></span> install the deb package separately <span style="text-decoration: underline;"><strong>FIRST</strong></span>. Then run the installer &#8220;./installralus&#8221; from RALUS_RMALS_RAMS-xxxxxversion.tar.gz (yep, I assume you know that you&#8217;ll have to untar the archive, yada yada yada. Don&#8217;t forget to install libstdc++5 while you&#8217;re at it!).</p>
<p>Now for BE 12 and earlier</p>
<p>To install Symantec Backup Exec 12 agent under Debian Linux (32 and 64 bit). Version numbers have been masked with “xxx” to make it a general post.</p>
<p>Find the appropriate agent from the installer CD or download the latest version from Symantec website. 32 bit packages are normally under /Linux/RALUSx86/pkgs/Linux and 64 bit under /Linux/RALUS64/pkgs/Linux. Both packages must be properly installed: <span style="color: #ff6600;">VRTSralus and VRTSvxmsa</span>.</p>
<p>To untar:</p>
<pre>tar -zxvf VRTSralus.tar.gz
tar -zxvf VRTSvxmsa.tar.gz</pre>
<p>Symantec provides rpm packages so we will have to convert them to deb. If you don’t have the package “alien” installed use the command <span style="color: #ff6600;">“<span>aptitude install alien</span>”</span> to install the package.</p>
<p>Converting rpm to deb:</p>
<pre>alien --scripts VRTSralus-xxx.rpm
alien --scripts VRTSvxmsa-xxx.rpm</pre>
<p>(64 bit packages end with x86-64.rpm).</p>
<p>Installing deb packages:</p>
<pre>dpkg -i vrtsralus-xxx-.deb
dpkg -i vrtsvxmsa-xxx-.deb</pre>
<p>RALUS runs under a backup user called beoper. Go ahead and add the user/group and give it root access:</p>
<pre>addgroup beoper
adduser root beoper</pre>
<p>Before loading the agent for the first time install the following packages:</p>
<pre>aptitude install libstdc++5</pre>
<p>for 64 bit Debian you will need an additional package:</p>
<pre>aptitude install ia32-libs</pre>
<p>Now load the agent for the first time to have it create your configuration file. Backup Exec installation will copy your init script to /opt/VRTSralus/bin/VRTSralus.init. Either run it directly from there or create a symbolic link where your other scripts are:</p>
<pre>ln -s opt/VRTSralus/bin/VRTSralus.init /etc/init.d</pre>
<p>Load the agent:</p>
<pre>/etc/init.d/VRTSralus.init start</pre>
<p>OK confirms that your script ran properly, and if you followed my direction it should. Now kill the process</p>
<pre>/etc/init.d/VRTSralus.init stop</pre>
<p>and go open the configuration file</p>
<pre>nano /etc/VRTSralus/ralus.cfg</pre>
<p class="MsoNormal">Insert the following string and replace the IP to match your media server’s:</p>
<pre>Software\Symantec\Backup Exec For Windows\Backup Exec\Engine\Agents\Agent Directory List_1=192.168.1.35</pre>
<p>I have highlighted what I think is important: agent advertising option and your media server IP. Make sure they are correct and if you don’t have any of those lines go ahead and add them to your config file.</p>
<p>Save/close the file and re-run your agent. You’re all set! If you like to have the agent run every time your box reboots navigate to /etc/init.d/ and:</p>
<pre>update-rc.d -f VRTSralus.init defaults</pre>
<p>Note that Backup Exec 12.5 comes with a pre-compiled .deb package. Hooray for Symantec!</p>
</div>
<p>Related posts:<ol>
<li><a href="http://insanelabs.com/misc/backup-exec-transfer-scheduled-jobs-database-and-settings-to-a-new-backup-server/" rel='bookmark' title='Backup Exec: Transfer scheduled jobs, database and settings to a new backup server' class="liinternal">Backup Exec: Transfer scheduled jobs, database and settings to a new backup server</a></li>
<li><a href="http://insanelabs.com/debian/debian-vmware-server-1x-and-debian-etch/" rel='bookmark' title='Debian: VMware Server 1.x and Debian Etch' class="liinternal">Debian: VMware Server 1.x and Debian Etch</a></li>
<li><a href="http://insanelabs.com/linux/mysql-how-to-backuprestore-sql-databases-through-ssh/" rel='bookmark' title='mySQL: How to backup/restore SQL databases through SSH' class="liinternal">mySQL: How to backup/restore SQL databases through SSH</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://insanelabs.com/debian/linux-symantec-backup-exec-12-and-debian-etch-3264/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>

