Re: [gentoo-user] [OT] auto mounting and umounting flash drives using udev rule
Em 16/06/2014 19:52, Neil Bothwick n...@digimed.co.uk escreveu: On Mon, 16 Jun 2014 16:58:07 -0300, Francisco Ares wrote: Regarding umounting, it umounts the drive after it is removed, which looks strange (to say the least) to me. Udev doesn't know you want to remove the drive until you've pulled it. Apparently, a future release of systemd will be able to predict when you want to remove the drive as it will control everything you do. :-) well, by 'unount' I mean getting rid of the mounted tree and mount point. Did I miss something? Or, in other words, is there a way of forcing operations on a usb flash media to always flush buffers and/or caches as fast as possible? Mount it with the sync option. On the other hand, this increases the number of writes to the drive, quickly killing performance and slowly killing the drive. Thanks for this, I will use it. This system is an embedded one, the usb stick is for eventual data base backups. I'll remember to do as few writes as possible to it. -- Neil Bothwick We all know what comes after 'X', said Tom, wisely. Thanks again, Francisco
[gentoo-user] btrfs: subvol without compression
... I am quite happy now with the performance of that new server I am preparing. See thread Intel(R) C600 SAS Controller for that story: https://www.mail-archive.com/gentoo-user@lists.gentoo.org/msg146119.html Right now I get quite good results when doing backups of the 2 existing VMs (which have their virtio-disks on LVM-LVs on the host) ... up to 200MB/s ... I can show for reference, if someone is interested. I think that is around the possible maximum. --- The issue I want to share with you is related to a btrfs subvol I have here. Block device sda builds the btrfs-pool containing the root-fs: # btrfs fi show Label: ROOT uuid: 9133c469-df1e-45f5-a09f-d1b9c75c69da Total devices 1 FS bytes used 29.47GiB devid1 size 500.00GiB used 278.04GiB path /dev/sda Btrfs v3.12 These are the subvolumes (I could/should rm some, but it doesn't matter for this issue, afaik): # btrfs su list / ID 257 gen 4282 top level 5 path __active ID 258 gen 4874 top level 5 path __active/root ID 266 gen 4772 top level 258 path images ID 267 gen 838 top level 258 path images/otrs ID 289 gen 4285 top level 258 path images/windows ID 538 gen 4874 top level 5 path __active/virt-backup fstab has: # grep btrfs /etc/fstab LABEL=ROOT / btrfs defaults,noatime,compress=lzo 0 0 LABEL=ROOT /mnt/virt-backupbtrfs compress=no,noatime,subvolid=538 0 0 ... so I want to mount subvolid 538 with disabled compression (to speed up backups as the files written to it are compressed on the fly via pigz already). But after booting I get that dir mounted with compress=lzo (which is default). # mount | grep btrfs /dev/sda on / type btrfs (rw,noatime,compress=lzo,space_cache) /dev/sda on /mnt/virt-backup type btrfs (rw,noatime,compress=lzo,space_cache) remounting works, though: booze ~ # mount -o remount,compress=no /mnt/virt-backup/ booze ~ # mount | grep btrfs /dev/sda on / type btrfs (rw,noatime,space_cache) /dev/sda on /mnt/virt-backup type btrfs (rw,noatime,space_cache) BUT it remounts / without compression as well ... ! Is it a bug? A mistake or misunderstanding? Could someone test this on his gentoo-btrfs-box? -- Additional info: # cat /proc/version Linux version 3.12.21-gentoo-r1 ... sys-fs/btrfs-progs-3.12-r1 # btrfs su get-default / ID 258 gen 4886 top level 5 path __active/root # line in grub.cfg mounts default subvol (because no specific subvol is specified) linux /boot/vmlinuz-3.12.21-gentoo-r1 root=UUID=9133c469-df1e-45f5-a09f-d1b9c75c69da ro Thanks, regards, Stefan
Re: [gentoo-user] btrfs: subvol without compression
Am 17.06.2014 13:04, schrieb Stefan G. Weichinger: BUT it remounts / without compression as well ... ! Is it a bug? A mistake or misunderstanding? maybe also related to this bug I filed a while ago: https://bugs.gentoo.org/show_bug.cgi?id=510148 Stefan
Re: [gentoo-user] webkit-gtk grumbles
On Mon, Jun 16, 2014 at 10:13 PM, Philip Webb purs...@ca.inter.net wrote: 140616 walt wrote: I'm sick of building webkit-gtk. My oldest machine (a dual-core AMD64) has been building webkit for 6 hours and still going. An entry in my home-made list of un/installed pkgs : 140322 net-libs/webkit-gtk-1.8.3-r201 [ 22 min : for gimp] Webkit-gtk definitely has been taking longer to build: Sun Oct 23 16:27:39 2011 net-libs/webkit-gtk-1.4.3-r300 merge time: 12 minutes and 18 seconds. Sat May 19 22:31:00 2012 net-libs/webkit-gtk-1.6.3-r300 merge time: 15 minutes and 37 seconds. Thu Oct 18 14:52:57 2012 net-libs/webkit-gtk-1.8.3-r300 merge time: 29 minutes and 1 second. Sun Dec 1 15:33:43 2013 net-libs/webkit-gtk-2.0.4 merge time: 50 minutes and 21 seconds. Mon Mar 10 09:09:33 2014 net-libs/webkit-gtk-2.2.5 merge time: 46 minutes and 8 seconds. Wed May 28 14:07:43 2014 net-libs/webkit-gtk-2.2.6 merge time: 1 hour, 39 minutes and 57 seconds. Granted, I don't know what else was going on with the machine when I was building it, but you can see the trend. I do think a reference binary package repository for Gentoo would be a good thing, but obviously it will be limited to some standard set of USE flags. Nothing says that we can only distribute binary packages if upstream does, though in some cases bindist will apply. Rich
Re: [gentoo-user] Re: Secure DNS servers
On Mon, Jun 16, 2014 at 07:57:31PM +, James wrote: Any guidance of those? When I have a choice, I go with nsd for authoritive and with unbound for recursive dns servers. Bind is also a popular alternative. Anyone and Everyone is encouraged to chime in on dns server Try to seperate your authorative and recursive dns servers. Learn to use dig. On Mon, Jun 16, 2014 at 02:49:39PM -0400, Michael Orlitzky wrote: iptables -A INPUT -p ALL -m conntrack --ctstate ESTABLISHED,RELATED \ -j ACCEPT Careful with conntrack. It is OK for a home/hobby server. For a high volume dns server, you don't want to reach conntrack limits before you reach the limits of your dns software - which are usually much higher. A stateful firewall for a dns server is not always a good choice - do not make it easier to DoS. -- Eray Aslan e...@gentoo.org
[gentoo-user] Gkrelltop segfaulting
Hello list, I've been using gkrellm on my desktop box for many years, including gkrelltop. It starts from gkrellm in the default soft-level. Recently I started also running gkrellmd on an Atom box on the LAN, starting a separate instance of gkrellm at a command line on the desktop. I had followed the ebuild instruction to add plugin-enable gkrelltopd to /etc/gkrellmd.conf on the Atom box, and restarted its gkrellmd. I then opened the config dialogue on my desktop and told it to display gkrelltop, which it did, but after a variable number of minutes gkrellmd segfaulted. If I uninstall gkrelltop and reconfigure gkrellm not to show it, gkrellm is stable. Has anyone else here experienced this, or have I tripped over a bug? -- Regards Peter
Re: [gentoo-user] Dependency conflict. openjpeg ffmpeg
On 06/14/2014 10:23 PM, Dale wrote: Howdy, I can't figure out a way around this one. Usually keywording, maybe that should be unkeywording, a newer version works but doesn't seem to in this case. This started as part of a emerge -uvaDN world. Error I get: WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict: media-libs/openjpeg:0 (media-libs/openjpeg-1.5.1:0/0::gentoo, ebuild scheduled for merge) conflicts with =media-libs/openjpeg-1.3-r2:0[abi_x86_64(-)] required by (media-video/ffmpeg-2.2.3-r1:0/52.55.55::gentoo, ebuild scheduled for merge) Little more info: root@fireball / # equery list -p openjpeg ffmpeg * Searching for openjpeg ... [IP-] [ ] media-libs/openjpeg-1.4-r1:0 [-P-] [ ] media-libs/openjpeg-1.5.0:0 [-P-] [ ] media-libs/openjpeg-1.5.1:0 [-P-] [ ~] media-libs/openjpeg-1.5.1-r1:0 [IP-] [ ] media-libs/openjpeg-2.0.0:2 [-P-] [ -] media-libs/openjpeg-:2 * Searching for ffmpeg ... [-P-] [ ] media-video/ffmpeg-0.10.12:0.10 [-P-] [ ] media-video/ffmpeg-1.0.8:0 [-P-] [ ] media-video/ffmpeg-1.0.9:0 [-P-] [ ] media-video/ffmpeg-1.2.6:0 [-P-] [ ] media-video/ffmpeg-2.2.2:0/52.55.55 [-P-] [ ] media-video/ffmpeg-2.2.3:0/52.55.55 [IP-] [ ] media-video/ffmpeg-2.2.3-r1:0/52.55.55 [-P-] [ -] media-video/ffmpeg-:0/52.55.55 root@fireball / # I try not to use the versions. I don't think I ever have. I tried unmerging openjpeg and ffmpeg, doing the preserved-rebuild thing and I still get this error when I try to update again. I have also synced twice just in case I got a mixed version of the tree. I also tried to do a emerge -e system as well but it spits that error out first thing. Anyone shed some light on this? Thanks. Dale :-) :-) yay i just had the same thing happen i tried the ABI keyword as suggested further in the thread but it just made the error shorter and odder. in the end i just emerge -C ffmpeg openjpeg then add them all back one at a time. it's a bit of a pita but otherwise not really had too may issue with portage of late.
Re: [gentoo-user] Any application to control uvc parameters of a webcam ?
Canek Peláez Valdés can...@gmail.com [14-06-17 00:40]: On Mon, Jun 16, 2014 at 12:23 PM, meino.cra...@gmx.de wrote: Hi, is there any other application than guvcview be able to control the uvc parameters of a uvc camera (Logitech C920) while gstreamer is reading its device (/dev/video1) ? What parameters? Usually the v4l2src element in gstreamer is able to change the video parameters (norm, brightness, hue, contrast, etc.) gst-inspect-1.0 v4l2src will tell you about all the possible parameters that v4l2src can handle. Regards. -- Canek Peláez Valdés Profesor de asignatura, Facultad de Ciencias Universidad Nacional Autónoma de México Hi Canek, ...yesno. Some aspects of the camera like brightness, focus, pan, tilt etc. are hardly set when not done interactively. So I need an application with sliders, knobs etc to tweak and tune such parameters while watching the stream... Is there one like that? Best regards, mcc
Re: [gentoo-user] Any application to control uvc parameters of a webcam ?
On Tue, Jun 17, 2014 at 11:39 AM, meino.cra...@gmx.de wrote: Canek Peláez Valdés can...@gmail.com [14-06-17 00:40]: On Mon, Jun 16, 2014 at 12:23 PM, meino.cra...@gmx.de wrote: Hi, is there any other application than guvcview be able to control the uvc parameters of a uvc camera (Logitech C920) while gstreamer is reading its device (/dev/video1) ? What parameters? Usually the v4l2src element in gstreamer is able to change the video parameters (norm, brightness, hue, contrast, etc.) gst-inspect-1.0 v4l2src will tell you about all the possible parameters that v4l2src can handle. Regards. -- Canek Peláez Valdés Profesor de asignatura, Facultad de Ciencias Universidad Nacional Autónoma de México Hi Canek, ...yesno. Some aspects of the camera like brightness, focus, pan, tilt etc. are hardly set when not done interactively. So I need an application with sliders, knobs etc to tweak and tune such parameters while watching the stream... Is there one like that? You can use cheese; it allows you to set brightness, constrast, saturation and hue using sliders. Approximating those to the 32 bit signed values that v4l2src uses should be easy. Regards. -- Canek Peláez Valdés Profesor de asignatura, Facultad de Ciencias Universidad Nacional Autónoma de México
Re: [gentoo-user] Re: Secure DNS servers
On 17/06/2014 16:48, Eray Aslan wrote: On Mon, Jun 16, 2014 at 07:57:31PM +, James wrote: Any guidance of those? When I have a choice, I go with nsd for authoritive and with unbound for recursive dns servers. Bind is also a popular alternative. Anyone and Everyone is encouraged to chime in on dns server Try to seperate your authorative and recursive dns servers. Learn to use dig. On Mon, Jun 16, 2014 at 02:49:39PM -0400, Michael Orlitzky wrote: iptables -A INPUT -p ALL -m conntrack --ctstate ESTABLISHED,RELATED \ -j ACCEPT Careful with conntrack. It is OK for a home/hobby server. For a high volume dns server, you don't want to reach conntrack limits before you reach the limits of your dns software - which are usually much higher. A stateful firewall for a dns server is not always a good choice - do not make it easier to DoS. You could probably get away with it on an auth server as they tend to be lighter loaded than a caching server. But on a cache server - no ways at all. I watched big busy dns cache servers try to deal with FreeBSD stateful firewalls once, it was not a pretty sight :-) -- Alan McKinnon alan.mckin...@gmail.com
Re: [gentoo-user] Is my laptop getting old, or are some packages more and more demanding?
On Sun, Jun 15, 2014 at 10:52:21PM +0100, Mick wrote On Sunday 15 Jun 2014 20:37:46 Alan McKinnon wrote: Not too sure really how wear and tear translates to real life; overall it's probably just simple bloat you have, to borrow Walter's analogy you started with a sub-compact and now have a ginormous SUV! I think that's call progress. ;-) The Internet has grown and technology develops to deliver all this new functionality that lynx can't really provide. Much of Firefox+Chrome+Webkit-gtk2 is not really necessary. It gets added just the same. -- Walter Dnes waltd...@waltdnes.org I don't run desktop environments; I run useful applications
Re: [gentoo-user] Ifplugd breaks services
On 06/14/2014 11:24 PM, Mick wrote: On Tuesday 10 Jun 2014 11:43:31 thegeezer wrote: I used to really like ifplugd. mostly for the audible beep when things are disconnected as it's easier to diagnose from afar. What audible beep? Am I missing some obscure configuration variable on my systems? lol yes http://www.gentoo-wiki.info/Ifplugd but mysteriously i don't have /etc/conf.d/ifplugd -- my /etc/ifplugd/ifplugd.actions is below and is the only ifplugd file i can find it could be you are missing pcspeaker kernel module ? pcspkr # /etc/ifplugd/ifplugd.actions if grep -q initng /proc/1/cmdline then EXEC=/sbin/ngc INITNG=yes else EXEC=/etc/init.d/net.$1 INITNG=no fi case $2 in up) if [ ${INITNG} = yes ] then ARGS=-u net/$1 else ARGS=--quiet start fi ;; down) if [ ${INITNG} = yes ] then ARGS=-d net/$1 else ARGS=--quiet stop fi ;; *) echo $0: wrong arguments 2 echo Call with interface up|down 2 exit 1 ;; esac export IN_BACKGROUND=true if [ -x ${EXEC} ] then ${EXEC} ${ARGS} exit 0 else logger -t ifplugd.act exit 1 fi
Re: [gentoo-user] Dependency conflict. openjpeg ffmpeg
thegeezer wrote: yay i just had the same thing happen i tried the ABI keyword as suggested further in the thread but it just made the error shorter and odder. in the end i just emerge -C ffmpeg openjpeg then add them all back one at a time. it's a bit of a pita but otherwise not really had too may issue with portage of late. Yea, I tried adding it to make.conf and got one error so commented it out. When I tried it again later, different error but still a error. I tried unmerging and adding back but no joy yet. At least portage can skip it tho. Dale :-) :-) -- I am only responsible for what I said ... Not for what you understood or how you interpreted my words!
Re: [gentoo-user] Ifplugd breaks services
On Tuesday 17 Jun 2014 22:08:11 thegeezer wrote: On 06/14/2014 11:24 PM, Mick wrote: On Tuesday 10 Jun 2014 11:43:31 thegeezer wrote: I used to really like ifplugd. mostly for the audible beep when things are disconnected as it's easier to diagnose from afar. What audible beep? Am I missing some obscure configuration variable on my systems? lol yes http://www.gentoo-wiki.info/Ifplugd but mysteriously i don't have /etc/conf.d/ifplugd -- my /etc/ifplugd/ifplugd.actions is below and is the only ifplugd file i can find it could be you are missing pcspeaker kernel module ? pcspkr # /etc/ifplugd/ifplugd.actions if grep -q initng /proc/1/cmdline then EXEC=/sbin/ngc INITNG=yes else EXEC=/etc/init.d/net.$1 INITNG=no fi case $2 in up) if [ ${INITNG} = yes ] then ARGS=-u net/$1 else ARGS=--quiet start fi ;; down) if [ ${INITNG} = yes ] then ARGS=-d net/$1 else ARGS=--quiet stop fi ;; *) echo $0: wrong arguments 2 echo Call with interface up|down 2 exit 1 ;; esac export IN_BACKGROUND=true if [ -x ${EXEC} ] then ${EXEC} ${ARGS} exit 0 else logger -t ifplugd.act exit 1 fi My ifpugd.actions looks the same. I have PCSPKR built in my kernel: $ grep -i pcspkr /usr/src/linux/.config CONFIG_HAVE_PCSPKR_PLATFORM=y CONFIG_PCSPKR_PLATFORM=y CONFIG_INPUT_PCSPKR=y I can't recall ever having heard a beep when the cable is disconnected. :-/ -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Dependency conflict. openjpeg ffmpeg
John Campbell wrote: On 06/14/2014 05:12 PM, Dale wrote: media-libs/openjpeg:0 (media-libs/openjpeg-1.5.1:0/0::gentoo, ebuild scheduled for merge) conflicts with =media-libs/openjpeg-1.3-r2:0[abi_x86_64(-)] required by (media-video/ffmpeg-2.2.3-r1:0/52.55.55::gentoo, installed) The multilib stuff is a work in progress... You have two 64bit ABIs set up, and ffmpeg wants the x32 rather than the 64. It needs it's libraries to match. Looks like openjpeg chose the 64 ABI to compile. Just set ABI_X86=32 x32 for openjpeg. It's in /etc/portage/env/media-libs/openjpeg-1.3-r2 OK. First, corrected the version and then tried with no version at all as shown below. Going to start here since well, this is where this suggestion started. I created the files in env and deeper but either it isn't seeing it for some reason OR it isn't a option to change. I'm leaning toward the first since most likely I didn't do something right. ;-) It wouldn't be the first time but it is the first time I put anything in the env directory, which I had to create by the way. Current paths to file: /etc/portage/env/media-libs /etc/portage/env/media-video File names: openjpeg ffmpeg Contents of both files: ABI_X86=32 64 So, what am I missing there? Output of emerge: root@fireball / # emerge -va =media-libs/openjpeg-1.4-r1 =media-libs/openjpeg-2.0.0 media-video/ffmpeg These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R] media-libs/openjpeg-1.4-r1 USE=-doc {-test} 0 kB [ebuild R] media-libs/openjpeg-2.0.0:2 USE=-doc -static-libs {-test} 0 kB [ebuild R ~] media-video/ffmpeg-2.2.3-r1:0/52.55.55 USE=3dnow 3dnowext X aac alsa bzip2 encode faac fontconfig frei0r hardcoded-tables iconv jpeg2k mmx mmxext mp3 network opengl sdl sse sse2 theora threads truetype vorbis x264 xvid zlib -aacplus (-altivec) -amr -amrenc (-armv5te) (-armv6) (-armv6t2) (-armvfp) -avx -avx2 -bindist -bluray -cdio -celt -cpudetection -debug -doc -examples -fdk -flite -fma3 -fma4 -gme -gnutls -gsm -iec61883 -ieee1394 -jack -ladspa -libass -libcaca -libsoxr -libv4l (-mips32r2) (-mipsdspr1) (-mipsdspr2) (-mipsfpu) -modplug (-neon) -openal -openssl -opus -oss -pic -pulseaudio -quvi -rtmp -schroedinger -speex -sse3 -sse4 -sse4_2 -ssh -ssse3 -static-libs {-test} -twolame -v4l -vaapi -vdpau -vpx -wavpack -webp -x265 -zvbi ABI_X86=(64) -32 (-x32) FFTOOLS=aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart trasher 0 kB Total: 3 packages (3 reinstalls), Size of downloads: 0 kB Would you like to merge these packages? [Yes/No] n Quitting. root@fireball / # Note the ABI part isn't changing. Could it be because of some USE flag combo I have set? I do something . . . wrong?? Just for giggles, going to post the original error again. WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict: media-libs/openjpeg:0 (media-libs/openjpeg-1.5.1:0/0::gentoo, ebuild scheduled for merge) conflicts with =media-libs/openjpeg-1.3-r2:0[abi_x86_64(-)] required by (media-video/ffmpeg-2.2.3-r1:0/52.55.55::gentoo, installed) Nothing to merge; quitting. Dale scratches his head Thanks. Dale :-) :-) -- I am only responsible for what I said ... Not for what you understood or how you interpreted my words!