Category Archives: Gentoo

posts about gentoo linux

a switch to ubuntu.

A couple days ago I accidentally(and I did the first step of it on accident, truthfully. ) switched the on my ’s laptop from Windows XP Home*barf*, to . In that process I later decided to try out the encrypted drive option on the alternative install CD. With little hesitation after I decided on moving my ~/ stuff over from my Gentoo system running on a to the new Ubuntu system I easily setup for my dad. I was running a drive over usb which is only practical for so long, it really makes the drive feel slower to me. The only major configuration issue I had with the move was that not all my buttons were working the way I like them to. With a quick edit, by adding a new Input Device section to my xorg.conf, I was content.

Section "InputDevice"
    Identifier     "USBMouse0"
    Driver         "mouse"
    Option         "SendCoreEvents" "true"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/input/mice"
    Option         "ZAxisMapping" "4 5 8 9"
    Option         "ButtonMapping" "1 2 3 6 7 10 11"
EndSection

I wonder why this isn’t standard info for the Microsoft Intelimouse Optical USB/PS2 when it’s found plugged into my system.
I also gave him the Windows XP Home in a innotek virtualbox so he can run a certain proprietary piece of software which he needs.

article submission for GWN

I had read the previous GWN, and the request for help summarizing topics sounded interesting. A couple days later while browsing the forums, I decided to start reading a long thread. By page 3 I knew that I had something to try writing about. With my eyes already straining, the already heavily discussed ideas of possible political systems of relationships between those related in how Gentoo “lives” began to seem petty. After reading the entire thread, and numerous other pieces to the discussion at hand a trend was forming. I know it is not a 50 to 250 word summary, but that would be quite difficult to do. It’s more of an essay of how I see things, and partial summaries of how others view the current state.

Attached is something I would like to submit for the GWN. I’m not much of a writer, and I’m sure it could use some editing, but I feel it’s subject is quite important.

gentoo-article-idea.txt (download)

gentoo-article-idea.txt

Pocket PC Windows Tax

I read something the other day about the “Windows Tax” via [linux-watch.com] basically a method for getting a refund on the OEM version of MS Windows you are “Forced” to buy with a PC from some manufacturers. I wonder if this method will also work when purchasing a Pocket PC with Microsoft Software on it. I’m thinking about this because I just read on the this weeks GWN, that a member of the Russian Gentoo Community managed to get E17 running on his HP iPAQ hx4700. Obviously users have managed to get Linux running on their PDA’s for quite some time, but my brain didn’t really put the one and two together. Why should you have to buy the Pocket PC OS when your just going to put Linux on it anyway? Does Palm have the same terms in their license I wonder?

Now I wonder how difficult this could be mostly because I don’t think I’ve ever seen the Pocket PC OS sold separately. In the Linux.com article the person uses the Microsoft Windows Home Edition as a baseline for his requested refund amount.

Perhaps the refund amount will be more substantial since the cost of a sweet PDA is almost twice as much as the run of the mill PC.

chipmunks.

I’m trying to listen to dave winer’s podcast in google reader using their flash player, and wow.

the timing is all messed up, and he sounds like a chipmunk.

I’m doing some software updates, and lots of the cpu is in use, so flash + Firefox + gcc = not enough juice. Well the flash player is also beta and so far this is the only issue I’ve had with it. My compiling is nice 19. hmm.

gentoo toolchain notes

A few critical packages in gentoo were released from ~ to stable recently, and through the upgrade I expericend a couple bumps.

After the upgraded packages were installed in order for things to compile after you will need to select the newer environment. YMMV

sudo binutils-config -l
 
sudo binutils-config 2
 
sudo gcc-config -l
 
sudo gcc-config 6

resources

GF20: C compiler cannot create executables
http://forums.gentoo.org/viewtopic.php?t=294109

my vmware installation notes.

I installed VMware Server on my Gentoo box this morning. Because it’s fairly new to the tree, and I’ve been wanting to try it out for while, and now it’s free. I had a couple simple issues too outlined below, but outside of that it works great.

The first task after the quick 100mb download, and emerge of a few missing dependancies was to add my user to the vmware group so that I will be able to use it.

If your VMware Server is located on another machine like myself, you will most likely need to also remember to add a few lines to your xinetd.conf. As it comes out of the box, it is only accessible to your local machine. You will need to modify your /etc/xinetd.conf/vmware-authd so that it contains;

only_from = xxx.xxx.xxx.xxx/24

Otherwise your VMware Console client will hang and you will have this error in your syslog on the remote machine.

Aug 28 08:32:24 mywhiz xinetd[29408]: FAIL: vmware-authd address from=xxx.xxx.xxx.xxx
Aug 28 08:32:24 mywhiz xinetd[12288]: START: vmware-authd pid=29408 from=xxx.xxx.xxx.xxx
Aug 28 08:32:24 mywhiz xinetd[12288]: EXIT: vmware-authd status=0 pid=29408 duration=0(sec)

Soon after something else was in my way of VMware Server working. While running the console had no errors, the syslog on my remote machine had something.

