IPchains output

2001-10-17 Thread Craig



Hi,
I am curious as what each field refers to I know 
that the example is,
date hostname then deny 24.242.71.87 src port 137 
to my box on port 137 proto 17 which I believe is udp, however the rest fails me 
(also does someone have a complete listing of proto numbers to names (such as 
proto 17 udp?) 
 
Oct 18 09:01:43 
networkconfusion kernel: Packet log: input DENY ppp0 PROTO=17 24.242.71.87:137 
144.137.126.120:137 L=78 S=0x00 I=26791 F=0x T=101 (#8)
 
I would 
appreciate any assistance.
 
Regards,
 
Craig



find and coy

2013-08-31 Thread craig
Hello all,

I have a script that runs on different servers that does a daily dump of each 
database. I would like to also copy each system's file to the same NFS mounted 
system so that I have a local and a remote copy from each system. Obviously I 
don't need to copy yesterday's dump again, so I am trying to find the recent 
file and copy only it. I have no problem developing that find command, but I 
want to rename the copy in the process by pre-pending the file name with the 
hostname so I can differentiate between dumps from different servers. I don't 
want bother with having to implement a destination directory structure since 
new systems may come and go. So I am trying to see how this works by echoing 
the find output, and I can see what the problem is but I don't know how to get 
around it. find's {} place holder is expanding to ./ and I need just 


The command I am testing with is:

   find /var/lib/postgresql/9.1/backup -mmin -60 -a -iname '*.sql' -execdir 
echo "/var/data.backup/`hostname`.{}" ';'

which outputs:

   /var/data.backup/prod1../dump_08-31-13.sql

but I want it to output:

   /var/data.backup/prod1.dump_08-31-13.sql

My final command will be a copy command similar to:

   find /var/lib/postgresql/9.1/backup -mmin -60 -a -iname '*.sql' -execdir cp 
'{}' /var/data.backup/`hostname`.'{}' ';'

but I need to understand how to strip the leading ./ from the filename returned 
by find. Anyone have a suggestion?

Thanks,
Craig


Sent - Gtek Web Mail



--
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/1377960468.350719...@webmail.gtek.biz



Re: Using wget to fill in a form

2012-09-22 Thread craig
For background see the Bath Profile:

http://www.ukoln.ac.uk/interop-focus/bath/

There are also bindings for C, C++ and PHP.  You'll find them at
IndexData's web site.

As far as importing into MySQL or Postgresql, that is up to how you
decide to map the Bath Profile (most likely the one used) over to your
own database structure.  The database being queried via Z39.50 probably
has its data in the MARC21 format and has over 1000 fields and subfields
each with a specific meaning.

Thanks for the info. I didn't realize MARC21 was so complex, but I can always 
create queries that select what I need, I just need to know what to query 
against. I will read up on what you provided.


Sent - Gtek Web Mail



--
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/1348331062.351710...@webmail.gtek.biz



Re: Using wget to fill in a form

2012-09-22 Thread craig
The url you give is for the form. If you enter an ISBN number it will do 
the search.

What you need to do is capture the http header sent when you click 
"submit query" then replace the test ISBN number with whatever number 
you want to search. Wireshark can do this. Simply look for the query 
packet(s).

At some point I thought about trying capture what was being submitted, but 
since my http protocol knowledge is limited I thought the information might 
also be being sent as a URL, which I figured would make wget perfect for this. 
I've got wireshark loaded on something around here, so I will investigate this 
line of thought. Thanks!


Sent - Gtek Web Mail



--
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/1348331110.61631...@webmail.gtek.biz



Re: Using wget to fill in a form

2012-09-22 Thread craig
> As others suggest, the query should be something like:
> 
> wget http://www.loc.gov/cgi-bin/zgate
> --post-data="ACTION=SEARCH&TERM_1=1886411484&SESSION_ID=1234567"

Yeah, I was messing with the --post-data, but I didn't know I had to use an 
ACTION key. Will play with that.

> But I get "session expired" :-(
> 
> (note the "SESSION_ID" field value is completely arbitrary in the above line)
> 
>> And a related side question. From my reading, I've learned that the
>> Z39.50 protocol is used to query databases, usually library related. Is
>> anyone aware of an ISBN database table that can be downloaded by the
>> user, preferably in a format that can be imported into MySQL or
>> PostgreSQL?
> 
> Well, according to this:
> 
> http://www.loc.gov/z3950/gateway.html#about
> 
> You can query the database by means of Z39.50 client, should you find one ;-)

I kind if figured that would be what I needed, but I'm not aware of any Z39.50 
clients.

Thanks!


Sent - Gtek Web Mail



--
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/1348331330.76872...@webmail.gtek.biz



Re: Using wget to fill in a form

2012-09-22 Thread craig
> Using ZOOM, mentioned in my previous post, you can use your perl script
> as a Z39.50 client to search the LOC catalog directly.  There are also
> C, C++ and PHP bindings.

Ah, that makes sense. I will probably get after this again later today or 
tomorrow, and I will definitely post any success stories. It will probably take 
me a while to get back up to speed with perl since I haven't touched it in a 
couple of years.

Craig


Sent - Gtek Web Mail



--
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/1348332366.452110...@webmail.gtek.biz



Re: Using wget to fill in a form

2012-09-25 Thread craig

> Have a look at:

> http://search.cpan.org/dist/WWW-Mechanize/
> 
> Have a read of:
> http://www.perl.com/pub/2003/01/22/mechanize.html
> 
> Do a google search on "perl www::mechanize"
 
Thanks for the reply (and to the other kind folks that took time
to reply). I will have to put this quest off until the weekend at this
point, so know that I am not ignoring the help, please.
 
Craig


Sent - Gtek Web Mail


Is it possible to monitor VTs via ssh?

2012-09-27 Thread craig

Good morning,When I ssh into a remote system, I am able to see what is 
happening on VT2by entering the command 'cat /dev/vcs2'. I tried using tail -f 
to get acontinuous output of the console, but it fails to ever update. Is it 
possibleto watch another VT in real time over ssh?Thanks, Craig


Sent - Gtek Web Mail


RE: Is it possible to monitor VTs via ssh?

2012-09-28 Thread craig
Good morning,  When I ssh into a remote system, I am able to see what is 
happening on VT2 by entering the command 'cat /dev/vcs2'. I tried using tail -f 
to get a continuous output of the console, but it fails to ever update. Is it 
possible to watch another VT in real time over ssh?  Thanks, Craig



What I am trying to do is monitor logs on a remote system. I have the log 
entries going
to the log files as well as VT2. If I ssh into the machine and tail -f the 
system log,
it quits updating when the log is rotated. So I figured if I could watch the 
second
console in real time I would be able to see the same thing without interruption 
when
the log file rotates. Is this possible? Is there a better way to do it?


Sent - Gtek Web Mail



--
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/1348845616.6042...@webmail.gtek.biz



Re: Is it possible to monitor VTs via ssh?

2012-09-28 Thread craig


On Friday, September 28, 2012 10:29, "Darac Marjal"  
said:

> On Fri, Sep 28, 2012 at 10:20:16AM -0500, cr...@gtek.biz wrote:
>> Good morning,  When I ssh into a remote system, I am able to see what is
>> happening on VT2 by entering the command 'cat /dev/vcs2'. I tried using tail 
>> -f
>> to get a continuous output of the console, but it fails to ever update. Is it
>> possible to watch another VT in real time over ssh?  Thanks, Craig
> 
> Try the "vtgrab" package.
> 
> 
Bingo! Thank you so much. I didn't even think of a vnc like console solution.
I was focused on ssh. Your reply is much appreciated.


Sent - Gtek Web Mail



--
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/1348846801.4957...@webmail.gtek.biz



Re: Is it possible to monitor VTs via ssh?

2012-09-28 Thread craig
> Try "tail --follow=mylogfile", this will followed the currently named
> "mylogfile" even if the old file is renamed and a new one opened, rather
> than following the old file which -f does.
> 


I used to know that. Sadly, I even looked at the man page yesterday
before posting and still missed that. Thanks for jogging my brain. It
obviously needed it.

FWIW, I will be setting up a log server in the near future, but we need
this production machine now, and I've got a couple of other priorities,
so I just have an xterm open for monitoring it's logs in real time so I
can start to understand what is normal and what is not for now. The log
server will negate this step.

Thanks!


Sent - Gtek Web Mail



--
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/1348851799.713316...@webmail.gtek.biz



Re: Is it possible to monitor VTs via ssh?

2012-09-28 Thread craig
> That would work. However I think you could also have logrotate use a socket
> for logging (at least -ng). What you might really want to look into is
> splunk or graylog2 (or the other solutions I can never remember).
> 
> Also, socat is another solution for playing with device io. I don't believe
> dealing with vt is the right solution however. Also keep in mind none of
> these solutions will encrypt the stream - use stunnel or similar here.
> 

Thanks for the ideas, and the heads up. I'll test my various new options this
afternoon and decide what will work in the interim until I get the log server
set up, probably next week or the week after.


Sent - Gtek Web Mail



--
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/1348851932.852132...@webmail.gtek.biz



Re: Using wget to fill in a form

2012-09-29 Thread craig
> They've learned a lot about the structure of classification systems since
> LC was set up.

I've been doing some reading, and there is work under way to modernize the
classification system. In the meantime this works for my needs. I do appreciate
the suggestion.


Sent - Gtek Web Mail



--
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/1348956870.8325...@webmail.gtek.biz



Re: Using wget to fill in a form

2012-09-29 Thread craig
In the end I did pretty much as suggested, using wget and re-using session IDs.
I created a bash script that gets a session ID, reads the list of ISBN numbers,
and then tries to retrieve their info. If the retrieval returns a session
expired then it gets a new one. It also does a decent job of outputting the
retrieved records into a csv format for easy import into a database or XML.

The script, and my list of 25 test ISBNs are included below. Interestingly,
about five, or 20% come up with no record found.

If I try to do anything more fancy then I will learn how to query the MARC
system directly. The LOC site has a lot of information available.

I appreciate all of the help and suggestions I received.



#!/bin/bash

#***#
#   getLOCinfo.sh   #
#   #
# A script to read a list of ISBN numbers   #
# from an input file, and to retrieve the   #
# LOC info for that item from the LOC web   #
# search form.  #
#   #
# The input file is expected to contain #
# a single line of ISBN numbers separated   #
# by whitespace. Alternatively, the file#
# can contain one ISBN per line as long as  #
# all but the final line ends with white-   #
# space followed by a backslash (actually   #
# I think all lines can end that way).  #
#***#

# Script Constants:
BASE_URL="http://www.loc.gov/cgi-bin/zgate";
E_BAD_ARGS=65
E_BAD_FILE=66
E_NO_SESSION_ID=67
NUM_ARGS=2
NUM_EXPIRED=10
SUCCESS=0

# Script variables:
expired_count=0
result="Your session has expired"
result_url=$BASE_URL
session_url=$BASE_URL

# A function to get a new sessionid:
GetSessionID ()
{
   session_url=$BASE_URL"?ACTION=INIT&FORM_HOST_PORT=/prod/www/data/z3950/"
   session_url=$session_url"locils2.html,z3950.loc.gov,7090"
   sessionid=`wget $session_url -o /dev/null -O - | \
 grep SESSION_ID | \
 cut -d "\"" -f4`
   if [ -z $sessionid ]
   then
  echo "Unable to get session ID. Exiting"
  exit $E_NO_SESSION_ID
   fi
}

# A function to "build" the request URL:
BuildURL ()
{
   url=$BASE_URL"?ACTION=SEARCH&DBNAME=VOYAGER&ESNAME=B&MAXRECORDS=20&"
   url=$url"RECSYNTAX=1.2.840.10003.5.10&REINIT=/cgi-bin/zgate?ACTION=INIT&"
   url=$url"FORM_HOST_PORT=/prod/www/data/z3950/locils2.html,z3950.loc.gov,"
   url=$url"7090&srchtype=1,1016,2,102,3,3,4,2,5,100,6,1&SESSION_ID=$1&"
   url=$url"TERM_1=$2"
}

# Make sure file names were supplied when the script was called:
if [ $# -ne $NUM_ARGS ]
then
   echo "ERROR: Incorrect number of parameters supplied. Exiting..."
   exit $E_BAD_ARGS
fi

# Make sure the input file exists and is not empty:
if [ ! -f "$1" ] || [ ! -s "$1" ]
then
   echo "ERROR: $1 not found or is an empty file. Exiting..."
   exit $E_BAD_FILE
fi

# Truncate the output file if necessary:
if [ -s $2 ]
then
   echo -n "Warning: $2 exists and is not empty. Continue [y/N]? "
   read input
   if [ `echo $input | tr A-Z a-z` != "y" ]
   then
  echo "Please provide a valid output file name"
  exit $E_BAD_FILE
   fi
   cat /dev/null > $2
fi

# Get a session ID:
GetSessionID

# Read the file contents:
read isbn_list < $1

for isbn in $isbn_list
do
   BuildURL $sessionid $isbn
   result=`wget $url -o /dev/null -O - | tr "\n" " "`
   while [ -n "`echo $result | sed -n -e '/Your session has expired/Ip'`" ] &&
 [ $expired_count -lt $NUM_EXPIRED ]
   do
  let "expired_count+=1"
  GetSessionID
  BuildURL $sessionid $isbn
  result=`wget $url -o /dev/null -O - | tr "\n" " "`
   done

   if [ $expired_count -eq $NUM_EXPIRED ]
   then
  echo "Unable to get session ID. Exiting"
  exit $E_NO_SESSION_ID
   else
  expired_count=0
   fi

   if [ -n "`echo $result | sed -n -e '/No records matched your query/Ip'`" ]
   then
  # Print the not found message to stderr:
  echo "$isbn: No record found" >&2
   else
  echo -n "\"$isbn\"," >> $2
  echo $result | sed -n -e 's/.*\(.*\)<\/pre>.*/\1/Ip' | \
 sed -e 's/  \+/ /g' | \
 sed -e 's/^Author: /"/' | \
 sed -e 's/\., [0-9]\{4\}-[0-9]\{0,4\} \(Title: \)/. \1/' | \
 sed -e 's/\. Title: /","/' | \
 sed -e 's/\. Published: /","/' | \
 sed -e 's/, c\([0-9]\{4\}\)\. LC Call No.: /","\1","/' | \
 sed -e 's/ *$/"/' \
 >> $2
   fi
done

exit $SUCCESS

# ISBN List: ###

0805375651 \
0314027157 \
0201087987 \
9780980232714 \
0131774115 \
0789731274 \
1874416656 \
1886411484 \
9780425238981 \
0070726922 \
0495011622 \
1565927699 \
0673524841 \
0721659659 \
9781847991683 \
0596100795 \
0596001584 \
9780980455205 \
0835930513 \
9780954452971 \
0619121475 \
9780321553577 \
0130424110 \
0201612445 \
9780123705488


Sent - Gtek Web Mail



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a su

Re: Using wget to fill in a form

2012-10-02 Thread craig
> There are several urls on loc.gov that will retrieve book information
> from an ISBN. The one below has no problem with session cookies. So
> wouldn't this quick and dirty one-liner do what you want?
> 
> 
>   #!/bin/sh
> 
>   # loc.sh 
> 
>   elinks -dump -dump-charset utf8 -no-references -no-numbering \
>   "http://www.loc.gov/cgi-bin/zclient?host=z3950.loc.gov&port=\
>   7090&attrset=BIB1&rtype=USMARC&DisplayRecordSyntax=HTML&ESN=F&startrec=\
>   
> 1&maxrecords=10&dbname=Voyager&srchtype=1,7,2,3,3,1,4,1,5,1,6,1&term_term_1=\
>   $1"
> 
> so loc.sh 1886411484 will output the information for the Linux Cookbook
> in a pure text format.
> 

Well that certainly looks a lot better than what I came up with. I will
have to give it a try, but doubt I will have time before Friday to play
with this again. I'll let you know. Out of curiosity, can this be done
with lynx instead since I have it installed? If not, I can always
install elinks.

Thanks!


Sent - Gtek Web Mail



--
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/1349192494.403730...@webmail.gtek.biz



Checking local mail with Icedove

2012-11-01 Thread craig
This may or may not be a dumb question, but I would like to install logcheck on 
my local machine, and then view the emails it generates using Icedove. I guess 
I need a POP or IMAP server running, so my question is, which server should I 
install to access the emails that will be put into a maildir format, and how is 
it configured to accept connections locally only?

Any advice?

Thanks,
Craig


Sent - Gtek Web Mail



--
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/1351805773.77723...@webmail.gtek.biz



Re: Checking local mail with Icedove

2012-11-02 Thread craig

> 
> I don't think you need to bother with POP or IMAP. It appears Icedove
> has an account type called "movemail" that you can point to
> /var/spool/mail/.
> 
> Personally, I use good old /usr/bin/mail for this purpose.
> 
> John

Bingo!, and thanks!

I always have an xterm open, tailing the log time, and I use bsd-mailx for 
local mail.
The reason I want to do this is I am concentrating on a lot of things at the 
moment
and I've managed to miss a few log entries that I wanted to investigate 
further. So I
figured the Icedove popup might catch my attention a bit better.

BTW, for anyone else following this, the movemail account type is found by 
going to:
Edit -> Account Settings
Then click on Account Actions and choose Add Other Account

I had searched the Mozilla community site, but could not find anything even 
remotely
similar to this.


Sent - Gtek Web Mail



--
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/1351861045.4165...@webmail.gtek.biz



Re: Checking local mail with Icedove

2012-11-02 Thread craig


On Friday, November 2, 2012 07:57, cr...@gtek.biz said:

> 
>>
>> I don't think you need to bother with POP or IMAP. It appears Icedove
>> has an account type called "movemail" that you can point to
>> /var/spool/mail/.
>>
>> Personally, I use good old /usr/bin/mail for this purpose.
>>
>> John

Well, it is almost what I want, but the check for new mail on start up and the
check for new mail every X minutes do not seem to work. I can only get mail if
I manually check for new mail. I'm unable to find a solution for those issues,
but I can find others asking about the same thing. I would assume that Icedove
does a pull of the mail spool, so it should be possible to do it on a schedule
or at start up, shouldn't it?


Sent - Gtek Web Mail



--
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/1351868036.0719...@webmail.gtek.biz



Apace Redirect Question

2012-11-02 Thread craig
Good evening folks,

I am trying to teach myself Apache and have run into what seems to be a real
simple problem for which I can not find a solution.

I have two virtual hosts with files in /var/www/htdocs/domain1.com and
/var/www/htdocs/domain2.com. I have a fairly simple configuration file for the
default site that points any requests for my IP address, for http://domain1.com
or for http://domain2.com to a 404 document. The virtual hosts have ServerNames
defined as www.domain1.com and www.domain2.com, and requests to either
http://www.domain1.com or http://www.domain2.com are served the correct pages,
var/www/htdocs/domain1.com/index.html or /var/www/htdocs/domain2.com/index.html.

What I want to do is, if the reqest is for my IP address, or if it is for
http://domain2.com I want the server to continue to serve the ErrorDoc. But I
want to take anything that comes in for http://domain1.com and redirect it to
http://www.domain1.com, with the URL changing in the user's navigation bar (if
that is the correct term). How would I go about accomplishing this goal?

Relevant files (BTW, I am playing on a series of virtual boxes right now):

Myapache2.conf is the stock file from the apache2-mpm-prefork package
installation, with the addition of the following line:
   DefaultType text/plain

/etc/apache2/ports.conf:
   NameVirtualHost *:80
   Listen 192.168.26.10:80

/etc/apache2/sites-available/default:
   
  ServerAdmin  webmas...@domain1.com
  ServerName   default
  DocumentRoot /var/www
  ErrorDocument 404 /error404.html

  
 Options   FollowSymLinks
 AllowOverride None
  

  
 Options   Indexes FollowSymLinks MultiViews
 AllowOverride None
 Order allow,deny
 allow fromall
 

  # Possible values include: debug, info, notice, warn, error, crit,
  # alert, emerg.
  LogLevel  warn
  ErrorLog  ${APACHE_LOG_DIR}/error.log
  CustomLog ${APACHE_LOG_DIR}/access.log combined
   

/etc/apache2/sites-available/domain1:
   
  ServerAdmin  webmas...@domain1.com
  ServerName   www.domain1.com
  DocumentRoot /var/www/htdocs/domain1.com

  
 Options   FollowSymLinks
 AllowOverride None
  

  # Possible values include: debug, info, notice, warn, error, crit,
  # alert, emerg.
  LogLevel   warn
  ErrorLog  ${APACHE_LOG_DIR}/domain1.com/error.log
  CustomLog ${APACHE_LOG_DIR}/domain1.com/access.log combined
   

/etc/apache2/sites-available/domain2 is identical, other than domain2 being
used where domain1 is.

/var/www contains the simple error404.html, and /var/www/htdocs/domain1.com and
/var/www/htdocs/domain2.com each contain a simple index.html, which is just the
usual Apache "It Works" file with "It" replaced by the appropriate domain name.

Thanks,
Craig


Sent - Gtek Web Mail



--
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/1351904512.9916...@webmail.gtek.biz



Re: Apache (was Apace) Redirect Question

2012-11-03 Thread craig


On Friday, November 2, 2012 21:48, "Wolf Halton"  said:

> Make these changes in sites-available files. That is what those files in
> there are for.
> I don't have the specific directive but I can put up one of my servers'
> apache files for you.
> 
> Wolf Halton
> http://sourcefreedom.com
> Apache developer:
> wolfhal...@apache.org

Thanks Wolf, and it makes sense that the directives that apply to a site would
go in that site's definition. I just don't quite understand what I need to put
in there. When I check the default site access logs, I see the request for
http://domain1.com come in as /, but I also see the same for domain2.com and
for the IP address. All three show up as "GET / HTTP/1.1" I understand that the
server does not know about the sites by those names because I haven't 
configured it to do so.

Obviously Apache is capable of this distinction because if I change the
ServerName in domain1's sites-available to domain1.com then the index.html file
in /var/www/htdocs/domain1.com is returned to the client. If I add the 
ServerAlias www.domain1.com directive then both the request for domain1.com and 
the request for www.domain1.com return /var/www/htdocs/domain1.com/index.html,
but the URL does not change in the navigation bar, and both show up in the log 
as "GET / HTTP/1.1".

I know I've entered URL's into my browser's navigation bar and watched them
change to something else, such as entering http://example.com and being
redirected to http://www.example.com, with that URL then populating the
navigation bar. So I'm close in that both requests return the file that I
want returned, but I don't know how to have the URL change so the user sees
the URL I want them to see.

So I guess what I'm asking is, how do I configure things so that the server
knows a request for domain1.com should be handled as if it were a request for
www.domain1.com, and sends the client to that URL?

Thanks,
Craig


Sent - Gtek Web Mail



--
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/1351945905.66525...@webmail.gtek.biz



Re: Apache (was Apace) Redirect Question

2012-11-03 Thread craig
Wolf, thank you very much for graciously providing the examples. I will
study this to gain an understanding, and I will let you know how it goes.

Craig

> Here are the settings for one of my multisite servers.
> I am using Apache2.2 on Debian Squeeze with the backports repo enabled
> - thus it is not a stock Squeeze install
> This is even simpler than I thought I would be giving you as the
> NameVirtualHost directive is in conf.d/virtual.conf
> If you notice, the apache2.conf file has only the generic server info
> and all of the specific user configs are in other places.
> It handles the "did they type www. or not in the virtual config as a
> server alias.  This is not a redirect, which would add details to the
> url, like you get when you type http://evergreen.lyrasistechnology.org
> into the address bar, because these 2 directories are simply not
> shared.
> The evergreen address is pointed at a directory outside of /var/www
> and can be shared by multiple clients and the search scope is
> different in each.
> ** You may get a warning when you restart apache with this setup
> because default-ssl is listening on port 443 - the complaint will be
> that apache does not like mixing virtual servers with port numbers and
> others without.  I haven't had to restart this setup for months, so I
> don't remember the exact warning message.
> 
> -Wolf
> 
> 
> #===snippet from apache2.conf
> 
> # Include generic snippets of statements
> Include conf.d/
> 
> 
> 
> #===Contents of conf.d directory===
> wolf@SERVER-01:/etc/apache2/conf.d$ ls
> charset  localized-error-pages  other-vhosts-access-log  security  
> virtual.conf
> 
> 
> #===Configuration of virtual.conf===
> 
> wolf@SERVER-01:/etc/apache2/conf.d$ cat virtual.conf
> # running virtual hosts
> #
> NameVirtualHost *
> 
> #==Contents of the sites-available directory
> 
> wolf@SERVER-01:/etc/apache2/sites-available$ ls
> default  default-ssl  legacy
> 
> #==Configuration for dev.example.net
> 
> wolf@SERVER-01:/etc/apache2/sites-available$ cat default
> 
>   ServerAdmin wolf.hal...@lyrasis.org
>   ServerName dev.example.net
>   ServerAlias www.dev.example.net
> 
>   DocumentRoot /var/www/http/
>   
>   Options FollowSymLinks
>   AllowOverride All
>   
>   
>   Options Indexes FollowSymLinks MultiViews
>   AllowOverride All
>   Order allow,deny
>   allow from all
>   
> 
>   ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
>   
>   AllowOverride None
>   Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
>   Order allow,deny
>   Allow from all
>   
> 
>   ErrorLog /var/log/apache2/error.log
> 
>   # Possible values include: debug, info, notice, warn, error, crit,
>   # alert, emerg.
>   LogLevel warn
> 
>   CustomLog /var/log/apache2/access.log combined
> 
> Alias /doc/ "/usr/share/doc/"
> 
> Options Indexes MultiViews FollowSymLinks
> AllowOverride None
> Order deny,allow
> Deny from all
> Allow from 127.0.0.0/255.0.0.0 ::1/128
> 
> 
> 
> 
> #Configuration for legacy.example.net==
> wolf@SERVER-01:/etc/apache2/sites-available$ cat legacy
> # This is the settings file for the legacy.example.net site
> 
> 
> ServerAdmin wolf.hal...@lyrasis.org
> ServerName  www.legacy.example.net
> ServerAlias legacy.example.net
> 
> # Indexes + Directory Root.
> DirectoryIndex index.html
> DocumentRoot /var/www/legacy/htdocs/
> 
> # CGI Directory
> ScriptAlias /cgi-bin/ /var/www/legacy/cgi-bin/
> 
> Options +ExecCGI
> 
> 
> 
> # Logfiles
> ErrorLog  /var/www/legacy/logs/error.log
> CustomLog /var/www/legacy/logs/access.log combined
> 
> 
> 
> --
> This Apt Has Super Cow Powers - http://sourcefreedom.com
> Open-Source Software in Libraries - http://FOSS4Lib.org
> Advancing Libraries Together - http://LYRASIS.org
> Apache Open Office Developer wolfhal...@apache.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/CALRLYEmYvqzFFSidNhv5V+ka0YQr7A-6FK3u-=s0aph1-0k...@mail.gmail.com
> 
> 



Sent - Gtek Web Mail



--
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/1351976583.48636...@webmail.gtek.biz



Re: Apache (was Apace) Redirect Question

2012-11-04 Thread craig
> Here are the settings for one of my multisite servers.

Good afternoon Wolf,

I am afraid I am not accomplishing what I want to do with your information
either. I've tried to get it to work with my layout, but no matter what
I do, entering http://domain1.com in the client's browser either gives
me a 404 if there is nothing explictely defined to serve a request for
http://domain1.com, or if I define a server alias, then the URL never changes
to http://www.domain1.com, but the page is served. This is basically what
I had with my site definitions too.

I did find some old documentation on the Apache site that seems to support
exactly what I want to do, but I am unable to make it work either. Granted
this is for version 2.0, but the regular expressions should be valid. That URL
is http://httpd.apache.org/docs/2.0/misc/rewriteguide.html. The description
under the section labeled Canonical Hostnames reads:

"The goal of this rule is to force the use of a particular hostname,
in preference to other hostnames which may be used to reach the same
site. For example, if you wish to force the use of www.example.com instead
of example.com, you might use a variant of the following recipe."

The rewrite rules listed for that recipe are:
   RewriteCond %{HTTP_HOST}   !^www\.example\.com [NC]
   RewriteCond %{HTTP_HOST}   !^$
   RewriteRule ^/(.*) http://www.example.com/$1 [L,R]

I have placed these rules as global directives in /etc/apache2/apache2.conf,
and they did not work. I tried them in the default site file, and in the
vhost definition for domain1.com. Again, unless I have a line in the file
sites-avaliable/domain1.com that reads "ServerAlias domain1.com", the request
for http://domain1.com results in a 404 error. If I place the ServerAlias
line in the file, the page is served, but URL is never rewritten. I have even
created a LogFormat template that captures the host request, and domain1.com
is what is being requested.

It is almost as if the rewrite engine is never made aware of the fact that
the condition it is supposed to be looking for has in fact occurred. I find
it hard to beleive this is a bug that has gone unnoticed for this long, so
I've got to believe it is something I've done wrong. But I have followed the
example exactly as written, and I am familar enough with regular expressions
to know that !^www\.domain1\.com [NC] means a host that does not start with
www.domain1.com, ignoring letter case, and that !^$ means the host request is
not empty. So why does a request for domain1.com, which meets both criteria,
not trigger the rewrite rule?

At this point I am utterly frustrated because the documentation is clear,
but following it fails. I just want to type http://domain1.com into the
address bar, and have Apache change it to http://www.domain1.com. I just do
not know how to accomplish this.


Sent - Gtek Web Mail



--
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/1352072207.864818...@webmail.gtek.biz



Re: Apache (was Apace) Redirect Question

2012-11-04 Thread craig
On Saturday, November 3, 2012 19:38, "mouss"  said:

> Le 03/11/2012 13:31, cr...@gtek.biz a écrit :
>>
>> [snip]
>> I know I've entered URL's into my browser's navigation bar and watched them
>> change to something else, such as entering http://example.com and being
>> redirected to http://www.example.com, with that URL then populating the
>> navigation bar. So I'm close in that both requests return the file that I
>> want returned, but I don't know how to have the URL change so the user sees
>> the URL I want them to see.
>>
>> So I guess what I'm asking is, how do I configure things so that the server
>> knows a request for domain1.com should be handled as if it were a request for
>> www.domain1.com, and sends the client to that URL?
>>
> 
> in domain1.com vhost config:
> 
> redirect permanent / http://www.domain1.com/
> 
> 
> source:
>   http://httpd.apache.org/docs/2.2/en/mod/mod_alias.html#redirect

Hi mouss,

Unfortunately, if I leave the "ServerAlias domain1.com" line out of the
sites-available/domain1.com file, all requests for http://domain1.com result
in a 404 error, with or without this redirect. If I put that line in the
file then this redirect results in an error page that states something to
the effect of "Icedove has detected that this page is being redirected in
a manner that will never complete."


Sent - Gtek Web Mail



--
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/1352072715.965918...@webmail.gtek.biz



Re: Apache (was Apace) Redirect Question

2012-11-04 Thread craig
> did you link the sites in sites-available to sites-enabled?
> 
> Wolf Halton
> http://sourcefreedom.com
> Apache developer:
> wolfhal...@apache.org

$ ls -l /etc/apache2/sites-enabled/
total 0
lrwxrwxrwx 1 root root 26 Oct 14 16:58 000-default -> ../sites-available/default
lrwxrwxrwx 1 root root 34 Oct 14 18:08 domain1.com -> 
../sites-available/domain1.com
lrwxrwxrwx 1 root root 34 Oct 14 18:42 domain2.com -> 
../sites-available/domain2.com

I I recall using a2ensite for the sites, and a2enmod to enable the rewrite
module. That is the only module I've had to enable. Sure would have been
nice if it had only been missing links though.


Sent - Gtek Web Mail



--
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/1352080651.246218...@webmail.gtek.biz



[SOLVED] Re: Apache Redirect Question

2012-11-06 Thread craig
> did you link the sites in sites-available to sites-enabled?
> 
> Wolf Halton
> http://sourcefreedom.com

>> >
>> > in domain1.com vhost config:
>> >
>> > redirect permanent / http://www.domain1.com/
>> >
>> > source:
>> >   http://httpd.apache.org/docs/2.2/en/mod/mod_alias.html#redirect

Good morning Mouss and Wolf,

I have managed to accomplish my goal, and it was with help from both of
you. Mouss, your tip is almost correct if I make two changes, and Wolf,
your question started this line of thought for me.

I copied my existing sites-available/domain1.com to
sites-available/www.domain1.com, ran a2ensite www.domain1.com, then modified
sites-available/domain1.com. It points the DocumentRoot to /var/www, same as
sites-available/default. There is no index.html in that directory. I then
added:
   RedirectMatch "/(.*)" "http://www.domain1.com/$1";
What this does is take any request for domain1.com, with any additional
paths, and redirects the request to http://www.domain1.com, with any
additional paths from the first request appended to the URL (I think that's
the correct terminology).

So now if the user request is just the server's IP address, the default site
returns the 404 ErrorDoc. If the request is for http://domain2.com, the same
is returned. If the request is for http://www.domain2.com,
/var/www/htdocs/domain2.com/index.html is returned.

If the request is for http://domain1.com, it is redirected to 
http://www.domain1.com, with that URL then appearing in the address bar as
I wanted. Finally, all requests for http://www.domain1.com return
/var/www/htdocs/domain1.com/index.html.

In the end, I have five sites in sites-available, with four of them linked
from sites-enabled: default; default-ssl; domain1.com; domain2.com;
www.domain1.com

Common sense dictates that I rename my /var/www directories to
/var/www/htdocs/www.domainX.com, and sites-available/domain2.com to
sites-available/www.domain2.com so I can maintain the name to site mapping
in my mind.

The contents of sites-available/domain1.com

   ServerAdmin  webmas...@domain1.com
   ServerName   domain1.com
   DocumentRoot /var/www/
   RedirectMatch "/(.*)"  "http://www.domain1.com/$1";

   
  Options   FollowSymLinks
  AllowOverride None
   

   # Possible values include: debug, info, notice, warn, error, crit,
   # alert, emerg.
   LogLevel   warn
   ErrorLog  ${APACHE_LOG_DIR}/domain1.com/error.log
#   CustomLog ${APACHE_LOG_DIR}/domain1.com/access.log mydebug
   CustomLog ${APACHE_LOG_DIR}/domain1.com/access.log combined



Sent - Gtek Web Mail



--
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/1352215092.5248...@webmail.gtek.biz



Re: [SOLVED] Re: Apache Redirect Question

2012-11-06 Thread craig
>> [snip]
>>
>> Common sense dictates that I rename my /var/www directories to
>> /var/www/htdocs/www.domainX.com, and sites-available/domain2.com to
>> sites-available/www.domain2.com so I can maintain the name to site mapping
>> in my mind.
> 
> I personally prefer things like sites-avaiable/www.domain2.com.conf
> (with a .conf or whatever suffix) for two reasons:
> - a file name ending in a .com is a bit disturbing ('ls' will show it as
> a special fil...; you can't send it via email without renaming it, ...
> etc.).
> - I don't like the "include *". if you happen to add a file in the
> directory (or if you editor creates backup files in the current dir),
> then these end up being included.

Excellent advice! Like I said, I'm teaching myself this, and I'll take all
of the pointers I can get. This is for personal use, but I do have to
dabble with the web servers at work on occasion so anything I happen to
pick up can only help.

Thanks again, and back to work now.
Craig


Sent - Gtek Web Mail



--
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/1352238810.54585...@webmail.gtek.biz



RE: Countdown To Black Friday 2012 Deals Week - Early Amazon Black Friday 2012 Deals

2012-11-07 Thread craig
I love people that are dumb enough to spam mailing lists with their real
domain. Just added couponinstantly.com to my block list.

Thanks!

On Wednesday, November 7, 2012 08:24, "Amazon Deals" 
 said:

> Hi, I have a good news for you !
> 
> Amazon has started warming up customers for their Black Friday 2012 Deals week
> with the aptly named Countdown to Black Friday Deals week. To get customers
> accustomed to their Black Friday sales format, the Countdown to Black Friday 
> Deals
> event can be viewed as a practice run, only Amazon will still be offering 
> amazing
> deals.
> 
>>> Shop Amazon – Countdown to Black Friday Deals Right now
> 
> Countdown to Black Friday Deals:
> 
> Computers & Accessories Deals
> Watches Deals
> Camera, Photo & Video Deals
> Sports & Outdoors Deals
> Video Games Deals
> Cell Phones and Accessories Deals
> Toys & Games
> Home & Garden
> See More Deals Here ...
> 
> ==> Get Best Deals in Amazon Black Friday 2012 <==
> 
> 
> That's all? No, Do you know that you can also get Thanksgiving deals from 
> Amazon
> right now?
> 
> Just follow this link to find Thanksgiving deals in Thanksgiving cookbooks, 
> turkey
> fryers and roasting pans, and elegant wine glasses and serving platters.
> 
> Shop Amazon – Thanksgiving Event – Everything You Need for the Perfect
> Feast
> 
> 



Sent - Gtek Web Mail



--
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/1352313943.04923...@webmail.gtek.biz



Re: Countdown To Black Friday 2012 Deals Week - Early Amazon Black Friday 2012 Deals

2012-11-08 Thread craig
Oops, that was rather thoughtless. Apologies to all.

On Thursday, November 8, 2012 03:20, "Brad Rogers"  said:

> On Wed, 7 Nov 2012 12:45:43 -0600 (CST)
> cr...@gtek.biz wrote:
> 
> Hello cr...@gtek.biz,
> 
>>I love people that are dumb enough to spam mailing lists with their real
>>domain. Just added couponinstantly.com to my block list.
> 
> Yeah, and the wankers that quote spam, whilst complaining about it, are
> rocket scientists.
> 
> Not.
> 
> --
>  Regards  _
>  / )   "The blindingly obvious is
> / _)radnever immediately apparent"
> That's what I call you
> Heaven Sent - INXS
> 



