|
|
|
|
|
|
| Author |
Message |
Owen Heisler *nix forums addict
Joined: 13 May 2006
Posts: 52
|
Posted: Tue Jul 18, 2006 2:30 pm Post subject:
Re: Shutdown my Laptop? Why should I?
|
|
|
On Tue, 2006-07-18 at 03:04 +0300, Micha Feigin wrote:
| Quote: | On Mon, 17 Jul 2006 12:57:01 -0500
Owen Heisler <owenh000@gmail.com> wrote:
I read in a Popular Science magazine that freezing a battery may help.
I had little to lose as this battery was getting very bad, so I tried
it. ...It didn't work. Now the battery will charge, but seems to reset
every ten seconds or so; it flashes full and then goes back to <10%. It
holds absolutely no charge.
It is unfortunate that lithium ion batteries cost so much. To replace
this one costs more than what I gave for the laptop.
Try looking for batteries on ebay. I got an oem replacement from china for 65$
including shipping (took about 10 days). Locally they cost about 200$. The old
one was lasting about 40 minutes this one goes for over 4 hours (i rarely go
below 50% actually). It also claims to store more juice then it's rated for.
Don't know if that value is true though.
|
Wow! And 65 isn't too bad at all. I'll have to check it out.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
| Back to top |
|
 |
David Baron *nix forums Guru Wannabe
Joined: 21 Feb 2005
Posts: 246
|
Posted: Tue Jul 18, 2006 4:00 pm Post subject:
Re: CUPS (Sid) not printing. (SOLVED?)
|
|
|
| Quote: | I went into http://localhost:631/ and "started" the printer.
I never had to do this before so how to I make this happen
automatically?
If you put
lp
in /etc/modules
and reboot, is /dev/lp0 created with the correct permissions?
My /dev is static. I am not using udev. I have set the permissions to
crw.rw.... Somehow, it had been changed to NO rw at all.
This doesn't help if the module isn't loaded. Make sure it shows up
in the lsmod output, along with parport.
If so, does CUPS then start-up and make the printer available without
manual intervention?
I had to add lp to /etc/modules sometime after a 2.6.16.x upgrade.
I will add it to /set/modules and see. I did not have this problem
with 2.6.16 kernels but then again, I do not do all that much
printing so maybe I did. Cups writes printer.conf with the default
printer (with the data switch setting the parallel line to it) as
"idle" and the second printer (not live) to "stopped". So why did I
need to manually "start" the supposedly "idle" printer?
Run
/usr/sbin/tunelp -s /dev/lp0
and see what it says. It should ideally say online/ready.
|
I have two printers and use them through a switchbox.
Either one with it power off: 127, out of paper, on-line
The (default) hp690 turned on: 95, busy, on-line
The epson lq570, 223, on-line.
The hps listed as idle, the epson as stopped. Changing this by starting or
stopping the printers from localhost:631 makes no difference.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
| Back to top |
|
 |
