Lightweight Audio-Only DLNA player
Hello, there's plenty of DLNA capable media players around, but all of them (or at least, all that I could find) are gargantuan packages with tons of functionality and dependencies that I don't need or want. This is supposed to run audio-only on a small headless SBC with a USB connected DAC, nothing else. Thanks, robert
xlsclients doesn't list all clients
Hello, how is it possible that xlsclients doesn't "see" all X clients? Here's my output from xlsclients: me@dotcom:~$ xlsclients -a dotcom xfce4-terminal dotcom xfce4-notifyd dotcom firefox-esr dotcom /usr/lib/firefox-esr/plugin-container dotcom claws-mail me@dotcom:~$ What's missing here is the instance of Digikam on the same desktop. Here's the output feom xwininfo on that window: me@dotcom:~$ xwininfo xwininfo: Please select the window about which you would like information by clicking the mouse in that window. xwininfo: Window id: 0xad "digiKam" Absolute upper-left X: 552 Absolute upper-left Y: 220 Relative upper-left X: 552 Relative upper-left Y: 220 Width: 1012 Height: 533 Depth: 24 Visual: 0x74 Visual Class: TrueColor Border width: 1 Class: InputOutput Colormap: 0xac (not installed) Bit Gravity State: NorthWestGravity Window Gravity State: NorthWestGravity Backing Store State: NotUseful Save Under State: no Map State: IsViewable Override Redirect State: no Corners: +552+220 --286+220 --286-269 +552-269 -geometry 1012x533+552+220 me@dotcom:~$ I'm running dwm. Same behavior on versions 5.7 and 6.1. But that shouldn't matter anyway, a window's a window, right? robert
Re: How to upgrade / compile an ARM kernel?
Thanks for the tip, I'll take my question next door.
How to upgrade / compile an ARM kernel?
Hi all, I have this old hardkernel odroid-u2 chugging away as a slow but reliable mediaserver. It's a few years old and uses a Debian Wheezy I downloaded from Hardkernel's site. I now wanted to connect a two-bay USB/SATA adapter, but the odroid only sees one of the drives. Maybe it's something else, but probably it's just due to an old kernel / udev. So I dist-upgraded to jessy but got stuck halfway because the kernel is too old (3.0.57). Soon I found out that upgrading the kernel isn't as straightforward as on i386, first because of the (probably pretty simple) uboot loader, and secondly because there is a large variety of ARM SoC flavors, each of which requires its own kernel. So any tips? Am I even on the right path that the "invisibility" of one of the SATA drives is due to the old kernel /udev? I'm willing to build a new kernel for this thing. Last time I did that was probably literally almost 20 years ago. Also I'll probably need some sort of serial adapter, as the only way I currently communicate with this thing is via ssh; i.e., if the kernel won't boot I won't know why. Any tips? Thanks, robert rl@odroid:~$ cat /proc/cpuinfo Processor: ARMv7 Processor rev 0 (v7l) processor: 0 BogoMIPS: 1992.29 processor: 1 BogoMIPS: 1992.29 processor: 2 BogoMIPS: 1992.29 processor: 3 BogoMIPS: 1992.29 Features: swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls CPU implementer: 0x41 CPU architecture: 7 CPU variant: 0x3 CPU part: 0xc09 CPU revision: 0 Hardware: ODROIDU2 Revision: Serial: rl@odroid:~$ dmesg | head [0.00] Initializing cgroup subsys cpuset [0.00] Initializing cgroup subsys cpu [0.00] Linux version 3.0.57 (root@linaro-ubuntu-desktop) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #12 SMP Mon Jun 3 00:09:36 UTC 2013 [0.00] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c5387d [0.00] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache [0.00] Machine: ODROIDU2 [0.00] Memory policy: ECC disabled, Data cache writealloc [0.00] CPU EXYNOS4412 (id 0xe4412220) [0.00] exynos4_init_clocks: initializing clocks [0.00] S3C24XX Clocks, Copyright 2004 Simtec Electronics rl@odroid:~$
Re: Where are WiFi passwords (WPA keys) stored?
Hi Christian (and everybody else), thanks for all the helpful answers. NetworkManager was what I was looking for. I was just not aware of any additional layer on top of wpa-supplicant. robert On Tue, Dec 6, 2016 at 11:14 AM, Christian Seiler wrote: > On 12/06/2016 09:04 AM, Robert Latest wrote: >> Not in /etc/wpa_supplicant/wpa_supplicant.conf, despite suggestions in >> every bit of documentation that I got my hands on. In fact, that file >> doesn't even exist on my jessie system. Nevertheless, when I >> configured the WiFi network using some GUI tool in the XFCE desktop, >> it worked. > > Disclaimer: I'm not a user of XFCE, so if that does something > really weird, this may not apply. > > However, most graphical tools interface with NetworkManager, and > that stores its configuration in /etc/NetworkManager. > > You'll likely find your password stored in > /etc/NetworkManager/system-connections/$SSID > (file only readable/writable as root; also please don't modify it > while NetworkManager is running, it will overwrite it without > warning; modifying it when NetworkManager is stopped is fine > though) > > where you replace $SSID with the SSID of your WiFi. > > On some desktops (e.g. GNOME) the Password can be stored in the > personal user's keyring/wallet/password manager instead, but > then you need to be logged in for NetworkManager to have access > to the password - which is not true in your case because you > mentioned: > >> Even after a reboot, with no desktop running, I could ssh >> into the system via WiFi. > > So that means that NetworkManager has the password stored > directly. > > Note that when using NetworkManager, it configures its own > instance of wpa_supplicant, so you should never touch a > configuration file for wpa_supplicant yourself in this kind of > setup. > > (You could of course stop using NetworkManager and configure > wpa_supplicant manually, but I really wouldn't recommend that; > I don't think wpa_supplicant is designed in a way that makes > direct end-user usage easy - there's a reason why NetworkManager > exists instead of desktop environments communicating directly > with wpa_supplicant.) > >> BTW, I did find a wpa_supplicant.conf file in some deep subdir of >> /etc/dbus-1/... > > That's just the DBus policy, that doesn't configure how > wpa_supplicant reacts, but only how the DBus daemon handles > the access policy for wpa_supplicant. (DBus is a communication > bus used on Linux and other systems; most desktop envirnoments, > including XFCE, use it internally for some things.) Unless you > know what you're doing, I wouldn't touch that, otherwise you > could end up stopping NetworkManager from communicating with > wpa_supplicant and then your WiFi could stop working altogether. > > Regards, > Christian
Where are WiFi passwords (WPA keys) stored?
Not in /etc/wpa_supplicant/wpa_supplicant.conf, despite suggestions in every bit of documentation that I got my hands on. In fact, that file doesn't even exist on my jessie system. Nevertheless, when I configured the WiFi network using some GUI tool in the XFCE desktop, it worked. Even after a reboot, with no desktop running, I could ssh into the system via WiFi. So there must be a place, somewhere, where the WiFi passowrd ist stored, outside the realm of some specific user. Where is it? BTW, I did find a wpa_supplicant.conf file in some deep subdir of /etc/dbus-1/... (I'm not at that computer at the moment). But that is in some XML format that has nothing to do with the syntax described in the wpa_supplicant.conf man page, and my WPA key doesn't seem to be in there. Thanks!
Re: How to mount a LVM?
Hi all, I solved my problem: Somehow I must have corrupted the metadata in my volume groups. Scanning through the directory /etc/lvm/archive on the NAS and my linux box, there were several historical configuration files for each of my disks. I found the files that represented the last working setups for my disks, restored these using "vgcfgrestore" , and was up and running again. Thanks, robert
Re: How to mount a LVM?
LV Path/dev/vg1/syno_vg_reserved_area LV Namesyno_vg_reserved_area VG Namevg1 LV UUIDZvVm6T-FDWz-zaF4-7M4P-20i5-gXyB-4M56Hj LV Write Accessread/write LV Creation host, time , LV Status available # open 0 LV Size12.00 MiB Current LE 3 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 254:0 root@dotcom:~# vgs VG #PV #LV #SN Attr VSize VFree vg1 1 1 0 wz--n- 926.91g 926.90g vg1000 1 0 0 wz--n- 926.90g 926.90g On Thu, Nov 24, 2016 at 10:57 PM, Roland Müller < roland.em0...@googlemail.com> wrote: > Hello, > > > On 11/24/2016 08:35 PM, Robert Latest wrote: > >> Hey all, >> >> I got it to work ONCE, but for the life of me I can't figure out how to >> do it again. >> >> This is what I think I did the first time, but for the second time it >> just doesn't work. >> >> root@dotcom:~# mdadm --assemble --scan >> mdadm: /dev/md/2 has been started with 1 drive. >> mdadm: /dev/md/3 has been started with 1 drive. >> >> ---OK, good so far. Now let's find the LVs >> >> root@dotcom:~# lvmdiskscan >> /dev/loop0 [ 213.51 MiB] >> /dev/loop1 [ 206.55 MiB] >> /dev/sda1 [ 30.00 GiB] >> /dev/loop2 [ 220.89 MiB] >> /dev/md2 [ 926.91 GiB] LVM physical volume >> /dev/loop3 [ 208.05 MiB] >> /dev/md3 [ 926.91 GiB] LVM physical volume >> /dev/sda5 [ 2.00 GiB] >> /dev/sda6 [ 30.00 GiB] >> /dev/sda7 [ 200.00 GiB] >> /dev/sda8 [ 203.76 GiB] >> /dev/sdb1 [ 2.37 GiB] >> /dev/sdb2 [ 2.00 GiB] >> /dev/sdc1 [ 2.37 GiB] >> /dev/sdc2 [ 2.00 GiB] >> /dev/sdd1 [ 465.76 GiB] >> /dev/sde1 [ 149.05 GiB] >> 0 disks >> 15 partitions >> 0 LVM physical volume whole disks >> 2 LVM physical volumes >> >> ---Still looking good. Now I'm supposed to find the logical volumes, >> ---but lvdisplay simply doesn't show anything. >> >> root@dotcom:~# lvdisplay >> root@dotcom:~# >> >> ---Now I'm stuck. All LVM instructions I find on the Internet say that I >> find the path of the LVM device by using lvdisplay. Also I know that one >> hour ago I had my volumes mounted and was copying data from them. After >> properly syncing and unmounting them, and stopping the LVM and md thingys, >> I'm stuck now. >> >> Any suggestions? >> >> robert >> > > I have a problem to understand what is actually your issue with LVM. Was > your system working before and now logical volumes that were existing > before disappeared? > > What is the situation with volume group or groups? What does vgscan or vgs > commands say? > > BR, > > Roland > >
How to mount a LVM?
Hey all, I got it to work ONCE, but for the life of me I can't figure out how to do it again. This is what I think I did the first time, but for the second time it just doesn't work. root@dotcom:~# mdadm --assemble --scan mdadm: /dev/md/2 has been started with 1 drive. mdadm: /dev/md/3 has been started with 1 drive. ---OK, good so far. Now let's find the LVs root@dotcom:~# lvmdiskscan /dev/loop0 [ 213.51 MiB] /dev/loop1 [ 206.55 MiB] /dev/sda1 [ 30.00 GiB] /dev/loop2 [ 220.89 MiB] /dev/md2 [ 926.91 GiB] LVM physical volume /dev/loop3 [ 208.05 MiB] /dev/md3 [ 926.91 GiB] LVM physical volume /dev/sda5 [ 2.00 GiB] /dev/sda6 [ 30.00 GiB] /dev/sda7 [ 200.00 GiB] /dev/sda8 [ 203.76 GiB] /dev/sdb1 [ 2.37 GiB] /dev/sdb2 [ 2.00 GiB] /dev/sdc1 [ 2.37 GiB] /dev/sdc2 [ 2.00 GiB] /dev/sdd1 [ 465.76 GiB] /dev/sde1 [ 149.05 GiB] 0 disks 15 partitions 0 LVM physical volume whole disks 2 LVM physical volumes ---Still looking good. Now I'm supposed to find the logical volumes, ---but lvdisplay simply doesn't show anything. root@dotcom:~# lvdisplay root@dotcom:~# ---Now I'm stuck. All LVM instructions I find on the Internet say that I find the path of the LVM device by using lvdisplay. Also I know that one hour ago I had my volumes mounted and was copying data from them. After properly syncing and unmounting them, and stopping the LVM and md thingys, I'm stuck now. Any suggestions? robert
Re: How to run a script before shutdown?
Hi Sven, thanks, that's 99% of what I need (I'd found that thread before but didn't really read it all the way because it looked like discussion going nowhere). It still needs some tweaking, though, because it runs the backup script whenever multiuser mode is left -- no matter if it's a shutdown or reboot. In practise this doesn't make any significant difference though. Regards, robert On Sun, Nov 13, 2016 at 9:26 PM, Sven Joachim wrote: > On 2016-11-13 20:34 +0100, Robert Latest wrote: > > > I want to automatically start a data backup script (to USB or network > > drive) at each shutdown of my computer. I did some research into this > > and found that several people have the same problem as I do. But the > > threads I found petered out into discussions of several ways of doing > > this, working for some people and not for others. So here I am > > wondering if there is a canonical, proper and reliable method of doing > > this. > > > > The script needs to run when a shutdown (but not a reboot) is started > > while networking and USB mounts are still up, and (preferably) > > multi-user mode has turned off. Perusing the systemd documentation I > > found all kinds of good examples of how to start stuff in a well-ordered > > manner to get the system up, but for shutting down there is quite little > > information. > > > > How is it done? > > There is a possible answer on superuser.com[1], scroll towards the end. > > HTH, > Sven > > > 1. http://superuser.com/questions/1016827/how-do-i-run-a-script-before- > everything-else-on-shutdown-with-systemd > >
How to run a script before shutdown?
Hi all, I want to automatically start a data backup script (to USB or network drive) at each shutdown of my computer. I did some research into this and found that several people have the same problem as I do. But the threads I found petered out into discussions of several ways of doing this, working for some people and not for others. So here I am wondering if there is a canonical, proper and reliable method of doing this. The script needs to run when a shutdown (but not a reboot) is started while networking and USB mounts are still up, and (preferably) multi-user mode has turned off. Perusing the systemd documentation I found all kinds of good examples of how to start stuff in a well-ordered manner to get the system up, but for shutting down there is quite little information. How is it done? robert
Re: Can't get sound to work
On Fri, 16 Jan 2015 15:11:24 -1000 Joel Roth wrote: > Robert Latest wrote: > > With aplay -D hw:0,0 it still works. > > You're 99% to the destination. > > IIRC, directly addressing the sound device > as hw:0,0 takes the whole device, will not > allow software mixing of audio streams from > other applications. OK guys, thanks a lot for all the helpful hints. What I ended up doing is this: - purge all pulse audio stuff - created an .asoundrc like this: pcm.!default { type plug slave { pcm "hw:0,2" } } ctl.!default { type hw card 1 } I don't understand the first thing about this. I just copied this file from somewhere. Note the "hw:0,2" part. Remember that I had to use -D hw:0,0 with aplay to make sound work while pulseaudio was installed? Now hw:0,2 is the way to go. Search me why. Thanks robert -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20150120200730.7c3ca994@dotcom.mfs32
Re: Can't get sound to work
On Thu, 15 Jan 2015 19:43:23 -0500 Ric Moore wrote: > On 01/15/2015 03:54 PM, Hans wrote: > > First questions: > > > > Are you running pulseaudio or alsa? > > > > Did you try alsamixer? > > > > Often it is possible, to choose different hardware in the GUI. Did > > you try other ones, too? > > > > Best > > He's got an asoundrc file in /etc. I thought that use was deprecated > some years ago. Maybe if the OP mv;d that file to another name, > rebooted and ran alsamixer first, then add pavucontrol along with > pulse, he might have a better experience, IMHO. Hi Ric, it's getting weirder: I installed pavucontrol, started it, and started mplayer in some other window. No sound on my headphones, but the little VU bar flashing. Unplugged headphones, sound came from the built in speaker. Plugged headphones back in, pavucontrol sees it and changes from "unplugged" tp "plugged in", still no sound on headphones. With aplay -D hw:0,0 it still works. OK, now trying to remove all pulse-related stuff. Thanks robert -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20150116205622.3f0fc1af@dotcom.mfs32
Re: Can't get sound to work
On Thu, 15 Jan 2015 19:43:23 -0500 Ric Moore wrote: > On 01/15/2015 03:54 PM, Hans wrote: > > First questions: > > > > Are you running pulseaudio or alsa? I don't know. I seem to have both on my system. I don't know what the difference is, or if one is running on top of the other, or if they are fighting over my soundcard. How would an application that wants to play sound figure out which system to use? > > > > Did you try alsamixer? When I just run alsamixer, I see one big vertical adjustment. When I run alsamixer -c 0 I see a lot of controls (Master, Headphone, PCM...). Still I can't hear anything unless running aplay -D hw:0,0. > > Often it is possible, to choose different hardware in the GUI. Did > > you try other ones, too? F6 lets me select different cards in alsamixer, but it doesn't change anything if I run anything but aplay -D hw:0,0 in another window. > > He's got an asoundrc file in /etc. I thought that use was deprecated > some years ago. I put it there hoping to make the "-D hw:0,0" thingy the default for all sound-playing software. > Maybe if the OP mv;d that file to another name, > rebooted and ran alsamixer first, then add pavucontrol along with > pulse, he might have a better experience, IMHO. I'll try that (have to install first). If it works, can I then purge all ALSA-related stuff from my system? Or could I also remove all pulse-related stuff and keep ALSA? > I happen to love > using pulse, although years ago I was spitting mad at it. Works a > charm for me now, especially when using different sound > inputs/outputs on the fly. Ric I'm not that picky. All I want is hear sound from mplayer or webpages with video content. Thanks, robert -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20150116192420.25211d69@dotcom.mfs32
Can't get sound to work
Hi all, this is my umptieth Debian installation I've done on various PCs over the years, but this time the sound setup really has me stumped. I can't hear anything unless I use aplay with -D hw:0,0 but setting that in the configuration file doesn't help. No other sound-outputting program works. Here's a shell excerpt: bl@dotcom:~$ aplay test.wav # can't hear nothing bl@dotcom:~$ aplay -D hw:0,0 test.wav # this plays sound bl@dotcom:~$ cat .asoundrc cat: .asoundrc: No such file or directory bl@dotcom:~$ cat /etc/asound.conf pcm.!default { type hw card 0 device 0 } bl@dotcom:~$ aplay -l List of PLAYBACK Hardware Devices card 0: Intel [HDA Intel], device 0: AD1984 Analog [AD1984 Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: Intel [HDA Intel], device 2: AD1984 Alt Analog [AD1984 Alt Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 bl@dotcom:~$ cat /proc/asound/cards 0 [Intel ]: HDA-Intel - HDA Intel HDA Intel at 0xfe9dc000 irq 45 bl@dotcom:~$ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20150115212830.16a3294a@dotcom.mfs32
Aptitude / Debfoster incompatibility?
Hello all, I usually use aptitude to install and de-install packages. Recently I've discovered debfoster and tried to use it to weed out unneeded packages. I got rid of some 100 packages using debfoster, but the nest time I started up aptitude, it wanted to re-install all of them (and it did, because I found no way around that). Strangely I couldn't find any mention of this on the Web. What's going wrong here? Regards, robert -- 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/CAMXbmUTZGrL3mO5Axb=hzpktl0p9zmmgxgv4-vkejq2kfuu...@mail.gmail.com
Re: How to make snd-aloop use index 0?
Hello Andrej, On Sun, Jan 6, 2013 at 10:05 PM, Andrei POPESCU wrote: > Try removing all snd- modules and then manually inserting snd-aloop with > option index=0. I tried that, and it works. So, technically, my problem is solved - but what I'm after is a solution that works automatically on each boot-up. Best regards, robert -- 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/camxbmurpxaazcxrcjszonkvurtchqb7pbbxzoz_45-uuees...@mail.gmail.com
How to make snd-aloop use index 0?
Hello all, I know what you're thinking. Why doesn't the guy just type the subject of this message into Google and use one of the soöutions provided. Well, I did just that. I don't even really have to choose between solutions because everybody suggests the same: Include the following lines in the appropriate file in /etc/modprobe.d: alias snd-card-0 snd-aloop alias snd-card-1 snd-hda-intel options snd-aloop index=0 pcm_substreams=2 options snd-hda-intel index=1 I did that. The "relevant file" on my Debian system seems to be called "alsa-base.conf", so that's where I included them. Beginning or end, it didn't matter. The onboard soundcard is always index 0, and the aloop module doesn't load at all: root@dotcom:/etc/modprobe.d# uname -a Linux dotcom 3.2.0-4-686-pae #1 SMP Debian 3.2.35-2 i686 GNU/Linux root@dotcom:/etc/modprobe.d# aplay -l List of PLAYBACK Hardware Devices card 0: ICH7 [Intel ICH7], device 0: Intel ICH [Intel ICH7] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: ICH7 [Intel ICH7], device 4: Intel ICH - IEC958 [Intel ICH7 - IEC958] Subdevices: 1/1 Subdevice #0: subdevice #0 root@dotcom:/etc/modprobe.d# modprobe snd-aloop ERROR: could not insert 'snd_aloop': No such device root@dotcom:/etc/modprobe.d# dmesg | tail -n 3 [ 445.897214] cannot find the slot for index 0 (range 0-0), error: -16 [ 445.897229] snd_aloop: probe of snd_aloop.0 failed with error -16 [ 445.897278] aloop: No loopback enabled Hints, anyone? Thanks, robert -- 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/camxbmusv-9ytdop3trxww_rgnp7xpmhxmi_p2avadnrjywk...@mail.gmail.com
Re: How to address hosts in dual ethernet networks?
Thanks, Henning, and everybody else for helping out on this. I think I know what I have to do now. Regards, Robert -- 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/CAMXbmUSkwKqYWhJLFZccnx7r8YXkTNU1Ub3d5M+4OqfjuMHF=q...@mail.gmail.com
Re: How to address hosts in dual ethernet networks?
On Wed, Oct 3, 2012 at 8:35 PM, lee wrote: > What if you actually do make your host a bridge that bridges the two > networks and let the Modbus devices get their addresses from the DHCP > server? Can't. My local "modbus" subnet must not be visible from the outside. Actually there are several production tools in use here that use similar subnets with 400+ nodes (=IP addresses) in just the manner I'm describing. There's no point in exposing all that to the outside network, and it's also a potential security and reliability issue. Just imagine a multi-million dollar tool out of production because the DHCP server is down, when all those modules need to talk to is the local controller. > You could also use another private address range like 10.x.x.x for the > Modbus devices. Yeah, I'll do something of the sort. As I said, all I need to connect to on the intranet side is a single host, so I'm sure I'll find an unused address space ;-) Thanks, robert -- 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/camxbmuqztk+brbcrwkro+uc0rv8xxwsja+osjup4xpzf6ft...@mail.gmail.com
Re: How to address hosts in dual ethernet networks?
On Wed, Oct 3, 2012 at 7:45 PM, Henning Follmann wrote: > The network design at your place seems like a mess and the best advice > I can give you is to clean that up BEFORE you do anything else. What's the mess? That the Intranet contains 192.168... addresses? Anyway, this is a big multinational corporation, and I can't have any situation where the Intranet "sees" my Modbus devices, and I can't make any assumptions about addresses being or not being in use in the Intranet. I understand that from the viewpoint of my control PC I can't have any duplicate addresses because that's how IP addresses work. That was my basic question, and it was answered. So as long as I put my modbus stuff into an IP address range that I don't need on the intranet, and I make that address space "invisible" on the intranet side using a netmask, I'm fine. > The devices on your modbus should be assign a unique IP address which > MUST NOT overlap with any other range already in use at your place. Got that. Thanks! robert -- 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/camxbmur8b1ehdaskoogkhweugk3aen7mbq7nij-m7cbsqhx...@mail.gmail.com
Problem installing an init script with "insserv"
Hello all, I'm trying to have the script (below) run automatically at each system shutdown. But it is never called, neither on startup nor on shutdown. I ran insserv on it and it worked without errors. It also seems to have the correct links installed: dh@dotcom:/etc$ find . -name '*dupba*' -printf '%p %l\n' ./rc5.d/K01dupbackup ../init.d/dupbackup ./rc2.d/S01dupbackup ../init.d/dupbackup ./init.d/dupbackup dh@dotcom:/etc$ So why doesn't this work? It used to work before I upgraded from stable to testing. I've also played with the Default-Start and -Stop levels, no change. Permissions are 755 as for all other init.d script. Thanks, robert #!/bin/sh # # ### BEGIN INIT INFO # Provides: dupbackup # Required-Stop: $local_fs $syslog # Required-Start: # Default-Start: 2 # Default-Stop: 5 # Description: Custom crypto backup system ### END INIT INFO logger -s "Called as $0 $1" sleep 10 # this should make the script very noticeable case "$1" in start) echo "No backup on start-up" ;; stop) sh /usr/local/bin/dupbackup.sh ;; esac -- 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/CAMXbmUSM=ijkunbegk0xvloo-oscbga5unndqdie-uyskwo...@mail.gmail.com
Re: X Keyboard layout trouble
On Sun, Jan 2, 2011 at 5:37 PM, Camaleón wrote: > Run "xev" and type the combo of one of the characters you are not > getting, like "[" to see what you get instead. Interesting: In xev, I seem to get exactly what I want -- see below xev's dump of my first pressing AltGr, then a bunch of keys I would like to have, then releasing AltGr. What now? I'm stumped. robert KeyPress event, serial 27, synthetic NO, window 0xe1, root 0x66, subw 0x0, time 452787, (321,450), root:(322,466), state 0x0, keycode 113 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyPress event, serial 27, synthetic NO, window 0xe1, root 0x66, subw 0x0, time 453093, (321,450), root:(322,466), state 0x88, keycode 94 (keysym 0x7c, bar), same_screen YES, XLookupString gives 1 bytes: (7c) "|" XmbLookupString gives 1 bytes: (7c) "|" XFilterEvent returns: False KeyRelease event, serial 27, synthetic NO, window 0xe1, root 0x66, subw 0x0, time 453169, (321,450), root:(322,466), state 0x88, keycode 94 (keysym 0x7c, bar), same_screen YES, XLookupString gives 1 bytes: (7c) "|" XFilterEvent returns: False KeyPress event, serial 27, synthetic NO, window 0xe1, root 0x66, subw 0x0, time 453441, (321,450), root:(322,466), state 0x88, keycode 19 (keysym 0x7d, braceright), same_screen YES, XLookupString gives 1 bytes: (7d) "}" XmbLookupString gives 1 bytes: (7d) "}" XFilterEvent returns: False KeyRelease event, serial 27, synthetic NO, window 0xe1, root 0x66, subw 0x0, time 453535, (321,450), root:(322,466), state 0x88, keycode 19 (keysym 0x7d, braceright), same_screen YES, XLookupString gives 1 bytes: (7d) "}" XFilterEvent returns: False KeyPress event, serial 27, synthetic NO, window 0xe1, root 0x66, subw 0x0, time 453736, (321,450), root:(322,466), state 0x88, keycode 18 (keysym 0x5d, bracketright), same_screen YES, XLookupString gives 1 bytes: (5d) "]" XmbLookupString gives 1 bytes: (5d) "]" XFilterEvent returns: False KeyRelease event, serial 27, synthetic NO, window 0xe1, root 0x66, subw 0x0, time 453839, (321,450), root:(322,466), state 0x88, keycode 18 (keysym 0x5d, bracketright), same_screen YES, XLookupString gives 1 bytes: (5d) "]" XFilterEvent returns: False KeyPress event, serial 27, synthetic NO, window 0xe1, root 0x66, subw 0x0, time 453995, (321,450), root:(322,466), state 0x88, keycode 17 (keysym 0x5b, bracketleft), same_screen YES, XLookupString gives 1 bytes: (5b) "[" XmbLookupString gives 1 bytes: (5b) "[" XFilterEvent returns: False KeyRelease event, serial 27, synthetic NO, window 0xe1, root 0x66, subw 0x0, time 454103, (321,450), root:(322,466), state 0x88, keycode 17 (keysym 0x5b, bracketleft), same_screen YES, XLookupString gives 1 bytes: (5b) "[" XFilterEvent returns: False KeyPress event, serial 27, synthetic NO, window 0xe1, root 0x66, subw 0x0, time 454260, (321,450), root:(322,466), state 0x88, keycode 16 (keysym 0x7b, braceleft), same_screen YES, XLookupString gives 1 bytes: (7b) "{" XmbLookupString gives 1 bytes: (7b) "{" XFilterEvent returns: False KeyRelease event, serial 27, synthetic NO, window 0xe1, root 0x66, subw 0x0, time 454417, (321,450), root:(322,466), state 0x88, keycode 16 (keysym 0x7b, braceleft), same_screen YES, XLookupString gives 1 bytes: (7b) "{" XFilterEvent returns: False KeyRelease event, serial 27, synthetic NO, window 0xe1, root 0x66, subw 0x0, time 454719, (321,450), root:(322,466), state 0x88, keycode 113 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False -- 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/aanlkti=kdj=ie=rlvqpqwrhnu77+kam+nxuh2gxrr...@mail.gmail.com
Re: X Keyboard layout trouble
On Sat, Jan 1, 2011 at 10:13 PM, Camaleón wrote: > Mine (under lenny) is this: > > Section "InputDevice" > Identifier "Generic Keyboard" > Driver "kbd" > Option "XkbRules" "xorg" > Option "XkbModel" "pc105" > Option "XkbLayout" "es" > EndSection > > So try by commenting ("#") the "XkbVariant" line (the full line, > starting in "#Option") and the restart the X server, relogin or reboot. Tried it all. It really isn't that simple in this case. Best regards, robert -- 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/aanlkti=qzuwtw9zbwe6ona8bj=p4wsqlkwcav-xma...@mail.gmail.com
X Keyboard layout trouble
On Tue, Dec 28, 2010 at 12:26 PM, Camaleón wrote: > > How does your "/etc/X11/xorg.conf" InputDevice section look like? Like this: Section "InputDevice" Identifier "Generic Keyboard" Driver "kbd" Option "XkbRules" "xorg" Option "XkbModel" "pc102" Option "XkbLayout" "de" Option "XkbVariant" "nodeadkeys" EndSection Thanks, robert -- 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/aanlkti=akklmvkknuthxnjusazqppdne2o+mdfaza...@mail.gmail.com
X Keyboard layout trouble
Hello all, recently I re-activated my wife's 8-year-old laptop using debian stable. The installation went of course quickly and hitch-free as usual. However, what doesn't work correctly is the keyboard under X. More precisely, the symbols accessed using the "Alt Gr" key produce all sorts of characters, but not the much-needed []{}|. This is a German Medion MD6100 (Aldi) laptop. I tried out several X keyboard configurations, but they either didn't work at all or just as lousy. The console (non-X) keyboard works fine. By the way, I'm delighted about the performance Debian gets out of this old veteran, even with a fully encrypted harddisk. Of course all I use as X environment is dwm, I don't want to even think about what this would look like with a full-blown Gnome or KDE desktop. Thanks, robert -- 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/aanlktikk8kyofhehlmcy_u3lfnro2u-rw_5+3k=yw...@mail.gmail.com
Re: Connection loss to mounted nfs volume
Sorry guys for the incremental mess I made in this mailing list.Must be a bug in claws-mail's IMAP handling. robert -- 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/aanlkti=av=vic71e1lvv4ww=+_aa_xm0xn2fswe5f...@mail.gmail.com
Trouble mounting an NFS share
Hello all, I'm trying to mount an external NFS share on a Debian box. I must admit that the server is not a Debian system but a D-Link DNS-323 NAS running Linux. I think the problem is on the server side. (I've set up an NFS server on the localhost as well for testing, and it works fine.) What could be wrong here? Where should I check? Regards, robert On the server: / # cat /etc/exports /mnt/HD_b2 *(rw) / # on the client: client:/# rpcinfo -p 192.168.1.2 program vers proto port 102 tcp111 portmapper 102 udp111 portmapper 1000241 udp 1024 status 1000241 tcp 1025 status 151 udp 1025 mountd 151 tcp 1026 mountd 152 udp 1025 mountd 152 tcp 1026 mountd 153 udp 1025 mountd 153 tcp 1026 mountd client:/# showmount -e 192.168.1.2 Export list for 192.168.1.2: /mnt/HD_b2 * client:/# mount -v -t nfs 192.168.1.2:/mnt/HD_b2 /mnt mount.nfs: timeout set for Mon Jun 28 21:53:10 2010 mount.nfs: trying text-based options 'vers=4,addr=192.168.1.2,clientaddr=192.168.1.11' mount.nfs: mount(2): Input/output error mount.nfs: mount system call failed (the last two lines appear after several minutes). -- 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/aanlktimujmacqdjxitdlvsq1wjc7uy7oafumk5878...@mail.gmail.com
How to run an X program as a different user?
Hello all, my question is already in the subject line. Also I think that I've got the basics figured out, it's just that I don't understand the details. Essentially I want user A to run a specific X app as user B. So I think I need to write a tiny shell script like this: #!/bin/sh xhost +B sudo -u B /path/to/app arg1 arg2 arg3 xhost -B I need help with two things though: One, "xhost +B" doesn't work, contrary to the manpage. "xhost +" works, granting X access to the entire Net, but who cares. This is just a home computer. Two, I can't figure out for the life of me what the entry in /etc/sudoers must look like to make sudo do what I want. Thanks, robert -- 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/aanlktinaguvyzl8f_eiwwb4dmbf2i9vjhkfrwuq-9...@mail.gmail.com
Console font turned cyan
Hello folks, I don't know when it happened but it must have been during some "aptitude upgrade" run lately: My console font turned from white to cyan. At first I thought that the red VGA signal had a bad contact, but X came up in full color. Console apps can control the color to a certain extent, but the default color is a really gross cyan which produces weird color effects on an LCD with the thni Terminus fonts. In other words, I can't live with it. Where is this controlled, and how can it be switched back to white again? Regards, robert -- 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/r2if68d89471004081029id60eade7ob81eb78c492fc...@mail.gmail.com
What happened to xpdf in testing?
Hello all, I've searched the Net up and down but had to realize in puzzlement that I seem to be the only one with this problem. After an upgrade from stable to testing I found that xpdf had gone. Sure enough, the page about the package "xpdf" at http://packages.debian.org/squeeze/xpdf says: "This package is intended for compatibility with previous versions of this package only. You can safely remove it from your system." OK, but where is the "xpdf" program now? The only thing with "xpdf" in its name is some virtual package called "xpdf-utils" which is provided by poppler-utils which doesn't contain xpdf. Thanks, robert -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: How to activate VESA mode on boot-up?
Hello Frank, > Assuming you are running a Debian kernel, Correct, 2.26-2-686 out of the box >> Use vga=ask for menu. doesn't work. All I get is the list of standard VGA modes. When I type "scan", the screen goes blang for about a minute but the system doesn't find any additional modes. >> So the table for the Kernel mode numbers are: >> >> | 640x480 800x600 1024x768 1280x1024 >> +- >> 256 | 0x301 0x303 0x305 0x307 >> 32k | 0x310 0x313 0x316 0x319 >> 64k | 0x311 0x314 0x317 0x31A >> 16M | 0x312 0x315 0x318 0x31B None of these work. I mean, none. > I usually have vga=791 (the decimal for 0x317), to use 1024x768. Used to work fine with the -k7 kernel, it doesn't with the (newer) -686 I've been all over this, read all the docs and stuff. It's probably time to file a bug against the kernel. Although it's strange that exactly nobody else has this problem. Regards, robert -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
How to activate VESA mode on boot-up?
Hello folks, recently I accidentally hosed my old kernel image (it was something that ended on -k7). The only reason I'd kept it was because I couldn't get anything but the ugly boxy 80-by-something text mode console fonts to work with the 2.6.26-x-686 line of Debian prepackaged kernels. Anyway, rather than try and go hunting for an old -k7 kernel I'd like to finally get a decent video mode working on with a current 2.6.26-2-686 (stable release). Long story short, when I put "vga=ask" in grub's menu.lst, I can't enter anything but the 80-by-something modes. I've searched the Net up and down, have tried the 0x30... modes in hex, in decimal , with the '0x' and without ... nothing. The kernel simply doesn't know any additional modes (and doesn't list them. either). What can I do? I like working in the console a lot, but I need more and better-looking characters on screen. Thanks, robert -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
How to turn sound on by default?
Hello there, when I want to use sound on my computer, I always have to start the (GUI app) "gnome-alsamixer" and un-mute it. Even on the Gnome desktop it's not enough to click off the little red mute symbol next to the loudspeaker in the upper right corner, no, I also have to go explicitly through alsamixer. Is there a command-line tool that I could put into an /etc/rc.local script that turns on the sound automatically? Thanks, robert -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: How to change console font?
Hello Kelly, > As far as I know, any mode other than 80x25 is FB. There are two > way to display a penguin, one is the kernel option for a boot logo > (off by default in debian), the other is a boot splash program, such > as splashy or usplash. Yeah, but I don't want the penguin anyway. What I want is a usable console. > All I do to enable higher resolution fb modes is put "vga=791" in the > kernel boot options and make sure console-setup is installed. I am > pretty stumped as to why this isn't working for you. So am I. I found that I didn't have the console-setup installed, I installed it, and was happy to see after a reboot that midway through the boot process I got a different video mode. However, after a power cycle, everything was back at 80x25 again. Also I think that the fb modes should be available directly from the start, seeing that fb support is compiled into the kernel. Is it time to file a bug against the kernel? Remember, with the latest -k7 version from sarge everything works hitch-free. Regarding the /dev/fb* nodes: Indeed my machine uses udev, and I grepped all of /etc/udev/ for strings with "fb", "framebuffer" and such. Nothing at all. Udev doesn't seem to know about framebuffers. But I suppose that doesn't matter because the kernel should have fb support right from the start, when it doesn't even have a filesystem yet. robert -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: How to change console font?
Another curious thing: I tried to make some framebuffer devices in /dev (as described in the HOWTO), but they get deleted on reboot! Since when gets stuff deleted from /dev? Did my system go haywire somehow, or could this have to do with its being the "testing" branch? Thanks, robert -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: How to change console font?
Hello there, I'm completely stumped. I'm using the out-of-the-box lenny kernel vmlinuz-2.6.26-1-686. According to the config file, ehere seem to be many framebuffer options hard-compiled into the kernel (seel below). When I set the "vga=ask" kernel option, all I get is a handful of chunky 80-by-something options. Selecting "scan" doesn't reveal anything new. All of the modes listed in the "framebuffer HOWTO" yield a "video mode unavailable" error. Yes I know I can't just enter numeric modes at the prompt, I've also tried them in the command line, decimal, hexadecimal, it doesn't matter. What's going on here? When I boot a KNOPPIX cd I get the framebuffer, so it can't be a hardware issue. BTW, on the vmlinuz-2.6.18-6-k7 I used to use mode 775 which doesn't seem to be a fb mode because it doesn't have the penguin logo. robert b...@bob:/boot$ grep 'FB.*y' config-2.6.26-1-686 CONFIG_FB=y CONFIG_FB_CFB_FILLRECT=y CONFIG_FB_CFB_COPYAREA=y CONFIG_FB_CFB_IMAGEBLIT=y CONFIG_FB_DEFERRED_IO=y CONFIG_FB_BACKLIGHT=y CONFIG_FB_MODE_HELPERS=y CONFIG_FB_TILEBLITTING=y CONFIG_FB_PM2_FIFO_DISCONNECT=y CONFIG_FB_VESA=y CONFIG_FB_EFI=y CONFIG_FB_NVIDIA_I2C=y CONFIG_FB_NVIDIA_BACKLIGHT=y CONFIG_FB_INTEL_I2C=y CONFIG_FB_MATROX_MILLENIUM=y CONFIG_FB_MATROX_MYSTIQUE=y CONFIG_FB_MATROX_G=y CONFIG_FB_MATROX_MULTIHEAD=y CONFIG_FB_RADEON_I2C=y CONFIG_FB_RADEON_BACKLIGHT=y CONFIG_FB_ATY128_BACKLIGHT=y CONFIG_FB_ATY_CT=y CONFIG_FB_ATY_GENERIC_LCD=y CONFIG_FB_ATY_GX=y CONFIG_FB_ATY_BACKLIGHT=y CONFIG_FB_SAVAGE_I2C=y CONFIG_FB_SIS_300=y CONFIG_FB_SIS_315=y CONFIG_FB_GEODE=y b...@bob:/boot$ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
How to selectively automount USB disks under GNOME?
Hello, me and USB again. I normally use usbmount to automount USB disks. To download pictures from my digital camera's card, I've written a hook script which checks for certain things (the existence of a "DCIM" folder, specifically), and if these are found, automatically downoads all images from the card and sorts them into the appropriate folders. This works fine when I use my favorite environment (console and fvwm), but when my wife uses the Gnome desktop, some other automount mechanism seems to override usbmount. I don't want to tuen off the Gnome automount machanism altogether, because of course USB sticks and other stuff should still be mounted as before. It's just that volumes which have certain properties should be processed specifically. Is this possible? Thanks, robert -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: How to change console font?
On Mon, Mar 2, 2009 at 2:42 AM, Chris Jones wrote: > This should get you up to speed re: the fb console: > > http://tldp.org/HOWTO/Framebuffer-HOWTO.html I had already looked at that document up to the point where it says: "Reboot the kernel, and as a simple test, try entering 0301 at the VGA prompt (this will give you 640x480 @ 256), and you should be able to see a cute little Penguin logo." This didn't work (I got an error message saying that this mode was unavailable). I just rechecked the HOWTO and saw that there are many more possible modes, and they are all of the (hexadecimal) form 0x###, not (octal) 0###, maybe that's why it didn't work. Maybe omitting the 'x' is a mis-print in the HOWTO, or maybe it's just the 0301 mode that doesn't work on my card. I'll try again whan I get to the machine. Thanks, robert -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
How to automount USB disks at boot-up?
Hello people, the subject says it all. I (often, but not always) have a portable USB disk connected to the computer that I would like to have automounted on boot. I could just knit some init script for this task, but before I do that I'd like to check if there is a "canonical Debian way" to achieve it. Thanks, robert -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
How to change console font?
Hello folks, since many kernels ago I've used VGA console fonts that have been more pleasant than the standard 80x25 screen (mode 775). However, since my recent upgrade to lenny, this often doesn't work any more. Sometimes I get the font I want, sometimes I get the 80x25 one, and sometimes I get asked which mode I want (as if I had given the "vga=ask" boot option). I don't know why this is so erratic, but my system seems to slowly settle for the "ask" way of doing things. Well, I now want this to stop. A font that I really like is the one Knoppix uses. I think it is a framebuffer mode (it has the pengiun logo, too, which I don't care much for). How can I activate a mode like this? I'm running the 2.6.26-1-686 kernel from lenny. Speaking of kernel: I noticed that in lenny there aren't any -k7 kernels any more (or rather, the package is "for transition only"). Does this mean that the 686 and k7 branches have been merged? Thanks, robert -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org