Decompiler?

2010-02-21 Thread Hadi Motamedi

Dear All

I have disassembled the object file on my Debian server , by the following :

#objdump wmain

In the output , I have recognized the intended subroutine that I need to find 
the exact command syntax that it sends out . To this end , I asked you guys on 
how to capture it through 'tcpdump' but didn't success . I read this segment 
assembly language code but it is somewhat difficult to decode . Can you please 
let me know what Debian decompiler is suitable for this case ? I tried with 
'decompyle' but it didn't get through.

 
  
_
Hotmail: Powerful Free email with security by Microsoft.
https://signup.live.com/signup.aspx?id=60969

Re: annoying 4gb seg fixup

2010-02-21 Thread Chris Bannister
On Mon, Feb 15, 2010 at 08:58:15PM +0100, Tomasz Pajor wrote:
> Hello,
> 
> I'm running debian squeeze with experimental packages.

experimental is unsupported on this list. 

-- 
Chris


-- 
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/20100221132448.gd19...@fischer



Re: Decompiler?

2010-02-21 Thread Stephen Powell
On Sun, 21 Feb 2010 05:06:21 -0500 (EST), Hadi Motamedi wrote:
> 
> Dear All
> 
> I have disassembled the object file on my Debian server , by the following :
> 
> #objdump wmain
> 
> In the output , I have recognized the intended subroutine that I need to
> find the exact command syntax that it sends out.  To this end, I asked
> you guys on how to capture it through 'tcpdump' but didn't success.  I
> read this segment assembly language code but it is somewhat difficult to
> decode.  Can you please let me know what Debian decompiler is suitable for
> this case?  I tried with 'decompyle' but it didn't get through.

First, let me make sure I understand what you are asking.  You have some
binary object code and you want to transform it back into the C source
code that it came from.  Is that right?  Or did I misunderstand you?

If that is what you want, then I doubt that it is possible.  I've never
heard of a decompiler.  I have heard of a disassembler, but even they
have their limitations.  I myself have done extensive work as a programmer
on a disassembler for the s390 platform.  It happens to be the disassembler
resident in the TRACK for z/VM freeware program.  So I am speaking from
experience here.  Even a disassembler is a guess.  Here are some things that
you lose, even in a disassembler:

1.  All comments.
2.  The names of all variables
3.  The distinction between code and data

For example, if I encounter the hex string '41101004' that could be a

 LA1,4(,1)

instruction.  But it might not be an instruction.  It might be data.  It
might be

 DCF'1091571716'

Or maybe it's a floating point number in traditional s390 hexadecimal
floating point format.  Or maybe it's part of an escape sequence of codes
to be sent to a printer.  You can never be sure.  All these uncertainties
are present in a disassembler.  In assembly language, there is pretty much
a one-to-one correspondence between assembler instructions and machine
instructions.  But in a high-level language, that is not so.  A single
statement in source code may generate a long sequence of machine instructions.
How do you know where one statement ends and another begins?

In short, I doubt if it is possible.  Even if you do find something that
purports to be a decompiler, its output will almost certainly not match
the original input.  Compilation is a one-way process.
 


-- 
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/1425884921.13942331266755281555.javamail.r...@md01.wow.synacor.com



Re: annoying 4gb seg fixup

2010-02-21 Thread John Hasler
Chris writes:
> experimental is unsupported on this list. 

That isn't true, though there may be few (if any) other people here
using any given package therefrom.
-- 
John Hasler


-- 
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/87vddqpwkm@thumper.dhh.gt.org



Re: annoying 4gb seg fixup

2010-02-21 Thread Freeman
On Mon, Feb 22, 2010 at 02:24:48AM +1300, Chris Bannister wrote:
> On Mon, Feb 15, 2010 at 08:58:15PM +0100, Tomasz Pajor wrote:
> > Hello,
> > 
> > I'm running debian squeeze with experimental packages.
> 
> experimental is unsupported on this list. 
> 

Where is that stated? 

The only policy about this list I have found are 1.) English language and
2.) the implied general topic of using debian.  

-- 
Kind Regards,
Freeman


-- 
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/20100221133257.ga16...@europa.office



renamer script help..

2010-02-21 Thread Vadkan Jozsef
The script:
http://pastebin.ca/1804613

but it's not working too well:
http://pastebin.ca/1804612

e.g.: the script makes "arviztur-ukorfurogep" from "árvíztűrő
tükörfúrógép", when it should be: "arvizturo-tukorfurogep"

Has someone a similar script, that works?

thanks:\
ps.: i tried it under lucid, dash is not installed as /bin/sh..


-- 
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/1266759944.6612.12.ca...@ubuntu



Controlling User Logins Using Pam

2010-02-21 Thread David Baron
The good old parental control problem. How might one control user login times 
and periods using pam (or polkit)?


-- 
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/201002211546.34700.d_ba...@012.net.il



Debian-Multimedia

2010-02-21 Thread Stuckey

Hello,

I have the debian-multimedia in my sources.list file, and so far I've  
just been commenting it in/out whenever I want to install something  
from it. I only want certain packages from it, the ones that I can't  
get from the regular repository. How can I configure aptitude so that  
it will only pull the packages that I tell it to from debiam-multimedia?


I'm using Sid. Here's my sources.list file:

 unstable 
deb http://ftp.de.debian.org/debian/ unstable main contrib non-free
deb-src http://ftp.de.debian.org/debian/ unstable main contrib non-free

#deb http://ftp.de.debian.org/debian squeeze main contrib non-free

 dmm  #
#deb http://www.debian-multimedia.org sid main

Thanks,
Stuckey


--
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/20100221150630.1783210k05y2j...@webmail.uni-wuerzburg.de



Re: Controlling User Logins Using Pam

2010-02-21 Thread Peter Beck
On Sun, 2010-02-21 at 15:46 +0200, David Baron wrote:
> How might one control user login times and periods using pam (or polkit)?

Never tried by myself, but maybe this is useful:
http://www.debian-administration.org/articles/227


-- 
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/1266761282.16265.5.ca...@peanut.pvb.li



Re: Controlling User Logins Using Pam

2010-02-21 Thread Steve Kemp
On Sun Feb 21, 2010 at 15:46:34 +0200, David Baron wrote:

> The good old parental control problem. How might one control user login times
> and periods using pam (or polkit)?

  Use /etc/security/time.conf, as described here:


http://www.debian-administration.org/article/Restricting_server_access_by_time

Steve
--
Debian GNU/Linux System Administration
http://www.debian-administration.org/


-- 
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/20100221140847.ga28...@steve.org.uk



Re: Debian-Multimedia

2010-02-21 Thread Rob Owens
On Sun, Feb 21, 2010 at 03:06:30PM +0100, Stuckey wrote:
> Hello,
>
> I have the debian-multimedia in my sources.list file, and so far I've  
> just been commenting it in/out whenever I want to install something from 
> it. I only want certain packages from it, the ones that I can't get from 
> the regular repository. How can I configure aptitude so that it will only 
> pull the packages that I tell it to from debiam-multimedia?
>
> I'm using Sid. Here's my sources.list file:
>
>  unstable 
> deb http://ftp.de.debian.org/debian/ unstable main contrib non-free
> deb-src http://ftp.de.debian.org/debian/ unstable main contrib non-free
>
> #deb http://ftp.de.debian.org/debian squeeze main contrib non-free
>
>  dmm  #
> #deb http://www.debian-multimedia.org sid main
>
This info comes from backports.org, but it should also apply to
debian-mulitmedia.org, as far as pinning priority goes:


If you want to get your packages from backports upgraded automatically
the following entry in /etc/apt/preferences should be sufficient:

Package: *
Pin: release a=lenny-backports
Pin-Priority: 200


I *think* your pin line should read like this:
Pin: origin www.debian-multimedia.org

I have lenny-backports pinned at 200, and it does not install anything
from backports w/o me specifying it.  It will automatically upgrade
existing backports packages with newer versions of backports packages as
they come out.

See man apt_preferences for more details.

-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/20100221151839.gb8...@aurora.owens.net



Re: amd64 flash setup not working on youtube?

2010-02-21 Thread Mitchell Laks
On 18:28 Thu 18 Feb , Camaleón wrote:
> Another thing you can try is renaming your current "~/.mozilla" folder 
> and start over again with a clean profile.
>  
> > Note I took out all of the swfdec or other libraries, it is clean with
> > apt-get remove --purge
> 
> O.k. :-)
> 
> 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.2010.02.18.18.28...@gmail.com
> 
I tried that as well. 

To summarize, I got some functionality from using swf (libswfdec-0.8-0), but 
not all 
the video I wanted (for instance the video on using the stumpwm window manager 
by male did not work).

The amd64 adobe download does not work - no matter what i tried some 
google videos would crash the browser.

When I ran icweasel from the console I got an error message 

Gdk-WARNING **: XID collision, trouble ahead

This occured with the 'nv' driver for the video card, installed by the 
debian installer.

I also tried using the nvidia binary from their website with the 
same result.



Mitchell


-- 
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/20100221152314.ga13...@earthlink.net



Re: amd64 flash setup not working on youtube?

2010-02-21 Thread Mitchell Laks
On 10:23 Sun 21 Feb , Mitchell Laks wrote:

Some more information I found on line.

My machine that is crashing is an older AMD64 machine
Athlon 64 3000+ (socket 754) which lacks the lahf instruction.

see this discussing

---
http://bugs.gentoo.org/show_bug.cgi?id=273718

Comment  #17 From Maks Verver  2009-07-20 12:40:53   [reply] --- 

I'm using an Athlon 64 3000+ (socket 754) which lacks the lahf instruction and
I've had this problem for months, but I never really understood what the
problem was, until the latest ebuild update spelled it out for me (thanks for
that!)

Understanding the problem, it was relatively easy to hack together a workaround
that works by trapping the illegal instruction signal and then emulating its
effects. This can be implemented as a small dynamic library that is placed in
the plugin directory (so it's loaded whenever the Flash plug-in is loaded) or
forced to load by adding it to LD_PRELOAD. I have attached the source in the
hope that it might be useful to other users.

The downside of the current ebuild is that it prevents the 64-bit plugin from
being installed through portage at all. Would you consider bundling my
workaround for 64-bit users who lack the lafh instruction or at least change
the error into a warning?

or 

http://bugs.gentoo.org/show_bug.cgi?id=268336

Looking around i think that lahf_lm instruction isn't set in AMD 64 cpu family
15. Could anyone confirm this? Maybe we could consider this as a USE flag? Well
this is only an idea...

Thanks again to the people involved in solving this bug...


Comment #20 From Maik Nijhuis 2009-08-03 09:06:42  [reply] ---

The lahf workaround works perfectly! I tried both adobe-flash-10.0.22.87 and
adobe-flash-10.0.32.18, on my non-lahf AMD64 machine. Thanks everybody!

-

so there is a download on their forum  of a library to  compile and install in 
the
.mozilla/plugins/
directory to avoid the crashes

I will have to look into this to try it.

Mitchell


-- 
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/20100221155906.ga8...@earthlink.net



Debian 5 server - auto-reconnect to wireless networks?

2010-02-21 Thread chombee
Hi,

I'm wondering how to get my Debian server to automatically reconnect to
my wireless network. The server is an OLPC XO-1 running Debian 5 Stable
via the DebXO distribution. It does not have a wired ethernet port, it
connects to the internet through my home wireless network. The wireless
router occasionally gets restarted, sometimes when I'm not home, and
this requires me to physically go to the laptop to manually reconnect
either by operating the network manager applet with the mouse or by
running a script that uses ifconfig, iwconfig and dhclient.

The way network manager behaves on Ubuntu and (I think) the testing and
unstable distributions of debian is to automatically scan for and
reconnect to wireless networks that it has connected to before. But in
Debian 5 stable it does not do this, and there is not an option to have
it do this. I've tried left- and right- clicking on the applet, going
into all the menus, opening the various gnome network management
dialogs, nothing. I'm quite convinced that the option is not there. Is
there a way to enable network manager's automatically connecting
behaviour?

Getting network manager to work as it does elsewhere would be the best,
its behaviour of automatically scanning for and reconnecting to any
wireless network that it has connected to in the past is very
convenient. But failing that I'd settle for getting it to automatically
reconnect to my home wireless network by any means. I may even look into
writing a script for cron to run every few minutes. The script would
have to do nothing if the laptop is already connected to a wireless
network, and try to connect to a network if it's not, I guess some
combination of the ifconfig, iwconfig and dhclient commands might
achieve this.

Any help?

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/20100221164651.ga9...@kisimul



xawtv: XF86DGANoDirectVideoMode error

2010-02-21 Thread Thomas H. George
Why do I get this error?  I have libxxf86dga1 and libxxf86dga-dev
installed.


-- 
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/20100221165024.ga27...@tomgeorge.info



Re: tcpdump?

2010-02-21 Thread Tzafrir Cohen
On Sat, Feb 20, 2010 at 06:05:50AM +, Hadi Motamedi wrote:
> 
> Dear All
> I have put tcpdump trace on port 4957 on my Debian server , as the following :
> #tcpdump port 4957
> I want to obtain the payload data to see what is realy being exchanged 
> between my Debian server and the outside network element . Can you please let 
> me know how I can modify my command ?


tcpdump -s0 -w output.pcap port 4957


Consider also adding -n if name resolution takes extra time.

This will send output to output.pcap .

Later on run:

  wireshark output.pcap

and analyze the flows there.

Naturally you can use other programs.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
ICQ# 16849754 || friend


-- 
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/20100221181130.gw16...@pear.tzafrir.org.il



Re: tcpdump?

2010-02-21 Thread Tzafrir Cohen
On Sat, Feb 20, 2010 at 07:19:13AM +0100, frank thyes wrote:
> On Sat, 2010-02-20 at 06:05 +, Hadi Motamedi wrote:
> > Dear All
> > I have put tcpdump trace on port 4957 on my Debian server , as the
> > following :
> > #tcpdump port 4957
> > I want to obtain the payload data to see what is realy being exchanged
> > between my Debian server and the outside network element . Can you
> > please let me know how I can modify my command ?
> 
> RTFM - if you dont now how to read manuals start with "man man"

That's a rather unusful reply. Not to mention 'man man' is not my
recommendation to someone not familiar with man pages.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
ICQ# 16849754 || friend


-- 
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/20100221181353.gx16...@pear.tzafrir.org.il



Re: annoying 4gb seg fixup

2010-02-21 Thread Paul E Condon
On 20100221_053257, Freeman wrote:
> On Mon, Feb 22, 2010 at 02:24:48AM +1300, Chris Bannister wrote:
> > On Mon, Feb 15, 2010 at 08:58:15PM +0100, Tomasz Pajor wrote:
> > > Hello,
> > > 
> > > I'm running debian squeeze with experimental packages.
> > 
> > experimental is unsupported on this list. 
> > 
> 
> Where is that stated? 
> 
> The only policy about this list I have found are 1.) English language and
> 2.) the implied general topic of using debian.  
> 

For completeness, I think there is also a rule deprecating top posting 0:-)

-- 
Paul E Condon   
pecon...@mesanetworks.net


-- 
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/20100221190245.gd2...@big.lan.gnu



Re: Controlling User Logins Using Pam

2010-02-21 Thread Tony Nelson
On 10-02-21 09:08:47, Steve Kemp wrote:
> On Sun Feb 21, 2010 at 15:46:34 +0200, David Baron wrote:
> 
> > The good old parental control problem. How might one control user
> > login times and periods using pam (or polkit)?
> 
>   Use /etc/security/time.conf, as described here:
> 
> http://www.debian-administration.org/article/
> Restricting_server_access_by_time

That takes care of login but not periods.  That is, users log in but 
don't have to log out at any set time (or ever).  It can be used to set 
access periods for other services, but I don't see how to restrict 
internet access that way.

Googling I see [1] which points to [2] which suggests using cron to 
force a logout, and various timekpr, with a fork under development[3].

[1] http://ubuntuforums.org/archive/index.php/t-387670.html

[2]
http://skindley.wordpress.com/2006/12/11/fedora-core-6-controlling-logins-by-time/

[3] https://launchpad.net/timekpr/

-- 

TonyN.:'   
  '  


--
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/1266780315.1838...@localhost.localdomain



Re: annoying 4gb seg fixup

2010-02-21 Thread Celejar
On Sun, 21 Feb 2010 12:02:45 -0700
Paul E Condon  wrote:

> On 20100221_053257, Freeman wrote:

...

> > The only policy about this list I have found are 1.) English language and
> > 2.) the implied general topic of using debian.  
> > 
> 
> For completeness, I think there is also a rule deprecating top posting 0:-)

Actually, there are a number of rules included in the code of conduct,
not just the two mentioned by Freeman, but the deprecation of
top-posting is not one of them.  That's just a (strong) preference of
many on the list (including this author), and a general convention
adhered to by many participants in mailing lists, especially *nix /
technical ones.

http://www.debian.org/MailingLists/#codeofconduct

Celejar
-- 
foffl.sourceforge.net - Feeds OFFLine, an offline RSS/Atom aggregator
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator


-- 
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/20100221150022.7aab66d1.cele...@gmail.com



Re: problem with saslauthd

2010-02-21 Thread Alex Samad
On Fri, Feb 19, 2010 at 09:57:21PM +0530, Jeffrin Jose wrote:
> On Fri, Feb 19, 2010 at 12:32:36PM +1100, Alex Samad wrote:
> > 
> > I have setup pam with this file /etc/pam.d/imap-test
> > auth  sufficient  pam_unix2.so
> > authrequired  pam_winbind.so debug_state debug
> > authrequired  pam_deny.so
> > 
> > account  sufficient  pam_unix2.so
> > accountrequired pam_winbind.so debug_state debug
> > accountrequired pam_deny.so
> 
> may be you can try putting it like this..
> auth  sufficient  pam_winbind.so 
> auth  sufficient  pam_unix2.so
> 
> account  sufficient  pam_winbind.so 
> account  sufficient  pam_unix2.so
> 
> 
> Just a guess :) 

tried that, still fails on the ads userids and now I don't have local
ids either :)

> 
> /Jeffrin.
> 
> 

-- 
"I can look you in the eye and tell you I feel I've tried to solve the problem 
diplomatically to the max, and would have committed troops both in Afghanistan 
and Iraq knowing what I know today."

- George W. Bush
04/24/2006
Irving CA


signature.asc
Description: Digital signature


Re: tcpdump?

2010-02-21 Thread Alex Samad
On Sun, Feb 21, 2010 at 04:55:11AM +, Hadi Motamedi wrote:
> 
> 
>  

[snip]

> > 
> > Why not explain what you are trying to do, you main goal
> > 
> > 
> 
> Thank you for your reply . My mail goal is to find what is the exact command 
> syntax and its arguments that the attached network element is sending to my 
> Debian server on the specified port . I am seeing communication packets 
> exchaned between the network element and my Debian (through opening the log 
> on Wireshark) but I want to decode it and find the exact syntax of the 
> command sent .

so wireshark and tcpdump, ethereal, tshark are all going to capture the
entire packet (make sure to use -s 1500 for ethernet).

if wireshark doesn't decode/translate the packet then you are going to
have to figure out the protocol spec yourself. it automatically looks
and decodes.  Wireshark will present you with all the information that
you need



> 
> 
>  
> 
> _
> Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
> https://signup.live.com/signup.aspx?id=60969

-- 
"The best way to find these terrorists who hide in holes is to get people 
coming forth to describe the location of the hole, is to give clues and data."

- George W. Bush
12/15/2003
Washington, DC


signature.asc
Description: Digital signature


Re: changing file browser lxde

2010-02-21 Thread Daniel Dalton
On Sat, Feb 20, 2010 at 08:26:19AM -0500, Rob Owens wrote:
> > lxde from pcmanfm to nautilus? I'm wanting to do this as I'm blind and
> > use orca, and it appears nautilus runs better than pcmanfm with
> > orca. I've tried running nautilus from the shell and it works great, so
> > a way to make this the default file browser in lxde would be fantastic.
> > 
> Would simply putting a Nautilus button in the LXDE panel suffice?

I would prefer to make it the default browser for opening all
directories.

> In case you don't know, here is the command to get nautilus running
> without having it take over your desktop:

I want it to take over my desktop, as pcmanfm is not accessible with
orca. 

Thanks,
Dan


-- 
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/20100221202415.gb6...@debian-eeepc



[announcement] wordish in version 1.0

2010-02-21 Thread Jean Daniel
Hello,

Wordish helps with the edition and testing of documentation on shell
manipulation. Like the Python doctests but for the shell, it is meant to be
run on a restructured text file, parses the snippet of code, executes the
commands and compares the output to produce a report.

It was written to allow quick verification of articles on server
administration such as this one for example : jdb.github.com/lvm.html but
anything which can be done through the command line like tutorial on git, or
on packaging is in the scope.

It is available on the Python package index and the documentation and
sources are at jdb.github.com/wordish.

Next step is debian/ubuntu packaging, and more configuration options,

Cheers,




-- 
I pledge allegiance to the can...
of the perfect food that is tuna
and to the fishy, for which it cans,
one portion...
just for me, with olive oil and crackers  on top


