Publish SSH Server through TMG
Labels: Linux, Microsoft, Networking, Port Forwarding, UNIX/Linux
Sharing all my experiences, collective information all here, home, work and party!
Labels: Linux, Microsoft, Networking, Port Forwarding, UNIX/Linux
root@SERVER02 :dhclient eth0 -r
root@SERVER02 :dhclient eth0
Labels: Linux, Networking, Oracle Linux, UNIX/Linux
hostname SERVER01
To change the hostname so that it is persistent across reboots: echo SERVER01 > /etc/nodename
However, the changed hostname is re-set when you run sys-unconfig command to reset the configuration of the system. /usr/dt/bin/dtconfig -d
For more, see here about disabling and enabling GUI login in Solaris svcadm disable sendmail
Hmm... not everybody uses sendmail... root@SERVER01# _
For more information on PS1 environment variable check here and to make it look like Angelina Jolie :D check here.Labels: Misc, Networking, Solaris, UNIX/Linux
#useradd -m -d /home/user1 -s /bin/bash user1
/usr/sbin/setsebool -P ftp_home_dir 1
Labels: FTP, Linux, Misc, Networking, Oracle Linux, RedHat, Ubuntu, UNIX/Linux
#ps -ef | grep nscd | grep -v grep | cut -c12-19
123
#ps -ef | grep nscd | grep -v grep | awk '{print $2}'
Here, we use awk to print second column of ps.Labels: Scripting, Shell, Solaris, UNIX/Linux
#/usr/local/libexec/slapd [-option..]
#kill -INT `cat /usr/local/var/slapd.pid`
Labels: LDAP, Linux, Oracle Linux, RedHat, Shell, UNIX/Linux
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include /usr/local/etc/openldap/schema/core.schema
# Define global ACLs to disable default read access.
# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
#referral ldap://root.openldap.org
pidfile /usr/local/var/run/slapd.pid
argsfile /usr/local/var/run/slapd.args
# Load dynamic backend modules:
# modulepath /usr/local/libexec/openldap
# moduleload back_bdb.la
# moduleload back_hdb.la
# moduleload back_ldap.la
# Sample security restrictions
# Require integrity protection (prevent hijacking)
# Require 112-bit (3DES or better) encryption for updates
# Require 63-bit encryption for simple bind
# security ssf=1 update_ssf=112 simple_bind=64
# Sample access control policy:
# Root DSE: allow anyone to read it
# Subschema (sub)entry DSE: allow anyone to read it
# Other DSEs:
# Allow self write access
# Allow authenticated users read access
# Allow anonymous users to authenticate
# Directives needed to implement policy:
# access to dn.base="" by * read
# access to dn.base="cn=Subschema" by * read
# access to *
# by self write
# by users read
# by anonymous auth
#
# if no access controls are present, the default policy
# allows anyone and everyone to read anything but restricts
# updates to rootdn. (e.g., "access to * by * read")
#
# rootdn can always read and write EVERYTHING!
#######################################################################
# BDB database definitions
#######################################################################
database bdb
suffix "dc=kaustubhghanekar,dc=com"
rootdn "cn=Manager,dc=kaustubhghanekar,dc=com"
# Cleartext passwords, especially for the rootdn, should
# be avoid. See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw secret
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory /usr/local/var/openldap-data
# Indices to maintain
index objectClass eq
# ldd /usr/local/libexec/slapd
linux-vdso.so.1 => (0x00007fffe01ff000)
libdb-5.3.so => /usr/local/BerkeleyDB.5.3/lib/libdb-5.3.so (0x00007fe2f743e000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003fd1400000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x0000003fd2c00000)
libc.so.6 => /lib64/libc.so.6 (0x0000003fd0c00000)
/lib64/ld-linux-x86-64.so.2 (0x0000003fd0800000)
# /usr/local/libexec/slapd
Labels: UNIX/Linux
# tar -xvf openldap-2.4.31.tgz
#./configure --help
#./configure
yum install gcc
#./configure --with-tls=no
#tar -xvf db-5.3.21.gz
#cd db-5.3.21
#make
#make install
CPPFLAGS="-I/usr/local/BerkeleyDB.5.3/include"
export CPPFLAGS
LDFLAGS="-L/usr/local/lib -L/usr/local/BerkeleyDB.5.3/lib -R/usr/local/BerkeleyDB.5.3/lib"
export LDFLAGS
LD_LIBRARY_PATH="/usr/local/BerkeleyDB.5.3/lib"
export LD_LIBRARY_PATH
Labels: Linux, Oracle Linux, RedHat, UNIX/Linux
Labels: AX, Microsoft, Microsoft Dynamics
Labels: Android, IoT, Misc, UNIX/Linux
#/usr/dt/bin/dtconfig -d
To enable GUI:#/usr/dt/bin/dtconfig -e
2. Disable/enable Service that handles cde-login:#svcadm disable svc:/application/graphical-login/cde-login:default
To enable GUI:#svcadm disable svc:/application/graphical-login/cde-login:default
Labels: Misc, Shell, Solaris, UNIX/Linux
#cat /etc/nodename
solarisbox1
#cat /etc/hostname.e1000g0
10.91.10.5 netmask 255.255.255.0
#cat /etc/hostname.qfe0
192.168.0.88 netmask 255.255.255.0
#cat /etc/inet/hosts
#
# Internet host table
#
::1 localhost
127.0.0.1 localhost loghost solarisbox1
10.91.10.5 solarisbox1
192.168.0.88 solarisbox1
10.91.10.6 solarisbox2
# vi /etc/inet/ipnodes
10.0.0.14 myhost
#cat /etc/defaultdomain
solarisbox1.solarisstudy.com
#touch /etc/defaultrouter
#echo 10.91.10.1 >> /etc/defaultrouter
Labels: UNIX/Linux
CONSOLE=/dev/console
PermitRootLogin no
PermitRootLogin yes
Labels: Misc, Networking, Security, Solaris, SSH, UNIX/Linux
awk < /etc/passwd -F: '{ print $1 }'
root
daemon
bin
sys
adm
lp
uucp
nuucp
smmsp
listen
gdm
webservd
postgres
svctag
nobody
noaccess
nobody4
Labels: Linux, Oracle Linux, RedHat, Scripting, Shell, Solaris, UNIX/Linux
sudo apt-get install subversion libapache2-svn
mkdir /home/kaustubh/project1
sudo svnadmin create /home/kaustubh/project1
auth-access = write
password-db = passwd
username = password
svnserve -d --foreground -r /home/kaustubh
svn://servername/project1
Labels: Linux, Ubuntu, UNIX/Linux
The Web Service plug-in failed in OrganizationId: d8c6077d-e52f-e111-b5ff-00155d000b01; SdkMessageProcessingStepId: e8af0b30-4bae-48a6-a5be-6e64af544ae1; EntityName: sitemap; Stage: 30; MessageName: RetrieveMultiple; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; ClassName: Microsoft.Crm.Extensibility.InternalOperationPlugin; Exception: Unhandled Exception: System.MissingMethodException: Method not found: 'Void Microsoft.Xrm.Sdk.AliasedValue.set_NeedFormatting(Boolean)'.
at Microsoft.Crm.BusinessEntities.BusinessEntityToEntityConverter.HandleAliasing(Entity entity, IAttributeInfo attributeInfo)
at Microsoft.Crm.BusinessEntities.BusinessEntityToEntityConverter.Convert(ICrmConversionContext conversionContext, BusinessEntity businessEntity)
at Microsoft.Crm.BusinessEntities.BusinessEntityCollectionToEntityCollectionConverter.Convert(ICrmConversionContext conversionContext, BusinessEntityCollection inputCollection)
at Microsoft.Crm.BusinessEntities.BusinessEntityCollection.Converter.ConvertTo(ITypeDescriptorContext context, CultureInfo culture, Object value, Type destinationType)
at Microsoft.Crm.BusinessEntities.ConversionHelpers.Convert(ICrmConversionContext conversionContext, Object source, Type destinationType)
at Microsoft.Crm.Extensibility.DictionaryMapper.Map(PropertyBag inputs, ICrmConversionContext context)
at Microsoft.Crm.Extensibility.PropertyBagMapper.Map(PropertyBag source, ParameterCollection target, ICrmConversionContext context)
at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
Labels: Microsoft
Labels: Microsoft