make - doesn't find header file but file is available

2009-02-17 Thread Benjamin Schmidt

Hello community

Maybe this is one of the beginner questions answered more than a 
thousand times without becoming visible in google search ;)


Some projects to compile with gcc/make come with the script ./configure. 
They are easy for me to build. But what I have now is a project without 
it. And although I have the specific dev-package installed (in this case 
its libdrm-dev an some others) it doesn't find the header files. The 
quick-and-dirty solution is to copy these h-files into the project-space.


So the question is: How can I configure without ./configure in the 
general way?



Best regards,
Benjamin Schmidt


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org




Re: Browsing offline filesystems

2009-02-10 Thread Benjamin Schmidt

Nuno Magalhães wrote:

Thank you, Nuno. However, the other filesystems have tens of gigabytes
that I do not want to copy. I only want to know which files are there,
not to have the actual files themselves.


If you want just the names, not the content... then it would probably
be a very weird combination of ls, grep and cut, unless there's some
proggie that'll do that for you (in perl maybe?). Plus mkdir to
preserve the hierarchy, unless absolute paths suffice.

Nuno Magalhães




$ find specific directoryfilelist.txt

like

$ find ~/hugeDirectory/filelist.txt


generates you a textfile with a list of all files, directories (and 
special files). Should be enough. To search, use less or grep. vi could 
block your system for some minutes.


I am not aware of some caching filesystem, which only caches the 
directory structure, without the files content.



Best regards,
Benjamin Schmidt




--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: HELP - Problem with Debian (password of root)

2008-12-30 Thread Benjamin Schmidt

Hello Manuel

At the first start of a fresh debian installation you are asked to enter 
the root password (if I remember correctly). It would be very strange if 
you were never prompted for that.


Why don't you just install with so called Debian of October. In this 
world it's not necessary to reinstall your whole system regularly. Just 
update your software with apt-get update and apt-get upgrade.


Best regards,
Benjamin Schmidt


Manuel Gómez wrote:
Hi, i would like to install Debian (19 December) but i have a problem: 
The root password doesn't works, i have tried to install Debian two 
times but it happens the same.


My installation is this:
35 gb for /,
15 gb for /usr with /nodev,
5 gb for /tmp with /nodev and /nosuid,
6 gb for /var with /nodev.

The last version of Debian was works properly with this configuration 
(Debian of October), but the last version (december) not. Why this 
happen? What could i do? I don't want the password, but install Debian 
properly.


Thank you very much, I appreciate your help.






--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Setting Video Card

2008-05-20 Thread Benjamin Schmidt

Paul Cartwright wrote:

On Fri May 16 2008, Benjamin Schmidt wrote:

Before spending many hours trying to get a usable Xserver-configuration
(or other configs), I always used an live-cd like Sidux, Knoppix,
Kanotix or maybe Ubuntu (all Debian based). The distribution running the
best way, you can simply install on your harddisk or export the live-cd
X-configuration file.


I noticed when I ran the new Knoppix CD 5.3.1, that it had all the cool 
effects, that i DON'T have with my Ubuntu Hardy install.. if you are running 
a LIVE CD, how do you save teh xorg.conf ( or X-configuration) file???
I'm talking about my DELL XPS laptop, I think it has Intel graphics card.. my 
desktop has NVIDIA..




that it had all the cool effects
Don't what you exactly mean with cool effects. Is it the KDE desktop, 
the login-window or some 3d animations?