Roger Leigh *nix forums Guru
Joined: 28 Feb 2005
Posts: 364
|
Posted: Tue Jul 18, 2006 5:10 pm Post subject:
Re: CUPS (Sid) not printing. (SOLVED?)
|
|
|
David Baron <d_baron@012.net.il> writes:
| Quote: | I will add it to /set/modules and see. I did not have this problem
with 2.6.16 kernels but then again, I do not do all that much
printing so maybe I did. Cups writes printer.conf with the default
printer (with the data switch setting the parallel line to it) as
"idle" and the second printer (not live) to "stopped". So why did I
need to manually "start" the supposedly "idle" printer?
Run
/usr/sbin/tunelp -s /dev/lp0
and see what it says. It should ideally say online/ready.
I have two printers and use them through a switchbox.
Either one with it power off: 127, out of paper, on-line
The (default) hp690 turned on: 95, busy, on-line
The epson lq570, 223, on-line.
|
I also see this behaviour. At least it shows the parallel port is
working.
Physical connection:
Disconnected: 127, busy, out of paper, on-line
Connected at host only: 127, busy, out of paper, on-line
EPSON C60:
Connected to printer (off): 127, busy, out of paper, on-line
Connected to printer (on): 95, busy, on-line
Connected to printer (off): 95, busy, on-line
EPSON EPL-6200:
Connected to printer (off): 127, busy, out of paper, on-line
Connected to printer (startup): 87, busy, on-line, error
Connected to printer (on): 223, on-line
Connected to printer (off): 127, busy, out of paper, on-line
| Quote: | The hps listed as idle, the epson as stopped. Changing this by starting or
stopping the printers from localhost:631 makes no difference.
|
Next, set LogLevel to debug in /etc/cups/cupsd.conf. Restart cups,
and then try printing something. The log in /var/log/cups/error_log
should give some explanation of what went wrong. You can put the
error_log up for download if you can't see yourself what's wrong.
Regards,
Roger
--
.''`. Roger Leigh
: :' : Debian GNU/Linux http://people.debian.org/~rleigh/
`. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/
`- GPG Public Key: 0x25BFB848 Please sign and encrypt your mail. |
|
| Back to top |
|
 |
Tony Terlecki *nix forums beginner
Joined: 29 Jun 2005
Posts: 10
|
Posted: Wed Jul 19, 2006 2:10 pm Post subject:
Re: Read/Write files from a script?
|
|
|
On Wed, Jul 19, 2006 at 05:19:30PM +0530, Anil Gupte wrote:
| Quote: | bg image(cid:014e01c6ab29$652db160$6400a8c0@Aum)
Is there a shell command to read files? I want to open a text file, loop
through each line and parse the line of text.
|
Depending on what you want to do:
man sed
man awk
Regardless of what you want to do:
man perl
--
Tony Terlecki
lists@tonyterlecki.co.uk
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
| Back to top |
|
 |
Mladen Adamovic *nix forums beginner
Joined: 02 Oct 2005
Posts: 24
|
|
| Back to top |
|
 |
LeVA *nix forums addict
Joined: 05 Mar 2005
Posts: 86
|
Posted: Wed Jul 19, 2006 3:20 pm Post subject:
Re: Read/Write files from a script?
|
|
|
2006. július 19. 16:31,
Mladen Adamovic <adamm@blic.net>
-> Debian User <debian-user@lists.debian.org>,:
| Quote: | Tony Terlecki wrote:
Is there a shell command to read files? I want to open a text file,
loop through each line and parse the line of text.
Depending on what you want to do:
man sed
man awk
Yeah, but he asked about shell commands which read files, and that is 'cat'
so my addon to your answer is : see also 'man cat'
"The purpose of cat is to concatenate (or "catenate") files. If it's only one |
file, concatenating it with nothing at all is a waste of time, and costs you
a process." — Randal L. Schwartz
| Quote: |
In bash script you might use something like
for i in $(cat yourfile);
do
do_something_with $i
done
|
http://sial.org/howto/shell/useless-cat/
In a bash script you should use something like this:
for i in $(<yourfile)
do
do_something_with $i
done
Daniel
--
LeVA |
|
| Back to top |
|
 |
John Mason *nix forums beginner
Joined: 19 Jul 2006
Posts: 1
|
Posted: Wed Jul 19, 2006 4:10 pm Post subject:
Re: Anyone seen this?
|
|
|
unlink is not really a "link"... it's the name of the command. The
"unlink" command really just means delete. Not a clue why they call it
unlink and not delete.... but basically calling unlink on a file OR a
hard link OR a symbolic link will remove the link/file.
Anyhow, the error means that the permissions don't allow the clamd
process to delete that pid file. Once I did a dumb thing and did a
"chown -fR someuser:someuser /" and my entire disk was then owned by
someuser.... so I had to piece it back together one by one, file by
file.... that's when I saw the same error. My clamav is run by the user
"clamav"... double check your /etc/clamav.conf (could
be /etc/clamd.conf) and look for the "User" line. Then, chown
the /var/run/clamav directory and it's contents (and /var/log/clamav for
that matter) to that user, then all should be well.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
| Back to top |
|
 |
Rick Pasotto *nix forums addict
Joined: 01 Mar 2005
Posts: 75
|
Posted: Wed Jul 19, 2006 5:00 pm Post subject:
Re: Read/Write files from a script
|
|
|
On Wed, Jul 19, 2006 at 05:13:26PM +0530, Anil Gupte/k.e.e.n., inc.
wrote:
| Quote: | BlankIs there a shell command to read files? I want to open a text
file, loop through each line and parse the line of text.
|
while read line
do
echo "processing line: $line"
done < input_text_file
--
"Artificial intelligence makes mistakes too, only faster."
-- Larry Wall
Rick Pasotto rick@niof.net http://www.niof.net
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
| Back to top |
|
 |
Digby Tarvin *nix forums Guru Wannabe
Joined: 25 Jan 2006
Posts: 178
|
Posted: Wed Jul 19, 2006 5:10 pm Post subject:
Re: Anyone seen this?
|
|
|
On Wed, Jul 19, 2006 at 10:34:11AM -0500, John Mason wrote:
| Quote: | unlink is not really a "link"... it's the name of the command. The
"unlink" command really just means delete. Not a clue why they call it
unlink and not delete.... but basically calling unlink on a file OR a
hard link OR a symbolic link will remove the link/file.
|
Actually it is the other way around. There is no command to delete
a file - all you can do is decrement the inode link count. The
file gets deleted as a side effect when the link count drops to zero.
The only thing an 'unlink' is sure to remove is the directory entry.
That is how hard links work.
Regards,
DigbyT
--
Digby R. S. Tarvin digbyt(at)digbyt.com
http://www.digbyt.com
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
| Back to top |
|
 |
s. keeling *nix forums Guru Wannabe
Joined: 01 Apr 2005
Posts: 248
|
Posted: Wed Jul 19, 2006 6:40 pm Post subject:
Re: Anyone seen this?
|
|
|
John Mason <jmason@masondrywallsupply.com>:
| Quote: |
process to delete that pid file. Once I did a dumb thing and did a
"chown -fR someuser:someuser /" and my entire disk was then owned by
|
Glad I'm not the only one. I didn't do it. The student I was
training at the time must have, and it was quite a shock finally
noticing at 0320h that everything was owned someuser:someuser and
everything was still running fine. Aii.
Be careful leaving root prompts lying around, even when the only
people around are people you trust. They can make honest mistakes
that screw you just as badly as malicious acts can. Expensive
education. :-P
--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://www.spots.ab.ca/~keeling Linux Counter #80292
- - http://www.faqs.org/rfcs/rfc1855.html
Spammers! http://www.spots.ab.ca/~keeling/emails.html
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
| Back to top |
|
 |
Hex Star *nix forums addict
Joined: 14 Mar 2006
Posts: 56
|
Posted: Wed Jul 19, 2006 6:50 pm Post subject:
Re: [OT] How do I make my computer act like a telephone?
|
|
|
Why not just use Skype which lets you call any landline or cellphone over
the internet (needs a high speed broadband internet connection to work
properly though)?
On 7/18/06, David R. Litwin <presently42@gmail.com> wrote:
| Quote: |
Preamble:
Hello list. This is rather not Debian related, but I simply can't find the
correct forum. If this can be suplied, I'd be grateful.
Now then: I want to make my computer act like a telephone: Literaly, plug
in the telephone wire to a jack and dial (and receive) a phone call. I
_believe_ I've got the driver installed for my modem which I'm _pretty_sure_
is capable of this. (The modem is an ATI IXP AC'97 Modem according to
KInfoCentre, in case some one can verify that this is indeed a
telephony-capable modem). The question: What software do I need and how do
I set it up? (The latter can be answered by way of a howto or the like).
Thanks much and I appologise for the broadness of this querie.
Cheers.
--
—A watched bread-crumb never boils.
—My hover-craft is full of eels.
—[...]and that's the he and the she of it.
|
|
|
| Back to top |
|
 |
Joao Carlos de Lima Rosco *nix forums beginner
Joined: 07 Jul 2005
Posts: 5
|
Posted: Wed Jul 19, 2006 8:40 pm Post subject:
Re: Etch: blank (black) screen, Xorg is running, modes are Ok - SOLVED
|
|
|
Liam O'Toole wrote:
| Quote: | On Wed, 19 Jul 2006 12:34:40 -0300
Joao Carlos de Lima Roscoe <joao.roscoe@magnetimarelli.com.br> wrote:
[SNIP]
I followed Mr. Keeling's suggestion and, at the end of
dpkg-reconfigure, I got an warning message:
xserver-xorg postinst warning: not updating /etc/X11/X; file has
been
customized
Well, /etc/X11/X is a link to xorg executable, and I haven't touched
it, so I got confused.
Being puzzled, I removed the xorg.conf file to give Xorg defaults a
try, and that way,
it restarts properly. At this point, mouse, keyboard and modes are
not ok yet, but I have
(from Xorg.0.log) a good starting point.
However, I don't know what does the dpkg-reconfigure message above
mean, and I don't know why it haven't generated a new xorg.conf
Joao
You write the choices you made while running 'dpk-reconfigure xorg' by
doing:
dexconf -o /etc/X11/xorg.conf
Of course, you may want to back up the existing file first.
dexconf did it. Now everything is ok. |
A diff between the old and the new xorg.conf showed only:
36a37
< Load "dbe"
64a65
| Quote: | Option "Emulate3Buttons" "true"
68,71c69,70 |
< Identifier "Intel i810"
< Driver "i810"
< BusID "PCI:0:2:0"
< Option "UseFBDev" "true"
---
| Quote: | Identifier "Generic Video Card"
Driver "vesa"
83c82 |
< Device "Intel i810"
---
| Quote: | Device "Generic Video Card"
|
I tried reversing each one of those differences, hitting
ctrl-alt-backspace each time to identify which solved the
problem, and could not find which one did it - I guess
xorg doesn't re-read /etc/X11/xorg.conf at a
ctrl-alt-backspace.
If someone find it wold be interesting, I can do
further testing.
Thank you everyone for your time and assistance.
Joao
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
| Back to top |
|
 |
iforone *nix forums Guru
Joined: 28 Dec 2005
Posts: 330
|
Posted: Wed Jul 19, 2006 11:40 pm Post subject:
Re: Editing run level S
|
|
|
Osamu Aoki wrote:
| Quote: | On Tue, Jul 11, 2006 at 09:19:08PM +0100, Digby Tarvin wrote:
Leading on from the earlier posters question about configuring an
encrypted filesystem that does not interrupt the boot process with
a password prompt...
Can anyone tell me what the 'Debian way' is to remove something
(in this case 'cryptdisks') from runlevel 'S'?
The relevent links are:
/etc/rc0.d/K48cryptdisks
/etc/rc6.d/K48cryptdisks
/etc/rcS.d/S28cryptdisks
Ultimately I just need to achieve the equivalent of
rm /etc/rc[06S].d/*cryptdisks
but in a way that won't fall faul of the APT system..
I am sure I have seen 'update-rc.d' suggested in the past,
but the manpage warns:
Please note that this program was designed for use in package
main?
tainer scripts and, accordingly, has only the very limited
functional?
ity required by such scripts. System administrators are not
encouraged
to use update-rc.d to manage runlevels. They should edit the
links
directly or use runlevel editors such as sysv-rc-conf and bum
instead.
indicating that it isn't the approved way to do it..
Maybe this description needs update.
update-rc.d is not well suited as an easy-to-use interactive tool but
certainly works fine. I think use of rm or mv are right as long as you
do it right.
I tried the graphical runlevel editor 'bum', but it
gives a message stating:
Editing in run level S is not allowed!
Playing with rcS.d symlinks is an administration activity
requiring deep knowledge of the runlevel system.
(it also bus-errors when I try to run it on a remote Xterm, but
that is another story...)
Finally, I tried using 'sysv-rc-conf', and it seems that it did allow
me to deactivate cryptdisks - although not by just removing the links,
but instead changed the
/etc/rcS.d/S28cryptdisks
symlink to
/etc/rcS.d/K48cryptdisks
which I suppose has the desired effect, although I am not clear on
the logic behind doing it this way...
Does anyone know what is 'best practice', and what the logic is
behind the way things are being done?
|
FWIW - the /etc/rcS.d README says;
:/etc/rcS.d$ cat README
==============================
The scripts in this directory whose names begin with an 'S' are executed
once when booting the system, even when booting directly into single user
mode.
The scripts are all symbolic links whose targets are located in
/etc/init.d/ .
To disable a script in this directory, rename it so that it begins with
a 'K'.
For a more information see /etc/init.d/README.
The following sequence points are defined at this time:
* After the S40 scripts have executed, all local file systems are mounted
and networking is available. All device drivers have been initialized.
* After the S60 scripts have executed, the system clock has been set, NFS
filesystems have been mounted (unless the system depends on the automounter,
which is started later) and the filesystems have been cleaned.
==============================
Regards
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
| Back to top |
|
 |
Johannes Wiedersich *nix forums Guru Wannabe
Joined: 03 May 2005
Posts: 143
|
Posted: Thu Jul 20, 2006 10:50 am Post subject:
OT: Free Software WAS: Re: Odp: Re: Hugin on debian "sarge"
|
|
|
Zbigniew Wiech wrote:
| Quote: | Hi,
It's not a problem of desktop and GUI. I could really live with
blackscreen and "./configure/make/make install" instead of "setup.exe". If
only "./configure..." was more-less equally reliable as "setup.exe".
|
Well there is only one or two supported Versions of M$, but more than
hundreds of Linuxes.
| Quote: | I know it is.... Technically. If you have all proper dependencies,
"includes", "dev" packages - it works.
But trying to guess what components I should install to satisfy all
dependencies is a russian roulette.
Commercial software is equipped with clear and intuitive helps and
manuals. Free one is not, what is somewhat obvious. For sure it's a blue
ocean for anybody who provides linux based IT services. Cost of software
vs cost of expertise
|
This is simply not true. It might be true that some commercial software
comes with excellent manuals and help, but for example Window$ XP
doesn't. Over years people have learned to do things the M$-way and
learned to accept it as the 'given way' no matter if it's logically
sound, well documented or not.
I'm sure that once you've become a bit more familiar with the 'debian
way' you will agree that it is
- better documented (look at /usr/share/doc/package-name and man command)
- more intuitive
- works better 'out of the box' (once a package has made it into debian)
I found it a lot easier to switch from Win98 to Debian than from Win98
to WinXP.
Johannes
NB: one can get debian packages for etch on adding
http://www.debian-multimedia.org etch/main Packages
to /etc/apt/sources.list
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
| Back to top |
|
 |
Bob McGowan *nix forums beginner
Joined: 07 Mar 2006
Posts: 22
|
Posted: Thu Jul 20, 2006 5:10 pm Post subject:
Re: Read/Write files from a script?
|
|
|
The $(<fileName) construct is very nice, if you're using a shell that
supports it. But ash (at least the version I have) doesn't, so what to
do if you want/need to be portable across all Bourne type shells? There
is a feature that will work in all the Bourne shells that I'm familiar
with, using I/O redirection and 'exec':
exec 5<fileName # for reading; to write file do: exec 5>fileName
while read inputLine
do
something_on $inputLine
done <&5
And, if you need multiple files open for reading and/or writing, combine
on one line with a single 'exec':
exec 4<existingFile 5>newFile 6>>existingAppend
And so on. The general form to use the file descriptor created in the
exec command line is 'redir-op&#', where # is the desired file
descriptor and redir-op is one of '<' or '>'. Note that when you use
the append form to create the descriptor (as with 6, above) you do *not*
use the append operator when using it. '>&6' will append if 6 was
created in append mode and overwrite if not.
Bob
LeVA wrote:
| Quote: | 2006. július 19. 16:31,
Mladen Adamovic <adamm@blic.net
-> Debian User <debian-user@lists.debian.org>,:
Tony Terlecki wrote:
Is there a shell command to read files? I want to open a text file,
loop through each line and parse the line of text.
Depending on what you want to do:
man sed
man awk
Yeah, but he asked about shell commands which read files, and that is 'cat'
so my addon to your answer is : see also 'man cat'
"The purpose of cat is to concatenate (or "catenate") files. If it's only one
file, concatenating it with nothing at all is a waste of time, and costs you
a process." — Randal L. Schwartz
In bash script you might use something like
for i in $(cat yourfile);
do
do_something_with $i
done
http://sial.org/howto/shell/useless-cat/
In a bash script you should use something like this:
for i in $(<yourfile)
do
do_something_with $i
done
Daniel
|
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Sat Nov 22, 2008 1:23 pm | All times are GMT
|
|
Web Advertising | Remortgages | Credit Counseling | Books | MPAA
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|