Debian Users common Problems with Solutions
Question :- I have an HP PSC 2110 working locally with foomatic and CUPS back end.When I try to print remotely the CUPS web interface returns with:
"Print file was not accepted (client-error-bad-request)!"
I find these entries in /var/log/cups/error_log:
[01/Jul/2005:00:13:09 -0400] print_job: No file!?!
[01/Jul/2005:00:13:09 -0400] send_ipp_error(0x403b7008, 400)
[01/Jul/2005:00:13:09 -0400] Sending error: client-error-bad-request
Ans:- check remote system these packages: libijs-0.35, foomatic-db-hpijs,and hpijs are installed
Question :- How do I tell gcc to use the debug version of glibc ?
Ans :- export LD_LIBRARY_PATH=/usr/lib/debug
Question :- I have Debian Sid installed on my laptop. Everything works fine except the touchpad. when I tap it once it registers a double-click. In the XFree86 config I have the mouse set to /dev/psaux and the PS/2 protocol.
Where would be the config to look at for this, or how could I fix this?
using a 2.6.x kernel. use the modconf program to remove the psmouse module, then reload it with the following
Try commenting out either ``InputDevice "Generic Mouse"'' or ``InputDevice "Configured Mouse"'' in /etc/X11/XF86Config-4
Question :- Using pppoeconf to configure my DSL pppoe connection and asking it to connect at boot-up, it was creating two connections: PPP0 (the right one) and PPP1 (an extra, un-wanted, heretical and hethenous one). In lieu of giving # ifconfig ppp1 down every time and having to wait the extra seconds at boot-up
Ans :- After deleting these two files ppp-on-boot.dsl and the link file ppp-on-boot and configuring the /etc/network/interfaces
Question :- I just installed bugzilla on my computer for developing purposes. I'm having problems on starting it:
What is the address I have to point to with my browser in order to start?
/var/www/bugzilla/index.html but that file prompts a message like:
I think you are looking for <a href="/cgi-bin/bugzilla/index.cgi">
Now, /cgi-bin/bugzilla/index.cgi does not exist in that directory.It is located in /usr/lib/cgi-bin/bugzilla/index.cgi, instead. In any case, that is not a file I can load with my browser, is it?
How should I start my Bugzilla in order to start administering it?
Ans :- You need to get your apache configured to use those cgi-scripts.Normally after installing you can find bugzilla at http://localhost/cgi-bin/bugzilla/index.cgi
Question :- when this started because I'm very rarely print from both mozilla.I can't print to printer attached on a windows box on my network and can't print to localy installed deskjet printer with moz-browser and thunderbird.OpenOffice and several apps work fine.I'm using CUPS and Xprint is also installed.This also happen to some friends of mine ( with same packages installed ).If there's already a solution, please point me to the right direction.
Ans :- Uninstall everything related to XPrint and make sure you have the cupsys-bsd package installed.
Question :- i've got an error (maybe a warning) during the boot up process, as written in /var/log/boot:
Cleaning /tmpfind: warning: you have specified the -maxdepth option after a non-option argument -perm, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it). Please specify options before other arguments boo
find: warning: you have specified the -depth option after a non-option argument !, but options are not positional (-depth affectstests specified before it as well as those specified after it). Please specify options before other arguments.What might be the cause?
Ans :- It's /etc/init.d/bootclean.sh from the initscripts package. There are already some bugreports about this.
If you don't want to wait until it gets fixed in a new version of the package you could edit /etc/init.d/bootclean.sh yourself and change the order of the find arguments.
Question :- I use route comand in debian 3.1 to routing my network , but sometime I head about iproute2 and would like to know more about it . Please give me some information?
Ans :- check this website http://lartc.org/
Question :- SSH and X11 Forwrding
I have used SSH and X Forwarding successfully in the past, but since moving to Sarge, it refuses to co-operate. Either I can't read/understand the documentation or there's something new.
>From work, I can ssh or scp to home using a host.domain address. At home I've added 3 lines to my .ssh/config file:
where the host address is another host.domain address that I registered with dyndns.org (great service). My user name and hostname at "my_work" are not the same as at home. Both IP addresses are correctly deduced by DNS from the host.domain's that I registered. Both hosts are behind firewalls and have private addresses (192.168.x.x).
When I connect from work, the DISPLAY variable is NOT set. I've tried the command line option as well as the "config" file above.
you have to set "X11Forwarding yes" in /etc/ssh/sshd_config? (Make sure to run "/etc/init.d/ssh restart" if you make changes to that file.) The "ForwardX11 yes" line in your ~/.ssh/config file will only affect _outgoing_ connections from that computer, not incoming. Plus,both "ForwardX11 yes" and -X will only work if the "X11Forwarding yes"line is set in the sshd_config file.
another thing that might be the cause of this problems is that xauth is not installed on the box you'r trying to connect to.
dpkg -l xbase-clients
and install with
apt-get install xbase-clients
Question :- About Debian patch kernel packages
I need to apply the grsecurity patch and compile a new kernel for a server. In this server, I am using a kernel image from the 2.6.8 version. Then, I downloaded both the kernel-source-2.6.8 package and the kernel-patch-grsecurity2.
But I am not able to apply the kernel patch because in the kernel-patch-grsecurity2 package there are not any diff files to kernel 2.6.8, just for other versions like 2.6.11, 2.6.10 and 2.6.7.
What do I want to do to resolve this problem?!
Ans :- download the incremental patches from kernel.org to get you from 2.6.8 to 2.6.10 (would need at least 2 and possibly more if there were sub-versions), apply those patches to your source tree and then apply the security patch... But of course the problem with that is then you have a security-patched 2.6.10 kernel not a security-patched 2.6.8 kernel
Question :- What file to add command to start at bootime
I have some script and would like to run it at boot time . I could not find how to do that in debian . In redhat I could add to /etc/rc.d . How to make it in debian ?
add it to /etc/init.d/ with links from /etc/rc[0-56S].d/
you can do it very easily with the nice command
update-rc.d <script> defaults
Then if you want it removed from the boot sequence,
update-rc.d <script> remove
Copy the /etc/init.d/skeleton file to your own name, edit it as you see fit to do whatever it is you need. Then install the symlinks to the other rc directories.
cp skeleton mystartrc
update-rc.d mystartrc defaults
To remove the script and symlinks:
update-rc.d mystartrc remove
Question :- is there parted for ntfs
I want to resize my ntfs partition, but it is not supported by the parted ( on sarge) THIS is the log:
Disk geometry for /dev/sda: 0.000-34732.421 megabytes
Disk label type: msdos
Minor Start End Type Filesystem
1 0.031 34718.598 primary ntfs
(parted) resize 1 0.031 10000
No Implementation: Support for opening ntfs file systems is not implemented yet.
Ans :- apt(-get|itude) install ntfsprogs
Question :- install jdk-1_5_0_04-linux-i586.bin fails with "too many arguments"
I am trying to install the Sun JDK 1.5.0_04 on sarge (moving on to testing) and it fails as below.
# sh jdk-1_5_0_04-linux-i586.bin .......
dirname: too many arguments
Try `dirname --help' for more information.
dirname: too few arguments
Try `dirname --help' for more information.
Anyone have a fix for this? I'd really rather avoid having to tear into thier install script if its already known how to fix it.
Ans :- Yes. Don't install directly. First, install the java-package package (and fakeroot if you don't already have it). Then run this:
$ fakeroot make-jpkg jdk-1_5_0_04-linux-i586.bin
$ dpkg -i <name_of_resulting>.deb
Then, future upgrades will include all the Debian goodness of updating the relevant symlinks. This also allows you to have simultaneously installed jdk1.5, jdk1.4 and so on, and then manage which one you actually use with update-alternatives or a suitable GUI over it.
Question :- Install Perl modules the Debian way
What is the Debian way to install Perl modules?
you want 'dh-make-perl'You can do, e.g.
dh-make-perl --build --cpan Module::Name
which will build you a deb of that module, which you can then install.Remember that there are prebuilt Perl module packages for many modules.Normally, they are called libmodulename-perl, or something like that.Do an 'apt-cache search' to check whether anything pre-exists.
The first thing to do is to see if there's a package for the module you want -- it's amazing how many CPAN modules are already Debian-packaged.
For example, I needed to install Net::Netmask recently and just did the normal thing.
$ apt-cache search net::netmask
libnet-netmask-perl - parse, manipulate and lookup IP network blocks
# apt-get update
# apt-get install libnet-netmask-perl
Question :- mounting usb devices consistently
Ans :- http://www.reactivated.net/writing_udev_rules.html follow this document
Question :- apt repository for my intranet
Ans :- Use a proxy such as apt-cacher or apt-proxy and apt-cache show apt-proxy
Question :- ipup is failing to bring up my ethernet interface with the correct ip address
Ans :- removing the package zeroconf to fix this issue
Question :- I have a script for ejecting cd from the drive. The script resides in the /usr/bin directory. But, I am
unable to make the link to the script work. The only way I can execute the script is to login as root,
navigate to the /usr/bin directory and double-clicking on it. How can i make the link on the desktop execute
Ans :- edited the sudoers file entering my username with the following command:
User_Alias FULLTIMERS = mak
FULLTIMERS ALL = NOPASSWD: ALL
After that, I created a link with sudo /usr/bin/xcd.sh command, and now the program ejects the cd without