Re: converting home network to IPv6; ppp, IPv6, dsnmasq and iptables

2010-06-06 Thread Antonio Perez
H.S. wrote:

 Here are the correct settings that seem to work:
 
 1)
 Addresses given by my ISP:
 HEX1:aa00::/64
 HEX2:bb00::/56 -- this is the one used below

Excellent.

 2) /etc/network/interfaces file
 #for IPv6 config  (note bb01). Goes to LAN switch
 iface eth0 inet6 static
 address HEX2:bb01::01
 netmask 64
 network HEX2:bb01::

 #for IPv6 config (note bb00). Goes to ADSL modem
 iface eth1 inet6 static
  address HEX2:bb00::01
  netmask 64
  network HEX2:bb00::

You don't need to assign different blocks to each NIC, all your network 
needs only one block of addresses. It is, however, a good idea, security 
wise, to keep them apart.

 3) I also have the +ipv6 option in my dsl-provider file to be used when
 I make an ADSL connection.

 4)
 And added the route:
 $ sudo route --inet6 add default dev ppp0

That seems reasonable.
 
 Further, in my /etc/radvd.conf on this router machine, I have the
 following(recall that eth0 is connected to a switch on the LAN):
 cat /etc/radvd.conf
 interface eth0
 {
 AdvSendAdvert on;
 AdvLinkMTU 1280;
 MaxRtrAdvInterval 300;
 MinRtrAdvInterval 30;
 prefix HEX2:bb01::/64  # -- note this address and ref. eth0
 {
 AdvOnLink on;
 AdvAutonomous on;
 };
 };

This seems ok as well.


 Now another machine on my LAN is able to get an IPv6 address:
 {LAN machine}$ /sbin/ifconfig eth0 | grep inet6
 $ /sbin/ifconfig eth0 | grep inet6
   inet6 addr: HEX2:bb01:HEXblah:/64 Scope:Global
   inet6 addr: fe80::204:75ff:fe8a:d6df/64 Scope:Link

Excellent.

 So, I had to assign address from HEX2:bb00::/56 range. One network was
 eth1 (HEX2:bb00::) and another was eth0 (HEX2:bb01::). Basically, the
 two NICs in the same machine need to be on different IPv6 networks ...
 same as in IPv4 (Doh!).

Not really.

 Now, do the above observations mean I am now correctly using my IPv6
 networking and ppp connection given by my ISP? Also, what is the
 HEX2::/64 address given to me by my ISP for?

The only thing which is really missing in your setup is firewall. Iptables 
has a dual personality (reflecting the dual stack devices), there is the 
normal iptables and the ip6tables for IPV6. The setup you are using does 
allow you to connect to the IPV6 network out there, but also allows 
connections from out there to your computers.

Read: http://www.networkworld.com/community/node/42436

there is a free certification for IPV6, which might help to understand 
the basics:
http://ipv6.he.net/
http://ipv6.he.net/certification/

Also be sure to set a firewall for IPv6, remember that IPv6 is independent 
of IPv4 and allows external computers to connect to your systems, even 
behind the Debian router:
http://www.cyberciti.biz/faq/ip6tables-ipv6-firewall-for-linux/
http://www.exp-networks.be/blog/ipv6-firewall/
http://www.debian-administration.org/article/Is_your_firewall_IPv6_aware

This programs for firewall setting in debian may be of help:
http://wiki.debian.org/Firewalls
Shorewall seems to be a good choice.


-- 
Antonio Perez


-- 
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/2302852.cbtleuc...@rnqqfki.eternal-september.org



Re: [ squeeze ] Grub2 RAID1 LVM2 boot failure

2010-06-01 Thread Antonio Perez
d.sastre.med...@gmail.com wrote:

 Thanks for the comments and help.
 
 I have edited /boot/grub/grub.cfg to match my devices by UUID as
 proposed, getting UUIDs from blkid /dev/md{0,1} (previously I run
 blkid -g):

Good.

 It doesn't boot.

Bummer.

 Note a added `rootdelay=15' and removed `quiet' to be
 able to see what happens.

Good thinking.

 Still LVM tries to initialize before mdadm (is that correct, anyway?),
 and ends up waiting for the root filesystem until I'm dropped to busybox.
 While at the initramfs prompt, simply by issuing `vgchange -ay' and
 exiting (Ctrl-D) I can boot the box. Luckily, I had a PS2 keyboard
 around, because the USB one wouldn't work.

Ah, good, so, grub correctly detects the kernel and initrd files and loads 
them. The kernel then takes control and starts the initramfs process which 
you are reporting as failing.

This is further down the boot process than any grub or kernel.

Have you tried the:

update-initramfs -u

command to reconstruct the initramfs file used?


 The output of `vgchange -ay' might be informative. Here is one
 example, but one line is output for each LV:

 udevd-work[number]:kernel provided name 'dm-2' and
 NAME='mapper/root_vg-var_lv' disagree, please use SYMLINK+= or change
 the kernel to provide the proper name.
 
 This looks like #581715 or #581593.
 In both reports, however, it is said it's a harmless warning.
 I can confirm that, at least, while testing the

Yes, it's a harmles warning.
 
 linux   /vmlinuz-2.6.32-3-686-bigmem root=/dev/mapper/root_vg-root_lv

 variant, I can boot the system from initramfs after
 `vgchange -ay' + Ctrl-D
 regardless the warnings.
 
 After booting, running `upgrade-grub or upgrade-grub2' won't help.
 This looks like a problem elsewhere (udev, initramfs-tools, ...), but
 not grub.

Try the `update-initramfs -u` command. It may solve the issue, if that 
doesn't work, contact the initramfs maintainer, or file a bug, that will 
solve the problem.

Good luck.
 

-- 
Antonio Perez


-- 
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/4149443.dcc6gmi...@rnqqfki.eternal-september.org



Re: [ squeeze ] Grub2 RAID1 LVM2 boot failure

2010-05-31 Thread Antonio Perez
 repeats what the previous command did, IMO.
 
 I take this to mean that the first device found _which UUID is_ 785...
 (the UUID of my root_gv-root_lv) will be the `root' filesystem.

Well, the root for grub, not the root for the kernel.
 
 And yet another definition of `root' after the `linux' call.
 That one states that:

 root=/dev/mapper/root_vg-root_lv  which could be written also as:
 root=LABEL=root  or even
 root=UUID=785366b0-d597-4e9c-9284-b6b9161236ed

Yes, all are correct and I strongly recommend to use the UUID value from the 
blkid command.

Warning: The command blkid needs a `blkid -g` first to clear the stored UUIDs 
in it's cache.

 The three of them should be right. None of them work.

Your problem seems to be that the KERNEL can't find the root
FileSystem, nothing that grub could do to solve it.
 
 If a suppress the `quiet' option from the `linux' line, what I can see
 is LVM initializing *before* mdadm has get its job done:
 
 Volume group root_vg-root_lv not found
  Skipping volume group root_vg
  Unable to find LVM volume root_vg-swap_lv
  mdadm:/dev/md0 has been started with two drives
  mdadm:/dev/md1 has been started with two drives
  Gave up waiting fot root device.