The simplest way of copying /etc/X11/xorg.conf is to copy it on a memory 
stick (when plugged in, you get automatically a window if it's content). 
This way copy is very easy. Otherwise you mount your local harddisk 
(there is maybe a symbol on the desktop) and copy it directly. If that 
doesn't work cause of permission restriction, use the root terminal.


Best regards,
Benjamin Schmidt


:: You get a quicker answer, when posting on the list. Additionally 
others can help or benefit.




smime.p7s
Description: S/MIME Cryptographic Signature


Re: Setting Video Card

2008-05-16 Thread Benjamin Schmidt

Stephen Grant Brown wrote:

Dear Madams  Sirs

Thanks Benjamin Schmidt for your advice.

I have been spent about ten hours looking through documentation and
trying things but to no avail.

hwinfo told me that I had a Cirrus Lorgic GD5446 card but
xdebconfigurator did not use it. Instead it used a SiS card and X failed
to load.

Stephen Grant Brown




Before spending many hours trying to get a usable Xserver-configuration 
(or other configs), I always used an live-cd like Sidux, Knoppix, 
Kanotix or maybe Ubuntu (all Debian based). The distribution running the 
best way, you can simply install on your harddisk or export the live-cd 
X-configuration file.


Best regards,
Benjamin Schmidt


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Setting Video Card

2008-05-13 Thread Benjamin Schmidt

Stephen Grant Brown wrote:

Hi All,

How do I tell the xserver what video card to use?

Thanks in advance for your help.

Stephen Grant Brown




Assumed you have the x-server xorg in use...

A simple and quick configuration menu you get when you call the command:

sudo dpkg-reconfigure xserver-xorg


You find the main configuration file of xorg here:

/etc/X11/xorg.conf


Additional information:

man xorg.conf


Nearly forgot: Be sure you have installed the specific driver as a
package like xserver-xorg-video-nv for example.



Best regards,
Benjamin Schmidt


smime.p7s
Description: S/MIME Cryptographic Signature


Re: replacing pxe.linux.0

2008-05-13 Thread Benjamin Schmidt

Raj Kiran Grandhi wrote:

abelahcene wrote:

Hi,
I install  successfully debian via pxe (dhcp and al.) , from a remote 
server, but I want instead of using pxe.linux.0 , I want to use a 
full  CD1, to do the installation without using extra server. Is it 
possible ?

thanks a lot


Boot from CD1 and install? Or am I missing something?



Sounds like installing from CD is some very old guru-task and possible
no more provided ;)


On www.debian.org you have on the left navigation a point called CD ISO
images.

Get it per HTTP (for example) by searching the nearest mirror. Direct link:

http://www.debian.org/CD/http-ftp/


Best regards,
Benjamin Schmidt


smime.p7s
Description: S/MIME Cryptographic Signature


Re: ssh to Vmware linux on a MS Window machine

2008-04-07 Thread Benjamin Schmidt

Rich Healey wrote:

hce wrote:

Hi,



Can my debian box ssh to a Vmware linux on a MS Window machine? Both
debian box and the Window in the same subnet, I can ping the Window IP
address, but I cannot ping the Vmware linux IP address from my debian
box. How can I fix it?



Thank you.



Kind Regards,



Jim




Select both your primary network interface and the virtual interface
that the VM is attached to and right click - select bridge connections.

This will set up your windows machine to relay packets to the VM.


for that to work, you must set the hostmachine as an additional gateway 
to your debian box.


The faster and easier solution would be if you simply bridge the the 
VM's network adapter to the physical one. Todo that, open the VMs 
specific configuration window, goto the primary network adapter and 
select: bridge.


Best regards,
Benjamin Schmidt


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Enabling DMA with new MB (repost)

2008-04-07 Thread Benjamin Schmidt

David Baron wrote:

I am reposting since I have received no advice and have not found a solution:

After  my old far-eastern MB died, replaced with an aopen MB with a somewhat 
faster 600mhz PIII slot-1 CPU (I was running my old 500mhz PIII and 575).


Went through all the BIOS setups. A master-DMA can be enabled but the DMA on 
the IDEs seems unavailable. Have it all auto -- BIOS choices for the IDEs 
are auto, p0, p1, p2 , p3, p4 and udma auto or disabled. Hdparm will not 
allow -d1 either.


Other info:
~$ dmesg | grep DMA6b (rev 12) ID
  DMA 0 - 4096
  DMA zone: 56 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 4040 pages, LIFO batch:0
Activating ISA DMA hang workarounds.
VP_IDE: VIA vt82c596b (rev 12) IDE UDMA66 controller on pci:00:07.1

~$ dmesg | grep IDE
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
Probing IDE interface ide0...
Probing IDE interface ide1...
VP_IDE: IDE controller at PCI slot :00:07.1
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
VP_IDE: VIA vt82c596b (rev 12) IDE UDMA66 controller on pci:00:07.1
VP_IDE: port 0x01f0 already claimed by ide0
VP_IDE: port 0x0170 already claimed by ide1
VP_IDE: neither IDE port enabled (BIOS)

(this last item could be it? Saw nothing in BIOS setup. The MB has VIA chips, 
apparently)


Any ideas and help greatly appreciated. Google was not so informative.
-

Also, while I am stuck in PIO, where to I place that message idebus=66 to 
get the 66-mhz speed I assume (??) is available?