Aug 28 09:44:09 mywhiz vmware-authd[32121]: The "/opt/vmware/server/lib/bin/vmware-vmx" process did not start properly.  Exit 0xed00

Searching through google revealed nothing of note, just a couple seamingly old unlrelated items. Luckilly there is a debug mode option you can set in Vmware Server. I opened my VM, and then performed this. Edit Virtual Machine Settings -> Options -> Advanced -> Run with debugging information

Note: Gentoo does not install the debugging version of the vmware-vmx binary with setuid permissions.

$ ls -al /opt/vmware/server/lib/bin-debug/vmware-vmx
-rwxr-xr-x 1 root root 5143312 2006-08-28 07:23 /opt/vmware/server/lib/bin-debug/vmware-vmx
 
$ sudo chmod u+s /opt/vmware/server/lib/bin-debug/vmware-vmx
 
$ ls -al /opt/vmware/server/lib/bin-debug/vmware-vmx
-rwsr-xr-x 1 root root 5143312 2006-08-28 07:23 /opt/vmware/server/lib/bin-debug/vmware-vmx

Oddly VMware Console will be nice enough and it will tell you this error quite verbosely.

VMware Server Error:
VMware Server must be set-UID root, "/opt/vmware/server/lib/bin-debug/vmware-vmx" is not. Are you running /opt/vmware/server/lib/bin-debug/vmware-vmx from its distribution directory? That copy of the program is not set-UID root.
 
Press "Enter" to continue...
End of error message.

Attempting to run the VM this time produced a better error message. It wasn’t able to access my ~/.vmware directory on the remote machine for some reason. So I;

rm -rf ~/.vmware

The problem is gone when I power on the VM again. I think VMware could have saved me the trouble of all that by telling me they couldn’t access the directory without that much extra hassle of a debug mode, but at least it was easy enough to fix.
Hurray for errors! Well no boo errors, ehh who cares. While writing this, another one rears it’s ugly head.

My VMware Console is unable to connect to my remote machine with this error.

"Unable to connect to the remote host: 511 Error connecting to /opt/vmware/server/sbin/vmware-serverd process.."
Running htop shows the issue is quite simple.
PID USER     PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
31337 root      25   0  115M  111M  4352 R 98.7  7.0 30:00.98 /opt/vmware/server/sbin/vmware-server
On my remote machine I perform;
sudo /etc/init.d/vmware-server restart

All is well when it starts back up again. Now to turn off debug mode in the options and take away setuid on the debug binary.

resources:

http://diaryproducts.net/about/operating_systems/unix/installing_vmware_server_on_gentoo_linux.vm

http://gentoo-wiki.com/HOWTO_Install_VMWare_Server

both of these are out of date technically, but they were still helpful to me.

my df replacement

Tired of df? Feel like something new? Try di. It’s as simple as “emerge di” on gentoo, and is also availible as a package/source for debian, suse, bsd, mac osx.

Below is the output of both programs. I changed the default output of both utilities to use human readable display sizes.

$ df -h
 
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/Gentoo-root
                      1.0G  430M  595M  42% /
udev                  506M  280K  506M   1% /dev
/dev/hda1              96M   52M   45M  54% /boot
/dev/mapper/Gentoo-usr
                      5.3G  4.4G  929M  83% /usr
/dev/mapper/Gentoo-usr_portage
                      2.8G  1.8G  983M  65% /usr/portage
/dev/mapper/Gentoo-var
                      3.0G  1.6G  1.5G  51% /var
/dev/mapper/Gentoo-opt
                      700M  568M  133M  82% /opt
/dev/mapper/Gentoo-home
                       23G   21G  2.4G  90% /home
tmpfs                 150M   48K  150M   1% /tmp
none                  506M     0  506M   0% /dev/shm
svcdir                2.0M  368K  1.7M  18% /var/lib/init.d
 
$ di -d h
Filesystem         Mount               Size     Used    Avail %used fs Type
/dev/mapper/Gentoo /                1024.0M   429.1M   594.9M  42%  reiserfs
/dev/hda1          /boot              95.9M    51.2M    44.7M  53%  reiserfs
udev               /dev              505.6M   280.0k   505.4M   0%  tmpfs
/dev/mapper/Gentoo /home              23.0G    20.7G     2.3G  90%  reiserfs
/dev/mapper/Gentoo /opt              700.0M   567.1M   132.9M  81%  reiserfs
tmpfs              /tmp              150.0M    48.0k   150.0M   0%  tmpfs
/dev/mapper/Gentoo /usr                5.2G     4.3G   928.0M  83%  reiserfs
/dev/mapper/Gentoo /usr/portage        2.7G     1.8G   982.3M  65%  reiserfs
/dev/mapper/Gentoo /var                3.0G     1.5G     1.5G  50%  reiserfs
svcdir             /var/lib/init.d     2.0M   368.0k     1.6M  18%  tmpfs

As you can see df takes up more lines, while di will just expand to use up the extra colums from my wide terminal, while keeping each mount point on a single line. For me at least df’s output is a pain on the eyes having to scan across a line, and then getting jumbled by numbers.

wordpress!

