Thursday, April 18, 2019

Instalando Software (VNC) - RHEL7 / OL6 / CentOS7 / OLS 7



Instale el servidor VNC.
sudo yum install tigervnc-server

Cree un nuevo archivo de configuración para cada uno de los números de pantalla que desea habilitar. En el siguiente caso, estoy configurando el número de pantalla ": 3". Observe cómo se incluye el número de pantalla en el nombre del archivo de configuración.
En algunas versiones de Fedora, sugieren que no se incluya el número de pantalla, ya que systemd generará la configuración correcta en la memoria en la primera solicitud



cp /lib/systemd/system/vncserver@.service /lib/systemd/system/vncserver@:3.service




Edite el nuevo archivo de configuración, modificando el usuario y los argumentos de inicio según sea necesario. Un ejemplo de las líneas cambiadas se muestra a continuación. Todas las demás líneas deben estar sin modificar. La geometría se establece a continuación, pero esta línea no tiene que modificarse si la geometría predeterminada de "1280x1024" es aceptable.
Nota: Depende  de la configuración puede optar por modificar el archivo copia agregando el nombre a la configuración.




Configuracion:

# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/usr/sbin/runuser -l opc -c "/usr/bin/vncserver %i"
PIDFile=/home/opc/.vnc/%H%i.pid
ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'

[Install]

WantedBy=multi-user.target


Ejecute el siguiente comando.
# sudo systemctl daemon-reload
Establezca la contraseña VNC para el usuario definido en el nuevo archivo de configuración.
# su - opc
$ vncpasswd
Password:
Verify:
Would you like to enter a view-only password (y/n)? n
$ exit
logout
#

Habilite el servicio para el inicio automático e inicie el servicio.
# sudo systemctl enable vncserver@:3.service
# sudo systemctl start vncserver@:3.service
Ahora debería poder utilizar un cliente VNC para conectarse al sistema utilizando el número de pantalla y la contraseña definidos.

Si se desea parar el servicio
# sudo systemctl stop vncserver@:3.service
# sudo systemctl disable vncserver@:3.service
Verificando Puerto de Escucha

sudo netstat -anp | grep Xvnc



Monday, February 12, 2018

Virtual Box Usefull Commands


You just need to install the kernel devel as the same version of your kernel OS.
 
# yum install kernel-uek-devel-'uname -r' kernel-headers 

Then run your command 
 
./VBoxLinuxAdditions.run

Reboot.
 
 
If you get the /media/sf_sharedFolder/: Permission denied 
 
Then add yourself to the vbox group  
 
# sudo adduser oracle vboxsf
 
# sudo usermod -aG vboxsf oracle 

Thursday, February 1, 2018

Using the Nodemanager / Weblogic

In certain cases you need to use the node manager to start/stop weblogic servers, the common commands:

sh startNodeManager.sh
 java weblogic.WLST
nmConnect(‘weblogic’, ‘password’, ‘localhost’, ‘5556’, ‘base_domain’ , ‘C:\\Oracle\\Middleware\\user_projects\\domains\\base_domain’ , ‘ssl’)
nmStart(‘AdminServer’)
nmServerStatus(‘AdminServer’)
connect(‘weblogic’,’weblogic123′)
start(‘Server-0′,’Server’)
start(‘mycluster’, ‘Cluster’)
nmKill(‘Server-0‘)
nmKill(‘AdminServer‘)
nmDisconnect()
exit()

To find node manager process :
For windows
netstat -ao| findstr 5556
TCP    ajit:5556              ajit:0                 LISTENING       1900
here : PID – 1900.
For Linux/unix :

netstat -an | grep -v grep | grep weblogic.NodeManager

How to change the 'weblogic' user password in OBIEE 12C environment?

Here's the procedure.
  1. Login into EM(Enterprise Manager) using URL http://machinename:port/em
    • Navigate to the left hand side top corner below Oracle Logo
    • Click on a hierarchy like structure named as "Target Navigator".
    • On "Target Navigation" page, go to 'Business Intelligence' and Expand the same-->
    • Then click on "biinstance"--> biinstance page;
    • Go to "Availability" tab and click on "Stop All".
    • On the "Confirmation" window stating as "Are you sure you want to stop all BI components?", click "Yes" and wait for BIEE Components to stop.
NOTE: The above list of steps in point(1) can also be performed through command line following below command:

    • Navigate to following location from command console <ORACLE HOME>\user_projects\domains\<domain_name>\bitools\bin
    • Once in above location execute below command depending on your operating system:
  • For Windows, execute the command: stop.cmd -i obips1,obis1,obiccs1,obisch1,obijh1
  • For Linux, execute the command: ./stop.sh -i obips1,obis1,obiccs1,obisch1,obijh1

       2. Once the BI components are stopped from EM/Command Console, login into Weblogic Admin Console using the URL http://machinename:port/console and follow the below steps:
    • On the left hand side of the Home page, go to "Domain Structure"-->Environment-->Servers
    • On "Summary of Servers" page, go to "Control" tab and select "bi_server1" in the list
    • From the available options on top of list of servers, click on "Shutdown"-->and then click on "Force Shutdown Now"
    • Wait for the Managed Server(bi_server1) to shutdown gracefully before proceeding ahead with further steps.
               NOTE: The above list of steps in point(2) can also be performed through command line following the below command:
    • Navigate to following location from command console-        
                        <ORACLE HOME>\user_projects\domains\<domain_name>\bitools\bin
    • From the above mentioned location, execute the below command depending on your operating system:
  • for Windows execute command: stop.cmd -i bi_server1
  • for Linux execute command: ./stop.sh -i bi_server1 
3. Now from the WLS Admin Console, change the weblogic user password following the below steps:
    • Navigate to the left hand side under "Domain Structure"-->Security Realms-->myrealm-->Users and Groups-->
    • Under "Users" tab, search for "weblogic" user and click on same.
    • Upon clicking the "weblogic" username, the "Settings for weblogic" page will open
    • Navigate to "Password" tab
    • Enter a new password in "New Password:" and "Confirm New Password:" tabs and click on "Save".
       4.Now from the WLS Admin Console, stop the Admin Server following the below steps:
    • In Admin Console, on left hand side under "Domain Structure"-->Environment-->Servers.
    • On "Summary of Servers" page, go to "Control" tab and select "Admin Server" in the list
    • From the available options on top of list of servers click on "Shutdown"-->and then click on "Force Shutdown Now".
       5. Navigate to the below location in OBIEE Oracle Home and carry out below actions:
    • In location \user_projects\domains\<domain_name>\servers\AdminServer\security, backup all the files present and then delete the files (as it carries old password details for weblogic user).
    • In location \user_projects\domains\<domain_name>\servers\bi_server1, backup "data" directory by renaming the directory, so that a new data directory is created in next startup of Managed Server(bi_server1).
    • In the same location as above, go to "security" directory and backup all the files if any, present there and then delete the files.
      6. Now start OBIEE 12c Stack using the below steps:
  • Navigate from command console to the following location ORACLE HOME>\user_projects\domains\<domain_name>\bitools\bin
  • Execute the below command depending on your environment :
    • for Windows, execute command: start.cmd
    • for Linux, execute command: ./start.sh
  • When you execute command start.cmd/start.sh, it will prompt you for Admin User's username and password
  • Enter the new details and move ahead with server start up.
  • Once all the servers and services are up and running, verify the access of application with newly configured password.
OBIEE 12C behaves different than OBIEE 11g, the start and stop scripts have changed, so


Stopping OBIEE 12c:

Go to the directory: [ORACLE_HOME]/user_projects/domains/bi12/bitools/bin
Unix: ./stop.sh or ./stop.sh -i obis1,obips1
Command Prompt: stop.cmd or stop.cmd {-i <list of instances>} {-r}
Note: If no instances are specified as arguments in the command, 
the administration server, managed server and all system components are shutdown by default.

Starting OBIEE 12c
[ORACLE_HOME]/user_projects/domains/bi12/bitools/bin

./start.sh | start.cmd {-noprompt} {-i <list of instances>} {-r}

For example, ./start.sh -i obis1,obips1
If no instances are specified as arguments in the command,
the administration server, managed server, all system components, and local node manager are started by default.

Status of OBIEE 12c Services (All Weblogic)

./status.sh | status.cmd {-v}

where {-v} is verbose

The command displays component name, type, status, and machine name.

Credits:

http://yyadav05.blogspot.mx/

Tuesday, October 17, 2017

Create custom metadata profile in WCC



Once logged in WCC

Navigate to
Administration->Admin Applets->Configuration Manager
Add the new field by clicking on Add...


This will prompt for:
Field Name, Field Caption, Field Type and so on...
Also you will be able to create an option list


A lot of options you will have, for example, validated, non validated lists, multiselect lists, edit and select. dependant values etc ...

Note:

The field order field will allow you tu allocate the field on the desired location on the user interface.

You must make sure that the Enable User Interface checkbox is enabled.

Custom Checkin, Create security group in WCC



Security Group

Access this screen using a browser, choose Administration, then Admin Applets, then User Admin.

Then start the applet:

  1. To create a security group and assign permissions:
    1. From the User Admin Screen, select Security then Permissions by Group.
      The Permissions By Group Screen is displayed.
    2. Click Add Group to display the Add New Group Screen.
    3. Enter a group name and description.
    4. Click OK.
    5. Set permissions for the security group:
      1. Select the security group.
      2. Select the role to edit.
      3. Click Edit Permissions.
      4. After enabling the permissions that you want the role to have for the group, click OK to close the Permissions by Group screen

In my next post, I will show you how to creare a custom metadata profile in WCC.

See you.