Did you try to boot with * dma (when you use lilo press TAB before the 
boot sequence starts and add dma. Press enter.


Maybe you should try to reinstall Debian. Can read that from your text.

Enabling DMA with the command hdparm doesn't work on devices like 
/dev/sda* . If the mounted harddisks all are like /dev/sda* not 
/dev/hda* the dma somehow works by itself.


You could test the harddisk performance with hdparm. Boot with the 
additional kernel parameter dma and nodma. Compare the results.


Best regards,
Benjamin Schmidt


smime.p7s
Description: S/MIME Cryptographic Signature


Re: From linux software raid to none software raid?

2008-01-15 Thread Benjamin Schmidt

Paul Csanyi wrote:

Hello!

I have installed Debian Etch with software raid 1.

I am using for this two sata drives.

Is it possyble to turn this system to non software raid?

Doing so I wish to get the first sata drive to use with
Debian Etch as non software raid, and to use second
sata drive as a backup, and data drive.

Any advice will be appreciated!



Hey Paul

I would do it this way:

1. Place your second harddisk to another bus (or plug it on over an 
usb-sata adapter) OR Remove in ~ /etc/mdadm the second disk.
2. Restart and boot from a newer kanotix live-cd (maybe others work 
also). With it, you can easily mount a raid partition.
3. Maybe repartition and format your first drive and copy the new files 
on it.

4. Write MBR and other things with lilo/grub (this is the tricky part).
5. Boot

Maybe someone else has a better solution. But that's the way I do such 
things. Fixes are welcome ;)


Best regards,
Benjamin Schmidt


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Automating Debian installations

2008-01-04 Thread Benjamin Schmidt
Bjorn Meyer wrote:
 I have been digging for a few days now for some clarification on
 automating the installation of debian.
 
 I have created a local mirror that I would like to use via nfs, but I am
 not sure how to configure either the preseed file or if I have to add a
 command to the kernel boot command. I am able to get the machine to boot
 the installer and it seems to find the preseed config file in on the
 tftp server, but it doesn't appear that it will mount the nfs location,
 not to mention how to configure the preseed file to point to this location.
 
 Please let me know if more information will help.
 
 Any help on this would be greatly appreciated.
 
 Thank you
 Bjorn
 

Hey Bjorn