Re: Debian installation on laptop with damaged screen

2010-02-21 Thread Stephen Powell
On Sun, 21 Feb 2010 09:39:00 -0500 (EST), Odd wrote:
> Are attachment allowed on this list I wonder.. Testing.

I got the attachments, and they are included inline in the mailing
list archives.

For comparison purposes, here is a copy of my Xorg.0.log file
from an IBM ThinkPad 600 running an up-to-date copy of Debian
Lenny, using an external CRT monitor.  (It is attached at the end.)
The corresponding xorg.conf file can be viewed on my web page
(http://www.wowway.com/~zlinuxman/tp600.htm).  This setup works
perfectly.

As you can see when you compare these side-by-side, the ThinkPad
is able to detect the NEC AccuSync external monitor with DDC2 EDID
probing.  For some reason, your external monitor cannot be detected.
I'm concerned about the "multiple ports" that it seems to find.
Particularly these statements:

   (WW) RADEON(0): LCD DDC Info Table found!
   (II) RADEON(0): Bios Connector table: 
   (II) RADEON(0): Port0: DDCType-0x68, DACType-2, TMDSType-1, ConnectorType-1
   (II) RADEON(0): Port4: DDCType-0x1a0, DACType-0, TMDSType-0, ConnectorType-7
   (II) RADEON(0): Port5: DDCType-0x0, DACType-2, TMDSType-0, ConnectorType-5

I'm also concerned about the virtual screen size it picked.  For example,

   (II) RADEON(0): Max desktop size set to 2560x1200
   (II) RADEON(0): For a larger or smaller max desktop size, add a Virtual line 
to your xorg.conf
   (II) RADEON(0): If you are having trouble with 3D, reduce the desktop size 
by adjusting the Virtual line to your xorg.conf

You should be able to override the virtual screen size to the maximum resolution
of your external monitor by coding a "virtual" line in the Display subsection
(the same place the "Modes" line is in).  For example:

   Virtual 1600 1200

According to the man page for xorg.conf, it should default to the highest
resolution used by the specified "Modes".  Apparently the radeon driver does
not observe this standard rule.  You might take a look at the man page for
the radeon driver (man radeon) for some more things you can try.
For example, the following options looked to me like they might have some
effect:

   IgnoreEDID
   PanelSize
   NoDDC
   DefaultConnectorTable
   ReverseDDC

(These options go in the "Device" section.)
I don't have your hardware; so I can't play around with it myself.  If you
find a combination that works, please post it for the benefit of others.
Good luck!

-- Xorg.0.log from IBM ThinkPad 600 --

X.Org X Server 1.4.2
Release Date: 11 June 2008
X Protocol Version 11, Revision 0
Build Operating System: Linux Debian (xorg-server 2:1.4.2-10.lenny2)
Current Operating System: Linux smp1 2.6.26-2-686 #1 SMP Wed Feb 10 08:59:21 
UTC 2010 i686
Build Date: 08 June 2009  09:12:57AM
 
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sun Feb 21 13:33:19 2010
(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "Default Layout"
(**) |-->Screen "Default Screen" (0)
(**) |   |-->Monitor "Configured Monitor"
(**) |   |-->Device "Configured Video Device"
(**) |-->Input Device "Generic Keyboard"
(**) |-->Input Device "Configured Mouse"
(==) Automatically adding devices
(==) Automatically enabling devices
(WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
Entry deleted from font path.
(WW) The directory "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" does not 
exist.
Entry deleted from font path.
(==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/100dpi/:unscaled,
/usr/share/fonts/X11/75dpi/:unscaled,
/usr/share/fonts/X11/Type1,
/usr/share/fonts/X11/100dpi,
/usr/share/fonts/X11/75dpi
(==) RgbPath set to "/etc/X11/rgb"
(==) ModulePath set to "/usr/lib/xorg/modules"
(WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
(II) Open APM successful
(II) Loader magic: 0x81e38c0
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.3
X.Org Video Driver: 2.0
X.Org XInput driver : 2.0
X.Org Server Extension : 0.3
X.Org Font Renderer : 0.5
(II) Loader running on linux
(II) LoadModule: "pcidata"
(II) Loading /usr/lib/xorg/modules//libpcidata.so
(II) Module pcidata: vendor="X.Org Foundation"
compiled for 1.4.2, module version = 1.0.0
ABI class: X.Org Video Driver, version 2.0
(++) using VT number 7

(II) PCI: PCI scan (all values are in hex)
(II) PCI: 00:00:0: chip 8086,7192 card , rev 02 class 06,00,00 hdr 00
(II) PCI: 00:02:0: chip 104c,ac16 card 1000, rev 02 class 06,07,00 hdr 82
(II) PCI: 00:02:1: chip 104c,ac16 card 1800, rev 02 class 06,07,00 hdr 82
(II) PCI: 00:03:0: chip 10c8,0004 card 1014,00ba re

Re: annoying 4gb seg fixup

2010-02-21 Thread Freeman
On Sun, Feb 21, 2010 at 03:00:22PM -0500, Celejar wrote:
> On Sun, 21 Feb 2010 12:02:45 -0700
> Paul E Condon  wrote:
> 
> > On 20100221_053257, Freeman wrote:
> 
> ...
> 
> > > The only policy about this list I have found are 1.) English language and
> > > 2.) the implied general topic of using debian.  
> > > 
> > 
> > For completeness, I think there is also a rule deprecating top posting 0:-)
> 
> Actually, there are a number of rules included in the code of conduct,
> not just the two mentioned by Freeman, but the deprecation of
> top-posting is not one of them.  That's just a (strong) preference of
> many on the list (including this author), and a general convention
> adhered to by many participants in mailing lists, especially *nix /
> technical ones.
> 
> http://www.debian.org/MailingLists/#codeofconduct
> 

Outstanding.

The last item might be setting the bar discouragingly high though:

"Use common sense all the time."

It is sort of paramount to saying, "alright, everyone out of the pool!"

Maybe a bug report:  replace it with "Don't top your posts."

I note the item admonishing *never* to post in html. The abundance of
confusing html quotes, which I refuse to sort through, have been discussed here.

 ;)

-- 
Kind Regards,
Freeman


-- 
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/20100221220952.ga12...@europa.office



Re: annoying 4gb seg fixup

2010-02-21 Thread Celejar
On Sun, 21 Feb 2010 14:09:52 -0800
Freeman  wrote:

> On Sun, Feb 21, 2010 at 03:00:22PM -0500, Celejar wrote:

...

> > http://www.debian.org/MailingLists/#codeofconduct
> > 
> 
> Outstanding.
> 
> The last item might be setting the bar discouragingly high though:
> 
> "Use common sense all the time."

Consider it aspirational.  As Robert Browning says:

Ah, but a man's reach should exceed his grasp,
Or what's a heaven for?

Celejar
-- 
foffl.sourceforge.net - Feeds OFFLine, an offline RSS/Atom aggregator
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator


-- 
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/20100221173227.0167195e.cele...@gmail.com



FORTRAN implementation in Lenny

2010-02-21 Thread Fuentes, Adolfo
Hello.

I'm trying to compile the file  from 
 [The Computer Language Benchmarks Game] in 
a Toshiba Satellite A200-1C0 with the specifications shown below. The problem 
I've got is that when I compile the file with GNU FORTRAN 95 4.3.2-1-1 and G95 
FORTRAN 0.91, and the options shown below, the difference in computing time 
between the binaries created by both compilers is huge. Does anybody know what 
it is so?? I thought both compilers would yield executables with 'similar 
results' for the elapsed time when running. I think it is very frustrating, 
even if we compare it to gcc, the Intel FORTRAN Compiler or the Portland Group 
FORTRAN.

]$ gcc -O3 -lm -march=nocona -o nbody.x nbody.c
]$ time ./-o nbody.x 5000
 Energy 0: -0.169075164
 Energy 1: -0.169059907
 Elapsed time: 1m 17.4s

]$ f95 -O3 -lm -march=nocona -o nbody.x nbody.f90
]$ time ./nbody.x 5000
 Energy 0: -0.169075164
 Energy 1: -0.169059907
 Elapsed time: 2m 31.7s

]$ g95 -O3 -lm -march=nocona -o nbody.x nbody.f90
]$ time ./nbody.x 5000
 Energy 0: -0.169075164
 Energy 1: -0.169059907
 Elapsed time: 1m 40.3s

Looking forward to hearing from you, and sincerely,

Adolfo

PS. Laptop specifications:
  Processor: 2x Intel(R) Core(TM) Duo CPU T2350 @ 1.86GHz / FSB @ 800 MHz
  Memory: 2066MB (366MB used)
  Operating System: Debian GNU/Linux 5.0.3 (Kernel 2.6.26-2-686)

---
Department of Chemistry -- Surface Science Research Centre
University of Liverpool
Crown Street
Liverpool, L69 7ZD
United Kingdom

"Treat the Earth well. It was not given to you by your parents, it was loaned 
to you by your children." (Ancient native American Indian proverb)

--
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/debb97ea3eef8e489b88cefa9b3f36e255f22e6...@staffmbx2.livad.liv.ac.uk



Re: Re: Correct binary for Intel Core i5

2010-02-21 Thread Peter Tenenbaum
Mark -- thanks for the information!  Your explanation of IA64 vs AMD64 is
about what I thought the situation was, but it never hurts to check.

As far as hardware is concerned:  I'm planning to use a Gigabyte GA-P55-USB3
motherboard, which in turn uses the Intel P55 Express chipset, the Realtek
ALC888 audio chipset, and the Realtek 8111D LAN chipset.  The Realtek
website has linux drivers for both chips updated in Jan and Feb of this
year.  For video I plan to use the Gigabyte GV-NX84S512HP, which in turn
uses nVidia GeForce 8400GS; the nVidia site has 64 bit linux drivers for
that chipset.

Thanks again for your help on this!  Let me know if you can think of
anything I've missed or any other research I should do before placing an
order.

-PT


Re: Correct binary for Intel Core i5

2010-02-21 Thread Mark Allums

On 2/21/2010 5:11 PM, Peter Tenenbaum wrote:

Mark -- thanks for the information!  Your explanation of IA64 vs AMD64
is about what I thought the situation was, but it never hurts to check.

As far as hardware is concerned:  I'm planning to use a Gigabyte
GA-P55-USB3 motherboard, which in turn uses the Intel P55 Express
chipset, the Realtek ALC888 audio chipset, and the Realtek 8111D LAN
chipset.  The Realtek website has linux drivers for both chips updated
in Jan and Feb of this year.  For video I plan to use the Gigabyte
GV-NX84S512HP, which in turn uses nVidia GeForce 8400GS; the nVidia site
has 64 bit linux drivers for that chipset.

Thanks again for your help on this!  Let me know if you can think of
anything I've missed or any other research I should do before placing an
order.

-PT




Realtek audio is covered.  I can't speak to Realtek LAN.  P55 is the 
very latest Intel Northbridge.  I don't know if X servers or drivers yet 
exist for the version of it that supports the Intel GPU, but I'm sure 
that they will exist shortly if they don't already.  Since you plan to 
use NVIDIA, the point is moot.


If you plan to use Debian, you will be wanting to use the 
Debian-packaged versions of most drivers.  These are usually delayed a 
bit from the release of hardware OEM drivers.  There are advantages and 
disadvantages.  The exception might be that you might want to use the 
NVIDIA driver binary if 3D is part of your Linux life.


This itself may change with upcoming kernel releases.  The NVIDIA driver 
has been reverse engineered, and an open source driver is coming.  Of 
course, the open driver may always be behind the closed binary; that 
depends on NVIDIA, and their history is that they want it to stay 
closed, to compete with AMD/ATI.


I tend to prefer ASUS for consumer MBs, but the Giga-Byte board you are 
looking at has gotten mainly favorable reviews.


I *think* you will be okay with it from day one, but a few things may 
not be supported in Linux at first.  I am concerned especially about 
that USB 3.0.  If the board has some regular USB 2.0 ports, you will be 
able to use them, but the 3.0 ports may not work until a future kernel 
release.  This will be true for all boards, not just that one.


Good luck!

Mark Allums





--
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/4b81c727.80...@allums.com



Re: Correct binary for Intel Core i5

2010-02-21 Thread Stan Hoeppner
Mark Allums put forth on 2/21/2010 5:52 PM:

> Realtek audio is covered.  I can't speak to Realtek LAN.  P55 is the
> very latest Intel Northbridge.  I don't know if X servers or drivers yet
> exist for the version of it that supports the Intel GPU, but I'm sure
> that they will exist shortly if they don't already.  Since you plan to
> use NVIDIA, the point is moot.

The Realtek LAN chips are all covered, but there may be issues with some
firmware blobs when using packaged Debian kernels.  There was a thread on here
recently about this.  Someone moved from packaged Squeeze kernel 2.6.30 to
2.6.32 IIRC, and between those revs there was confusion amongst the Debian
kernel team about the "free-ness" of the Realtek 8168/9 firmware blob.  Due to
this, they decided to leave out that firmware blob, breaking the driver and thus
making the interface useless without some less than trivial surgery by the OP.

Chances are your Gigabyte mobo uses the 8169, and you may likely run into this
issue with packaged Debian kernels.  If you compile your own kernel from
kernel.org source and include all firmware blobs in your kernel, you'll never
have this issue.  This debacle is just one of the many reasons I spin my kernels
with kernel.org source, building all needed drivers and all firmware blobs into
the kernel image.  I do not use initrd kernels for the same reason, and other
reasons.

Regarding the video, don't waste any money on an add-n PCIe GPU card unless you
plan to play OpenGL games or run professional 3D apps.  All the integrated
northbridge GPUs have more than enough horsepower to drive insanely high 2D
resolutions x 32bpp without breaking a sweat, and most do a decent job with low
demand OpenGL apps.

-- 
Stan



-- 
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/4b81cf7f.9010...@hardwarefreak.com



apt-proxy doesn't work

2010-02-21 Thread Gonzalo Gorosito
Hi guys,

I just installed the apt-proxy and I can't get it working. Using the config
file as it comes here's my log file:

2010-02-21 22:16:47-0300 [Channel,4,192.168.1.101] [CacheEntry] this is a
real request:/var/cache/apt-proxy/dists/squeeze/Release.gpg
2010-02-21 22:16:47-0300 [Channel,4,192.168.1.101] [CacheEntry] start
download:squeeze/Release.gpg
2010-02-21 22:16:47-0300 [Channel,4,192.168.1.101] Starting factory

2010-02-21 22:16:47-0300 [Channel,4,192.168.1.101] Starting factory

2010-02-21 22:16:47-0300 [Channel,4,192.168.1.101] [CacheEntry] this is a
real
request:/var/cache/apt-proxy/dists/squeeze/main/i18n/Translation-en_US.bz2
2010-02-21 22:16:47-0300 [Channel,4,192.168.1.101] [CacheEntry] start
download:squeeze/main/i18n/Translation-en_US.bz2
2010-02-21 22:16:48-0300 [TimeoutProtocol,client] [fetcher] () internal
error: Unknown status code: 403
2010-02-21 22:16:48-0300 [TimeoutProtocol,client] [Fetcher] download_failed:
(500) Unknown status code: 403
2010-02-21 22:16:48-0300 [TimeoutProtocol,client] [CacheEntry]
download_failure /var/cache/apt-proxy/dists/squeeze/Release.gpg: (500)
Unknown status code: 403
2010-02-21 22:16:48-0300 [TimeoutProtocol,client] Starting factory

2010-02-21 22:16:48-0300 [TimeoutProtocol,client] Starting factory

2010-02-21 22:16:48-0300 [TimeoutProtocol,client] Stopping factory

2010-02-21 22:16:48-0300 [TimeoutProtocol,client] Stopping factory

2010-02-21 22:16:48-0300 [TimeoutProtocol,client] [fetcher] () internal
error: Unknown status code: 403
2010-02-21 22:16:48-0300 [TimeoutProtocol,client] [Fetcher] download_failed:
(500) Unknown status code: 403
2010-02-21 22:16:48-0300 [TimeoutProtocol,client] [CacheEntry]
download_failure
/var/cache/apt-proxy/dists/squeeze/main/i18n/Translation-en_US.bz2: (500)
Unknown status code: 403
2010-02-21 22:16:48-0300 [TimeoutProtocol,client] Stopping factory

2010-02-21 22:16:48-0300 [TimeoutProtocol,client] Stopping factory

2010-02-21 22:16:48-0300 [Channel,4,192.168.1.101] [CacheEntry] this is a
real request:/var/cache/apt-proxy/dists/squeeze/Release
2010-02-21 22:16:48-0300 [Channel,4,192.168.1.101] [CacheEntry] start
download:squeeze/Release
2010-02-21 22:16:48-0300 [Channel,4,192.168.1.101] Starting factory

2010-02-21 22:16:48-0300 [Channel,4,192.168.1.101] Starting factory

2010-02-21 22:16:48-0300 [TimeoutProtocol,client] [fetcher] () internal
error: Unknown status code: 403
2010-02-21 22:16:48-0300 [TimeoutProtocol,client] [Fetcher] download_failed:
(500) Unknown status code: 403
2010-02-21 22:16:48-0300 [TimeoutProtocol,client] [CacheEntry]
download_failure /var/cache/apt-proxy/dists/squeeze/Release: (500) Unknown
status code: 403
2010-02-21 22:16:48-0300 [TimeoutProtocol,client] Stopping factory

2010-02-21 22:16:48-0300 [TimeoutProtocol,client] Stopping factory

2010-02-21 22:16:48-0300 [Channel,4,192.168.1.101] [CacheEntry] this is a
real
request:/var/cache/apt-proxy/dists/squeeze/main/binary-amd64/Packages.bz2
2010-02-21 22:16:48-0300 [Channel,4,192.168.1.101] [CacheEntry] start
download:squeeze/main/binary-amd64/Packages.bz2
2010-02-21 22:16:48-0300 [Channel,4,192.168.1.101] Starting factory

2010-02-21 22:16:48-0300 [Channel,4,192.168.1.101] Starting factory

2010-02-21 22:16:48-0300 [TimeoutProtocol,client] [fetcher] () internal
error: Unknown status code: 403
2010-02-21 22:16:48-0300 [TimeoutProtocol,client] [Fetcher] download_failed:
(500) Unknown status code: 403
2010-02-21 22:16:48-0300 [TimeoutProtocol,client] [CacheEntry]
download_failure
/var/cache/apt-proxy/dists/squeeze/main/binary-amd64/Packages.bz2: (500)
Unknown status code: 403
2010-02-21 22:16:48-0300 [TimeoutProtocol,client] Stopping factory

2010-02-21 22:16:48-0300 [TimeoutProtocol,client] Stopping factory

2010-02-21 22:16:48-0300 [Channel,4,192.168.1.101] '[HttpRequestClient]
abort - unknown extension for file squeeze/main/binary-amd64/Packages.lzma'
2010-02-21 22:16:48-0300 [Channel,4,192.168.1.101] [CacheEntry] this is a
real
request:/var/cache/apt-proxy/dists/squeeze/main/binary-amd64/Packages.gz
2010-02-21 22:16:48-0300 [Channel,4,192.168.1.101] [CacheEntry] start
download:squeeze/main/binary-amd64/Packages.gz
2010-02-21 22:16:48-0300 [Channel,4,192.168.1.101] Starting factory

2010-02-21 22:16:48-0300 [Channel,4,192.168.1.101] Starting factory

2010-02-21 22:16:49-0300 [TimeoutProtocol,client] [fetcher] () internal
error: Unknown status code: 403
2010-02-21 22:16:49-0300 [TimeoutProtocol,client] [Fetcher] download_failed:
(500) Unknown status code: 403
2010-02-21 22:16:49-0300 [TimeoutProtocol,client] [CacheEntry]
download_failure
/var/cache/apt-proxy/dists/squeeze/main/binary-amd64/Packages.gz: (500)
Unknown status code: 403
2010-02-21 22:16:49-0300 [TimeoutProtocol,client] Stopping factory

2010-02-21 22:16:49-0300 [TimeoutProtocol,client] Stopping factory



Any clue?

-- 
###
#  Gonzalo Gorosito
#  Systems Analyst & Web Programmer | Sys Admin & Philosopher
#  http://www.ggorosito.com.ar
##

Re: apt-proxy doesn't work

2010-02-21 Thread Andrew Reid
On Sunday 21 February 2010 20:17:56 Gonzalo Gorosito wrote:
> Hi guys,
>
> I just installed the apt-proxy and I can't get it working. Using the config
> file as it comes here's my log file:

[ Good stuff snipped... ]

> Any clue?
  
  I recently switched to "approx" from apt-proxy for this sort 
of thing, I found it much easier to deal with.  

  YMMV, of course -- not sure what I was doing wrong with
apt-proxy, my symptoms varied from yours. 

-- A.
-- 
Andrew Reid / rei...@bellatlantic.net


-- 
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/201002212040.02325.rei...@bellatlantic.net



Blank screen..........

2010-02-21 Thread charlie

Using Debian testing

