Re: Worst Admin Mistake? was --> Re: /usr broken, will the machine reboot ?
Quoting The_Ace on 2011-09-14 03:08: > drop database Live_database; > > Restored the previous day's backup and blamed it on a bad power supply :P You coulda blamed it on any of the outputs of "fortune bofh-excuses" and most users would likely not know. My worst administration mistake? Forgetting to check asset numbers before sanitizing a machine -- I'd sanitized an actively used diagnostics computer instead of the identical-looking machine sitting right next to it. Though that machine was the cleanest in the shop afterwards. dban, dish soap, compressed air and water. Fortunately, I had an image of that machine. That was my noob (used self-perjoratively!) moment for that month. -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ 43190205 | Mail/Jabber/Yahoo/MSN: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ DRM: encryption which assumes Bob is also Eve and Mallory. signature.asc Description: Digital signature
Re: secured pdf
Quoting Camaleón on 2011-07-15 05:59: > Secure PDF are files that embed DRM or strong encryption (AES 256) that > prevents the reader to perform some operations (copy text, print to file, > extrcat images...). There are also files that are very limited based on > Adobe LiveCycle settings policy (this is done at server side). Or at least _try_ to prevent it. See my sig. The only 100% failproof way to prevent John Doe printing a file? Prevent Mr Doe from acquiring the file in the first place. It may be rocket surgery, but it's not /impossible/. -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ 43190205 | Mail/Jabber/Yahoo/MSN: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ DRM: encryption which assumes Bob is also Eve and Mallory. signature.asc Description: Digital signature
Re: Stranded between lenny and squeeze
Quoting Hendrik Boom on 2011-07-01 20:47: > And I can't use cntl-alt-F1 to get a text console, because all I get is a > blank black screen. Is gdm taking over the text consoles and disallowing > them? How do I get my text consoles back so I can proceed with the rest > of the upgrade? Try ctrl+alt+Fn, for n = 2..6. How many lines of the form N:2345:respawn:/sbin/getty 38400 ttyN do you have in your /etc/inittab? -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ 43190205 | Mail/Jabber/Yahoo/MSN: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ DRM: encryption which assumes Bob is also Eve and Mallory. signature.asc Description: Digital signature
Re: uid & gid problem restoring ubuntu made backup to new squeeze install
Quoting Juan R. de Silva on 2011-04-21 16:36: > I preserved the user names for both of users in a new squeeze > installation but UID and GID are different. So, by simply using 'cp - > a' (or rsync) I would run into problem of their mismatch. > > Is there a simple and quick way to resolve it or I'll have to go trough > this mess manually one step at a time? See find(1) and chown(1). If you prefer info documents, the {core,find}utils files will be of much use. -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ 43190205 | Mail/Jabber/Yahoo/MSN: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ Modern man has an approximately 140-character attention span. -- blr signature.asc Description: Digital signature
Re: Using Files Without Mounting A Share From Another System
Quoting Camaleón on 2011-04-23 05:44: > Nowadays it should handle smb:// or other network protocol just the same Quoting Erwan David on 2011-04-23 08:48: (re: Camaleón) > Prgrams that I know which do this (eg emacs with tramp editing) use a > temporary copy on local file. And it is the applicaton which deals with > this, not the OS. This is the same method vim uses with its netrw plugin. Each app handles it itself (as vim and emacs do) or (theoretically) uses some library to do it (as I believe KDE does; haven't used KDE since etch) -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ 43190205 | Mail/Jabber/Yahoo/MSN: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ Modern man has an approximately 140-character attention span. -- blr signature.asc Description: Digital signature
[SOLVED] mpd blocks all other sound output EBUSY
I was about to write a long email, complete with some logs and config files, and postpone it to remind me to STFW for more info on an mpd issue I was having. While bundling everything up, I decided to try, on a lark, commenting out someting marked 'optional' in mpd.conf, under the assumption that using said option would force it straight to hardware as opposed to going through dmix. This was caused, in my case, by blindly uncommenting the "device" entry in the audio_output block of mpd.conf; it'd look something like this: audio_output { # snip device "hw:0,0" # optional # snip } Parts of the message I was writing will be left as google bait to document a potential cause of trouble to watch out for while troubleshooting mpd for all eternity. --- With my laptop running Debian lenny 5.0.8, I was unable to play any other sounds while mpd is running; an attempt to do so failed, the error indicating blockage of the audio device (EBUSY) typical transcript is below. $ sudo invoke-rc.d mpd start Starting Music Player Daemon: mpd. $ play /usr/share/sounds/alsa/Front_Center.wav; echo $? ALSA lib pcm_dmix.c:996:(snd_pcm_dmix_open) unable to open slave play soxio: Can't open output file `default': cannot open audio device 2 $ sudo invoke-rc.d mpd stop $ play /usr/share/sounds/alsa/Front_Center.wav; echo $? # Audio is heard as normal. 0 -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ 43190205 | Mail/Jabber/Yahoo/MSN: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ Modern man has an approximately 140-character attention span. -- blr signature.asc Description: Digital signature
Re: How long has your Lenny -> Squeeze upgrade taken?
Quoting Clive Standbridge on 2011-02-18 03:35: > Also if you rely on the system for anything important, you need to > allow time to diagnose and fix the fallout i.e. breakages that aren't > covered in the release notes. It happens unfortunately. And time to research whether said breakages are known, time to file appropriate bugs if the breakages aren't known and so on. -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ 43190205 | Mail/Jabber/Yahoo/MSN: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ Modern man has an approximately 140-character attention span. -- blr signature.asc Description: Digital signature
Re: ssd / smart question
Quoting Paul Berry on 2011-02-14 01:47: > There is only one problem. The firmware update does not have a Linux > installer. You need to install Windows 7 or Vista on a separate boot > drive, then boot from it to use the firmware tool. I did a temporary And THIS is why I mourn the loss of the venerable 1440K disk (or at least the easy availability of ultra-small USB disks) and boot images placed on vendors' websites. Made firmware upgrades fairly OS-agnostic. -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ 43190205 | Mail/Jabber/Yahoo/MSN: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ Modern man has an approximately 140-character attention span. -- blr signature.asc Description: Digital signature
Re: Squeeze and Logitech, Inc. QuickCam Pro 4000
Quoting Slobodan Aleksić on 2011-01-15 14:25:23: > I own a Logitech QuickCamPro and it doesn't work with Squeeze, any > other people who have the same problem or no problem with it ?! > > Only thing I found relevant was a closed bug : > http://lists.debian.org/debian-kernel/2010/06/msg00310.html Slightly offtopic here. Be mindful of the vendor and device numbers for your camera. I had trouble setting up my camera for a while because at least three distinct VEN:DEV combos are all sold as one model of camera, and look virtually identical: the Gear Head 1.2mp camera. LARTs are due to HW makers that do that kinda thing. -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ 43190205 | Mail/Jabber/Yahoo/MSN: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ Modern man has an approximately 140-character attention span. -- blr signature.asc Description: Digital signature
Re: variable in loop
Quoting Karl E. Jorgensen on 2011-01-02 17:22:20: > for i in `seq 1 $a` That `seq 1 $a` could be trimmed to `seq $a`. Unsure of portability. -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ 43190205 | Mail/Jabber/Yahoo/MSN: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ Modern man has an approximately 140-character attention span. -- blr signature.asc Description: Digital signature
Re: How to check which package are from multimedia.org?
Quoting Andy Jacobsen on 2010-11-12 06:59:20: > Shows only the installed one: > $ aptitude search ~Omultimedia |grep ^i Without a fork to grep: aptitude search '~Omultimedia ~i' OT: I thought that changing search terms would affect speed. I guess not. -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ 43190205 | Mail/Jabber/Yahoo/MSN: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ Modern man has an approximately 140-character attention span. -- blr signature.asc Description: Digital signature
Re: How to check which package are from multimedia.org?
Quoting Artur Frydel on 2010-11-12 06:26:08: > Any magical command to see all obsolete packets in my system? aptitude search '~o' -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ 43190205 | Mail/Jabber/Yahoo/MSN: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ Modern man has an approximately 140-character attention span. -- blr signature.asc Description: Digital signature
Re: HP Laserjet not printing.
Quoting Erwan David on 2010-11-09 02:16:08: > There are different HP laserjet series... > > eg. the 4000 series is almost perfect (maybe too perfect for HP, a > 4000 from 1999 still works perfectly...) but some other are indeed > BS... And the maybe 20, 25-year old LaserJet 3 series, still happily humming along, made back when printers weren't disposable. *waves cane* -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ 43190205 | Mail/Jabber/Yahoo/MSN: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ Modern man has an approximately 140-character attention span. -- blr signature.asc Description: Digital signature
Re: Does Icedove have a "system tray" function?
Quoting AG on 2010-11-02 13:22:19: > will enable Icedove to be minimised to the "system tray" in GNOME & > still retain its functionality? A number of apps do, but I haven't I still use lenny on this laptop, but there's a package icedove-traybiff that may be what you're looking for. -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ 43190205 | Mail/Jabber/Yahoo/MSN: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ Modern man has an approximately 140-character attention span. -- blr signature.asc Description: Digital signature
Re: Orphaned User Accounts?
Quoting Carlos Mennens on 2010-11-02 16:09:41: > I de-select EVERYTHING and after logging in I find: (snip: list of static static uids from /etc/passwd) > understand why those accounts would appear but why do these accounts > appear in a fresh minimal installation with no trace of their > Is there a way to understand why Debian is configured so by default? > Are there official developers that browse this list that could give > insight to maybe a security reason or any other as to why we have > these 'orphaned' accounts in a fresh / new minimal install? IANADD, although Policy 9.2.[12] may shed some light on why. 9.2.1 Some user ids (UIDs) and group ids (GIDs) are reserved globally for use by certain packages. Because some packages need to include files which are owned by these users or groups, or need the ids compiled into binaries 9.2.2 0-99: Globally allocated by the Debian project, the same on every Debian system. These ids will appear in the passwd and group files of all Debian systems, new ids in this range being added automatically as the base-passwd package is updated. Packages which need a single statically allocated uid or gid should use one of these; their maintainers should ask the base-passwd maintainer for ids. -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ 43190205 | Mail/Jabber/Yahoo/MSN: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ Modern man has an approximately 140-character attention span. -- blr signature.asc Description: Digital signature
Re: apt-get install -- packet list from a file
Quoting kuLa on 2010-11-01 06:02:50: > > cat file-list|xargs apt-get -y install > >> apt-get install `sed "s/\n/ /" /your/listfile` > > > >> is much better. > > From my experience it's doing lookup only once cause you're passing > package names only once at start. ACK. > cat file-list|xargs apt-get -y install apt-get -y install foo (read db; grab foo; install foo; write new db) apt-get -y install bar (read db; grab bar; install bar; write new db) apt-get -y install baz (read db; grab baz; install baz; write new db) > apt-get install `sed "s/\n/ /" /your/listfile apt-get install foo bar baz (read db; grab foo, bar, baz; install foo, bar, baz; write new db) -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ 43190205 | Mail/Jabber/Yahoo/MSN: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ Modern man has an approximately 140-character attention span. -- blr signature.asc Description: Digital signature
Re: Saludos desde Cuba
This is an English-language list. please repost your question to debian-user-span...@lists.debian.org Esta es una lista de Inglés-idioma. Por favor, publicar sus preguntas a debian-user-span...@lists.debian.org Offtopic: Is this normal protocol for a message posted here when it's meant for -user-$LANG@, to simply redirect the user to the language-appropriate list? -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ 43190205 | Mail/Jabber/Yahoo/MSN: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ Modern man has an approximately 140-character attention span. -- blr signature.asc Description: Digital signature
Re: Howto add autostartup applications
Quoting Camaleón on 2010-10-09 06:07:19: > You can launch "gkrellm" by going to "system → prefs → sessions → > startup" and adding a new entry that points to the binary "/usr/bin/ > gkrellm". Wouldn't putting a .desktop file in ~/.config/autostart serve to make the program autostart on _any_ XDG-compliant system? That's what I'm getting from reading the spec (though it's marked Draft currently) http://standards.freedesktop.org/autostart-spec/autostart-spec-latest.html -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ 43190205 | Mail/Jabber/Yahoo/MSN: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ Modern man has an approximately 140-character attention span. -- blr signature.asc Description: Digital signature
Re: Text overlow in Iceweasel
Quoting Anthony Campbell on 2010-10-05 06:38:41: > I find that on certain sites, e.g. www.peterrussell.com, portions of > text are superimposed on top of one another - a sort of overflow. This > also happens with Iceape but not with Chromium-browser. I notice the problem on many sites as well, when I use my normal font settings (Liberation Serif 20pt, on a 1024x768 display specified as 96dpi in xorg). It seems to get worse, though, as I ctrl-mwheelup to enlarge the fonts. I've no net from my current location but I will follow up and try that specific site, both from this laptop and a machine configured for users having better sight. /* semi-OT rant */ I notice that a lot of sites still seem to be written by Quark, PageXPress and Publisher users and not by webdevs. Given the opportunity, I'd like to have a certain few so-called "webmasters" blindfolded, numbed, and made to browse their sites using only lynx, the keyboard, and a screen reader, to teach them the value of Web standards compliance. /* end rant*/ -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ 43190205 | Mail/Jabber/Yahoo/MSN: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ Modern man has an approximately 140-character attention span. -- blr signature.asc Description: Digital signature
Re: xfce4: periodic random backdrop change
Quoting Darac Marjal on 2010-09-29 04:12:18: > If you like random pictures, or want a GUI to do this, I can recommend > Wally[1] as a good wallpaper changers. It's one of the few that knows > about XFCE, too. > > [1] http://www.becrux.com/index.php?page=projects&name=wally I was bored yesterday, so I decided to try this out. Lot more user friendly than my cronjob. I've yet to measure the impact on system performance though, I'll probably measure that tonight. For modern systems, though, performance hit should be epsilon. -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ 43190205 | Mail/Jabber/Yahoo/MSN: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ Modern man has an approximately 140-character attention span. -- blr signature.asc Description: Digital signature
xfce4: periodic random backdrop change
I don't know how commonly known this is, but I figured it wouldn't hurt to throw this out there. 1. Create a backdrops list file using xfce, or by hand. I'll call this $LISTFILE. 2. Set your backdrop to $LISTFILE. 3. Place this script somewhere on your disk. ,[ xfce-reload-desktop ]- | #!/bin/sh | | (pidof xfdesktop 2&>/dev/null) && xfdesktop --reload ` 4. Add a user crontab entry. The desktop will change when this script's run. The example below runs every five minutes; crontab(5). */5 * * * * /usr/local/bin/xfce-reload-desktop -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ 43190205 | Mail/Jabber/Yahoo/MSN: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ /* Witty quotes of 68 chars or less here. Email me for more info. */ signature.asc Description: Digital signature
Re: Intel Corporation 82801BA/BAM AC'97 Audio Controller (rev 02)
Quoting Doug on 2010-09-16 21:52:00, in Message-Id <4c92d7d0.4000...@optonline.net> > > I have a medium-age Fry's computer that I bought new but on the cheap > with Lindows, or something like that instead of Win. It was a real > Linux without any aps, and you had to _buy_ any aps you wanted. It got > SuSE 9.x in jig time, and then on up to 11.1, when I gave up SuSE > because I could never get any sound out of it. The MOBO and the case > both have the same model number, GQ3121. I once had one of those machines, a Fry's GQ3121. if I recall, it has an SiS700 series chipset; I'd have to contact the new owner and let me see if he'll let me run lspci on it, or still has the folder with lspci, etc printouts. > I don't know what kind of sound processor it has. If you know of a > Linux command that will tell me what the sound chip is, lspci | grep audio -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ 43190205 | Mail/Jabber/Yahoo/MSN: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ /* Witty quotes of 68 chars or less here. Email me for more info. */ signature.asc Description: Digital signature
Re: How can I disable signature check for a Debian CD?
Quoting Kumar Appaiah on 2010-09-10 13:18:06, in Message-Id <20100910181805.gi13...@146653177.ece.utexas.edu> > If someone else can point our the "right" way, please do. ,[ /etc/apt/apt.conf.d/00trustcdrom ]- | APT::Authentication::TrustCDROM "true"; ` -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ 43190205 | Mail/Jabber/Yahoo/MSN: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ /* Witty quotes of 68 chars or less here. Email me for more info. */ signature.asc Description: Digital signature
Re: Straw poll: What browser do you use?
Quoting B. Alexander on 2010-09-07 08:16:26, in Message-Id > So what do others use? Most of the time I use elinks. For poorly-designed sites though I fire up Kazehakase or Iceweasel. As far as Iceweasel goes I've applied a lot of tweaks to my prefs.js to improve responsiveness on my IBM T23, although I've given up several features like 'undo close tab' and history to implement those. I'll probably create a diff between new profile and my current one if there's enough interest in seeing my tweaks. signature.asc Description: Digital signature
vim 7.x blockquoting scripts
I've been looking around for some blockquoting scripts for vim recently. All the ones I've encountered via Web searches apply some kind of text delimiter to it; the closest I can think of would be analogous to C comment style, seen in blockquote.vim. Before I get to writing my own, I'd like to find one which allows me to choose from among any of the three styles shown here. My fu's apparently weak tonight. ,[ debian-manifesto ]- | The time has come to concentrate on the future of Linux rather than on ` ---8<--- The time has come to concentrate on the future of Linux rather than on --->8--- The time has come to concentrate on the future of Linux rather than on the destructive goal of enriching oneself Thanks to Ian Murdock for the sample text. -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ 43190205 | Mail/Jabber/Yahoo/MSN: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ 68 chars, <0.5 tweet. Does that make me a 'tw', a 'wi', or an 'it'? signature.asc Description: Digital signature
Re: Debian FS structure.
Quoting Jordon Bedwell on 2010-08-30 07:10:33, in Message-Id <4c7b9fb9.6080...@envygeeks.com> > I'm wondering if you couldn't put them under /usr/share since it is > static. /usr/local/share ya mean? /usr/share, in my reading of FHS, seems to be mainly used for distributions to place their data. As I read FHS, I can see logic for stuff like what you want to store placed in either /usr/local/share or /srv. Quoting FHS, though: Local placement of local files is a local issue, so FHS does not attempt to usurp system administrators. -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ UIN: 43190205 | Mail/MSN/Jabber: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ "The most powerful optimization tool . . . may be the Delete key." -- Eric S. Raymond signature.asc Description: Digital signature
Re: Universally Change PS1 For All New Users
Quoting Carlos Mennens on 2010-08-04 11:40:33, in Message-Id Sorry to necro the thread; was reading through my archives and found this message just now :) > How can I force Debian to use a custom colored PS1 I have defined > under /root/.bashrc for all new users I create with 'useradd' or > 'adduser'? In /etc/profile: # cut here [ $BASH ] && . /etc/bash.bashrc PS1='foo $ ' # cut here With this method you can set PS1 to be compatible with POSIX-compliant shells, but if the user happens to choose bash you've got the full range of bash options available. The bash version is in /etc/bash.bashrc Note that I have only tested this with [db]ash, not {c,k,pdk}sh. -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ UIN: 43190205 | Mail/MSN/Jabber: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ "The most powerful optimization tool . . . may be the Delete key." -- Eric Raymond signature.asc Description: Digital signature
Re: How does Squeeze initialize PS1 ?
Quoting Paul E Condon on 2010-08-20 17:36:32, in Message-Id <20100820223632.gb2...@big.lan.gnu> > i.e. they are after a statement [ -z "$PS1" ] && return which, I > think, executes return if PS1 is empty. ACK. > The comment just before the above line of code is: "# If not running > interactively, don't do anything" For me, the implication of this > comment is that a non-empty PS1 IS the defining characteristic of > 'running interactively', but I would have thought 'interactive' should > be characterized by having a tty attached to sysin and sysout for > communication to a 'user'. s/sys/std/ as a matter of pedantry. [ -n $PS1 ] isn't what _defines_ a shell as being interactive. That's merely one test to determine if the shell's interactive or not. Another test would be to see if the value of $- contains 'i'. From bash(1): An interactive shell is one started without non-option arguments and without the -c option whose standard input and error are both connected to terminals (as determined by isatty(3)), or one started with the -i option. PS1 is set and $- includes i if bash is interactive, allowing a shell script or a startup file to test this state. > I can imagine that a non-empty PS1 is used as an indicator, in which Yes, it is used as an indicator, as stated above. > case whatever code that actually sets up the tty also sets PS1 to some > minimal non-empty value like a single space or a dot, but is this > actually the way it works, and where is it? It's actually the shell that sets $PS1 on startup. I don't have the bash source (or 1003.2 if it's defined there) on hand as I'm composing this offline, so I leave finding exactly where and how an exercise to the reader. While technically you CAN set PS1=' ', or even unset PS1, I wouldn't recommend it. The smallest I'd recommend setting it to is '\W:\$ ', or '\$ ' (note the trailing spaces). The former displays just the last component of your current directory, and the latter doesn't even display that, just a $ (or # if you're root) I further recommend against unsetting PS1 as without some kind of prompt you have little visual indication your current process is finished. A demonstration: bry...@esterhazy:~ OLDPS1=$PS1 bry...@esterhazy:~ unset PS1 find ~ -name "`apgwrap`" && echo done # [1] [2] done [1] apgwrap is the following: #!/bin/sh apg -a0 -n1 -m10 -x12 -MNCL -tc $(dd if=/dev/urandom bs=16 count=1 2>/dev/null) [2] the 'echo done' is there only to show when the process is finished. Without it I'd likely have sat waiting for quite a while. > Where can I read about these issues? See bash(1), or the info document for it if you have it installed. > Puzzled. Hope this explanation helps. -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ UIN: 43190205 | Mail/MSN/Jabber: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ "The most powerful optimization tool . . . may be the Delete key." -- Eric Raymond signature.asc Description: Digital signature
Re: Strange google chrome gdk error.
Quoting Angus Hedger on 2010-08-13 09:56:32, in Message-Id > [30220:30220:283489464055:ERROR:chrome/app/chrome_dll_main.cc(248)] > Gdk: shmget failed: error 28 (No space left on device) WARNING: I'm just talking from my posterior here, but it's about all I've got at this point. Maybe someone can correct me? In looking into this problem using various keywords , I haven't found anything specifically pointing at your issue, but I did find a lot of stuff that looked more recent than that link we looked at a while back. The first troubleshooting steps all the articles I read said to check available disk space and available inodes. I know from our previous conversations that you've got plenty of inodes and disk space free. Another thing those articles have in common is referencing the 'ipcs' and 'ipcrm' commands. I'm reading the manual pages as we speak. -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ UIN: 43190205 | Mail/MSN/Jabber: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ "The most powerful optimization tool . . . may be the Delete key." -- Eric Raymond signature.asc Description: Digital signature
Re: I was told to "MSN" somebody
Quoting Angus Hedger on 2010-08-11 06:09:39, in Message-Id > I would recommend pidgin if you just need the basics of msn (it does > support file transfer though), or amsn if you need more advanced stuff > such as webcam support, there are also tons of web based msn clients > [1] if you wish, > [1] > http://www.google.co.uk/search?hl=en&&sa=X&ei=moRiTNLuIKf60wTl_aGYCQ&ved=0CBQQBSgA&q=web+msn Seconded on both accounts. Also, the output of the following command will be helpful: $ aptitude search '~Gprotocol::msn-messenger' -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ UIN: 43190205 | Mail/MSN/Jabber: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ Any technology distinguishable from magic is insufficiently advanced signature.asc Description: Digital signature
Re: What to put on SSD
Quoting Jochen Schulz on 2010-08-05 04:27:26: > BTW, you can monitor lifetime writes with recent kernels for each > filesystem separately: > > $ sudo tune2fs -l /dev/mapper/manowar-home-crypt | grep ^Lifet > Lifetime writes: 785 GB > > This filesystem is almost exactly 13 months old and I think more than > half of the writes on my system go there. The rest is mostly package > upgrades (I am running sid). Do you know what kernel exactly is required? My kernel isn't new enough, or doesn't have the right options enabled, in order to show this: Linux esterhazy 2.6.26-2-686 #1 SMP Mon Jun 21 05:58:44 UTC 2010 i686 GNU/Linux This is an up-to-date Lenny system. -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ UIN: 43190205 | Mail/MSN/Jabber: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ Any technology distinguishable from magic is insufficiently advanced signature.asc Description: Digital signature
Re: aptitude in lenny: cmdline queueing of packages
Quoting Daniel Burrows on 2010-05-03 09:07:37: > Add --schedule-only to the command-line. Upon grepping the manpage for --schedule-only, I see it (also after having taken a bit of time away from the problem). Oversight on my part. Thanks, and sorry to have taken your time with that Daniel. -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ UIN: 43190205 | Mail/MSN/Jabber: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ Any technology distinguishable from magic is insufficiently advanced signature.asc Description: Digital signature
aptitude in lenny: cmdline queueing of packages
In Aptitude, I can execute queued package modification orders (install, remove, etc) by use of 'aptitude install', with no arguments. How does one queue packages using only the command line? I'm looking to duplicate the following sequence done in the curses UI: sudo aptitude /* browse package lists, find desired pkgs to install */ Q Standard information sources (README, usd/aptitude, etc) were no-go as to getting the information. Any pointers would be appreciated. -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ UIN: 43190205 | Mail/MSN/Jabber: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ Any technology distinguishable from magic is insufficiently advanced signature.asc Description: Digital signature
Re: shouldn't apt-get upgrade, you know, upgrade ?
Quoting Johan Grönqvist on 2010-04-05 23:50:37: > > I think you may be interested in the dist-upgrade command instead. Now called full-upgrade (though dist-upgrade remains for backcompat). upgrade is now safe-upgrade. -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ UIN: 43190205 | Mail/MSN/Jabber: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ Any technology distinguishable from magic is insufficiently advanced signature.asc Description: Digital signature
Re: horrible mc colorscheme
Quoting Matthew Moore on 2010-04-05 22:22:55: > Heresy! zsh is *always* the right tool for the job. As a corollary, if zsh is > not the right tool for the job, then it is not, in fact, a job. Welcome to my random-sigblock file, Matthew, even though it's over 69 charaters. -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ UIN: 43190205 | Mail/MSN/Jabber: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ Any technology distinguishable from magic is insufficiently advanced signature.asc Description: Digital signature
Re: How to list packages in various priorities or sections
Quoting Mike Viau on 2010-04-05 17:14:42: > Thanks for the tip. I noticed ~p works with all but the essential > priority for some reason. 'Essential' isn't a priority, per Policy 2.5 [1] Rather, Essential is a control file field; Policy 3.8 [2] and 5.6.9 [3]. To select Essential packages, use the search term '~E' [4]. DOC=/usr/share/doc/ #because these paths are long [1] $DOC/debian-policy/policy.html/ch-archive.html#s-priorities [2] $DOC/debian-policy/policy.html/ch-binary.html#s3.8 [3] $DOC/debian-policy/policy.html/ch-controlfields.html#s-f-Essential [4] $DOC/aptitude/README lines 2902-2904 -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ UIN: 43190205 | Mail/MSN/Jabber: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ Any technology distinguishable from magic is insufficiently advanced signature.asc Description: Digital signature
Re: Multiple, non-concurrent repositories?
You replied to me personally, instead of the list. This fixes that. Quoting Rogerio Luz Coelho on 2010-03-27 20:39:07: > You can use pinnig ... you are looking for the "origin" keys in > Pinning to accomplish this. > > Put all the sources in the sources.list file and creae a > /etc/apt/preferences list that looks something like: > > Package: * > Pin: origin HomeRepo.com > Pin-Priority: 850 > > Package: * > Pin: origin DebRepo.com > Pin-Priority: 750 > > Rogerio Everything's working so far with only the main repo pinned at 750. Would I have to pin all the Debian entries (backports, security, volatile) at 750 as well, or are they not relevant? I have no backports, security, volatile in my home repository, obviously. -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ UIN: 43190205 | Mail/MSN/Jabber: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ Any technology distinguishable from magic is insufficiently advanced signature.asc Description: Digital signature
Re: Multiple, non-concurrent repositories?
You replied to me personally, instead of the list. This fixes that. Quoting Rogerio Luz Coelho on 2010-03-27 20:39:07: > You can use pinnig ... you are looking for the "origin" keys in > Pinning to accomplish this. > > Put all the sources in the sources.list file and creae a > /etc/apt/preferences list that looks something like: > > Package: * > Pin: origin HomeRepo.com > Pin-Priority: 850 > > Package: * > Pin: origin DebRepo.com > Pin-Priority: 750 > > Rogerio Everything's working so far with only the main repo pinned at 750. Would I have to pin all the Debian entries (backports, security, volatile) at 750 as well, or are they not relevant? I have no backports, security, volatile in my home repository, obviously. -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ UIN: 43190205 | Mail/MSN/Jabber: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ Any technology distinguishable from magic is insufficiently advanced signature.asc Description: Digital signature
Multiple, non-concurrent repositories?
I don't have Internet access from home for my laptop, so I access it from a friend's house. At home, I have a Lenny repo set up using reprepro (I'll call it homeRepo), and things install from there okay. When I have network access, I install packages from the official Debian repositories (here called debRepo), so packages can never be installed from both homeRepo and debRepo at the same time. that's all good. My problem lies in the fact that I have to edit my sources.list and update the package lists each time I change sites, so that I have access to that site's repository. I've checked the documentation, without success, for a way, without having to change config files every time I change sites, to specify "Install package foobar, preferably from debRepo, but if debRepo doesn't work, then install from homeRepo, and only if homeRepo doesn't work, then give standard failure message." I've made some progress in figuring out how to do this, but my method still has a few snags: leave _both_ the homeRepo and debRepo entries uncommented in my sources.list. The snag here comes when I see a DSA, see if I need to upgrade, and if so, update && safe-upgrade -- I get (expected) errors that homeRepo can't be found and every package in homeRepo is marked Untrusted until I update from home. (unexpected, but that's another thread) I am aware of 'aptitude install package=version' and 'package/archive'. Something that just struck me as I was composing this mail: Would it be a more effective solution to my problem (than what I'm currently using) to change homeRepo's archive name from 'lenny' to something else, then when I want to install a package from homeRepo, do 'aptitude install foopackage/somethingelse'? The way I see it, though, it wouldn't settle the update issue. As an aside, the homeRepo is mainly intended for installing packages until I can get to a network connection, at which time they'll be upgraded on my next upgrade run. -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ UIN: 43190205 | Mail/MSN/Jabber: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ Any technology distinguishable from magic is insufficiently advanced signature.asc Description: Digital signature
Re: unexpected problem with icedove : hundred of storaged mails no longer have a body !
Quoting Mike Dresser on 2010-03-03 15:14:02: > Icedove has a 4gb folder size limit.. could you have hit that? If his email traffic is anything like mine, then he should have plenty of room within that 4GiB limit, considering he has less than 3000 messages -- A 30K-message maildir is only 54MB gzipped. Icedove, IIRC, stores messages in an mbox-like format. I believe Angus would have some experience in this regard. I'll give him a link to this post. -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ UIN: 43190205 | Mail/MSN/Jabber: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ Any technology distinguishable from magic is insufficiently advanced signature.asc Description: Digital signature
Re: col command broken
Quoting Jude DaShiell on 2010-03-25 17:01:43: > When I find out what package provides col, I'll do a report-bug on it bry...@esterhazy:~$ dpkg -S `which col` bsdmainutils: /usr/bin/col It's provided by the package 'bsdmainutils'. dpkg can do way more than installing and removing packages, as I just found out tonight. > With the latest update of col that I got though, running that command > no longer cleans up typescript files and just leaves them in their > original form. The 'col' I have [1] doesn't completely clean the script files either -- it removes the escape character, but leaves the printable characters that form the rest of the escape sequence, which seems to me to be working as intended. Could be misreading what little documentation exists for it though. -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ UIN: 43190205 | Mail/MSN/Jabber: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ Any technology distinguishable from magic is insufficiently advanced signature.asc Description: Digital signature
Re: Fresh Debian Install w/o Exim?
Quoting Carlos Williams on 2010-03-02 09:28:13: > I thought I was purging the package, no? > > #apt-get remove --purge exim4 As implied by Boyd in a sibling post, the package 'exim4' is what's termed a metapackage, a package whose only role is to pull in other packages via Depends. The package management toolchain doesn't assume you also want to purge the packages exim4 depends on. As It Should Be, IMHO. You can see this easily if you have package 'debtags' installed. In the description pane, you can see the package tags, one of which is role::metapackage. Probably the most succinct definition is in aptitude, actually. Start a new debtags browser view, and select role::metapackage. One of the References should have more information. I don't remember if it's the user or developer reference though -- no net access as I write this mail. -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ UIN: 43190205 | Mail/MSN/Jabber: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ Any technology distinguishable from magic is insufficiently advanced signature.asc Description: Digital signature
Re: Automatically remounting CIFS share
Quoting Scott Gifford on 2010-02-16 14:41:14: > Is there a way to get similar behavior from a CIFS server, where a rebooted > fileserver will automatically be remounted when it comes back? Hi Scott. If my mental model of your problem is correct, then your problem can be solved by adding an entry to the Debian box's crontab, which runs a script that attempts to touch a file on the NAS. If it works, return 0. If it fails, the script should remount the CIFS share, and optionally write a warning to syslog, send a text message to an admin, or whatever your site's procedure specifies. The crontab should be fired fairly frequently to minimize downtime, but use discretion of course. To me, '*/5 * * * *' should be fast enough to limit downtime, but not so fast as to effectively DoS yourself. I've only applied minimal testing to this method, yanking the network cable to simulate an outage of the CIFS server. Works okay for me, but more testing would probably be necessary. -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ UIN: 43190205 | Mail/MSN/Jabber: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ Any technology distinguishable from magic is insufficently advanced. signature.asc Description: Digital signature
Re: Bash question: get output as a variable?
Quoting Stephen Powell on 2010-02-04 18:06:58: > but in the general case, it's hard to tell. Since stdout and > stderr both default to the terminal, and since the doc doesn't > say, how else would you know other than by trial and error? Trial and error is an effective way to figure it out. [1] Depending on a few factors though, it may be more instructive long-term to read the source. I've recently been putting that philosophy to use in various things where the documentation's not quite clear. Both methods have their merits. [1] possibly redirect std{out,err} to separate temp files and view them? -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ UIN: 43190205 | Mail/MSN/Jabber: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ Any technology distinguishable from magic is insufficently advanced. signature.asc Description: Digital signature
Re: string occurrences
Quoting Clive Standbridge on 2010-01-26 15:58:00: > Brian seems to have thought of everything. Not everything :) Trying to learn, to the point of mastery, two languages at once though. Eric's (no pipe to wc) works far better when you're just interested in the number of lines that match, and not interested in the count -- and runs faster to boot. As an example, given the file [1]... [1] foobar foobaz foovax kremvax vaxvax super-foonly foo fighters [end 1] If we wonder only how many lines have 'foo' in them, and we use Eric's construct, we get the following: bry...@esterhazy:~$ do strings /tmp/foo | grep -oce foo # prints 3 Slightly different tools for slightly different problems, I guess :) Now, running each 1000 times on my 1.1GHz P3 laptop: bry...@esterhazy:~$ time for x in $(seq 1000); do strings /tmp/foo | grep -oce foo >/dev/null; done # How many lines contain 'foo'? bry...@esterhazy:~$ time for x in $(seq 1000); do strings /tmp/foo | grep -oe foo | wc -l >/dev/null; done # How many times does 'foo' occur? EricBrian real8.675 12.172 user2.9484.008 sys 5.3407.800 This thread actually gave me a slightly better understanding of grep and pipelines. I assumed that adding a pipe would slow it down a bit, but never could get off my corpulent posterior to look into put some hard data into my hyptothesis. -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ UIN: 43190205 | Mail/MSN/Jabber: brianlry...@gmail.com ..: X ASCII ribbon campaign against HTML mail and v-cards: asciiribbon.org / \ This is my .signature. There are many like it, but this one is mine. signature.asc Description: Digital signature
Re: Highmem and lowmem
Quoting Stan Hoeppner on 2010-01-24 14:08:57: > And it seems that he's using debian-users as a personal tutor while > building his system, asking here first thing every time he runs into a > small gotcha, even the really simple stuff. Look at his posts, and the > volume of such, for the past month. I just do what several of my friends did to me when I first switched to Debian, and back to *nix, after having been assimilated for so long by the Borg: Just link to http://catb.org/~esr/faqs/smart-questions.html. After a couple weeks, it caught on. > Maybe I'm being a bit hypocritical, as I tended to flood #debian on > IRC eons ago when I first started using Debian. I wouldn't call it hypocrisy, Stan. I'd call it something one would grow out of. Anything else I can contribute to this thread has already been posted, unfortunately. -- _ Brian Ryans 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 . ( ) ICQ UIN: 43190205 | Mail/MSN/Jabber: brianlry...@gmail.com ..: X ASCII Ribbon Campaign Against HTML mail and v-cards: asciiribbon.org / \ "I hate having empty space in my .sig" -- me signature.asc Description: Digital signature
Re: string occurrences
Quoting roberto on 2010-01-23 15:33:53: > is there any linux built-in utilities to count how many times a string > occur in a text file ? I don't know of any actual utilities to do so, but there's a handy little pipeline that I use as a generic string-counter that, so far, works for all files I've tried, printable or not. $ strings $yourFile | grep -oe '$yourString' | wc -l where $your{File,String} are the file you want to search, and the string (actually a regex) you want to search for, respectively. These are extremely powerful commands, and from my experience are all fairly universal. For more information, see their relevant manpages: strings(1), grep(1), and wc(1). -- _ ASCII Ribbon Campaign Against ( ) Brian Ryans HTML E-mail and V-cards Xbrianlry...@gmail.com www.asciiribbon.org / \ GPG Public Key 0xC11213D0 Key Fingerprint: 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 signature.asc Description: Digital signature
Re: Re: Decode unixtime
Quoting Clive Standbridge on 2010-01-16 15:31:19: > How about > date -I > date -Iseconds > > Sortable, readable, parseable and standard to boot. Wow, thanks for that Clive. Easier to remember, too. I just tried it in a shell one-liner, and I used a bit less logic to parse it than other methods I've tried in the past. The below is for the benefit of those who are just joining this thread: For programs that expect strftime(3) format [1] this is equivalent to -Iseconds (which isn't even documented in date(1)'s manpage in Lenny) date +'%FT%T%z' # the part in single quotes is passed straight to # strftime(3) if I believe, someone correct me if # I'm wrong, please. A simple '%F' is equivalent to 'date -I'. [1] such as Irssi's or xchat's log format specifiers, various syslogd implementations (IIRC)... -- _ ASCII Ribbon Campaign Against ( ) Brian Ryans HTML E-mail and V-cards Xbrianlry...@gmail.com www.asciiribbon.org / \ GPG Public Key 0xC11213D0 Key Fingerprint: 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 signature.asc Description: Digital signature
Re: Decode unixtime
Quoting Chris Jones on 2010-01-15 02:56:11: > behaves a bit more like a text-mode web browser. pinfo's maintainer would agree with you. Quoting 'apt-cache show pinfo': Description: An alternative info-file viewer pinfo is an viewer for Info documents, which is based on ncurses. The key-commands are in the style of lynx. If it weren't for this thread, I'd not have known about pinfo, I'll give it a whirl. PS. Chris, if you get CCd in this, I apologize. I've acquired muscle memory to press 'r' to reply, instead of 'l' for list-reply. -- _ ASCII Ribbon Campaign Against ( ) Brian Ryans HTML E-mail and V-cards Xbrianlry...@gmail.com www.asciiribbon.org / \ GPG Public Key 0xC11213D0 Key Fingerprint: 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 signature.asc Description: Digital signature
Re: Decode unixtime
Quoting Paul E Condon on 2010-01-15 01:09:33: > I suggest that you change the way you get the numbers so that they are > both human readable and parsable by simple code. I like date > +%Y%m%d_%H%M%S +%F_%T is what I use when spaces aren't desirable in dates. See my quoting line for a slightly modified example of it. From my experience, it's equally able to be parsed by software, and (IMO) easier to parse by wetware. [#include usDateFormatRant.txt] -- _ ASCII Ribbon Campaign Against ( ) Brian Ryans HTML E-mail and V-cards Xbrianlry...@gmail.com www.asciiribbon.org / \ GPG Public Key 0xC11213D0 Key Fingerprint: 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 signature.asc Description: Digital signature
[SOLVED] Permission denied when changing fan speed on T23 (Lenny)
I forgot to mark my previous reply to this thread solved, silly me :) I've also written a little script for the benefit of those who may have a similiar problem in the future and find this via the archives or by google. Due to the triviality of this script, I'm declaring it to be public domain. -- _ ASCII Ribbon Campaign Against ( ) Brian Ryans HTML E-mail and V-cards Xbrianlry...@gmail.com www.asciiribbon.org / \ GPG Public Key 0xC11213D0 Key Fingerprint: 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 #!/usr/bin/env sh # Public-domain fan control script for IBM Thinkpad laptops. Tested on a T23. # Very kludgy, use at your own risk, may contain bugs, no warranty, etc etc. declare ibmfan='/proc/acpi/ibm/fan' display_status() { speed=$(grep ^speed $ibmfan | cut -d: -f2 | tr -d '[:space:]') level=$(grep ^level $ibmfan | cut -d: -f2 | tr -d '[:space:]') echo "level $level at ${speed}rpm" } # user entry point [ -z "$1" ] && display_status action=$1 case "$action" in 0|1|2|3|4|5|6|7)echo "level $action" > $ibmfan ;; f*|m*) echo "level full-speed" > $ibmfan ;; a*) echo "level auto" > $ibmfan ;; esac signature.asc Description: Digital signature
Re: Help Please !
Quoting Kwaku Obeng on 2009-12-25 14:22:12: > I have been trying to download the DVD packs ... but always end up > with a corrupt copy which I am unable to boot from. I therefore wish > to make an appeal to any of you who can send me a copy of the Debian > 5.0 DVD Pack. Welcome to Debian, Kwaku. I unfortunately do not know of any Debian distributors in Ghana, but the site listed at [1] should help. [1] http://www.debian.org/CD/vendors/ -- _ ASCII Ribbon Campaign Against ( ) Brian Ryans HTML E-mail and V-cards Xbrianlry...@gmail.com www.asciiribbon.org / \ GPG Public Key 0xC11213D0 Key Fingerprint: 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 signature.asc Description: Digital signature
Re: Debian Etch Install
Quoting Stan Hoeppner on 2009-12-20 15:35:26: > Local media installs are for pussies, or masochists. ;) Or those lacking a decent network connection from where the machine will primarily be used. :) Blessed Solstice. -- _ ASCII Ribbon Campaign Against ( ) Brian Ryans HTML E-mail and V-cards Xbrianlry...@gmail.com www.asciiribbon.org / \ GPG Public Key 0xC11213D0 Key Fingerprint: 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 signature.asc Description: Digital signature
Re: Msn protocol
Quoting Leandro Quibem Magnabosco on 2009-12-10 07:02:00: > I've just read in another list that pidgin from backports is working too. Yes, pidgin from lenny-backports works. Simply add backports to your sources.list. Full instructions can be found at [1], don't exactly remember where within the site though. It's been a few days since I've set this up. [1] http://www.backports.org Hope this helps :) -- _ ASCII Ribbon Campaign Against ( ) Brian Ryans HTML E-mail and V-cards Xbrianlry...@gmail.com www.asciiribbon.org / \ GPG Public Key 0xC11213D0 Key Fingerprint: 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 signature.asc Description: Digital signature
Re: Msn protocol
send 560116 thanks Please see Debian bug #560116, "Pidgin 2.4.*: Can't Connect to MSN Messenger". Apparently Microsoft have changed their MSN Messenger protocol _yet again_ -- Several clients of mine who use Woe{XP,Vista,7} all asked me about 'mandatory wlm updates'. This bug is available via www at [1], or by sending an email containing the first two lines of the body of my message to [2]. [1] http://bugs.debian.org/560116 [2] requ...@bugs.debian.org I do not have Internet access at the time I compose this email, so the syntax of [1] may be off. Someone correct me if I'm wrong. Offtopic: Would it work if Roy simply forwarded this mail to [2], since I included the commands at the beginning of the mail? Quoting Roy on 2009-12-10 05:43:19: > Hello, > > Is anyone from you guys using Msn protocol, and unable to bring it up? > > It has been two/tree days now, unable to use Pidgin or Centerim, and so > is a friend of my .. also Debian. Thanks in advance. -- _ ASCII Ribbon Campaign Against ( ) Brian Ryans HTML E-mail and V-cards Xbrianlry...@gmail.com www.asciiribbon.org / \ GPG Public Key 0xC11213D0 Key Fingerprint: 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 signature.asc Description: Digital signature
Re: Permission denied when tweaking various /proc knobs (Lenny)
Thanks, I wasn't paying attention to the 'bash' part, only to the 'permission denied' part. :> PEBKAC on my part. -- _ ASCII Ribbon Campaign Against ( ) Brian Ryans HTML E-mail and V-cards Xbrianlry...@gmail.com www.asciiribbon.org / \ GPG Public Key 0xC11213D0 Key Fingerprint: 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 signature.asc Description: Digital signature
Permission denied when tweaking various /proc knobs (Lenny)
I am attempting to adjust brightness via '/proc/acpi/ibm/brightness', but I get permission denied if I do it via sudo -- I have to su to root in order to do the adjustments. Log at [1]. [1] bry...@esterhazy:~$ sudo echo up > /proc/acpi/ibm/brightness bash: /proc/acpi/ibm/brightness: Permission denied bry...@esterhazy:~$ su Password: esterhazy:/home/bryans# echo up > /proc/acpi/ibm/brightness /* Display brightness increases */ [end 1] I am in my /etc/sudoers file with all permissions. My /etc/sudoers file, with comments stripped, is at [2]. [2] Defaultsenv_reset rootALL=(ALL) ALL bryans ALL=(ALL) ALL [end 2] My sudoers seems alright as I can execute other privileged commands with no difficulty, just not mess around with the files in /proc (those few I've tried) I don't think it _can_ be a permissions issue, as by my understanding, absolutely no permission checks are applied to root by userspace -- though correct me if I'm wrong. I tried to "sudo echo h > /proc/sysrq-trigger", and again was denied. This led me to look in "$linux/kernel/sysrq.c", but I found nothing useful in determining why I can't do this using sudo. I'm left to several possibilities: 1. I'm misunderstanding some documentation somewhere (PEBKAC) 2. sudo cannot allow me to do this, possibly due to restrictions elsewhere in the kernel [3] 3. I'm able to do this, but I'm just not looking in the right place for how to enable it [3] Highly unlikely, by my knowledge. -- _ ASCII Ribbon Campaign Against ( ) Brian Ryans HTML E-mail and V-cards Xbrianlry...@gmail.com www.asciiribbon.org / \ GPG Public Key 0xC11213D0 Key Fingerprint: 8B2A 54C4 E275 8CFD 8A7D 5D0B 0AD0 B014 C112 13D0 signature.asc Description: Digital signature