Tag Info

Hot answers tagged

10

Endianness is a property of the CPU, not the operating system. Solaris is normally big-endian because Suns used big-endian CPUs, while UNIX was originally little-endian because it ran on little-endian machines. Today, common UNIX-derived operating systems such as Linux run on a wide variety of CPU architectures and can be either big- or little-endian ...


9

You are correct; Oracle is no longer contributing to OpenSolaris (reference). Oracle Solaris 11 Express releases more often than the standard build of Solaris and includes newer technologies. It may be used free of charge for development and testing, but not for production. Production use requires purchasing some form of Oracle Premier Support ...


7

x86 is their way of stating it is for both the x86-32 and the x86-64 architectures; in other words, it supports both 32-bit and 64-bit in the same install package. According to this, it actually installs both kernels: If you choose Solaris, the system will boot the 32-bit kernel. If you choose Solaris 64-bit, it will choose the 64-bit kernel. ...


7

Your assumptions are incorrect: Solaris is not big-endian, Unix is not little-endian. Both depend on the CPU they are running on. Solaris on a big-endian SPARC CPU is big-endian, Solaris on a little-endian Intel or AMD CPU is little-endian. Solaris is one flavor of Unix, others similarly run either big-endian or little-endian depending on the CPU ...


7

This is what your PATH environment variable is for. Arrange your PATH environment variable so that both locations are on the path, AND in the order you want them to to be checked. So in your example, /usr/local/bin should be earlier in the PATH than /usr/local/bin/scripts. Most systems will probably have /usr/local/bin already in the system path, so ...


6

The ZFS filesystem in OpenSolaris was the deciding factor over Linux/BSD for me when I recently built a file server. Some compelling ZFS features for me were: RAID-Z redundancy Data integrity checksums fundamental to the design Snapshots Simple command line tools Sure, ZFS can be bolted on to Linux with FUSE but in OpenSolaris it is standard and (so far ...


6

Solaris 10 and later no longer make /usr/ucb/ps setuid-root by default, and you need root privileges to poke into the address space of other users processes to get the full set of arguments. Run it as root or the process owner to see more than 80 characters of the command line. On Solaris 11, if you use options without a dash (like /usr/bin/ps auxwww) they ...


6

You're likely to have only one option as far as sparc emulation on windows 7 goes - QEMU - which is the only common emulator supporting dissimilar architectures. If it works, it'll likely to be MUCH slower than a real system , and apparently it dosen't work yet


6

The standard cause for this is some user process keeping a deleted file open. When this happens, the space is not visible via ‘du’, since the file is no longer visible in the directory tree. However, the space is still used by the file until it is deallocated, and that can only happen once the last process which has the file open either ...


5

You could try running top in batch mode: top -b -n100 > top.log where -n100 stands for 100 iterations. Another alternative is to use ps with appropriate arguments (these are from Linux, you may need to consult the man page of ps in Solaris). For convenience the command is embedded into a Bash script. #!/bin/bash while true ; do ps -eo ...


4

If you have GNU head, you can use head -n -5 file.txt to print all but the last 5 lines of file.txt. If head -n takes no negative arguments, try head -n $(( $(wc -l file.txt | awk '{print $1}') - 5 )) file.txt


4

While I can see not wanting to modify the original file, you can do the translation in a pipe. That way, you're not modifying the data, but you still get the benefit (in Unix utility terms) of turning ~ into end-of-line. This should do the trick: cat ding | tr "~" "\n" | tail -3 It is not the most efficient thing in the universe, but even on a ...


4

ZFS uses block level dedup rather than file level, so the tool would need to scan every file, create a DB of block hashes and then compare them to detect duplicate blocks. I'm not aware of anything that can do this. I think the easiest way (if not your only way) would be to test it out. Remember to enable dedup before you start copying the files, the dedup ...


4

The "SIZE" column measures the usage of address space, which is virtual memory. It's not a scarce resource, so 'excessive' consumption is usually nothing to worry about. However, if it is constantly going up, that could indicate a memory leak. Physical memory is likely not being wasted because the memory is not being used, but if the memory is dirtied, swap ...


4

In /etc/bashrc or ~/.bashrc change the PS1 environment variable to PS1=$. Or add a new line if no PS1 already exists with: PS1=$ Then, run this: source /etc/bashrc Or: source ~/bashrc


4

When I ran ssh -vvv on a server with a similar slow performance I saw a hang here: debug1: Next authentication method: gssapi-with-mic By editing /etc/ssh/ssh_config and commenting out that authentication method I got the login performance back to normal. Here's what I have in my /etc/ssh/ssh_config GSSAPIAuthentication no You can make this globally on ...


4

I was a RapidSVN guy before I discovered Bazaar Explorer: Both are great though. I'd strongly suggest learning the command-line as well once you get the time, you won't regret it!


4

Perhaps this isn't an answer to your question directly, but my own experience has been that typical NAS hardware costs about the same as a regular PC. The only reason you might get NAS vs a PC is its lower physical profile. We evaluated the NAS vs PC question quite a bit and eventually ended up with PC, because it has significantly more flexibility for us. ...


4

I think it would be a lot better to install/use sudo an with a configuration config that allows NOPASSWD for the specific action you are trying to automate. It will be much safer to allow a specific command via sudo then it would be to store your root password in a text file somewhere.


3

the equivalent of sudo on solaris is pfexec: http://developers.sun.com/developer/technicalArticles/opensolaris/pfexec.html http://www.c0t0d0s0.org/archives/4844-Less-known-Solaris-features-pfexec.html http://www.softpanorama.org/Solaris/Security/solaris_rbac.shtml maybe you should use that instead of a 3rd party sudo.


3

This "shell script" should display milliseconds: #!/bin/ksh if [ ! -x /var/tmp/time_ms ] then cat > /tmp/time_ms.c << % #include <sys/time.h> main() { struct timeval tv; gettimeofday(&tv,(void*)0); printf("%d.%d\n",tv.tv_sec,tv.tv_usec/1000); } % PATH=$PATH:/usr/sfw gcc /tmp/time_ms.c -o ...


3

You can always start ssh with the -v option which displays what is being done at the moment. $ ssh -v you@host With the information you gave I can only suggest some client side configurations: Since you write that you are entering passwords manually, I would suggest that you use public key authentification if possible. This removes you as a speed ...


3

tar -cvf java.tar --exclude="*.class" $HOME/java From the man pages: --exclude pattern Do not process files or directories that match the specified pattern. Note that exclusions take precedence over patterns or filenames specified on the command line.


3

History is a non OS dependent shell feature. Bash and ksh93 which are the most common login shells under Solaris 11 Express handle history a slightly different way. Make sure the HISTFILE variable is set when ksh is invoked, or set before you exit the shell if you use bash. In both cases, make sure it points to a file you have permissions to write to.


3

There is no 32-bit installation for Solaris 10 on SPARC. There is a single unified installation that provides a 64-bit kernel, and the ability to run both 32-bit & 64-bit userspace programs. Solaris 10 dropped support for pre-64-bit SPARC CPU's, since SPARCs have been 64-bit since 1995.


3

You can do this with: tr "~" "\n" < edi_file | tail -20 | grep ^SE The tr translates all tildes to newlines. (Those are represented by a \n). The output it then fed to tail, which discards all but the last 20 lines. You can probably fine tune this, depending on what you want to search. Without it the whole file gets fed to grep, which is probably a ...


3

Yes, this is doable as long as you install Windows 7 first after provisioning a free partition for Solaris to install. Solaris installer detects the Windows installation and add a GRUB entry to chainload Windows boot loader. The installation documentation states: Oracle Solaris recognizes Windows and ensures that Windows partitions remain unchanged ...


3

Especially as you are running in a virtualized environment, you shouldn't directly assume the culprit is a process. This can also be an hypervisor issue or an kernel related one. I would use dtrace to figure out what the kernel is doing during these high CPU usage periods: The DTraceToolkit cputimes and modcalls.d commands would be a good start. If your ...


3

On UNIX systems, if you do not specify the Oracle home directory during installation, the installer attempts to obtain it from information contained in the Oracle installation's oratab file, which it locates using the environment variable ORATAB_LOCATION. If ORATAB_LOCATION does not exist, the installer then attempts to find the file using the standard ...



Only top voted, non community-wiki answers of a minimum length are eligible