Maybe you looking for FAI (http://www.informatik.uni-koeln.de/fai/).

Best regards,
Benjamin Schmidt


smime.p7s
Description: S/MIME Cryptographic Signature


Re: ac adapter serious problem

2007-12-14 Thread Benjamin Schmidt
roberto wrote:
 hello
 unfortunately, i encountered a bad problem in my laptop (Dell Latitude
 D600) very frequent on these models:
 sometimes, the BIOS does not recognize the ac adapter and this
 seriously prevents the system performance: the CPU works at 600MHz
 (instead of 2000MHz); if the battery is not at 100% then the ac
 adapter cannot recharge it and so on...
 
 now, since the current can flow inside the pc i'd like to tell Debian
 to force the CPU working at full speed, without concerns about the
 adapter
 
 i post here this output since it may be helpful:
 
 ~$ cat /proc/acpi/processor/CPU0/power
 active state:C2
 default state:   C1
 bus master activity: 
 states:
 C1:  promotion[C2] demotion[--] latency[000] 
 usage[00198990]
*C2:  promotion[C3] demotion[C1] latency[050] 
 usage[01315600]
 C3:  promotion[--] demotion[C2] latency[050] 
 usage[]
 
 
 thank you very much
 --
 roberto
 OS: GNU/Linux, Debian
 
 

Hey Roberto

Best would be doing a bios upgrade, if a newer version is available.

 ~$ cat /proc/acpi/processor/CPU0/power
 active state:C2
 ...

to change this state (this is probably your question), do this:

$ su
# echo 1  /proc/acpi/processor/CPU0/power

The echo-command with the  does not work with sudo (or I do not know
better), so you actually have to be root.

Please note that /proc/acpi/processor/CPU1/throttling would also be
interesting for you.

But still a bios upgrade would be the better solution.

Best regards,
Benjamin Schmidt


smime.p7s
Description: S/MIME Cryptographic Signature


Re: ac adapter serious problem

2007-12-14 Thread Benjamin Schmidt
roberto wrote:
 hello
 unfortunately, i encountered a bad problem in my laptop (Dell Latitude
 D600) very frequent on these models:
 sometimes, the BIOS does not recognize the ac adapter and this
 seriously prevents the system performance: the CPU works at 600MHz
 (instead of 2000MHz); if the battery is not at 100% then the ac
 adapter cannot recharge it and so on...
 
 now, since the current can flow inside the pc i'd like to tell Debian
 to force the CPU working at full speed, without concerns about the
 adapter
 
 i post here this output since it may be helpful:
 
 ~$ cat /proc/acpi/processor/CPU0/power
 active state:C2
 default state:   C1
 bus master activity: 
 states:
 C1:  promotion[C2] demotion[--] latency[000] 
 usage[00198990]
*C2:  promotion[C3] demotion[C1] latency[050] 
 usage[01315600]
 C3:  promotion[--] demotion[C2] latency[050] 
 usage[]
 
 
 thank you very much
 --
 roberto
 OS: GNU/Linux, Debian
 
 

Hey Roberto

Best would be doing a bios upgrade, if a newer version is available.

 ~$ cat /proc/acpi/processor/CPU0/power
 active state:C2
 ...

to change this state (this is probably your question), do this:

$ su
# echo 1  /proc/acpi/processor/CPU0/power

The echo-command with the  does not work with sudo (or I do not know
better), so you actually have to be root.

Please note that /proc/acpi/processor/CPU1/throttling would also be
interesting for you.

But still a bios upgrade would be the better solution.

Best regards,
Benjamin Schmidt


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Network (LAN) 'lost'

2007-12-11 Thread Benjamin Schmidt
If you have udev installed and it recognizes a ethernet adapter with a
unknown mac address, it will assign a new eth*-reference. So maybe you
used a mac changer or some updates deletes a udev specific file. I don't
know.

The configuration file you need, is:
/etc/udev/rules.d/z25_persistent-net.rules

delete the entry with eth0 and rename the other entry from eth2 to
eth0. Ok, now reboot (or only restart udev, don't know) and you will
have eth0 again.

Best regards,
Benjamin Schmidt


Uwe Dippel wrote:
 This morning, at boot, suddenly no LAN. The boot screen already had
 some SIOCSIF errors. Solaris booted properly, with LAN.
 
 In a nutshell, eth0 suddenly migrated to eth2, as one and only eth device.
 
 Details:
 
 This is what I get from dmesg:
 ...
 ACPI: Processor [CPU1] (supports 16 throttling states)
 8139cp: 10/100 PCI Ethernet driver v1.2 (Mar 22, 2004)
 8139cp :00:09.0: This (id 10ec:8139 rev 10) is not an 8139C+ compatible 
 chip
 8139cp :00:09.0: Try the 8139too driver instead.
 8139too Fast Ethernet driver 0.9.27
 ACPI: PCI Interrupt :00:09.0[A] - GSI 18 (level, low) - IRQ 169
 eth0: RealTek RTL8139 at 0xd800, 00:02:44:90:97:27, IRQ 169
 eth0:  Identified 8139 chip type 'RTL-8100B/8139D'
 Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
 ...
 
 And there is no other eth:
 $ dmesg | grep eth
 eth0: RealTek RTL8139 at 0xd800, 00:02:44:90:97:27, IRQ 169
 eth0:  Identified 8139 chip type 'RTL-8100B/8139D'
 $
 
 ifconfig says
 # ifconfig
 loLink encap:Local Loopback
  inet addr:127.0.0.1  Mask:255.0.0.0
  inet6 addr: ::1/128 Scope:Host
  UP LOOPBACK RUNNING  MTU:16436  Metric:1
  RX packets:12 errors:0 dropped:0 overruns:0 frame:0
  TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:600 (600.0 b)  TX bytes:600 (600.0 b)
 #
 
 ifconfig does not 'up' eth0:
 # ifconfig eth0 up
 eth0: ERROR while getting interface flags: No such device
 #
 
 But it is in there:
 # lspci -v
 ...
 00:09.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
 RTL-8139/8139C/8139C+ (rev 10)
Subsystem: Realtek Semiconductor Co., Ltd. RT8139
Flags: bus master, medium devsel, latency 64, IRQ 169
I/O ports at d800 [size=256]
Memory at febff400 (32-bit, non-prefetchable) [size=256]
Capabilities: [50] Power Management version 2
 
 Only man ifconfig gave me an idea:
 # ifconfig -a
 eth2  Link encap:Ethernet  HWaddr 00:02:44:90:97:27
  BROADCAST MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
  Interrupt:169 Base address:0xd800
 
 loLink encap:Local Loopback
  inet addr:127.0.0.1  Mask:255.0.0.0
  inet6 addr: ::1/128 Scope:Host
  UP LOOPBACK RUNNING  MTU:16436  Metric:1
  RX packets:12 errors:0 dropped:0 overruns:0 frame:0
  TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:600 (600.0 b)  TX bytes:600 (600.0 b)
 
 sit0  Link encap:IPv6-in-IPv4
  NOARP  MTU:1480  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
 #
 
 And it does work !:
 # dhclient eth2
 Internet Software Consortium DHCP Client 2.0pl5
 Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
 All rights reserved.
 
 Please contribute if you find this software useful.
 For info, please visit http://www.isc.org/dhcp-contrib.html
 
 sit0: unknown hardware address type 776
 sit0: unknown hardware address type 776
 Listening on LPF/eth2/00:02:44:90:97:27
 Sending on   LPF/eth2/00:02:44:90:97:27
 Sending on   Socket/fallback/fallback-net
 DHCPREQUEST on eth2 to 255.255.255.255 port 67
 DHCPACK from 192.168.116.200
 bound to 192.168.116.101 -- renewal in 432000 seconds.
 
 
 Now I ask myself WHY !?
 How can a properly working system suddenly end up with a strange eth2
 instead of eth0 ?
 How does an eth0 recognised in dmesg at boot migrate to eth2; on its own ?
 Is this a bug ?
 
 
 Uwe
 
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: backup script partly fails when in cron.weekly

2007-12-10 Thread Benjamin Schmidt
Ok, first: Why it doesn't work I simply don't know.

You should test if this is a problem with find, or the egrep command,
cpio or cat by making verbose output into a own log file.

But maybe you should not use this (in my opinion) unusual command find
/ -print  Instead use tar, like:

tar -zcvf /media/mirror/`date +%F`.tar.gz -C / --exclude=/media/*
--exclude=/proc/* --exclude=/sys/* --exclude=/mnt/*
(please test this first before going productive)

or use rsync. You will find a lot of examples in our great? world.

Best regards,
Benjamin Schmidt


Haines Brown wrote:
 I asked this question some time ago. I've a script in /etc/cron.weekly
 named backup (rwxr-xr-x root/root) that looks like this:
 
 #!/bin/sh
 mount /media/mirror
 dirName=`date +%F`
 mkdir /media/mirror/$dirName
 find / -print | egrep -v ^/media|^/proc|^/sys|^/mnt | cpio -pdmuv \
 /media/mirror/$dirName 21 | cat -vt 
 umount /media/mirror
 exit 0
 
 I regularly get only partial backups when run by cron, but full
 backups if run from command line by root.
 
 For example, in / I have two symlinks. Both are rwxrwxrwx root/root,
 but only one gets backed up.
 
 Another example, /home gets backed up, but /etc does not, even though
 both are rwxr-xr-x root/root,
 
 Yet another example: In / I have two plain text files, both are
 rw-r--r-- root/root, but only one gets backed up.
 
 Plenty of room on the backup device (external UPS drive). My syslog
 reports the backup started. No other log entries of interest:
 
 Dec  9 04:00:01 teufel /USR/SBIN/CRON[23041]: 
 (brownh) CMD (/home/brownh/scripts/backup)
 Dec  9 04:00:01 teufel /USR/SBIN/CRON[23043]: (brownh) CMD (fetchmail) 
 Dec  9 04:00:01 teufel kernel: 
 kjournald starting.  Commit interval 5 seconds
 Dec  9 04:00:01 teufel kernel: EXT3-fs warning: maximal mount count 
 reached, running e2fsck is recommended
 Dec  9 04:00:01 teufel kernel: EXT3 FS on sdd1, internal journal
 Dec  9 04:00:01 teufel kernel: EXT3-fs: mounted filesystem with
 ordered data mode. 
 Dec  9 04:00:01 teufel identd[23056]: started
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: No sound

2007-12-10 Thread Benjamin Schmidt
Use ALSA (OSS is old).

Check if required packages are installed:

$ dpkg -l | grep alsa
alsa-base
alsa-utils
...

execute:
$ sudo alsaconf

set volume with:
$ alsamixer


Alou Dialy wrote:
 What do I need to make the sound work. I just
 installed etch but there is no noise from /dev/dsp.
 
 
   
 
 Be a better friend, newshound, and 
 know-it-all with Yahoo! Mobile.  Try it now.  
 http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 
 
 
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]