Zamir's Board Just record myself

Home Search

Solaris notes

1. Enable rsh svcadm enable svc:/network/login:rlogin or inetadm -e rlogin svcadm enable shell:default 2. Configure rsh/rlogin with no password vim ~/.rhosts , add like this hostname or hostname username 3. Enable root login via rlogin vi /etc/default/login then comment the following line CONSOLE=/dev/console this line is to restrict root to use /dev/console only. So if [...]

This entry was posted in Notes by Zamir. Bookmark the permalink.

Continue reading

1. Enable rsh
svcadm enable svc:/network/login:rlogin or inetadm -e rlogin
svcadm enable shell:default

2. Configure rsh/rlogin with no password
vim ~/.rhosts , add like this
hostname
or
hostname username

3. Enable root login via rlogin

vi /etc/default/login
then comment the following line
CONSOLE=/dev/console
this line is to restrict root to use /dev/console only. So if this is set, root can not login from telnet/rlogin

4. Enable root login via SSH
Firstly, we need to fix the ssh config (/etc/ssh/sshd_conf) to PermitRootLogin yes.
In Solaris 11, root is defined as a role in /etc/user_attr, so if we need to ssh as root, we need to modify this file and then change root::::type=role to root::::type=normal (if this line exists). See the following links.

http://www.oracle.com/technetwork/articles/servers-storage-admin/o11-112-s11-first-steps-524819.html

http://docs.oracle.com/cd/E23824_01/html/821-1473/user-attr-4.html

5.The package ‘entire’
The summary of the package ‘entire’: incorporation to lock all system packages to the same build
It do not consist of any file, just the meta data of all package of the current build

6. Show total memory
prtconf | grep “Memory”

7. Show CPU information
psrinfo -pv(physical and virtual)
psrinfo -p (the total number of physical core)

8. Quit a zone
~.
see http://docs.oracle.com/cd/E19044-01/sol.containers/817-1592/fpcft/index.html

9. Quit a ILOM
Esc (

10. Configure Solaris to use DNS instead of NIS/ldap
#svccfg -s name-service/switch setprop config/host = astring: ‘(“files dns”)’
See http://blog.allanglesit.com/2012/05/solaris-11-dns-client-configuration-using-svccfg/

11. Enable ASLR on Solaris
sxadm exec -s aslr=enable /some/program
See http://docs.oracle.com/cd/E26502_01/html/E29031/sxadm-1m.html#REFMAN1Msxadm-1m

12. See whick package depends on library/python-2/pygobject-26
pkg search -l -H -o pkg.name ‘depend:require:library/python-2/pygobject-26′

Working under https-proxy

1. SSH over http proxy for Fedora: #yum install connect-proxy then configure ~/.ssh/config Host 202.190.*.* ProxyCommand connect-proxy -H proxy.corp.com:80 %h %p ServerAliveInterval 30 then you can ssh user@202.194.1.2 now For Solaris 11, you just need to configure your ssh config. HOST 202.190.*.* ProxyCommand /usr/lib/ssh/ssh-http-proxy-connect -h proxy.corp.com -p 80 %h %p See http://docs.oracle.com/cd/E19683-01/817-0365/6mg5vpmga/index.html for more information [...]

This entry was posted in fedora by Zamir. Bookmark the permalink.

Continue reading

1. SSH over http proxy
for Fedora:
#yum install connect-proxy
then configure ~/.ssh/config

Host 202.190.*.*
ProxyCommand connect-proxy -H proxy.corp.com:80 %h %p
ServerAliveInterval 30

then you can ssh user@202.194.1.2 now

For Solaris 11, you just need to configure your ssh config.

HOST 202.190.*.*
ProxyCommand /usr/lib/ssh/ssh-http-proxy-connect -h proxy.corp.com -p 80 %h %p

See http://docs.oracle.com/cd/E19683-01/817-0365/6mg5vpmga/index.html for more information and if you are SOCKS proxy.

2. IMAP/SMTP over http proxy

Download http://proxytunnel.sourceforge.net/ and then compile it

copy the binary file to somewhere such as /usr/local/bin
then run the following
#proxytunnel -a 993 -p proxy.corp.com:80 -d imap.gmail.com:993 &
#proxytunnel -a 465 -p proxy.corp.com:80 -d smtp.gmail.com:465 &

Configure Thunderbird config to localhost:{smtp,imap}port

3. Maven over http proxy

Find the maven config. If you use yum install maven to install under Fedora, it will be in /etc/maven/settings.xml.
Fix the section. Add like the following

 <proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<host>proxy.corp.com</host>
<port>80</port>
</proxy>

4. OT. Get Emoji characters display in Fedora:

sudo yum install gdouros-symbola-fonts

See http://fedoramagazine.org/how-to-get-emoji-to-display-on-fedora/

© 2017 Zamir's Board.

Search for: