Questions tagged [solaris]

Solaris is a Unix operating system originally developed by Sun Microsystems (currently owned by Oracle) as a rebranding of SunOS 4.1.x in 1991.

Filter by
Sorted by
Tagged with
0
votes
2answers
2k views

DNS configuration in Solaris 10

Am trying to create DNS server on Solaris 10 in VirtualBox. Steps which I did. Step I vi /etc/named.conf options { directory "/var/named"; }; zone "." { type hint; file "...
6
votes
2answers
22k views

Solaris + display file time stamp [year][month][day]

I have Solaris 10 machine I need to verify time stamp of some file in my Solaris machine And to get the following format [year][month][day] Example of working command on Linux ls -l --time-...
1
vote
0answers
120 views

Solaris 11 ops center installation errors

I am trying to install ops center on my test server but whenever I start the installation, I get: error: The configured Oracle Solaris 11 publisher, Solaris, does not support the version of Oracle ...
0
votes
2answers
1k views

Unable to open Windows Disk partitions in solaris 11

Not sure if I have come to the right place with the right problem but I don't really have much option as I have not found even a close solution to my problems in any other website during my tireless ...
1
vote
0answers
87 views

Passing environment variables via sudo on solaris 10

I need to execute a command via sudo on Solaris 10, and I need to pass two environment variables to the command. This must be done in /bin/sh, not bash, not ksh. This is possible on Linux, serveral ...
0
votes
0answers
26 views

Trouble installing Oracle Developer Studio

ALL, root@solaris:~# df -k Filesystem 1024-blocks Used Available Capacity Mounted on rpool/ROOT/s11.3qa_example_backup 511967232 5085980 495960478 ...
0
votes
1answer
116 views

Problem installing Solaris Studio

I was following instructions here, but unfortunately, trying to do the last command: $ pkg contents -m sunpro-incorporation | grep 0.175 didn't yield anything. NOTE: I'm trying to install it on ...
6
votes
3answers
43k views

How do I use grep to find a text string in files in sub folders of a parent folder without -r switch

I'm using Solaris 10 and have two grep versions one in /usr/bin and one in /usr/xpg4/bin. I have been searching for an answer on how to search for text within files within sub folders of a parent ...
10
votes
1answer
16k views

Solaris equivalent for depth/prune?

I am trying to find some files inside a directory. By default, the find command is searching the directory which I have specified and it's sub directories. I tried to use depth/maxdepth and prune, ...
1
vote
2answers
331 views

Upgrading Solaris zone to solaris 11 [closed]

We have solaris zones running in Sparc T5 server Currently a solaris zone run Solaris 10 OS version. $uname -a SunOS zone01 5.10 Generic_150400-30 sun4v sparc sun4v Going further, we would like ...
0
votes
1answer
2k views

How to permanently Set/change the Limits in Solaris 10 system wide

I received email from oracle to change the limit on solaris 10 server to make oracle application work, unfortunately i have no experience in Solaris, so need assistance Values will be like below ...
1
vote
3answers
325 views

How much swap space does Solaris 11.3 need to run a compiler?

I have a desktop with a Core i5 3rd gen and 4 GB of RAM. I am using the machine to test building some free software projects I contribute to. The machine serves no other purpose. I allocated 4 GB ...
1
vote
2answers
720 views

Can't create a swapfile for Solaris 11.3

My compiles are failing on Solaris 11.3 due to out of memory kills. The box is an UltraSPARC workstation with 600GB drives and 8 GB of RAM and a fresh OS install. It is absolutely befuddling there's ...
0
votes
1answer
882 views

Shell - Find the latest file which matches a given pattern

I have the following files. root@VMBOX:/client# ls -lrt /client/*/ver* /client/*/*/ver* -rw-r--r-- 1 root root 0 Jul 5 18:54 /client/folder299/version_1 -rw-r--r-- 1 root root 0 Jul 5 18:58 /...
0
votes
0answers
382 views

Solaris 11.3 and SSHD privilege separation

I'm working on a OpenSSH server installation on Solaris 11.3. When I build OpenSSH 7.7p1 from source and install it make dies at the end after installing the components: $ sudo gmake install ... /...
5
votes
3answers
5k views

What process is accessing a mounted filesystem sporadically?

I have a Solaris 10 server with autofs-mounted home dirs. On one server they are not unmounted after the 10 min timeout period. We've got AUTOMOUNT_TIMEOUT=600 in /etc/default/autofs, I ran automount -...
2
votes
3answers
5k views

stat command not found

I want to execute stat command in my unix shell /usr/bin/ksh: Input: /bin/date +%Y%m%d%H%M%S -d "$(/usr/bin/stat -c %x find.txt)" And the output: /usr/bin/ksh: stat: not found My system: SunOS 5....
2
votes
1answer
279 views

How do I avoid colour channel issues with 24-bit colour remote X11 with older Solaris?

When using CDE on older Solaris systems (2.5.x) remotely using XDMCP with TrueColor visuals, on-screen pixmaps are missing the blue channel and have the red and green channels swapped. This means ...
0
votes
1answer
461 views

pkg set-publisher: One or more client key and certificate files have expired

I have an older Solaris 11.3 box. The box has my old key and certificate on it and they are expired. It is causing pkg update to fail: pkg update: One or more client key and certificate files have ...
4
votes
1answer
2k views

ls and vim color on SunOS 5.8/Solaris 8

I want to use ls and vim with color on SunOS 5.8: SunOS 5.8 Generic_117350-11 sun4u sparc SUNW,Sun-Blade-2500 I have installed ls (GNU coreutils) 6.9 and vim 7.2 In ~/.cshrc: setenv TERM sun-color ...
13
votes
3answers
2k views

unix - accidentally moved everything under root to /old - Solaris 10

As the headline says everything or almost everything important as root under root (/) was moved to /old on a Solaris 10 machine. So now the typical fault when trying when running commands are Cannot ...
8
votes
3answers
15k views

Delete a range of email messages using the 'mail' command

I have about 1k+ mails in an inbox (old cronjob stdout). How do I delete them in bulk? I'm on Solaris 8 and I have only mail available, no pine or mutt or similar "UI"-based client. Inline help ...
0
votes
1answer
790 views

pkg set-publisher fails on Solaris 11

I'm trying to install Sun/Oracle Studio on Solaris 11. We have a free developer account on the Sun Developer Network. I have the developer key and certificate. I scp'd them to the UltraSPARC ...
3
votes
2answers
2k views

How to get pkg properties in machine readable format on Solaris 11

I would like to be able to extract (from within a shell script) the attributes of an IPS package. Basically I'm after exact same information as is listed with the pkg info command, but unfortunately ...
1
vote
1answer
427 views

Solaris 11 manifest-import does not automatically import my manifest

I have a manifest XML file. When I copy my XML to /var/svc/manifest/ and restart manifest-import service sudo svcadm restart svc:/system/manifest-import, the service does not appear in my service list....
4
votes
3answers
5k views

Copying faster than cp?

I am currently copying a large number of directories and files recursively on the same disk using cp -r. Is there a way to do this more quickly? Would compressing the files first be better, or maybe ...
-1
votes
1answer
611 views

chmod very slow on NFS [closed]

Is there any way I can speed up chmod on an NFS server? I am running chmod on a number of files each time a script is run. It is almost immediate when run locally, but when targeting the NFS server ...
1
vote
0answers
145 views

How to install php7 on solaris 10 with Oracle Instant client

I am trying to install php7 with oracle on Solaris 10. The oracle instant-client-basic and instant-client sdk was downloaded from oracle The instant client-basic was unzipped and this creates the ...
5
votes
3answers
3k views

How to create a gnu tarball that can be extracted by solaris tar

I am maintaining a legacy cygwin (with GNU tar v1.21) system and a legacy Solaris 9 system. The configuration of the Solaris 9 system is fixed and cannot be upgraded (i.e. I can't install gnu tar for ...
0
votes
2answers
137 views

truss on Solaris showing FDs closed that aren't opened

I'm confused. One of our DBAs is reporting an issue with LDAP connection errors. I figured I'd start tracing that from truss to see exactly what it's connecting to, but what I'm seeing makes no ...
22
votes
11answers
20k views

Tool in UNIX to subtract dates

Is there any tool in Solaris UNIX (so no GNU tool available) to subtract dates? I know that in Linux we have gawk that can subtract one date from another. But in Solaris the maximum we have is nawk (...
10
votes
2answers
1k views

Are there any alternatives to the `find` command on linux for SunOS?

The find command on Linux has a lot of options compared to the find command on SunOS or Solaris. I want to use the find command like this: find data/ -type f -name "temp*" -printf "%TY-%Tm-%Td %f\n"...
1
vote
1answer
247 views

Why does =~ operator give a syntax error on Solaris while comparing with a regular expression

I used this following piece of code appcount_range="^[1-$APP_COUNT]$" until [[ $APP_OPTION =~ $appcount_range ]] do echo "INVALID CHOICE! Please enter a valid option:" ...
3
votes
1answer
622 views

How to install php7 on solaris 10 with OpenSSL 1.0.1

I am trying to install php7 on Solaris 10. OpenSSL 1.0.1 was installed from https://www.opencsw.org/packages/libssl1_0_0/ To check for the installed ssl I did pkginfo -i | grep -i "ssl" and I ...
0
votes
2answers
1k views

How to build a gcc-4.9.0 successfully on solaris 10 sparc

I am trying to build a gcc-4.9.0 on solaris 10 sparc. gmp was successfully built and install at /application/gmp-6.0.0a mpfr was also successfully built and install at /application/mpfr-3.1.2 ...
5
votes
2answers
1k views

How to correctly extract a .tar.gz with md5.sum on solaris 10

I am trying to extract a gcc-4.9.0.tar.gz downloaded from one of the gcc mirror site. In order to check the md5 signature on it before I gunzip it I did digest -a md5 -v gcc-4.9.0.tar.gz which ...
1
vote
2answers
1k views

How to increase the system CPU load/utilization in Solaris 10 to test nagios?

I want to increase the system CPU load in Solaris 10 in order to test this scenario in Nagios. I'm running following command to get the CPU utitlization in Solaris: bash-3.00# sar -s 10 60 SunOS ...
0
votes
0answers
70 views

file ending .gz0 - which program does this?

On my Solaris 10 boxes, I have compressed log files with the ending .gz0. gunzip cannot unzip them, however if I change the ending to .gz, gunzip will unzip them, and these files appear to be empty. ...
0
votes
2answers
226 views

Export specific folders from .tar

i have a test.tar in the folder /dir1/dir2/ and i want to extract folders from my test.tar into the directory /dir1/dir2/. The structure of my test.tar ist test.tar |tdirX/ |tdirY/ |tdirZ/ and so ...
11
votes
8answers
2k views

Display blank lines by cat command

I have a list of files.txt, below: -rw-rw-r-- 1 root dev 11 May 16 12:18 20_SumActive.txt -rw-rw-r-- 1 root dev 11 May 16 12:18 22_SumActive.txt -rw-rw-r-- 1 root dev 7 May 16 12:18 24_SumActive....
1
vote
2answers
3k views

One time query to sync time with NTP server

I do not plan to configure NTP client to sync with the NTP servers for my Solaris servers. Is it possible that I connect to this NTP servers and sync the time on an ad-hoc basis?
5
votes
2answers
7k views

Arg list too long error while using find

I have the find command as follows: find /jobs/logs/* -prune -name '*.log' -type f -mtime +1 | while read LOGFILE do echo $LOGFILE done This is failing due to the following error:...
1
vote
1answer
347 views

How can I set up aliases using bash in Solaris 5.10

Environment: SunRay terminal, running on Solaris 5.10 host. SHELL=/bin/bash Goal: set up some aliases for long commands Trying a simple alias: alias p='pwd' I've tried to add this alias to ....
0
votes
1answer
444 views

Openssh slow on solaris server

ssh is slow on solaris server and is getting stuck at the following place. -130-xxxxxxxxxxxxxxxx@xxxxxx1:xxxx $ ssh -vvv xxxxxx OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013 debug1: Reading ...
-1
votes
2answers
541 views

Block HTTP traffic on solaris 11 IP Filter firewall

I have an http server on my Solaris 11 system and I want to block all http requests from other systems. Eventually I will allow access, but for now I cannot figure out how to block access to port 80, ...
1
vote
2answers
2k views

Generate random password with special characters on Solaris

I am trying to generate a 10-character random password in Solaris servers. The examples give around the web are for Linux and mostly not working in Solaris.
2
votes
3answers
2k views

Get Network statistics on Solaris 10

I am trying to get Network statistics on Solaris 10 Something like this when I was working on Linux:: 02:42:06 IST IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s ...
1
vote
1answer
104 views

OpenCSW and IPS on same Solaris 11 system?

Is there any danger running both IPS and OpenCSW side by side on a single Solaris 11 system? I assume there should be no conflicts since both package managers use different repositories and ...
0
votes
1answer
356 views

Two local address listening on same port?

How is it possible that netstat -a | grep 8081 shows this: localhost.8081 *.* 0 0 49152 0 LISTEN *.8081 *.* 0 0 49152 ...
0
votes
1answer
2k views

Is Solaris 11.4 beta a text-only distro?

Watching a few Youtube videos about installation of Solaris 11.4 beta I got an impression that they get a text mode console login and that's about it. There is no Live CD/USB image on Oracle's site, ...