Thread View: pl.comp.os.bsd
4 messages
4 total messages
Started by Norbi
Sat, 14 Feb 2009 15:36
FREEBSD - czy w jailu mozna ustawic sterfe czasowa?
Author: Norbi
Date: Sat, 14 Feb 2009 15:36
Date: Sat, 14 Feb 2009 15:36
17 lines
1116 bytes
1116 bytes
... albo wymusic wyswietlanie czasu w CET? teraz mam tak # date Sat Feb 14 16:33:24 CET 2009 # jexec 36 date Sat Feb 14 15:33:33 UTC 2009 a chcialbym zeby jail rowniez pokazywal czas w CET Nie udalo mi sie tego zrobic, ale moze po prostu nie wiem jak. Da sie? Pozdrawiam Norbert
Re: FREEBSD - czy w jailu mozna ustawic sterfe czasowa?
Author: Marek Krawczyk
Date: Sun, 15 Feb 2009 08:18
Date: Sun, 15 Feb 2009 08:18
90 lines
3666 bytes
3666 bytes
Dnia 14-02-2009 o 16:36:33 Norbi <norbertn_ihatespam_@post.pl_withoutspam>
napisał(a):
> ... albo wymusic wyswietlanie czasu w CET?
>
> teraz mam tak
>
> # date
> Sat Feb 14 16:33:24 CET 2009
> # jexec 36 date
> Sat Feb 14 15:33:33 UTC 2009
>
>
> a chcialbym zeby jail rowniez pokazywal czas w CET
>
> Nie udalo mi sie tego zrobic, ale moze po prostu nie wiem jak.
> Da sie?
W man do jail (8) masz napisane jak sie jaila konfiguruje:
[...]
Configuring the Jail
Start any jail for the first time without configuring the network
inter-
face so that you can clean it up a little and set up accounts. As
with
any machine (virtual or not) you will need to set a root password,
time
zone, etc. Some of these steps apply only if you intend to run a full
virtual server inside the jail; others apply both for constraining a
par-
ticular application or for running a virtual server.
Start a shell in the jail:
jail /data/jail/192.0.2.100 testhostname 192.0.2.100 /bin/sh
Assuming no errors, you will end up with a shell prompt within the
jail.
You can now run /usr/sbin/sysinstall and do the post-install
configura-
tion to set various configuration options, or perform these actions
manu-
ally by editing /etc/rc.conf, etc.
o Create an empty /etc/fstab to quell startup warnings about
missing fstab (virtual server only)
o Disable the port mapper (/etc/rc.conf: rpcbind_enable="NO")
(virtual server only)
o Configure /etc/resolv.conf so that name resolution within
the
jail will work correctly
o Run newaliases(1) to quell sendmail(8) warnings.
o Disable interface configuration to quell startup warnings
about
ifconfig(8) (network_interfaces="") (virtual server only)
o Set a root password, probably different from the real host
sys-
tem
o Set the timezone
o Add accounts for users in the jail environment
o Install any packages the environment requires
You may also want to perform any package-specific configuration (web
servers, SSH servers, etc), patch up /etc/syslog.conf so it logs as
you
would like, etc. If you are not using a virtual server, you may wish
to
modify syslogd(8) in the host environment to listen on the syslog
socket
in the jail environment; in this example, the syslog socket would be
stored in /data/jail/192.0.2.100/var/run/log.
Exit from the shell, and the jail will be shut down.
[...]
Co do samej strefy jeśli chcesz na szybko to:
cp /usr/share/zoneinfo/Europe/Warsaw /tam_gdzie_masz_jaila/etc/localtime
>
> Pozdrawiam
> Norbert
Pozdrawiam.
--
Marek Krawczyk
Re: FREEBSD - czy w jailu mozna ustawic sterfe czasowa?
Author: Norbi
Date: Mon, 16 Feb 2009 13:42
Date: Mon, 16 Feb 2009 13:42
10 lines
1182 bytes
1182 bytes
> Co do samej strefy jeśli chcesz na szybko to: > > cp /usr/share/zoneinfo/Europe/Warsaw /tam_gdzie_masz_jaila/etc/localtime Dzieki, na to wpadlem juz wczesniej, niestety tak nie dziala :-( moze przyczyna jest to ze jailami zarzadzam przy pomocy ezjail Pozdrawiam Norbert
Re: FREEBSD - czy w jailu mozna ustawic sterfe czasowa?
Author: Norbi
Date: Mon, 16 Feb 2009 13:57
Date: Mon, 16 Feb 2009 13:57
6 lines
1044 bytes
1044 bytes
Cos jednak musialem robic inaczej, Postanowilem zrobic to co napisales ... i dziala, dziekuje Pozdrawiam Norbert
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads