Benutzer:Mdbw/Solaris4Tux
Aus Opennet
Jemand der es gehöhnt ist in einer Linux Schachtel zu wohnen ist Solaris oft sehr gewöhnungsbedürftig. Man gewöhnt sich aber wohl an alles.
Linux | Solaris |
df -h | df -k |
free | echo ::memstat | mdb -k |
ps aux | ps -ef |
ifconfig | ifconfig -a |
lsof | ps -ef -o pid | sort | xargs pfiles |
fdisk -l | format |
Inhaltsverzeichnis |
Starten von Diensten
Das was man unter Linux als System V Bootkonzept versteht gibt es unter Solaris nicht bzw. ist anders gelößt. Das ganze wird unter dem Begriff Service Management Facility zusammen gefasst.
'TODO
Starten bzw. aktivieren
svcadm enable svc:/network/postfix:default
Probleme abfragen
svcs -xv
VNC Installieren
- pkg install SUNWxvnc
- Edit /etc/X11/gdm/custom.conf as below
[xdmcp] Enable=true [security] DisallowTCP=false AllowRoot=true AllowRemoteRoot=true
- svcadm enable xvnc-inetd
- svcs xvnc-inetd
- svcadm enable gdm
- svcs gdm
- svccfg -s xvnc-inetd
svc:/application/x11/xvnc-inetd> editprop This take you into a vi session. Look for the line... #setprop inetd/wait = boolean: false Copy the line, uncomment it and set it to true. Save the file, exit svccfg and run the command...
- inetadm -l svc:/application/x11/xvnc-inetd:default
- inetadm -m svc:/application/x11/xvnc-inetd:default exec="/usr/X11/bin/Xvnc -inetd -query localhost -once -securitytypes vncauth -rfbauth /etc/X11/.vncpasswd -geometry 1024x768"
- vncpasswd /etc/X11/.vncpasswd
- Neustart des Servers
Emacs installieren
- x86 Binarys von sunfreeware.com besonrgen (emacs, xaw3d, libungif, libgcc)
- gunzip emacs-22.1-sol10-x86-local.gz
- pkgadd -d emacs-22.1-sol10-x86-local
- usw.
Postfix installieren
- wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/openssl-0.9.7g-sol10-intel-local.gz
- gunzip openssl-0.9.7g-sol10-intel-local.gz
- pkgadd -d openssl-0.9.7g-sol10-intel-local
- crle -l /usr/local/ssl/lib -u
- pkg uninstall SUNWsndm
- wget http://ihsan.dogan.ch/postfix/downloads/CNDpostfix-2.5.0,REV=080201-SunOS5.10-i386.pkg.bz2
- bzip2 -d CNDpostfix-2.5.0,REV=080201-SunOS5.10-i386.pkg.bz2
- pkgadd -d CNDpostfix-2.5.0,REV=080201-SunOS5.10-i386.pkg
- chown postfix -R /var/spool/postfix/
- chown root /var/spool/postfix/
- chown postfix /var/lib/postfix/
- chgrp postdrop /var/spool/postfix/public
- chgrp postdrop /var/spool/postfix/maildrop
- ln -s /usr/lib/sendmail /usr/bin/sendmail
- svcadm enable svc:/network/postfix:default
- svcs svc:/network/postfix:default
Samba installieren
- Log in to the system that is running the OpenSolaris 2008.05 release and become superuser.
- Remove the smbsrv module.
- rem_drv smbsrv
- Install the Solaris CIFS service packages.
- pkg install SUNWsmbskr
- pkg install SUNWsmbs
- Load the smbsrv module.
- add_drv smbsrv
- Import the Solaris CIFS service SMF manifest.
- svccfg import /var/svc/manifest/network/smb/server.xml
- Start Samba Service
- svcadm enable -r smb/server
- svcs smb/server # Erfolg prüfen
- Join a workgroup or an AD domain.
- svcadm enable -r smb/server
- smbadm join -w workgroup-name
- Establish passwords for CIFS workgroup users.
- echo "other password required pam_smb_passwd.so.1 nowarn" >> /etc/pam.conf
- Setzen des Passworts (Auch wenn der Benutzer schon ein Passwort hatte muß hier das Samba Passwort neu erstellt werden. Befinden sich dann in /var/smb/smbpasswd)
- passwd username
- Enable SMB sharing for an existing ZFS file system.
- zfs set sharesmb=name=meinefreigabe tank/directory
- Verify how the new file system is shared.
- sharemgr show -vp