raid10_make_request bug

2011-08-15 Thread Serg Liberman

Hi all!

I get some trouble using mdadm over LVM2. Here is my config:

I've 2 servers (xen1 and xen2 - their hostnames in my local network) 
with configuration below:

Each server have 4 SATA disks, 1 Tb each attached to motherboard.
 4x4 Gb ddr3
debian squeeze x64 installed:
root@xen2:~# uname -a
Linux xen2 2.6.32-5-xen-amd64 #1 SMP Wed Jan 12 05:46:49 UTC 2011 x86_64 
GNU/Linux


Storage configuration:
First 256 Mb and second 32 Gb of 2 of 4 disks are used for raid1 devices 
for /boot and swap respectively.

The rest of space, 970 Gb on all 4 sata disks are used as raid10.
There is LVM2 installed over that raid10. Volume group is named xenlvm 
(that servers are expected to use as xen 4.0.1 hosts, but the story is 
not about Xen troubles).

/ , /var, /home are located on logical volumes of small size:

root@xen2:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/XENLVM-home
9.2G 6.0G 2.8G 69% /
tmpfs 7.6G 0 7.6G 0% /lib/init/rw
udev 7.1G 316K 7.1G 1% /dev
tmpfs 7.6G 0 7.6G 0% /dev/shm
/dev/md3 223M 31M 180M 15% /boot
/dev/mapper/XENLVM-var
9.2G 150M 8.6G 2% /home
/dev/mapper/XENLVM-root
9.2G 2.5G 6.3G 29% /var

About 900 Gb on "xenlvm" volume group are left free to create new 
logical volumes, which are expected to use as block devices for raid1 
partitions. One member of such array is local logical volume and the 
second is an Ata over Ethernet device.

It's name (of this aoe device) is e.g. e0.1.
We need such complications to run Xen vm-s. Our vm-s use raid1 devices 
for storing their data. And if one of two hosts (xen1 or xen2) die with 
catastrofic failure the second xen host will hold virtual machine block 
device so we can start it.
This two servers have 2 ethernet devices on each. One of eth dev (eth1 
on each) is comunicating with our lan (to connect to the server). The 
second ethernet device (eth0 on each) is connected with another server 
using ethernet cross connection with 1 Gbit/s throughput to provide disk 
space via ata over ethernet.


So here is the problem with this RAID1 device:

I've configured one 20Gigs RAID1 so it have 20GiGs AoE device and 20 
GiGs LVM local block storage.
mdadm -C /dev/md3 --level=1 --raid-devices=2 /dev/etherd/e0.1 
/dev/xenlvm/raid20gig


And installed Windows 2003 over this volume. Made some configurations 
inside and installed some soft. Then I backed up image of this volume 
using dd:

dd if=/dev/md3 of=/backups/md3_date.dd

Then I decided to run "more of this" virtual machines from that backup. 
So I created another one raid1 device with 20 Gigs capacity:


mdadm -C /dev/md4 --level=1 --raid-devices=2 /dev/xenlvm/raid20gig2 
/dev/etherd/e0.2


And wrote that dd backup to it:

dd if=/backups/md3_date.dd of=/dev/md4.

  And started domU with this md4 device as hdd. It runs smoothly. But 
when I look at

cat /proc/mdstat I see that one of backed deviced is in faulting state:

md4 : active raid1 dm-15[0](F) etherd/e1.5[1]
20970424 blocks super 1.2 [2/1] [_U]

that dm-15 is the LVM2 device /dev/xenlvm/raid20gig2

If I hot remove, re-add failing device the raid volume begins to resync 
as it was in normal state :


root@xen1:~# mdadm /dev/md4 -r /dev/dm-15
mdadm: hot removed /dev/dm-15 from /dev/md8

root@xen1:~# mdadm /dev/md4 -a /dev/dm-15
mdadm: re-added /dev/dm-15

Only faulting device  listing showed below, as I said, there is raid10 
in system, and there's no problem with it.

root@xen1:~# cat /proc/mdstat
Personalities : [raid1] [raid10]
md4 : active raid1 dm-15[0] etherd/e1.5[1]
20970424 blocks super 1.2 [2/1] [_U]
[>] recovery = 1.0% (218752/20970424) finish=17.3min 
speed=19886K/sec



So I started to watch /var/log/syslog and messages for some errors and 
found a message bellow:


*raid10_make_request bug: can't convert block across chunks or bigger 
than 512k 965198847 4

*
This message appears in the log at the moment when state of lvm block 
device dm-15 changes from normal to faulting in /proc/mdstat.


That's not the end of the story. I saw this message on xen1 host, so 
that was local lvm device. But at some moment this problem appeared on 
the second host - xen2.
And this message appears in xen2 /var/log/kern.log and floods it very 
fast, so I get my /var full in two days. And after that my aoe-device on 
xen1 gets into "down" state and the vm dies.




I googled for this error and found only posts about some redhat and 
debian etch kernel bug in year 2007-2009.


Re: Transplanting old System to New Drive

2011-08-15 Thread Jörg-Volker Peetz
With the rsync command you should use an exclude-file (see --exclude option)
containing a list of directories and files not to be transferred like

