How can I install dialog4ports in my qjail3 environment?

2013-06-15 Thread Masayoshi Fujimoto
Hi,
How can I install dialog4ports in my qjail3 environment?
I will be grateful for any help you can provide.


root # cd /usr/ports/sysutils/qjail
root # qjail create -n em0 webserver 192.168.0.50
root # pkg_info | grep qjail
qjail-3.0   Utility to quickly deploy and manage jails


webserver /usr/ports/ports-mgmt/dialog4ports >make install clean
=> dialog4ports-0.1.4.tar.gz doesn't seem to exist in /var/ports/distfiles/.
=> Attempting to fetch http://m1cro.tk/dialog4ports/dialog4ports-0.1.4.tar.gz
dialog4ports-0.1.4.tar.gz 100% of    9 kB   61 kBps
===> Fetching all distfiles required by dialog4ports-0.1.4 for building
===>  Extracting for dialog4ports-0.1.4
=> SHA256 Checksum OK for dialog4ports-0.1.4.tar.gz.
===>  Patching for dialog4ports-0.1.4
===>  Configuring for dialog4ports-0.1.4
===>  Building for dialog4ports-0.1.4
"/dev/null", line 1: Need an operator
make: fatal errors encountered -- cannot continue
*** [do-build] Error code 1

Stop in /usr/ports/ports-mgmt/dialog4ports.

___
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"


upgrade qjail

2013-06-08 Thread Masayoshi Fujimoto
Hi.
Could you tell me how to upgrade qjail-1.7 to qjail-3.0 ?
I can not start "www".  So I have to use qjail-1.7 now. >_>


root@freebsd:/root # pkg_info | grep qjail
qjail-1.7   Utility to quickly deploy and manage jails


root@freebsd:/root # jls
   JID  IP Address  Hostname  Path
 1  192.168.0.20www   /usr/jails/www


root@freebsd:/root # portmaster qjail
root@freebsd:/root # rehash 
root@freebsd:/root # pkg_info | grep qjail
qjail-3.0   Utility to quickly deploy and manage jails
root@freebsd:/root # reboot

I got the following message.

jail: qjail: path : not an absolute pathname
Error: /usr/sbin/jail failed to start jail www.
because of errors in jail.conf file.



root@freebsd:/root # cat /etc/jail.conf 
qjail { 
host.hostname   =  "qjail";
path=  "";
mount.fstab =  "";
exec.start  =  "/bin/sh /etc/rc";
exec.stop   =  "/bin/sh /etc/rc.shutdown";
exec.consolelog =  "/var/log/qjail.qjail.console.log";
devfs_ruleset   =  "4";
allow.mount.devfs;
}


So I edited /etc/jail.conf :

www  {
host.hostname   =  "www";
path=  "/usr/jails/www";
mount.fstab =  "";
exec.start  =  "/bin/sh /etc/rc";
exec.stop   =  "/bin/sh /etc/rc.shutdown";
exec.consolelog =  "/var/log/qjail.qjail.console.log";
devfs_ruleset   =  "4";
allow.mount.devfs;
ip4.addr = 192.168.0.20;
interface = "alc0";
}


root@freebsd:/root # /usr/local/etc/rc.d/qjail.bootime restart
jail: qjail: path : not an absolute pathname
Error: /usr/sbin/jail failed to start jail www.
because of errors in jail.conf file.

I got same massage.
My /etc/jail.conf has been changed default one.

___
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"


Can I use qjail on FreeBSD 9.0?

2012-02-04 Thread masayoshi
Hi

Can I use qjail on FreeBSD 9.0?
I

# qjail install > log

Could not fetch base from ftp2.freebsd.org.
Maybe your release (9.0-RELEASE) is specified incorrectly or
the host ftp2.freebsd.org does not provide that release build.
Use the -r option to specify an existing release or the -h option to
specify an alternative ftp server.

