I am currently only need several basic applications for my box (basically : asterisk,apache-php,ssh) . However, i somehow running out of 1 Giga of my compact flash because the base installation in netbsd includes some softwares that I occasionally use
Does any of you could guide me to remove (uninstall) several softwares such as games,mail, x-window ? (it is not as simple as just by rm - rf from the /usr/games isn't it?)
I wan't to remove last 5 and 10 days files from two directory and send the remove files list in mail
Output send through mail
find /kalia/cd/ -type f -mtime +5 exec rm {} \;
find /kalia/uk/ -type f -mtome +10 exec rm {} \;
Output send through mail
File has been deleted
... (1 Reply)
Okay, I need some nerd magic here! LOL!
Using a bash script, I have a folder that I'd like to remove upon uninstalling a package. That part is simple but what isn't simple is taking into consideration a 'reinstall' or 'upgrade' of that same package.
By default, 'reinstalling' or 'upgrading'... (8 Replies)
I have Ubunut installed on my desktop
AMD 6 Core 3.2 (will be getting the bulldozer AMD 8 Core when it releases)
16 GB of DDR3 1333 RAM
SSD
some HDD's
Nvidia 560 ti 1GB
My question is, how can I or can I even get a Win 7 VM to play games as well in a main install. Give it 10 GBs of RAM... (0 Replies)
While sending mails using sendmail, the domain name is getting appended to the from id. My requirement is not to have that domain name in the From mail id. Could anyone help me on this? I am using the below command:
cat t|/usr/lib/sendmail -f"Admin" user1@domain1.com (0 Replies)
Hello,
I'm working on a Solaris 9/Sparc machine and it has the Solaris 10 version of Perl (5.8.8) installed on it, which always requires all kinds of library files that Solaris 9 doesn't come with. I think the best way to do is to uninstall this wrong version and install the correct Solaris 9... (1 Reply)
Hi I have NetBSD and i am having a trouble Starting X. It keeps asking me for the config file and I run the text confing file but it messes up. I really want to be able to run the Graphical Setup. I read about the Graphical setup from a book but they didn't tell how to start it. help please!? (9 Replies)
COMPAT_SVR4(8) BSD System Manager's Manual COMPAT_SVR4(8)NAME
compat_svr4 -- setup procedure for running SVR4/iBCS2 binaries compat_svr4_32 -- setup procedure for running 32-bit SVR4/iBCS2 binaries
DESCRIPTION
NetBSD supports running SVR4/iBCS2 binaries. This code has been tested on i386 (with binaries from SCO OpenServer and XENIX), m68k (with
binaries from AMIX) and sparc (with binaries from Solaris) systems. Most programs should work, but not ones that use or depend on:
kernel internal data structures
the /proc filesystem
the ticotsord loopback RPC mechanism (NIS uses this)
sound and video interfaces
threads (ttsession uses threads)
the streams administrative driver
The SVR4 compatibility feature is active for kernels compiled with the COMPAT_SVR4 option enabled. Since support for ELF executables is
included only if the kernel is compiled with the EXEC_ELF32 or EXEC_ELF64 options enabled, kernels which include COMPAT_SVR4 should also typ-
ically include EXEC_ELF32 (for 32-bit ELF support) and/or EXEC_ELF64 (for 64-bit ELF support).
Another compatibility feature is COMPAT_SVR4_32, which allows the execution of 32-bit SVR4 binaries on a machine with a 64-bit kernel. This
requires EXEC_ELF32 and COMPAT_NETBSD32 options as well as COMPAT_SVR4. It is configured the same way as COMPAT_SVR4 but uses the
/emul/svr4_32 directory instead of /emul/svr4. But typically, /emul/svr4_32 can be made to point to /emul/svr4 if the operating system
donating the libraries has support for both 32-bit and 64-bit binaries.
Execution of 32-bit SVR4 binaries on a machine with a 32-bit kernel uses COMPAT_SVR4, not COMPAT_SVR4_32.
Most SVR4 programs are dynamically linked. This means that you will also need the shared libraries that the program depends on and the run-
time linker. Also, you will need to create a ``shadow root'' directory for SVR4 binaries on your NetBSD system. This directory is named
/emul/svr4. Any file operations done by SVR4 programs run under NetBSD will look in this directory first. So, if a SVR4 program opens, for
example, /etc/passwd, NetBSD will first try to open /emul/svr4/etc/passwd, and if that does not exist open the 'real' /etc/passwd file. It
is recommended that you install SVR4 packages that include configuration files, etc under /emul/svr4, to avoid naming conflicts with possible
NetBSD counterparts. Shared libraries should also be installed in the shadow tree.
The simplest way to set up your system for SVR4 binaries is:
1. Make the necessary directories:
(me@netbsd) mkdir -p /emul/svr4/{dev,etc}
(me@netbsd) mkdir -p /emul/svr4/usr/{bin,lib,ucblib}
(me@netbsd) mkdir -p /emul/svr4/usr/openwin/{bin,lib}
(me@netbsd) mkdir -p /emul/svr4/usr/dt/{bin,lib}
2. Copy files from an svr4 system:
(me@svr4) cd /usr/lib
(me@svr4) tar -cf - . |
rsh netbsd 'cd /emul/svr4/usr/lib && tar -xpf -'
(me@svr4) cd /usr/ucblib
(me@svr4) tar -cf - . |
rsh netbsd 'cd /emul/svr4/usr/ucblib && tar -xpf -'
If you are running openwindows:
(me@svr4) cd /usr/openwin/lib
(me@svr4) tar -cf - . |
rsh netbsd 'cd /emul/svr4/usr/openwin/lib && tar -xpf -'
(me@svr4) cd /usr/dt/lib
(me@svr4) tar -cf - . |
rsh netbsd 'cd /emul/svr4/usr/dt/lib && tar -xpf -'
3. You will also probably need the timezone files from your Solaris system, otherwise emulated binaries will run on UTC time.
(me@netbsd) mkdir -p /emul/svr4/usr/share/lib/zoneinfo
(me@netbsd) mkdir -p /emul/svr4/etc/default
(me@svr4) cd /usr/share/lib/zoneinfo
(me@solaris) tar -cf -. |
rsh netbsd 'cd /emul/svr4/usr/share/lib/zoneinfo &&
tar -xpf -'
(me@netbsd) echo TZ=US/Pacific > /emul/svr4/etc/default/init
4. Set up the configuration files and devices:
(me@netbsd) cd /usr/share/examples/emul/svr4/etc
(me@netbsd) cp netconfig nsswitch.conf /emul/svr4/etc
(me@netbsd) cp SVR4_MAKEDEV /emul/svr4/dev
(me@netbsd) cd /emul/svr4/dev && sh SVR4_MAKEDEV all
As the major number allocated for emulation of SVR4 devices may vary between NetBSD platforms, the SVR4_MAKEDEV script uses the uname(1)
command to determine the architecture the devices nodes are being created for; this can be overridden by setting the MACHINE environment
variable accordingly.
An alternative method is to mount a whole SVR4 partition in /emul/svr4 and then override with other mounts /emul/svr4/etc and /emul/svr4/dev.
BUGS
Many system calls are still not emulated. The streams emulation is incomplete (socketpair does not work yet).
Most SVR4 executables can not handle directory offset cookies > 32 bits. More recent ones, compiled for large file support (Solaris 2.6 and
up) can. With older programs, you will see the message ``svr4_getdents: dir offset too large for emulated program'' when this happens. Cur-
rently, this can only happen on NFS mounted filesystems, mounted from servers that return offsets with information in the upper 32 bits.
These errors should rarely happen, but can be avoided by mounting this filesystem with offset translation enabled. See the -X option to
mount_nfs(8). The -2 option to mount_nfs(8) will also have the desired effect, but is less preferable.
BSD April 19, 1999 BSD