That confirms it, it's a kernel problem not finding the correct `root` 
filesystem.
Use blkid UUID on that line.

 So it looks like a timming issue *but*, I have tried to issue manually
 the commands in the right order at the grub prompt:
 1) insmod-ing raid, mdraid, lvm and ext2; setting root to md0;
 2) searching for devices (also a variant without this step);
 3) calling linux with the right root device
  (all three variants of this step: dev name, UUID and LABEL and with
  different rootdelay timmings, always without `quiet') and, finally;
 4) calling initrd.
 
 Failure again. No way root_vg to be found.

Once you have booted into this system, `update-grub` should set
this file correctly, grub.cfg will be updated on any kernel change.

Make sure `update-grub` is correctly creating a good grub.cfg before a re-boot.

 One further question: after a reboot, while at the grub screen, before
 doing anything else, if a enter the command line and type `ls' at the
 prompt, I can see all of my LVs, and listing anyone of them returns:
 device name, filesystem type, label, last modification time and UUID.
 Where does this info come from? Supossedly, there aren't mods loaded to
 read that yet, until after `insmod' loads them, are there?

That's the 'core.img' code for grub, which needs to correctly read
all UUIDs to really perform it's job correctly.


-- 
Antonio Perez


-- 
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/2301386.kc03pvy...@rnqqfki.eternal-september.org



Re: Xterm UNICODE y UTF8

2010-05-09 Thread Antonio Perez
.
  Конференция соберет широкий круг экспертов по  вопросам глобального
  Интернета и Unicode, локализации и интернационализации, воплощению и
  применению Unicode в различных операционных системах и программных
  приложениях, шрифтах, верстке и многоязычных компьютерных системах.

Thai (UCS Level 2):

  Excerpt from a poetry on The Romance of The Three Kingdoms (a Chinese
  classic 'San Gua'):

  [|]
๏ แผ่นดินฮั่นเสื่อมโทรมแสนสังเวช  พระปกเกศกองบู๊กู้ขึ้นใหม่
  สิบสองกษัตริย์ก่อนหน้าแลถัดไป   สององค์ไซร้โง่เขลาเบาปัญญา
ทรงนับถือขันทีเป็นที่พึ่ง   บ้านเมืองจึงวิปริตเป็นนักหนา
  โฮจิ๋นเรียกทัพทั่วหัวเมืองมา หมายจะฆ่ามดชั่วตัวสำคัญ
เหมือนขับไสไล่เสือจากเคหา  รับหมาป่าเข้ามาเลยอาสัญ
  ฝ่ายอ้องอุ้นยุแยกให้แตกกัน  ใช้สาวนั้นเป็นชนวนชื่นชวนใจ
พลันลิฉุยกุยกีกลับก่อเหตุ  ช่างอาเพศจริงหนาฟ้าร้องไห้
  ต้องรบราฆ่าฟันจนบรรลัย   ฤๅหาใครค้ำชูกู้บรรลังก์ ฯ

  (The above is a two-column text. If combining characters are handled
  correctly, the lines of the second column should be aligned with the
  | character above.)

Ethiopian:

  Proverbs in the Amharic language:

  ሰማይ አይታረስ ንጉሥ አይከሰስ።
  ብላ ካለኝ እንደአባቴ በቆመጠኝ።
  ጌጥ ያለቤቱ ቁምጥና ነው።
  ደሀ በሕልሙ ቅቤ ባይጠጣ ንጣት በገደለው።
  የአፍ ወለምታ በቅቤ አይታሽም።
  አይጥ በበላ ዳዋ ተመታ።
  ሲተረጉሙ ይደረግሙ።
  ቀስ በቀስ፥ ዕንቁላል በእግሩ ይሄዳል።
  ድር ቢያብር አንበሳ ያስር።
  ሰው እንደቤቱ እንጅ እንደ ጉረቤቱ አይተዳደርም።
  እግዜር የከፈተውን ጉሮሮ ሳይዘጋው አይድርም።
  የጎረቤት ሌባ፥ ቢያዩት ይስቅ ባያዩት ያጠልቅ።
  ሥራ ከመፍታት ልጄን ላፋታት።
  ዓባይ ማደሪያ የለው፥ ግንድ ይዞ ይዞራል።
  የእስላም አገሩ መካ የአሞራ አገሩ ዋርካ።
  ተንጋሎ ቢተፉ ተመልሶ ባፉ።
  ወዳጅህ ማር ቢሆን ጨርስህ አትላሰው።
  እግርህን በፍራሽህ ልክ ዘርጋ።

Runes:

  ᚻᛖ ᚳᚹᚫᚦ ᚦᚫᛏ ᚻᛖ ᛒᚢᛞᛖ ᚩᚾ ᚦᚫᛗ ᛚᚪᚾᛞᛖ ᚾᚩᚱᚦᚹᛖᚪᚱᛞᚢᛗ ᚹᛁᚦ ᚦᚪ ᚹᛖᛥᚫ

  (Old English, which transcribed into Latin reads 'He cwaeth that he
  bude thaem lande northweardum with tha Westsae.' and means 'He said
  that he lived in the northern land near the Western Sea.')

Braille:

  ⡌⠁⠧⠑ ⠼⠁⠒  ⡍⠜⠇⠑⠹⠰⠎ ⡣⠕⠌

  ⡍⠜⠇⠑⠹ ⠺⠁⠎ ⠙⠑⠁⠙⠒ ⠞⠕ ⠃⠑⠛⠔ ⠺⠊⠹⠲ ⡹⠻⠑ ⠊⠎ ⠝⠕ ⠙⠳⠃⠞
  ⠱⠁⠞⠑⠧⠻ ⠁⠃⠳⠞ ⠹⠁⠞⠲ ⡹⠑ ⠗⠑⠛⠊⠌⠻ ⠕⠋ ⠙⠊⠎ ⠃⠥⠗⠊⠁⠇ ⠺⠁⠎
  ⠎⠊⠛⠝⠫ ⠃⠹ ⠹⠑ ⠊⠇⠻⠛⠹⠍⠁⠝⠂ ⠹⠑ ⠊⠇⠻⠅⠂ ⠹⠑ ⠥⠝⠙⠻⠞⠁⠅⠻⠂
  ⠁⠝⠙ ⠹⠑ ⠡⠊⠑⠋ ⠍⠳⠗⠝⠻⠲ ⡎⠊⠗⠕⠕⠛⠑ ⠎⠊⠛⠝⠫ ⠊⠞⠲ ⡁⠝⠙
  ⡎⠊⠗⠕⠕⠛⠑⠰⠎ ⠝⠁⠍⠑ ⠺⠁⠎ ⠛⠕⠕⠙ ⠥⠏⠕⠝ ⠰⡡⠁⠝⠛⠑⠂ ⠋⠕⠗ ⠁⠝⠹⠹⠔⠛ ⠙⠑
  ⠡⠕⠎⠑ ⠞⠕ ⠏⠥⠞ ⠙⠊⠎ ⠙⠁⠝⠙ ⠞⠕⠲

  ⡕⠇⠙ ⡍⠜⠇⠑⠹ ⠺⠁⠎ ⠁⠎ ⠙⠑⠁⠙ ⠁⠎ ⠁ ⠙⠕⠕⠗⠤⠝⠁⠊⠇⠲

  ⡍⠔⠙⠖ ⡊ ⠙⠕⠝⠰⠞ ⠍⠑⠁⠝ ⠞⠕ ⠎⠁⠹ ⠹⠁⠞ ⡊ ⠅⠝⠪⠂ ⠕⠋ ⠍⠹
  ⠪⠝ ⠅⠝⠪⠇⠫⠛⠑⠂ ⠱⠁⠞ ⠹⠻⠑ ⠊⠎ ⠏⠜⠞⠊⠊⠥⠇⠜⠇⠹ ⠙⠑⠁⠙ ⠁⠃⠳⠞
  ⠁ ⠙⠕⠕⠗⠤⠝⠁⠊⠇⠲ ⡊ ⠍⠊⠣⠞ ⠙⠁⠧⠑ ⠃⠑⠲ ⠔⠊⠇⠔⠫⠂ ⠍⠹⠎⠑⠇⠋⠂ ⠞⠕
  ⠗⠑⠛⠜⠙ ⠁ ⠊⠕⠋⠋⠔⠤⠝⠁⠊⠇ ⠁⠎ ⠹⠑ ⠙⠑⠁⠙⠑⠌ ⠏⠊⠑⠊⠑ ⠕⠋ ⠊⠗⠕⠝⠍⠕⠝⠛⠻⠹
  ⠔ ⠹⠑ ⠞⠗⠁⠙⠑⠲ ⡃⠥⠞ ⠹⠑ ⠺⠊⠎⠙⠕⠍ ⠕⠋ ⠳⠗ ⠁⠝⠊⠑⠌⠕⠗⠎
  ⠊⠎ ⠔ ⠹⠑ ⠎⠊⠍⠊⠇⠑⠆ ⠁⠝⠙ ⠍⠹ ⠥⠝⠙⠁⠇⠇⠪⠫ ⠙⠁⠝⠙⠎
  ⠩⠁⠇⠇ ⠝⠕⠞ ⠙⠊⠌⠥⠗⠃ ⠊⠞⠂ ⠕⠗ ⠹⠑ ⡊⠳⠝⠞⠗⠹⠰⠎ ⠙⠕⠝⠑ ⠋⠕⠗⠲ ⡹⠳
  ⠺⠊⠇⠇ ⠹⠻⠑⠋⠕⠗⠑ ⠏⠻⠍⠊⠞ ⠍⠑ ⠞⠕ ⠗⠑⠏⠑⠁⠞⠂ ⠑⠍⠏⠙⠁⠞⠊⠊⠁⠇⠇⠹⠂ ⠹⠁⠞
  ⡍⠜⠇⠑⠹ ⠺⠁⠎ ⠁⠎ ⠙⠑⠁⠙ ⠁⠎ ⠁ ⠙⠕⠕⠗⠤⠝⠁⠊⠇⠲

  (The first couple of paragraphs of A Christmas Carol by Dickens)

Compact font selection example text:

  ABCDEFGHIJKLMNOPQRSTUVWXYZ /0123456789
  abcdefghijklmnopqrstuvwxyz £©µÀÆÖÞßéöÿ
  –—‘“”„†•…‰™œŠŸž€ ΑΒΓΔΩαβγδω АБВГДабвгд
  ∀∂∈ℝ∧∪≡∞ ↑↗↨↻⇣ ┐┼╔╘░►☺♀ fi�⑀₂ἠḂӥẄɐː⍎אԱა

Greetings in various languages:

  Hello world, Καλημέρα κόσμε, コンニチハ

Box drawing alignment tests:  █
  ▉
  ╔══╦══╗  ┌──┬──┐  ╭──┬──╮  ╭──┬──╮  ┏━━┳━━┓  ┎┒┏┑   ╷  ╻ ┏┯┓ ┌┰┐▊
  ║┌─╨─┐║  │╔═╧═╗│  │╒═╪═╕│  │╓─╁─╖│  ┃┌─╂─┐┃  ┗╃╄┙  ╶┼╴╺╋╸┠┼┨ ┝╋┥▋
  ║│╲ ╱│║  │║   ║│  ││ │ ││  │║ ┃ ║│  ┃│ ╿ │┃  ┍╅╆┓   ╵  ╹ ┗┷┛ └┸┘▌
  ╠╡ ╳ ╞╣  ├╢   ╟┤  ├┼─┼─┼┤  ├╫─╂─╫┤  ┣┿╾┼╼┿┫  ┕┛┖┚ ┌┄┄┐ ╎ ┏┅┅┓ ┋ ▍
  ║│╱ ╲│║  │║   ║│  ││ │ ││  │║ ┃ ║│  ┃│ ╽ │┃  ░░▒▒▓▓██ ┊  ┆ ╎ ╏  ┇ ┋ ▎
  ║└─╥─┘║  │╚═╤═╝│  │╘═╪═╛│  │╙─╀─╜│  ┃└─╂─┘┃  ░░▒▒▓▓██ ┊  ┆ ╎ ╏  ┇ ┋ ▏
  ╚══╩══╝  └──┴──┘  ╰──┴──╯  ╰──┴──╯  ┗━━┻━━┛  ▗▄▖▛▀▜   └╌╌┘ ╎ ┗╍╍┛ ┋
   ▝▀▘▙▄▟▁▂▃▄▅▆▇█
-- 
Antonio Perez


-- 
To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/2725388.jolrep5...@rnqqfki.eternal-september.org



Re: Grandma uses Logitech Vid, how to chat with her with Debian?

2010-02-02 Thread Antonio Perez
jida...@jidanni.org wrote:

 Sirs, Grandma says: I have a 2-way camera installation on my computer,
 It's called Logitech Video. (It only cost $28.00 on sale, and John
 installed it for me) The software was down-loaded free.
 
 Apparently the software she installed was Logitech® Vid™.
 
 Alas, on
 
http://www.logitech.com/index.cfm/584/6164%26cl=us,en?section=downloadsWT.ac=os|
5788||vidDL
 there is no Linux version of Logitech® Vid™.
 
 I have a EEEPC 702 (with its UVC webcam that works fine with luvcview).
 What Debian package can I install in order to be able to video chat with
 my super-old grandma?

Skype?

It's closed source but it works both win and deb.

-- 
Antonio Perez


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Masquerading problems: squeeze via lenny

2010-01-05 Thread Antonio Perez
Andrei Popescu wrote:

 On Tue,05.Jan.10, 03:53:22, Antonio Perez wrote:
 
 You could start a Wireshark capture on both the LAN and the PPP before
 performing the wget command and compare both.
 
 I installed tshark (I only have ssh access as both machines are in a
 different city) on the gateway, but unfortunately I can't tell what are
 the interesting packets due to the background noise on ppp0.
 
 What am I looking for? A filter expression would be very helpful here as
 this is the first time I'm doing such traffic analysis.

Filter udp destination port 53 (DNS) in both the LAN and PPP and compare.
hint: udp.dstport==53
analyze if dns requests are being correctly resolved.


As you are using this commands:
$ wget www.google.com
$ wget www.livecdlist.com
which both work on port 80, filter the destination port 80 and compare.
hint: tcp.dstport==80

Are the lists of packets any different between the lenny and squeeze setups?


If you have no experience with packet analysis, it would be very difficult 
to explain it all in this list. Sorry.

-- 
Antonio Perez


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Masquerading problems: squeeze via lenny

2010-01-05 Thread Antonio Perez
Antonio Perez wrote:

 which both work on port 80, filter the destination port 80 and compare.
 hint: tcp.dstport==80

also you may add the dest IP or any other relevant factor to reduce noise:

for wget http://www.google.com :
tcp.dstport==80 and ip.addr==74.125.159.1/24

for http://www.livecdlist.com:
tcp.dstport==80 and ip.addr==74.81.93.114


Note: google.com site resolves to several addresses, so a /24 range will 
cover all of them.


-- 
Antonio Perez


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Masquerading problems: squeeze via lenny

2010-01-05 Thread Antonio Perez
Andrei Popescu wrote:

 on the gateway in /etc/ppp/peers/provider and ifconfig ppp0 correctly
 shows the new setting, but no change. Thanks for the hint though.

Hi:

You could start a Wireshark capture on both the LAN and the PPP before 
performing the wget command and compare both.

-- 
Antonio Perez


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: bash question

2009-10-10 Thread Antonio Perez
Alex Samad wrote:

 Hi, i have this:

 RDSCHM=--remote-schema 'ssh -i /root/.ssh/id_backup -C  %s rdiff-backup 
 --server'

 and trying this
 
 rdiff-backup \
 $RDSCHM \
 $RDRM \
 $DEST/

 with sh -x i get this
 
 + rdiff-backup --remote-schema ''\''ssh' -i /root/.ssh/id_backup -C %s 
 rdiff-backup '--server'\''' --remove-older-than '10B' --force 
 max::/backups/test/system/

I am pretty sure you are using bash as the sh link, do 'ls -la /bin/sh' to get: 
/bin/sh -- /bin/bash
If it were dash the responses would be different.

Testing: set up a test file with:
#!/bin/sh
RDSCHM=--remote-schema 'ssh -i /root/.ssh/id_backup -C %s rdiff-backup 
--server'
echo $RDSCHM
echo $RDSCHM
with: bash -x test, I get:
+ RDSCHM='--remote-schema '\''ssh -i /root/.ssh/id_backup -C %s 
rdiff-backup --server'\'''
+ echo --remote-schema ''\''ssh' -i /root/.ssh/id_backup 
$'-C\302\240%s' 'rdiff-backup --server'\'''
--remote-schema 'ssh -i /root/.ssh/id_backup -C %s rdiff-backup 
--server'
+ echo '--remote-schema '\''ssh -i /root/.ssh/id_backup -C %s 
rdiff-backup --server'\'''
--remote-schema 'ssh -i /root/.ssh/id_backup -C %s rdiff-backup 
--server'

with: dash -x test, I get:
+ RDSCHM=--remote-schema 'ssh -i /root/.ssh/id_backup -C %s 
rdiff-backup --server'
+ echo --remote-schema 'ssh -i /root/.ssh/id_backup -C %s rdiff-backup 
--server'
--remote-schema 'ssh -i /root/.ssh/id_backup -C %s rdiff-backup 
--server'
+ echo --remote-schema 'ssh -i /root/.ssh/id_backup -C %s rdiff-backup 
--server'
--remote-schema 'ssh -i /root/.ssh/id_backup -C %s rdiff-backup 
--server'

with dash there is no «  ''\''ssh'  »

Also, did you notice the difference between a command on an unquoted variable 
and a quoted one?
+ echo --remote-schema ''\''ssh' -i /root/.ssh/id_backup 
$'-C\302\240%s' 'rdiff-backup --server'\'''
+ echo '--remote-schema '\''ssh -i /root/.ssh/id_backup -C %s 
rdiff-backup --server'\'''

Conclusion: Quoting the variable will solve your problem, as this:
rdiff-backup \
  $RDSCHM \
  $RDRM \
  $DEST/


 the ''\''ssh' is the confusing bit it is seperate out the ssh and the -i.

Yes, on a bash shell, but only while quoting with -x, the actual command does 
the right thing.

 what can I do to prevent this.

Just put « $RDSCHM »  inside quotes as this: « $RDSCHM »

 My reading has lead me to IFS variable
 but I don't want to start playing with this yet ! I think I am just
 missing something. Hopefully the ml eyes will be able to see what i
 can't

No need to

 oh and its using dash well sh

It does not really matter which shell it is, when the issue is about correct 
quoting of variables.

-- 
Antonio Perez


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Zeta Perl ...

2003-02-11 Thread Manuel Antonio Perez Ucan~a
Hola:

Estoy tratando de conseguir el zeta perl para debian pero no esta
disponible en lista de paquetes de la pagina http://www.debian.org

Lo necesito para instalar en un equipo de prueba para un software libre
llamado Phronesis que sirve para crear bibliotecas digitales distribuidas.
(http://copernico.mty.itesm.mx/phronesis/proyecto)

Alguien sabe donde lo puedo conseguir?

Saludos y gracias de antemano

 --
 Manuel Antonio Perez Ucaña  (MCT - 373766)
 [EMAIL PROTECTED]
 Centro de Investigacion en Informatica
 ITESM Campus Monterrey, Mexico
 Tel: +52 (81) 8358-2000 ext. 5079
 --



Una sola password para usuario

2002-07-17 Thread Jose Antonio Perez
Saludos lista

He leido un poco de pam y ldap pero hasta el momento
no he encontrado la forma de lograr lo que deseo.
Por favor me pudieran dar una idea general de como
puedo lograr que:
Un usuario x tenga una sola password y que esta sirva
para autentificarse en el qpop y en el squid
y si fuera posible para el radius y otras como paginas
html o php/mysql
Que claro estos servicios pueden estar en varios
servidores.
Agradeceria infinitamente cualquier comentario pues
tengo un gran lio con esto. 
Muchas Gracias,JA  

___
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



dueño y permisos

2002-07-16 Thread Jose Antonio Perez
Hola Lista

Tengo una duda de principiante pero es fundamental
para entender algo de linux
Hace poco pregunte porque la autentificacion por
usuario en el squid no me estaba funcionando.
El problema era que el fichero de password yo le habia
puesto chmod 600 y estaba creado como root.
Al cambiar los permisos para 644 trabaja
correctamente.
Mi duda es, cuando voy a ver los permisos de squid me
da -rwxr-xr-x 1 root root
Yo entiendo que 
/usr/sbin/squid esta como root
Entonces porque si le pongo que ese fichero de claves
solo pueda ser leido y escrito por root no me
funciona.
Como yo puedo saber con que usuario esta corriendo una
aplicacion en particular?
Muchas gracias desde ya,JA


___
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Squid autentifica usuario

2002-07-15 Thread Jose Antonio Perez
Hola Lista
He configurado mi squid para autentificar usuarios
pero me niega el servicio, la version de squid es
2.2.5
Pero tiene acceso pues si trato de acceder con una
direccion de las que tengo en el acl ... src si
funciona bien. 
Para esta autentificacion di los pasos siguientes:
Cree un fichero /etc/squid/squid-passwd con permiso
600 
como root aunque he leido que debe ser usuario squid y
grupo squid pero en mi maquina no existe ese usuario
el 
/usr/sbin/squid esta como root
Creo un usuario cualquiera  con 
htpasswd /etc/squid/squid-passwd pepe
Paso a configurar y pongo
authenticate_program /usr/lib/squid/ncsa_auth
/etc/squid/squid-passwd
Declaro
acl USUARIOS proxy_auth REQUIRED
Y luego digo
http_access allow USUARIOS
Relanzo el squid
Pero cuando trato de acceder como pepe con su passwd
me da denegado el servicio en el Log 407 TCP_DENIED
Que tengo que hacer que no he hecho.
Gracias desde ya, JA


___
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Problema con NFS

2002-07-09 Thread Jose Antonio Perez
Saludos Lista

Necesito utilizar los cd desde otra maquina para
incluir algunos paquetes de mi debian potato
En la maquina server dentro del fichero
/etc/exports
Puse
/cdrom hostcliente

En fstab tengo bien declarado el /cdrom pues puedo
hacer mount /cdrom sin problema y moverme en el.
Tiro el rpc.nfsd y el rcp.mountd al igual que he
probado con un scrip /etc/init.d/nfs-kernel-server
stop y start
Con ps veo que esta activo los rcp respectivos y el
portmap
Pero cuando en la maquina cliente digo que quiero
hacer el dselect por nfs y pongo el nombre del
Hostserver me da fuera de tiempo y que no existe ese
host
Con ping puedo llegar al hostserver sin problema.
Probe tambien poniendo en el cliente
mount -t nfs server:/cdrom /cdrom
Pero me da lo mismo me dice 
RPC port mapper failere RPC Timeout
Por favor me pudieran dar una idea de que es lo que me
pasa.
Saludos,JA


___
Copa del Mundo de la FIFA 2002
El único lugar de Internet con vídeos de los 64 partidos. 
¡Apúntante ya! en http://fifaworldcup.yahoo.com/fc/es/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



prueba no responder

2002-05-29 Thread Jose Antonio Perez
SaludosCopa del Mundo de la FIFA 2002Disfruta en vdeo de los mejores momentos desde tu ordenador..