SnapOverflow

SnapOverflow Logo SnapOverflow Logo

SnapOverflow Navigation

  • Home
  • Server
  • Ubuntu

Mobile menu

Close
  • Home
  • System Administrators
    • Hot Questions
    • New Questions
    • Tags
  • Ubuntu
    • Hot Questions
    • New Questions
    • Tags
  • Help
Home / user-46527

Eonil's questions

Martin Hope
Eonil
Asked: 2013-09-23 15:01:23 +0800 CST

FreeBSD jail and patch-levels

  • 1

I am a newbie server manager and trying jails. It's too hard to configure it. So I decided to use ezjail utility. It seems working, but I got an issue.

When I installed my FreeBSD box, it was 9.0-RELEASE. After I upgrade it, it became 9.1-RELEASE-p7.

The problem is ezjail tried to download FreeBSD distro from FreeBSD FTP site. And it failed because ezjail wanted 9.1-RELEASE-p7 and the site has only 9.1-RELEASE.

I tried forcing download by manually specifying 9.1-RELEASE path, but created jail doesn't work with this message.

Configuring jails:.
Starting jails: cannot start jail "example_com":
.
Error: Could not start example.com
  You need to start it by hand.

I have no idea why it doesn't work. What is the recommended way to configure a jail for beginner?

P.S. My test VM is using DHCP and doesn't have static IP and domain name. can it cause this problem?

Update

I succeeded to install a jail using bsdinstall jail $JAIL_NAME. Anyway, I have no idea how it's done...

freebsd
  • 1 Answers
  • 281 Views
Martin Hope
Eonil
Asked: 2011-03-11 18:48:27 +0800 CST

How can I get list of open SSH tunnels?

  • 14

How can I get list of open SSH tunnels?


I'm using Mac OS X client connected to FreeBSD server. I'm trying to query open tunnels on the client.

ssh ssh-tunnel
  • 5 Answers
  • 32375 Views
Martin Hope
Eonil
Asked: 2011-03-11 18:47:02 +0800 CST

How can I close SSH tunnel gracefully?

  • 23

I have open tunnel with

ssh -2 -N -L 5001:localhost:1019 [email protected]

The tunnel is working good, but I have to Ctrl+C or Ctrl+D to force quit the tunnel. How can I close the tunnel gracefully?

ssh ssh-tunnel
  • 2 Answers
  • 13582 Views
Martin Hope
Eonil
Asked: 2011-03-09 22:27:41 +0800 CST

What's the situation that requires stateful firewall?

  • 3

I just know there is two kind of firewalls. Stateless and stateful. It's hard to determine what kind of firewall I have to use. Currently I have to run firewall within same machine runs services, Basically I want stateless because of its less resource consumption. However if it is not sufficient for security, it's meaningless. I'll run HTTP, SSH, NFS (only over SSH), and some custom made server on several TCP/UDP ports. Should I use stateful firewall?


(edit) Maybe the question can be assumed as 'Should I use stateful rules?'.

firewall
  • 3 Answers
  • 674 Views
Martin Hope
Eonil
Asked: 2011-03-09 00:53:06 +0800 CST

How to make NFS secure?

  • 8

How can I make NFS connection secure? Remote server is on the internet, and not in local network. The server has no firewall and connected to internet directly.

nfs security
  • 4 Answers
  • 30493 Views
Martin Hope
Eonil
Asked: 2011-03-07 23:17:18 +0800 CST

How to get input content from GET or POST request in CGI program (via apache)?

  • 4

I'm studying making a CGI program. Now I can print text what I want. But how can I get GET or POST input from CGI program? (such as query-string or post-body)

apache-2.2 cgi
  • 1 Answers
  • 4009 Views
Martin Hope
Eonil
Asked: 2011-03-02 12:08:53 +0800 CST

FreeBSD `freebsd-update` automation?

  • 8

freebsd-update command prints updating entries after it downloaded. But it shows them with more. So I have to press some spaces to continue. Is there a way to avoid this behavior? I want to execute update fully automated manner.

freebsd automation
  • 1 Answers
  • 788 Views
Martin Hope
Eonil
Asked: 2011-03-02 03:07:12 +0800 CST

How to automate SSH login with password?

  • 671

How to automate SSH login with password? I'm configuring my test VM, so heavy security is not considered. SSH chosen for acceptable security with minimal configuration.

ex)

echo password | ssh id@server

This doesn't work.

I remember I did this with some tricks somebody guided me, but I can't remember now the trick I used...

password ssh automation
  • 10 Answers
  • 1998510 Views
Martin Hope
Eonil
Asked: 2011-02-28 09:44:15 +0800 CST

What's the required to make a normal user can create schema on PostgreSQL?

  • 16

I created a new database test and created user 'eonil' with this command:

CREATE ROLE eonil LOGIN ENCRYPTED PASSWORD 'password' NOINHERIT VALID UNTIL 'infinity';

on my PostgreSQL. I run psql -U eonil test. When I tried to make a new schema, it shows an error.

test=> CREATE SCHEMA new_schema AUTHORIZATION eonil;
ERROR:  permission denied for database test
test=> 

Why does this make an error? What's required?

postgresql schema
  • 1 Answers
  • 25935 Views
Martin Hope
Eonil
Asked: 2011-02-28 03:07:37 +0800 CST

What's difference between "varchar" and "text" type in PostgreSQL?

  • 18

All I know about differences of them is varchar has limit, and text is not. The documentation does not mention about this.

Is that really the only difference? No consideration about performance or etc?

database postgresql
  • 3 Answers
  • 30329 Views
Martin Hope
Eonil
Asked: 2011-02-28 01:57:20 +0800 CST

How to print list of users and groups on FreeBSD?

  • 10

How to print list of users and groups on FreeBSD?

freebsd command
  • 1 Answers
  • 65006 Views
Martin Hope
Eonil
Asked: 2011-02-22 18:53:40 +0800 CST

How to download a single port on FreeBSD?

  • 3

How can I download a single port from freebsd site instead of downloading the whole port collection?

installation freebsd
  • 2 Answers
  • 2084 Views
Martin Hope
Eonil
Asked: 2011-02-14 18:45:56 +0800 CST

What's the Xen compatible VNC client for Mac OS X?

  • 2

I have a VPS hosting account, and the hosting is offered by Xen, and controllable via VNC. I could connect to my machine with my iOS app, but couldn't with Finder on Mac OS X. Maybe there is an unknown problem on Finder's VNC client. However I need Xen compatible VNC client for Mac OS X. Please recommend some.

xen mac-osx vnc vps
  • 3 Answers
  • 1106 Views
Martin Hope
Eonil
Asked: 2010-09-05 08:08:10 +0800 CST

Most simple way of extracting substring in Unix shell?

  • 9

What's the most simple way to extract substring on Unix shell (with regex)?

Simple means:

  • less feature
  • less options
  • less study

Update

I realized regex itself is conflicting with simplicity, and I chose the simplest one cut as the chosen answer. I am sorry for vague question. I changed title to represent current state of this QA more precisely.

unix shell regex
  • 4 Answers
  • 147715 Views
Martin Hope
Eonil
Asked: 2010-09-02 06:45:31 +0800 CST

How to continue execution of shell script after calling other shell script with `exec`?

  • 3

I have a script:

ACTION="build"

env -i
exec ./makelib.sh Release "${ACTION}"

env -i
exec ./makelib.sh Debug "${ACTION}"

Second exec does not execute. Why, and how can I execute it?

shell
  • 3 Answers
  • 14093 Views
Martin Hope
Eonil
Asked: 2010-09-02 06:03:23 +0800 CST

Running shell script with no environmental variables

  • 19

As I know, newly running shell script inherits it's environment variables. Is there a way to block this? (running shell without variable inheriting)

environment-variables shell
  • 2 Answers
  • 10501 Views
Martin Hope
Eonil
Asked: 2010-07-31 04:54:41 +0800 CST

