Archive for the ‘Linux’ Category

VMWare and Gentoo Problems

Friday, September 28th, 2007

After installing vmware-server and vmware-modules I was not able to get vmware to start properly. When trying to start the vmware service:

# /etc/init.d/vmware start

I would get this:

* Vmware Server is installed, but it has not been (correctly) configured
* for the running kernel.
* Please ensure that the modules have been compiled for this kernel:
* emerge –oneshot vmware-modules
* Also ensure Vmware Server has been configured:
* /opt/vmware/server/bin/vmware-config.pl
* VMware is not properly configured! See above.

Reading through the Gentoo forums I tried removing the /etc/vmware/not_configured file and got:

* Starting VMware services:                                            [ ok ]
*   Virtual machine monitor                                            [ !! ]
*   Virtual ethernet                                                        [ !! ]
*   Bridged networking on /dev/vmnet0                           [ !! ]
*   Host-only networking on /dev/vmnet1 (background)    [ ok ]
*   Host-only networking on /dev/vmnet8 (background)    [ ok ]
*   NAT service on /dev/vmnet8                                      [ !! ]

I then tried:

# emerge -1 vmware-modules

unfortunately that did not work

I looked at what modules were loaded and saw that the vmmon and the vmnet modules were not loaded.

# depmod
# modprobe vmmod
# modprobe vmnet
Finally I added the following lines to the /etc/modules.autoload.d/kernel-2.6

vmmod
vmnet

Gentoo on Dallas

Friday, September 28th, 2007

Introduction

I love Linux so much and my favorite distrubtion is Gentoo. I love Linux so much that I have refused to install Windows on my workstation at work because I would rather have that friendly penguin in my computer at work. Our servers unfortunately run Windows 2003 with Terminal services providing access to our POS.

Initially we used CITRIX to share our POS and setting that up was fun, and I found that printing worked a lot better in Linux than it did with Windows. Just recently we implemented a VPN that uses Netextender from SonicWall. Currently I have not been able to get my Linux Box to jive with the VPN because I am not sure of how our Admin has set everything up. I assure you this, the day will be mine soon!

In the mean time I figured I’d blog about how I installed Gentoo Linux on my workstation. In this fine machine I have:

  • AMD Athlon 64 3500+
  • Asus A8V Motherboard
  • 4×512 (2GB total) DDR400
  • ATI Radeon 9600XT
  • 80 GB HD, 120GB HD, 250GB HD, 320GBHD SATA Drives

Why all the hard drive you ask? I have so many for storage of CD images, Drivers, and VMs

First things first, we do the basic install of Gentoo, the guide can be found here.

Now that I have the base system installed it’s time to install and configure the system.

(more…)

Remounting Root FS in RW

Wednesday, September 12th, 2007

After finishing up an installation of Gentoo, I reboot into the new system only to find that it needs maintenance. The probably usually is that the hard drive is assigned a different device file during the LiveCD than when the actual system is booting up.

After providing the root password I need to edit the /etc/fstab file. Problem is that the file system is mounted in read only. So we must remount the root partition in read write.

mount -no remount,rw /

Now we can make the changes we need and reboot the system.

Gentoo CD Burning

Saturday, June 16th, 2007

In Windows CD burning is taken for granted. You can either burn a CD by using the Windows CD burning engine or by popping the software that came with the CD burner in the computer, install it and then burn. In Linux you have to build some features into the kernel in order for this wonder feature to work, followed by the actual burning software.

Device Drivers —>
SCSI device drivers —>
< * > SCSI CD-ROM Support
[ * ] Enable vendor-specific extensions (for SCSI CD-ROM)
ATA/ATAPI/MFM/RLL Support —>
< * > ATA/ATAPI/MFM/RLL
< * > Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support
< * > Include IDE/ATAPI CD-ROM support

Recompile the kernel and boot the system with it.emerge the basic tool for burning, which is cdrtools:

# emerge cdrtools

cdrtools is a command line program for burning CDs. To make things easier, you can also install a GUI program that will take care of the work for you:

  • xcdroast
  • gcombust
  • gnomebaker
  • k3b

Set the permissions for the programs:

# chmod 750 /usr/bin/cdrdao
# chmod 750 /usr/bin/cdrecord
# chown root:cdrw /usr/bin/cdrdao
# chown root:cdrw /usr/bin/cdrecord

To enable burning for users:

# gpasswd -a $username cdrom
# gpasswd -a $username cdrw

To find out what device id your burner is:

# cdrecord dev=ATAPI -scanbus

If you have an ISO and you want to burn it to a CD:

# cdrecord -v dev=ATA:0,0,0 speed=52 -data -eject file.iso

I’ve seen ATAPI used instead of ATA. I’ve always had problems with that not working.

Debugging With Eclipse and PHPdbg in Linux

Monday, May 21st, 2007

Using a debugger to help find errors will save you a consider amount of time. Eclipse is a great IDE because not only is it platform independent, but you can use it to program in many different languages. The features and plugins seem endless which is an added bonus.

The main reason why I like it is that it works on Linux. ;)

(more…)

