Re: how to determine the interpreter
On Fri, Nov 26, 2010 at 23:11, Stephen Powell wrote: > On Fri, 26 Nov 2010 11:40:32 -0500 (EST), Joao Ferreira wrote: > > seems that $0 simply contains the program being run and not the > > interpreter that is running it... > > Hmm. You're right. > > echo $0 > > works at a shell prompt, but not within a script. I tried it > within a script, sort of, by sourcing it. For example, > > . my_script > > and it seems to work that way, but not when the script is invoked > by name as a command. So far, > > ls -Al /proc/$$/exe > > seems to be the best suggestion, but then of course you'll have > to parse the output. > > When I'm writing scripts, I try to use the "least common denominator" > approach. In other words, I use code that works with any shell > if I can. If I really need to make use of a feature that only > works in one particular shell (usually bash), I just force bash > to be used by the special comment in line 1: > > #!/bin/bash > > And then I know it will always be run by bash, regardless of which > shell is the default on the system. > > -- > .''`. Stephen Powell > : :' : > `. `'` > `- > > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact > listmas...@lists.debian.org > Archive: > http://lists.debian.org/28512199.657528.1290793315750.javamail.r...@md01.wow.synacor.com > > Install "realpath" package. Then try realpath /proc/$$/pid
Re: upgrade to squeeze fails for NFS-rooted system
deb...@good-with-numbers.com put forth on 11/27/2010 11:50 PM: > Upgrading lenny to squeeze fails with the following message during > "apt-get upgrade": > > -- > Preparing to replace mount 2.13.1.1-1 (using .../mount_2.17.2-3.3_amd64.deb) > ... > You have NFS mount points currently mounted, and this version of mount > requires that nfs-common be upgraded before NFS mounts will work. > > Aborting install. > dpkg: error processing /var/cache/apt/archives/mount_2.17.2-3.3_amd64.deb > (--unpack): > subprocess pre-installation script returned error exit status 1 > Errors were encountered while processing: > /var/cache/apt/archives/mount_2.17.2-3.3_amd64.deb > E: Sub-process /usr/bin/dpkg returned an error code (1) > -- > > Yes, I do have an NFS mount--my whole filesystem: > > -- > # mount > /dev/nfs on / type nfs (rw) > [...] > -- > > So how do I upgrade? See: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=493095 Did you upgrade apt-get, aptitude, and dpkg before attempting the full upgrade? Did you try "aptitude safe-upgrade" as well as "apt-get upgrade"? Did you try manually upgrading nfs-common, nfs-utils, and mount, individually, before performing the rest of the upgrade. Did you attempt any troubleshooting before firing off this email to debian-user? As noted in the bug report by one of the devs, they assume a sysadmin capable of setting up diskless workstations is smart enough to figure his way around this bug... -- Stan -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4cf2030d.70...@hardwarefreak.com
upgrade to squeeze fails for NFS-rooted system
Upgrading lenny to squeeze fails with the following message during "apt-get upgrade": -- Preparing to replace mount 2.13.1.1-1 (using .../mount_2.17.2-3.3_amd64.deb) ... You have NFS mount points currently mounted, and this version of mount requires that nfs-common be upgraded before NFS mounts will work. Aborting install. dpkg: error processing /var/cache/apt/archives/mount_2.17.2-3.3_amd64.deb (--unpack): subprocess pre-installation script returned error exit status 1 Errors were encountered while processing: /var/cache/apt/archives/mount_2.17.2-3.3_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) -- Yes, I do have an NFS mount--my whole filesystem: -- # mount /dev/nfs on / type nfs (rw) [...] -- So how do I upgrade? -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20101128055022.ga...@adsl-64-142-29-25.sonic.net
Re: unloading unnecessary modules
Mag Gam put forth on 11/27/2010 11:06 AM: > Stan, > > Correct. On my severs I too have sound cards and USB. I don't really > need them so I would rather unload them. I suppose I can do a macro > benchmark and state if it helped or not but I would like to know on a > micro level to see if it helped. I think one possibility is to do > "lat_pipe" from lmbench to measure transaction latency of a UNIX pipe. > > My goal is to have the most optimal kernel/tuning since our > application is very latency sensitive. In that case modules aren't your worry--the kernel interrupt timer is, along with scheduled tasks. For latency sensitive apps, you need a kernel with something like CONFIG_HZ=1000 or greater, which IIRC used to be the "workstation" default. The "server" default is 250Hz. Also, IIRC, the current Debian kernels implement tickless timers to allow better integration as virtual machine guests. For latency sensitive apps, you'd don't want a tickless timer. If you have a latency sensitive app: 1. Use a kernel with CONFIG_HZ=1000 (or greater) 2. Eliminate all possible cron jobs or schedule them to run at times when it won't impact the latency of your application. I.e. make sure no processes fire unexpectedly which may impact the latency of you application. On today's multicore systems this is less of a problem than it once was as your application can continue to run on the core which is executing it while a new process will be fired up on another core. When/if in doubt, minimize unexpected process execution. 3. If the application is disk I/O bound, make sure you have plenty of write cache, and a stripe (RAID6/10) of a sufficient number of spindles. RAID10 is optimal for low latency. RAID6 can suffer read-modify-write cycles which will increase latency. If you have large write cache, and your app never bursts an amount of data larger than the cache, then RAID6 may be fine. Testing is your friend here. Also note that the XFS filesystem offers the "realtime" sub volume which can decrease latency. It was originally developed for streaming media applications such as digital broadcast systems that replaced teh traditional tape systems: http://xfs.org/docs/xfsdocs-xml-dev/XFS_User_Guide//tmp/en-US/html/ch04s09.html 4. If the application is sensitive to network latency, use a NIC and driver that supports TCP offload processing. If the application needs DNS name resolution of remote systems, consider installing a local caching resolver such as pdns-recursor, which can reduce lookup latency considerably for cached results. -- Stan -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4cf1df5b.6030...@hardwarefreak.com
Re: My server catched a rootkit?
On Sat, Nov 27, 2010 at 3:38 PM, Brian wrote: > Your course of action will depend on the confidence you place in > rkhunter. Mine is zero, but if your reading of its reports is convincing > and you think it tells you anything important about your system your > only option is to reinstall. Not because there is anything untoward > about the server but because you you have entered a state of insecurity. > If chkrootkit was installed after your problems appeared its logs are > valueless. IMHO, it's another tool in the toolbox. The secret is that you need to be using multiple tools, and employing them in such a way that if one is defeated, that action should set off at least one other one. > Then you could ask yourself: there are over 1,000 million computers on > the internet; why me? Easy target or low-hanging fruit. Scriptkiddies will tend to scan for a specific exploit, and scan large blocks of addresses. His server probably showed up in a scan. > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org > Archive: http://lists.debian.org/20101127203853.gm20...@desktop > > -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktini0a0kop8_qzzjpwyp4ulctadfgde6jqhkq...@mail.gmail.com
Re: Opinions about Laptop and Debian - Nvidia vs Radeon
I had an ATI card in my work desktop on my prior job. I left that job last week, so I can't access the model information. When I first got the box (a c2d HP, as I recall), I was able to run the fglrx driver and get full 3D. I prefer to run kde 4.x under Compiz, which I was able to do on this box. About fglrx 10-2, this functionality broke, and it was such that I was unable to roll back to the older driver. I generally stick with nVidia...and I use the evil binary drivers. --b On Sat, Nov 27, 2010 at 8:32 PM, Ivan Marin wrote: > Hi all, > > I'm planning to get a laptop soon and gonna run Debian on it. I'm > gonna need a few things: > > - HDMI/DVI output support, as I usually use a 22' Dell external monitor; > - A good processor, at least i5/i7 Lynnfield/Arrandale; > - A good video card, with good 3D support on Debian - I develop a > VTK/OpenGL application, so 3D is paramount, even if I don't like to > run binary blobs; > - 4GB RAM at least. > - The bigger the screen the better, but the external monitor use will > dominate; > - Need a laptop, not a desktop, for mobility purposes. > > I've searcher fo a few options, and so far in the price range that > I've set ($1300-1500 US dollars, gonna buy the computer in the US) the > Alienware M11x with an 1GB Nvidia GT 335M or a Alienware M15x with a > 1GB DDR3 ATI Radeon Mobility HD 5730. The Nvidia cards with the binary > installer so far has satisfied my needs of 3D and performance (both > with a GTS 9300M and a GTX 260 on a desktop), but there are some > threads complaining about the binary driver and this card, mainly > about the battery performance. > > It seems that the Radeon, both the binary and the open driver are > working/getting better, but I still remember the times with the FGLRX > hell. The support for the rest of the hardware seems to be not > optimal, and even if I'm usually compile my own kernels, the closest > to the Debian way the better - or the easiest the better, as with the > Nvidia binary installer. > > What are your opinions/thoughts about the requirements and the > problems? Any experiences with the especific hardware or suggestions > of other brands/configurations? The only brands that I avoid are HP > (REALLY bad screens) and Acer (too fragile). > > Thanks a lot! > > > Ivan > > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org > Archive: > http://lists.debian.org/aanlktinwfxwy9c_gyf=etwu=kkodxaexecjba0zlg...@mail.gmail.com > > -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktiny=5pxz25iddbgzonmpacno8=khuvjaeuzh...@mail.gmail.com
Re: error message from openvpn.
peasth...@shaw.ca wrote: > An OpenVPN tunnel is failing and this message is in /var/log/syslog. > Nov 27 16:17:07 joule ovpn-myvpn[1827]: read UDPv4 [ECONNREFUSED]: > Connection refused (code=111) > > Google finds references to some of the words but nothing explains > the meaning of ECONNREFUSED or of (code=111). > > Any clues? Thanks, ... Peter E. For documentation on ECONNREFUSED see the connect(2) man page. $ man 2 connect ... ECONNREFUSED No-one listening on the remote address. If no one is listening then the packet is rejected. I would look to see that the ports match up on both sides of the OpenVPN connection. I would look that it is allowed through the firewall. The default OpenVPN port is 1194. You would want to make sure that the same port is configured on both sides and that it is allowed through any firewall between and on each machine. Bob signature.asc Description: Digital signature
Opinions about Laptop and Debian - Nvidia vs Radeon
Hi all, I'm planning to get a laptop soon and gonna run Debian on it. I'm gonna need a few things: - HDMI/DVI output support, as I usually use a 22' Dell external monitor; - A good processor, at least i5/i7 Lynnfield/Arrandale; - A good video card, with good 3D support on Debian - I develop a VTK/OpenGL application, so 3D is paramount, even if I don't like to run binary blobs; - 4GB RAM at least. - The bigger the screen the better, but the external monitor use will dominate; - Need a laptop, not a desktop, for mobility purposes. I've searcher fo a few options, and so far in the price range that I've set ($1300-1500 US dollars, gonna buy the computer in the US) the Alienware M11x with an 1GB Nvidia GT 335M or a Alienware M15x with a 1GB DDR3 ATI Radeon Mobility HD 5730. The Nvidia cards with the binary installer so far has satisfied my needs of 3D and performance (both with a GTS 9300M and a GTX 260 on a desktop), but there are some threads complaining about the binary driver and this card, mainly about the battery performance. It seems that the Radeon, both the binary and the open driver are working/getting better, but I still remember the times with the FGLRX hell. The support for the rest of the hardware seems to be not optimal, and even if I'm usually compile my own kernels, the closest to the Debian way the better - or the easiest the better, as with the Nvidia binary installer. What are your opinions/thoughts about the requirements and the problems? Any experiences with the especific hardware or suggestions of other brands/configurations? The only brands that I avoid are HP (REALLY bad screens) and Acer (too fragile). Thanks a lot! Ivan -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktinwfxwy9c_gyf=etwu=kkodxaexecjba0zlg...@mail.gmail.com
error message from openvpn.
Folk, An OpenVPN tunnel is failing and this message is in /var/log/syslog. Nov 27 16:17:07 joule ovpn-myvpn[1827]: read UDPv4 [ECONNREFUSED]: Connection refused (code=111) Google finds references to some of the words but nothing explains the meaning of ECONNREFUSED or of (code=111). Any clues? Thanks, ... Peter E. -- Telephone 1 360 450 2132. 7785886232 is gone. Shop pages http://carnot.yi.org/ accessible as long as the old drives survive. Personal pages http://members.shaw.ca/peasthope/ . -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/171056699.66931.63...@heaviside.invalid
Re: VLC player doesn't playback correctly
Hi, 27/11/2010 13:16, Matthias Andersson wrote: > On 11/27/2010 09:18 AM, Joel Roth wrote: >> aptitude search ~S~i\(~mmarillat\!~Odebian\) > > > Ok, I removed all packages that came up with that search; > > debian-multimedia-keyring > libdvdcss2 ^^ Maybe you shot yourself in the foot here, it's needed to read a commercial dvd... > libfaac0 > libmp3lame0 > libx264-104 > livxvidcore4 > mplayer > > > At first glance that doesn't seem to have solved the issue... > > //Matthias > > I use vlc pretty heavily together with debian-multimedia, it is true that there were incompatibilities at some point (and it may happen again in the future) , well documented on debian-multimedia website, but I don't experience any such breakage right now with vlc. To my (very limited) knowledge two programs where broken with d-m ffmpeg related packages but Christian Marillat is hosting working versions until the debian ones are fixed/compatible (Audacity, already fixed in Debian experimental and blender). debian-multimedia also has several very nice packages like lives, avidemux, k9copy, handbrake, xcfa, libdvdcss2 and an uncrippled version of ffmpeg (I read one is coming soon to Debian proper), cinelerra, mythtv, xbmc just to name a few. So before throwing the stone could be good to actually investigate the problem a bit further, maybe contact Christian Marillat (debian-multimedia maintainer) about the problem to see if it's known to him (with proper logs/debugging info in hands would be nice), he is usually very helpful despite the strange attitude of several people in Debian towards debian-multimedia. [mild rant mode] Sure it would be awesome to work only with Debian proper, but due to dfsg and probably other legal concerns several packages will never be part of the distribution, or only limited versions. d-m is pretty much playing the same role that rpm-fusion is playing for Fedora or medibuntu for ubuntu, and in both cases those external repositories are essential to work with multimedia when you can't have total control over the files you are working on. Sure you can do without, and recompile from sources what you need with the proper flags/codecs, but what good it is compared to getting it from an apt repository, where versions are upgraded regularly ?[/mild rant mode] Regarding your specific problem with sftp I'll try it tomorrow (it's late in my time zone) with/out d-m and see if I can get it to work. But given this (pretty old) feature request on vlc bugtracker it may still be a work in progress. http://trac.videolan.org/vlc/ticket/131 Apologies for the long and verbose message, I am fed up to see the nice work Mr Marillat is doing and which I rely on trashed. Now you can unleash hell on me if you care enough to waste your time. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4cf1909b.9030...@googlemail.com
Re: "need a quick hashing method"
In , Arthur Bela wrote: >HDD#1 >HDD#2 > >I copy files between HDD#1 and HDD#2. > >When i finish, i need a quick "hasing method" - i just want to check, >that the copy was 100% ok. Hashing is not 100%. It's probabilistic. If your hash results is N bits, your data longer than N bits, and your hash method is uniform, you'll get roughly (1 - 1/2^N) accuracy. For MD5 and SHA1 N = 128, so you'll get 99.71% accuracy. >md5sum, sha256sum is slow -> are there any "very fast" hash algoritms? Not that are cryptographically secure. CRC32 and whatever the UNIX sum program does can catch errors, but are easily deceived by an attacker. >- just for checking if the copied file is corrupt or not [i just need >to know, if there were even 1 Byte error when copying] > >i can write the script, that checks the files, i just need a hash >algoritm [""software/command""], that is fast enough. The slowest part of any such script is not the hash function, it's all the I/O to the disks. Direct byte-by-byte comparison will do the same amount of I/O (reading every byte of every file), and spend no time in a hash routine. There will be a much larger number of comparisons done, but these are very fast compared to the machinations of even a simple hash router. A recursive diff will probably be faster than whatever script you might be writing. -- Boyd Stephen Smith Jr. ,= ,-_-. =. b...@iguanasuicide.net ((_/)o o(\_)) ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-' http://iguanasuicide.net/\_/ signature.asc Description: This is a digitally signed message part.
Re: VLC player doesn't playback correctly
On Fri, Nov 26, 2010 at 03:22:00PM +, Camale??n wrote: > On Fri, 26 Nov 2010 16:35:33 +0200, Matthias Andersson wrote: > > > I've installed vlc 1.1.3 according to the instructions at > > www.videolan.org/vlc/download-debian.html for unstable. > > > > Now the problem is that all videos play black and white and the picture > > is crammed to a quarter of the window to the left. I've tried all the > > different settings but to no avail. > > Black/White & jolted video > http://forum.videolan.org/viewtopic.php?f=13&t=67743&p=225152 > > And maybe also: > > Important notice for Debian/Ubuntu users > http://forum.videolan.org/viewtopic.php?f=13&t=70719 You missed the most important one :-) http://forum.videolan.org/viewtopic.php?f=13&t=59892 The problem is discussed here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=528365 This solution is: apt-get install vlc-plugin-sdl vlc -V sdl somefile.avi If this works, you can set the driver in ~/.config/vlc/vlcrc: # Video output module (string) vout=sdl Let me know if it helps. Cheers! -- Joel Roth -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20101128050046.ga3...@sprite
Re: My server catched a rootkit?
On Fri 26 Nov 2010 at 18:53:05 +, James Brown wrote: > I have received the next messages from crondaemon: > /etc/cron.daily/rkhunter: > Internal error! > Internal error! [snip] > Is it a rootkit or other error? What I need to do - remove infected > files, reinstall the above packeges or give an order to my > vds-provider for reinstalling my server at all?! Your course of action will depend on the confidence you place in rkhunter. Mine is zero, but if your reading of its reports is convincing and you think it tells you anything important about your system your only option is to reinstall. Not because there is anything untoward about the server but because you you have entered a state of insecurity. If chkrootkit was installed after your problems appeared its logs are valueless. Then you could ask yourself: there are over 1,000 million computers on the internet; why me? -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20101127203853.gm20...@desktop
Re: How to get Bell Canada 3G USB network up?
Following up to myself again, in the meantime I think I've narrowed down the problem with my disconnects a bit: It seems that I'm loosing connection whenever the stick changes connection mode, or at least when it changes from UMTS to HSPA or HSUPA. Meaning, it connects with UMTS and I'm getting internet access until it changes ~30 seconds later to one of the latter, then the internet connection is broken, disconnecting and reconnecting with the network manager applet won't work, I have to unplug and replug the stick for another attempt. Seems only if I'm lucky and it decides to stay on UMTS that I'm getting continuous internet access. This seems consistent with my observation that I'm often not having any problem at all in remote areas, whereas in the city core it's worst (meaning, in areas that only have UMTS access points there is no problem at all). Thanks for any ideas on how to solve this (I'll take that to the network manager developers, too--but then, maybe I'll have a phone connetion up and running before that and drop it). Christian. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktika_vc3xvw+btbh4vuajyyca4-65ssvdide7...@mail.gmail.com
Re: update-initramfs produces unusable initrd.img
Hi again -- Does anyone have any post-thanksgiving suggestions for how to handle this issue? Thanks in advance, -PT On Tue, Nov 23, 2010 at 8:56 AM, Peter Tenenbaum < peter.g.tenenb...@gmail.com> wrote: > In my recent experiments with moving my home Debian desktop to RAID-1 > arrays, I discovered that update-initramfs is producing intrd.img-* files > which are unusable. What I mean by that is this: > > When I do update-initramfs -u (or -c), it produces a new > initrd.img-2.6.32-5-amd64. When I attempt to boot with the new file, I get > the following: > > Loading, please wait [long wait, and then:] > Gave up waiting for root device > ...[some suggestions about looking at /proc/cmdline and /proc/modules] > Alert: /dev/md3 does not exist! Dropping to a shell! > > [etc] > > Note that /dev/md3 is the RAID-1 array which is mounted as / . > > When I replace the initrd.img-2.6.32-5-amd64 which was generated when I > installed squeeze, the computer boots without any problems, informs me that > /dev/md3 has been started with 2 drives, etc. > > My /etc/initramfs-tools/initramfs.conf has MODULES=most, my > /etc/initramfs-tools/modules has nothing enabled, and > /etc/initramfs-tools/update-initramfs.conf has update-initramfs=yes and > backup-initramfs=no. My suspicion is that I need to add some modules to the > modules file. Is this correct? If so, which ones do I need for a system > running software RAID-1 configured with mdadm? > > Thanks in advance, > -PT >
Re: unloading unnecessary modules
Stan, Correct. On my severs I too have sound cards and USB. I don't really need them so I would rather unload them. I suppose I can do a macro benchmark and state if it helped or not but I would like to know on a micro level to see if it helped. I think one possibility is to do "lat_pipe" from lmbench to measure transaction latency of a UNIX pipe. My goal is to have the most optimal kernel/tuning since our application is very latency sensitive. On Sat, Nov 27, 2010 at 11:01 AM, Leandro Minatel wrote: > > On Sat, Nov 27, 2010 at 2:43 AM, Stan Hoeppner > wrote: >> >> Mag Gam put forth on 11/26/2010 11:14 PM: >> >> > unloading unnecessary modules >> >> If they are unnecessary modules, the kernel won't load them in the first >> place, as the hardware they interface with doesn't exit. If they're not >> loaded, how can you unload them? >> >> I think you need to provide us with _your_ definition of "unnecessary". > > I suppose he's talking about that modules loaded for hardware that it's > present but unused, for example: the sound card. For my servers I generally > buy "clons" and they have an embedded sound card. So, we don't need the > sound modules loaded at startup. > Another example (maybe) is the USB, mouse, SATA/PATA when we have a SCSI > controller, etc. > > >> >> If you're really that concerned about kernel footprint and performance, >> you can always roll your own kernel, as I do, building in the drivers >> you know you need, none that you don't, and disable loadable module >> support. However, this can get tricky if you don't know precisely what >> you're doing. >> > > I don't know. I decided long ago not to compile the kernel anymore. I do > prefer blacklisting modules instead. But, it's only my opinion. > >> >> -- >> Stan >> > > LMM > -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktim2z-6tog=rsrqs1u0nd8zfjkivsh6yz7+2z...@mail.gmail.com
[OT] Re: sed with several lines, how?
Arthur Bela wrote: > i just can't figure it out, how to "sed" when having several lines > [nor in awk, perl..] I have not really understood your question, but maybe this will help you: http://www.grymoire.com/Unix/Sed.html#uh-51 I would go someway along the lines of removing the newline at the end, then replacing the full expression. Johannes -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4cf12c37.3000...@aktendiener.de
Re: unloading unnecessary modules
On Sat, Nov 27, 2010 at 2:43 AM, Stan Hoeppner wrote: > Mag Gam put forth on 11/26/2010 11:14 PM: > > > unloading unnecessary modules > > If they are unnecessary modules, the kernel won't load them in the first > place, as the hardware they interface with doesn't exit. If they're not > loaded, how can you unload them? > > I think you need to provide us with _your_ definition of "unnecessary". > I suppose he's talking about that modules loaded for hardware that it's present but unused, for example: the sound card. For my servers I generally buy "clons" and they have an embedded sound card. So, we don't need the sound modules loaded at startup. Another example (maybe) is the USB, mouse, SATA/PATA when we have a SCSI controller, etc. > > If you're really that concerned about kernel footprint and performance, > you can always roll your own kernel, as I do, building in the drivers > you know you need, none that you don't, and disable loadable module > support. However, this can get tricky if you don't know precisely what > you're doing. > > I don't know. I decided long ago not to compile the kernel anymore. I do prefer blacklisting modules instead. But, it's only my opinion. > -- > Stan > > LMM
Re: unloading unnecessary modules
On Sat, Nov 27, 2010 at 2:14 AM, Mag Gam wrote: > Hello, > > I am currently working on a ecommerce system for a client. We are > using Debian 5. I was told by an engineer that unloading unnecessary > modules will improve performance in the system. My question(s) are: is > this true? Also, how do I measure the kernel (or base OS) system > before and after I unload the modules. I was told 'lmbench' can > measure kernel latency but I can't think of any test which would be > valid. > > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact > listmas...@lists.debian.org > Archive: > http://lists.debian.org/aanlktin_7rj0q_kw0xa6fryjgv-cct38sh1ptv8a-...@mail.gmail.com > > # echo 'blacklist module_name' > /etc/modprobe.d/module_name.conf Regards
Re: New default artwork for Debian "Squeeze"
Nice work! Is this theme in the repos, or does it have to be installed manually? On Mon, Nov 22, 2010 at 09:04:03AM -0800, Jimmy Johnson wrote: > The new Debian Squeeze art work can be found here: > http://wiki.debian.org/DebianArt/Themes/SpaceFun > > More Debian News, including Squeeze release update: > http://debian.org/News/project/2010/16/ > -- > Jimmy Johnson > > SimplyMEPIS 11.0 Alpha-2 - KDE 4.5.3 at sda11 > Registered Linux User #380263 > > > -- > To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a > subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org > Archive: http://lists.debian.org/4ceaa283.7020...@gmail.com > -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20101127141451.ga20...@aurora.owens.net
Re: sed with several lines, how?
thank you, and sorry, if i had formulated wrong, but the "SOMETEXT#X" is a random STRING, like: $ cat testfile.txt alsjflsajfkljasdf asfklasjlkyxcvo kldfjlkasjdfasdf kasfjxcvklajdflas yxcvkjasafjads asdfjkldjlasj uiyxzckjhasfsd $ $ awk 'BEGIN {sawpattern=0} "^SOMETEXT, ^SOMETEXT" {if (($0 ~/SOMETEXT/ ) && (sawpattern == 0)) {sawpattern=1} else {sawpattern=0;print $0}}' testfile.txt alsjflsajfkljasdf asfklasjlkyxcvo kldfjlkasjdfasdf kasfjxcvklajdflas yxcvkjasafjads asdfjkldjlasj uiyxzckjhasfsd $ On 27 November 2010 12:39, Arthur Bela wrote: > hyphen's [ - ] are just for marking the start/end of a pattern, but > there are _not in_ the pattern! > "OUTPUT" is what i want after "seding" the PATTERN#X's > > > so i for e.g.: need the first, and second "magic" > sed "FIRSTMAGIC" PATTERN#1 > sed "SECONDMAGIC" PATTERN#2 > > > > > PATTERN#1: > > --- > SOMETEXT#1 > SOMETEXT#2 > SOMETEXT#3 > SOMETEXT#4 > --- > > "exact pattern", what is unique from the pattern: > --- > \n > --- > > OUTPUT: > --- > SOMETEXT#1 > SOMETEXT#3 > SOMETEXT#4 > --- > > > > > > and: > > PATTERN#2: > > --- > SOMETEXT#1 > SOMETEXT#2 > > SOMETEXT#3 > --- > > "exact pattern", what is unique from the pattern: > --- > \n > --- > > OUTPUT: > --- > SOMETEXT#1 > > SOMETEXT#3 > --- > > > i just can't figure it out, how to "sed" when having several lines > [nor in awk, perl..] > > could anyone post a link, or some guide, how to write these two lines of > "sed"? > > Thank You! :\ > -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktim+cy7x9wqntxpee4krsb6nqt=wamckttgn8...@mail.gmail.com
Re: VLC player doesn't playback correctly
On 11/27/2010 09:18 AM, Joel Roth wrote: > aptitude search ~S~i\(~mmarillat\!~Odebian\) Ok, I removed all packages that came up with that search; debian-multimedia-keyring libdvdcss2 libfaac0 libmp3lame0 libx264-104 livxvidcore4 mplayer At first glance that doesn't seem to have solved the issue... //Matthias -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4cf0f69c.1060...@pp1.inet.fi
Re: hal installation problem - debian squeeze
On Fri, 2010-11-26 at 22:13 +0100, debian wrote: > On 2GB SD made dist-upgrade > card removed hal and trying install again but always getting follow: Out of curiosity, why are you trying to install hal again? If something depended on it I wouldn't have expected it to get removed by apt-get. (I beleive that hal is mostly obsolete and neither my SheevaPlug or laptop which are running Squeeze have this installed.) -- Tixy () The ASCII Ribbon Campaign (www.asciiribbon.org) /\ Against HTML e-mail and proprietary attachments -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1290859297.2891.11.ca...@computer2.home
sed with several lines, how?
hyphen's [ - ] are just for marking the start/end of a pattern, but there are _not in_ the pattern! "OUTPUT" is what i want after "seding" the PATTERN#X's so i for e.g.: need the first, and second "magic" sed "FIRSTMAGIC" PATTERN#1 sed "SECONDMAGIC" PATTERN#2 PATTERN#1: --- SOMETEXT#1 SOMETEXT#2 SOMETEXT#3 SOMETEXT#4 --- "exact pattern", what is unique from the pattern: --- \n --- OUTPUT: --- SOMETEXT#1 SOMETEXT#3 SOMETEXT#4 --- and: PATTERN#2: --- SOMETEXT#1 SOMETEXT#2 SOMETEXT#3 --- "exact pattern", what is unique from the pattern: --- \n --- OUTPUT: --- SOMETEXT#1 SOMETEXT#3 --- i just can't figure it out, how to "sed" when having several lines [nor in awk, perl..] could anyone post a link, or some guide, how to write these two lines of "sed"? Thank You! :\ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktintfczads7qwg4tnyqwbamp4v42ndx6czsel...@mail.gmail.com
Re: edit multiple files under multiple directories/folders
On Sat, Nov 27, 2010 at 3:43 AM, Kaushal Shriyan wrote: > Hi, > In my home folder I have 6 tomcat directories under > /home/kaushal/tomcat0..6 > Under each of these tomcats there are sub folder conf and inside these conf > there is a file by the name server.xml so for example I have > tomcat0,tomcat1,tomcat2,tomcat3,tomcat4,tomcat5 so i need to edit server.xml > and set port numbers for tomcat0 to 8080 tomcat1 to 8081 and similarly for > others,the other way is to go to individual directory and do it > > Please suggest/guide for i in {0..6} # or $(seq 0 6) do sed -i "s/8080/808$i/" tomcat$i/.../server.xml done Regards, -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktin6b5pslqqeeunwcoobx2ts2kymgkty6-4me...@mail.gmail.com