Sent - Gtek Web Mail



--
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/1352388572.537514...@webmail.gtek.biz



xen on wheezy

2012-12-27 Thread craig
I am trying to learn virtualization with Xen on Wheezy. I have installed Wheezy 
on an old AMD Athlon XP system, and installed the 
xen-linux-system-3.2.0-4-686-pae metapackage. I understand that I also need 
"...a kernel specifically crafted to work as the Domain 0, mediating hardware 
access for XEN itself." Must I build that kernel, or is there a package that 
contains the kernel?

The metapackage installation installed several other packages, and there is a 
file in /boot by the name of xen-4.1-i386.gz, but when I try to point lilo.conf 
to it, I get a fatal error from lilo: "Setup length exceeds 63 maximum; kernel 
setup will overwrite boot loader"

Any pointers would be appreciated.

Thanks,
Craig


Sent - Gtek Web Mail



--
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/1356633196.079130...@webmail.gtek.biz



Re: xen on wheezy

2012-12-27 Thread craig
On Thursday, December 27, 2012 17:14, "Patrick Bartek"  
said:

>> Any pointers would be appreciated.
> 
> 
> I would restart at the beginning:
> 
>    http://www.xen.org/support/documentation.html
> 
>    http://wiki.debian.org/Xen> 

Well I've been through those, and several other pages. The only real difference 
is I'm using Lilo instead of Grub. I found Grub far too poorly documented to be 
useful many years ago (one of the reasons I gave up on Red Hat and went to 
Debian), and it doesn't look like it's gotten much better (22 man pages!?). I 
figured a boot loader is a boot loader?