./lost+found**
./run**
./dev/**
./sys/**
./tmp/**
etc (see rsync manual).

After transferring the files you may have to adapt files like /etc/fstab and the
configuration file for your boot-loader. Depending on your boot-loader you have
to install a new mbr (using grub-install or lilo with options like
"--boot-directory=DIR /dev/hdb", e.g., for grub).
-- 
Best regards,
Jörg-Volker.


-- 
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/j2aihm$keg$1...@dough.gmane.org



how to set up the right click options when open a webpage in iceweasle

2011-08-15 Thread lina
Hi,

seems the iceweasle has updated today (wheezy).

How can I set up the right click,

open links in new tab
open links in new window

back to the

open links in new window
open links in new tab


Thanks,


-- 
Best Regards,

lina


-- 
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/cag9cjmnc4zubumhimfo7wzy4xu9_jeiv9np5y_vom8kv6u2...@mail.gmail.com



Re: Will diff --show-c-function behaves resonably for non C files?

2011-08-15 Thread Darac Marjal
On Sat, Aug 13, 2011 at 03:51:33PM -0700, Regid Ichira wrote:
> $ diff --help | grep -e --show-c-function
> -p  --show-c-function  Show which C function each change is in.
> 
>   Will diff -p behaves reasonably when applied to non C files?
> I want to use the -p option in a script that does not necessarily act
> on C files? 

I would expect this to work on files that are similar to C (say, Java),
but probably not for files where functions are declared differently
(Python, Ada) and definitely not on files where something like a
function makes no sense (Plain text).

There's always one way to find out, though: try it.

-- 
Paul Saunders


signature.asc
Description: Digital signature


Re: Transplanting old System to New Drive

2011-08-15 Thread Martin McCormick
Scott Ferguson writes:
> That's part of the problem... of course all the UUIDs in fstab and 
> grub.cfg
> will refer to your old drive... ;-p

> Probably *not* the recommended way to do it, but...

Of course! I will not quote any more, here, but that
sounds like a plan. Many thanks.

Martin McCormick


-- 
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/201108151023.p7fangp3094...@x.it.okstate.edu



Re: Transplanting old System to New Drive

2011-08-15 Thread Martin McCormick
Ivan Shmakov writes:
> It's possible to dd(1) just the filesystem (partition) instead
> of the whole disk.
> 
> Moreover, the filesystem can be downsized prior to that with
> resize2fs(8), thus the destination partition may be smaller than
> the source one.

What if the destination is larger which is the case, here?

Thanks for all the additional information.

Martin


-- 
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/201108151054.p7fasvdk095...@x.it.okstate.edu



Running a script on monitor connect/disconnect

2011-08-15 Thread Ralf Jung
Hi,

I am having trouble getting my multi-monitor setup running properly using the 
proprietary AMD drivers in Debian testing using XRandR. My hardware is an HP 
Compaw 615 Laptop, with a Radeon HD 3200 graphics card. I am using KDE 4.6.5. 
I want the external screen, if it is connected, to be to the right of my 
internal laptop screen, both using their native resolution. I quickly found 
out that no GUI will be of any help here...

I ended up editing the xorg.conf to force the resolution of my internal 
monitor to the native one, to prevent X.org from automatically choosing a 
lower resolution that's also supported by the external screen (since it 
defaults to cloning). I also had to increase the size of the virtual desktop. 
Finally, to get the screen setup I want, I added some commands to 
/etc/kde4/kdm/Xsetup to detect whether a monitor is connected and do the 
actual setup using xrandr. You can find both configuration files attached.

However, when I plug in the screen after logging in, (of course) I manually 
have to execute xrandr again to enable the external monitor. Is there a way to 
call a shell script on monitor connect/disconnect events where I can then set 
up everything the way I want to?

Also, I wonder if there is no better way to specify a default setup that's not 
"clone same image on all screens". I tried to add the external monitor to the 
xorg.conf (fearing trouble for the case where it is not connected), and added 
the "RightOf" option, but both monitors would still use the same (non-native) 
resolution. And I absolutely do not want to hard-code the resolution of the 
external monitor since there are several monitors I connect to, with different 
resolutions.

Kind regards,
Ralf
Section "Device"
Identifier"Radeon HD 3200 Graphics"
Driver"fglrx"
Option "Monitor-LVDS" "LVDS"
EndSection

Section "Monitor"
Identifier  "LVDS"
Option "PreferredMode" "1366x768"
Option "Primary" "true"
EndSection

Section "Screen"
Identifier "The One And Only Screen"
Monitor "LVDS"
Device "Radeon HD 3200 Graphics"
SubSection "Display"
# Necessary to make dual-view work
Virtual 3000 3000
EndSubSection
EndSection


Xsetup
Description: application/shellscript


Re: Transplanting old System to New Drive

2011-08-15 Thread Ivan Shmakov
> Martin McCormick  writes:
> Ivan Shmakov writes:

 >> It's possible to dd(1) just the filesystem (partition) instead of
 >> the whole disk.

 >> Moreover, the filesystem can be downsized prior to that with
 >> resize2fs(8), thus the destination partition may be smaller than the
 >> source one.

 > What if the destination is larger which is the case, here?

If the destination partition is larger than the source one, use
resize2fs(8) after dd(1) on the destination partition — it'll
make the additional space available to the filesystem.

 > Thanks for all the additional information.

-- 
FSF associate member #7257


-- 
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/86vctz3p47@gray.siamics.net



Re: "gconf-editor" icon missing from menu? (wheezy)

2011-08-15 Thread Camaleón
On Sun, 14 Aug 2011 18:52:42 +, Walter Hurry wrote:

> On Sun, 14 Aug 2011 18:41:11 +, Camaleón wrote:
> 
>> I've just realized my wheezy has lost an icon from the menu: "gconf-
>> editor" is not there anymore while the binary file is still present and
>> can be launched as expected.

(...)

> Not sure what you are driving at here. 

Nothing serious, is just that I missed an icon from the menu.

> Presumably there will be a "dconf- editor" for GNOME3 but I have
> abandoned GNOME in favour of LXDE anyway.

Yes, but as "gconf-editor" is still there, why to remove the icon? If it 
is intended, it's okay, if not, something wrong has happened.
 
> But you are knowledgeable enough to have a look in /usr/share/
> applications to see what is what.

Well, I don't care about what to do nor how to restore it (I already know 
that), I was asking if this has been experienced by anyone else. If no, I 
will report it.

Greetings,

-- 
Camaleón


-- 
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/pan.2011.08.15.11.17...@gmail.com



Re: Fwd: Billion 7800N

2011-08-15 Thread Camaleón
On Mon, 15 Aug 2011 06:28:26 +1000, Heddle Weaver wrote:

> On 14 August 2011 14:42, Heddle Weaver  wrote:
> 
>>
>> On 13 August 2011 01:44, Camaleón  wrote:
>>
>> After configuring the modem through XP laptop, I can now access the net
>> through my Debian laptop.
>> The connection is very glitchy - lots of 'time-outs' - but a definite
>> improvement.
>> At least I have access.
>>
>> I'll just have to iron out the bugs, now, but it's been quite a
>> different experience.
> 
> 
> Here would appear to be the problem.
> I can access the net.
> Some sites I have absolutely no problem with and others just time out.
> This is with bookmarks I've had regular and unimpeded access to in the
> past. 

Timeouts for "some" sites may require more debugging. A site can be 
having any problem or your ISP may be having a routing issue with that 
specific server... hard to tell what can be happening.

If using Firefox, you can just disable ipv6 because some sites become 
painfully slow when this is enabled (about:config → filter by "ipv6" → 
and set "network.dns.disableIPv6" to "true"). After that, restart Firefox/
Iceweasel.

> And I *still *can't access the modem interface in Debian.
> 
> So, it's looking like a system glitch still.

This is what puzzles me because I definitely see no (good|logical) reason 
for not getting access to the web interface from Debian. Ethernet is one 
of the most standarized technologies out there so I dunno what can be 
happening with that DSL modem.

Have you tried to get access by telnet ("telnet 192.168.1.254"). Some 
routers do also allow to be managed in this way :-?

Greetings,

-- 
Camaleón


-- 
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/pan.2011.08.15.11.34...@gmail.com



Re: how to set up the right click options when open a webpage in iceweasle

2011-08-15 Thread Camaleón
On Mon, 15 Aug 2011 16:20:57 +0800, lina wrote:

> seems the iceweasle has updated today (wheezy).
> 
> How can I set up the right click,
> 
> open links in new tab
> open links in new window
> 
> back to the
> 
> open links in new window
> open links in new tab

You must be the only person requesting that back ;-)

How about using an addon to re-arrange the contect menu?

https://addons.mozilla.org/en-US/firefox/addon/menu-editor/

P.S. Not tested, this is one of the Google suggestions...

Greetings,

-- 
Camaleón


-- 
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/pan.2011.08.15.11.39...@gmail.com



setting up a static IP address

2011-08-15 Thread Steve Kleene
I asked my organization to assign me a static IP address within their
network, and they obliged.  The problem is that every time I boot now, I
still get the old address in DHCP space that I had before.  To make the
change, I provided network operations with my MAC address, which I got from
the output of ifconfig -a:

eth0  Link encap:Ethernet  HWaddr aa:00:04:00:0a:04

All I did at my end to set this up was to change /etc/network/interfaces to
the following:

  auto lo
  iface lo inet loopback

  # The primary network interface
  allow-hotplug eth0
  iface eth0 inet static
  address 10.97.14.253
  netmask 255.255.255.0
  gateway 10.97.14.1

  auto eth0

which shows the new IP and gateway given to me by network operations.
Exactly such a file works fine on a second machine I have with a static IP.
It also conforms to the instructions here:

http://www.debian.org/doc/manuals/reference/ch05.en.html#_the_network_interface_with_the_static_ip

I didn't list broadcast since the older machine's interfaces file seems to
work fine without it.  DNS stuff is handled by /etc/resolv.conf.
Connectivity is fine except that it's not at the assigned static IP (as
judged by ifconfig -a).

Network operations believes they did their end correctly.  Is there anything
else I should be doing at my end?

Thanks.


-- 
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/loom.20110815t134745-...@post.gmane.org



Re: Running a script on monitor connect/disconnect

2011-08-15 Thread Camaleón
On Mon, 15 Aug 2011 13:03:07 +0200, Ralf Jung wrote:

> I am having trouble getting my multi-monitor setup running properly
> using the proprietary AMD drivers in Debian testing using XRandR. My
> hardware is an HP Compaw 615 Laptop, with a Radeon HD 3200 graphics
> card. I am using KDE 4.6.5. I want the external screen, if it is
> connected, to be to the right of my internal laptop screen, both using
> their native resolution. I quickly found out that no GUI will be of any
> help here...

(...)

Just a quick note here. Not sure if you have tried with "krandrtray" or 
better yet, as you are using the ATI closed drivers, you may test their 
catalyst control center utility to handle video screens (resolution/
position, etc...).

I bet with the open radeon drivers this would be very easy to achieve...

Greetings,

-- 
Camaleón


-- 
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/pan.2011.08.15.11.50...@gmail.com



Re: setting up a static IP address

2011-08-15 Thread Volkan YAZICI
On Mon, 15 Aug 2011 11:49:24 + (UTC), Steve Kleene writes:
>   auto lo
>   iface lo inet loopback
>
>   # The primary network interface
>   allow-hotplug eth0
>   iface eth0 inet static
>   address 10.97.14.253
>   netmask 255.255.255.0
>   gateway 10.97.14.1
>
>   auto eth0
>
> Connectivity is fine except that it's not at the assigned static IP (as
> judged by ifconfig -a).

You sure "ifconfig eth0" still doesn't return 10.97.14.253? Did you
restart the networking service? That is, "invoke-rc.d networking restart"?


-- 
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/87ty9ihooh@alamut.ozun.int



Re: setting up a static IP address

2011-08-15 Thread Steve Kleene
On Mon, 15 Aug 2011 11:49:24 +, I wrote:

> I asked my organization to assign me a static IP address within their
> network, and they obliged.  The problem is that every time I boot now, I
> still get the old address in DHCP space that I had before.

On Mon, 15 Aug 2011 11:58:06 GMT, Volkan YAZICI replied:

> You sure "ifconfig eth0" still doesn't return 10.97.14.253?

Yes.

> Did you restart the networking service? That is, "invoke-rc.d networking
> restart"?

I had not tried that.  I had tried booting and assumed that would also
restart the network.  So I tried your suggestion.  That did in fact set eth0
to the desired static IP 10.97.14.253 while producing this error message:

"Running /etc/init.d/networking restart is deprecated because it may not
enable again some interfaces ... (warning)."

However, on rebooting I was once again assigned the dynamic IP 10.97.14.200.
In case it matters, I'll mention that I'm running Wheezy.  The kernel just
moved up to 3.0.0-1-686-pae on Friday, but this IP problem predates that.

Thanks.


-- 
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/loom.20110815t143224-...@post.gmane.org



Re: how to set up the right click options when open a webpage in iceweasle

2011-08-15 Thread lina
On Mon, Aug 15, 2011 at 7:39 PM, Camaleón  wrote:
> On Mon, 15 Aug 2011 16:20:57 +0800, lina wrote:
>
>> seems the iceweasle has updated today (wheezy).
>>
>> How can I set up the right click,
>>
>> open links in new tab
>> open links in new window
>>
>> back to the
>>
>> open links in new window
>> open links in new tab
>
> You must be the only person requesting that back ;-)

Today I just felt a bit distracted many times when I wanted to open in
a new Tab, it's opened in a new window. Not so familiar with this new
setting.

Are there some progress making such changes?

>
> How about using an addon to re-arrange the contect menu?
>
> https://addons.mozilla.org/en-US/firefox/addon/menu-editor/
>
> P.S. Not tested, this is one of the Google suggestions...

It works, I feel good about back (de-grade). Thanks.

>
> Greetings,
>
> --
> Camaleón
>
>
> --
> 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/pan.2011.08.15.11.39...@gmail.com
>
>



-- 
Best Regards,

lina


--
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/CAG9cJmm34RxPyeJzUhSHdLsrqmXf8SyjJ=zhdkz377ja237...@mail.gmail.com



Re: setting up a static IP address

2011-08-15 Thread Mihira Fernando

On 08/15/2011 05:19 PM, Steve Kleene wrote:

I asked my organization to assign me a static IP address within their
network, and they obliged.  The problem is that every time I boot now, I
still get the old address in DHCP space that I had before.  To make the
change, I provided network operations with my MAC address, which I got from
the output of ifconfig -a:

eth0  Link encap:Ethernet  HWaddr aa:00:04:00:0a:04

All I did at my end to set this up was to change /etc/network/interfaces to
the following:

   auto lo
   iface lo inet loopback

   # The primary network interface
   allow-hotplug eth0
Comment out allow-hotplug eth0 as you have auto eth0 there as well. Then 
reboot and see if that solves the problem.



--
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/4e4915d4.6030...@gmail.com



Re: setting up a static IP address

2011-08-15 Thread Camaleón
On Mon, 15 Aug 2011 11:49:24 +, Steve Kleene wrote:

> I asked my organization to assign me a static IP address within their
> network, and they obliged.  The problem is that every time I boot now, I
> still get the old address in DHCP space that I had before.  To make the
> change, I provided network operations with my MAC address, which I got
> from the output of ifconfig -a:
> 
> eth0  Link encap:Ethernet  HWaddr aa:00:04:00:0a:04

(...)

If adminds are requesting you the MAC address you may be still need to 
setup a dynamic configuration for your adapter (DHCP). So I would first 
ask them what kind of setup it is needed on your computer for a proper 
operation.

> I didn't list broadcast since the older machine's interfaces file seems
> to work fine without it.  DNS stuff is handled by /etc/resolv.conf.
> Connectivity is fine except that it's not at the assigned static IP (as
> judged by ifconfig -a).

Are you running wheezy on a VM? It looks like some configuration file/
script/policy is taking the network setup and thus preventing the system 
to use your custom settings :-?

Greetings,

-- 
Camaleón


-- 
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/pan.2011.08.15.12.52...@gmail.com



Re: how to set up the right click options when open a webpage in iceweasle

2011-08-15 Thread Camaleón
On Mon, 15 Aug 2011 20:46:03 +0800, lina wrote:

> On Mon, Aug 15, 2011 at 7:39 PM, Camaleón  wrote:
>> On Mon, 15 Aug 2011 16:20:57 +0800, lina wrote:
>>
>>> seems the iceweasle has updated today (wheezy).
>>>
>>> How can I set up the right click,
>>>
>>> open links in new tab
>>> open links in new window
>>>
>>> back to the
>>>
>>> open links in new window
>>> open links in new tab
>>
>> You must be the only person requesting that back ;-)
> 
> Today I just felt a bit distracted many times when I wanted to open in a
> new Tab, it's opened in a new window. Not so familiar with this new
> setting.
> 
> Are there some progress making such changes?

That will depend to who you ask. To me, yes. I prefer the first option 
(the most used) is to get a new tab instead opening a new window, which 
consumes system resources and takes a valuable space in the panel.

>> How about using an addon to re-arrange the contect menu?
>>
>> https://addons.mozilla.org/en-US/firefox/addon/menu-editor/
>>
>> P.S. Not tested, this is one of the Google suggestions...
> 
> It works, I feel good about back (de-grade). Thanks.

Goog to know that works :-)

Greetings,

-- 
Camaleón


-- 
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/pan.2011.08.15.12.58...@gmail.com



Re: how to set up the right click options when open a webpage in iceweasle

2011-08-15 Thread lina
On Mon, Aug 15, 2011 at 8:58 PM, Camaleón  wrote:
> On Mon, 15 Aug 2011 20:46:03 +0800, lina wrote:
>
>> On Mon, Aug 15, 2011 at 7:39 PM, Camaleón  wrote:
>>> On Mon, 15 Aug 2011 16:20:57 +0800, lina wrote:
>>>
 seems the iceweasle has updated today (wheezy).

 How can I set up the right click,

 open links in new tab
 open links in new window

 back to the

 open links in new window
 open links in new tab
>>>
>>> You must be the only person requesting that back ;-)
>>
>> Today I just felt a bit distracted many times when I wanted to open in a
>> new Tab, it's opened in a new window. Not so familiar with this new
>> setting.
>>
>> Are there some progress making such changes?
>
> That will depend to who you ask. To me, yes. I prefer the first option
> (the most used) is to get a new tab instead opening a new window, which
> consumes system resources and takes a valuable space in the panel.

I use "open in the new Tab." too.
Just kind of familiar to click without really looking at it. so ...

Thanks,
>
>>> How about using an addon to re-arrange the contect menu?
>>>
>>> https://addons.mozilla.org/en-US/firefox/addon/menu-editor/
>>>
>>> P.S. Not tested, this is one of the Google suggestions...
>>
>> It works, I feel good about back (de-grade). Thanks.
>
> Goog to know that works :-)
>
> Greetings,
>
> --
> Camaleón
>
>
> --
> 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/pan.2011.08.15.12.58...@gmail.com
>
>



-- 
Best Regards,

lina


--
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/CAG9cJm=pj4simacy++zpcys-q0mbm0ejnt6dhn9qfttbndr...@mail.gmail.com



Re: setting up a static IP address

2011-08-15 Thread Steve Kleene
On Mon, 15 Aug 2011 11:49:24 +, I wrote:

> I asked my organization to assign me a static IP address within their
> network, and they obliged.  The problem is that every time I boot now, I
> still get the old address in DHCP space that I had before.

On Mon, 15 Aug 2011 18:19:24 +0530, Mihira Fernando replied:

> Comment out allow-hotplug eth0 as you have auto eth0 there as well. Then
> reboot and see if that solves the problem.

Thanks, but that did not solve the problem.

On Mon, 15 Aug 2011 12:52:48 + (UTC), Camaleón replied:

> If adminds are requesting you the MAC address you may be still need to
> setup a dynamic configuration for your adapter (DHCP). So I would first
> ask them what kind of setup it is needed on your computer for a proper
> operation.

Nice idea, but they have told me that they don't do "server support".  As I
mentioned, I do have a second box with a static IP that works fine with just
the configuration I'm trying here.  Although the hardware is different.

> Are you running wheezy on a VM?

No, Wheezy is the host, although I do have an XP VM client.

Given that restarting networking after booting fixes this, I can probably
just do that in /etc/rc.local.  But that's awfully hacky.


-- 
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/loom.20110815t150919-...@post.gmane.org



Re: setting up a static IP address

2011-08-15 Thread Camaleón
On Mon, 15 Aug 2011 13:10:15 +, Steve Kleene wrote:

> On Mon, 15 Aug 2011 12:52:48 + (UTC), Camaleón replied:
> 
>> If adminds are requesting you the MAC address you may be still need to
>> setup a dynamic configuration for your adapter (DHCP). So I would first
>> ask them what kind of setup it is needed on your computer for a proper
>> operation.
> 
> Nice idea, but they have told me that they don't do "server support". 

I would not consider that to be a "support" question but a "basic" 
question. In what kind of environment are you? Oh, well... damn BOFH! >:-)

> As I mentioned, I do have a second box with a static IP that works fine
> with just the configuration I'm trying here.  Although the hardware is
> different.

Your "/etc/network/interfaces" file looks right... There must be 
something interfering in between :-?

How about "ifdown eth0 && ifup eth0" and then "ifconfig"?

Is dhclient runnig in background?
 
>> Are you running wheezy on a VM?
> 
> No, Wheezy is the host, although I do have an XP VM client.
> 
> Given that restarting networking after booting fixes this, I can
> probably just do that in /etc/rc.local.  But that's awfully hacky.

Yep, awful and should not be needed at all... we must be forgetting 
something because this is a very basic setup most of us are using in our 
systems. Check your "/var/log/syslog" for something related to your 
network setup.

Greetings,

-- 
Camaleón


-- 
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/pan.2011.08.15.13.26...@gmail.com



Re: setting up a static IP address

2011-08-15 Thread Brian
On Mon 15 Aug 2011 at 11:49:24 +, Steve Kleene wrote:

> I asked my organization to assign me a static IP address within their
> network, and they obliged.  The problem is that every time I boot now, I
> still get the old address in DHCP space that I had before.  To make the
> change, I provided network operations with my MAC address, which I got from
> the output of ifconfig -a:
> 
> eth0  Link encap:Ethernet  HWaddr aa:00:04:00:0a:04

If this a dhcp reservation you could try:

   allow-hotplug eth0
   iface eth0 inet dhcp

and reboot.


-- 
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/20110815132651.GX14528@desktop



kernel source package with applied patches

2011-08-15 Thread Henry Jensen
Hello,

I plan to create a source tarball of the Debian Linux kernel with
patches already applied in oder to build a kernel, based on Debian
kernel sources, on other, non-Debian based distros.

As far as I can tell I must do it the following way.

- Download linux-2.6_[version].orig.tar.gz
- Download linux-2.6_[version]-[patchlevel].dsc
- Download linux-2.6_[version]-[patchlevel].diff.gz

- Running dpkg-source -x linux-2.6_[version]-[patchlevel].dsc

This produces the directory linux-2.6-[version]. Patches aren't applied
yet and can be found at the subdirectory debian/patches.

To apply the patches I run

- fakeroot debian/rules source

Now I can see that the patches are applied. According to
http://kernel-handbook.alioth.debian.org/ch-common-tasks.html the
patched kernel source is now at debian/build/source. So all I must do
is to create a tarball of that subdirectory. Am I correct so far?

Regards,

Henry


-- 
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/20110815154218.20c85c6b.hjen...@gmx.de



Re: Google earth doesn't display anything on my Debian Wheezy amd64

2011-08-15 Thread Curt
On 2011-08-14, Scott Ferguson  wrote:

> $ cat /var/log/nvidia-installer.log | less

less /var/log ...

> $ cat /var/log/nvidia-installer.log | grep -i fail

grep -i fail /var/log ...


-- 
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/slrnj4i8jm.2u7.cu...@einstein.electron.org



Are you a graphic designer?

2011-08-15 Thread Heather Madison
Hey there,

I'm reaching out to you because Thumbtack is getting a lot of job leads for 
graphic designers, and I'm looking for another graphic designer who is 
interested in taking on more clients.

After checking out your website I think you are a great fit for Thumbtack and 
I'd love to start sending you job leads.  Please visit 
https://www.thumbtack.com/welcome and fill out a few details about your skills 
and rates, and I'll start forwarding you potential new clients.

If you have any questions about what Thumbtack can provide, please don't 
hesitate to ask.

Thanks,
Heather

--

Please visit the link below to unsubscribe:
http://www.thumbtack.com/unsubscribe?e=debian-user@lists.debian.org&action=unsubscribe
1001 Page St, Suite #45, San Francisco, CA
This message is an advertisement.

Re: setting up a static IP address

2011-08-15 Thread gnubayonne-debian...@yahoo.com
>All I did at my end to set this up was to change /etc/network/interfaces to

>the following:

>auto lo
>iface lo inet loopback

># The primary network interface
>allow-hotplug eth0
>iface eth0 inet static
>address 10.97.14.253
>netmask 255.255.255.0
>gateway 10.97.14.1

>auto eth0


Have u tried putting the auto eth0 before the lines specifying the static ip?


-- 
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/1313420743.56756.yahoomai...@web180615.mail.sp1.yahoo.com



Re: setting up a static IP address

2011-08-15 Thread Lisi
On Monday 15 August 2011 16:05:43 gnubayonne-debian...@yahoo.com wrote:
> >All I did at my end to set this up was to change /etc/network/interfaces
> > to
> >
> >the following:
> >
> >auto lo
> >iface lo inet loopback
> >
> ># The primary network interface
> >allow-hotplug eth0
> >iface eth0 inet static
> >address 10.97.14.253
> >netmask 255.255.255.0
> >gateway 10.97.14.1
> >
> >auto eth0
>
> Have u tried putting the auto eth0 before the lines specifying the static
> ip?

That would be my first guess too, but I also wondered whether you were trying 
to run both your boxen with the same IP, since you say that the other one 
works.

Lisi


-- 
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/201108151654.26142.lisi.re...@gmail.com



Re: squeeze freeze while copying from camera mem card (via USB)

2011-08-15 Thread Camaleón
On Sun, 14 Aug 2011 23:55:45 +0300, Itay wrote:

(...)

> + I couldn't find out anything suspicious in /var/log/syslog.
>(But honestly I don't know what to look for: what is kernel
> soft-lock?)

here there is a good explanation on what soft/hard locks here (scroll 
down to "A Classification of Kernel Bugs"):

http://en.opensuse.org/openSUSE:Bugreport_kernel

Sorry, I did not find a similar doc for Debian explainig the different 
types for the most common kernel bugs :-P

Greetings,

-- 
Camaleón


-- 
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/pan.2011.08.15.15.59...@gmail.com



Re: setting up a static IP address

2011-08-15 Thread Steve Kleene
On Mon, 15 Aug 2011 11:49:24 +, I wrote:

> I asked my organization to assign me a static IP address within their
> network, and they obliged.  The problem is that every time I boot now, I
> still get the old address in DHCP space that I had before.

On Mon, 15 Aug 2011 13:26:32 + (UTC), Camaleón replied:

> How about "ifdown eth0 && ifup eth0" and then "ifconfig"?

That still leaves me with the unwanted DHCP address.

> Is dhclient runnig in background?

Now that looks interesting.  On the machine trying to set the static IP, this
is running:

  /sbin/dhclient -d -4 -sf /usr/lib/NetworkManager/nm-dhcp-client.action \
-pf /var/run/dhclient-eth0.pid \
-lf /var/lib/dhcp/dhclient-ea3f96a9-7876-448b-b213-bbd10424e4f7-eth0.lease \
-cf /var/run/nm-dhclient-eth0.conf eth0

The parent process is shown as /usr/sbin/NetworkManager.  On my other
machine, which is successfully using a static IP, dhclient is not running.
Both machines have identical versions of /etc/init.d/network-manager, neither
of which shows any obvious call to dhclient.

On Mon, 15 Aug 2011 08:05:43 -0700 (PDT), gnubayonne-debian...@yahoo.com wrote:

> Have u tried putting the auto eth0 before the lines specifying the static ip?

Thanks, but that caused some real havoc.  First I got errors about the
interfaces file, and then shutdown and reboot both went badly.

On Mon, 15 Aug 2011 16:54:26 +0100, Lisi  wrote:

> I also wondered whether you were trying to run both your boxen with the
> same IP, since you say that the other one works.

That is not the problem.  I have two distinct static IPs, one for each box.


-- 
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/loom.20110815t180036-...@post.gmane.org



Re: setting up a static IP address

2011-08-15 Thread Lisi
On Monday 15 August 2011 17:01:17 Steve Kleene wrote:
> > I also wondered whether you were trying to run both your boxen with the
> > same IP, since you say that the other one works.
>
> That is not the problem.  I have two distinct static IPs, one for each box.

That seemed massively more likely, but it is often the blindingly obvious that 
gets missed - anyhow, by me. :-(

But, thankfully, it now looks as though your problem is all but solved.

Lisi


--
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/201108151712.43413.lisi.re...@gmail.com



Re: setting up a static IP address

2011-08-15 Thread Camaleón
On Mon, 15 Aug 2011 16:01:17 +, Steve Kleene wrote:

> On Mon, 15 Aug 2011 11:49:24 +, I wrote:
> 
>> I asked my organization to assign me a static IP address within their
>> network, and they obliged.  The problem is that every time I boot now,
>> I still get the old address in DHCP space that I had before.
> 
> On Mon, 15 Aug 2011 13:26:32 + (UTC), Camaleón replied:
> 
>> How about "ifdown eth0 && ifup eth0" and then "ifconfig"?
> 
> That still leaves me with the unwanted DHCP address.

Mmm...
 
>> Is dhclient runnig in background?
> 
> Now that looks interesting.  On the machine trying to set the static IP,
> this is running:
> 
>   /sbin/dhclient -d -4 -sf /usr/lib/NetworkManager/nm-dhcp-client.action
>   \
> -pf /var/run/dhclient-eth0.pid \
> -lf
> /var/lib/dhcp/dhclient-ea3f96a9-7876-448b-b213-bbd10424e4f7-eth0.lease
> \ -cf /var/run/nm-dhclient-eth0.conf eth0
> 
> The parent process is shown as /usr/sbin/NetworkManager.  On my other
> machine, which is successfully using a static IP, dhclient is not
> running. Both machines have identical versions of
> /etc/init.d/network-manager, neither of which shows any obvious call to
> dhclient.

(...)

NM calls -by default- "dhclient", so... is NM running?

If so, stop NM ("/etc/init.d/network-manager stop") or kill "dhclient" 
process and then restart the network service (also run ifdown/ifup, just to 
be sure). After that run "ifconfig" to check the current IP. If that solves 
your problem, just disable NM and your happiness will inmediately start :-)

Greetings,

-- 
Camaleón


-- 
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/pan.2011.08.15.16.14...@gmail.com



Re: Fwd: Billion 7800N

2011-08-15 Thread Lisi
On Monday 15 August 2011 12:34:59 Camaleón wrote:
> This is what puzzles me because I definitely see no (good|logical) reason
> for not getting access to the web interface from Debian. Ethernet is one
> of the most standarized technologies out there so I dunno what can be
> happening with that DSL modem.

What browser are you using?  I have come across problems accessing the web 
interface of a router with Iceweasel/Firefox.  Rarely, but I have come across 
the problem.

Lisi


--
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/201108151722.28219.lisi.re...@gmail.com



Re: Fwd: Billion 7800N

2011-08-15 Thread Camaleón
On Mon, 15 Aug 2011 17:22:28 +0100, Lisi wrote:

> On Monday 15 August 2011 12:34:59 Camaleón wrote:
>> This is what puzzles me because I definitely see no (good|logical)
>> reason for not getting access to the web interface from Debian.
>> Ethernet is one of the most standarized technologies out there so I
>> dunno what can be happening with that DSL modem.
> 
> What browser are you using?  I have come across problems accessing the
> web interface of a router with Iceweasel/Firefox.  Rarely, but I have
> come across the problem.

Yes! :-)

In fact I was remembering the problem you experienced months ago and so I 
mentioned an alternative to bypass anything that can be related to the 
browser and could be making noise here, like accessing via "telnet".

Greetings,

-- 
Camaleón


-- 
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/pan.2011.08.15.16.30...@gmail.com



Re: setting up a static IP address

2011-08-15 Thread Steve Kleene
On Mon, 15 Aug 2011 16:14:56 + (UTC), Camaleón wrote:

> NM calls -by default- "dhclient", so... is NM running?

Yes, it is running on each of the two machines.

> If so, stop NM ("/etc/init.d/network-manager stop") or kill "dhclient"
> process and then restart the network service (also run ifdown/ifup, just to
> be sure). After that run "ifconfig" to check the current IP. If that solves
> your problem, just disable NM and your happiness will inmediately start :-)

Doing just this:
  cd /etc/init.d; network-manager stop; networking restart

gave me the desired static IP.  Then I ran this:

cd /etc/rc3.d; mv S03network-manager K97network-manager

rebooted and again got the desired static IP.

So assuming I won't miss network-manager, all is well.  I still don't
understand why the other box, which is still running network-manager and a
static IP, doesn't have this problem.  They're both running updated Wheezy.

Anyway, now I can get back to my real job.  Thanks again.


-- 
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/loom.20110815t183929-...@post.gmane.org



how/where to ask questions about dpkg/APT and tools?

2011-08-15 Thread Tom Roche

My dpkg/APT knowledge/skills need to go from near-beginner to at least
intermediate-level fairly quickly, but I have lots questions. Where
to go (e.g., what forums, lists, IRCs, other sites) to ask them?
Why I ask:

>From using desktop ubuntu for a few years (and server ubuntu for longer,
and mint for a few months) I have some experience with APT. Mostly I
have used non-interactive command-line `aptitude` (i.e., `sudo aptitude
 ...`) rather than, e.g.,

* the interactive, character-mode-graphical `aptitude`
  (i.e., `sudo aptitude`)

* full GUIs (e.g., synaptic, Ubuntu Software Center)

This worked well, because I kept up-to-date and because ubuntu shielded
me from massive breakage. However it does require (more or less)
periodic reinstalls; after the latest, I indulged my desire to switch to
rolling release. Yesterday I installed LMDE

http://blog.linuxmint.com/?p=1604

and am presently barely functional (i.e., I have emacs and firefox),
thanks largely to the "update pack" functionality in mintupdate-debian

http://blog.linuxmint.com/?p=1781

and the mint intermediate repos

me@it:~$ cat /etc/apt/sources.list deb
http://packages.linuxmint.com/ debian main upstream import deb
http://debian.linuxmint.com/latest testing main contrib non-free deb
http://security.debian.org/ testing/updates main contrib non-free
deb http://www.debian-multimedia.org testing main non-free

However I currently

- have 888 updates (per mu-d)
- have 69 broken packages (per `aptitude`)
- need to get some bigger apps/functions running (e.g., chromium,
  libreoffice, DVD playing)
- fear breaking big things (e.g., X, GNOME)

I suspect getting out of this hole quickly will require more knowledge
of APT and its tools than I currently have, so I'm trying to learn the
interactive `aptitude` via its tutorial

http://algebraicthunk.net/~dburrows/projects/aptitude/doc/en/index.html

and any other tools that might help (e.g., I've heard of `debdelta` but
know nothing about it), but I already have questions, so am wondering:

* Are there places to ask questions that specialize in APT and its tools?
  Esp that are kind to the less advanced practitioner ?-)

* Is this list a good place for APT questions? It's pretty high-volume,
  and debian is a much broader topic than APT, but if it's the best
  thing available, I can cope.

* Since I'm an LMDE user, should I just stay on its forum?

http://forums.linuxmint.com/viewforum.php?f=141

  I suspect my concerns are more generic (i.e., applicable to debian and
  any derived distros, not just LMDE), but I Could Be Wrong.

Feel free to reply directly to me (as well as the list) and to forward,
and TIA, Tom Roche 


-- 
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/877h6eiqev@pobox.com



Changing Users in a script

2011-08-15 Thread Hal Vaughan
I have a system with several different users and would like to use cron to run 
this script as root:

#!/bin/bash

for user in `ls /home/`; do
#   echo "Path: $user"
if [ "${user:0:1}" != "0" ]; then
path="/home/$user/Backup"
if [ -e $path ]; then
echo "Calling backup for user: $user"
sudo -u $user /usr/local/bin/user-backup
fi
fi
done

The idea is that instead of adding a backup script every time I add a user, 
this script will go through the /home directories and skip any that start with 
a 0 (a program I'm using creates some directories there, but starts their names 
with a 0) and automatically call the generic backup script for that user.

The problem is sudo can't be run without a tty, so I can run it myself, but it 
won't run from a script.

I want the backup script to run under each user's name to match the user on the 
backup system.

Are there other ways to do this with an "all-in-one" approach?  Either for a 
script run as root to run scripts with the id of the users or some generic way 
to tell cron to run a script once for each user that meets certain conditions?

I prefer the all-in-one solutions, since when I add a user, I'm adding it to 
their system, to this backup NAS, and to an offsite backup NAS, and even though 
I use notes, it's easy to forget having to do extra things when adding a user.  
So I'd really prefer a solution that handles all of them at once.

Any other way I can do this?



Thanks!



Hal

--
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/6f014e0d-554d-449c-8a28-0e989a86d...@halblog.com



/etc/inittab not executed upon starting X with startx command

2011-08-15 Thread Tech Geek
I have uncommented the following line in the /etc/inittab file on
Debian Squeeze:

T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100

Basically, I am trying to output a login console on Serial Port 1
also. This works if my system starts up normally i.e. via
xdm->fluxbox. However, I want to do a auto login into my fluxbox
(instead of user typing in username and password in xdm) and I still
want the basic login console on Serial Port 1. So I removed xdm
package (apt-get purge xdm) and added the following line to my
/etc/rc.local:

su - user -c startx

Now my system does the autologin into fluxbox but I no longer get my
login console on Serial Port 1. It seems that the /etc/inittab file is
not honored with this method (auto login). Any ideas how can I get my
login console on Serial Port 1 and at the same time auto log into
fluxbox?

Thanks.


-- 
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/calxxvm5rdvkwlr1jb4kppvgl_rmbcigd92xxq1fdz3qkfr3...@mail.gmail.com



Re: Fwd: Billion 7800N

2011-08-15 Thread Heddle Weaver
On 15 August 2011 21:34, Camaleón  wrote:

> On Mon, 15 Aug 2011 06:28:26 +1000, Heddle Weaver wrote:
>
> > On 14 August 2011 14:42, Heddle Weaver  wrote:
> >
> >>
> >> On 13 August 2011 01:44, Camaleón  wrote:
> >>
> >> After configuring the modem through XP laptop, I can now access the net
> >> through my Debian laptop.
> >> The connection is very glitchy - lots of 'time-outs' - but a definite
> >> improvement.
> >> At least I have access.
> >>
> >> I'll just have to iron out the bugs, now, but it's been quite a
> >> different experience.
> >
> >
> > Here would appear to be the problem.
> > I can access the net.
> > Some sites I have absolutely no problem with and others just time out.
> > This is with bookmarks I've had regular and unimpeded access to in the
> > past.
>
> Timeouts for "some" sites may require more debugging. A site can be
> having any problem or your ISP may be having a routing issue with that
> specific server... hard to tell what can be happening.
>

debian.org
Al Jazeera English
Oxford Dictionaries Online
My ISP's home page
Just for a few examples. This is not the connection, because I get other
pages consistently, but these I am unable to gain access to at all over many
attempts.

>
> If using Firefox, you can just disable ipv6 because some sites become
> painfully slow when this is enabled (about:config → filter by "ipv6" →
> and set "network.dns.disableIPv6" to "true"). After that, restart Firefox/
> Iceweasel.
>
> > And I *still *can't access the modem interface in Debian.
> >
> > So, it's looking like a system glitch still.
>
> This is what puzzles me because I definitely see no (good|logical) reason
> for not getting access to the web interface from Debian. Ethernet is one
> of the most standarized technologies out there so I dunno what can be
> happening with that DSL modem.
>
> Have you tried to get access by telnet ("telnet 192.168.1.254"). Some
> routers do also allow to be managed in this way :-?
>

weaver@Bandit:~$ su
Password:
Bandit:/home/weaver# telnet 192.168.1.254
Trying 192.168.1.254...
telnet: Unable to connect to remote host: Connection timed out
Bandit:/home/weaver#


The latest hint is this pop-up when the browser is loading:

Unexpected error updating default notary_list from web: [Exception...
"Component returned failure code: 0x80004005 (NS_ERROR_FAILURE)
[nsIDataSignatureVerifier.verifyData]"  nsresult: "0x80004005
(NS_ERROR_FAILURE)"  location: "JS frame ::
chrome://perspectives/content/common.js ::  :: line 185"  data:
no]

At this stage, I don't think there's anything wrong with the modem.
Especially when it is considered that:

   - This is another new modem, as an exchange for another new one of the
   same type that I got the same behaviour from;
   - These modems are noted as being a good model;


   - I have been able to get an immediate connection to the modem from
   another laptop with M$'s XP.

I think I have messed up my install inadvertently, in a way that the fact
that it is SID doesn't account for.

Thanks for your attempts.
Regards,

Weaver.
-- 

Religion is regarded by the common people as true,
by the wise as false,
and by the rulers as useful.

— Lucius Annæus Seneca.

Terrorism, the new religion.


Re: how/where to ask questions about dpkg/APT and tools?

2011-08-15 Thread Bob Proulx
Tom Roche wrote:
> My dpkg/APT knowledge/skills need to go from near-beginner to at least
> intermediate-level fairly quickly, but I have lots questions. Where
> to go (e.g., what forums, lists, IRCs, other sites) to ask them?

If you are asking about using APT then this list debian-user is
probably the best place.  If you are asking about creating packages
for dpkg/apt then debian-mentors is a better place for packaging
question.

> This worked well, because I kept up-to-date and because ubuntu shielded
> me from massive breakage. However it does require (more or less)
> periodic reinstalls;

Please remember that Ubuntu is not Debian.

In Debian there is a high value placed upon the ability to upgrade
systems.  I had systems that were originally installed using Potato
upgraded through Etch.  I currently still have systems originally
installed with Woody and now running Squeeze.

However the ability to upgrade does depend upon how much finger poking
into the system the local admin has done.  I can show you very quickly
how to take a stock system and immediately break it so severely that
it should not be upgraded.  But if you play by the rules then upgrades
forever are perfectly reasonable.

When someone says they needed to re-install a Debian system I
immediately think one of two things.  1) They broke their own system
by doing something nasty.  Or 2) They didn't realize that they should
have upgraded.

Having said all of that I will say that Squeeze is the lowest quality
upgrade of any of the Debian releases I have worked through so far.  I
am hoping that Wheezy will reverse that trend.

> Yesterday I installed LMDE

I know very little about Mint.

> However I currently
> - have 69 broken packages (per `aptitude`)

Why are the packages broken?  No, don't tell me!  Tell it to a Mint
user mailing list.  This mailing list is for discussion of Debian.
Let's talk about Debian things here.

> I suspect getting out of this hole quickly will require more knowledge
> of APT and its tools than I currently have, so I'm trying to learn the
> interactive `aptitude` via its tutorial
> 
> http://algebraicthunk.net/~dburrows/projects/aptitude/doc/en/index.html

I have only very sparingly played with the aptitude interactive
interface.  Not liking it very much I have stuck with apt-get.  If you
like the interactive interface then that is great.  But don't think
that is the only way to go.

> * Are there places to ask questions that specialize in APT and its tools?
>   Esp that are kind to the less advanced practitioner ?-)
> * Is this list a good place for APT questions? It's pretty high-volume,
>   and debian is a much broader topic than APT, but if it's the best
>   thing available, I can cope.

Right here in debian-user.  Where I am sure you will get many
recommendations some of which complement each other and some of which
will conflict with each other.  That is the nature of people when you
get a number of them together talking about something.  :-)

> * Since I'm an LMDE user, should I just stay on its forum?

Debian has officially recognized Mint.

  http://www.debian.org/News/weekly/2010/12/index.en.html#mint

But I don't think that is enough to say that Mint *is* Debian.  And if
it isn't then if you are going to use Mint then I think you should ask
Mint specific questions within Mint venues.  After all this is a
Debian mailing list.  That just seems fair play to me.  You wouldn't
go into a GM shop and ask them about your Ford car would you?  Or if
you did you would expect that if the details get too specific they
would say, take it to a Ford shop for Ford expertise?

>   I suspect my concerns are more generic (i.e., applicable to debian and
>   any derived distros, not just LMDE), but I Could Be Wrong.

If you keep it generic then that should be fine.  But as soon as you
go "but in Mint it has been patched to behave like so" then I would
call foul on it. :-)

Bob


signature.asc
Description: Digital signature


Re: Changing Users in a script

2011-08-15 Thread Bob Proulx
Hal Vaughan wrote:
> I have a system with several different users and would like to use
> cron to run this script as root:
> 
> #!/bin/bash
> 
> for user in `ls /home/`; do
> # echo "Path: $user"
>   if [ "${user:0:1}" != "0" ]; then
>   path="/home/$user/Backup"
>   if [ -e $path ]; then
>   echo "Calling backup for user: $user"
>   sudo -u $user /usr/local/bin/user-backup
>   fi
>   fi
> done

Personally if I were writing this then if the script is running as
root then instead of using 'sudo' here I would use 'su' instead.

  su -c /usr/local/bin/user-backup $user

Mostly because su is more traditional and "more core" than sudo and
just seems like the better fit for the job.  But it is a matter of
taste here.

> The idea is that instead of adding a backup script every time I add
> a user, this script will go through the /home directories and skip
> any that start with a 0 (a program I'm using creates some
> directories there, but starts their names with a 0) and
> automatically call the generic backup script for that user.

Seems reasonable so far.  Also you should skip directories called
"lost+found" in the case that /home happens to be a mount point on a
filesystem such as ext[23] that uses lost+found.

> The problem is sudo can't be run without a tty, so I can run it
> myself, but it won't run from a script.

Using 'su' would solve that problem.

> Any other way I can do this?

There are distinct advantages to a backup push system.  Not proposing
that you change away from it.  But I tend to pull backups from /home
to the backup server.  This means that whatever is in /home comes over
whether it is associated with a user's home directory or not.  All I
manage is machines.  Not machines and users.

Bob


signature.asc
Description: Digital signature


Re: /etc/inittab not executed upon starting X with startx command

2011-08-15 Thread Bob Proulx
Tech Geek wrote:
> I have uncommented the following line in the /etc/inittab file on
> Debian Squeeze:
> 
> T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100

Seems reasonable.  I do that on server systems too.

> This works if my system starts up normally i.e. via xdm->fluxbox.

Sure.

> However, I want to do a auto login into my fluxbox (instead of user
> typing in username and password in xdm) and I still want the basic
> login console on Serial Port 1. So I removed xdm package (apt-get
> purge xdm) and added the following line to my /etc/rc.local:
> 
> su - user -c startx
> 
> Now my system does the autologin into fluxbox but I no longer get my
> login console on Serial Port 1. It seems that the /etc/inittab file is
> not honored with this method (auto login).

That seems very strange to me.  I have not tested that exact
combination but I would certainly not have expected it.  And I am
suspicious that something else is going on because it seems that there
should not be a relationship between those two systems.  I am so
suspicious that I am compelled to ask if you are really sure that is
the correlation?  Please double check.

Are there any messaged logged to /var/log/syslog concerning failure of
getty to start on /dev/ttyS0?

If you run 'ps' do you see the getting running?

  $ ps -ef |grep getty

> Any ideas how can I get my login console on Serial Port 1 and at the
> same time auto log into fluxbox?

I have a system similarly configured using gdm (gdm 2.20.11, not gdm3)
and have it configured with the following:

File /etc/gdm/gdm.conf has this:
[daemon]
AutomaticLoginEnable=true
AutomaticLogin=guest

Both of these, the getting on the serial port and the gdm automated
login, work fine together for me.  Since this is using gdm
configuration to automatically log in a user it is different from your
using su and startx from the rc.local though.

Bob


signature.asc
Description: Digital signature


Re: Changing Users in a script

2011-08-15 Thread Bob Proulx
Bob Proulx wrote:
> Hal Vaughan wrote:
> > The problem is sudo can't be run without a tty, so I can run it
> > myself, but it won't run from a script.
> 
> Using 'su' would solve that problem.

BTW...  I assume that is because you have tty-tickets turned on for
sudo?  In which case you could avoid it with sudo too by turning off
tty-tickets for this use case.

Bob


signature.asc
Description: Digital signature


Re: Transplanting old System to New Drive

2011-08-15 Thread Martin McCormick
Ivan Shmakov writes:
> resize2fs(8) after dd(1) on the destination partition ? it'll
> make the additional space available to the filesystem.

That may be the easiest approach to not get wrong if
that is the case. The old drive is the master boot drive on
/dev/hda. The new drive is only /dev/hdb while it is being
prepared to be the new master boot drive so all references to
/dev/hda should still be valid when it is moved over to the master slot.
The only thing that should change is the luid.

Again, many thanks.


-- 
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/201108151821.p7fillpv098...@x.it.okstate.edu



Re: Changing Users in a script

2011-08-15 Thread Tom H
On Mon, Aug 15, 2011 at 2:15 PM, Bob Proulx  wrote:
> Bob Proulx wrote:
>> Hal Vaughan wrote:
>> > The problem is sudo can't be run without a tty, so I can run it
>> > myself, but it won't run from a script.
>>
>> Using 'su' would solve that problem.
>
> BTW...  I assume that is because you have tty-tickets turned on for
> sudo?  In which case you could avoid it with sudo too by turning off
> tty-tickets for this use case.

I think that you're confusing "tty-tickets" with "requiretty".


--
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/CAOdo=sxsgb29bx1rv-5qvhh2snm4m12jo8g3e0upzngeazf...@mail.gmail.com



Re: Changing Users in a script

2011-08-15 Thread Bob Proulx
Tom H wrote:
> Bob Proulx wrote:
> > BTW...  I assume that is because you have tty-tickets turned on for
> > sudo?  In which case you could avoid it with sudo too by turning off
> > tty-tickets for this use case.
> 
> I think that you're confusing "tty-tickets" with "requiretty".

Ah...  Likely.  I am not using either one.

Thanks!
Bob


signature.asc
Description: Digital signature


Re: /etc/inittab not executed upon starting X with startx command

2011-08-15 Thread Tech Geek
> suspicious that I am compelled to ask if you are really sure that is
> the correlation?  Please double check.
Yes, I double checked that. As soon as I revert back to installing
xdm, the login console appears on Serial Port 1.

> Are there any messaged logged to /var/log/syslog concerning failure of
> getty to start on /dev/ttyS0?
No there are none.

> If you run 'ps' do you see the getting running?
>
>  $ ps -ef |grep getty
The above command returns nothing i.e it looks like getty is not started at all.

> Both of these, the getting on the serial port and the gdm automated
> login, work fine together for me.  Since this is using gdm
> configuration to automatically log in a user it is different from your
> using su and startx from the rc.local though.
May be that's the reason. But just like you even I am very surprised
to see that /etc/inittab is not executed/sourced when using su and
startx method via rc.local.


--
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/calxxvm7lxrbh-0anjq1r9gbxnhzrbmoehl7vj4oikrxcm0-...@mail.gmail.com



Re: /etc/inittab not executed upon starting X with startx command

2011-08-15 Thread Ivan Shmakov
> Tech Geek  writes:

[…]

 > However, I want to do a auto login into my fluxbox (instead of user
 > typing in username and password in xdm) and I still want the basic
 > login console on Serial Port 1. So I removed xdm package (apt-get
 > purge xdm) and added the following line to my /etc/rc.local:

 > su - user -c startx

 > Now my system does the autologin into fluxbox but I no longer get my
 > login console on Serial Port 1.

I guess that the inittab(5) entry in question is only started
after rc.local finishes.  Therefore, starting startx(1) in the
background may help.

[…]

-- 
FSF associate member #7257


-- 
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/86r54m4ivc@gray.siamics.net



Re: /etc/inittab not executed upon starting X with startx command

2011-08-15 Thread Bob Proulx
Ivan Shmakov wrote:
> > Tech Geek writes:
>  > However, I want to do a auto login into my fluxbox (instead of user
>  > typing in username and password in xdm) and I still want the basic
>  > login console on Serial Port 1. So I removed xdm package (apt-get
>  > purge xdm) and added the following line to my /etc/rc.local:
> 
>  > su - user -c startx
> 
>  > Now my system does the autologin into fluxbox but I no longer get my
>  > login console on Serial Port 1.
> 
>   I guess that the inittab(5) entry in question is only started
>   after rc.local finishes.  Therefore, starting startx(1) in the
>   background may help.

Good catch.  Almost certainly that is the problem.  The rc.local is
still running.  Here is an additional clue:

> >  $ ps -ef |grep getty
> The above command returns nothing I.e it looks like getty is not
> started at all.

Not even other console logins?  Normally there would be all of the
virtual consoles there.

  $ ps -efH | less

I expect that to show that rc.local is still running.  And so it was
never able to move on and complete the boot up sequence.

Bob


signature.asc
Description: Digital signature


Re: /etc/inittab not executed upon starting X with startx command

2011-08-15 Thread Tech Geek
Ivan,
>        I guess that the inittab(5) entry in question is only started
>        after rc.local finishes.  Therefore, starting startx(1) in the
>        background may help.
That was it. Adding "&" at the end of the command in rc.local did the
trick! Thanks!


--
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/CALXXvm7tFvV4K04Gpv4DVdKpu=haoj7fgwfsp8y8vg15+dk...@mail.gmail.com



Re: Changing Users in a script

2011-08-15 Thread Tom H
On Mon, Aug 15, 2011 at 2:39 PM, Bob Proulx  wrote:
> Tom H wrote:
>> Bob Proulx wrote:
>>>
>>> BTW...  I assume that is because you have tty-tickets turned on for
>>> sudo?  In which case you could avoid it with sudo too by turning off
>>> tty-tickets for this use case.
>>
>> I think that you're confusing "tty-tickets" with "requiretty".
>
> Ah...  Likely.  I am not using either one.

Both are set by default.

tty-tickets --> require per tty password entry

!tty-tickets --> as long as the sudo timestamp hasn't timed out, you
can use sudo on a 2nd/3rd/... tty without entering a password


--
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/CAOdo=sw2mxxgqmo0gymdxb65rlvxdo1cv+4ug-uu2md+nbm...@mail.gmail.com



Re: Running a script on monitor connect/disconnect

2011-08-15 Thread Ralf Jung
Hi,

> (...)
> 
> Just a quick note here. Not sure if you have tried with "krandrtray" or
> better yet, as you are using the ATI closed drivers, you may test their
> catalyst control center utility to handle video screens (resolution/
> position, etc...).
> 
> I bet with the open radeon drivers this would be very easy to achieve...
I used krandr as well, but it has a bunch of bugs in 4.6 that got fixed for 
4.7, so I went one level down and used xrandr directly. Even if krandr worked, 
I would not know how to set up a default configuration that's automatically 
applied on boot, or should it do that automatically?
I used to get a message from KDE saying a new screen was attached and whether 
I wanted to open the KCM module, but since the KCM module for display 
management has even more bugs than krandr, I disabled it and now I do not know 
how to get it back. Maybe doing so and upgrading to KDE 4.7 will indeed solve 
my issues (if the Plasma bugs I ran into got fixed as well).

On my old installation I used the AMD catalyst, it's horrible - changing the 
multi-monitor setup requires a reboot, and it meddles with the Xorg.conf in 
bad ways. Not to mention a strange screen overlap issue (one column of pixels 
from the left screen appearing on the right one). Really, what I got running 
now is already much better than anything I was able to do with that tool :D

Kind regards,
Ralf


-- 
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/201108152111.28913.ralfjun...@gmx.de



Re: setting up a static IP address

2011-08-15 Thread Camaleón
On Mon, 15 Aug 2011 16:39:54 +, Steve Kleene wrote:

> On Mon, 15 Aug 2011 16:14:56 + (UTC), Camaleón wrote:
> 
>> NM calls -by default- "dhclient", so... is NM running?
> 
> Yes, it is running on each of the two machines.

"Arghh!!!" I mean... "ahh", that explains your pain :-P
 
>> If so, stop NM ("/etc/init.d/network-manager stop") or kill "dhclient"
>> process and then restart the network service (also run ifdown/ifup,
>> just to be sure). After that run "ifconfig" to check the current IP. If
>> that solves your problem, just disable NM and your happiness will
>> inmediately start :-)
> 
> Doing just this:
>   cd /etc/init.d; network-manager stop; networking restart
> 
> gave me the desired static IP.  Then I ran this:
> 
> cd /etc/rc3.d; mv S03network-manager K97network-manager
> 
> rebooted and again got the desired static IP.

Just for the record. Last time I had to disable NM (disable, not 
removing) I finally used:

update-rc.d network-manager disable

Which does -more or less- what you did.

> So assuming I won't miss network-manager, all is well. I still don't
> understand why the other box, which is still running network-manager and
> a static IP, doesn't have this problem.  They're both running updated
> Wheezy.

Mmm... now that you have found the culprit you can make additional tests 
with NM. For instance, you can start NM service but instructing it to use 
a static IP instead using DHCP (this can be done from the system tray 
applet). This way no dhclient service should be called nor run in 
background.
 
> Anyway, now I can get back to my real job.  Thanks again.

Glad to know the mistery has been solved :-)

Greetings,

-- 
Camaleón


-- 
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/pan.2011.08.15.19.11...@gmail.com



sudoers tty defaults (Re: Changing Users in a script)

2011-08-15 Thread Bob Proulx
Tom H wrote:
> Both are set by default.

Just tty_tickets is set by default.  requiretty is off by default.

  $ man 5 sudoers

   tty_tickets If set, users must authenticate on a per-tty basis.
   With this flag enabled, sudo will use a file named for
   the tty the user is logged in on in the user's time
   stamp directory.  If disabled, the time stamp of the
   directory is used instead.  This flag is on by default.

   requiretty  If set, sudo will only run when the user is logged in
   to a real tty.  When this flag is set, sudo can only be
   run from a login session and not via other means such
   as cron(8) or cgi-bin scripts.  This flag is off by
   default.

Best would be to run 'sudo -l' and see what flags are actually set at
the time.  And remember that /etc/sudoers.d/* is a directory of
additional snippets that are also included into the configuration.

  $ sudo -l

Bob


signature.asc
Description: Digital signature


Looking for a package management GUI in KDE

2011-08-15 Thread dave selby
Hi,

I am a untity / gnome3 refugee, have installed KDE 4.4.5 on Debian 6
but am totally stumped looking for a package management GUI, something
equivalent to synaptic for QT ?

I am struggling with aptitude and would like something friendlier.

Many thanks in advance

Cheers

Dave



-- 

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


-- 
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/ca+-bttzst4pkfkupux2htuutojxyfdzbau0868+ftufge1p...@mail.gmail.com



Re: Looking for a package management GUI in KDE

2011-08-15 Thread Ralf Jung
Hi,

> I am a untity / gnome3 refugee, have installed KDE 4.4.5 on Debian 6
> but am totally stumped looking for a package management GUI, something
> equivalent to synaptic for QT ?
> 
> I am struggling with aptitude and would like something friendlier.
Why not use Synaptic? Just because you use KDE as desktop, you don't have to 
abandon all GTK-base applications. Synaptic works fine here under KDE, and I 
don't know of anything similar powerful.
There is also KPackageKit, a "native" KDE app that adds package management to 
systemsettings, but I don't like it that much.

Kind regards,
Ralf


-- 
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/201108152153.13712.ralfjun...@gmx.de



Re: Fwd: Billion 7800N

2011-08-15 Thread Camaleón
On Tue, 16 Aug 2011 03:56:46 +1000, Heddle Weaver wrote:

> On 15 August 2011 21:34, Camaleón  wrote:

>> Timeouts for "some" sites may require more debugging. A site can be
>> having any problem or your ISP may be having a routing issue with that
>> specific server... hard to tell what can be happening.
>>
>>
> debian.org
> Al Jazeera English
> Oxford Dictionaries Online
> My ISP's home page
> Just for a few examples. This is not the connection, because I get other
> pages consistently, but these I am unable to gain access to at all over
> many attempts.

For that failing sites you can run the typical network tests, like a 
traceroute, a ping, a dns resolution... also, try with different browsers 
(Opera, Firefox and Chrome) and you can even use an online proxy.

>> > And I *still *can't access the modem interface in Debian.
>> >
>> > So, it's looking like a system glitch still.
>>
>> This is what puzzles me because I definitely see no (good|logical)
>> reason for not getting access to the web interface from Debian.
>> Ethernet is one of the most standarized technologies out there so I
>> dunno what can be happening with that DSL modem.
>>
>> Have you tried to get access by telnet ("telnet 192.168.1.254"). Some
>> routers do also allow to be managed in this way :-?
>>
>>
> weaver@Bandit:~$ su
> Password:
> Bandit:/home/weaver# telnet 192.168.1.254 Trying 192.168.1.254...
> telnet: Unable to connect to remote host: Connection timed out
> Bandit:/home/weaver#

Okay, so it seems there is no telnet service available in route :-)

How about a simple "wget 192.168.1.254"?
 
> The latest hint is this pop-up when the browser is loading:
> 
> Unexpected error updating default notary_list from web: [Exception...
> "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE)
> [nsIDataSignatureVerifier.verifyData]"  nsresult: "0x80004005
> (NS_ERROR_FAILURE)"  location: "JS frame ::
> chrome://perspectives/content/common.js ::  :: line 185" 
> data: no]

Looks like a javascript error/warning but not enough to tell if just this 
can prevent the whole page from loading :-?
 
> At this stage, I don't think there's anything wrong with the modem.
> Especially when it is considered that:
> 
>- This is another new modem, as an exchange for another new one of
>the same type that I got the same behaviour from; 
>- These modems are noted as being a good model;
> 
> 
>- I have been able to get an immediate connection to the modem from
>another laptop with M$'s XP.
> 
> I think I have messed up my install inadvertently, in a way that the
> fact that it is SID doesn't account for.

Really, I can't see how your network configuration can be a problem here. 
If you have setup static values for your NIC and you can ping/reach your 
DSL router you should get the same you get when using a Windows client.

There is no more magic behind an ethernet device and that's precisely its 
best bet: it works regardless the OS and does not require for special 
drivers :-)

Greetings,

-- 
Camaleón


-- 
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/pan.2011.08.15.19.51...@gmail.com



Re: sudoers tty defaults (Re: Changing Users in a script)

2011-08-15 Thread Walter Hurry
On Mon, 15 Aug 2011 13:12:04 -0600, Bob Proulx wrote:

> Tom H wrote:
>> Both are set by default.
> 
> Just tty_tickets is set by default.  requiretty is off by default.
> 
>   $ man 5 sudoers
> 
>tty_tickets If set, users must authenticate on a per-tty
>basis.
>With this flag enabled, sudo will use a file
>named for the tty the user is logged in on in the
>user's time stamp directory.  If disabled, the
>time stamp of the directory is used instead. 
>This flag is on by default.
> 
>requiretty  If set, sudo will only run when the user is
>logged in
>to a real tty.  When this flag is set, sudo can
>only be run from a login session and not via
>other means such as cron(8) or cgi-bin scripts. 
>This flag is off by default.
> 
> Best would be to run 'sudo -l' and see what flags are actually set at
> the time.  And remember that /etc/sudoers.d/* is a directory of
> additional snippets that are also included into the configuration.

For what it is worth, I'm not sure that that man page is up to date. 
Squeeze here (up to date), and I have done nothing directly with the 
supplied /etc/sudoers; only used visudo to add myself.

It has neither tty-tickets nor requiretty. I note by the way, that this 
differs from RHEL and derivatives, which include requiretty by default.


-- 
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/j2btcu$mt$1...@dough.gmane.org



Remote X renders transparency as black

2011-08-15 Thread Darac Marjal
Hi all,

I am experiencing an odd problem displaying remote (i.e. SSH forwarded)
X and wonder if I can pick your collective brains.

The situation is as follows: I am logged into my laptop, rocky. The
laptop is running Wheezy and Xorg detects the chipset as:
   [   106.371] (II) intel(0): Integrated Graphics Chipset: Intel(R) Arrandale
   [   106.371] (--) intel(0): Chipset: "Arrandale"
I run, for example "ssh -X fowler claws-mail". Fowler, my server, is
running Sid and (though it should be irrelevant), its graphics is:
   [825228.570] (II) NVIDIA(0): NVIDIA GPU GeForce 8600 GT (G84) at PCI:1:0:0 
(GPU-0)
What I then see is all the toolbar icons (and the folder icons) have
black backgrounds rather than the expected toolbar-coloured background.

I know this isn't a claws problem (other programs such as xfce4-about
show the same effect) and it's not an issue locally (running programs
locally on either the laptop or the server shows the correct
transparency).

Does anyone know what might be the problem and how I can fix it?

Thanks,



-- 
Paul Saunders


signature.asc
Description: Digital signature


Re: sudoers tty defaults (Re: Changing Users in a script)

2011-08-15 Thread Bob Proulx
Walter Hurry wrote:
> Bob Proulx wrote:
> > Best would be to run 'sudo -l' and see what flags are actually set at
> > the time.  And remember that /etc/sudoers.d/* is a directory of
> > additional snippets that are also included into the configuration.
> 
> For what it is worth, I'm not sure that that man page is up to date. 
> Squeeze here (up to date), and I have done nothing directly with the 
> supplied /etc/sudoers; only used visudo to add myself.
>
> It has neither tty-tickets nor requiretty.

I agree.  The man apge is out of sync.  My bad for quoting it without
checking it.  After checking various releases I concur that neither of
those are set by default on Debian.

> I note by the way, that this differs from RHEL and derivatives,
> which include requiretty by default.

Yep.

Bob


signature.asc
Description: Digital signature


Re: Fwd: Billion 7800N

2011-08-15 Thread Heddle Weaver
On 16 August 2011 05:51, Camaleón  wrote:

> On Tue, 16 Aug 2011 03:56:46 +1000, Heddle Weaver wrote:
>
> > On 15 August 2011 21:34, Camaleón  wrote:
>

Okay, so it seems there is no telnet service available in route :-)
>
> How about a simple "wget 192.168.1.254"?
>

weaver@Bandit:~$ su
Password:
Bandit:/home/weaver# wget 192.168.1.254
--2011-08-16 06:06:49--  http://192.168.1.254/
Connecting to 192.168.1.254:80... failed: Connection timed out.
Retrying.

--2011-08-16 06:07:36--  (try: 2)  http://192.168.1.254/
Connecting to 192.168.1.254:80... failed: Connection timed out.
Retrying.

--2011-08-16 06:08:23--  (try: 3)  http://192.168.1.254/
Connecting to 192.168.1.254:80... failed: Connection timed out.
Retrying.


>
> > The latest hint is this pop-up when the browser is loading:
> >
> > Unexpected error updating default notary_list from web: [Exception...
> > "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE)
> > [nsIDataSignatureVerifier.verifyData]"  nsresult: "0x80004005
> > (NS_ERROR_FAILURE)"  location: "JS frame ::
> > chrome://perspectives/content/common.js ::  :: line 185"
> > data: no]
>
> Looks like a javascript error/warning but not enough to tell if just this
> can prevent the whole page from loading :-?
>
> > At this stage, I don't think there's anything wrong with the modem.
> > Especially when it is considered that:
> >
> >- This is another new modem, as an exchange for another new one of
> >the same type that I got the same behaviour from;
> >- These modems are noted as being a good model;
> >
> >
> >- I have been able to get an immediate connection to the modem from
> >another laptop with M$'s XP.
> >
> > I think I have messed up my install inadvertently, in a way that the
> > fact that it is SID doesn't account for.
>
> Really, I can't see how your network configuration can be a problem here.
> If you have setup static values for your NIC and you can ping/reach your
> DSL router you should get the same you get when using a Windows client.
>
> There is no more magic behind an ethernet device and that's precisely its
> best bet: it works regardless the OS and does not require for special
> drivers :-)
>

I'm thinking it must be something under the network config.
Something in the O.S. itself that has come adrift.
I'll try a reinstall.
My /home partition is on an external drive, so the data is safe and a
reinstall doesn't represent as much of a problem as it would otherwise.
Regards,

Weaver.
-- 

Religion is regarded by the common people as true,
by the wise as false,
and by the rulers as useful.

— Lucius Annæus Seneca.

Terrorism, the new religion.


Re: Boost sound volume?

2011-08-15 Thread Arno Schuring
Robert Blair Mason Jr. (r...@verizon.net on 2011-08-10 10:07 -0400):
> On Wed, 10 Aug 2011 06:01:46 -0400
>
> Is it possible for me to just kill the PulseAudio server when I'm
> starting certain applications, or force them to use ALSA?
Better late than never: take a look at pasuspender


Regards,
Arno


-- 
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/20110815224512.5b320...@neminis.loos.site



Re: sudoers tty defaults (Re: Changing Users in a script)

2011-08-15 Thread Tom H
On Mon, Aug 15, 2011 at 3:51 PM, Walter Hurry  wrote:
> On Mon, 15 Aug 2011 13:12:04 -0600, Bob Proulx wrote:
>> Tom H wrote:
>>> Both are set by default.
>>
>> Just tty_tickets is set by default.  requiretty is off by default.
>>
>>   $ man 5 sudoers
>>
>>        tty_tickets     If set, users must authenticate on a per-tty
>>        basis.
>>                        With this flag enabled, sudo will use a file
>>                        named for the tty the user is logged in on in the
>>                        user's time stamp directory.  If disabled, the
>>                        time stamp of the directory is used instead.
>>                        This flag is on by default.
>>
>>        requiretty      If set, sudo will only run when the user is
>>        logged in
>>                        to a real tty.  When this flag is set, sudo can
>>                        only be run from a login session and not via
>>                        other means such as cron(8) or cgi-bin scripts.
>>                        This flag is off by default.
>>
>> Best would be to run 'sudo -l' and see what flags are actually set at
>> the time.  And remember that /etc/sudoers.d/* is a directory of
>> additional snippets that are also included into the configuration.
>
> For what it is worth, I'm not sure that that man page is up to date.
> Squeeze here (up to date), and I have done nothing directly with the
> supplied /etc/sudoers; only used visudo to add myself.
>
> It has neither tty-tickets nor requiretty. I note by the way, that this
> differs from RHEL and derivatives, which include requiretty by default.

"sudo -L" lists the full list of "Defaults". I'd be very surprised if
even one of these isn't set.

"sudo -l" lists the commands that the invoking user can run as well
whatever's explicitly set on the "Defaults" line.


--
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/CAOdo=Sx_piSLfC-ao92=njdsifu-ud+zjxds1wqxfdwibea...@mail.gmail.com



Re: Transplanting old System to New Drive

2011-08-15 Thread Arno Schuring
Hi Martin,

As luck would have it, I did just that this weekend. Except that my
system used lvm for all partitions, which massively simplified the
procedure for me.

Martin McCormick (mar...@x.it.okstate.edu on 2011-08-14 21:32 -0500):
>   I have a 10-gigabyte hard drive that sounds like a 747
> just before takeoff so the time has come to replace it. I
> replaced it with a 16-gigabyte SATA flash drive and IDE adaptor
> as the system it runs on is a little too old to handle a large
> drive.
Flash drives have different requirements on alignment and block
size than spinning disks, because of their limited erase cycles. You're
probably better off creating a new partition table. Then again, the
jury's still out on whether drive longevity is a real issue.

> 
>   If I use dd to copy the 10-gig drive over to the new
> drive as in:
> 
> dd if=/dev/hda of=/dev/hdb bs=20M
Sure, but then you'll run into issues with partitioning. You can only
resize the last partition on the disk. How many partitions were on the
original disk?

> it works when I remove the old screamer drive, change the jumper
> on the new drive to Master and boot but this is not very
> efficient as it wastes almost 6 gigs of drive.
> 
>   What I tried to do was to format /dev/hdb with hdb1
> being around 15GB and then /dev/hdb2 being extended and holding
> hdb5 marked as swap just like /dev/hda. /dev/hdb1 is also set to
> bootable and shows up as such  when using fdisk /dev/hdb and
> then the p command.
# dd if=/dev/hda of=/dev/hdb bs=512 count=1
or
# sfdisk -d /dev/hda | sfdisk /dev/hdb

would only copy the partition table to the new disk (assuming MBR
partitioning of course). Then you can use any other partitioning tool
to resize the partitions without caring for the data just yet.

Second: if you're using less than 4 partitions, there is no need for an
extended partition. Just using hdb1 and hdb2 will be fine.

>   The rsync command tries to copy everything on the old
> disk except /proc and it also fails to copy those files which
> probably never stay around such as timer values and other
> volital information so  /dev and everything else get copied.

For 1:1 pristine copies, I recommend using just tar:
# tar cv --one-file-system . | tar xC /mnt

will recreate the current directory in /mnt. Assuming you have already
mounted your new partition in /mnt and your PWD is /, that will
transfer your complete root filesystem to the new disk, excluding any
other mounts (proc, sys, dev, tmp).

> 
>   When I boot the efficiently-built system, it does start
> to boot and then hangs.
At a guess: it hangs at either "LILO" or "GRUB loading..." ?

You probably need to reinstall your bootloader after changing
partitions. But you did not give the error message, nor which
bootloader you were using (lilo, grub-legacy, grub-pc?). Like another
respondent has said, if you did any formatting (mkfs.*) then you might
need to change /etc/fstab accordingly.

>   Is there a way to copy the working file system to a
> larger drive such that the new drive will also boot?
There is. But what you need to do differently depends on where it
failed and what the error message was.

>   I even tried to use the dd method and then tune2fs but I
> either did something wrong or this can't work because I still
> had only a 9.6G file system when all was said and done.
tune2fs will not resize your partitions, you need a partitioning tool
for that (followed by resize2fs). And if you did the dd-per-partition,
then only resize2fs should suffice.


Regards,
Arno


-- 
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/20110816001048.733c3...@neminis.loos.site



Re: Installing firmware not available in the kernel

2011-08-15 Thread yudi v
> There has to be some instructions in the docs... let me check it.
>
> http://www.linuxtv.org/wiki/index.php/DVB_USB
> ***
>
I should have looked harder, thanks for directing my attention to the
documentation.


> > should I just copy dvb-usb-af9015.fw to
> > /lib/firmware
>
> Yep, so it seems and afterwards, re-connect the card.
>
> This worked without any fuss.

> I'm still very reluctant to update/install a new kernel :-P\
>

I agree, I am relatively new to linux world and there is a steep learning
curve. I would rather not install software from backports.
Thanks Camaleon.
-- 
Kind regards,
Yudi


RAID 1 problem after removing disk

2011-08-15 Thread MRH

Hi,

I have an odd problem with my RAID 1 (/dev/md2) setup on Debian (sid). 
It used to be a 2 HDD configuration:

/dev/sdc1, /dev/sdd1
Recently sdc1 started warning me with SMART errors, so I decided to 
replace it with a new drive (/dev/sde1). Perhaps foolishly, I used 
gnome-disk-utility (palimpsest) to do that. I selected the RAID array, 
added the new drive and it synchronised. While synchronising, the sdc 
drive failed. After finished syncing, the RAID status displayed that 2 
drives are fully synchronised (sdd1, sde1), one failed (sdc1) and the 
array is degraded. I removed the failed disk from the array.


Next day after I started my PC i was surprised - the RAID did not start, 
and was still marked as degraded. I did few checks and it seems that 
mdadm 'thinks' there should be 3 drives... I can run mdadm --assemble 
and it starts the array (but as degraded). How can I get rid of the 
removed drive? I tried

mdadm /dev/md2 --remove failed
mdadm /dev/md2 --remove detached
they do nothing

mdadm --zero-superblock /dev/sdc1
says it couldn't open /dev/sdc1 for write (well, it could not as the 
disk has died)


===

Result from
mdadm --detail /dev/md2:

   Version : 0.90
  Creation Time : Wed Jun 17 21:11:25 2009
 Raid Level : raid1
 Array Size : 966799616 (922.01 GiB 990.00 GB)
  Used Dev Size : 966799616 (922.01 GiB 990.00 GB)
   Raid Devices : 3
  Total Devices : 2
Preferred Minor : 2
Persistence : Superblock is persistent

Update Time : Sun Aug 14 22:23:03 2011
  State : clean, degraded
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

   UUID : 40b55130:8f1de1e6:9d4deba6:47ca997f
 Events : 0.50097

Number   Major   Minor   RaidDevice State
   0   000  removed
   1   8   491  active sync   /dev/sdd1
   2   8   652  active sync   /dev/sde1

===

cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] 
[raid4] [multipath] [faulty]

md2 : active (auto-read-only) raid1 sdd1[1] sde1[2]
  966799616 blocks [3/2] [_UU]

md1 : active raid1 sda2[0] sdb2[1]
  966799616 blocks [2/2] [UU]

md0 : active raid1 sda1[0] sdb1[1]
  497856 blocks [2/2] [UU]

unused devices: 

===

from /etc/mdadm/mdadm.conf:

# definitions of existing MD arrays
ARRAY /dev/md0 level=raid1 num-devices=2 
UUID=54f1d14e:91ed3696:c3213124:8831be97
ARRAY /dev/md1 level=raid1 num-devices=2 
UUID=5d97a1e5:26d9d2ed:2a031ed3:45563b24
ARRAY /dev/md2 level=raid1 num-devices=2 
UUID=40b55130:8f1de1e6:9d4deba6:47ca997f



How can I get rid of the removed drive from RAID and get it fixed? I'd 
be grateful for suggestions.


Kind regards,
Michal
--
Michal R. Hoffmann


--
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/4e499df3.1090...@o2.pl



Re: Transplanting old System to New Drive

2011-08-15 Thread Rob Owens
On Mon, Aug 15, 2011 at 06:12:24PM +0700, Ivan Shmakov wrote:
> > Martin McCormick  writes:
> > Ivan Shmakov writes:
> 
>  >> It's possible to dd(1) just the filesystem (partition) instead of
>  >> the whole disk.
> 
>  >> Moreover, the filesystem can be downsized prior to that with
>  >> resize2fs(8), thus the destination partition may be smaller than the
>  >> source one.
> 
>  > What if the destination is larger which is the case, here?
> 
>   If the destination partition is larger than the source one, use
>   resize2fs(8) after dd(1) on the destination partition — it'll
>   make the additional space available to the filesystem.
> 
I think you need to use fdisk or something similar to enlarge the
partition first.  Then resize the filesystem.

-Rob


-- 
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/20110815223818.gb26...@aurora.owens.net



Re: Transplanting old System to New Drive

2011-08-15 Thread Rob Owens
On Sun, Aug 14, 2011 at 09:32:12PM -0500, Martin McCormick wrote:
>   I have a 10-gigabyte hard drive that sounds like a 747
> just before takeoff so the time has come to replace it. I
> replaced it with a 16-gigabyte SATA flash drive and IDE adaptor
> as the system it runs on is a little too old to handle a large
> drive.
> 
>   If I use dd to copy the 10-gig drive over to the new
> drive as in:
> 
> dd if=/dev/hda of=/dev/hdb bs=20M
> 
> it works when I remove the old screamer drive, change the jumper
> on the new drive to Master and boot but this is not very
> efficient as it wastes almost 6 gigs of drive.
> 
>   What I tried to do was to format /dev/hdb with hdb1
> being around 15GB and then /dev/hdb2 being extended and holding
> hdb5 marked as swap just like /dev/hda. /dev/hdb1 is also set to
> bootable and shows up as such  when using fdisk /dev/hdb and
> then the p command.
> 
>   The rsync command tries to copy everything on the old
> disk except /proc and it also fails to copy those files which
> probably never stay around such as timer values and other
> volital information so  /dev and everything else get copied.
> 
Boot from a live CD, mount your new and old drive, and then rsync them.
This will avoid all the files that a running Linux system creates when
it boots, and it will simplify (or eliminate) your rsync --exclude list.

-Rob


-- 
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/20110815223959.gc26...@aurora.owens.net



Re: how to set up the right click options when open a webpage in iceweasle

2011-08-15 Thread Rob Owens
On Mon, Aug 15, 2011 at 04:20:57PM +0800, lina wrote:
> Hi,
> 
> seems the iceweasle has updated today (wheezy).
> 
> How can I set up the right click,
> 
> open links in new tab
> open links in new window
> 
> back to the
> 
> open links in new window
> open links in new tab
> 
Just curious:  are you aware that a center mouse click (the wheel is
also a button) will open a link in a new tab?  Not sure if that can be
changed to open in a new window...

-Rob


-- 
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/20110815224301.gd26...@aurora.owens.net



Re: how/where to ask questions about dpkg/APT and tools?

2011-08-15 Thread Arno Schuring
Tom Roche (tom_ro...@pobox.com on 2011-08-15 12:35 -0400):
> 
> My dpkg/APT knowledge/skills need to go from near-beginner to at least
> intermediate-level fairly quickly, but I have lots questions. Where
> to go (e.g., what forums, lists, IRCs, other sites) to ask them?
> Why I ask:
> 
[..]
> However I currently
> 
> - have 888 updates (per mu-d)
> - have 69 broken packages (per `aptitude`)
> - need to get some bigger apps/functions running (e.g., chromium,
>   libreoffice, DVD playing)
> - fear breaking big things (e.g., X, GNOME)
>
Let's skip the mu-d assessment (Mint upgrade-daemon?), and let's focus
on the broken packages. Usually this means either packages that can't
be upgraded because of missing dependencies or package conflicts (not
too bad), or packages that cannot be installed yet somehow are (oops).

First of all: Ubuntu has a tendency to throw everything and the kitchen
sink into a few toplevel packages. Great for avoiding thinking, bad
for fixing broken packages. Create a new file in /etc/apt/apt.conf.d
with the following line:
APT::Install-Recommends "false";
You can remove it later, but for now it might break some dependency
cycles that prevent you from going forward.

Next, a word of caution: there is a very real possibility of breaking
your system here. Be very careful about packages being removed. As a
general rule, apt-get is safer (less ruthless) than aptitude, and the
aptitude command-line interface is safer (more explicit) than its TUI.

Now for some low-level package administration:

Identify the broken packages (can't test -- there's probably a better
command for this):
$ dpkg -la|grep ^iB

Find out what they do:
$ apt-cache show 

Find out where they come from, and what versions are available:
$ apt-cache policy 

Find out why a package is installed:
$ aptitude why 
or
$ aptitude why  

Let apt do the difficult thinking for you:
# apt-get install -f
or
# aptitude install

Forcefully remove a package (DO NOT USE)
# dpkg --force-all -r 

I suggest you also take a look at #debian on irc.debian.org, or a
Mint-specific IRC channel if it's available. You will get a much more
immediate response there.


Good luck!
Arno


-- 
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/20110816015016.3fa88...@neminis.loos.site



Re: Remote X renders transparency as black

2011-08-15 Thread Liam O'Toole
On 2011-08-15, Darac Marjal  wrote:
> I am experiencing an odd problem displaying remote (i.e. SSH forwarded)
> X and wonder if I can pick your collective brains.
>
> The situation is as follows: I am logged into my laptop, rocky. The
> laptop is running Wheezy and Xorg detects the chipset as:
>[   106.371] (II) intel(0): Integrated Graphics Chipset: Intel(R) Arrand=
> ale
>[   106.371] (--) intel(0): Chipset: "Arrandale"
> I run, for example "ssh -X fowler claws-mail". Fowler, my server, is
> running Sid and (though it should be irrelevant), its graphics is:
>[825228.570] (II) NVIDIA(0): NVIDIA GPU GeForce 8600 GT (G84) at PCI:1:0=
>:0 (GPU-0)
> What I then see is all the toolbar icons (and the folder icons) have
> black backgrounds rather than the expected toolbar-coloured background.
>
> I know this isn't a claws problem (other programs such as xfce4-about
> show the same effect) and it's not an issue locally (running programs
> locally on either the laptop or the server shows the correct
> transparency).
>
> Does anyone know what might be the problem and how I can fix it?

Try ssh with trusted X11 forwarding:

sh -XY fowler claws-mail
 ^

Trusted X11 forwarding is on by default in the case of recent
installations.

-- 
Liam O'Toole
Cork, Ireland


-- 
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/slrnj4jdn9.58k.liam.p.otoole@dipsy.tubbynet



Re: Changing Users in a script

2011-08-15 Thread Hal Vaughan

On Aug 15, 2011, at 2:05 PM, Bob Proulx wrote:

> Hal Vaughan wrote:
>> I have a system with several different users and would like to use
>> cron to run this script as root:
>> 
>> #!/bin/bash
>> 
>> for user in `ls /home/`; do
>> #echo "Path: $user"
>>  if [ "${user:0:1}" != "0" ]; then
>>  path="/home/$user/Backup"
>>  if [ -e $path ]; then
>>  echo "Calling backup for user: $user"
>>  sudo -u $user /usr/local/bin/user-backup
>>  fi
>>  fi
>> done
> 
> Personally if I were writing this then if the script is running as
> root then instead of using 'sudo' here I would use 'su' instead.
> 
>  su -c /usr/local/bin/user-backup $user
> 
> Mostly because su is more traditional and "more core" than sudo and
> just seems like the better fit for the job.  But it is a matter of
> taste here.

Senile moment -- I keep forgetting that I can use su for different users, too.  
Thanks for the reminder!

>> The idea is that instead of adding a backup script every time I add
>> a user, this script will go through the /home directories and skip
>> any that start with a 0 (a program I'm using creates some
>> directories there, but starts their names with a 0) and
>> automatically call the generic backup script for that user.
> 
> Seems reasonable so far.  Also you should skip directories called
> "lost+found" in the case that /home happens to be a mount point on a
> filesystem such as ext[23] that uses lost+found.

Thanks for the reminder!

>> The problem is sudo can't be run without a tty, so I can run it
>> myself, but it won't run from a script.
> 
> Using 'su' would solve that problem.
> 
>> Any other way I can do this?
> 
> There are distinct advantages to a backup push system.  Not proposing
> that you change away from it.  But I tend to pull backups from /home
> to the backup server.  This means that whatever is in /home comes over
> whether it is associated with a user's home directory or not.  All I
> manage is machines.  Not machines and users.

How is it that a pull system would get more?  I didn't know there'd be files 
associated with a user that are outside of their home directory.



Hal

--
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/f25320a2-3441-4188-9071-c1218dc59...@halblog.com



Re: Changing Users in a script

2011-08-15 Thread Hal Vaughan

On Aug 15, 2011, at 2:15 PM, Bob Proulx wrote:

> Bob Proulx wrote:
>> Hal Vaughan wrote:
>>> The problem is sudo can't be run without a tty, so I can run it
>>> myself, but it won't run from a script.
>> 
>> Using 'su' would solve that problem.
> 
> BTW...  I assume that is because you have tty-tickets turned on for
> sudo?  In which case you could avoid it with sudo too by turning off
> tty-tickets for this use case.

Not dealing with that.  For my two NAS units, I really want to do as little as 
possible.  Since I need the script anyway, I'd rather just use that only.

Thanks!



Hal

--
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/4e895b5e-1be9-464d-b126-9fdc51617...@halblog.com



Re: Remote X renders transparency as black

2011-08-15 Thread Gilbert Sullivan

On 08/15/2011 03:57 PM, Darac Marjal wrote:

Hi all,

I am experiencing an odd problem displaying remote (i.e. SSH forwarded)
X and wonder if I can pick your collective brains.

The situation is as follows: I am logged into my laptop, rocky. The
laptop is running Wheezy and Xorg detects the chipset as:
[   106.371] (II) intel(0): Integrated Graphics Chipset: Intel(R) Arrandale
[   106.371] (--) intel(0): Chipset: "Arrandale"
I run, for example "ssh -X fowler claws-mail". Fowler, my server, is
running Sid and (though it should be irrelevant), its graphics is:
[825228.570] (II) NVIDIA(0): NVIDIA GPU GeForce 8600 GT (G84) at PCI:1:0:0 
(GPU-0)
What I then see is all the toolbar icons (and the folder icons) have
black backgrounds rather than the expected toolbar-coloured background.

I know this isn't a claws problem (other programs such as xfce4-about
show the same effect) and it's not an issue locally (running programs
locally on either the laptop or the server shows the correct
transparency).

Does anyone know what might be the problem and how I can fix it?

Thanks,



I have no idea what the problem is, but I have been seeing it -- and 
doing research on it -- for a few weeks now.


I can tell you that I see this on all of my Wheezy systems when running 
graphical apps via SSH -X session on remote systems. That's Intel to 
Intel, Intel to Nvidia, Nvidia to Intel, ATI to Nvidea, etc., etc. -- 
any client to any remote.


I have noticed that changing the system fonts has some small effect upon 
this. I have also noticed that this corruption of graphical elements in 
the toolbars (and sometimes within documents) of the remotely run 
applications doesn't affect LibreOffice or Mozilla applications. But it 
does affect all GTK and QT applications on my systems.


Up until a few weeks ago, I only ever saw the corruption on the second 
graphical application started in a session following a reboot of the 
remote system. Yes, it was that predictable (and weird). Those instances 
of corruption have not changed, are more severe, and require shutting 
down the application and restarting it.


But now there is some graphical corruption of some elements 
(particularly toolbars) of all of the GTK and QT applications in a 
remote session.



--
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/4e49c246.30...@comcast.net



Re: Looking for a package management GUI in KDE

2011-08-15 Thread Mark Grieveson
On Mon, 15 Aug 2011 21:34:15 + (UTC)
debian-user-digest-requ...@lists.debian.org wrote:

> I am a untity / gnome3 refugee, have installed KDE 4.4.5 on Debian 6
> but am totally stumped looking for a package management GUI, something
> equivalent to synaptic for QT ?

adept is similar to synaptic, and is written in QT (see
http://packages.debian.org/sid/adept ).  It's currently only in Sid. If
you're using stable, then I think you could always port the package to
the stable system using the sid source package.

Mark


-- 
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/20110815222316.6d05c...@torfree.net



Re: how to set up the right click options when open a webpage in iceweasle

2011-08-15 Thread lina
On Tue, Aug 16, 2011 at 6:43 AM, Rob Owens  wrote:
> On Mon, Aug 15, 2011 at 04:20:57PM +0800, lina wrote:
>> Hi,
>>
>> seems the iceweasle has updated today (wheezy).
>>
>> How can I set up the right click,
>>
>> open links in new tab
>> open links in new window
>>
>> back to the
>>
>> open links in new window
>> open links in new tab
>>
> Just curious:  are you aware that a center mouse click (the wheel is
> also a button) will open a link in a new tab?  Not sure if that can be
> changed to open in a new window...

Hmm...cool...I didn't realize the middle button could do that.

Thanks,

>
> -Rob
>
>
> --
> 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/20110815224301.gd26...@aurora.owens.net
>
>



-- 
Best Regards,

lina


--
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/cag9cjmmocxe7qzcprzveklc0sxwbkpvo8_xq9gxak864gm7...@mail.gmail.com



Re: Transplanting old System to New Drive

2011-08-15 Thread Ivan Shmakov
> Rob Owens  writes:
> On Mon, Aug 15, 2011 at 06:12:24PM +0700, Ivan Shmakov wrote:
> Martin McCormick  writes:
> Ivan Shmakov writes:

  It's possible to dd(1) just the filesystem (partition) instead of
  the whole disk.

  Moreover, the filesystem can be downsized prior to that with
  resize2fs(8), thus the destination partition may be smaller than
  the source one.

 >>> What if the destination is larger which is the case, here?

 >> If the destination partition is larger than the source one, use
 >> resize2fs(8) after dd(1) on the destination partition — it'll make
 >> the additional space available to the filesystem.

 > I think you need to use fdisk or something similar to enlarge the
 > partition first.  Then resize the filesystem.

I've stated above that it isn't necessary to use dd(1) on the
whole disk image.

Obviously, when copying partition-to-partition, the destination
should already have a partition table, which, as I've deduced
from the question, has larger partition(s) than the source.

Regarding fdisk(8), I see little sense in using the old MBR
partition table nowadays (unless for compatibility with certain
BIOS'es, and then there's gptsync(8).)  And of free GPT
manipulation tools I'm aware only of GNU Parted.

(CHS addressing is quite nonsensical these days, anyway.)

-- 
FSF associate member #7257


-- 
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/86k4ad513b@gray.siamics.net



Apple iBook power management

2011-08-15 Thread scar
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

i installed squeeze-powerpc on an Apple ibook g4, breathed new life into
this little guy that Apple has kicked to the curb.  i installed gnome,
configured the proprietary wifi drivers, and setup a right-click for the
mouse, and it's all working well.

although it doesn't seem to detect that there's a battery or something.
 if i go into the power management settings, there's no tab for 'on
battery power'.  if i unplug the AC power, the little icon doesn't
change into a battery, it just stays as a plug.

i'm pretty sure during the installation i told it to install the
'laptop' role so i'm not sure what's causing this, or even what to
search for as a solution

-BEGIN PGP SIGNATURE-

iEYEAREIAAYFAk5KD+4ACgkQXhfCJNu98qBnXACfSTRM7XfZO0YUcj4XG4t5kN2j
re8AoJz5ZFkp6kVAD/udn4fpYq8hx40l
=JVOz
-END PGP SIGNATURE-


-- 
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/j2d35i$b87$1...@dough.gmane.org