Solaris - VI Terminal too wide
You may receive the following error when using VI within Solaris: Terminal too wide You can solve this increasing the number of columns with the command stty columns 120
You may receive the following error when using VI within Solaris: Terminal too wide You can solve this increasing the number of columns with the command stty columns 120
I installed Solaris 10 05/09 on a machine and I used whatever the default swap space setting when I built the box. Now I need to increase the swap space and I can’t add a swap file, like was possible under UFS. If your swap device is in use, then you might not be able to delete it. Check to see if the swap area is in use. For example: ...
Yesterday after 1 year and 2 month uptime, my poor Sun Ultra 10 (Solaris OS10) running into home server room, was crashed.. I’m so sick, here the paste of console recovery procedure: Type 'go' to resume ok ? 1000000 Stack Underflow ok sync panic[cpu0]/thread=2a100057ca0: sync initiated sched: software trap 0x7f pid=0, pc=0xf0050c7c, sp=0x2a100056e81, tstate=0x8800001401, context=0x0 g1-g7: 104da44, 0, 183f000, 0, 1082400, 5, 2a100057ca0 00000000fffa9d10 unix:sync_handler+138 (fffe5718, 1000000, 1, 1083400, 1, 181500 0) %l0-3: 00000000018621b0 0000000001862000 000000000000017f 0000000001845800 %l4-7: 0000000000000000 000000000183f000 0000000000000009 0000000001810400 00000000fffa9de0 unix:vx_handler+80 (fffe5718, 181dfe8, f0000000, fffe0000, 181e 0f0, f003bda1) %l0-3: 000000000181e0f0 0000000000000000 0000000000000001 0000000000000001 %l4-7: 0000000001810c00 00000000f0000000 0000000001000000 0000000001018998 00000000fffa9e90 unix:callback_handler+20 (fffe5718, 1, 0, 0, 0, 0) %l0-3: 0000000000000016 00000000fffa9741 00000000f004a64c 00000000fffe0000 %l4-7: 0000000000000016 0000000000000000 0000000000000000 000000000180c000 syncing file systems... 3 done dumping to /dev/dsk/c0t0d0s7, offset 107413504, content: kernel 100% done: 15712 pages dumped, compression ratio 2.54, dump succeeded rebooting... Resetting ... Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 440MHz), No Keyboard OpenBoot 3.25, 512 MB (50 ns) memory installed, Serial #15184795. Ethernet address 8:0:20:e7:b3:9b, Host ID: 80e7b39b. Rebooting with command: boot Boot device: /pci@1f,0/pci@1,1/ide@3/disk@0,0:a File and args: SunOS Release 5.10 Version Generic_137111-06 64-bit Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Hostname: ultra10 Loading smf(5) service descriptions: 1/1 WARNING: svccfg import /var/svc/manifest/application/database/mysql.xml failed svccfg import warnings. See /var/svc/log/system-manifest-import:default.log . /dev/rdsk/c0t0d0s1 is clean ultra10 console login: root Password: Sep 29 23:02:52 ultra10 login: ROOT LOGIN /dev/console Last login: Tue Sep 29 22:21:42 from 192.168.2.15 Sun Microsystems Inc. SunOS 5.10 Generic January 2005 root@ultra10 ~ #
Optimized Applications for Solaris OS and OpenSparc computing. Simple and very useful example is “Cool Stack” a web deployment packge include most commonly used free and open source applications, recompiled to deliver a 30 to 200 percent performance improvement over standard binaries compiled with GCC. Cool Tools.
Memo: Solaris package. CSW packaging home.
Uso Solaris da quasi un anno ma non mi sono mai cimentato nell’uso delle famose Zones riassumendo i poche parole giusto per capire di cosa si parla dico: “operating system level virtualization” bash-3.00# zonecfg -z Z01 Z01: No such zone configured Use 'create' to begin configuring a new zone. zonecfg:Z01create -b zonecfg:Z01set zonepath=/zones/Z01 zonecfg:Z01exit bash-3.00# zoneadm -z Z01 install Preparing to install zone <Z01>. Creating list of files to copy from the global zone. Copying <115072files to the zone. Initializing zone product registry. Determining zone package initialization order. Preparing to initialize <792packages on the zone. Initialized <792packages on zone. Zone <Z01is initialized. The file </zones/Z01/root/var/sadm/system/logs/install\_logcontains a log of the zone installation. bash-3.00# bash-3.00# zonecfg -z Z01 zonecfg:Z01add net zonecfg:Z01set address=10.0.0.1 zonecfg:Z01set physical=hme0 zonecfg:Z01end zonecfg:Z01verify zonecfg:Z01commit zonecfg:Z01exit > bash-3.00# zoneadm -z Z01 boot > bash-3.00# zlogin -C Z01
Oggi durante una serie di comandi con un senso ben preciso Solaris mi ha parlato in questo modo: Sorry, I don't know anything about your "xterm-color" terminal. La perplessità generale mi ha fatto lanciare questo comando: bash-3.00# export TERM=vt100 Ma molto probabilmente sarebbe stato meglio un terminale “ansi”
Breve memo sull’attivazione del servizio tftpd su solaris. #svcs tftp/udp6 svcs: Pattern ‘tftp/udp6′ doesn’t match any instances STATE STIME FMRI #grep tftp /etc/inetd.conf #tftp dgram udp6 wait root /usr/sbin/in.tftpd in.tftpd -s /tftpboot Decommentare “#tftp dgram udp6 …” nel file /etc/inetd.conf # grep tftp /etc/inetd.conf # TFTPD - tftp server (primarily used for booting) tftp dgram udp6 wait root /usr/sbin/in.tftpd in.tftpd -s /tftpboot # inetconv inetconv: Notice: Service manifest for 100235/1 already generated as /var/svc/manifest/network/rpc/100235\_1-rpc\_ticotsord.xml, skipped inetconv: Notice: Service manifest for 100083/1 already generated as /var/svc/manifest/network/rpc/100083\_1-rpc\_tcp.xml, skipped inetconv: Notice: Service manifest for 100068/2-5 already generated as /var/svc/manifest/network/rpc/100068\_2-5-rpc\_udp.xml, skipped tftp -/var/svc/manifest/network/tftp-udp6.xml Importing tftp-udp6.xml …Done server # svcs tftp/udp6 STATE STIME FMRI online 12:56:05 svc:/network/tftp/udp6:default
Un piccolo memo sul sistema di gestione delle patch in Solaris, patch ID 121118(SPARC version) o 121119(x86 version) Questi sono i comandi principali: Analyze: /usr/sadm/bin/smpatch analyze Download: /usr/sadm/bin/smpatch download Add Patch: /usr/sadm/bin/smpatch add Bisogna registrare il sistema con questo comando: # /usr/sbin/sconadm register -a -r /tmp/registrationprofile.properties Il file /tmp/registrationprofile.properties deve essere una cosa simile a questo: userName=newuser password=newpassword hostName= subscriptionKey= portalEnabled=false proxyHostName= proxyPort= proxyUserName= proxyPassword=
Da qualche mese a questa parte ho avuto la pazza idea di usare solaris, credo che non ci sia migliore cosa che provarlo in produzione, quindi ho spolverato una Ultra 10 presa tempo fa e mai seriamente utilizzata, tolto la SunPCI e installato Solaris 10. Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 440MHz), No Keyboard OpenBoot 3.25, 512 MB (50 ns) memory installed, Serial #15184795. Ethernet address 8:0:20:e7:b3:9b, Host ID: 80e7b39b. Rebooting with command: boot Boot device: /pci@1f,0/pci@1,1/ide@3/disk@0,0:a File and args: SunOS Release 5.10 Version Generic_127127-11 64-bit Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Hostname: ultra10 /dev/rdsk/c0t0d0s1 is clean ultra10 console login: Visto che poi e’ partito tutto, tolto la tastiera e messo in armadio fa una certa scena, in ogni caso, web e mail server non se la cava male per, l’eta’ che ha.