# less log 
pub/FreeBSD/releases/amd64/9.0-RELEASE/base: No such file or directory.
pub/FreeBSD/snapshot/amd64/9.0-RELEASE/base: No such file or directory.
pub/FreeBSD/amd64/9.0-RELEASE/base: No such file or directory.
releases/amd64/9.0-RELEASE/base: No such file or directory.
snapshots/amd64/9.0-RELEASE/base: No such file or directory.

# pkg_info | grep qjail
qjail-1.1_1 Utility to quickly deploy and manage large numbers of jails

Thanks in advance.

 
--- 

masayoshi & Ayumi Kinoshita
___
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: I am FreeBSD user.

2011-12-04 Thread masayoshi
- Original Message -

> From: Warren Block 
> To: masayoshi 
> Cc: "freebsd-questions@freebsd.org" 
> Sent: Monday, 5 December 2011 10:42 AM
> Subject: Re: I am FreeBSD user. 
> 
> On Sun, 4 Dec 2011, masayoshi wrote:
> 
>>  When I was looking for sudo, I noticed a weired thing.
>> 
>> 
> http://www.freebsd.org/cgi/man.cgi?query=sudo&apropos=0&sektion=0&manpath=Red+Hat+Linux%2Fi386+9&arch=default&format=html
>> 
>> 
> http://www.freebsd.org/cgi/man.cgi?query=sudo&apropos=0&sektion=0&manpath=SuSE+Linux%2Fi386+ES+10+SP1&arch=default&format=html
>> 
>>  I am FreeBSD user. <3
>>  I hate Linux. lol
>> 
>>  Why can I select other operation's man page on our FreeBSD webisite?
>>  Is it for Linux emulator?
> 
> Could be.  It's also really useful to see what the options to Linux 
> commands do when trying to adapt or convert something.


Thank you very much.
Our freebsd users are  open-minded.
Now, I could understand about it.




 
---
Inexperienced FreeBSD user: Level 4
masayoshi & Ayumi Kinoshita
http://tinyurl.com/63zg3op
>
___
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: Problem with jail network

2011-11-30 Thread masayoshi


 

- Original Message -
> From: bsd 
> To: Liste FreeBSD 
> Cc: 
> Sent: Thursday, 1 December 2011 1:05 AM
> Subject: Problem with jail network 
> 
> Hi, 
> 
> I have been configuring a jail system using the howto provided here : 
> http://www.freebsd.org/doc/handbook/jails-application.html
> 
> The is now correctly starting, but I can't seem to use the network stack. 
> 
> 
>>  root@master 16:52:55 ~ -> jls
>>  JID  IP Address      Hostname                      Path
>>    1  xx.216.yy.150  n0.no.no                    /jail/j/n0
> 
> 
> But I can't ping neither outside of the jail, nor inside of It. 
> 
> I am a bit confused because I don't know if I have to configure the IP using 
> an alias on the main Eth interface, or do something else. 
> 
>>  ifconfig_bce0_alias0="inetxx.216.yy.150/32"
> 
> 
> 
> This last command seems to have frozen my system. 
> 
> 
> Since I can't reach the network, I can't install ports either… ! 
> 

It might be wrong information. >_>
Perhaps you might setup /etc/resolv.conf in Jail?

http://www.cyberciti.biz/faq/freebsd-mount_nullf-usrports-inside-jail/


---
Inexperienced FreeBSD user: Level 4
masayoshi & Ayumi Kinoshita
http://tinyurl.com/63zg3op
>
___
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: How to login to my jail from host itself (normal user)

2011-11-13 Thread masayoshi
- Original Message -

> From: "per...@pluto.rain.com" 
> To: m.sea...@infracaninophile.co.uk
> Cc: rocksta...@y7mail.com; freebsd-questions@freebsd.org
> Sent: Monday, 14 November 2011 3:02 PM
> Subject: Re: How to login to my jail from host itself (normal user)
> 
> Matthew Seaman  wrote:
> 
>>  If you can rely on your user to follow instructions, then you
>>  can just tell them to 'ssh jailhost' immediately they login to
>>  the host ...
> 
> Might it work equally well, and avoid the dependency on following
> instructions, to put
> 
>   exec ssh jailhost
> 
> in this user's .login on the real host?