After this mornings upgrade, rebooted and the Acer Aspire 3614 laptop
boots and I get the grub list of kernels and when I use select latest
trunk a blank screen happens and the light flashes and nothing happens
on the monitor.

One of the upgrades this morning was udev - obviously changed something
and now am unable to get anything on the monitor.

Any suggestions would be welcome.

TIA
Charlie


-- 
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/20100222132912.6911a...@tao1



Multiboot partitioning to share data, not dot files

2010-02-21 Thread postid
I'll be installing Lenny on an IBM R-40 laptop. I want to have 
WinXP, Lenny (with KDE, bells and whistles) and another 
Lenny(with Fluxbox, pared down to just what I need, and used for 
some experimenting). I want the two Lennys to share the files in 
the data partition.


While all the normal data files will be in the data (or 
"documents") partition, the /home directories will exist on their 
own partitions just to keep the dot files there. This way, I 
think that the two Lennys can share data, but not have problems 
with conflicting configuration files. It will also ease data backups.


Here are two examples with the proposed setup. The difference is 
that the first puts the data file as a primary, while the other 
puts the / partitions as primary.


hda1 -- WinXP -- primary 6 GB
hda2 -- /data -- primary --- 8 GB
hda3 -- swap -- primary  1 GB
hda4 -- extended -- extended -- 20 GB
 hda5 -- /home 1 -- logical  1 GB
 hda6 -- /home 2 -- logical  1 GB
 hda7 -- / Lenny 1 -- logical - 10 GB
 hda8 -- / Lenny 2 -- logical -- 8 GB

hda1 -- WinXP -- primary ---6 GB
hda2 -- / Lenny 1 -- primary - 10 GB
hda3 -- / Lenny 2 -- primary -- 8 GB
hda4 -- extended -- extended - 11 GB
  hda5 -- /home 1 -- logical -- 1 GB
  hda6 -- /home 2 -- logical -- 1 GB
  hda7 -- /data -- logical  8 GB
  hda8 -- swap -- logical - 1 GB

Does this make sense or is there a better way?


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

Archive: http://lists.debian.org/4b81f5c4.1050...@att.net



RE: Two Lenny problems

2010-02-21 Thread Cecil Knutson


dimension8400:/home/cecil# grep '.*' /proc/asound/* /proc/asound/card?/*
/proc/asound/cards: 0 [CA0106 ]: CA0106 - CA0106
/proc/asound/cards:  Live! 7.1 24bit [SB0413] at  
0xcce0 irq 17

/proc/asound/cards: 1 [ICH6   ]: ICH4 - Intel ICH6
/proc/asound/cards:  Intel ICH6 with AD1980 at irq 23
/proc/asound/devices:  0: [ 0]   : control
/proc/asound/devices:  1:: sequencer
/proc/asound/devices:  8: [ 0- 0]: raw midi
/proc/asound/devices: 16: [ 0- 0]: digital audio playback
/proc/asound/devices: 17: [ 0- 1]: digital audio playback
/proc/asound/devices: 18: [ 0- 2]: digital audio playback
/proc/asound/devices: 19: [ 0- 3]: digital audio playback
/proc/asound/devices: 24: [ 0- 0]: digital audio capture
/proc/asound/devices: 25: [ 0- 1]: digital audio capture
/proc/asound/devices: 26: [ 0- 2]: digital audio capture
/proc/asound/devices: 27: [ 0- 3]: digital audio capture
/proc/asound/devices: 32: [ 1]   : control
/proc/asound/devices: 33:: timer
/proc/asound/devices: 48: [ 1- 0]: digital audio playback
/proc/asound/devices: 52: [ 1- 4]: digital audio playback
/proc/asound/devices: 56: [ 1- 0]: digital audio capture
/proc/asound/devices: 57: [ 1- 1]: digital audio capture
/proc/asound/devices: 58: [ 1- 2]: digital audio capture
/proc/asound/devices: 59: [ 1- 3]: digital audio capture
/proc/asound/modules: 0 snd_ca0106
/proc/asound/modules: 1 snd_intel8x0
/proc/asound/pcm:00-03: ca0106 : CA0106 : playback 1 : capture 1
/proc/asound/pcm:00-02: ca0106 : CA0106 : playback 1 : capture 1
/proc/asound/pcm:00-01: ca0106 : CA0106 : playback 1 : capture 1
/proc/asound/pcm:00-00: ca0106 : CA0106 : playback 1 : capture 1
/proc/asound/pcm:01-04: Intel ICH - IEC958 : Intel ICH6 - IEC958 :  
playback 1

/proc/asound/pcm:01-03: Intel ICH - ADC2 : Intel ICH6 - ADC2 : capture 1
/proc/asound/pcm:01-02: Intel ICH - MIC2 ADC : Intel ICH6 - MIC2 ADC :  
capture 1
/proc/asound/pcm:01-01: Intel ICH - MIC ADC : Intel ICH6 - MIC ADC :  
capture 1

/proc/asound/pcm:01-00: Intel ICH : Intel ICH6 : playback 1 : capture 1
/proc/asound/timers:G0: system timer : 4000.000us (1000 ticks)
/proc/asound/timers:P0-0-0: PCM playback 0-0-0 : SLAVE
/proc/asound/timers:  Client application 3186 : running
/proc/asound/timers:P0-0-1: PCM capture 0-0-1 : SLAVE
/proc/asound/timers:P0-1-0: PCM playback 0-1-0 : SLAVE
/proc/asound/timers:P0-1-1: PCM capture 0-1-1 : SLAVE
/proc/asound/timers:P0-2-0: PCM playback 0-2-0 : SLAVE
/proc/asound/timers:P0-2-1: PCM capture 0-2-1 : SLAVE
/proc/asound/timers:P0-3-0: PCM playback 0-3-0 : SLAVE
/proc/asound/timers:P0-3-1: PCM capture 0-3-1 : SLAVE
/proc/asound/timers:P1-0-0: PCM playback 1-0-0 : SLAVE
/proc/asound/timers:P1-0-1: PCM capture 1-0-1 : SLAVE
/proc/asound/timers:P1-1-1: PCM capture 1-1-1 : SLAVE
/proc/asound/timers:P1-2-1: PCM capture 1-2-1 : SLAVE
/proc/asound/timers:P1-3-1: PCM capture 1-3-1 : SLAVE
/proc/asound/timers:P1-4-0: PCM playback 1-4-0 : SLAVE
/proc/asound/version:Advanced Linux Sound Architecture Driver Version  
1.0.16.

/proc/asound/card0/ca0106_reg16:Registers:
/proc/asound/card0/ca0106_reg16:
/proc/asound/card0/ca0106_reg16:Register 00: 
/proc/asound/card0/ca0106_reg16:Register 02: 0076
/proc/asound/card0/ca0106_reg16:Register 04: 
/proc/asound/card0/ca0106_reg16:Register 06: 
/proc/asound/card0/ca0106_reg16:Register 08: 
/proc/asound/card0/ca0106_reg16:Register 0A: 
/proc/asound/card0/ca0106_reg16:Register 0C: 0105
/proc/asound/card0/ca0106_reg16:Register 0E: 
/proc/asound/card0/ca0106_reg16:Register 10: 
/proc/asound/card0/ca0106_reg16:Register 12: 
/proc/asound/card0/ca0106_reg16:Register 14: 0809
/proc/asound/card0/ca0106_reg16:Register 16: 
/proc/asound/card0/ca0106_reg16:Register 18: 52D2
/proc/asound/card0/ca0106_reg16:Register 1A: 
/proc/asound/card0/ca0106_reg16:Register 1C: 
/proc/asound/card0/ca0106_reg16:Register 1E: 
/proc/asound/card0/ca0106_reg32:Registers:
/proc/asound/card0/ca0106_reg32:
/proc/asound/card0/ca0106_reg32:Register 00: 0076
/proc/asound/card0/ca0106_reg32:Register 04: 
/proc/asound/card0/ca0106_reg32:Register 08: 
/proc/asound/card0/ca0106_reg32:Register 0C: 0105
/proc/asound/card0/ca0106_reg32:Register 10: 
/proc/asound/card0/ca0106_reg32:Register 14: 0809
/proc/asound/card0/ca0106_reg32:Register 18: 005F52D2
/proc/asound/card0/ca0106_reg32:Register 1C: 
/proc/asound/card0/ca0106_reg8:Registers:
/proc/asound/card0/ca0106_reg8:
/proc/asound/card0/ca0106_reg8:Register 00: 00
/proc/asound/card0/ca0106_reg8:Register 01: 00
/proc/asound/card0/ca0106_reg8:Register 02: 76
/proc/asound/card0/ca0106_reg8:Register 03: 00
/proc/asound/card0/ca0106_reg8:Register 04: 00
/proc/asound/card0/ca0106_reg8:Register 05: 00
/proc/asound/card0/ca0106_reg8:Register 06: 00
/proc/asound/card0/ca0106_reg8:Register 07: 00
/proc/asound/card0/ca0106_reg8:Register 08: 00
/proc/asound/card0/ca0106_reg8:Register 09: 00
/proc/asoun

Re: Correct binary for Intel Core i5

2010-02-21 Thread Peter Tenenbaum
Mark --

I'm not expecting to be too into 3-D effects, so I'll plan on using the
Debian drivers for the video.

Thanks for the tip about ASUS, I'll look at their motherboards for my
preferred CPU.  The Gigabyte does indeed have a large number of USB 2 ports
(8 on the back panel, with support for up to 4 more from the front panel).
Right now I don't even own any USB 3 peripherals; I'm interested / willing
to get a motherboard with USB 3 support basically as a hedge against future
developments, since I'd like this computer to stay usable for some years,
and can't predict what the future of port standards will be.

Thanks again for all your help,
-PT


Re: Correct binary for Intel Core i5

2010-02-21 Thread Peter Tenenbaum
Stan --

It sounds like, if the Realtek drivers are not present on the Debian
distribution, I have at least two options:  going to the Realtek site and
downloading their linux 64 bit drivers, or compiling my own kernel from
source on kernel.org.  Does that sound about right?

As far as video cards are concerned, I have a (probably) ignorant question:
how do I put the integrated northbridge video support to use on these
motherboards, since they do not appear to have any video output spigots on
them?

Thanks for all your help with my project!
-PT


Re: Multiboot partitioning to share data, not dot files

2010-02-21 Thread Klaus Pieper
With LVM you could put anything on logical partitions which can be 
created/increased/decreased/dropped as necessary.


You need a small separate boot partition, which can be shared between 
both systems.


You might want to create a swap partition, which also is shared, maybe a 
  separate partition for /tmp.


hda2 linux 200M /boot
hda3 lvm   rest

/dev//lenny1
/dev//lenny2
/dev//swap !!
/dev//tmp

etc.

Yours,
Klaus


--
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/hlt0fr$ga...@news.m-online.net



Re: Two Lenny problems

2010-02-21 Thread Cecil Knutson
No, I have never searched for anything in a web page.  Didn't know it  
could be done, didn't look for it.  Opera does the same, did it, found it,  
read it, opened a terminal, SU'd, cd'd to /etc/modprobe.d, saw  
"blacklist", double-clicked it and opened it with Kword, modified the file  
by adding "blacklist snd_intel8x0, file failed to save.  So, now what?  In  
spite of my experience, I am no where near fluent in anything.  You err in  
expecting me to know what you know.  I do not expect anyone to eat my food  
for me.  Please excuse me for not seeing the food you place on my plate.   
I will do better if at all possible, please be patient.



--
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/op.u8igcqmado2...@dimension8400



Re: Two Lenny problems

2010-02-21 Thread Celejar
On Sun, 21 Feb 2010 20:06:16 -0800
"Cecil Knutson"  wrote:

> No, I have never searched for anything in a web page.  Didn't know it  
> could be done, didn't look for it.  Opera does the same, did it, found it,  
> read it, opened a terminal, SU'd, cd'd to /etc/modprobe.d, saw  
> "blacklist", double-clicked it and opened it with Kword, modified the file  
> by adding "blacklist snd_intel8x0, file failed to save.  So, now what?  In  

You need to understand file access privileges under linux:

http://www.comptechdoc.org/os/linux/usersguide/linux_ugfilesp.html

Celejar
-- 
foffl.sourceforge.net - Feeds OFFLine, an offline RSS/Atom aggregator
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator


-- 
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/20100221235838.8c29cf5b.cele...@gmail.com



Re: Correct binary for Intel Core i5

2010-02-21 Thread Mark Allums

On 2/21/2010 10:01 PM, Peter Tenenbaum wrote:

Stan --

It sounds like, if the Realtek drivers are not present on the Debian
distribution, I have at least two options:  going to the Realtek site
and downloading their linux 64 bit drivers, or compiling my own kernel
from source on kernel.org .  Does that sound about
right?

As far as video cards are concerned, I have a (probably) ignorant
question: how do I put the integrated northbridge video support to use
on these motherboards, since they do not appear to have any video output
spigots on them?

Thanks for all your help with my project!
-PT



If your set of connectors doesn't include video, your chosen motherboard 
does not have integrated video.


Using generic drivers from an OEM is a lot of work.  You must be 
prepared to compile and install a kernel module, making sure to use the 
correct version of gcc, or worse, patch a generic kernel, configure it, 
and compile it, then install it.  This can be fun, but it can also be 
tedious.


Rolling your own gives you complete control of the process.  It also 
requires a lot of responsibility.


You must watch the security advisories, and be prepared to patch and 
recompile on short notice every time a kernel hack is found.



I like ASUS "enthusiast" boards.  These are expensive.  If you are 
looking for a midrange machine, you may not like my choices.  Newegg is 
a place to look to get a feel for the current state of the industry. 
They have good prices on popular boards.  Go to newegg.com and look 
around, then visit tech blogs and review sites to learn about those 
boards that looked interesting.  anandtech, hardocp, ars technica, etc.


I am using an older X58 board, the ASUS P6T Deluxe V2.  Since it is 
socket 1366, it was pricey, especially since it required 50% more memory.


You might look at boards in the ASUS P7P55 series, say the P7P55D-E 
Deluxe.  However, it also has the 6.0G SATA support, which is probably 
another driver headache.  Goto usa.asus.com, and look at socket 1156 boards.


Good luck!

Mark Allums






--
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/4b820f4c.9090...@allums.com



RE: Decompiler?

2010-02-21 Thread Hadi Motamedi


 

> Date: Sun, 21 Feb 2010 07:28:01 -0500
> From: zlinux...@wowway.com
> To: debian-user@lists.debian.org
> Subject: Re: Decompiler?
> 
> On Sun, 21 Feb 2010 05:06:21 -0500 (EST), Hadi Motamedi wrote:
> > 
> > Dear All
> > 
> > I have disassembled the object file on my Debian server , by the following :
> > 
> > #objdump wmain
> > 
> > In the output , I have recognized the intended subroutine that I need to
> > find the exact command syntax that it sends out. To this end, I asked
> > you guys on how to capture it through 'tcpdump' but didn't success. I
> > read this segment assembly language code but it is somewhat difficult to
> > decode. Can you please let me know what Debian decompiler is suitable for
> > this case? I tried with 'decompyle' but it didn't get through.
> 
> First, let me make sure I understand what you are asking. You have some
> binary object code and you want to transform it back into the C source
> code that it came from. Is that right? Or did I misunderstand you?
> 
> If that is what you want, then I doubt that it is possible. I've never
> heard of a decompiler. I have heard of a disassembler, but even they
> have their limitations. I myself have done extensive work as a programmer
> on a disassembler for the s390 platform. It happens to be the disassembler
> resident in the TRACK for z/VM freeware program. So I am speaking from
> experience here. Even a disassembler is a guess. Here are some things that
> you lose, even in a disassembler:
> 
> 1. All comments.
> 2. The names of all variables
> 3. The distinction between code and data
> 
> For example, if I encounter the hex string '41101004' that could be a
> 
> LA 1,4(,1)
> 
> instruction. But it might not be an instruction. It might be data. It
> might be
> 
> DC F'1091571716'
> 
> Or maybe it's a floating point number in traditional s390 hexadecimal
> floating point format. Or maybe it's part of an escape sequence of codes
> to be sent to a printer. You can never be sure. All these uncertainties
> are present in a disassembler. In assembly language, there is pretty much
> a one-to-one correspondence between assembler instructions and machine
> instructions. But in a high-level language, that is not so. A single
> statement in source code may generate a long sequence of machine instructions.
> How do you know where one statement ends and another begins?
> 
> In short, I doubt if it is possible. Even if you do find something that
> purports to be a decompiler, its output will almost certainly not match
> the original input. Compilation is a one-way process.
> 
> 
> 
> -- 
> 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/1425884921.13942331266755281555.javamail.r...@md01.wow.synacor.com
> 

 

Thank you for your reply . Actually my Debian server is running an application 
program that sends commands toward an attached network element . The commands 
deal with 'profile read' , 'profile modify' , and 'profile delete' issues . On 
the application gui , there is an option to try for 'profile replace' that I 
cannot find the related command . As there is a need to try for this 'profile 
replace' in batch file , so I need to find the exact command syntax for this 
purpose . I tried to capture it through tracing with 'tcpdump' but it was 
un-successful . So I dis-assembled the code and I was lucky to find the related 
subroutine . It is short in length but I cannot decode it to find the logic in 
behind . So I need to find a de-compiler to de-compile it to some sort of 
higher level languages to see if I can understand the login behind . Please 
give me a hint on how to accomplish this .


 
  
_
Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
https://signup.live.com/signup.aspx?id=60969

Re: Correct binary for Intel Core i5

2010-02-21 Thread Kelly Harding
My understanding was that USB3.0 was supported by Linux before any
other OS, and it is meant to be backwards compatible with USB1.1 and
USB2.0 anyhow, so I don't think you'll hit problems there.

Besides USB3.0 is still fairly new, so it will take time for there to
be devices on the market etc, by which time drivers for the
controllers will be pretty stable I'd imagine. Of course take this
with a pinch of salt perhaps ;)

SATA3 shouldn't really be a major issue as the chipsets are meant to
be compatiblew th SATA1 and SATA2, but it is a case with a lot of
these things of YMMV.

kelly


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



Re: Correct binary for Intel Core i5

2010-02-21 Thread Mark Allums

On 2/21/2010 11:35 PM, Kelly Harding wrote:

My understanding was that USB3.0 was supported by Linux before any
other OS, and it is meant to be backwards compatible with USB1.1 and
USB2.0 anyhow, so I don't think you'll hit problems there.

Besides USB3.0 is still fairly new, so it will take time for there to
be devices on the market etc, by which time drivers for the
controllers will be pretty stable I'd imagine. Of course take this
with a pinch of salt perhaps ;)



I think you are correct, with at least one implementation.  I seem to 
remember reading that.  There are at least two chips.  I don't remember 
if both implementations are covered.




SATA3 shouldn't really be a major issue as the chipsets are meant to
be compatiblew th SATA1 and SATA2, but it is a case with a lot of
these things of YMMV.


I don't trust new chips with critical data.  It's always something.

It's true that old 3.0Gb/s drive should work, electrically.  Is the 
firmware solid?  6.0Gb/s drives should work on old chips, electrically. 
 How flaky is the firmware here?  Combine new chip with new drive.  Are 
we on solid ground now?  I shall maintain good backups, at least.


You're correct in both particulars.  Thanks for the corrections.

Mark Allums





--
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/4b821b11.7030...@allums.com



Re: Correct binary for Intel Core i5

2010-02-21 Thread Stan Hoeppner
Peter Tenenbaum put forth on 2/21/2010 10:01 PM:
> Stan --
> 
> It sounds like, if the Realtek drivers are not present on the Debian
> distribution, I have at least two options:  going to the Realtek site and
> downloading their linux 64 bit drivers, or compiling my own kernel from
> source on kernel.org.  Does that sound about right?

Hay Peter.  It's not quite that simple, I'm sorry to say.  The drivers are there
in the Debian kernels, and load properly.  The problem is that nearly every
intelligent ASIC in a system has firmware that executes on the chip--its own
local OS if you will.  With many networking chips, instead of including this
firmware on the card or mobo burned into an eeprom or flash memory chip, some
vendors ship the firmware binary with the driver.  It is then up to the host
operating system to upload the firmware binary to the peripheral chip upon each
boot cycle, when it executes the driver code.  There are a couple of advantages
to this:

1.  Eliminates the cost and complexity of an additional chip (eeprom/flash)
2.  Distribution of firmware updates is almost seamless, users oblivious

The problem with the Realtek 8168/9 is that apparently the Realtek folks have
made no firm declarations about the trademark/copyright/patent status of the
firmware code, or if they have, the statements are confusing to the Debian
kernel team.  The Debian project is (forcefully) guided by Richard Stallman's
FSF ideals, and thus, any software that doesn't meet the "Free" criteria isn't
included by default.  For kernel drivers, this creates a huge problem.  There is
no way to include "non-free" in your Debian kernel like you do in
/apt/sources.list.  The Debian kernel team makes that choice for your.

The really odd thing is that this firmware blob is included (was?) with the
standard Lenny kernel, 2.6.26.  During development of the Squeeze and SID
kernels, the Debian kernel team decided this firmware blob was no longer
considered "free", so they removed it.

> As far as video cards are concerned, I have a (probably) ignorant question:
> how do I put the integrated northbridge video support to use on these
> motherboards, since they do not appear to have any video output spigots on
> them?

Don't get one of those boards.  If you're dead set on getting an i5 CPU, the
board linked below is the best bang for the buck by leaps and bounds.  And it's
a true blue Intel board.  It has an Intel GigE chip, so you'll avoid any of the
Realtek 8168/9 firmware issues discussed above.  It has DB-15 VGA, DVI, and HDMI
video connectors on the back panel, so you can connect to pretty much any
computer monitor or HD TV display manufactured in the past 20 years.  It uses
the H55 north bridge, so as Mark said, you may/might have to wait a while for
full xorg and 3d support.  $99 USD

http://www.newegg.com/Product/Product.aspx?Item=N82E16813121394

If you haven't picked out a case yet, I recommend this Apevia:
http://www.newegg.com/Product/Product.aspx?Item=N82E16811144140

I just built a dual core AMD system for my Dad a few months ago with this case.
 It's geared toward LAN gamers, but I find it a perfect average user desktop
case, that's just a little bit different enough to be cool yet not tacky.  It's
so quiet you must strain to hear it.  It has excellent front-back airflow.  The
PSU has more connectors than you need, _but_ it includes two SATA drive power
connectors so you don't need to buy adapters.  All PSU wires are sheathed in
black braided plastic tubes, which is a really nice touch.  It's all aluminum
except for the plastic front face, and the cover which is really lightweight
stamped steel, and can bend somewhat easily if you're not careful with it.  The
cover attaches via 3 thumb screws, no screwdriver required.  Just a great little
case in my opinion.

-- 
Stan


-- 
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/4b821e8a.4040...@hardwarefreak.com



Re: Decompiler?

2010-02-21 Thread Andrew Sackville-West
On Mon, Feb 22, 2010 at 05:11:07AM +, Hadi Motamedi wrote:
[... snip nice explanation of why this won't work...]

> So I dis-assembled the code and I was lucky to find the related
> subroutine . It is short in length but I cannot decode it to find the
> logic in behind . So I need to find a de-compiler to de-compile it to
> some sort of higher level languages to see if I can understand the
> login behind . Please give me a hint on how to accomplish this .

basically it can't be done. It's a one-way operation. Picture this --
within C there are several ways to print a value to the screen. These
all likely produce similar machine code where a register is loaded
with the address of the value to print and then a print routine is
called. The question when decompiling is: how do you know *which*
method of printing a string to decompile to? You can't know. Throw in
the fact that code and data are indistinguishable at the machine
level, and it's basically impossible. Now remember that there are many
many many languages that compile to machine code. How do you even know
which language it was originally written in? What language do you
target for the decompilation?

The transformation of high-level code into machine code is not an
isomorphism. It cannot be reversed. 

That said, there my be ways to make some reasonable guess as to what
the code is doing and de-compile to some psuedo-language, but this
will still largely be guesswork. If you can make it work even remotely
reliably, you could probably get a PhD for the work...

A


signature.asc
Description: Digital signature


Re: Anyone Care to Critique my Apt Preferences? (was Re: apt-cacher as package rollback buffer)

2010-02-21 Thread Freeman
On Sat, Feb 20, 2010 at 06:41:35PM +0900, Osamu Aoki wrote:
> Hi,
> 
> On Fri, Feb 19, 2010 at 11:15:24PM -0800, Freeman wrote:
> > On Mon, Feb 15, 2010 at 05:10:26PM -0800, evenso wrote:
> > > On Mon, Feb 15, 2010 at 02:33:05PM -0600, Boyd Stephen Smith Jr. wrote:
> > > > On Monday 15 February 2010 13:30:19 Freeman wrote:
> > > 
> > > > 
> > > > > However, could a rollback represent an incursion on the priority 
> > > > > system?
> ...
> > The above preferences are for testing/unstable/experimental with a
> > contingency for and emergency rollback a package to an obsolete package
> > archived in my apt-cacher files. (My recent experience with the buggy
> > xserver-xorg/mesa upgrade prompted this plan.)
> 
> In short, I do not like people asking this kind of question to casually
> install mixed archive for their sake.  Especially things like experimental.
> 
> > I'd rather find out that the above Preferences are destructive here than
> > during an install!
> 

Thanks everyone, BTW. That thread is in my notes archive.

-- 
Kind Regards,
Freeman


-- 
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/20100222070019.ga7...@europa.office



Re: Debian-Multimedia

2010-02-21 Thread Freeman
On Sun, Feb 21, 2010 at 03:06:30PM +0100, Stuckey wrote:
> Hello,
> 
> I have the debian-multimedia in my sources.list file, and so far
> I've just been commenting it in/out whenever I want to install
> something from it. I only want certain packages from it, the ones
> that I can't get from the regular repository. How can I configure
> aptitude so that it will only pull the packages that I tell it to
> from debiam-multimedia?
> 
> I'm using Sid. Here's my sources.list file:
> 
>  unstable 
> deb http://ftp.de.debian.org/debian/ unstable main contrib non-free
> deb-src http://ftp.de.debian.org/debian/ unstable main contrib non-free
> 
> #deb http://ftp.de.debian.org/debian squeeze main contrib non-free
> 
>  dmm  #
> #deb http://www.debian-multimedia.org sid main
> 

Guess I always wanted the upgrade if there was a package in multimedia. 

Refer: man apt_preferences; Apt's Default Priority Assignments

Apt preferences docs interchange terms like they were dice in street craps,
or my head is a fish bowl, which may be a possibility.

Nevertheless, my read is that if you install one of Marillat's sid packages,
it will be 1.) a higher version of the 2.) same release from the 3.)
Multimedia distribution.

If you set your target release as described to unstable, unstable packages
from the debian distribution will receive a priority of 990.  That will not
allow an automatic upgrade to a different distribution (Multimedia) but it
also will not allow an automatic downgrade from a higher release.

Aptitude will try to satisfy dependencies to do what you ask.  Commenting
the multimedia source out might even lower the those packages priorities in
an unrelated resolution attempt by Aptitude.  I believe I've seen Aptitude
remove packages after I closed a source.

I think you should just set your target release to unstable and leave
Multimedia open.

If you have to pin a package with a target release set, you'll have to pin
it between 991-1000 to get the upgrade.

Package: < package_name >
Pin: version < n.n.n* >
Pin-Priority: 991

Then you will have to watch and edit for version changes.

-- 
Kind Regards,
Freeman


--
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/20100222070025.gb7...@europa.office



RE: tcpdump?

2010-02-21 Thread Hadi Motamedi


 

> Date: Sun, 21 Feb 2010 18:11:31 +
> From: tzaf...@cohens.org.il
> To: debian-user@lists.debian.org
> Subject: Re: tcpdump?
> 
> On Sat, Feb 20, 2010 at 06:05:50AM +, Hadi Motamedi wrote:
> > 
> > Dear All
> > I have put tcpdump trace on port 4957 on my Debian server , as the 
> > following :
> > #tcpdump port 4957
> > I want to obtain the payload data to see what is realy being exchanged 
> > between my Debian server and the outside network element . Can you please 
> > let me know how I can modify my command ?
> 
> 
> tcpdump -s0 -w output.pcap port 4957
> 
> 
> Consider also adding -n if name resolution takes extra time.
> 
> This will send output to output.pcap .
> 
> Later on run:
> 
> wireshark output.pcap
> 
> and analyze the flows there.
> 
> Naturally you can use other programs.
> 
> -- 
> Tzafrir Cohen | tzaf...@jabber.org | VIM is
> http://tzafrir.org.il | | a Mutt's
> tzaf...@cohens.org.il | | best
> ICQ# 16849754 | | friend
> 
> 
> -- 
> 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/20100221181130.gw16...@pear.tzafrir.org.il
> 

 

Thank you for your reply . I tried according to your comment , but still the 
intended exchanged command cannot be captured on the Wireshark analyze .


 
  
_
Hotmail: Powerful Free email with security by Microsoft.
https://signup.live.com/signup.aspx?id=60969

Re: Debian-Multimedia

2010-02-21 Thread Freeman
On Sun, Feb 21, 2010 at 11:00:25PM -0800, evenso wrote:

Erratum:

> 
> If you set your target release as described to unstable, unstable packages
> from the debian distribution will receive a priority of 990.  That will not
> allow an automatic upgrade to a different distribution (Multimedia) but it
> also will not allow an automatic downgrade from a higher release.
> 

Should read "downgrade from a higher *version* (Multimedia packages)."
Although "release" is also true.

-- 
Kind Regards,
Freeman


-- 
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/20100222071005.gc7...@europa.office



RE: Decompiler?

2010-02-21 Thread Tim Clewlow

>
>
>
>
>> Date: Sun, 21 Feb 2010 07:28:01 -0500
>> From: zlinux...@wowway.com
>> To: debian-user@lists.debian.org
>> Subject: Re: Decompiler?
>>
>> On Sun, 21 Feb 2010 05:06:21 -0500 (EST), Hadi Motamedi wrote:
>> >
>> > Dear All
>> >
>> > I have disassembled the object file on my Debian server , by the
>> following :
>> >
>> > #objdump wmain
>> >
>> > In the output , I have recognized the intended subroutine that I
>> need to
>> > find the exact command syntax that it sends out. To this end, I
>> asked
>> > you guys on how to capture it through 'tcpdump' but didn't
>> success. I
>> > read this segment assembly language code but it is somewhat
>> difficult to
>> > decode. Can you please let me know what Debian decompiler is
>> suitable for
>> > this case? I tried with 'decompyle' but it didn't get through.
>>
>> First, let me make sure I understand what you are asking. You have
>> some
>> binary object code and you want to transform it back into the C
>> source
>> code that it came from. Is that right? Or did I misunderstand you?
>>
>> If that is what you want, then I doubt that it is possible. I've
>> never
>> heard of a decompiler. I have heard of a disassembler, but even
>> they
>> have their limitations. I myself have done extensive work as a
>> programmer
>> on a disassembler for the s390 platform. It happens to be the
>> disassembler
>> resident in the TRACK for z/VM freeware program. So I am speaking
>> from
>> experience here. Even a disassembler is a guess. Here are some
>> things that
>> you lose, even in a disassembler:
>>
>> 1. All comments.
>> 2. The names of all variables
>> 3. The distinction between code and data
>>
>> For example, if I encounter the hex string '41101004' that could
>> be a
>>
>> LA 1,4(,1)
>>
>> instruction. But it might not be an instruction. It might be data.
>> It
>> might be
>>
>> DC F'1091571716'
>>
>> Or maybe it's a floating point number in traditional s390
>> hexadecimal
>> floating point format. Or maybe it's part of an escape sequence of
>> codes
>> to be sent to a printer. You can never be sure. All these
>> uncertainties
>> are present in a disassembler. In assembly language, there is
>> pretty much
>> a one-to-one correspondence between assembler instructions and
>> machine
>> instructions. But in a high-level language, that is not so. A
>> single
>> statement in source code may generate a long sequence of machine
>> instructions.
>> How do you know where one statement ends and another begins?
>>
>> In short, I doubt if it is possible. Even if you do find something
>> that
>> purports to be a decompiler, its output will almost certainly not
>> match
>> the original input. Compilation is a one-way process.
>>
>>
>>
>> --
>> 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/1425884921.13942331266755281555.javamail.r...@md01.wow.synacor.com
>>
>
>
>
> Thank you for your reply . Actually my Debian server is running an
> application program that sends commands toward an attached network
> element . The commands deal with 'profile read' , 'profile modify' ,
> and 'profile delete' issues . On the application gui , there is an
> option to try for 'profile replace' that I cannot find the related
> command . As there is a need to try for this 'profile replace' in
> batch file , so I need to find the exact command syntax for this
> purpose . I tried to capture it through tracing with 'tcpdump' but
> it was un-successful . So I dis-assembled the code and I was lucky
> to find the related subroutine . It is short in length but I cannot
> decode it to find the logic in behind . So I need to find a
> de-compiler to de-compile it to some sort of higher level languages
> to see if I can understand the login behind . Please give me a hint
> on how to accomplish this .
>
>
>
>
> _
> Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
> https://signup.live.com/signup.aspx?id=60969

I once worked for a company that was asked to reverse engineer a
file as the client had lost the original source. The method was to
first create lots of simple programs that each contained just one,
or few, lines of code, compile it, and then slowly build up a
one-to-one map of source to binary. It was _extremely_
tedious the compiler would optimise code and so trial and error
guesses had to often be made to try and get the compiler to build a
specific chunk of binary. I do not want to ever do that again.
However, it can be done.

Please note, as others have said, you will not get any object names
(variables or procedures) out of this, and you will always have to
make educated guesses when data chunks are hard coded in.

Regards, Tim.


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

RE: tcpdump?

2010-02-21 Thread Hadi Motamedi


 

> Date: Mon, 22 Feb 2010 07:21:30 +1100
> From: a...@samad.com.au
> To: debian-user@lists.debian.org
> Subject: Re: tcpdump?
> 
> On Sun, Feb 21, 2010 at 04:55:11AM +, Hadi Motamedi wrote:
> > 
> > 
> > 
> 
> [snip]
> 
> > > 
> > > Why not explain what you are trying to do, you main goal
> > > 
> > > 
> > 
> > Thank you for your reply . My mail goal is to find what is the exact 
> > command syntax and its arguments that the attached network element is 
> > sending to my Debian server on the specified port . I am seeing 
> > communication packets exchaned between the network element and my Debian 
> > (through opening the log on Wireshark) but I want to decode it and find the 
> > exact syntax of the command sent .
> 
> so wireshark and tcpdump, ethereal, tshark are all going to capture the
> entire packet (make sure to use -s 1500 for ethernet).
> 
> if wireshark doesn't decode/translate the packet then you are going to
> have to figure out the protocol spec yourself. it automatically looks
> and decodes. Wireshark will present you with all the information that
> you need
> 
> 
> 
> > 
> > 
> > 
> > 
> > _
> > Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
> > https://signup.live.com/signup.aspx?id=60969
> 
> -- 
> "The best way to find these terrorists who hide in holes is to get people 
> coming forth to describe the location of the hole, is to give clues and data."
> 
> - George W. Bush
> 12/15/2003
> Washington, DC

 

Thank you . I tried for your proposed switches in my 'tcpdump' but still the 
Wireshark does not show the command syntax that is being exchanged . So it 
seems that , according to you , I need to figure out the protocol spec in other 
way .


 
  
_
Hotmail: Trusted email with powerful SPAM protection.
https://signup.live.com/signup.aspx?id=60969

RE: Decompiler?

2010-02-21 Thread Hadi Motamedi


 

> Date: Sun, 21 Feb 2010 22:41:46 -0800
> From: and...@farwestbilliards.com
> To: debian-user@lists.debian.org
> Subject: Re: Decompiler?
> 
> On Mon, Feb 22, 2010 at 05:11:07AM +, Hadi Motamedi wrote:
> [... snip nice explanation of why this won't work...]
> 
> > So I dis-assembled the code and I was lucky to find the related
> > subroutine . It is short in length but I cannot decode it to find the
> > logic in behind . So I need to find a de-compiler to de-compile it to
> > some sort of higher level languages to see if I can understand the
> > login behind . Please give me a hint on how to accomplish this .
> 
> basically it can't be done. It's a one-way operation. Picture this --
> within C there are several ways to print a value to the screen. These
> all likely produce similar machine code where a register is loaded
> with the address of the value to print and then a print routine is
> called. The question when decompiling is: how do you know *which*
> method of printing a string to decompile to? You can't know. Throw in
> the fact that code and data are indistinguishable at the machine
> level, and it's basically impossible. Now remember that there are many
> many many languages that compile to machine code. How do you even know
> which language it was originally written in? What language do you
> target for the decompilation?
> 
> The transformation of high-level code into machine code is not an
> isomorphism. It cannot be reversed. 
> 
> That said, there my be ways to make some reasonable guess as to what
> the code is doing and de-compile to some psuedo-language, but this
> will still largely be guesswork. If you can make it work even remotely
> reliably, you could probably get a PhD for the work...
> 
> A

 

Thank you for your reply . The dis-assembled code is in x86 assembly language 
and the original code in written with c++ running on my Debian server . Can you 
please let me know if it can helps finding a dis-compiler to have some sort of 
higher level language code to see if I am still lucky to find the logic behind ?


 
  
_
Hotmail: Powerful Free email with security by Microsoft.
https://signup.live.com/signup.aspx?id=60969

RE: Decompiler?

2010-02-21 Thread Hadi Motamedi


 

> Date: Mon, 22 Feb 2010 18:10:08 +1100
> Subject: RE: Decompiler?
> From: t...@clewlow.org
> To: debian-user@lists.debian.org
> 
> 
> >
> >
> >
> >
> >> Date: Sun, 21 Feb 2010 07:28:01 -0500
> >> From: zlinux...@wowway.com
> >> To: debian-user@lists.debian.org
> >> Subject: Re: Decompiler?
> >>
> >> On Sun, 21 Feb 2010 05:06:21 -0500 (EST), Hadi Motamedi wrote:
> >> >
> >> > Dear All
> >> >
> >> > I have disassembled the object file on my Debian server , by the
> >> following :
> >> >
> >> > #objdump wmain
> >> >
> >> > In the output , I have recognized the intended subroutine that I
> >> need to
> >> > find the exact command syntax that it sends out. To this end, I
> >> asked
> >> > you guys on how to capture it through 'tcpdump' but didn't
> >> success. I
> >> > read this segment assembly language code but it is somewhat
> >> difficult to
> >> > decode. Can you please let me know what Debian decompiler is
> >> suitable for
> >> > this case? I tried with 'decompyle' but it didn't get through.
> >>
> >> First, let me make sure I understand what you are asking. You have
> >> some
> >> binary object code and you want to transform it back into the C
> >> source
> >> code that it came from. Is that right? Or did I misunderstand you?
> >>
> >> If that is what you want, then I doubt that it is possible. I've
> >> never
> >> heard of a decompiler. I have heard of a disassembler, but even
> >> they
> >> have their limitations. I myself have done extensive work as a
> >> programmer
> >> on a disassembler for the s390 platform. It happens to be the
> >> disassembler
> >> resident in the TRACK for z/VM freeware program. So I am speaking
> >> from
> >> experience here. Even a disassembler is a guess. Here are some
> >> things that
> >> you lose, even in a disassembler:
> >>
> >> 1. All comments.
> >> 2. The names of all variables
> >> 3. The distinction between code and data
> >>
> >> For example, if I encounter the hex string '41101004' that could
> >> be a
> >>
> >> LA 1,4(,1)
> >>
> >> instruction. But it might not be an instruction. It might be data.
> >> It
> >> might be
> >>
> >> DC F'1091571716'
> >>
> >> Or maybe it's a floating point number in traditional s390
> >> hexadecimal
> >> floating point format. Or maybe it's part of an escape sequence of
> >> codes
> >> to be sent to a printer. You can never be sure. All these
> >> uncertainties
> >> are present in a disassembler. In assembly language, there is
> >> pretty much
> >> a one-to-one correspondence between assembler instructions and
> >> machine
> >> instructions. But in a high-level language, that is not so. A
> >> single
> >> statement in source code may generate a long sequence of machine
> >> instructions.
> >> How do you know where one statement ends and another begins?
> >>
> >> In short, I doubt if it is possible. Even if you do find something
> >> that
> >> purports to be a decompiler, its output will almost certainly not
> >> match
> >> the original input. Compilation is a one-way process.
> >>
> >>
> >>
> >> --
> >> 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/1425884921.13942331266755281555.javamail.r...@md01.wow.synacor.com
> >>
> >
> >
> >
> > Thank you for your reply . Actually my Debian server is running an
> > application program that sends commands toward an attached network
> > element . The commands deal with 'profile read' , 'profile modify' ,
> > and 'profile delete' issues . On the application gui , there is an
> > option to try for 'profile replace' that I cannot find the related
> > command . As there is a need to try for this 'profile replace' in
> > batch file , so I need to find the exact command syntax for this
> > purpose . I tried to capture it through tracing with 'tcpdump' but
> > it was un-successful . So I dis-assembled the code and I was lucky
> > to find the related subroutine . It is short in length but I cannot
> > decode it to find the logic in behind . So I need to find a
> > de-compiler to de-compile it to some sort of higher level languages
> > to see if I can understand the login behind . Please give me a hint
> > on how to accomplish this .
> >
> >
> >
> >
> > _
> > Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
> > https://signup.live.com/signup.aspx?id=60969
> 
> I once worked for a company that was asked to reverse engineer a
> file as the client had lost the original source. The method was to
> first create lots of simple programs that each contained just one,
> or few, lines of code, compile it, and then slowly build up a
> one-to-one map of source to binary. It was _extremely_
> tedious the compiler would optimise code and so trial and error
> guesses had to often be made to try and get the compiler to build a
> specific chunk of binary. I do not want to ever do th