well mysql seems to be happier now that i’ve recompiled apache, php5 with different use flags. i’ve also removed thread support from some packages. I guess i must have misconfigured or mixed some incompatible use flags. or could it be something with the locale? or character code crap? perhaps the categories thingy? which seems to randomly break it also.

bah doesn’t seem to have worked.

snort + base can run just fine, and infact hammer the shit out of my cpu while doing so. so i think it may be something more with wordpress.? hmm

Read More »

quirks of compiling your own software with gentoo. mysql is being lame. so is some other stuff.

for no reason i can figure out my mysqld is crashing like a mofo. it will be working ok, then boom dead. it seems to work a lil longer if i run it under strace. i’ve even tried recompiling everything from php5, mysql back down to the tool chain. still no love. it’s a real pain in the ass trying to post stuff when the DB is down. i wish i knew what was going on with it. it was working great when i was gone this week. i come home, and it hates me. hrmmf.
strace from mysqld.

clone(child_stack=0xb5add4e4, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0xb5addbf8, {entry_number:6, base_addr:0xb5addbb0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}, child_tidptr=0xb5addbf8) = 18606
select(5, [3 4], NULL, NULL, NULL)      = 1 (in [4])
fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
accept(4, {sa_family=AF_FILE, path="??@???zV"}, [2]) = 56
fcntl64(4, F_SETFL, O_RDWR)             = 0
getsockname(56, {sa_family=AF_FILE, path="/var/run/mysql"}, [30]) = 0
fcntl64(56, F_SETFL, O_RDONLY)          = 0
fcntl64(56, F_GETFL)                    = 0x2 (flags O_RDWR)
fcntl64(56, F_SETFL, O_RDWR|O_NONBLOCK) = 0
setsockopt(56, SOL_IP, IP_TOS, [8], 4)  = -1 EOPNOTSUPP (Operation not supported)
time(NULL)                              = 1150601404
mmap2(NULL, 200704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb5a7c000
mprotect(0xb5a7c000, 4096, PROT_NONE)   = 0
clone(child_stack=0xb5aac4e4, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0xb5aacbf8, {entry_number:6, base_addr:0xb5aacbb0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}, child_tidptr=0xb5aacbf8) = 18618
select(5, [3 4], NULL, NULL, NULL)      = ? ERESTARTNOHAND (To be restarted)
+++ killed by SIGSEGV +++

Also as of lately programs like my gnome-terminal which I was just using are loosing their connection to the X display. *sigh*

184278

ok so im bored, and im doing a few speed tests on my cox cable internet.

the gentoo mirror i use, is blazing fast. :)

$ emerge nvidia-kernel
Calculating dependencies … done!
>>> Emerging (1 of 1) media-video/nvidia-kernel-1.0.8756 to /
>>> Downloading http://gentoo.llarian.net/distfiles/NVIDIA-Linux-x86-1.0-8756-pkg1.run
–18:35:36– http://gentoo.llarian.net/distfiles/NVIDIA-Linux-x86-1.0-8756-pkg1.run
=> `/usr/portage/distfiles/NVIDIA-Linux-x86-1.0-8756-pkg1.run’
Resolving portageproxy… 192.168.48.42
Connecting to portageproxy|192.168.48.42|:8080… connected.
Proxy request sent, awaiting response… 200 OK
Length: 12,961,804 (12M) [text/plain]

100%[====================================================>] 12,961,804 614.60K/s ETA 00:00

18:35:55 (703.25 KB/s) - `/usr/portage/distfiles/NVIDIA-Linux-x86-1.0-8756-pkg1.run’ saved [12961804/12961804]

the speakeasy test has a nice flash 7 interface which interface, but it doesnt seem to be performing well, atleast from their networks.

from LAX.
Download Speed: 2323 kbps (290.4 KB/sec transfer rate)
Upload Speed: 442 kbps (55.3 KB/sec transfer rate)

from DFW
Download Speed: 3958 kbps (494.8 KB/sec transfer rate)
Upload Speed: 413 kbps (51.6 KB/sec transfer rate)

here’s some using a cheapie firefox extension which is way off too.
Your current download speed is:
4.39 Mbps
which means you can download at 561.5 KB/sec from our servers.
Your current upload speed is:
260.00kbps
which means you can upload at 32.5 KB/sec to our servers.

it felt like the speak easy test was a lil slow so i went waited a few minutes and tried again.

from LAX it got a lil bit better speeds.
Download Speed: 2938 kbps (367.3 KB/sec transfer rate)
Upload Speed: 483 kbps (60.4 KB/sec transfer rate)

from DFW it’s definately faster.
Download Speed: 7056 kbps (882 KB/sec transfer rate)
Upload Speed: 492 kbps (61.5 KB/sec transfer rate)

156604

Mosix + Gentoo = BORGentoo
(pronounced, BORG-in-too)

Assimilates all hardware for the collective purposes of the cluster. Resistance is futile.

BORgrid = dirgROB
BORGentoo = ootneGROB

yea i’m bored so what.

Bad Behavior has blocked 1027 access attempts in the last 7 days.