missing dependency of lprng?
Hi, Today I have noticed this (on Wheezy). When I do lp some.pdf I see the following error message: p11-kit: couldn't load module: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such file or directory A trivial querry apt-file search /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so yields: gnome-keyring: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so I would like to ask, whether this is on purpose or a bug. I mean, I can print test page via CUPS just fine, isn't there a way to print stuff without installing gnome-keyring? Kind regards, -- Matej Kosik -- 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/5479ca83.9010...@gmail.com
task-laptop question
Hi, Yesterday I installed Debian testing on my laptop. - I said no to desktop environment and yes to task-laptop After the installation, network-manager was available. With nmtui I was able to activate available wifi connection. However, I wasn't able to get online until I did this: ifdown eth0 Is this expected/desired situation? I mean, it is not the end-of-world-situation, but it is not a good default state either. (NOTE: after manually installing ifplugd, things are smoother, although I am not sure if this was the best thing to do). -- 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/53fd9366.6080...@gmail.com
Re: Grub ... updating kernels
On 06/07/14 13:04, David Baron wrote: As part of my new 64bit installation, I am now on Grub. I am familiar with Lilo, know how to edit lilo.conf, etc. Of Grube, which I have avoided until now, I know nothing. No man page either. The safest place to start probably should be info grub. -- 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/53b942f0.5030...@gmail.com
Xorg and composite UNICODE characters
Hi, I am trying to create a keyboard layout variant, that would enable me to type some of the IPA characters I need. E.g., if I want to access ɔ via Alt+o I change key AD09 { [ o, O, NoSymbol, NoSymbol ] }; to key AD09 { [ o, O, U0254, NoSymbol ] }; in the corresponding /usr/share/X11/xkb/symbols/* file. This works because encoding of ɔ in UNICODE is 0x0254. (according to http://www.phon.ucl.ac.uk/home/wells/ipa-unicode.htm) So far, so good. Then I tried to make: ɔ̃ accessible via Alt+Shift+o No I am not sure how can I do that. Neither: key AD09 { [ o, O, U0254, U02540303 ] }; nor key AD09 { [ o, O, U0254, U03030254 ] }; works. What is the right way to do it (i.e. how to map some existing key to ɔ̃ ?) Thanks in advance for any hints. -- 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/5323962d.2010...@gmail.com
jessie: enigmail breaks (?) icedove
Dear fellows, I have recently noticed that it is no longer possible to install enigmail from Debian (Jessie) repositories without uninstalling icedove. Aptitude reports: enigmail breaks icedove This is puzzling because enigmail without icedove is not useful. My workaround is to install enigmail through that *.xpi provided by mozilla, but that is exactly what I do not normally want to do (use some random semi-package-managers people tend to invent) My question is, what happened with the enigmail package? Does it behave as expected (and is it somehow useful without icedove) or is it broken and a bugreport has to be filed? Thanks in advance for any good advice. -- 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/5272b31f.8090...@gmail.com
a question concerning rxvt-unicode and update-alternatives
Hi, I would like to set rxvt-unicode program as x-terminal-enulator. Is this supposed to be possible? The rxvt-unicode program is now already installed, but when it does not seemed to be offered in: update-alternatives --list x-terminal-emulator None of the existing options: /usr/bin/aterm-xterm /usr/bin/koi8rxterm /usr/bin/lxterm /usr/bin/rxvt-xpm /usr/bin/rxvt-xterm /usr/bin/urxvt /usr/bin/uxterm /usr/bin/xterm seems to provide unicode support. I am using Debian testing (Jessie), currently. -- 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/5236fd9e.1020...@gmail.com
strange bash behavior
Hello, This morning I have been puzzled by bash. After typing the following command: for i in `seq 1 5`;do echo $i; test $i = 3 break; done I see: 1 2 3 Which is OK. However, if the break command appears in a subshell: for i in `seq 1 5`;do echo $i; test $i = 3 (break); done then the break command does not seem to have any effect 1 2 3 4 5 I am curious, is this something to be expected? -- 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/52245a1b.2030...@gmail.com
Re: strange authentication request (GNOME)
On 29/05/13 11:59, Brad Rogers wrote: On Wed, 29 May 2013 10:47:55 +0100 Matej Kosik 5764c029b688c1c0d24a2e97cd7...@gmail.com wrote: Hello Matej, The reason seems to be that, from now on, GNOME cannot be installed without PackageKit. :-/ Oh dear. Maybe removal of the GNOME meta-package will allow you to remove PackageKit. If that's what you wish to do. GNOME KDE somewhat increase the fragmentation. The trend (for GNOME KDE) seems to be: --- Debian figured out unified management of window-manager menus. Does GNOME use it? Of course not. They created their own and stick to that. Result: package-maintainers have to support Debian, as well as, GNOME menues. --- Debian figured out unified management of preferred applications. Does GNOME use it? Of course not. They created their own mechanism. Result: users have to set preferences at two (or more) different places. --- (and now the PackageKit stuff) as if, GNOME was somehow special and deserved special treatment. :-/ Imagine, what would happen if everybody behaved this way... -- 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/51a70ff3.9020...@gmail.com
Re: strange authentication request (GNOME)
On 28/05/13 16:38, Brad Rogers wrote: On Tue, 28 May 2013 16:16:36 +0100 Matej Kosik 5764c029b688c1c0d24a2e97cd7...@gmail.com wrote: Hello Matej, On my desktop (squeeze), I've noticed the following authentication request ... attached {etc.} Do you use update-notifier? That is, is the update-notifier package installed? If yes, that's why you're seeing PackageKit now; The last update of update-notifier was a transition to PackageKit. No, update-notifier package was not installed. The reason seems to be that, from now on, GNOME cannot be installed without PackageKit. :-/ -- 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/51a5cecb.4090...@gmail.com
strange authentication request (GNOME)
Hi, On my desktop (squeeze), I've noticed the following authentication request ... attached When I clicked on more details and the provided links, it leads to: http://www.packagekit.org/pk-intro.html I am confused. Is this some new dpkg/apt frontend or something unrelated? It somehow autonomously requested root password, which is sort of strange. I haven't seen this before... :-/ (thanks in advance for answers) attachment: authentication_request.png
multi-core system and the file system
Hello, I would like to ask, whether there is some intelligent way how to synchronize processes over the file-system state. E.g., if one process creates|modifies|deletes some file, how can I learn *when* that effect hits all cores? (not just the one where I executed those operations) Thanks in advance for any clues. -- 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/515c3c17.7030...@gmail.com
OT: What is the meaning of /proc/$PID/fd/* files?
Hello, I am trying to figure out the meaning of: /proc/$PID/fd/* files. As: - their name suggests - as most of the descriptions on the web around indicate - and consistently with wishful thinking I thought that writing to /proc/$PID/0 would mean that designated process will receive the written date. To verify this, I wrote a small program: - #include unistd.h char buf[10]; int main() { unsigned u = read(0, buf, 10); write(1, buf, u); return 0; } - ran it: ./main and then if I tried something like this: echo foo /proc/$PID/fd/0 the expectation were that the process would be able to read 4 bytes from its standard input. 'f', 'o', 'o', '\n' What actually happened was: - foo string appeared on the appropriate terminal - the ./main process remained blocked in the read system call. Is there somewhere a concise and correct description that explains this? -- 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/51235ae0.4040...@gmail.com
Re: a question about firewalls (or whatever else that might cause packet drop)
On 11/29/2012 12:21 AM, Pascal Hambourg wrote: Hello, Matej Kosik a écrit : I am experiencing some deterministic packet drop: - when I tcpreplay on lo some pcap (0.pcap) file, that traffic does not reach listening applications - when I change source IP address from whatever it was to, e.g., 10.0.10.6, 10.0.10.7 etc, Why these addresses ? What's special with them ? What is the original source address ? I have discovered the following regularity: - if source IP address in given pcap is one of my IP addresses, then when I try to tcpreplay given pcap, the data is not delivered to applications - if I change all source IP addresses to any other non-local IP addresses (e.g. 10.0.10.6, 10.0.10.7, ... or if I use whatever other address from local network except for my address), then when I tcpreplay modified pcap file, then data is delivered to applications. then when I try to replay the modified pcap file (1.pcap), that traffic does reache applications. I would like to find out the cause of this. The only thing which could be causing thing I was aware of was iptables. However, when I apt-get removed it, nothing changed. You can display the active ruleset with iptables-save. iptables-save does not print anything so the list of rules might be empty, I guess. -- 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/50b7218b.5030...@gmail.com
Re: a question about firewalls (or whatever else that might cause packet drop)
On 11/28/2012 12:04 PM, Darac Marjal wrote: On Wed, Nov 28, 2012 at 11:54:04AM +, Matej Kosik wrote: Hi, I am experiencing some deterministic packet drop: - when I tcpreplay on lo some pcap (0.pcap) file, that traffic does not reach listening applications - when I change source IP address from whatever it was to, e.g., 10.0.10.6, 10.0.10.7 etc, then when I try to replay the modified pcap file (1.pcap), that traffic does reache applications. I would like to find out the cause of this. The only thing which could be causing thing I was aware of was iptables. However, when I apt-get removed it, nothing changed. What else should I check? Have a look at the TCP sequence numbers and the TCP Handshake. In my case, given pcap contains only some UDP multicast traffic. There are not TCP segments. To establish a connection: * The client sends a SYN packet to the server with a random sequence number (A). * The server replies with a SYN-ACK packet with an acknowledgement number set to one more than the client's sequence number (A + 1) and its own random sequence number (B). * The client sends an ACK packet to the server with an acknowledgement number set to one more than the servers sequence number (B + 1) and a sequence number of the received acknowlegement number (A + 1). So, when you replay the traffic, that third stage goes wrong (basically, you send the wrong B+1 value). Have a look at http://tcpreplay.synfin.net/wiki/FAQ#Doestcpreplaysupportsendingtraffictoaserver; signature.asc Description: OpenPGP digital signature
a question about firewalls (or whatever else that might cause packet drop)
Hi, I am experiencing some deterministic packet drop: - when I tcpreplay on lo some pcap (0.pcap) file, that traffic does not reach listening applications - when I change source IP address from whatever it was to, e.g., 10.0.10.6, 10.0.10.7 etc, then when I try to replay the modified pcap file (1.pcap), that traffic does reache applications. I would like to find out the cause of this. The only thing which could be causing thing I was aware of was iptables. However, when I apt-get removed it, nothing changed. What else should I check? Which other programs might cause dropping of packets? Are there any logs with dropped packets? Or is there a way to enable such logs? Thank you in advance for any clues. -- 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/50b5fb5c.10...@gmail.com
how to capture replay multicast traffic
Hello, I have two programs: - sender ... which generates some UDP multicast traffic - listener ... which listens to a given UDP multicast group (in this case 233.65.120.153:64968) When I compile these two programs, all seems to be working fine. All listeners on the local network are getting data from the sender. So I believe that routers/switches are configured properly and the transmitted packets have correct Ethernet/IP/UDP headers. Now I am trying to capture the traffic with tcpdump: sudo tcpdump -i eth0 -X 'dst 233.65.120.153' -w 0.pcap (attached). However, when I try to replay this pcap-file: $ sudo tcpreplay -i eth0 0.pcap sending out eth0 processing file: 0.pcap Actual: 4 packets (240 bytes) sent in 3.00 seconds Rated: 80.0 bps, 0.00 Mbps, 1.33 pps Statistics for network device: eth0 Attempted packets: 4 Successful packets:4 Failed packets:0 Retried packets (ENOBUFS): 0 Retried packets (EAGAIN): None of the listeners on a given multicast sees that traffic. I am sure there is a pretty good reason for that but I cannot figure this out. :-/ I have check that: - last 3 bytes at of the destination MAC address correspond to last three bytes of the destination IP address. - destination IP is OK - destination port is OK If anybody has some good advice what I did wrong, any help would be most welcome. Thanks in advance. /* Compatible listeners: * - ~/work/net/udp-multicast/2/listener... works on the local machine as well as on the remote one * - sudo tcpdump -i eth0 -X dst 225.0.0.37 ... works on the local machine * works on a remote machine if some of its processes subscribed to a given multicast * (tcpdump does not subscribe itself) * To subscribe the remote machine to our multicast, we can either run the aforementioned listener, * or execute this command: * - iperf -s -u -B 225.0.0.37 */ #include sys/types.h #include sys/socket.h #include netinet/in.h #include arpa/inet.h #include time.h #include string.h #include stdio.h #include stdlib.h #define HELLO_PORT 64968 #define HELLO_GROUP 233.65.120.153 main(int argc, char *argv[]) { struct sockaddr_in addr; int fd, cnt; struct ip_mreq mreq; char *message=abcd; /* Create what looks like an ordinary UDP socket: AF_INET ... IPv4 SOCK_DGRAM ... UDP 0 ... required constant */ if ((fd=socket(AF_INET, SOCK_DGRAM, 0)) 0) { perror(socket); exit(1); } /* Set up destination address: AF_INET ... IPv4 HELLO_GROUP ... the IP-address of the multicast group to which we want to multicast HELLO_PORT ... the UDP port that on which we want to multicast */ memset(addr, 0, sizeof(addr)); addr.sin_family=AF_INET; addr.sin_addr.s_addr=inet_addr(HELLO_GROUP); addr.sin_port=htons(HELLO_PORT); /* now just sendto() our destination! */ while (1) { if (sendto(fd, message, strlen(message), 0, (struct sockaddr *) addr, sizeof(addr)) 0) { perror(sendto); exit(1); } sleep(1); } } /* * Compatible senders: * - ~/work/net/udp-multicast/2/sender * - ~/doc/ocaml/net/udp-multicast/1/sender */ /* sudo tcpdump -X -vv -i eth0 'dst 225.0.0.37' */ #include sys/types.h #include sys/socket.h #include netinet/in.h #include arpa/inet.h #include time.h #include string.h #include stdio.h #include stdlib.h #define HELLO_PORT 64968 #define HELLO_GROUP 233.65.120.153 #define MSGBUFSIZE 100 char msgbuf[MSGBUFSIZE]; main(int argc, char *argv[]) { struct sockaddr_in addr; int fd, nbytes,addrlen; struct ip_mreq mreq; u_int yes=1;/*** MODIFICATION TO ORIGINAL */ /* Create what looks like an ordinary UDP socket: AF_INET ... IPv4 SOCK_DGRAM ... UDP 0 ... required constant */ if ((fd=socket(AF_INET, SOCK_DGRAM, 0)) 0) { perror(socket); exit(1); } /* Allow multiple sockets to use the same PORT number: SOL_SOCKET ... manipulate properties of the socket API itself SO_REUSEADDR ... Allow reuse of local addresses for bind */ if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, yes, sizeof(yes)) 0) { perror(Reusing ADDR failed); exit(1); } /* set up destination address */ memset(addr,0,sizeof(addr)); addr.sin_family=AF_INET; addr.sin_addr.s_addr=htonl(INADDR_ANY); /* N.B.: differs from sender */ addr.sin_port=htons(HELLO_PORT); /* bind to receive address */ if (bind(fd,(struct sockaddr *) addr,sizeof(addr)) 0) { perror(bind); exit(1); } /* use setsockopt() to request that the kernel join a
how to enable a new keyboard layout
Hi, On Wheezy, I am trying to enable a new keyboard layout. Normally, I did it by: - creating a /usr/share/X11/xorg.conf.d/01-keyboard-layout.conf file with a following contents: Section InputClass Identifier keyboard-layout MatchIsKeyboardon Option XkbLayout us, sk Option XkbOptionsgrp:alts_toggle EndSection When I do that and restart Xorg, in /var/log/Xorg.0.log I see: [ 961.970] (II) evdev: ACPI Virtual Keyboard Device: Configuring as keyboard [ 961.970] (**) Option config_info udev:/sys/devices/virtual/input/input10/event10 [ 961.970] (**) Option xkb_rules evdev [ 961.970] (**) Option xkb_model pc105 [ 961.970] (**) Option xkb_layout us, sk [ 961.970] (**) Option xkb_variant ,qwerty [ 961.970] (**) Option xkb_options grp:alts_toggle but I can't switch keyboard layouts (by pressing both Alt-keys). I have tried different grp;* options, but without effect. I would be grateful for any advice how to proceed: how to configure Xorg so that I can switch keyboard layouts with some convenient keyboard-shortcut. Thanks in advance. (When I try this: setxkbmap sk qwerty everything seems to work fine. ) -- 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/50798179.4000...@gmail.com
[SOLVED] Re: how to enable a new keyboard layout
On 10/13/2012 04:44 PM, Eike Lantzsch wrote: is x11-xkb-utils installed? That package was installed. What happened was that Alt-related shortcuts were not working maybe because notebook spat different codes than usual keyboards do. When I tried grp:shifts_toggle that worked fine. 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/50799068.9040...@gmail.com
thunderbird (how to set which application to use which file)
Hello, How can I tell Icedove which application it should use to open *.pdf files, when they are attached to an e-mail and user decides to open them? STATUS QUO At the moment, Icedove offers only the possibily to safe PDF files but in the current state, it does not try to open them directly or does not ask which application it should use to open them. The menu / edit / preferences / attachments dialog box shows current associations but I am unable add an entry for PDFs there. This is weird. Is there a different place where this can be defined? /STATUS QUO Thanks in advance for the help. -- 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/4e3c219e.6090...@fiit.stuba.sk
Re: thunderbird (how to set which application to use which file)
On 08/05/2011 08:57 PM, Camaleón wrote: On Fri, 05 Aug 2011 19:00:14 +0200, Matej Kosik wrote: How can I tell Icedove which application it should use to open *.pdf files, when they are attached to an e-mail and user decides to open them? (...) In GNOME, it uses the default for the DE/WM. In my case, that's an Evince task. What's your DE/WM? This is my parents' computer. GNOME seems to be configured correctly, because when PDF files are on the desktop, when I click them, they are opened in evince. This is correct. However, when they to open pdf file attached to an email (theirs MTA is Icedove), I am only asked to determine the directory where they are supposed to be saved, instead of opening them in evince. I would like to reconfigure Icedove so that PDF files are opened by evince. I just failed to figure out how to do that. Maybe they gave wrong answers in some dialog boxes, when they appeared; I do not know. -- 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/4e3c41e4.7040...@fiit.stuba.sk
minor issue : gnome, epiphany and iceweasel
Hello, When listing text-files in gnome-terminal, if those files contains URLs, gnome-terminal enables me to follow those links by starting a web-browser. This is handy. However, I have noticed some confusing behavior. When I follow HTTP links, e.g.: http://www.youtube.com/watch?v=Yg0tVUnLOAM iceweasel is started. This is fine and exactly what I want. When I follow FILE links, e.g.: file:///usr/share/doc/libbitstring-ocaml-dev/html/api/Bitstring.html epiphany is started. I do not understand why epiphany and not iceweasel. Releavant alternatives are set up in the following way: kosik@debian:~$ l /etc/alternatives/|grep www lrwxrwxrwx 1 root root18 May 8 11:08 gnome-www-browser - /usr/bin/iceweasel lrwxrwxrwx 1 root root34 May 8 11:08 gnome-www-browser.1.gz - /usr/share/man/man1/iceweasel.1.gz lrwxrwxrwx 1 root root14 May 11 11:32 www-browser - /usr/bin/links lrwxrwxrwx 1 root root30 May 11 11:32 www-browser.1.gz - /usr/share/man/man1/links.1.gz lrwxrwxrwx 1 root root18 May 8 11:08 x-www-browser - /usr/bin/iceweasel lrwxrwxrwx 1 root root34 May 8 11:08 x-www-browser.1.gz - /usr/share/man/man1/iceweasel.1.gz System / Preferences / Preferred Applications also refers to iceweasel instead of epiphany. So I do not understand why epiphany is started. Can somebody give me a hint? Is this somehow hard-coded in gnome-terminal or can it also be configured. Thank you in advance. -- 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/4e0d79fc.7070...@fiit.stuba.sk
Re: How to create qemu-bootable image using debootstrap?
David Barrett wrote: Aha, excellent -- with your grub commands I was able to complete my script. Thanks for bringing this up. (Though I'm still not sure where the stage1/2/e2fs_stage1 should come from -- currently it just copies off the host, which isn't that clean but works for now.) I have no exact knowledge how GRUB is implemented by I would bet on what those filenames suggest. They are pieces of codes for various stages during grub startup. Note that /boot/grub/stage1 has 512 bytes so that it fits to a single block. Of course, that code cannot due to size constraints but it obviously succeeds in pulling into memory the following stage. Grub must understand particular filesystem to be able to locate kernels on the physical disk so obviously this cannot be implemented within first 512 bytes. Therefore multiple phases. Those are (non-ELF) executable binaries thus some care must be taken when reusing them within QEMU but as long as your PC and QEMU are both i386 (non Spark, non Alpha etc) I think it makes sense that those binaries created for i386 real mode are reusable. The grub itself switches to protected mode before it gives control to the kernel. I've posted it on my blog and will keep updating it here: http://blog.quinthar.com/2008/07/building-1gb-bootable-qemu-image-using.html As for the magic numbers in the script to make it work for 1GB, here's how I came up with them for the dd command: bs = blocksize = 1024 count = 1GB/bs = (1024*1024*1024)/1024 = 1048576 Ok. I have looked at it and this make sense. The partition cannot start at the very begining of the disk (the very first disk block) block because it would overlap with MBR. The fdisk shows that the partition created this way starts at block 32. Blocks are of 512 byte size. The partition we create this way is thus indeed offset to 32 * 512 = 16384 For the parted command, I got the numbers by installing with the netinst ISO onto a 1GB raw file, and then doing parted test.raw print. I don't know how the netinst installer came up with those numbers, but I just copied them. Regardless, it seems like you can pretty much choose whatever you want; I'm sure there's a whole science behind it. (Where the 1069 came from I have no idea, as there are only 1024 MB on disk.) For the loop,offset=16384 that took some guesswork: parted print spit out 16.4K as the start of the first partition, and I guessed that it was just rounding off 16384 and it worked. Regardless, here it is for those of you following along. Thanks for all your help! -david Have a good day. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: How to create qemu-bootable image using debootstrap?
Hi, Andrew Sackville-West wrote: On Mon, Jul 07, 2008 at 01:18:22AM -0700, David Barrett wrote: Andrei Popescu wrote: On Sun, Jul 06, 2008 at 11:34:52PM -0700, David Barrett wrote: Carl Fink wrote: On Sun, Jul 06, 2008 at 09:00:38PM -0700, David Barrett wrote: David Barrett wrote: What's the best way to create a raw disk image using debootstrap that can be booted with qemu? Following up on my previous post: I've figured out some of the steps, but I'm stuck on installing Grub. Do you know how to install grub on a raw device file? Forgive a silly question, but why do you want to install grub on the image? Are you planning to dd it onto a physical disk? No, I'm just going to use it as a QEMU image. It'll stay virtual, but it'll need to boot all the same. Unless there's some way to get it to boot without grub? If I recall correctly, qemu can boot a linux kernel directly so you *probably* don't need grub. Aha! I completely forgot about those options. This works great: sudo qemu -kernel-kqemu -kernel newtest.mount/boot/vmlinuz-2.6.18-6-486 -append root=/dev/hda1 ro -initrd newtest.mount/boot/initrd.img-2.6.18-6-486 newtest.raw It makes the command line a bit awkward, but does the trick. This is great workaround, thanks! That said, if possible, I'd still like to get grub installed to make it self-contained and boot up like normal (else I need to update all the startup scripts to be aware of the exact kernel version). can you not use the grub floppy disk image and just cat it into the boot sector? Another idea: write a script to install grub from a chroot, copy that script into the image, and then chroot in and run that script from your other script. or: make a barebones image with grub installed by some other non-automated method and then use that bare image as the starting point for your script, eliminating the dd step. just .02 A Previously, I had the same problem but I did not know how to deal with the partions (btw. I still have too figure out how did you got those numbers to be able to create smaller disks). The `parted' stuff you posted before was a missing piece of information. Here is a complete sequence of commands that - creates a harddisk image - install multiboot specification compliant kernel to it - install grub to the harddisk image -- sudo dd if=/dev/zero of=disk.img bs=1024 count=1048576 sudo parted disk.img mklabel msdos sudo parted disk.img mkpart primary ext2 0 954 sudo parted disk.img mkpart extended 954 1069 sudo parted disk.img mkpart logical linux-swap 954 1069 sudo parted disk.img set 1 boot on sudo parted disk.img mkfs 1 ext2 sudo mount -o loop,offset=16384 -t ext2 disk.img mnt sudo mkdir mnt/grub sudo cp /boot/grub/stage1 mnt/grub sudo cp /boot/grub/stage2 mnt/grub sudo cp /boot/grub/e2fs_stage1_5 mnt/grub # The contents of the `menu.lst' file should be: # # timeout 0 # default 0 # title minimal-kernel # kernel (hd0,0)/minimal-kernel # sudo cp menu.lst mnt/grub # The contents of the `grub.input' file should be: # # device (hd0) disk.img # root (hd0,0) # setup (hd0) # quit # sudo grub --device-map=/dev/null grub.input # We finally copy a multiboot specification compliant kernel # to our disk image. You can get the one I have tried here: # # http://altair.sk/uploads/minimal-kernel # # Its homepage :) # # http://altair.sk/mediawiki/index.php/Minimal_Kernel # sudo cp minimal-kernel mnt sudo umount mnt # And you can boot it ... qemu -m 100 -hda disk.img -boot c -no-kqemu -- Somehow this way. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
concerning kqemu packages
Hello, I have only small question concerning Debian packages that provide kqemu accelerator. At present, I install it as follows: apt-get install kqemu-modules-2.6-686 kqemu-common and then it is necessary to add the following line kqemu to the `/etc/modules' file. I would like to ask why the following action was not included directly to the post-installation step of appropriate package that provides kqemu? Is there any special reason for that why not to activate kqemu by default (when user installs those packages)? Thanks in advance for clarification. -- Matej Kosik -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
QWERTY variant of Slovak keybaord---missing?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, Occassionally, I need to use Slovak keyboard layout. I (and I guess many if not most Slovaks) are used to QWERTY rather than QWERTZ. Previous Debian versions included this file: /usr/share/X11/xkb/symbols/sk_qwerty so that within /etc/X11/xorg.conf I could make use of it as follows: Option XkbLayout us,sk_qwerty Option XkbOptionsgrp:menu_toggle,grp_led:scroll But `sk_qwerty' file disappeared? Is this an ommision or some purpose? I see only /usr/share/X11/xkb/symbols/sk which is QWERTZ. Am I right? The difference between these two files is small: - -- debian:/usr/share/X11/xkb/symbols$ diff sk_qwerty sk 1c1 // $XKeyboardConfig: xkbdesc/symbols/sk,v 1.8 2005-01-16 02:18:20 svu Exp $ - --- // $XKeyboardConfig: xkbdesc/symbols/sk,v 1.8 2005/01/16 02:18:20 svu Exp $ 36c36 key AD06{ [ y, Y, NoSymbol, NoSymbol ] }; - --- key AD06{ [ z, Z, NoSymbol, NoSymbol ] }; 61c61 key AB01{ [ z, Z, degree, NoSymbol ] }; - --- key AB01{ [ y, Y, degree, NoSymbol ] }; - -- but it is worth to have both variants (I am not sure about QWERTZ though, but I am certainly for QWERTY variant for sure). The changes are somehow related to transition from http://packages.debian.org/etch/xkb-data-legacy to http://packages.debian.org/etch/xkb-data Should I report this as a (minor) bug of `xkb-data' or did I misunderstood something? Best regards, - -- mk -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHpvNfL+CaXfJI/hgRAm1mAJ0VMYHPz2aE83zqXFSnYkMGVl0PEACeJpFi i/tT6bqjeLMg98DTTXksX48= =Iz+a -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Debian and X fonts
Ron Johnson wrote: On 03/08/07 17:01, Matej Kosik wrote: Ron Johnson wrote: On 03/08/07 04:01, Matej Kosik wrote: Friends, I am using Debian GNU/Linux Sid. When I start `xmms' I get ** WARNING **: Failed to open font: -adobe-helvetica-bold-r-*-*-10-*. Similarly, when I start `gv' I get Warning: Cannot convert string -*-Helvetica-Medium-R-Normal--*-140-*-*-P-*-ISO8859-1 to type FontStruct Warning: Cannot convert string -*-Helvetica-Medium-R-Normal--*-120-*-*-P-*-ISO8859-1 to type FontStruct Warning: Cannot convert string -*-Helvetica-Medium-R-Normal--*-100-*-*-P-*-ISO8859-1 to type FontStruct Warning: Cannot convert string -*-Helvetica-Bold-R-Normal--*-120-*-*-P-*-ISO8859-1 to type FontStruct Can you please recommend me some reading about fonts in Xorg? How can I find mappings from those X font names to some real files? (so that I will know which package I am missing or perhaps what to install)? What TTF fonts do you have installed? The list of TTF fonts given by find / -type f -name *.ttf -or -name *.TTF|tee ~/tmp/out is http://altair.dcs.elf.stuba.sk/~kosik/tmp/fonts.txt Hmmm, not encouraging. How about: COLUMNS=130 dpkg -l | grep ttf I have myself spoiled the /etc/X11/xorg.conf (while I was playing with it to make dualhead and monitor cloning features working) The paths were wrong. Now everything works again. Thanks for the help. -- Matej Kosik signature.asc Description: OpenPGP digital signature
Debian and X fonts
Friends, I am using Debian GNU/Linux Sid. When I start `xmms' I get ** WARNING **: Failed to open font: -adobe-helvetica-bold-r-*-*-10-*. Similarly, when I start `gv' I get Warning: Cannot convert string -*-Helvetica-Medium-R-Normal--*-140-*-*-P-*-ISO8859-1 to type FontStruct Warning: Cannot convert string -*-Helvetica-Medium-R-Normal--*-120-*-*-P-*-ISO8859-1 to type FontStruct Warning: Cannot convert string -*-Helvetica-Medium-R-Normal--*-100-*-*-P-*-ISO8859-1 to type FontStruct Warning: Cannot convert string -*-Helvetica-Bold-R-Normal--*-120-*-*-P-*-ISO8859-1 to type FontStruct Can you please recommend me some reading about fonts in Xorg? How can I find mappings from those X font names to some real files? (so that I will know which package I am missing or perhaps what to install)? Thank you -- Matej Kosik signature.asc Description: OpenPGP digital signature
Re: Debian and X fonts
Ron Johnson wrote: On 03/08/07 04:01, Matej Kosik wrote: Friends, I am using Debian GNU/Linux Sid. When I start `xmms' I get ** WARNING **: Failed to open font: -adobe-helvetica-bold-r-*-*-10-*. Similarly, when I start `gv' I get Warning: Cannot convert string -*-Helvetica-Medium-R-Normal--*-140-*-*-P-*-ISO8859-1 to type FontStruct Warning: Cannot convert string -*-Helvetica-Medium-R-Normal--*-120-*-*-P-*-ISO8859-1 to type FontStruct Warning: Cannot convert string -*-Helvetica-Medium-R-Normal--*-100-*-*-P-*-ISO8859-1 to type FontStruct Warning: Cannot convert string -*-Helvetica-Bold-R-Normal--*-120-*-*-P-*-ISO8859-1 to type FontStruct Can you please recommend me some reading about fonts in Xorg? How can I find mappings from those X font names to some real files? (so that I will know which package I am missing or perhaps what to install)? What TTF fonts do you have installed? The list of TTF fonts given by find / -type f -name *.ttf -or -name *.TTF|tee ~/tmp/out is http://altair.dcs.elf.stuba.sk/~kosik/tmp/fonts.txt -- Matej Kosik signature.asc Description: OpenPGP digital signature
Re: mounting USB mass storage devices
Hi, Willie Wonka wrote: Got a /etc/fstab entry like this? dev/sda /media/usbkey autorw,user,noauto 0 0 Not only mounting does not work but also more fundamental things. shire:/home/kosik# cat /dev/sda cat: /dev/sda: No such device or address shire:/home/kosik# fdisk /dev/sda Unable to open /dev/sda so something with the /dev/sda is wrong. Not the mount point (I could create it and update /etc/fstab, but if the device does not work, I will not have luck). I have tried booting Knoppix (3.6) Live CD I had around for testing purposes. I have chosen it because it is plug-and-play distribution just to see if the /dev/sda device works there. No --- it does not. Maybe the hardware stopped working but that is suspicious (after reinstalling the system). I give up. Thank you for your help. -- mk signature.asc Description: OpenPGP digital signature
mounting USB mass storage devices
Hello, When I reinstalled Debian GNU/Linux (I needed different partitioning) I wasn't able to mount none of the USB mass storage devices. I have - ordinary USB key - and a digital camera. Before, if I attached USB key to some USB slot, I saw that the red diod flasheding. The computer somehow noticed its existence. I was then able to mount it (on /dev/sda). Now if I attach these devices, my computer ignores them. shire:/home/kosik# fdisk /dev/sda Unable to open /dev/sda shire:/home/kosik# cat /dev/sda cat: /dev/sda: No such device or address I use precompiled Linux kernel 2.6.8-3-686 (kernel-image-2.6-686 version 101sarge1 available via apt) The outputs of the following commands: - dmesg - lsmod are here: http://altair.dcs.elf.stuba.sk/~kosik/tmp54/ I am not sure what other information I should send so that somebody can help me. Thanks in advance. -- Matej Kosik signature.asc Description: OpenPGP digital signature
Re: mounting USB mass storage devices
Matej Kosik wrote: I am not sure what other information I should send so that somebody can help me. During boot time, I see these messages: FATAL: Module ide_detect not found. modprobe: FATAL: Error inserting rtc (/lib/modules/2.6.8.../kernel/drivers/char/rtc.ko): No such device Couldn't the first error message be related the problem? -- mk signature.asc Description: OpenPGP digital signature
Re: mounting USB mass storage devices
[EMAIL PROTECTED] wrote: Hi, you have to load usb_storage kernel module in order to use these devices Hi, I have tried that: shire:/tmp# modprobe usb_storage shire:/tmp# lsmod|grep usb usb_storage69056 0 usbcore 119044 4 usb_storage,uhci_hcd ide_core 139940 5 usb_storage,ide_cd,ide_generic,via82cxxx,ide_disk scsi_mod 125228 3 usb_storage,sd_mod,libata but with no success. When I attach the USB key, the computer does not notice it and when I try to look what is on it for example as follows shire:/tmp# fdisk /dev/sda Unable to open /dev/sda shire:/tmp# cat /tmp/sda cat: /tmp/sda: No such file or directory it seems to be dead. -- mk signature.asc Description: OpenPGP digital signature
Re: mounting USB mass storage devices
[EMAIL PROTECTED] wrote: Hmm strange and lsusb shows devices? Regardless whether USB device is attached to the computer or not, always this: shire:/home/kosik# lsusb Bus 003 Device 001: ID : Bus 002 Device 001: ID : Bus 001 Device 001: ID : Addtionally: [EMAIL PROTECTED]:~$ cat /proc/bus/usb/devices T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor= ProdID= Rev= 2.06 S: Manufacturer=Linux 2.6.8-3-686 uhci_hcd S: Product=VIA Technologies, Inc. VT82x UHCI USB 1.1 Controller (#3) S: SerialNumber=:00:11.4 C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor= ProdID= Rev= 2.06 S: Manufacturer=Linux 2.6.8-3-686 uhci_hcd S: Product=VIA Technologies, Inc. VT82x UHCI USB 1.1 Controller (#2) S: SerialNumber=:00:11.3 C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor= ProdID= Rev= 2.06 S: Manufacturer=Linux 2.6.8-3-686 uhci_hcd S: Product=VIA Technologies, Inc. VT82x UHCI USB 1.1 Controller S: SerialNumber=:00:11.2 C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms -- mk signature.asc Description: OpenPGP digital signature
Re: mounting USB mass storage devices
[EMAIL PROTECTED] wrote: Seems to me like hotplug package is not installed I have `hotplug' package installed. The version (in stable distribution) I have is 0.0.200403. The system behaves the same as if it were not installed. На 23.6.2006 16:51 написахте: [EMAIL PROTECTED] wrote: Hmm strange and lsusb shows devices? Regardless whether USB device is attached to the computer or not, always this: shire:/home/kosik# lsusb Bus 003 Device 001: ID : Bus 002 Device 001: ID : Bus 001 Device 001: ID : Addtionally: [EMAIL PROTECTED]:~$ cat /proc/bus/usb/devices T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor= ProdID= Rev= 2.06 S: Manufacturer=Linux 2.6.8-3-686 uhci_hcd S: Product=VIA Technologies, Inc. VT82x UHCI USB 1.1 Controller (#3) S: SerialNumber=:00:11.4 C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor= ProdID= Rev= 2.06 S: Manufacturer=Linux 2.6.8-3-686 uhci_hcd S: Product=VIA Technologies, Inc. VT82x UHCI USB 1.1 Controller (#2) S: SerialNumber=:00:11.3 C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor= ProdID= Rev= 2.06 S: Manufacturer=Linux 2.6.8-3-686 uhci_hcd S: Product=VIA Technologies, Inc. VT82x UHCI USB 1.1 Controller S: SerialNumber=:00:11.2 C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms -- mk signature.asc Description: OpenPGP digital signature