Re: aptitude or apt-get: how to use the jolly character?
Boyd Stephen Smith Jr. wrote: In <878wkcdobs@gmail.com>, Rodolfo Medina wrote: Suppose that I want to remove all the packages beginning with `texlive', that are a lot in my system. If I do: `aptitude purge texlive*', the system complains that no package has that name. Right, the shell performs "globbing", matching such patterns against pathnames and providing multiple arguments to the underlying command. As packages aren't accessible via pathnames, you can't count on your shell finding them. How to do then? Aptitude itself uses regular expressions (I like PCRE, might just be posix- extended) to match against package properties paired with "atoms" or "operators" (I can't remember the correct terminology) to select which property or combine searches. In this case use the aptitude search string "~n^texlive" or simply "^texlive" since "~n" is the default. Since these aptitude search expressions can have characters in them that the shell interprets (e.g. *, ?, and [] all have special meaning in both regular expressions and shell "glob"s), you'll want to surround the expression in single-quotes to prevent the shell from interpreting it -- passing it directly to aptitude after removing the quotes. Something like: aptitude purge '^texlive' Of course, things get really confusing when they have special meanings in both the shell and regexps, and you want to negate both of them. Suppose I want to grep for a letter (f in this example) followed by the asterisk in a file, I'd need to use this command: grep f\\\* $file grep f* $file would search for the name of any file in the current directory beginning with f, in that file (or the below if no files begin with f) grep f\* $file would search for 0 or more occurences of the letter f in that file (in other words, every line) grep f\\* $file would search for the name of any file in the current directory beginning with f\ in that file (or the below if no files begin with f\) grep f\\\* $file would search for an f followed by an asterisk. And that gets even more confusing when you put it in C, in, for example, a system() call: system("grep f\\* $file"); (The backslashes are doubled up so that C does not interpret them as its own escape characters, like \n). And if you wanted (for example) a newline in the middle of that command, you would probably die from confusion :p -- -BEGIN GEEK CODE BLOCK- Version: 3.1 GCS/CM/IT d>++ s+:- a C+++ UL+++> P+>+++ L+++>+ E>--- W+++ N o? K? w--- O+ M-- V- PS PE? Y-- PGP- t+ 5? X- R-- tv+ b++ DI D G++ e- h! !r y --END GEEK CODE BLOCK-- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: konqueror, fish, stalled
Douglas A. Tutty wrote: On Sat, May 30, 2009 at 09:19:13PM +0800, Umarzuki Mochlis wrote: Whenever I tried to copy file(s) bigger than 900 MB using fish protocol, it stalled. Any way to prevent this? Try a different protocol. Use rsync or scp (or mc with shell link) from a command line. Doug. Can't you use sftp? -- -BEGIN GEEK CODE BLOCK- Version: 3.1 GCS/CM/IT d>++ s+:- a C+++ UL+++> P+>+++ L+++>+ E>--- W+++ N o? K? w--- O+ M-- V- PS PE? Y-- PGP- t+ 5? X- R-- tv+ b++ DI D G++ e- h! !r y --END GEEK CODE BLOCK-- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Ctrl-Alt-Backspace disabled?
Joel Roth wrote: Hello all, I've noticed that Ctrl-Alt-Backspace no longer kills X for me (sid). I see Ubuntu has disabled this key combination. What about Debian? Is it me or Xorg? And how could I re-enable this functionality? Switch to terminal, ps ax, kill is possible, but clunky if I am testing a bunch of window managers. Thanks. Dunno about Sid, but in Kubuntu, you type as root: dontzap --disable And it permanently re-enables Ctrl + Alt + Backspace. Hope this applies to Sid too! Muzer -- -BEGIN GEEK CODE BLOCK- Version: 3.1 GCS/CM/IT d>++ s+:- a C+++ UL+++> P+>+++ L+++>+ E>--- W+++ N o? K? w--- O+ M-- V- PS PE? Y-- PGP- t+ 5? X- R-- tv+ b++ DI D G++ e- h! !r y --END GEEK CODE BLOCK-- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: What hardware to use for Debian Firewall/Gateway or server?
Csanyi Pal wrote: Alex Samad writes: On Thu, May 28, 2009 at 08:35:02AM +0200, Csanyi Pal wrote: Jan Willem Stumpel writes: Csanyi Pal wrote: What is the recommended new hardware for firewall/gateway or for a web, mail, file & printer server at a small home network? Any advices will be appreciated! I am now using a "Bubba 2", made by a Swedish company: http://excito.com/bubba/products/about-bubba.html It runs Debian. More expensive, of course, than using an old desktop or laptop computer (but the price is going down all the time, now 212 euros for a unit with 500 GB hard disk), but it uses "almost no" electricity, and it is silent (fanless). Very suitable for 24/7 operation. I am very happy with it. Regards, Jan It's very nice but can one install on it say a Debian GNU/Linux Lenny? the specs seem to suggest you can get it pre installed with debian Yes, with Debian Etch, but not with Debian Lenny! So: can one install on it say a Debian GNU/Linux Lenny? I don't see why not. -- -BEGIN GEEK CODE BLOCK- Version: 3.1 GCS/CM/IT d>++ s+:- a C+++ UL+++> P+>+++ L+++>+ E>--- W+++ N o? K? w--- O+ M-- V- PS PE? Y-- PGP- t+ 5? X- R-- tv+ b++ DI D G++ e- h! !r y --END GEEK CODE BLOCK-- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Lenny printing competition -- still open?
Miguel Obliviemo wrote: On Wed, 27 May 2009, Johannes Wiedersich wrote: Boyd Stephen Smith Jr. wrote: In , Miguel Obliviemo wrote: I just noticed the "Print to Win" or "Print 2 Win" promotion in the HOWTO directory I have no idea what you are talking about and couldn't find a reference to a similarly named anything on my Lenny/Squeeze system. Please provide a package+pathname or URL. I guess OP is talking about $ apt-file search Print2Win doc-linux-html: /usr/share/doc/HOWTO/en-html/Print2Win.html an old HOWTO about printing from linux to printers attached to M$ operating computers. Just a joke, I suppose ;-) Not quite. The language promotes another operating system. Surely, every reasonable person must prefer the Win operating system if even Debian promotes it. What system? The Win system! says Lenny. Has the virus so pervaded every part of your mind that you see nothing wrong here? How else would someone who is forced to print to Windows computers (eg at work) print then? -- -BEGIN GEEK CODE BLOCK- Version: 3.1 GCS/CM/IT d>++ s+:- a C+++ UL+++> P+>+++ L+++>+ E>--- W+++ N o? K? w--- O+ M-- V- PS PE? Y-- PGP- t+ 5? X- R-- tv+ b++ DI D G++ e- h! !r y --END GEEK CODE BLOCK-- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Does the vfat partition need defrag under Gnu/Linux ?
Todd A. Jacobs wrote: On Wed, May 27, 2009 at 11:41:09AM -0300, Hashimoto wrote: I have an external disk actually using one vfat partition type, so I'm wondering if it's necessary to defrag it since I used to save and remove a lot and large files. This isn't really a Linux question; it's a filesystem question. FAT partitions don't handle fragmentation well, so if you're seeing performance problems you should either defrag it from Windows (either natively or from inside VirtualBox) or back up the disk and restore it to a clean partition. Yeah. It's annoying that Linux can't defrag FAT natively (or most filesystems for that matter, the notable exception being ext4). -- -BEGIN GEEK CODE BLOCK- Version: 3.1 GCS/CM/IT d>++ s+:- a C+++ UL+++> P+>+++ L+++>+ E>--- W+++ N o? K? w--- O+ M-- V- PS PE? Y-- PGP- t+ 5? X- R-- tv+ b++ DI D G++ e- h! !r y --END GEEK CODE BLOCK-- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Digital Picture-Frame
David Baron wrote: These are the latest fad. Comes with USB connector and a windows program (which wine will not run). Connecting the USB yields the usual vfat file system. It mounts read-only-- left to it own devices, KDE will mount it in /media/disk. How might I use this contraption. Maybe (maybe not), an appriopriate fstab entry can get it to mount where I want it with write permissions. Problem is that a different /dev entry is used each time, i.e. /dev/sdb, /dev/sde, etc. Any ideas? 1) What make/model is it? 2) Does it have any way to interface with memory cards? Most of them do, and so if you have a spare one, you could simply copy the pictures onto that, and then from that onto the frame, using the frame's own software. -- -BEGIN GEEK CODE BLOCK- Version: 3.1 GCS/CM/IT d>++ s+:- a C+++ UL+++> P+>+++ L+++>+ E>--- W+++ N o? K? w--- O+ M-- V- PS PE? Y-- PGP- t+ 5? X- R-- tv+ b++ DI D G++ e- h! !r y --END GEEK CODE BLOCK-- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: KDE is now broken (Fwd: Heads-up: KDE4 hitting testing tonight (UTC) )
lee wrote: On Tue, May 26, 2009 at 10:23:35AM -0500, Boyd Stephen Smith Jr. wrote: In <20090526144742.gd5...@cat.rubenette.is-a-geek.com>, lee wrote: Even if I wanted to run an RDBMS because it's needed for something I want, I'd think at least twice about it and look for another solution first to keep the resource usage low: There are some games I want to play, and I don't want to have to try stopping things that are running before I can play them smoothly. SQLite doesn't run a daemon at all. While there is an binary that functional as a simple "SQL Shell", all the real RDBMS work is handled by the shared library. Still it wants to install the full mysql server --- and doesn't that package automatically start the server, even if it's then not used by kde? Not that I couldn't prevent that, but they could make a package that only installs the needed library instead of the full server ... Haven't tested it, but couldn't you do (for example): aptitude install koffice sqlite to make it use the other one? Chances are both will satisfy the dependancy, just sql is listed before sqlite. Of course, there would still be the Akonadi server hanging around -- but it should only wake up "on demand" when applications need services. But does it take CPU time to figure out if it needs to wake up? -- -BEGIN GEEK CODE BLOCK- Version: 3.1 GCS/CM/IT d>++ s+:- a C+++ UL+++> P+>+++ L+++>+ E>--- W+++ N o? K? w--- O+ M-- V- PS PE? Y-- PGP- t+ 5? X- R-- tv+ b++ DI D G++ e- h! !r y --END GEEK CODE BLOCK-- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Debian Linux
Boyd Stephen Smith Jr. wrote: In <4a1d6a99.9040...@physik.blm.tu-muenchen.de>, Johannes Wiedersich wrote: Barclay, Daniel wrote: Muzer wrote: KDE can convert manpages to HTML on-the-fly (just browse to man:/[()] (where the <> denotes a required argument, [] an optional argument) Which part of KDE is that? (What is KDE's file/etc. browser?) konqueror Although, I thought that any URL that works in konqueror should work with all applications that use the kio libraries. That is correct. -- -BEGIN GEEK CODE BLOCK- Version: 3.1 GCS/CM/IT d>++ s+:- a C+++ UL+++> P+>+++ L+++>+ E>--- W+++ N o? K? w--- O+ M-- V- PS PE? Y-- PGP- t+ 5? X- R-- tv+ b++ DI D G++ e- h! !r y --END GEEK CODE BLOCK-- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Is gnome built on top of twm?
Foss User wrote: 4. Can someone share the equivalent 'aptitude why' output from a system running KDE? On Kubuntu (which I know isn't debian, but it's all I have at the moment): mu...@muzer-desktop:~$ aptitude why twm i kdm Recommends kdebase | x-session-manager | x-window-manager p twm Provides x-window-manager mu...@muzer-desktop:~$ Note that I don't actually have it installed: mu...@muzer-desktop:~$ aptitude show twm Package: twm New: yes State: not installed Version: 1:1.0.4-2 Priority: optional Section: universe/x11 Maintainer: Ubuntu MOTU Developers Uncompressed Size: 418k Depends: menu (>= 2.1.26), libc6 (>= 2.4), libice6 (>= 1:1.0.0), libsm6, libx11-6, libxext6, libxmu6, libxt6 PreDepends: x11-common (>= 1:7.0.0) Provides: x-window-manager Description: Tab window manager twm is a window manager for the X Window System. It provides title bars, shaped windows, several forms of icon management, user-defined macro functions, click-to-type and pointer-driven keyboard focus, and user-specified key and pointer button bindings. mu...@muzer-desktop:~$ (Again, this is for Kubuntu, not Debian, so it could be different, but I doubt it) -- -BEGIN GEEK CODE BLOCK- Version: 3.1 GCS/CM/IT d>++ s+:- a C+++ UL+++> P+>+++ L+++>+ E>--- W+++ N o? K? w--- O+ M-- V- PS PE? Y-- PGP- t+ 5? X- R-- tv+ b++ DI D G++ e- h! !r y --END GEEK CODE BLOCK-- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Debian Linux
rand...@songshu.org wrote: And easier to navigate when they have been converted to html, e.g. http://manpages.courier-mta.org/mansection1.html You should keep in mind that these are likely not current or in sync' with your system. http://manpages.debian.net/ is pretty much in sync i guess. the only "problem with that site is that it cgi generates the pages, so its not indexed by google, one of the reasons that they did it differently for the ubuntu version. in my turn i made the http://manpages.songshu.org basically copying ubuntu's site and applied it to debian, nothing special further but it was a nice practice material. KDE can convert manpages to HTML on-the-fly (just browse to man:/[()] (where the <> denotes a required argument, [] an optional argument) -- -BEGIN GEEK CODE BLOCK- Version: 3.1 GCS/CM/IT d>++ s+:- a C+++ UL+++> P+>+++ L+++>+ E>--- W+++ N o? K? w--- O+ M-- V- PS PE? Y-- PGP- t+ 5? X- R-- tv+ b++ DI D G++ e- h! !r y --END GEEK CODE BLOCK-- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Questions regarding bash and sh.
Andrei Popescu wrote: On Wed,20.May.09, 21:09:02, Muzer wrote: Damn, I did it again, sending it to one person rather than everyone! I really need to get used to this mailing list lark. There's a reply-to-list extension for Thunderbird. Regards, Andrei Thanks, I'll look that up :) -- -BEGIN GEEK CODE BLOCK- Version: 3.1 GCS/CM/IT d>++ s+:- a C+++ UL+++> P+>+++ L+++>+ E>--- W+++ N o? K? w--- O+ M-- V- PS PE? Y-- PGP- t+ 5? X- R-- tv+ b++ DI D G++ e- h! !r y --END GEEK CODE BLOCK-- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Questions regarding bash and sh.
Sthu Deus wrote: Good day. I have noticed that for some users in /etc/passwd the shell environment is set as bash and for some as sh. This has led me to the following questions: . Why is it so, meaning what is the meaning of it? . Do I give more insecure environment to a user setting for him sh instead of bash? . Why I see that it works different regarding the set environment (for some sh, for others bash), for, say, autorun scripts such as .profile, bash_profile, if sh links to bash? Thank You for Your time. Damn, I did it again, sending it to one person rather than everyone! I really need to get used to this mailing list lark. My message was: Sthu Deus wrote: Good day. I have noticed that for some users in /etc/passwd the shell environment is set as bash and for some as sh. This has led me to the following questions: . Why is it so, meaning what is the meaning of it? . Do I give more insecure environment to a user setting for him sh instead of bash? . Why I see that it works different regarding the set environment (for some sh, for others bash), for, say, autorun scripts such as .profile, bash_profile, if sh links to bash? Thank You for Your time. On most modern systems, sh is pretty much the same as bash (although yours may have sh linked to dash, I'll come back to that later), but in a "compatible mode" (AFAIK just with things like the prompt changed so it looks more like sh, and it reads different startup scripts, and a few of the POSIX-breaking features are disabled). Sh is basically a general executable that is linked to the bourne-compatible shell of your choice (usually bash, but again, sometimes dash). Bash (Bourne Again SHell) is the actual executable sh links to on most systems, and has probably the most features of all the bourne shells. Dash (Debian Almquist SHell) can sometimes be set instead of bash: this is much faster, but has fewer features. Some poorly-designed shell scripts will fail with systems with sh linked to dash. Other systems (mainly embedded systems) have sh linked to busybox - this has even fewer features, but is used because it has every major tool in one executable. Bash in sh mode is no less secure than bash in bash mode. If yours is linked to dash or busybox, those are likely to be more secure due to the fewer features. But there isn't really much of a difference, so don't worry. As for your last question, see above. Sh-compatible bash loads different startup scripts to bash bash. Hope this helped, Muzer -- -BEGIN GEEK CODE BLOCK- Version: 3.1 GCS/CM/IT d>++ s+:- a C+++ UL+++> P+>+++ L+++>+ E>--- W+++ N o? K? w--- O+ M-- V- PS PE? Y-- PGP- t+ 5? X- R-- tv+ b++ DI D G++ e- h! !r y --END GEEK CODE BLOCK-- -- -BEGIN GEEK CODE BLOCK- Version: 3.1 GCS/CM/IT d>++ s+:- a C+++ UL+++> P+>+++ L+++>+ E>--- W+++ N o? K? w--- O+ M-- V- PS PE? Y-- PGP- t+ 5? X- R-- tv+ b++ DI D G++ e- h! !r y --END GEEK CODE BLOCK-- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: Installing bash 4.0 alongside bash 3.x
Todd A. Jacobs wrote: I see that bash 4.0 is now in experimental, but I don't want to break compatibility with any package that may require bash 3.x. Is there a way to install them both, and use the alternatives system to make bash 3.x the default? Sorry Todd, I seem to have replied to you accidently. Oops. Here's the message I sent: I suppose the non-debian way, and what I would do, would be compiling it with --prefix=/opt/bash-4.0 passed as an argument to ./configure, then installing it like any other source package, and using /opt/bash-4.0/bin/bash when you want to run it. No idea if it's possible to do it with .deb packages though. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Confused about netinst
I'm a little confused about the netinst CD, on whether or not it supports WiFi cards. Your site says it doesn't, yet I've seen lots of forums and bug reports in which people seem to install it correctly. Can someone claify this? Thanks! Muzer. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org