Resolvconf with FreeBSD jails

2012-07-30 Thread Grzegorz Junka
FreeBSD 9 uses resolvconf tool to manage the resolv.conf file. How can I 
make it working with FreeBSD jails?


In my case I am moving my laptop between networks and every time I boot 
FreeBSD it gets assigned a different DNS server. The file 
/etc/resolv.conf gets updated but the same file in each of the jails is 
not. I need resolv.conf in each jail in order for that jail to connect 
to the external network.


I tried to make a link from resolv.conf in a jail to the same file in 
the host system, but inside jail the link doesn't work. I could copy the 
resolv.conf every time I boot FreeBSD after the DHCP obtained new DNS 
and updated resolv.conf but before ezjail starts any of the jails, but 
where I would need to put such copying?


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Simple Sites Make Me 137.00 Daily!

2009-03-04 Thread Grzegorz Junka

Jerry McAllister wrote:

On Wed, Mar 04, 2009 at 06:27:37PM +0100, Wojciech Puchar wrote:

  
You Are About To See How A Simple Little Three Page Website Makes Me Over 
$137 In PROFIT Each And Every Day... And It Only Took Me 45 Minutes To 
Build!"

Yes... Unlike The 'Other Guys' I Am Actually Gonna Let You See It!
My Simple Sites Have Generated Over $2,298,443 In Revenue Over The Past 4 
Years.

Not To Mention My Students Who Generated Over $1,000,000 Last Year Alone!
Copy the URL into your browser for a free video http://www.advice.ne1.net/

  

unbelievable how many people still believe money comes from heavens.

couldn't the mailsystem be changed to allow posting from addresses only 
from registered users?



That discussion has been had numerous times before.
I think that in general the conclusion is always that since the
questions list provides a primary point of support for FreeBSD users,
and that many have reasons that they cannot subscribe or that it
would be a problem for them to subscribe, that the annoyance from
these trash messages is less than the benefit of leaving the list open.
It is not hard to hit 'd' for delete or click on that box if you 
use a gui email reader.


I suspect that the choice won't change now either.

jerry


  
I can't send emails to the address which I used to sign up to the list, 
and from which I am receiving emails from the list. The mailing list 
server simply rejects these emails. I don't know if this is a 
configuration problem, but I am glad that as long as such problems occur 
I can post messages using a different address.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Emacs doesn't want to support 256 colors in terminal window

2009-02-27 Thread Grzegorz Junka

Paul B. Mahol wrote:

Not really.
You can try changing Co cap from 8 to 256 inside termcap file, dont
forget to use cap_mkdb after that, and dont make stupid mistakes.
Perhaps emacs should like vim enable changing Co cap inside itself.

Related to tput command, you should use "tput Co"
"tput colors" tends to report number of columns.

Also it is very hard to follow you: putty vs xterm vs cygwin; dont
forget that your terminal may use terminfo instead of termcap .

  
Further to my previous email, I've spotted my mistake and wanted to 
clarify it. I am not using xterm under cygwin but rxvt. Sorry about 
that. So basically I connect to my remote FreeBSD server using a 
physical terminal from Windows (either putty or rxvt on cygwin), and 
then I run emacs on that server and expect it to be able to show 256 
colors on the Windows terminal. For that I reconfigured putty/rxvt to 
report the (logical) terminal type as xterm-256color. That didn't work 
so I tried to redefine the TERM environment variable on my account, but 
that didn't work either. The problem seems to be with the Co value 
defined for the xterm terminal type, because 'tput Co' shows 8 instead 
of 256 for all physical/logical terminal configurations. I hope now it 
is clear what I am running where.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Emacs doesn't want to support 256 colors in terminal window

2009-02-27 Thread Grzegorz Junka

Giorgos Keramidas wrote:

On Fri, 27 Feb 2009 19:31:55 +, Grzegorz Junka  wrote:
  

FreeBSD port doesn't allow to configure Emacs in any way, neither from
the original port, nor from the nox11 version. I don't think there is
any special option for emacs to show 256 colors. Wherever I could find
some information about this, people were saying that Emacs version


= 22 supports 256 colors without any additional configuration. As I
  

mentioned, Emacs not only doesn't show 256 colors, but not even 16,
which I bet should be supported without any problems. No matter what I
get only 8 colors, even if terminal is able to shows much much more.

Another strange thing is that as far as I can see xterm-256color in
FreeBSD termcap is simply an alias to xterm. Nevertheless, with these
scripts mentioned above I can view more than 16 colors even if TERM is
defined only as xterm.

Do you think I should report it as a defect in emacs ports?



It might be.  I'll try to see if I can get Emacs to display 256 colors
in an xterm, but in the mean time can you please collect all your recent
findings in a problem report?  It will be auto-assigned to me :)
  
If you haven't seen my response to the other email in the thread, then 
the progress is that I should be using tput Co, not tput colors. I tried 
all these configurations mentioned in my email and I see that tput Co 
always reports 8, regardless of what tput colors reports. That might be 
explaining the problem with emacs. Now, why tput reports 8 even if the 
(logical) terminal is defined as xterm-color or xterm-256color? Well, 
maybe the problem is not in emacs but in termcap/terminfo?


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Emacs doesn't want to support 256 colors in terminal window - a slight progress

2009-02-27 Thread Grzegorz Junka

Paul B. Mahol wrote:

On 2/27/09, Grzegorz Junka  wrote:
  

Paul B. Mahol wrote:


On 2/27/09, Grzegorz Junka  wrote:

  

Hi,
I hope someone will be able to help with this. I've already checked all
resources I could google but still can't get it to work. Basically my
terminal can show more than 16 colors but emacs doesn't want to use
these colors.

I run FreeBSD (7.1-RELEASE) as a virtual machine and use it without any
X interface, only through ssh from a Windows machine (the host). I have
set up both putty and ssh in cygwin to report term type as
'xterm-256color' (putty in the configuration window and xterm using -tn
command line parameter).

That part works fine because I can run scripts available on the internet
(256colors2.pl, colortest), which surely show more than 8 colors in my
terminal window. The problem is when I run emacs and type: M-x
list-colors-display. Emacs shows only boring 8 colors (not even 16).

A bit about my configuration. Emacs was compiled without X11 support
(from ports emacs-nox11-22.3). I also don't have xterm installed. I
tried to set env variable TERM=xterm-256color but it didn't help. There
is a special note about using terms in emacs in
"/usr/local/share/emacs/22.3/lisp/term/README" I unpacked xterm.el.gz
from that folder and tried to supply it as term/xterm-256color.el or
term/xterm.el to emacs, but that also didn't work.

It is interesting to note, that when I type: tput color I get different
values depending on the user and terminal:

user grzesiu, putty, TERM=xterm-256color, tput colors: 114
the same user, putty and TERM value, but tput colors: 123, another trial
and output is 80
user root, putty, TERM=xterm, tput colors: 184
the same user and putty, but TERM=xterm-256color, tput colors: 115
user grzesiu, ssh from cygwin, TERM=xterm-256color, tput colors: 139

I don't understand these values because when I run these scripts above I
don't see any difference in colors shown (subjectively). In neither of
these configurations emacs show more than 8 colors. Any ideas or
suggestions greatly appreciated.



This looks like emacs problem. Are you sure that emacs was compiled
with 256 color support? (at least I know that elinks can be configured
to support 88 and/or 256 and/or real colors)
Also is there some kind of termcap option in emacs to be changed/read?
I dont use emacs but in vim:
:set t_Co=256
will show 256 colors if terminal supports it.
Actually if t_Co termcap setting is N, vim will not try to show more
than N colors even if terminal supports X(>N) colors.


  

FreeBSD port doesn't allow to configure Emacs in any way, neither from
the original port, nor from the nox11 version. I don't think there is
any special option for emacs to show 256 colors. Wherever I could find
some information about this, people were saying that Emacs version >=22
supports 256 colors without any additional configuration. As I
mentioned, Emacs not only doesn't show 256 colors, but not even 16,
which I bet should be supported without any problems. No matter what I
get only 8 colors, even if terminal is able to shows much much more.

Another strange thing is that as far as I can see xterm-256color in
FreeBSD termcap is simply an alias to xterm. Nevertheless, with these
scripts mentioned above I can view more than 16 colors even if TERM is
defined only as xterm.

Do you think I should report it as a defect in emacs ports?



Not really.
You can try changing Co cap from 8 to 256 inside termcap file, dont
forget to use cap_mkdb after that, and dont make stupid mistakes.
Perhaps emacs should like vim enable changing Co cap inside itself.

Related to tput command, you should use "tput Co"
"tput colors" tends to report number of columns.

Also it is very hard to follow you: putty vs xterm vs cygwin; dont
forget that your terminal may use terminfo instead of termcap .

  
Have you seen the termcap file in FreeBSD? It is a quite complicated 
mess with aliases everywhere, xterm defined a dozen of times in 
different places and various Co values for each of them. I wouldn't know 
where to change it without screwing everything up. Besides that, why 
normal scripts can show all these colors and emacs has a problem with it?


But you was right, tput Co shows only 8 colors, regardless of what tput 
colors shows. Many thanks for that hint!


Regarding putty vs xterm vs cygwin: xterm(-color/-256color) is just the 
logical definition of the terminal and is independent on on the program 
used as the physical terminal. For instance both putty and xterm (under 
cygwin) can be configured to report the terminal type as xterm-256color 
or any other terminal available (and if not, the TERM env variable can 
be redefined). But I am sure you already know that. Because I am logging 
from Windows I can't use xterm natively, so I tried it under cygwin. But 
it shouldn't matter 

Re: Emacs doesn't want to support 256 colors in terminal window

2009-02-27 Thread Grzegorz Junka

Paul B. Mahol wrote:


On 2/27/09, Grzegorz Junka  wrote:
  

Hi,
I hope someone will be able to help with this. I've already checked all
resources I could google but still can't get it to work. Basically my
terminal can show more than 16 colors but emacs doesn't want to use
these colors.

I run FreeBSD (7.1-RELEASE) as a virtual machine and use it without any
X interface, only through ssh from a Windows machine (the host). I have
set up both putty and ssh in cygwin to report term type as
'xterm-256color' (putty in the configuration window and xterm using -tn
command line parameter).

That part works fine because I can run scripts available on the internet
(256colors2.pl, colortest), which surely show more than 8 colors in my
terminal window. The problem is when I run emacs and type: M-x
list-colors-display. Emacs shows only boring 8 colors (not even 16).

A bit about my configuration. Emacs was compiled without X11 support
(from ports emacs-nox11-22.3). I also don't have xterm installed. I
tried to set env variable TERM=xterm-256color but it didn't help. There
is a special note about using terms in emacs in
"/usr/local/share/emacs/22.3/lisp/term/README" I unpacked xterm.el.gz
from that folder and tried to supply it as term/xterm-256color.el or
term/xterm.el to emacs, but that also didn't work.

It is interesting to note, that when I type: tput color I get different
values depending on the user and terminal:

user grzesiu, putty, TERM=xterm-256color, tput colors: 114
the same user, putty and TERM value, but tput colors: 123, another trial
and output is 80
user root, putty, TERM=xterm, tput colors: 184
the same user and putty, but TERM=xterm-256color, tput colors: 115
user grzesiu, ssh from cygwin, TERM=xterm-256color, tput colors: 139

I don't understand these values because when I run these scripts above I
don't see any difference in colors shown (subjectively). In neither of
these configurations emacs show more than 8 colors. Any ideas or
suggestions greatly appreciated.



This looks like emacs problem. Are you sure that emacs was compiled
with 256 color support? (at least I know that elinks can be configured
to support 88 and/or 256 and/or real colors)
Also is there some kind of termcap option in emacs to be changed/read?
I dont use emacs but in vim:
:set t_Co=256
will show 256 colors if terminal supports it.
Actually if t_Co termcap setting is N, vim will not try to show more
than N colors even if terminal supports X(>N) colors.

  
FreeBSD port doesn't allow to configure Emacs in any way, neither from 
the original port, nor from the nox11 version. I don't think there is 
any special option for emacs to show 256 colors. Wherever I could find 
some information about this, people were saying that Emacs version >=22 
supports 256 colors without any additional configuration. As I 
mentioned, Emacs not only doesn't show 256 colors, but not even 16, 
which I bet should be supported without any problems. No matter what I 
get only 8 colors, even if terminal is able to shows much much more.


Another strange thing is that as far as I can see xterm-256color in 
FreeBSD termcap is simply an alias to xterm. Nevertheless, with these 
scripts mentioned above I can view more than 16 colors even if TERM is 
defined only as xterm.


Do you think I should report it as a defect in emacs ports?
Greg


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Emacs doesn't want to support 256 colors in terminal window

2009-02-27 Thread Grzegorz Junka

Hi,
I hope someone will be able to help with this. I've already checked all
resources I could google but still can't get it to work. Basically my
terminal can show more than 16 colors but emacs doesn't want to use
these colors.

I run FreeBSD (7.1-RELEASE) as a virtual machine and use it without any
X interface, only through ssh from a Windows machine (the host). I have
set up both putty and ssh in cygwin to report term type as
'xterm-256color' (putty in the configuration window and xterm using -tn
command line parameter).

That part works fine because I can run scripts available on the internet
(256colors2.pl, colortest), which surely show more than 8 colors in my
terminal window. The problem is when I run emacs and type: M-x
list-colors-display. Emacs shows only boring 8 colors (not even 16).

A bit about my configuration. Emacs was compiled without X11 support
(from ports emacs-nox11-22.3). I also don't have xterm installed. I
tried to set env variable TERM=xterm-256color but it didn't help. There
is a special note about using terms in emacs in
"/usr/local/share/emacs/22.3/lisp/term/README" I unpacked xterm.el.gz
from that folder and tried to supply it as term/xterm-256color.el or
term/xterm.el to emacs, but that also didn't work.

It is interesting to note, that when I type: tput color I get different
values depending on the user and terminal:

user grzesiu, putty, TERM=xterm-256color, tput colors: 114
the same user, putty and TERM value, but tput colors: 123, another trial
and output is 80
user root, putty, TERM=xterm, tput colors: 184
the same user and putty, but TERM=xterm-256color, tput colors: 115
user grzesiu, ssh from cygwin, TERM=xterm-256color, tput colors: 139

I don't understand these values because when I run these scripts above I
don't see any difference in colors shown (subjectively). In neither of
these configurations emacs show more than 8 colors. Any ideas or
suggestions greatly appreciated.
Regards
GregJ

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"