Sent - Gtek Web Mail



--
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/1356652484.6636...@webmail.gtek.biz



Re: xen on wheezy

2012-12-28 Thread craig
On Thursday, December 27, 2012 19:55, "Patrick Bartek"  
said:

>>>  I would restart at the beginning:
>>>
>>>     http://www.xen.org/support/documentation.html
>>>
>>>     http://wiki.debian.org/Xen>
>>
>> Well I've been through those, and several other pages. The only real
>> difference is I'm using Lilo instead of Grub. I found Grub far too poorly
>> documented to be useful many years ago (one of the reasons I gave up on Red 
>> Hat
>> and went to Debian), and it doesn't look like it's gotten much better
>> (22 man pages!?). I figured a boot loader is a boot loader?
> 
> 
> I think your problem is something other than just the bootloader.  That's why
> I suggested starting over at the beginning.  I think you missed installing
> something or mis-installed something.  Check the hardware compatibility
> section of the Debian wiki, too.
> 
> As far as help with lilo:  It's been so long since I worked with it (8
> years?) I'd have to learn it all over.  But in the Xen home link, under
> Beginner's docs--right side of page, in the sidebar--it gives you generic
> step-by-step instructions, plus, IIRC, a bootloader config file example.
>  Maybe, that will help some.  At least, give you an idea of what the
> stanza is suppose to look like.

Well I've got a fresh set of eyes this morning, and you are most likely right
that I've missed something. I will go back through and see what I can come
up with. Thanks for the pointers.


Sent - Gtek Web Mail



--
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/1356707502.145230...@webmail.gtek.biz



lightdm login screen minor issue

2012-12-30 Thread craig
Good evening,

I am trying to install a minimalist install with an XFCE desktop environment on
an old laptop. I did a clean install of wheezy, and deselected all tasks during
the install. I then booted and launched aptitude with the --without-recomends
option, and installed the task-xfce-desktop task. The resulting environment
was a bit less than I wanted, but I was able to get everything going, with
one minor exception.

At the login screen, there are two buttons in the top right-hand corner,
one for switching hi-contrast and large fonts on or off, and the other
for restarting or shutting the system down. That power "button" has no
functionality to it. When I click on it, a blank panel opens and there is
nothing to click on. I am at a loss trying to figure out what drives that
missing functionality. Can anyone give me a nudge in the right direction?

Thanks,
Craig


Sent - Gtek Web Mail



--
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/1356923962.5388...@webmail.gtek.biz



Re: lightdm login screen minor issue

2013-01-01 Thread craig
On Tuesday, January 1, 2013 05:39, "Claudius Hubig"  
said:

> Hello cr...@gtek.biz,
> 
> what a wonderful name :)
> 
> cr...@gtek.biz wrote:
>> At the login screen, there are two buttons in the top right-hand corner,
>> one for switching hi-contrast and large fonts on or off, and the other
>> for restarting or shutting the system down. That power "button" has no
>> functionality to it. When I click on it, a blank panel opens and there is
>> nothing to click on. I am at a loss trying to figure out what drives that
>> missing functionality. Can anyone give me a nudge in the right direction?
> 
> What packages related to lightdm do you have installed? To check, try
> something like
> 
> # dpkg -l lightdm*
> 
> Do you have upower installed? lightdm suggests it, and it appears to
> be related to system-wide power management. Again, try
> 
> # dpkg -l upower
> 
> to see if/what is installed.
> 
> Best,
> 
> Claudius

Hi Claudius

As requested:
$ dpkg -l lightdm*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ NameVersionArchitecture   Description
+++-===-==-==-===
ii  lightdm 1.2.2-4i386   simple display manager
un  lightdm-greeter (no description available)
un  lightdm-gtk (no description available)
ii  lightdm-gtk-greeter 1.1.6-2i386   simple display manager 
(GTK+ greeter)

$ dpkg -l upower
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ NameVersionArchitecture   Description
+++-===-==-==-===
ii  upower  0.9.17-1   i386   abstraction for power 
management

Looks like I've got both installed correctly. I did compare the full dpkg
list on this system and another system that installed all of the task
recommends, and I don't see any power related packages that are missing.

This is not a do or die situation, but I would like to understand what I
may have missed. I appreciate the suggestions.


Sent - Gtek Web Mail



--
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/1357044950.048131...@webmail.gtek.biz



32-bit Kernel on 64-bit CPU?

2013-01-17 Thread craig
Hello all,