IVMan Automounter in Gentoo

Sunday, May 6th, 2007

<meta name="GENERATOR" content="OpenOffice.org 2.0 (Linux)" /><meta name="CREATED" content="20070506;18100900" /><meta name="CHANGED" content="16010101;0" /><br /> <style> <!-- @page { size: 8.5in 11in; margin: 0.79in } P { margin-bottom: 0.08in } H3 { margin-bottom: 0.08in } --> </style> <h3>Introduction</h3> <p>Linux is great in the respect that you have COMPLETE control over everything you do on the system. You can even control the mounting of drives. However, sometimes you may just want the system to mount it itself. I’ve read that many people were having problems with supermount and it is no longer mainstream.</p> <p>This is where IVMan comes into play. Submount was removed from the Gentoo Portage as of 2nd of Janurary, 2007. As long as my system mounts a USB stick at when I plug it in, I’m a happy camper.</p> <p>In order to use ivman, the system must have the following installed for it to work correctly:</p> <ul> <li> <p style="margin-bottom: 0in">udev</p> </li> <li> <p style="margin-bottom: 0in">hal</p> </li> <li> <p style="margin-bottom: 0in">dbus</p> </li> <li>pmount</li> </ul> <p>This is a quick and dirty way of how I set up ivman to work on my system. I use Gnome, so if you use Gnome as well, you may want to make sure that <strong>coldplug</strong> and <strong>gnome-volume-manager</strong> is installed.</p> <h3>Code</h3> <p># emerge -av ivman</p> <p># emerge –oneshot glibc linux-headers</p> <p># emerge coldplug gnome-volume-manager</p> <p># rc-update add ivman default</p> <p># rc-update add hald default</p> <p># rc-update add dbus default</p> <p># /etc/init.d/ivman start</p> <h3>Configuration</h3> <p>Make sure that the users that need the ability to mount devices automatically are added to the plugdev group.</p> <p>Chances are that if you plug in a USB flash drive, it’s going to tell you that you do not have permission to view the contents of the drive. Since whenever I plugged in a UFD, it would always get assigned /dev/sdd1, I just added the following line to my /etc/fstab file:</p> <p>/dev/sdd1 /media/sdd1 auto users,rw 0 0</p> </div> <p class="postmetadata"> Posted in <a href="http://paulslinuxbox.net/blog/category/linux/gentoo" title="View all posts in Gentoo" rel="category tag">Gentoo</a>, <a href="http://paulslinuxbox.net/blog/category/linux" title="View all posts in Linux" rel="category tag">Linux</a> | <a href="http://paulslinuxbox.net/blog/linux/ivman-automounter-in-gentoo#respond" title="Comment on IVMan Automounter in Gentoo">No Comments »</a></p> </div> <div class="navigation"> <div class="alignleft"></div> <div class="alignright"><a href="http://paulslinuxbox.net/blog/category/linux/">Newer Entries »</a></div> </div> </div> <div id="sidebar"> <ul> <li> <form method="get" id="searchform" action="http://paulslinuxbox.net/blog/"> <div><input type="text" value="" name="s" id="s" /> <input type="submit" id="searchsubmit" value="Search" /> </div> </form> </li> <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it. <li><h2>Author</h2> <p>A little something about you, the author. Nothing lengthy, just an overview.</p> </li> --> <li> <p>You are currently browsing the archives for the Linux category.</p> </li> <li class="pagenav"><h2>Pages</h2><ul><li class="page_item page-item-2"><a href="http://paulslinuxbox.net/blog/about" title="About Paulus">About Paulus</a></li> <li class="page_item page-item-50"><a href="http://paulslinuxbox.net/blog/projects" title="Projects">Projects</a></li> <li class="page_item page-item-36"><a href="http://paulslinuxbox.net/blog/resume" title="Resume">Resume</a></li> </ul></li> <li><h2>Archives</h2> <ul> <li><a href='http://paulslinuxbox.net/blog/2008/11' title='November 2008'>November 2008</a></li> <li><a href='http://paulslinuxbox.net/blog/2008/07' title='July 2008'>July 2008</a></li> <li><a href='http://paulslinuxbox.net/blog/2008/06' title='June 2008'>June 2008</a></li> <li><a href='http://paulslinuxbox.net/blog/2008/04' title='April 2008'>April 2008</a></li> <li><a href='http://paulslinuxbox.net/blog/2008/02' title='February 2008'>February 2008</a></li> <li><a href='http://paulslinuxbox.net/blog/2008/01' title='January 2008'>January 2008</a></li> <li><a href='http://paulslinuxbox.net/blog/2007/12' title='December 2007'>December 2007</a></li> <li><a href='http://paulslinuxbox.net/blog/2007/11' title='November 2007'>November 2007</a></li> <li><a href='http://paulslinuxbox.net/blog/2007/10' title='October 2007'>October 2007</a></li> <li><a href='http://paulslinuxbox.net/blog/2007/09' title='September 2007'>September 2007</a></li> <li><a href='http://paulslinuxbox.net/blog/2007/06' title='June 2007'>June 2007</a></li> <li><a href='http://paulslinuxbox.net/blog/2007/05' title='May 2007'>May 2007</a></li> <li><a href='http://paulslinuxbox.net/blog/2007/04' title='April 2007'>April 2007</a></li> <li><a href='http://paulslinuxbox.net/blog/2007/03' title='March 2007'>March 2007</a></li> <li><a href='http://paulslinuxbox.net/blog/2007/02' title='February 2007'>February 2007</a></li> <li><a href='http://paulslinuxbox.net/blog/2007/01' title='January 2007'>January 2007</a></li> </ul> </li> <li class="categories"><h2>Categories</h2><ul> <li class="cat-item cat-item-22"><a href="http://paulslinuxbox.net/blog/category/games" title="View all posts filed under Games">Games</a> (1) </li> <li class="cat-item cat-item-5 current-cat"><a href="http://paulslinuxbox.net/blog/category/linux" title="View all posts filed under Linux">Linux</a> (16) <ul class='children'> <li class="cat-item cat-item-7"><a href="http://paulslinuxbox.net/blog/category/linux/fedora" title="View all posts filed under Fedora">Fedora</a> (6) </li> <li class="cat-item cat-item-6"><a href="http://paulslinuxbox.net/blog/category/linux/gentoo" title="View all posts filed under Gentoo">Gentoo</a> (15) </li> </ul> </li> <li class="cat-item cat-item-12"><a href="http://paulslinuxbox.net/blog/category/work" title="View all posts filed under Operating Systems">Operating Systems</a> (11) <ul class='children'> <li class="cat-item cat-item-25"><a href="http://paulslinuxbox.net/blog/category/work/mac-os-x" title="View all posts filed under Mac OS X">Mac OS X</a> (2) </li> <li class="cat-item cat-item-20"><a href="http://paulslinuxbox.net/blog/category/work/vista" title="View all posts filed under Vista">Vista</a> (3) </li> <li class="cat-item cat-item-21"><a href="http://paulslinuxbox.net/blog/category/work/xp" title="View all posts filed under XP">XP</a> (4) </li> </ul> </li> <li class="cat-item cat-item-8"><a href="http://paulslinuxbox.net/blog/category/programming" title="View all posts filed under Programming">Programming</a> (9) <ul class='children'> <li class="cat-item cat-item-9"><a href="http://paulslinuxbox.net/blog/category/programming/java" title="View all posts filed under Java">Java</a> (1) </li> <li class="cat-item cat-item-11"><a href="http://paulslinuxbox.net/blog/category/programming/php" title="View all posts filed under PHP">PHP</a> (6) </li> </ul> </li> <li class="cat-item cat-item-2"><a href="http://paulslinuxbox.net/blog/category/school" title="View all posts filed under School">School</a> (13) <ul class='children'> <li class="cat-item cat-item-4"><a href="http://paulslinuxbox.net/blog/category/school/oracle" title="View all posts filed under Oracle">Oracle</a> (12) </li> <li class="cat-item cat-item-3"><a href="http://paulslinuxbox.net/blog/category/school/statistics" title="View all posts filed under Statistics">Statistics</a> (1) </li> </ul> </li> <li class="cat-item cat-item-26"><a href="http://paulslinuxbox.net/blog/category/seo" title="View all posts filed under SEO">SEO</a> (1) </li> <li class="cat-item cat-item-1"><a href="http://paulslinuxbox.net/blog/category/uncategorized" title="View all posts filed under Uncategorized">Uncategorized</a> (2) </li> <li class="cat-item cat-item-14"><a href="http://paulslinuxbox.net/blog/category/unexplained" title="View all posts filed under Unexplained">Unexplained</a> (7) <ul class='children'> <li class="cat-item cat-item-19"><a href="http://paulslinuxbox.net/blog/category/unexplained/esp" title="View all posts filed under ESP">ESP</a> (3) </li> <li class="cat-item cat-item-18"><a href="http://paulslinuxbox.net/blog/category/unexplained/ghosts" title="View all posts filed under Ghosts">Ghosts</a> (2) </li> </ul> </li> </ul></li> </ul> </div> <hr /> <div id="footer"> <!-- If you'd like to support WordPress, having the "powered by" link somewhere on your blog is the best way; it's our only promotion or advertising. --> <p> Paulus’ Blog is proudly powered by <a href="http://wordpress.org/">WordPress</a> <br /><a href="http://paulslinuxbox.net/blog/feed">Entries (RSS)</a> and <a href="http://paulslinuxbox.net/blog/comments/feed">Comments (RSS)</a>. <!-- 19 queries. 0.997 seconds. --> </p> </div> </div> <!-- Gorgeous design by Michael Heilemann - http://binarybonsai.com/kubrick/ --> <!-- Google Analytics for WordPress | http://yoast.com/wordpress/google-analytics/ --> <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> var pageTracker = _gat._getTracker("UA-4515970-4"); </script> <script type="text/javascript"> pageTracker._initData(); pageTracker._trackPageview(); </script> <!-- End of Google Analytics code --> </body> </html>