Tuesday, May 31, 2005

Nautilus Compilation Error

On my machine at work I have been trying to 'emerge gnome' for quite a while. I repeatedly received warnings stating that a libtool library was missing or had been moved. Eventually the emerge would error and fail.

After many attempts to find a solution to this problem, I finally found something saying it is most likely a problem with the configure script. Not sure how to change that I didn't bother. But rather thought of a way to have it re-create it.

I then ran 'emerge depclean'. This removed all the old packages that weren't being used. I then ran 'emerge gnome' and it was able to compile nautilus without any problem.

Sunday, May 29, 2005

Scanning w/ HP PSC 1210v

I have been trying to setup scanning for quite a while now. I finally found this:



[2005-03-16]
Just got this printer working on Gentoo Linux using the HPLIP 0.8.8
driver at http://hpinkjet.sourceforge.net/

The HPLIP-0.8.8 driver enables scanning AND printing at the same time,
using just this driver source alone.

It worked great in KDE 3.3.2 with Kooka 0.44 as the scanner frontend.

Be sure to read the DJ3320 (pertains to PSC 1210) driver notes on the
site above. That will fix the problem with black ink looking faded.
It also mentions some things about pen alignment and settings for
Ghostscript.

(Search the Gentoo Forums for 'hplip' to get the ebuild.)


which says it is easily done without hpoj, but using hplip. There are currently no gentoo ebuilds in the portage tree yet. You can download them below though. This is the page where you can download the ebuilds until they have added them to the portage tree.

Using custom ebuilds with Gentoo

Found a web page which tells you how to create your own ebuilds and also how to emerge them. Great documentation.

Tuesday, May 24, 2005

Gentoo Linux Documentation -- Portage Features -- Distributed Compiling

Wow, and just when I thought that Gentoo couldn't get any better. You can have other computers help compile your applications for you so it doesn't take as long. Check out Gentoo Linux Documentation -- Portage Features for more information.

Graphical Links

I found out today that you can display graphics with links text browser. Not sure if this will work on a console with frame buffer support. Something to try out later. but to run it:


links2 -mode 1024x768x32

Monday, May 23, 2005

Introduction to UNIX -- assignment 2

On this page I found out that to have a .bashrc file automatically sourced you need to source it in your .bash_profile file provided that bash is your default shell.

Saturday, May 21, 2005

Apache and PHP

These are the lines you need in your apache2.conf (aka httpd.conf in non-gentoo distros):

# And for PHP 4.x, use:
#
AddType application/x-httpd-php .php
AddType application/x-httpd-phps-source .phps


This will allow apache and php to play together.

Building a Gentoo Lamp

I found this HOWTO Apache2 with PHP MySQL - Gentoo Linux Wiki website in trying to setup PHP, MySQL and Apache to work together. Should be very useful.

Friday, May 20, 2005

RT Problem Tracking

This is the main page for RT which is a tracking system I am installing on my computer. Here are the directions incase I ever forget them:


You now need to edit your local config files,
which will be located in /var/www/localhost/rt-config/RT_Config.pm and
RT_SiteConfig.pm

BE SURE TO READ /usr/share/doc/rt-3.2.1/README.gz , especially if
you'd prefer to use an alias, or if you want to setup RT's e-mail
gateway

RT documentation can be found at
http://www.bestpractical.com/rt/docs.html
If you need more help, consider searching the mailing list
(Google site:lists.fs ck.com )

***********************************************************
1. If this is a new install, you now need to initialize RT's database.

For MySQL:
rt-setup-database --action init --dba root --prompt-for-dba-password


For this to work, PostgreSQL needs to listen on TCP 5432:
In your postgresql.conf, set tcpip_socket = true, port = 5432

***********************************************************
2. Read the README to configure your webserver for RT.
For the impatient: put this in
/var/www/localhost/htdocs/rt/.htaccess (although you really
should put it in your Apache configs)

AddDefaultCharset UTF-8

PerlModule Apache::DBI
PerlRequire /usr/bin/webmux.pl

SetHandler perl-script
PerlHandler RT::Mason
PerlSetEnv PERL5LIB /usr/lib

***********************************************************
3. Restart your webserver
(e.g., for Apache: /etc/init.d/apache restart )

***********************************************************
4. Note that the default login is 'root', and the password
is 'password'. It is a Good Idea(TM) to change the defaults
to something more secure.

Handling Masked Packages

I found this page at Gentoo Linux Wiki for dealing with masked packages that you want to install. It works nicely and it seems to be the best way.

Monday, May 16, 2005

Buttons! Thunderbird Extention

I found this extension when I was looking for a way to archive mail in thunderbird. It provides such capability.

Sunday, May 15, 2005

K3B DVD Writing Problems

I repeatedly got this error when trying to burn dvd's with k3b:

:-( unable to WRITE@LBA=0h: Input/output error
:-( write failed: Input/output error

It seemed to be a problem with growisofs. I then found this page. It details that you should turn off scsi emulation in your kernel. I did so.

Tuesday, May 10, 2005

Writing udev rules

This page is amazing. I used this to create a udev rule for my mplayer. So far my custom udev rules are as follows:

#Palm M125
BUS="usb", SYSFS{serial}="PalmSN12345678", NAME="pilot",
SYMLINK="usb/pilot"

#Rave MP3 Player
BUS="usb", KERNEL="sd?1", SYSFS{serial}="0002F5CB09294C87",
NAME="mp3", SYMLINK="usb/mp3"


Writing udev rules: "Example: Writing a rule for my USB-Storage digital camera
Quick Intro: My camera identifies itself as an external SCSI hard disk (it uses the usb-storage driver which is also used by devices such as USB hard disks and flash-card readers). I can then mount the partition on that disk and copy images over. Not all cameras work like this - many require external software (e.g. gphoto2) to be able to access photos.

This one is a bit tricky. Several nodes are created by default when my camera is connected : /dev/sda and /dev/sda1, and possibly even /dev/sg1. This is an example where specifity is important - if your rule is not specific enough, it could match any of the above 3 nodes.

sda1 is the node that I would like as my /dev/camera, as that is what gets mounted. udevinfo did not point out any useful differences between sda, sda1, and sg1. I decided that a reliable way to differentiate between these 3 nodes would be to look at the KERNEL name.

A key such as KERNEL='sd?1' would match KERNEL names such as 'sda1', 'sdb1', 'sdc1', and equally importantly, it will not match KERNEL names such as sda, sdb, or sg1. The purpose of this key is to ignore the /dev/sda and /dev/sg1 nodes. The device is a digital camera - I would not dream of fdisking it or anything like that, so these 2 nodes are pretty useless to me. The key attempts to capture the /dev/sda1 node, which is mountable and therefore useful!"

Palm M125

This page was great for helping me setup udev to work with jpilot. I created the permissions files exactly as it is seen there and it worked. Permissions to the device were the problem. I still must push the device hotsync button before pushing the sync button on jpilot. I can live with that though.

Palm M125

I found this page which details how to get the palm to work. It seems I simply forgot to compile it in the new kernel. Editing the kernel config and recompiling.

Wednesday, May 04, 2005

PCTV Card

So I finally have the PCTV card working and nicely. After reading the output of tvtime I got the picture even better:

TERMINAL
----------
Running tvtime 0.9.12.
rtctimer: Cannot set periodic interval: Permission denied

Failed to get 1024 Hz resolution from your RTC device. High
resolution access is necessary for video to be smooth. Please
run tvtime as root, set tvtime as SUID root, or change the
maximum RTC resolution allowed for user processes by running this
command as root:
sysctl -w dev.rtc.max-user-freq=1024
See our support page at http://tvtime.net/ for more information.

Reading configuration from /etc/tvtime/tvtime.xml
Reading configuration from /home/bobby/.tvtime/tvtime.xml
mixer: Can't open device /dev/mixer, mixer volume and mute unavailable.
Thank you for using tvtime.
bobby@stocks bobby $ sudo sysctl -w dev.rtc.max-user-freq=1024
sudo: sysctl: command not found
bobby@stocks bobby $ sudo /sbin/sysctl -w dev.rtc.max-user-freq=1024
dev.rtc.max-user-freq = 1024
-----------

tvtime

After emerging tvtime I tried to start it, but I had to enable real time in the kernel. After doing so it worked fine. Had to enable both bttv video card and sound modules in the kernel.

Promise 20276

After reading dmesg:

PDC20276: IDE controller at PCI slot 0000:00:0f.0
ACPI: PCI interrupt 0000:00:0f.0[A] -> GSI 10 (level, low) -> IRQ 10
PDC20276: chipset revision 1
PDC20276: 100% native mode on irq 10
PDC20276: neither IDE port enabled (BIOS)

I decided this feature may be necessary so I enabled it in the kernel:

<*> PROMISE PDC202{68|69|70|71|75|76|77} support
[*] Enable controller even if disabled by BIOS <-- (this is what im talking about)

It worked. dmesg now reads:

PDC20276: chipset revision 1
PDC20276: 100% native mode on irq 10
ide2: BM-DMA at 0xc400-0xc407, BIOS settings: hde:pio, hdf:pio
ide3: BM-DMA at 0xc408-0xc40f, BIOS settings: hdg:pio, hdh:pio
Probing IDE interface ide2...
hde: WDC WD2000JB-00DUA3, ATA DISK drive
ide2 at 0xb400-0xb407,0xb802 on irq 10
Probing IDE interface ide3...
hdg: DVDRW DRW-3S163, ATAPI CD/DVD-ROM drive
hdh: IOMEGA ZIP 250 ATAPI, ATAPI FLOPPY drive
ide3 at 0xbc00-0xbc07,0xc002 on irq 10

Mounted and works fine!!!! It feels soooo good to solve stuff.

Format/Reinstall/Kernel Recompile/Promise

Well, it happened. I was doing world upgrades which were unneeded and I accidentally upgraded the compiler. Some programs then wouldn't compile. Reinstalled old compiler. Nothing would compile. Nautilus crashed. Started getting missing library errors for libstdc++.so.5

....Formatted my / partition.

In recompiling my kernel I couldn't figure out how to get my other hard drives which are on the promise 20276 component to mount. When i tried to mount then I was getting invalid block device.

Finally realized I didn't have the promise drivers loaded in the kernel...installed the promise drivers and still no luck....continuing....