CouchDB cross domain access from web?

  • 4

Currently, web application need to offer some kind of cross-domain HTTP header to access data on other domain: http://openfontlibrary.org/wiki/Web_Font_linking_and_Cross-Origin_Resource_Sharing

Is there any way to configure CouchDB to support unlimited cross-domain access? I'm using the db in-house purpose only.

couchdb cross-domain
  • 2 Answers
  • 1158 Views
Martin Hope
Eonil
Asked: 2010-06-30 00:04:20 +0800 CST

How can I download multiple files stored in a text file with curl and xargs?

  • 7

How can I download multiple files stored in a text file with curl and xargs? This is my last trial:

cat listfile.txt | xargs curl -O

first file works well, but other files are just output to stdout.

curl xargs
  • 3 Answers
  • 11655 Views
Martin Hope
Eonil
Asked: 2010-06-27 04:29:03 +0800 CST

grep question, how to filter several type of patterns?

  • 5

I'm console newbie. As I know, matching multiple patterns like this:

aaa|bbb

But, | character is pipe on console, so how can I specify those multiple patterns for grep?

grep
  • 6 Answers
  • 16249 Views
Martin Hope
Eonil
Asked: 2010-06-23 18:55:30 +0800 CST

How to let 'cp' command don't fire an error when source file does not exist?

  • 99

I'm using Mac OS X. I'm trying to copying some files with cp command for a build script like this.

cp ./src/*/*.h ./aaa

But this command fires an error if there is no .h file in ./src directory. How to make the command don't fire the error? (silent failure) The error makes build result fail, but I just want to copy when only there are some header file.

shell copy
  • 6 Answers
  • 150290 Views

Sidebar

Stats

  • Questions 681965
  • Answers 980273
  • Best Answers 280204
  • Users 287326
  • Popular
  • Answers
  • Marko Smith

    Can you pass user/pass for HTTP Basic Authentication in URL parameters?

    • 5 Answers
  • Marko Smith

    Ping a Specific Port

    • 18 Answers
  • Marko Smith

    Check if port is open or closed on a Linux server?

    • 7 Answers
  • Marko Smith

    How to automate SSH login with password?

    • 10 Answers
  • Marko Smith

    How do I tell Git for Windows where to find my private RSA key?

    • 30 Answers
  • Marko Smith

    What's the default superuser username/password for postgres after a new install?

    • 5 Answers
  • Marko Smith

    What port does SFTP use?

    • 6 Answers
  • Marko Smith

    Command line to list users in a Windows Active Directory group?

    • 9 Answers
  • Marko Smith

    What is a Pem file and how does it differ from other OpenSSL Generated Key File Formats?

    • 3 Answers
  • Marko Smith

    How to determine if a bash variable is empty?

    • 15 Answers
  • Martin Hope
    Davie Ping a Specific Port 2009-10-09 01:57:50 +0800 CST
  • Martin Hope
    Smudge Our security auditor is an idiot. How do I give him the information he wants? 2011-07-23 14:44:34 +0800 CST
  • Martin Hope
    kernel Can scp copy directories recursively? 2011-04-29 20:24:45 +0800 CST
  • Martin Hope
    Robert ssh returns "Bad owner or permissions on ~/.ssh/config" 2011-03-30 10:15:48 +0800 CST
  • Martin Hope
    Eonil How to automate SSH login with password? 2011-03-02 03:07:12 +0800 CST
  • Martin Hope
    gunwin How do I deal with a compromised server? 2011-01-03 13:31:27 +0800 CST
  • Martin Hope
    Tom Feiner How can I sort du -h output by size 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich What is a Pem file and how does it differ from other OpenSSL Generated Key File Formats? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent How to determine if a bash variable is empty? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus How do you find what process is holding a file open in Windows? 2009-05-01 16:47:16 +0800 CST

Related Questions

Trending Tags

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • Home
  • Questions
    • Hot Questions
    • New Questions
  • Tags
  • Help

Footer

SnapOverflow

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Help

© 2022 SOF-TR. All Rights Reserve