For me, as I am newbie, it is simple,easy,very very cool idea.
Normal user can damage my computer in illegal way.
They want to have root authority without permission.

She might kill even people. <3
Thanks you for your advice.
I can keep her in jail on my host computer.


 


---
Inexperienced FreeBSD user: Level 3
masayoshi & Ayumi Kinoshita
http://tinyurl.com/63zg3op
___
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"


How to login to my jail from host itself (normal user)

2011-11-12 Thread masayoshi
Hi,I am masayoshi.
If you have enough time, please answer my question.

I must adduser Ayumi as normal user.
After adding her in jail, I add her in host.
Then I type the following command:

# ln -s /usr/jails/www/home/ayumi  /home

When she logins, she is in /usr/jails/www/home/ayumi.
But if she uses "cd" command, she can move directory.

I would like to keep her in jail because she is reckless.
I would like to know how to login to my jail as normal user from host itself 
when login prompt appear.
If possible, could you tell me how to do it?

Thanks in advance.



%uname -r
8.2-RELEASE-p4

%pkg_info | grep ezjail
ezjail-3.1  A framework to easily create, manipulate and run FreeBSD


%ifconfig em0
em0: flags=8843 metric 0 mtu 1500
    
options=219b
    ether 00:19:d1:1e:1c:72
    inet 192.168.0.2 netmask 0xff00 broadcast 192.168.0.255
    inet 192.168.0.20 netmask 0x broadcast 192.168.0.20
    media: Ethernet autoselect (100baseTX )
    status: active

%jls
   JID  IP Address  Hostname  Path
 1  192.168.0.20    www   /usr/jails/www

 
---
Inexperienced FreeBSD user: Level 3
masayoshi & Ayumi Kinoshita
http://tinyurl.com/63zg3op
___
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: freebsd-update (custom kernel)

2011-11-03 Thread masayoshi
Sorry,all.
I will email same message. 
I am not familiar  with this webmail.

Thank you very much for the understandable explanations.
I appreciate it very much.
___
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: freebsd-update (custom kernel)

2011-11-03 Thread masayoshi

---
Inexperienced FreeBSD user: Level 1
pow 1, spd 1, vit 1,int 1,luck 1


--- On Fri, 4/11/11, Alexandre  wrote:

> From: Alexandre 
> Subject: Re: freebsd-update (custom kernel)
> To: "Jason Helfman" , "Michael Sierchio" 
> , "masayoshi" 
> Cc: freebsd-questions@freebsd.org
> Received: Friday, 4 November, 2011, 3:42 AM
> >
> >
> >  I beg to differ. If you run a kernel called
> CUSTOM, it won't work. And if
> Hi,
> The freebsd-update tool works fine with GENERIC and CUSTOM
> kernels. In
> fact, GENERIC kernel is upgraded during the upgrade step.
> With a custom
> kernel, you just have to rebuild it. This tool update by
> default the source
> code, the entire base system, and the kernel.
> Please read the handbook :
> http://www.freebsd.org/doc/handbook/updating-upgrading-freebsdupdate.html


Thank you very much for the understandable explanations.
I appreciate it very much.


___
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"


freebsd-update (custom kernel)

2011-11-03 Thread masayoshi
I would like to know about freebsd-update command.
It is rumoured that freebsd-update command does not work well with custom 
kernel.
First question is the following :

> su -
#freebsd-update fetch
#freebsd-update install

Does this command work well?

The answer is .
[A].Always work, [B]Depend on my computer.


Second question is ...
For example,if I upgrade from FreeBSD 7.4 to 8.2 by freebsd-update command.
Can I upgrade without failure?
I would like to know only "success rate"?

The answer is 
[A].about 100%, [B].about 80%,[C].about 75%,[D] less than 50%

Thanks in advance.

---
Inexperienced FreeBSD user: Level 1
pow 1, spd 1, vit 1,int 1,luck 1
___
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"