10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
There are two hosts say A and B. On host B, Oracle DB is installed and running. I am trying to check if the DB on host B is up and running fine from a script on host A. Is this possible. I tried using commands like sql plus but those doesn't seem to help. Could you please guide. (8 Replies)
Discussion started by: harishshankar
2. Proxy Server
The host on which i work is a remote machine behind a proxy.
I have installed the jdk like that and it works well: (I access the remote machine via ssh)
http_proxy=http://proxy:3128 && https_proxy=http://proxy:3128
sudo apt-get install openjdk-7-jre-headless
:~# java... (1 Reply)
Discussion started by: chercheur111
Trying to set or modify the randomly set hostID of a Solaris 10 virtual/guest machine that I installed on a Windows-XP host machine (using Virtual Box 4.1.12).
I was able to set/modify the hostname of the Solaris 10 virtual/guest machine during installation as well as via the Virtual Box... (4 Replies)
Discussion started by: Matt_VB
I would like to ask in ubuntu or linux on how to list all my package or software the i installed via source code( compile installed in dir default is /usr/local) just like i solaris in which if you installed a package in ur choosing default root installation dir you can just issue a command... (2 Replies)
Discussion started by: jao_madn
I have a Windows server running WinSVR 2008R2 with a network share configured \\hostname\JSS_Share I would like to be able to mount this share on a Solaris host running Solaris 9. I would also like to mount a directory on the Solaris host and make it visible to the Windows server.
The idea... (1 Reply)
Discussion started by: jamba1
I'm having troubles on setting the default gateway address (and other addresses, such as netmask, or ip) of the host running a C program. I know it has to be with ioctl, but don't know how to do it.
Could somebody give me an example on how to set the default gateway address of... (4 Replies)
Discussion started by: semash!
I develop a unix program in HPUX
I want to package my program
to install on HPUX in some dierctory folder
and preinstall some software before install my program
package like xxx.depot
how can i do it, have any tools like use setupfactory tools in windows
... (4 Replies)
Discussion started by: alert0919
8. Shell Programming and Scripting
I currently use this construction to check whether a certain program is installed:
if ; then
cd /usr/ports/databases/sqlite3 && make install clean
echo "sqlite already installed"
Is this method recommended? Is this an effective method, ie sufficiently robust for... (3 Replies)
Discussion started by: figaro
9. Shell Programming and Scripting
I want to end a host (shell script based) concurrent program in WARNING. Is it possible? Tried out a few things but it just either ends in NORMAL or ERROR. :confused:
Any ideas/inputs would be appreciated.
coolblue_3 (2 Replies)
Discussion started by: coolblue_3
10. UNIX for Dummies Questions & Answers
How can I know the perl interpreter is installed in the system?
When I type 'find / -name perl -print 2>/dev/null', there is 6 lines listing:
/usr/opt/IAFW310/PERL/t/perl... (3 Replies)
Discussion started by: zp523444
SYSTEMD-NSPAWN(1) systemd-nspawn SYSTEMD-NSPAWN(1)
systemd-nspawn - Spawn a namespace container for debugging, testing and building
systemd-nspawn [OPTIONS...] [COMMAND] [ARGS...]
systemd-nspawn may be used to run a command or OS in a light-weight namespace container. In many ways it is similar to chroot(1), but more
powerful since it fully virtualizes the file system hierarchy, as well as the process tree, the various IPC subsystems and the host and
systemd-nspawn limits access to various kernel interfaces in the container to read-only, such as /sys, /proc/sys or /sys/fs/selinux.
Network interfaces and the system clock may not be changed from within the container. Device nodes may not be created. The host system
cannot be rebooted and kernel modules may not be loaded from within the container.
Note that even though these security precautions are taken systemd-nspawn is not suitable for secure container setups. Many of the security
features may be circumvented and are hence primarily useful to avoid accidental changes to the host system from the container. The intended
use of this program is debugging and testing as well as building of packages, distributions and software involved with boot and systems
In contrast to chroot(1) systemd-nspawn may be used to boot full Linux-based operating systems in a container.
Use a tool like debootstrap(8) or mock(1) to set up an OS directory tree suitable as file system hierarchy for systemd-nspawn containers.
Note that systemd-nspawn will mount file systems private to the container to /dev, /run and similar. These will not be visible outside of
the container, and their contents will be lost when the container exits.
Note that running two systemd-nspawn containers from the same directory tree will not make processes in them see each other. The PID
namespace separation of the two containers is complete and the containers will share very few runtime objects except for the underlying
If no arguments are passed the container is set up and a shell started in it, otherwise the passed command and arguments are executed in
it. The following options are understood:
Prints a short help text and exits.
Directory to use as file system root for the namespace container. If omitted the current directory will be used.
Run the command under specified user, create home directory and cd into it. As rest of systemd-nspawn, this is not the security feature
and limits against accidental changes only.
Turn off networking in the container. This makes all network interfaces unavailable in the container, with the exception of the
# debootstrap --arch=amd64 unstable debian-tree/
# systemd-nspawn -D debian-tree/
This installs a minimal Debian unstable distribution into the directory debian-tree/ and then spawns a shell in a namespace container in
# mock --init
# systemd-nspawn -D /var/lib/mock/fedora-rawhide-x86_64/root/ /sbin/init systemd.log_level=debug
This installs a minimal Fedora distribution into a subdirectory of /var/lib/mock/ and then boots an OS in a namespace container in it, with
systemd as init system, configured for debug logging.
The exit code of the program executed in the container is returned.
systemd(1), chroot(1), debootstrap(8), mock(1)
Lennart Poettering <email@example.com>
systemd 10/07/2013 SYSTEMD-NSPAWN(1)