I have a fairly modern Desktop PC with two Intel Xeon X5690 Processors. It
appears the default install of Wheezy installed a 32-bit kernel, because qemu
will not allow me to allocate more than 2047MB of RAM. How can I verify that
is the case, and if so, can anyone point me to anything that might help me
understand how to get a 64-bit kernel? Do I just need to select the correct
ARCH (which I'm getting ready to try in the meantime)?

Regards, Craig


Sent - Gtek Web Mail



--
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/1358449786.68023...@webmail.gtek.biz



Re: 32-bit Kernel on 64-bit CPU?

2013-01-17 Thread craig
On Thursday, January 17, 2013 13:13, berenger.mo...@neutralite.org said:

>> can anyone point me to anything that might help me
>> understand how to get a 64-bit kernel?
>>
>> Regards, Craig
> 
> SImply download the correct arch, which is named amd64 (it is ok for
> intel proc too)

Didn't know that (ok for intel)! So you're saying to just install the
linux-image-3.2.0-4-amd64 package? That's certainly easier than compiling
a Kernel.

Thanks!


Sent - Gtek Web Mail



--
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/1358452424.19144...@webmail.gtek.biz



Re: 32-bit Kernel on 64-bit CPU?

2013-01-17 Thread craig
On Thursday, January 17, 2013 14:33, berenger.mo...@neutralite.org said:

> Le 17.01.2013 20:53, cr...@gtek.biz a écrit :
>> On Thursday, January 17, 2013 13:13, berenger.mo...@neutralite.org
>> said:
>>
>>>> can anyone point me to anything that might help me
>>>> understand how to get a 64-bit kernel?
>>>>
>>>> Regards, Craig
>>>
>>> SImply download the correct arch, which is named amd64 (it is ok for
>>> intel proc too)
>>
>> Didn't know that (ok for intel)! So you're saying to just install the
>> linux-image-3.2.0-4-amd64 package? That's certainly easier than
>> compiling
>> a Kernel.
>>
>> Thanks!
>>
>>
>> Sent - Gtek Web Mail
> 
> Hum... this might be an option, but the easier is to install from the
> amd64 iso, since with only the kernel using amd64, you will not have
> benefits from your x86_64 arch.

So just do a clean install? That I can do, but not today then. FWIW,
installing just the package did not resolve the qemu error. I do get an
x86-64 option in the Virtual Machine Manager now, but I still fail with
the same "qemu: at most 2047 MB RAM can be simulated" error.

> 
> I am not even sure that installing that kernel is hard.
> 
> About compiling, modern linux distributions need really few compiling,
> and only for very rare cases (rare softwares, enabling a specific
> option...). Except for source distros like gentoo, of course.
> 
You're likely right. I haven't had to compile a kernel in a while. I
usually get to do that when I'm building a production server since I
like to go module-less then. I'm just lost now because I haven't had to
mess with a 64-bit system before, other than my AMD64 desktop at home.



Sent - Gtek Web Mail



--
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/1358455447.26530...@webmail.gtek.biz



Re: 32-bit Kernel on 64-bit CPU?

2013-01-17 Thread craig
On Thursday, January 17, 2013 15:30, "Hugo Vanwoerkom"  
said:

>> I have a fairly modern Desktop PC with two Intel Xeon X5690 Processors. It
>> appears the default install of Wheezy installed a 32-bit kernel, because qemu
>> will not allow me to allocate more than 2047MB of RAM. How can I verify that
>> is the case, and if so, can anyone point me to anything that might help me
>> understand how to get a 64-bit kernel? Do I just need to select the correct
>> ARCH (which I'm getting ready to try in the meantime)?
> 
> What's the output of
> 
> dpkg --print-architecture
> dpkg --print-foreign-architectures

[my-desktop:~]$ dpkg --print-architecture
i386
[my-desktop:~]$ dpkg --print-foreign-architectures
[my-desktop:~]$

I assume, after a quick search of man dpkg, that I should probably add the
correct architecture? Or is this telling us that I installed from the i386
netinst iso (which I did), and that I need to re-install from the amd64?


Sent - Gtek Web Mail



--
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/1358459117.324528...@webmail.gtek.biz



Re: 32-bit Kernel on 64-bit CPU?

2013-01-18 Thread craig
On Thursday, January 17, 2013 16:08, "Hugo Vanwoerkom"  
said:

>>> What's the output of
>>>
>>> dpkg --print-architecture
>>> dpkg --print-foreign-architectures
>>
>> [my-desktop:~]$ dpkg --print-architecture
>> i386
>> [my-desktop:~]$ dpkg --print-foreign-architectures
>> [my-desktop:~]$
>>
>> I assume, after a quick search of man dpkg, that I should probably add the
>> correct architecture? Or is this telling us that I installed from the i386
>> netinst iso (which I did), and that I need to re-install from the amd64?
>>
>>
> 
> AFAIK you have to reinstall with
> http://cdimage.debian.org/cdimage/wheezy_di_beta4/amd64/iso-cd/debian-wheezy-DI-b4-amd64-netinst.iso
> 
> Because adding a foreign architecture is only for adding its libraries
> to run some applications, not for running its kernel.
> 
> Hugo

Thanks Hugo, I'm re-installing from that iso right now. I'll let you know how
that works out.

Part of my lack of understanding is undoubtedly due to my lack of experience
with newer hardware. My "newest" Debian system outside of this desktop is a
seven year-old Dell server, and I set it up over a year ago with Squeeze and
haven't had to mess with it since, other than the usual updates, configuration
changes, etc. I've never had any experience with Debian on anything other than
older Intel hardware. I do maintain several much newer systems here at work,
but they are Dell x86-64 running CentOS, and I inherited them.

In t he meantime, I'll go back and re-read the install guides since my knowledge
is obviously way out of date.


Sent - Gtek Web Mail



--
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/1358525700.83787...@webmail.gtek.biz



Re: 32-bit Kernel on 64-bit CPU?

2013-01-18 Thread craig
On Thursday, January 17, 2013 16:44, "Lisi Reisz"  said:

> On Thursday 17 January 2013 20:44:07 cr...@gtek.biz wrote:
>> > Hum... this might be an option, but the easier is to install from the
>> > amd64 iso, since with only the kernel using amd64, you will not have
>> > benefits from your x86_64 arch.
>>
>> So just do a clean install? That I can do, but not today then.
> 
> Much the best, if it is feasible.  Default Wheezy is not responsible - you
> must have used a 32 bit iso. ;-)
> 
> Lisi

Yes, I used the 32-bit i386 installer. I should have termed it that way, and
that is, from what I've gathered, the source of my problems.

I am re-installing with amd64 installer as we speak. Will let you know how
that works out.

Thanks!


Sent - Gtek Web Mail



--
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/1358525942.155232...@webmail.gtek.biz



Re: 32-bit Kernel on 64-bit CPU?

2013-01-18 Thread craig
On Thursday, January 17, 2013 17:08, "Andrei POPESCU" 
 said:

> On Jo, 17 ian 13, 13:09:46, cr...@gtek.biz wrote:
>> Hello all,
>>
>> I have a fairly modern Desktop PC with two Intel Xeon X5690 Processors. It
>> appears the default install of Wheezy installed a 32-bit kernel, because qemu
>> will not allow me to allocate more than 2047MB of RAM. How can I verify that
> 
> uname -a
> 
>> is the case, and if so, can anyone point me to anything that might help me
>> understand how to get a 64-bit kernel? Do I just need to select the correct
>> ARCH (which I'm getting ready to try in the meantime)?
> 
> Currently the only 32-bit kernel in wheezy without PAE support for i386
> is the -486 flavour, but the installer would not install that unless
> your processor(s) are not supported by the other images.
> 
> If this is indeed the case ('uname -a' will tell) and you can reproduce
> it you might want to send an installation report.
> 
> Kind regards,
> Andrei

Hi Andrei,

I used the i386 net install image, and selected the (if I remember correctly)
i686-3.2.0-4-pae kernel. Are you saying that should have installed the 64-bit
kernel or that I got the 32-bit kernel I did't realize I was asking for?

I've begun the process of re-installing with the amd64 net install image, but
on a separate hard drive. I can still boot into the original system, but I did
install the linux-image-3.2.0-4-amd64 package yesterday. The only dependency
installed with it was firmware-linux-free:i386.

I'll be happy to post the install report from that install if you would still
like to see it.


Sent - Gtek Web Mail



--
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/1358526370.477627...@webmail.gtek.biz



Re: 32-bit Kernel on 64-bit CPU?

2013-01-18 Thread craig
On Friday, January 18, 2013 11:13, "Andrei POPESCU"  
said:

> On Vi, 18 ian 13, 10:26:10, cr...@gtek.biz wrote:
>>
>> I used the i386 net install image, and selected the (if I remember correctly)
>> i686-3.2.0-4-pae kernel. Are you saying that should have installed the 64-bit
>> kernel or that I got the 32-bit kernel I did't realize I was asking for?
> 
> The 686-pae kernel is 32-bit, nothing strange here.

And that is what I unknowingly asked for, so all is good here.

> 
> However, in your OP you mentioned not being able to allocate more than 2
> GB with qemu. Unless this is some limitation of qemu it should have
> worked with the -686-pae kernel, which is why I thought the installer
> got the -486 (non-pae) kernel for you (which would have been a bug).

I seem to recal the -486 kernel being an option, one of five or six that
I could choose from. But it was also a 2.6 kernel, I think.

Thanks for the clarification, and sorry for causing the confusion.

I haven't been able to find a clear answer for why I would not have been
able to allocate more RAM, but I did see one thread that seemed to indicate
32-bit addressing could be a cause. That is what started me down that path.

This could also just be a result of the learning curve I need to go through
to learn qemu. We'll find out in a bit I think. I had wanted to experiment
some on my home system but haven't had time. I'm at the point here that it
would be a big help if I could build some VMs here without fear of tearing
up a needed system. I've gotten it working with qemu-kvm on one of our
CentOS servers, but it is remote and I'd like to do away with the network
lag and the possibility of being cut off if we have network issues during
an upcoming cable run.



Sent - Gtek Web Mail



--
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/1358530664.713226...@webmail.gtek.biz



Re: 32-bit Kernel on 64-bit CPU? [SOLVED]

2013-01-18 Thread craig
On Thursday, January 17, 2013 16:08, "Hugo Vanwoerkom"  
said:

 understand how to get a 64-bit kernel? Do I just need to select the correct
> 
> AFAIK you have to reinstall with
> http://cdimage.debian.org/cdimage/wheezy_di_beta4/amd64/iso-cd/debian-wheezy-DI-b4-amd64-netinst.iso
> 
> Because adding a foreign architecture is only for adding its libraries
> to run some applications, not for running its kernel.
> 
> Hugo

After re-installing off of a usb stick with the
debian-wheezy-DI-b4-amd64-netinst.iso image, I did the following:

Installed qemu-kvm, libvirt-bin, virt-manager, and virt-viewer
Added the physical volume I want my VMs on
Extended the volume group
Created the new logical volume
Formatted and mounted it to /var/lib/libvirt/images
Launched Virtual Machine Manager

I was then able to create a new VM with 3072 MB of RAM, so it looks like my
choice of install image was the issue. Thanks to all for the help.


Sent - Gtek Web Mail



--
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/1358543052.75231...@webmail.gtek.biz



Re: 32-bit Kernel on 64-bit CPU?

2013-01-18 Thread craig
On Friday, January 18, 2013 11:13, "Andrei POPESCU"  
said:

> On Vi, 18 ian 13, 10:26:10, cr...@gtek.biz wrote:
>>
>> I used the i386 net install image, and selected the (if I remember correctly)
>> i686-3.2.0-4-pae kernel. Are you saying that should have installed the 64-bit
>> kernel or that I got the 32-bit kernel I did't realize I was asking for?
> 
> The 686-pae kernel is 32-bit, nothing strange here.
> 
> However, in your OP you mentioned not being able to allocate more than 2
> GB with qemu. Unless this is some limitation of qemu it should have
> worked with the -686-pae kernel, which is why I thought the installer
> got the -486 (non-pae) kernel for you (which would have been a bug).

This is a problem with qemu. I seem to have missed the line about "except
64-bit guests on 32-bit hosts" Reloading with the amd64 iso image has
resolved the problems. I just allocated 3073 MB to a vm with no problem.

Thanks for your time!


Sent - Gtek Web Mail



--
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/1358543235.79938...@webmail.gtek.biz



Re: [1/2OT] how to delete ??? file

2013-01-19 Thread craig
On Saturday, January 19, 2013 10:33, "lina"  said:

>>>> Yes, in my home directory. The path is /home/lina/try
>>>>
>>>>>> -? ? ? ? ?? XX.tar
>>>>>
>> But it looks more to me as if this files are somehow
>> corrupted. Did you fsck this file-system lately ?

Hi Lina

Excuse me for replying to this message, I've managed to lose your first
post. This is most likely not a corrupt file system, but rather it is 
probably the result of lack of execute permission on the directory. You
can recreate it thusly: 

$ cd /tmp
$ mkdir test
$ export looptest=0
$ while [ $looptest -le 10 ]
  do
 touch test/test$looptest
 loop=`expr $looptest + 1`
  done

$ ls -l test
total 0
-rw-r--r-- 1 craig craig 0 Jan 19 13:50 test0
-rw-r--r-- 1 craig craig 0 Jan 19 13:50 test1
-rw-r--r-- 1 craig craig 0 Jan 19 13:50 test10
-rw-r--r-- 1 craig craig 0 Jan 19 13:50 test2
-rw-r--r-- 1 craig craig 0 Jan 19 13:50 test3
-rw-r--r-- 1 craig craig 0 Jan 19 13:50 test4
-rw-r--r-- 1 craig craig 0 Jan 19 13:50 test5
-rw-r--r-- 1 craig craig 0 Jan 19 13:50 test6
-rw-r--r-- 1 craig craig 0 Jan 19 13:50 test7
-rw-r--r-- 1 craig craig 0 Jan 19 13:50 test8
-rw-r--r-- 1 craig craig 0 Jan 19 13:50 test9

$ chmod 644 test

$ ls -l test
ls: cannot access test/test3: Permission denied
ls: cannot access test/test1: Permission denied
ls: cannot access test/test5: Permission denied
ls: cannot access test/test10: Permission denied
ls: cannot access test/test6: Permission denied
ls: cannot access test/test8: Permission denied
ls: cannot access test/test9: Permission denied
ls: cannot access test/test2: Permission denied
ls: cannot access test/test0: Permission denied
ls: cannot access test/test4: Permission denied
ls: cannot access test/test7: Permission denied
total 0
-? ? ? ? ?? test0
-? ? ? ? ?? test1
-? ? ? ? ?? test10
-? ? ? ? ?? test2
-? ? ? ? ?? test3
-? ? ? ? ?? test4
-? ? ? ? ?? test5
-? ? ? ? ?? test6
-? ? ? ? ?? test7
-? ? ? ? ?? test8
-? ? ? ? ?? test9

$ rm -f test/*
rm: cannot remove `test/test0': Permission denied
rm: cannot remove `test/test1': Permission denied
rm: cannot remove `test/test10': Permission denied
rm: cannot remove `test/test2': Permission denied
rm: cannot remove `test/test3': Permission denied
rm: cannot remove `test/test4': Permission denied
rm: cannot remove `test/test5': Permission denied
rm: cannot remove `test/test6': Permission denied
rm: cannot remove `test/test7': Permission denied
rm: cannot remove `test/test8': Permission denied
rm: cannot remove `test/test9': Permission denied

$ chmod 755 test

$ ls -l test
total 0
-rw-r--r-- 1 craig craig 0 Jan 19 13:50 test0
-rw-r--r-- 1 craig craig 0 Jan 19 13:50 test1
-rw-r--r-- 1 craig craig 0 Jan 19 13:50 test10
-rw-r--r-- 1 craig craig 0 Jan 19 13:50 test2
-rw-r--r-- 1 craig craig 0 Jan 19 13:50 test3
-rw-r--r-- 1 craig craig 0 Jan 19 13:50 test4
-rw-r--r-- 1 craig craig 0 Jan 19 13:50 test5
-rw-r--r-- 1 craig craig 0 Jan 19 13:50 test6
-rw-r--r-- 1 craig craig 0 Jan 19 13:50 test7
-rw-r--r-- 1 craig craig 0 Jan 19 13:50 test8
-rw-r--r-- 1 craig craig 0 Jan 19 13:50 test9

$ rm -f test/*

$ ls -l test
total 0

This is a result of needing directory execute permission in order
to traverse the directory.


Sent - Gtek Web Mail



--
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/1358627597.802821...@webmail.gtek.biz



Re: 32-bit Kernel on 64-bit CPU?

2013-01-19 Thread craig
On Saturday, January 19, 2013 07:44, "Pascal Hambourg"  
said:

> Hello,
> 
> Andrei POPESCU a écrit :
>>
>> The 686-pae kernel is 32-bit, nothing strange here.
>>
>> However, in your OP you mentioned not being able to allocate more than 2
>> GB with qemu. Unless this is some limitation of qemu it should have
>> worked with the -686-pae kernel
> 
> Don't forget that even though the PAE kernel can manage up to 64 GiB of
> physical memory, 32 userland processes are still limited to 32-bit
> virtual memory addressing.

One thing I've learned is that the more work it takes to resolve a problem, the
less likely it is that you will forget that resolution. Thanks!

I also misspoke in my previous post. It was not a "problem" with qemu, it was my
lack of understanding, dut to my lack of reading. Qemu was not the issue, I was.

I've also enjoyed the other 64-bit discussions and picked up a few tips. My
thanks to everyone that participated in the conversations.


Sent - Gtek Web Mail



--
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/1358628210.60766...@webmail.gtek.biz



Re: [1/2OT] how to delete ??? file

2013-01-19 Thread craig
On Saturday, January 19, 2013 14:33, cr...@gtek.biz said:

> On Saturday, January 19, 2013 10:33, "lina"  said:
> 
> Yes, in my home directory. The path is /home/lina/try
>
>>> -? ? ? ? ?? XX.tar
>>
>>> But it looks more to me as if this files are somehow
>>> corrupted. Did you fsck this file-system lately ?
> 
> Hi Lina
> 
> Excuse me for replying to this message, I've managed to lose your first
> post. This is most likely not a corrupt file system, but rather it is
> probably the result of lack of execute permission on the directory. You
> can recreate it thusly:
> 
> $ cd /tmp
> $ mkdir test
> $ export looptest=0
> $ while [ $looptest -le 10 ]
>   do
>  touch test/test$looptest
>  loop=`expr $looptest + 1`
>   done

*sigh*
The above loop is an infinite loop. The line
   "loop=`expr $looptest + 1"
should read
   "looptest=`expr $looptest + 1"

I used "loop" as the variable name in my testing, and I copied that to my
original reply, but after copying it I decided to change the name because
looptest would be less likely to have been already defined. In trying to avoid
confusion I succeeded in creating it. Just hasn't been my day.

Apologies.


Sent - Gtek Web Mail



--
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/1358648476.84589...@webmail.gtek.biz



iptables and kvm

2013-01-24 Thread craig
I am running Debian Wheezy, and have installed kvm. When I list my iptables
rules there are a set of default rules defined, and forwarding is set up
for my virtual network. For the life of me I can not figure out where these
rules are defined, and I would like to make some changes that I want to be
permanent. Would anyone mind enlightening me as where I can find the source
of those rules?


grep -RIil iptables /etc/* returns nothing.

Thanks,
Craig


Sent - Gtek Web Mail



--
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/1359054666.32117...@webmail.gtek.biz



Re: iptables and kvm

2013-01-25 Thread craig
And good time of day to you, Sthu.

On Thursday, January 24, 2013 23:55, "Sthu Deus"  said:

> Good time of the day, Craig.
> 
> If You want to set Your own rules, You can write it to a file where You
> want to hold it, then You can put a script w/ execution bit set in
> 
> /etc/network/if-pre-up.d
> 
> that will read those files.
> 
> As soon as the interface comes up, Your rules will come up too (in case
> it is correct - otherwise the defaults will be used).
> 
> 
> Sthu.

I'm afraid I wasn't clear in what I was asking for. I am fairly familiar
with iptables and how to enable my own rules at start up. I am just curious
to know where the existing rules came from. Something I installed created a
set of rules for the virtual network, and I would like to know what caused
that and what causes them to be enabled.

$ sudo iptables -L -n --line-numbers
Chain INPUT (policy ACCEPT)
num  target   prot opt source destination 
1ACCEPT   udp  --  0.0.0.0/0  0.0.0.0/0 udp dpt:53
2ACCEPT   tcp  --  0.0.0.0/0  0.0.0.0/0 tcp dpt:53
3ACCEPT   udp  --  0.0.0.0/0  0.0.0.0/0 udp dpt:67
4ACCEPT   tcp  --  0.0.0.0/0  0.0.0.0/0 tcp dpt:67

Chain FORWARD (policy ACCEPT)
num  target   prot opt source destination
1ACCEPT   all  --  0.0.0.0/0  192.168.221.0/24  state 
RELATED,ESTABLISHED
2ACCEPT   all  --  192.168.221.0/24   0.0.0.0/0
3ACCEPT   all  --  0.0.0.0/0  0.0.0.0/0
4REJECT   all  --  0.0.0.0/0  0.0.0.0/0 reject-with 
icmp-port-unreachable
5REJECT   all  --  0.0.0.0/0  0.0.0.0/0 reject-with 
icmp-port-unreachable

Chain OUTPUT (policy ACCEPT)
num  target prot opt source   destination

Thanks, 
Craig


Sent - Gtek Web Mail



--
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/1359120356.51796...@webmail.gtek.biz



Re: lightdm login screen minor issue [SOLVED]

2013-01-27 Thread craig
On Tuesday, January 1, 2013 07:08, "Claudius Hubig"  
said:

> Hello cr...@gtek.biz,
> 
> cr...@gtek.biz wrote:
>> ii  lightdm 1.2.2-4i386   simple display manager
>> ii  lightdm-gtk-greeter 1.1.6-2i386   simple display manager
>> (GTK+ greeter)
>> ii  upower  0.9.17-1   i386   abstraction for power
>> management
> 
> That looks ok, yes. You might have mis-configured
> ConsoleKit/PolicyKit in such a way that it doesn’t allow
> unauthenticated users (i.e. the login screen) to shut down the
> system. However, I have no idea how to fix that :)
> 
> Best,
> 
> Claudius

Hi Claudius,

Apologies for the extended delay in responding. I was just able to get back
to this issue this evening.

You were on the right path. I actually needed to install policykit-1 and
it's dependencies, and I now have the power options available on the login
screen.

Thanks, and all the best to you as well!
Craig


Sent - Gtek Web Mail



--
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/1359339889.786624...@webmail.gtek.biz



Re: iptables and kvm

2013-01-28 Thread craig
On Friday, January 25, 2013 11:17, "Tom H"  said:

>>>> I am running Debian Wheezy, and have installed kvm. When I list my
>>>> iptables rules there are a set of default rules defined, and
>>>> forwarding is set up for my virtual network. For the life of me I can
>>>> not figure out where these rules are defined, and I would like to
>>>> make some changes that I want to be permanent. Would anyone mind
>>>> enlightening me as where I can find the source of those rules?
>>>>
>>>> grep -RIil iptables /etc/* returns nothing.
>>>
> 
> To the OP: AFAIK, if you set up a nat-based VM, libvirt/qemu'll set up
> the rules that you're seeing. If they're in a grepable form, there'll
> probably be under "/usr".

Hi Tom,

I think you are correct as far as where the rules came from, but I
don't think they are going to be grepable. The source contains
iptables.c, and a few other similarly named files. I haven't done C in
a while, but I'll try to make sure that is where my rules came from.
There are also changelog entries that appear to back this up as well.

I'll do a bit more digging, but I think I have my answer.

Thanks!
Craig


Sent - Gtek Web Mail



--
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/1359379792.447916...@webmail.gtek.biz



Calculating optimal disk partitions

2013-05-06 Thread craig
Good morning all,

I am trying to add a partition to the unused space on a hard drive. Using 
parted, I keep getting "Warning: The resulting partition is not properly 
aligned for best performance." There is not a whole lot of explanation out 
there that explains the calculations necessary to determine the sector numbers 
to use for starting and ending a partition to avoid this message, but what I 
have found indicates the starting number should be a multiple of eight. All of 
the multiples of eight that I have tried still give me the error. Using the 
error phrase as a search term shows a lot of other people asking the same 
questions, but again not a lot of explanation for the underlying cause.

This 1TB disk reports both physical and logical sector sizes of 512 bytes each, 
and is currently partitioned with one extended partition that is made up of the 
entire disk. It has three existing logical partitions, and parted tells me the 
first two are aligned, and the third is not. I would like to leave the existing 
partitions as they are, and create one more optimally aligned partition. The 
existing layout is as follows, and an example of what I did in trying to create 
a 100GB partition:

$ sudo parted -a opt /dev/sdb
GNU Parted 2.3
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) unit s
(parted) p
Model: ATA ST31000524AS (scsi)
Disk /dev/sdb: 1953525168s
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End  Size Type  File system  Flags
 1  2048s   1953523711s  1953521664s  extended   lba
 5  4096s   683732991s   683728896s   logical
 6  683735040s  976762879s   293027840s   logical
 7  976762943s  1172081149s  195318207s   logical

(parted) mkpart
Partition type?  primary/logical? logical
File system type?  [ext2]?
Start? 1172083200
End? 1953523703
Warning: The resulting partition is not properly aligned for best performance.
Ignore/Cancel? c
(parted) q


Can anyone tell me what values I should use for the starting and ending sectors 
for the next partition so that I do not get the error message? Would anyone be 
willing to share the mathematical calculation that helps determine those values 
(I am assuming there is one since parted is able to make assertions based on 
something)? Is it possible that the physical sector size is 4096 bytes, and if 
so how would I determine that, and how does that affect things?

FWIW, at this point I don't care about the fact that partition 7 is not 
properly aligned, and I don't care if I have to leave some space unused. I just 
want to understand how to avoid the error while using as much of the available 
space as I can in an optimal manner.

Any light is appreciated.

Craig


Sent - Gtek Web Mail



--
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/1367847550.77611...@webmail.gtek.biz



RE: Calculating optimal disk partitions

2013-05-07 Thread craig
On Monday, May 6, 2013 08:39, cr...@gtek.biz said:
 
> This 1TB disk reports both physical and logical sector sizes of 512 bytes 
> each,
> and is currently partitioned with one extended partition that is made up of 
> the
> entire disk. It has three existing logical partitions, and parted tells me the
> first two are aligned, and the third is not. I would like to leave the 
> existing
> partitions as they are, and create one more optimally aligned partition. The
> existing layout is as follows, and an example of what I did in trying to 
> create a
> 100GB partition:
> 
> $ sudo parted -a opt /dev/sdb
> GNU Parted 2.3
> Using /dev/sdb
> Welcome to GNU Parted! Type 'help' to view a list of commands.
> (parted) unit s
> (parted) p
> Model: ATA ST31000524AS (scsi)
> Disk /dev/sdb: 1953525168s
> Sector size (logical/physical): 512B/512B
> Partition Table: msdos
> 
> Number  Start   End  Size Type  File system  Flags
>  1  2048s   1953523711s  1953521664s  extended   lba
>  5  4096s   683732991s   683728896s   logical
>  6  683735040s  976762879s   293027840s   logical
>  7  976762943s  1172081149s  195318207s   logical
> 
> (parted) mkpart
> Partition type?  primary/logical? logical
> File system type?  [ext2]?
> Start? 1172083200
> End? 1953523703
> Warning: The resulting partition is not properly aligned for best performance.
> Ignore/Cancel? c
> (parted) q
> 
> 
> Can anyone tell me what values I should use for the starting and ending 
> sectors
> for the next partition so that I do not get the error message? Would anyone be
> willing to share the mathematical calculation that helps determine those 
> values (I
> am assuming there is one since parted is able to make assertions based on
> something)? Is it possible that the physical sector size is 4096 bytes, and 
> if so
> how would I determine that, and how does that affect things?

I found a thread that mentioned the values should be multiples of 2048 for 
advanced format disks, which this ST31000524AS is, if I'm reading the product 
specs correctly. But both /sys/block/sdb/queue/physical_block_size and 
/sys/block/sdb/queue/logical_block_size report 512, which is why I asked about 
how to determine the actual sector size.

However, that advice seems to have worked in this instance. If it's not too 
much trouble, can anyone shed more light on the subject? Do I need to align on 
multiples of 2048 sectors, or just 8? And yes, I know that 2048 is a multiple 
of 8.

(parted) mkpart   
Partition type?  primary/logical? l   
File system type?  [ext2]?
Start? 1172082688 
End? 100% 
(parted) p
Model: ATA ST31000524AS (scsi)
Disk /dev/sdb: 1953525168s
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  StartEnd  Size Type  File system  Flags
 1  2048s1953523711s  1953521664s  extended   lba
 5  4096s683732991s   683728896s   logical
 6  683735040s   976762879s   293027840s   logical
 7  976762943s   1172081149s  195318207s   logical
 8  1172082688s  1953523711s  781441024s   logical

(parted) q


> FWIW, at this point I don't care about the fact that partition 7 is not 
> properly
> aligned, and I don't care if I have to leave some space unused. I just want to
> understand how to avoid the error while using as much of the available space 
> as I
> can in an optimal manner.
> 
> Any light is appreciated.
> 
> Craig
> 
> 
> Sent - Gtek Web Mail
> 
> 
> 
> --
> 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/1367847550.77611...@webmail.gtek.biz
> 
> 



Sent - Gtek Web Mail



--
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/1367934337.631727...@webmail.gtek.biz



Re: Calculating optimal disk partitions

2013-05-08 Thread craig


On Tuesday, May 7, 2013 19:50, "Bob Proulx"  said:

> cr...@gtek.biz wrote:
>> cr...@gtek.biz said:
>> I found a thread that mentioned the values should be multiples of
>> 2048 for advanced format disks, which this ST31000524AS is, if I'm
> 
> The ST31000524AS is not advanced format.  It uses traditional 512 byte
> sectors.  I have several of that particular model of drive.
> 
>> reading the product specs correctly. But both
>> /sys/block/sdb/queue/physical_block_size and
>> /sys/block/sdb/queue/logical_block_size report 512, which is why I
>> asked about how to determine the actual sector size.
> 
> The actual sector size is 512.
> 
>   # hdparm -I /dev/sda
>   ...
>   Logical/Physical Sector size:   512 bytes

Thanks Bob. You have at least confirmed one thing for me. Interestingly, the 
documentation that is linked to the hard drive on the Seagate site that 
mentions the disk as being advanced format is not the documentation for this 
drive, and I missed that. I had forgotten about hdparm as well.


>   ...
> 
> If it is advanced format then it would have reported it like this:
> 
> Logical  Sector size:   512 bytes
> Physical Sector size:  4096 bytes
> 
> Example using the new partitioner in the new debian-installer.  This
> would be good everywhere.
> 
>   # sfdisk -d /dev/sda
>   # partition table of /dev/sda
>   unit: sectors
> 
>   /dev/sda1 : start= 2048, size=   997376, Id=fd
>   ...
> 
> Example using the old partitioner in the old debian-installer.  This
> is fine for 512 byte sectors but not for 4k sector disks.
> 
>   # sfdisk -d /dev/sda
>   # partition table of /dev/sda
>   unit: sectors
> 
>   /dev/sda1 : start=   63, size=   995967, Id=fd
>   ...
> 
> I am sorry but I do not have a good explanation of the rest of your
> question.  I just responded about the part I knew.

No need to apologize, I appreciate you sharing what you could. I will go play 
with sfdisk and see if that sheds any light on the subject. I just find it 
frustrating that the partitioner would issue a warning that has so little 
supporting documentation. Reminds me of another operating system that I had the 
misfortune of certifying on many years ago. FWIW, I did find an interesting 
article by a Roderick Smith 
(http://www.ibm.com/developerworks/linux/library/l-4kb-sector-disks/) that 
talks about advanced format disks, but still doesn't explain the process for 
calculating optimal start and end points for creating partitions. I will check 
out the rest of his articles and keep looking as well. Maybe my search skills 
need some honing, eh?

Craig

> 
> Bob
> 



Sent - Gtek Web Mail



--
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/1368018895.004222...@webmail.gtek.biz



Re: Calculating optimal disk partitions

2013-05-08 Thread craig
On Wednesday, May 8, 2013 11:26, "Bob Proulx"  said:

> cr...@gtek.biz wrote:
>> I just find it frustrating that the partitioner would issue
>> a warning that has so little supporting documentation.
> 
> It might be fruitful to open a question about parted on their upstream
> mailing list.
> 
>   https://lists.gnu.org/mailman/listinfo/bug-parted
> 
>   http://www.gnu.org/software/parted/
> 
> Bob
> 

I found my exact question posted on the Debian parted-devel list[1], but I 
guess that is only Debian specific? If that is the case then I will definitely 
post the question there. Thanks!


[1] http://lists.alioth.debian.org/pipermail/parted-devel/2010-March/003452.html


Sent - Gtek Web Mail



--
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/1368035363.086620...@webmail.gtek.biz



Re: Calculating optimal disk partitions

2013-05-10 Thread craig
On Wednesday, May 8, 2013 11:26, "Bob Proulx"  said:
 
> It might be fruitful to open a question about parted on their upstream
> mailing list.
> 
>   https://lists.gnu.org/mailman/listinfo/bug-parted
> 
>   http://www.gnu.org/software/parted/
> 
> Bob

Hi Bob,

I did as you suggested, and it was helpful. Rather than repeat the 
conversation, I'll provide the link:

http://lists.gnu.org/archive/html/bug-parted/2013-05/msg0.html

Thanks for your help,
Craig


Sent - Gtek Web Mail



--
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/1368191082.092732...@webmail.gtek.biz



nvi question

2013-05-15 Thread craig
Good afternoon,

Using nvi as opposed to vim, the global command to delete all blank line is:
:g/^$/d

Would anyone happen to know how to replace all instances of two blank lines 
with a single blank line? The problem I'm running into is how to match the 
newline character. Since this is nvi, \n is not an option.

Thanks,
Craig


Sent - Gtek Web Mail



--
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/1368651019.939711...@webmail.gtek.biz



Re: lite applications

2002-03-12 Thread Craig
On Mon, Mar 11, 2002 at 11:42:44PM -0800, Karsten M. Self wrote:
> on Sun, Mar 10, 2002, Joe ([EMAIL PROTECTED]) wrote:
> > On Sat, Mar 09, 2002 at 11:52:43PM -0800, Karsten M. Self wrote:
> > > on Fri, Mar 08, 2002, Nicholas Imfeld ([EMAIL PROTECTED]) wrote:
> > > > I have set up an old 486 laptop with debian.  I am looking for an x
> > > > email client (preferably graphical as opposed to test based) and a web
> > > > browser that don't require a lot of space, memory, etc.  
> > > 
> > > I'd ***STRONGLY*** encourage you to stick with the text alternatives,
> > > unless you're using the 486 _just_ as an X11 terminal, you might be able
> > > to run more advanced apps on it.  Otherwise, I'd stick with mutt, w3m,
> > > lynx, and similar text-mode apps.
> > > 
> > > If X is an absolute requirement, look to BrowseX as a browser.  It's
> > > Tk/Tcl based and pretty light.  Nothing else I'm aware of comes close.
> > > Dillo's small of itself, but the gtk requirements are large.
> > 
> > If you install KDE 1.x 
> 
> This is simply not an option on a 486.
> 
hmm. maybe not. I had it once on a 486 box with 24 Mb RAM, but the CPU
was upgraded to a 120 Mhz Pentium.

CraigW



Re: DVD players under Linux (was: Re: 2.4 kernels with potato and Movie players)

2002-03-12 Thread Craig
On Tue, Mar 12, 2002 at 12:40:15PM -0500, christophe barb? wrote:
> On Tue, Mar 12, 2002 at 09:32:58AM -0800, Jim Gettys wrote:
> > 
> > > 
> > > It is a bit strong to kill esd.
> > > I would suggest 'man esdctl'
> > > 
> > > Christophe
> > > 
> > >
> > 
> > Which gets me:
> > 
> > "No manual entry for esdctl"
> 
> Which is in the esound-clients package.
> 
Hell might freeze over if Linux ever becomes coherent or consistent, but
on my box esdctl is a part of esound, and the manpage for esdctl is a
part of esound-common.

CraigW
~
~



Re: xfce

2002-03-12 Thread Craig
On Tue, Mar 12, 2002 at 09:25:52PM -0600, Kevin C. Smith wrote:
> Anyone running XFce and Unstable.
> Recent upgrade of XFce has removed the Debian menu (xfmenu).
> Anyone know how to get this back?
> 
> 
maybe "update-menus"
try man update-menus

I have a file /etc/menu-methods/xfce and here are a couple of
its lines:

genmenu=   "debian.menu"
rootprefix="/etc/X11/xfce/"
userprefix="/.xfce/"
treewalk="c(m)"
mainmenutitle="Debian Menu"   

you might want to check if that's intact.

CraigW



xhost Xauthority Xdialog

2002-03-14 Thread Craig
I am wondering why Xdialog can't connect to the X server when run from
the at command. I am trying to write little scripts that pop up a
message window using Xdialog, and they work, but if I try to use them in
an 'at' command, instead of executing they fail & mail me this message:

Xdialog: Error initializing the GUI...
Do you run under X11 with GTK+ v1.2.0+ installed ?
ESC pressed. 

I log in graphically, with gdm, root is allowed to log in graphically
also, and when I am running X as user, root can start most GUI programs.
I noticed one app root cannot start - linuxconf-x gives the refused
connection to server error. If I do xhost + then root can start
linuxconf, but the behavior of Xdialog via 'at' is still the same, plus
that's not the solution, just tried it to see.

-CraigW



Re: kfm?

2002-03-14 Thread Craig
On Thu, Mar 14, 2002 at 11:10:51AM -0700, Robert L. Harris wrote:
> 
> 
> 
> This is driving me nuts.
> 
> 
> I use konqueror as my web browser.  When I open a text file it tries to
> load kfm.  I can't find that stupid kfm binary.  I've greped through
> /var/lib/dpkg/available, I've poked around apt-cache, and searching for
> kfm on www.kde.org give 70 irrelevant links.
> 
> I'm running gnome for everything except just konqueror.  I'd be
> perfectly happy as well to get get konqueror to open gedit instead.  In
> the file associations there are settings for "Text Editor" but no place
> to specify what editor to use.
> 
> Anyone know where to change the setting for the text editor or what
> package has kfm (debian sid, kde stable)?

That's funny. Is this an upgraded box? I'm curious where that preference
came from. kfm is the file manager in KDE 1, and AFAIK does not exist in
KDE 2, although kfmexec & kfmclient still do. 

I don't use KDE but I'm sure there is an easy way. Configure Konqueror >
Applications or something like that, & perhaps first you need add > mime
type.

CraigW



unsubscribe

2002-06-10 Thread Craig



 


Re: Can only use ALSA via OSS emulation layer

2003-02-17 Thread Craig Dickson
Kirk Strauser wrote:

> In a nutshell, ALSA still starts without any error messages, but any
> sound-playing program falls into an endless cycle of 100% CPU usage as soon
> as playback starts.  However, if I set `startosslayer=true' in
> /etc/alsa/alsa-base.conf and restart via /etc/init.d/alsa, I can play sounds
> through ALSA's OSS emulation layer without any problems.  In fact, I've
> configured KDE's artsd to use OSS in the mean time, and I'm not having any
> trouble at all.
> 
> Has anyone seen anything like this?  I'm really puzzled as to why I can't
> use ALSA directly.  Furthermore, I don't know how to get any debugging
> information to illuminate the matter.

Just last weekend, I finally decided to get ALSA working on my main
workstation, which had been OSS-based until then. I also found that I
had to use the OSS emulation layer to get anything to work; KDE's aRTs
would either complain that it could not open the dsp device, or lock up,
when I tried various other approaches.

Craig




msg31380/pgp0.pgp
Description: PGP signature


Re: mutt-magic?

2003-02-18 Thread Craig Dickson
martin f krafft wrote:

> also sprach Robert L. Harris <[EMAIL PROTECTED]> [2003.02.18.1725 +0100]:
> > I'm wondering if anyone knows a good way with mutt to tag a message and
> > then pipe it into "spamassassin -r"...
> 
> view the message, then enter
> 
>   | spamassassin -r 

Or better still, set up a key macro in mutt to do that. Something like:

macro index S "| spamassassin -r\r"
macro pager S "| spamassassin -r\r"

This way you can just hit Shift-S (change it to something else if you
like) to pipe the message you are currently viewing, or the
currently-selected message (or tagged set of messages) in the index
view, to spamassassin.

Craig



msg31526/pgp0.pgp
Description: PGP signature


Re: USB mass storage and kernel 2.4.18

2003-02-20 Thread Craig Dickson
Dai Yuwen wrote:

> I've a 64M USB flash disk.  I searched the internet, and did the following 
> steps:
> 
> 1. plug USB disk into my PC
> 2. modprobe sg usb-storage
> 
> Then I tried to mount it:
>   mount /dev/sda1 /mnt
> 
> But a messages said `/dev/sda1 is not a valid block device'.
> 
> Then I checked this file:
> 
> 3. cat /proc/scsi/scsi
> Attached device: none
> 
> I use the stock kernel image of debian:
> uname -r
> 2.4.18-686
> 
> I also found some info that said kernel 2.4.18 had some problem in USB.  Is 
> that true?  If yes,  I'll have to compile another version of Linux kernel. 
>  Any idea?  Thanks in advance.

Yes, 2.4.18 had problems with USB. Some timing parameters in the kernel
were tweaked, and that broke some devices. 2.4.17 and 2.4.19 both worked
well, in my experience. I am now using 2.4.20, which I find works if I
use the default UCHI USB driver, but not if I use the alternate (JE)
driver.

Craig




msg31927/pgp0.pgp
Description: PGP signature


Re: [OT] Actually Way OT - Debian version names

2003-02-21 Thread Craig Dickson
nate wrote:

> deFreese, Barry said:
> > OK, this is probably a newbie question and maybe it has been covered
> > before but it's been buggin' me for a while.
> >
> > So we have Potato, Woody, Sid, Sarge.  Are the Debian folks Toy Story fans
> > or is it just coincidence?
> 
> no coincidence. though i've never seen the movie myself. And don't
> plan to :)
> 
> there was also hamm(2.0), and slink(2.1), not sure if those were part of
> toy story too ?

Yes, of course. Hamm was a piggy bank and slink was a dog whose middle
body was a slinky.

Sid, by the way, was the nasty little boy next door who dismembered toys
for fun -- hence the use of his name for the unstable branch.

Do you just generally dislike films, or "kid" movies? Toy Story is
actually a lot of fun for all ages. The script has a lot of clever
touches aimed at the adults in the audience. Amazingly, Toy Story 2 is
also quite good; Pixar chose not to just make an inferior clone of the
first movie, and instead took the characters in a somewhat different
direction.

Craig



msg32170/pgp0.pgp
Description: PGP signature


Re: [OT] Actually Way OT - Debian version names

2003-02-21 Thread Craig Dickson
deFreese, Barry wrote:

> > From: Robert L. Harris [mailto:[EMAIL PROTECTED]]
> >
> > I think when we go to 4.0 they should be named after characters from
> > Tremmors...
> 
> Or they could stay on theme and go with Monsters Inc.  :-)

The thing about Toy Story is that it had a pretty big ensemble of well-
known characters, providing enough names to keep going for a while.
Monsters Inc is much more a "buddy" picture, with a smaller cast of
memorable characters.

I think Tim Burton's The Nightmare Before Christmas would offer a longer
list of names, and like Toy Story it was a creative and technical marvel
for its time, whereas Monsters Inc, like A Bug's Life, really offers no
more than minor refinements on the basic Pixar style and technology.

Craig



msg32178/pgp0.pgp
Description: PGP signature


Re: Odd "which" behaviour - not finding shell script

2003-02-21 Thread Craig Dickson
nate wrote:

> Jonathan Matthews said:
> > Here's a transcript from a shell session.
> 
> > jaycee@bigdaddy:~$ echo $PATH
> > ~/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
> > jaycee@bigdaddy:~$ ls ~/bin
> 
> just a guess but I say your problem is there. The shell did not
> expand the ~ when setting the path.

Perhaps it was in quotes?

Craig



msg32182/pgp0.pgp
Description: PGP signature


Re: bash not reading ~/.bashrc

2003-02-21 Thread Craig Dickson
Roberto Sanchez wrote:

> Why is it that when I switch to a text console with -- that 
> bash does not read in my ~/.bashrc?
> 
> When I pull up a terminal in X it works fine (all my command aliases are 
> there).  And when I log in to a text console, if explicitly type in the 
> command 'bash' at the bash prompt, the new shell reads it in.  But the top 
> level shell from text login does not read it.
> 
> Any ideas?

Depends exactly what you mean.

Switching to a text console, by itself, does not cause bash to start
running, so there's no reason it should read .bashrc then.

If what you really mean is that .bashrc is not read when you login on a
text console, then that's covered by bash's man page, which you really
ought to read. .bash_profile or .profile is read by login shells;
.bashrc is read only by non-login shells. If you want .bashrc to be read
by all shells, then you need to put ". ~./bashrc" in your .bash_profile
or .profile to make it happen.

Craig



pgp0.pgp
Description: PGP signature


Re: Changing process priority

2003-02-21 Thread Craig Dickson
Nathan E Norman wrote:

> Er, I think you'd want to use "nice --20" or "nice -n -20" or even
> "nice --adjustment=-20"; "nice -20" implies a nice level ov positive
> twenty whic is invalid; the highest numer (and lowest priority)
> accepted is 19.

Ought to be "nice -n -20" actually; "nice --20" is a deprecated form.

Craig


pgp0.pgp
Description: PGP signature


Re: *grins*

2003-02-21 Thread Craig Dickson
David Pastern wrote:

> Is your son obsessed with "Lunix"? 
> 
> BSD, Lunix, Debian and Mandrake are all versions of an illegal hacker
> operation system, invented by a Soviet computer hacker named Linyos
> Torovoltos, before the Russians lost the Cold War. [...]

That was a lovely bit of satire, wasn't it. It was originally published
on the currently-defunct site Adequacy.org a year or so back. The
article was entitled something like "Is Your Son a Hacker?" and was a
parody of all the old "Is Your Child a Drug User?" scare-pamphlets of
years past, in which various common symptoms of adolescence were
described as "danger signs".

Craig


pgp0.pgp
Description: PGP signature


PHP --with-imap

2003-02-23 Thread Craig Jackson
I have a Debian woody computer with exim and qpopper. They work well
using starttls. Now I want to experiment with imap using imp/horde. So I
installed Cyrus-imapd using apt and libc-client2001 using apt and Mysql
from source. I downloaded PHP4.3.1 and Apache 1.3.27 which I want to
compile from source. When I configure PHP4.3.1 using these options

--with-mysql 
--with-imap=/usr/lib/ 
--with-apache=/usr/local/src/apache_1.3.27 
--with-mcrypt 
--enable-track-vars

I get this error:

configure: error: Cannot find imap library (libc-client.a). Please check
your IMAP installation.

libc-client2001 is in /usr/lib/ but libc-client.a is nowhere on the
system. Hints please.

Thanks,
-- 
Craig Jackson <[EMAIL PROTECTED]>


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



Re: PHP --with-imap

2003-02-23 Thread Craig Jackson
On Sun, 2003-02-23 at 16:14, Rob Weir wrote:
> On Sun, Feb 23, 2003 at 12:29:33PM -0600, Craig Jackson wrote:
> > I have a Debian woody computer with exim and qpopper. They work well
> > using starttls. Now I want to experiment with imap using imp/horde. So I
> > installed Cyrus-imapd using apt and libc-client2001 using apt and Mysql
> > from source. I downloaded PHP4.3.1 and Apache 1.3.27 which I want to
> > compile from source. 
> 
> How come? 

I'm new to apt-get. I like downloading the source from the source and
compiling it. I like knowing what options are used to compile. I'm
having a hell of a time with this php-imap because first php4.3.1
doesn't find the c-client libraries even though I enter the correct
prefix and the libraries are there, then I find out kerberos has been
compiled into c-client and I don't want Kerberos. Having control over
our servers is important. I don't mind relinquishing some of that
control for the base system esp because I know Debian does a great job
with that and it will save plenty time and aggravation. But as for
mission critical apps, I want the source installed exactly the way I
want it. I realize that I can do this with apt-get but it seems like
more work to learn apt-get to compile from deb-source than to simply
download and compile from original source.


>  And if you really want to, why not rebuild the Debian
> sources, so you get a nice shiny .deb?  Also, Debian includes a
> php4-imap module which gives you imap support.
> 
> > When I configure PHP4.3.1 using these options
> > 
> > --with-mysql 
> > --with-imap=/usr/lib/ 
> > --with-apache=/usr/local/src/apache_1.3.27 
> > --with-mcrypt 
> > --enable-track-vars
> > 
> > I get this error:
> > 
> > configure: error: Cannot find imap library (libc-client.a). Please check
> > your IMAP installation.
> > 
> > libc-client2001 is in /usr/lib/ but libc-client.a is nowhere on the
> > system. Hints please.
> 
> Use http://packages.debian.org/ to find which package contains that
> file.
-- 
Craig Jackson <[EMAIL PROTECTED]>


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



Re: PHP --with-imap

2003-02-23 Thread Craig Jackson
On Sun, 2003-02-23 at 18:48, Rob Weir wrote:
[snipped]

> Well, 90% of the time, it's actually simpler.  e.g.
> 1) setup deb-src lines in your sources.list (you only need to do this
>once, ever)
> 2) apt-get source packagename;apt-get build-dep packagename.  This will
>download the source, untar it and patch it, then go get everything
>you need to build it (avoiding the libc-client2001 issue you're
>having).
> 3) Edit debian/rules to change the './configure' line to only include
>modules that you want.
> 4) debuild.  This builds the source and packages it.
> 5) install the resulting deb with dpkg.
> 6) Profit!
> 
> Total human interaction time: 2 minutes.

I appreciate your response and will seriously look into this method. It
does look promising. 

-- 
Craig Jackson <[EMAIL PROTECTED]>


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



Re: [OT] Actually Way OT - Debian version names

2003-02-24 Thread Craig Dickson
Paul Johnson wrote:

> On Sun, Feb 23, 2003 at 12:18:17PM -0600, Nathan E Norman wrote:
> > > This one's been bugging me for a while now...why do Americans
> > > associate animation strictly with children?
> > 
> > Two words: "Walt Disney"
> 
> Not too valid when I saw a copy of "Disney's Princess Mononoke" in
> Freddy's (the English dub of Mononoke Hime).  That's a pretty voilent
> movie and certainly not suitable for children.

Huh? Princess Mononoke isn't a Disney movie at all; it's a Japanese
anime by Hayao Miyazaki, distributed in the USA by Miramax (at least,
their logo is on the DVD, and Disney's isn't).

Craig


pgp0.pgp
Description: PGP signature


Re: [OT] Actually Way OT - Debian version names

2003-02-24 Thread Craig Dickson
Mike Dresser wrote:

> > Huh? Princess Mononoke isn't a Disney movie at all; it's a Japanese
> > anime by Hayao Miyazaki, distributed in the USA by Miramax (at least,
> > their logo is on the DVD, and Disney's isn't).
> 
> Guess who owns Miramax?

Disney owns lots of things. Is every cop show on ABC a "Disney cop
show", and therefore presumably aimed at children, just because Disney
owns ABC? Miramax, as far as I know, is largely an independent
operation, despite being owned by Disney.

Craig


pgp0.pgp
Description: PGP signature


Re: [OT] Actually Way OT - Debian version names

2003-02-24 Thread Craig Dickson
deFreese, Barry wrote:

> Actually, Fantasia was supposed to get updated every couple of years and
> re-released to show the updates in technology in animation and the growth of
> music.  It was basically supposed to be a continuing work in progress but as
> you say, after he passed away that dream was never realized.

As I recall, the dream was never realized because Fantasia didn't make
much money in its first release. Walt had another 25 years to put out an
update before his death in the '60s, but he never did, so I don't think
it's quite accurate to say that his death was the crucial factor.

Of course, we now have Fantasia 2000, which utterly fails to live up to
the standards of its famous predecessor, though the flamingo sequence is
the funniest thing to come out of Disney in at least 30 years.

Craig



pgp0.pgp
Description: PGP signature


Re: How to compare and choose anti-virus software ???

2003-02-25 Thread Craig Dickson
Michael D. Schleif wrote:

> Now that I've got exim|fetchmail|razor|spamassassin|procmail|mutt
> more or less functioning properly, it is time to implement virus
> protection, especially for email:
> 
>   # apt-cache search virus | grep -i virus | sort
>   amavis-exim - Interface between MTA and virus scanner.
>   amavis-milter - Interface between MTA and virus scanner.
>   amavis-postfix - Interface between MTA and virus scanner.
>   clamav - Powerful antivirus scanner for Unix.
>   clamav-daemon - Powerful antivirus scanner daemon.
>   clamav-testfiles - Use these files to test that your antivirus program works
>   exiscan - an email virus scanner for exim
>   f-prot-installer - Installer package for F-Prot Antivirus(tm)
>   libclamav1 - Virus scanner library
>   libclamav1-dev - clam antivirus library development files
>   mailscanner - An email virus scanner and spam tagger.
>   sanitizer - The Anomy Mail Sanitizer - an email virus scanner
>   xbill - Get rid of those Wingdows Viruses!
> 
> Is there some webpage that compares all of these, in order to make an
> informed decision?

If everyone who uses your server uses mutt to read their mail, then you
really don't have much to worry about from email viruses. When an email
virus shows up on my server, I just delete it; it never had a chance to
infect anything.

Here are the fruits of two minutes of research using only dpkg -p, which
you could just as easily have done yourself:

"Section: games" should be the tipoff that xbill isn't what you're looking
for.

libclamav is just a library used by clamav.

f-prot isn't free software, so I wouldn't recommend it unless it's the
only one that works.

mailscanner appears, from the long description, to be just an interface
to one of several external commercial virus scanning engines. So that's
not really a proper free software solution either, though mailscanner
itself is presumably free software.

amavis-* (or the replacement, amavisd-new) also appears to be just an
interface, not itself a virus scanner.

We have now limited the selection to:

clamav and/or clamav-daemon
exiscan
sanitizer

That should be a small enough set that you can just do a bit more
research to figure out which one best suits your needs.

It is not obvious to me how, or whether, clamav interfaces to mail
agents. It appears to be a more general-purpose virus scanner. Exiscan
and sanitizer, on the other hand, seem to be designed specifically and
only for scanning email. Exiscan is designed specifically for exim;
sanitizer's description does not say which MTAs it works with (or if
it interfaces to an MTA at all; maybe it's client-side? don't know).

Craig


pgp0.pgp
Description: PGP signature


Re: How to compare and choose anti-virus software ???

2003-02-25 Thread Craig Dickson
Michael D. Schleif wrote:

> Also sprach Craig Dickson (Tue 25 Feb 02003 at 01:30:32PM -0800):
>
> > Here are the fruits of two minutes of research using only dpkg -p, which
> > you could just as easily have done yourself:
> 
> Of course, I have already done this [...]

Then you could have at least edited your package list to remove the
videogame, the libraries, and the scanners that only work with MTA's
other than the one you use. They obviously weren't what you wanted, and
their presence makes it look like you have no idea what they are, i.e.,
like you haven't read the long descriptions.

Craig


pgp0.pgp
Description: PGP signature


Re: [OT] Complaint

2003-02-26 Thread Craig Dickson
Joseph A Nagy Jr wrote:

> Over the past few weeks, I've been recieving several pieces of mail 
> directly to my inbox because users are Bcc'ing (for what ever reason) 
> the debian-user list. I would like to ask those people to please NOT bcc 
> the list.

Bcc'ing a mailing list seems sort of odd, but it's harmless. Your filtering
is at fault; don't blame everyone else. Try filtering on the X-Mailing-List
header, which is set by the list server.

Craig


pgp0.pgp
Description: PGP signature


Re: [OT] Complaint

2003-02-26 Thread Craig Dickson
Joseph A Nagy Jr wrote:

> Still, there is no reason to BCC the list. Not everyone has the ability 
> to customize what their filters filter on (I'm sure there are more then 
> a few Evolution and OE users on the list).

Evolution can't filter on arbitrary headers? Really? I wasn't terribly
impressed with Evolution the last time I looked at it (back when 1.0 was
still in beta), but I had no idea it was THAT bad.

OE users, on the other hand... sorry, I have no sympathy. They use a
grossly defective mail client. If they only read mail at work, then
maybe they're restricted by company policies, but that's their cross to
bear. The rest of the world does not have to bend over backwards to help
them. As of the most recent version of OE that I've seen, OE can't even
properly display signed messages (like this one). That doesn't mean I
should stop signing my mail; it means OE is crap.

As I said before, Bcc'ing a mailing list is sort of a weird thing to do,
and I don't know why anyone would do it. But it's harmless, and it's
silly to ask people not to bcc just because some defective software
can't filter on it.

Craig


pgp0.pgp
Description: PGP signature


Re: [OT] Complaint

2003-02-26 Thread Craig Dickson
Joseph A Nagy Jr wrote:

> Actually, that Reply-to-list functionality can be implimented on the 
> list itself. Why list-masters don't do this is so far beyond me that I 
> don't even bother asking anymore

It's because that's the wrong place for it. If you put a Reply-To:
 header in, then it's a pain to reply privately; with most
clients, you'd have to edit the To: line by hand, or answer a prompt
along the lines of "Use Reply-To:?". A better solution is for the client
to support the usual reply-to-author function and also a separate
reply-to-list function that is sensitive to common mailing list headers.
Mutt has these features; if your client doesn't, why not suggest to the
developers that they add it (or if you're a programmer, write the patch
yourself and submit it)? As with the filtering question that started
this thread, improving your client (or replacing it with a better one)
is a better solution than demanding that the rest of the world bend over
backward for your defective software.

Craig





pgp0.pgp
Description: PGP signature


Re: my ongowing struggle with java

2003-02-27 Thread Craig Dickson
karrottop wrote:

> Ok, I have been having a horrible time getting java to behave, I
> thought  I followed the directions explicitly but I guess I messed
> something up somewhere.  Here is what I did:
> 
> First I unpacked everything in /usr/java/ and added this to a line in my
> /etc/profile 
> 
> PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/java/j2re1.4.1_01/bin"
> 
> Then I copied the symlink in /usr/java/j2re1.4.1_01/plugin/ to my
> ~/.mozilla/plugins folder.  Now here is the wierd part. There are 3 sets
> of plugins in there  ns4 ns600 and ns610.  If I use the ns4 plugin
> java:plugin does tell me that it is loaded but when I go to a site that
> requires java_vm it tells me that the plugin does not exist.  if I use
> either of the other two plugins it simply crashes my browser (makes it
> disappear)  I have gotten a terminal message that tells me it could not
> exec java_vm.  I have also had my Path statement like it is commonly
> done in my ~/.bash_profile with the export path but that did not work
> either.

How do you start X? I have noticed that when using an X display manager,
your .bash_profile may NOT be processed on login, and so any environment
variables you set in it are not part of your X environment. Xterms may
process .bash_profile if xterm is set up to run login shells, but that
doesn't affect any other X apps that may be running (like the
gnome-panel or KDE kicker that hosts the apps menu). I have definitely
seen this problem with KDE 3.1, but I have not checked it under GDM or
other display managers.

One way to see if this is the problem might be to start mozilla from a
shell window after ensuring that the environment is set up properly in
that shell. If that works, then you need to figure out how to get your
environment set up properly in X.

Craig


pgp0.pgp
Description: PGP signature


Re: secondary root account

2003-02-28 Thread Craig Dickson
Errol Neal wrote:

> I would like to know how to setup a secondary account on a Linux system 
> that would have the same abilities and privledges as the "root" user, say 
> an account such as "root2". I do not want to use sudo, because the people I 
> work for do not want to use "sudo" before every command. Does anybody have 
> any suggestions?

"sudo bash" (or "sudo zsh" or whatever shell one prefers) will get you
into a root shell if sudo is configured to allow you to do that. Then
you won't be typing "sudo" in front of every command, but just when you
want a root shell. You can stay in that root shell for as long as you
like. You get back to your non-root shell with the "exit" command.

You haven't explained why simply giving these people the root password
is unacceptable. You work for them, so it's their machine, right? If
they want root access to their own machine, let them have it, or give
them a reason why you refuse to give it to them. (To me, "I'm
responsible for this machine, so I'm not going to have other people
mucking around on it as root" would be a good reason.)

Craig


pgp0.pgp
Description: PGP signature


Re: default permissions on /root

2003-02-28 Thread Craig Dickson
Jeremy Gaddis wrote:

> On Fri, 28 Feb 2003, Bob Proulx wrote:
> 
> > There is no sensitive files installed in /root.  There really is no
> > reason not to make it 755.  Everyone knows what is in /root.  It is
> > not a secret.
> 
> oh?  what do i have in my /root directories then?

If your implication is that Bob doesn't know what _you_ have in your
/root directory, and therefore is being presumptuous, then the answer is
that you _shouldn't_ have anything much there.

The very few sensitive things that I keep in /root (config
files/directories for things like ssh and mcrypt, which I need for my
homebrew remote backup system) are set to owner-only permissions, just
as they would be in an ordinary user's account.

> where is a more appropriate location for files only to be seen or
> used by the root user than his home directory?

A subdirectory under /root with permissions set to 700, perhaps? That's
what I do, just as I do with sensitive files stored under my regular
user account.

> yes, i'm well aware of that.  and i don't use the root account
> for "nonadministrative work".  i use it solely for "administrative
> work", and henceforth, have files in /root not intended for the
> general public.  i stores script under /root that are run from
> crontab, and various other files.

I have scripts like that in /root/bin, which was 700 until I decided it
didn't matter whether anyone read them or not, and changed it to 755.
It's not as if they contain passwords. Finding out that I use tar,
mcrypt, and rsync-over-ssh for backups isn't going to do anyone much
good.

> i guess i wrongly assumed that a distribution that's usually
> somewhat sane would have somewhat sane permissions on a directory
> such as /root, which i consider "sensitive", so to speak.

I find it amusing, in a pathetic sort of way, to be implicitly accused
of insanity just because I have /root's permissions set to 755. Even
calling it insecure would be wrong, because what needs to be locked
down is locked down.

Craig


pgp0.pgp
Description: PGP signature


Re: /var/cache/apt/archives is big

2003-03-01 Thread Craig Dickson
Sebastiaan wrote:

> Yes: rm /var/cache/apt/archives/*
> 
> You usually update packages only, or install it once. You won't harm your
> system if you remove the old packages. If it is needed, the packages will
> be downloaded again.

Not if it isn't in the repository anymore. It's nice to be able to work
around a broken package by downgrading to the old one. These days
especially, the predecessor to a broken sid package may not be in
testing or stable.

I prefer to keep the two most recent versions of any package. That way I
have a local downgrade solution on those occasions when one is needed.

Craig



pgp0.pgp
Description: PGP signature


Re: howto verify burn?

2003-03-05 Thread Craig Dickson
bob parker wrote:

> On Thu, 6 Mar 2003 04:22, Ray wrote:
> > how do i verify that the burned cd is correctly burned?
> >
> > i burned a set of Debian 3.0r1 cds and have md5sums of the isos, but they
> > don't match the output of
> > md5sum -b /dev/cdrom
> 
> Not really an expert on what happens on cds but I belive it has something to 
> do with the some extra nulls packing it out to the end of a 2048 block or 
> something like that.
> 
> In any case the actual cd generally has a different md5sum than the iso.
> 
> One way:
> cat /dev/cdrom > test.iso
> md5sum test.iso
> md5sum original.iso

Isn't

   md5sum /dev/cdrom

equivalent to

   cat /dev/cdrom >test.iso
   md5sum test.iso

?

Craig


pgp0.pgp
Description: PGP signature


Re: where does "root" mail go ?

2003-03-06 Thread Craig Dickson
Dave Selby wrote:

> When an application sends mail to ''root" where does it go ? because I cant 
> find it ! All mail I have ever accessed is via the web with kmail.
> 
> Is it supposed to be posted to ...
> /var/mail/ ?

By default, mail ends up in /var/spool/mail/(username), but typically
mail to root is forwarded to the admin's non-root account. /etc/aliases
is a common place to find mail mappings of this sort. Additionally, any
user can forward his mail elsewhere with a .forward file in his home
directory.

Craig



pgp0.pgp
Description: PGP signature


Re: libc6: did it move from unstable to testing?

2003-03-08 Thread Craig Dickson
Kevin Coyner wrote:

> I'm running a strictly testing box, and just a bit ago I did an apt-get
> update and apt-get dist upgrade, and before I knew it, the system
> was downloading 89 upgrades, one of which was libc6 ver 2.3.1-14.
> 
> But when I go to packages.debian.org, and look at the libc6 debs in
> there, I see that it clearly says that ver 2.3.1-14 is still unstable,
> and that testing should be 2.2.5-14.3.
> 
> Normally an upgrade like this is good stuff, but this time it caused me
> some problems, namely it uninstalled php4.
> 
> So I'm a bit lost.  Did I mess something up?  Or was libc6 or something
> else moved from unstable to testing just a bit early?  

packages.d.o is sometimes a bit behind schedule. If you want to see what
your apt-get sees, do "apt-cache policy ". Here is what I
see right now for libc6 on a testing machine:

$apt-cache policy libc6
libc6:
  Installed: 2.3.1-14
  Candidate: 2.3.1-14
  Version Table:
 *** 2.3.1-14 0
500 http://http.us.debian.org testing/main Packages
100 /var/lib/dpkg/status

So apparently 2.3.1-14 is in testing now.

Craig


pgp0.pgp
Description: PGP signature


Re: libc6: did it move from unstable to testing?

2003-03-09 Thread Craig Dickson
Michael D. Schleif wrote:

> What am I missing?
> 
> # apt-cache policy libc6
> libc6:
>   Installed: 2.2.5-14.3
>   Candidate: 2.2.5-14.3
>   Version Table:
>  *** 2.2.5-14.3 0
> 500 ftp://ftp.debian.org testing/main Packages
> 500 ftp://ftp.us.debian.org testing/main Packages
> 500 http://debian.crosslink.net testing/main Packages
> 500 http://http.us.debian.org testing/main Packages
> 100 /var/lib/dpkg/status

Have you done an "apt-get update" today? Even if you have, try it again,
then try "apt-cache policy libc6" again and see if it's any different. I
don't know what else could have us showing different information about
the same repository.

Craig


pgp0.pgp
Description: PGP signature


Re: considered harmful (was [off topic] Learning Shell from an old UNIX book)

2003-03-12 Thread Craig Dickson
John Hasler wrote:

> [EMAIL PROTECTED] wrote:
> > But I know of at least one big project that uses tcsh scripting,
> > OpenOffice.org.
> 
> Thanks for the warning.  I had been considering installing it.

I'm not sure it's required for installation. I don't have csh or tcsh
installed, yet the openoffice debs installed without difficulty and seem
to work fine.

Craig



pgp0.pgp
Description: PGP signature


Re: considered harmful (was [off topic] Learning Shell from an old UNIX book)

2003-03-14 Thread Craig Dickson
[EMAIL PROTECTED] wrote:

> not all Unix or
> Unix-like (attention SCO) systems use or would use bash.

Nor do they all have csh. But they all have sh. If you want
least-common-denominator portability, use sh and stock Unix commands.

> I have no faith in the quality of the work of developers who would
> choose to use Java in their build system.

That sentence is four words too long.

Craig


pgp0.pgp
Description: PGP signature


Re: wireless lan broken after booting windows

2003-03-16 Thread Craig Genner
On Sun, Mar 16, 2003 at 06:01:03AM -0500, [EMAIL PROTECTED] wrote:
> On Sun, 16 Mar 2003 11:28:12 +0100
> Michael Zech <[EMAIL PROTECTED]> wrote:
> 
> > Hi everyone!
> > 
> > Till today my wireless lan worked fine. Yesterday I had to boot
> > windows (what happens about 3 times a year ;) and now the wireless
> > interface won't come up anymore.
> 
> Have you tried turning the computer OFF, waiting a few seconds, and then
> restarting?
> 
I'll second that recomendation.  Especially if your version is XP and
you've gone into hibernation.  When you set windows into hibernation is
some how 'steals' control of the network card (wireless or not) and wont
give it back unless you boot into windows and then shutdown properly.

It took me a while to work this one out when it happened to me after
building my new pc :-)

Craig


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



DSL issue

2003-03-16 Thread Craig Mead
Trying to get iiNet DSL working on my Debian box

Very confused as to whats happening. I've googled the error, a few others
have posted about it, but there are 0 replies.

Most sites just say, install Roaring Penguin, install, run adsl-setup and
then adsl-start. And it will work.

Any assistance in this matter would be HUGELY appreciated.

0030-AP:/# adsl-start
TIMED OUT
/usr/sbin/adsl-start: line 194: 351 Terminated $CONNECT "$@" >/de

tcpdump on the if shows..

05:02:48.319944 PPPoE PADI [Service-Name] [Host-Uniq UTF8]
05:02:48.346910 PPPoE PADO [Service-Name] [AC-Name "nct4-chatswood"]
[Host-Uniq UTF8]
05:02:48.347424 PPPoE PADR [Service-Name] [Host-Uniq UTF8]
05:02:48.379928 PPPoE PADS [ses 0x469] [Service-Name] [AC-Name
"nct4-chatswood"] [Host-Uniq UTF8]
05:02:48.381668 PPPoE PADT [ses 0x469] [Host-Uniq UTF8] [Generic-Error
"RP-PPPoE: System call error: Input/output error"]

Details.

Latest version of Roaring Penguin
DLink DSL-300 modem
2.4.18 kernel

TIA.
Craig Mead


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



Re: tar ate my symlinks

2003-03-17 Thread Craig Dickson
nate wrote:

> Brian Victor said:
> > I backed up my debian installation with the following:
> >
> > tar --preserve -cv / | ssh 192.168.2.10 'cat > linuxbackup.tar.bz2'
> 
> may I ask why? I have never heard of someone attempting such
> a task in that manor. I would say that the above is the source of
> the problems. Checking tar's manpage reveals no mention of the
> preserve option either.

The manpage for tar 1.13.25-5 (unstable) does indeed document
--preserve. It's the same as "-p -s".

Tar shouldn't care where it's output is going, so symlinks should have
been stored properly in the above example as far as I can tell.

Personally, I have always preferred a multi-stage approach to backups,
like this:

   1. Build a list of files that need to be backed up
   2. Build encrypted tarball of said files
   3. Transmit files to remote site

For example, for a daily incremental backup relative to the most recent
weekly backup:

find $(cat backuppables) -newer $datadir/stamp_weekly '(' -type f -o -type l ')' | 
sed -f $datadir/excludables >backup-$$
tar --create --absolute-names --atime-preserve --bzip2 --sparse 
--files-from=$datadir/backup-$$ | mcrypt -q >daily.tar.bz2.nc
rsync --rsh="ssh -i $idfile" --times --verbose * $remotedir/

The backuppables file is a simple list of directories that are to be
backed up. The excludables file is a sed script (really just a series of
"remove lines matching this regexp" commands) to filter out things that
I don't want to back up, like CVS subdirectories, .o files, and so on.

Craig


pgp0.pgp
Description: PGP signature


Re: VNC-setup: newbie

2003-03-18 Thread Craig Genner
>
> #!/bin/sh
>
> #xrdb $HOME/.Xresources
> #xsetroot -solid grey
> #nxterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
> #twm &
> #control-panel &
> #xfm &
> exec /etc/X11/xinit/xinitrc &
>
First things first, I don't know if you know what the # does but just in case 
I will tell you that it makes any line that starts with it a comment and is 
ignored in the running of the program.  The exception to this is the very 
first line which tells the system which shell to use to run the program.

My xstartup looks like this:

#!/bin/sh

xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
blackbox &

The first 3 lines are setting up what you will see when you use the VNCViewer, 
the last line is my window manager.  You may use KDE, Gnome etc.  I wouldn't 
recomend that you run either KDE or Gnome as they are big window managers.
The default on my system was twm but I prefere blackbox as you can see.

I would change yours to look like:

xrdb $HOME/.Xresources
xsetroot -solid grey
nxterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
#control-panel &
#xfm &
exec /etc/X11/xinit/xinitrc &

Try that and see if it works.  You should see some changes but I can't 
remember what they will look like.

Craig


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



Re: users question

2003-03-19 Thread Craig Dickson
Didier Caamano wrote:

> How can I block a user to his home directory? so he can have access to his 
> home directory but no other directory on the system.

A typical user account won't have write access to anything outside its
home directory, unless you have world-writeable directories somewhere.
So you don't really have to worry about an ordinary user changing your
system behind your back.

You could set up a chroot jail in a user's home directory. Then the user
won't even be able to see files outside of the jail. You can read about
how to set up chroot jails here:

  http://tjw.org/chroot-login-HOWTO/

Craig


pgp0.pgp
Description: PGP signature


Re: default editor

2003-03-19 Thread Craig Dickson
Alan Shutko wrote:

> Will Yardley <[EMAIL PROTECTED]> writes:
> 
> > Alan Shutko <[EMAIL PROTECTED]>:
> >
> >> Some programs use VISUAL, some EDITOR, some both... the distinction
> >> between them has long been lost.
> >
> > Perhaps, but EDITOR is supposed to be your line editor, and VISUAL your
> > full screen editor, or at least that's what I've always been told.
> 
> Sure.  But that distinction hasn't really been meaningful for at
> least a decade, and people writing programs these days don't
> necessarily follow it.

And by way of illustrating just how worthless the distinction is these
days... when was the last time you actually used a line editor
interactively?

Craig


pgp0.pgp
Description: PGP signature


Re: classic deficiancy in both windows and linux ?

2003-10-24 Thread Craig Dickson
Paul Johnson wrote:

> On Thu, Oct 23, 2003 at 06:08:00PM -0400, James D. Freels wrote:
> > Can you figure out a way to get a listing of a directory (folder in
> > Windows) and print it, without resorting to command prompt ?
> 
> Why would you want to do this, when the command prompt is exactly what
> you're looking for in this case?

Presumably because he normally uses a GUI file manager (Konqueror or
some equivalent) and it would be convenient, if one already had a window
open on some directory, to simply select "Print" from the menu to get a
hardcopy of the directory listing, in the same format as it appears on
the screen. Essentially, he's suggesting that a view of a directory in a
GUI file manager should be considered a "document" that can be printed,
just as one can print a web page from a browser or a text file from an
editor. This seems perfectly sensible to me; I've never understood why
file managers don't provide this functionality.

Craig


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



Re: Unidentified subject!

2003-01-19 Thread Craig Genner
Thanks for telling us you can't install debian 'under promise PDC20276'.
Prehaps you could tell us why you can't (error messages, when it fails etc).
Only then can some one try and help you.
Craig


On Sunday 19 Jan 2003 12:06 pm, Frédéric Poulet wrote:
> Yi,
>
> I would like install the last version of debian under promise PDC20276 but
> i can't do it !! I need help !
>
> ___
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
> Yahoo! Mail : http://fr.mail.yahoo.com


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




  1   2   3   4   5   6   7   8   9   10   >