why kaltura-red5 can't run after yum install? - red5

after I run yum install kaltura-red5 completely,i can't find the port 5080 when i run netstat -an.The next step Request http://hostname:5080 is error
how can i do?

Step-1: edit the local.ini file of kaltura and set the rtmp url to red5 server url.
<span style="font-family:arial,helvetica,sans-serif;"> vi /opt/kaltura/app/configurations/local.ini </span>
Step-2: make a soft link of kaltura entry to red5 streams
<span style="font-family:arial,helvetica,sans-serif;">ln -s /opt/kaltura/web/content /usr/lib/red5/webapps/oflaDemo/streams/ </span>
Step-3: Add a delivery profile
go to admin_console, publishers profiles drop down list select delivery profile.
From type drop down list select RTMP and click on create?
Fill up the required box,
?Delivery profile name*: any name
Delivery profile Type*: Choose LOCAL_PATH_RTMP
Streamer Type*: Choose RTMP
Supported Media Protocols: Enter rtmp,rtmpe,rtmpt,rtmpte
Delivery profile URL*: Here enter red5 server url with port number 1935 for example rtmp://:1935/oflaDemo
now save
Step-4: Now to active the added delivery profile
from admin_console, publishers action drop down list select “Configure”.
In Publisher Specific Delivery Settings , from Add Format drop down list select RTMP and click on ADD.
In Options, select your created delivery profile, and click OK.
now Save.
you have done, Now check the RTMP streaming preview.
If You have any Issue then once run red5 configuration and kaltura configuration.
/opt/kaltura/bin/kaltura-config-all.sh
/opt/kaltura/bin/kaltura-red5-config.sh

Related

I started FirewallD service but didn't allow SSH port, now I can't login my VM through SSH

I have a Centos VM on Google Cloud, I am using a custom SSH port and private SSH file to manage my VM.It worked fine for a long time but yesterday I started the "FirewallD" service in CentOS but I forgot to add a rule to allow my custom SSH port.
Now I can't connect to my VM through SSH, I also have tried to connect my VM through Web Console ("Open in browser window on custom port" and Open in browser window using provided private SSH key),neither of them works.
Are there any other solutions?
If you don’t have access through ssh at your vm, you could use the serial port to login
Go to the VM instances page in Google Cloud Platform console.
Click on the instance for which you want to add a startup script.
Click the Edit button at the top of the page.
Click on ‘Enable connecting to serial ports’
Click Save and then click RESET on the top of the page. You might need to wait for some time for the instance to reboot.
Click on 'Connect to serial port' in the page.
If you don’t have a root password for the serial console, you could use a startup script to add it to your instance, the script would be like this:
Go to the VM instances page in Google Cloud Platform console.
Click on the instance for which you want to add a startup script.
Click the Edit button at the top of the page.
Click on ‘Enable connecting to serial ports’
Under Custom metadata, click Add item.
Set 'Key' to 'startup-script' and set 'Value' to this script:
#! /bin/bash
useradd -G <an existing group in the instance> USERNAME
echo USERNAME:PASSWORD | chpasswd
Click Save and then click RESET on the top of the page. You might need to wait for some time for the instance to reboot.
Click on 'Connect to serial port' in the page.
In the new window, you might need to wait a bit and press on Enter of your keyboard once; then, you should see the login prompt.
Login using the USERNAME and PASSWORD you provided.
In this way you can login at the vm and stop the firewall service to modify your rules before to start the service again

Network Response Time Out Error (create-react-native-app) (expo)

I am trying to run create-react-native-app on expo app in android.
Firstly ,I created the project by writing command
create-react-native-app test
then I executed
npm start
then scanned the qr code from expo app.
But after scanning QR code , I am getting following error:
Uncaught Error: Java.net,sockettimeoutException: failed to connect to after 10000ms
Github Issue:
https://github.com/react-community/create-react-native-app/issues/144#issuecomment-296631692
This is due to not open port from your machine.
Linux (Ubuntu)
In Ubuntu Run In terminal
sudo ufw status verbose
To view open port if you cannot found 19000 port open then you need to open port using
sudo ufw allow 19000/tcp
and then again run
sudo ufw allow 19001/tcp
to serve http for react native i solve this problem in my ubuntu using this method. I hope this will help you.
Windows
To open a port in the Windows firewall for TCP access
On the Start menu, click Run, type WF.msc, and then click OK.
In the Windows Firewall with Advanced Security, in the left pane, right-click Inbound Rules, and then click New Rule in the action pane.
In the Rule Type dialog box, select Port, and then click Next.
In the Protocol and Ports dialog box, select TCP. Select Specific local ports, and then type the port number of the instance of the React port, such as 19000 for the default instance. Click Next.
In the Action dialog box, select Allow the connection, and then click Next.
In the Profile dialog box, select any profiles that describe the computer connection environment when you want to connect to the Database Engine, and then click Next.
In the Name dialog box, type a name and description for this rule, and then click Finish.
Similarly you can open port 19001 too.
Change connection from LAN to tunnel.
In my case the firewall settings alone didn't do it. My issue was that VirtualBox network devices were taking priority and the Expo host was starting on the wrong network.
On windows you can run ipconfig and look at the network adapters you have. npm/yarn start seems to take whatever shows up first in that list.
I found out about this from here: https://github.com/react-community/create-react-native-app/issues/60
If you don't need the other network adapters in the list, you can disable them in the Network Connections interface of the Control Panel.
If you need to use those connections and have Expo work then to solve the issue I followed this process:
Goto Control Panel > Network and Internet > Network Connections
Right click the desired connection (Higher Priority Connection)
Click Properties > Internet Protocol Version 4
Click Properties > Advanced
Uncheck 'Automatic Metric'
Enter 10 in 'Interface Metric'
Click OK
Repeat for the Lower Priority Connection, but this time put 20 into the 'Interface Metric'
You'll now use the higher priority connection as a default.
You can get around that by fixing your laptop's ip address to a static ip, let's say 192.168.1.69, then you need to change the react native packager ip address to the same of your laptop, using
set REACT_NATIVE_PACKAGER_HOSTNAME=192.168.1.69 (Windows)
REACT_NATIVE_PACKAGER_HOSTNAME=192.168.1.69 (Mac & Linux)
start your project again and you're good to go.
I had done everything mentioned in context.
Just Changed my connected WiFi network from public to private.
This Worked for me
First of all, disable the unused network connection. In my case it was VirtualBox. Maybe it's using the same port. I am not sure about that. after disabling the unused connections then restart the packager. if you used npm then type
npm start
Found ipv4 address
open expo app then tap to explore button from bottom
write exp://[ipv4adress]:19000 to searchbar
Then your app will open
I suggest you install expo application for react native, link to official guide here
npm install -g exp
Then you can use Genymotion software to emulate different environment setting for your app an run:
exp start
If you use in the terminal "npm start" with native react, the following is for you.
I found out that if my application runs successfully IpV addresses of my computer, that are shown in the terminal and that is on Expo app are identical, for example:
ipconfig -> IPv4 Address. . . . . . . . . . . : 10.0.0.124
exp://10.0.0.124:19000
Based on this observation I solved this issue by the following way:
Close npm prompt script which is running app
Close Expo app
Find your IP by running command in the terminal:
ipconfig
Run command in NodeJS command prompt with your IP (for example 10.0.0.124)
set REACT_NATIVE_PACKAGER_HOSTNAME=10.0.0.124
Start Expo app, scan barcode
npm start
If it does not help, then use next steps recommended by React developers in addition to other reasonable efforts:
Install Genymotion with VirtualBox
SignUp at Genymotion site
Run Genymotion software and !!!SignIn
If you are using git bash for development then this solution by Icruz4 will help
Instead of
set REACT_NATIVE_PACKAGER_HOSTNAME
Use:
export REACT_NATIVE_PACKAGER_HOSTNAME='192.168.1.123'
Note:
When you run
npm start
Expo tells you in the output the IP it's using. If that IP is not the IP you want then the
REACT_NATIVE_PACKAGER_HOSTNAME
environment variable is not set properly
in Windows
run the ipconfig in command prompt
get the ip4 address and copy it.
Than go to
This PC > properties > advanced system settings > environment variables
add the following system variable: REACT_NATIVE_PACKAGER_HOSTNAME
As the value for the variable I had to paste the ip4.
then run the npm start
It's work for me
I've had the same issue. The problem is that the command yarn start or npm start finds the first enabled network adapter it finds which just happens to be the adapter for VirtualBox on my (and many other machines). The solution is to either:
manually set REACT_NATIVE_PACKAGER_HOSTNAME environment variable, or
disable the unused network adapter in Windows' Network Connection (see image)
The problem is that Expo finds the first Network adapter, and not the active network adapter that provides the internet connection.
change LAN to Tunnel to solve this issue
In case someone is still looking for the answer. Do the basic thing first, Disable the VirtualBox Host-Only Network first by opening your network configs. This worked for me.
If you have tried everything the other answers suggest and it still does not work, please also check that your computer and your phone are connected to the same WIFI network. For me this is what wasted an hour.
This issue could possibly be resolved by:
Setting your environment variable with alternative instructions here
Or
Assigning interface matrix priority for your network adapters with detailed instructions here or here.
Or
An Ubuntu machine is unable to open a port
After you make any changes, please restart the computer before testing if it works.
Good luck!
I tried many solutions, only this way helped me to solve this problem:
In Windows:
go to "Network and Connections" in Control Panel of windows (Network and Sharing Center>Change Adapter Setting)
Disable all virtual boxes which you can see here
Restart npm or yarn or expo...
In my case, this problem occurred because Expo android app need "draw over other apps" permission and I didn't give it. So I give this permission to Expo app and the problem solved..
One of the simplest and 100% working solutions is:
Enable the Mobile Hotspot of your development machine( PC or Desktop ) and connect your Android device with this hotspot.
Goto Control Panel > Network and Internet > Network Connections
You will land in here as shown:Network Connections setting
Then set the IP address of Local Area Connection(Your DESKTOP HOTSPOT) to a desired one, say: 192.168.1.69 by right-clicking on the concerned connection and then clicking on properties -> Internet Protocol Version 4(TCP/IPv4) -> Properties. Then set the priority of this connection to be the highest and this is best described here
Then open a command terminal and run:
set REACT_NATIVE_PACKAGER_HOSTNAME=192.168.1.69 (Windows)
REACT_NATIVE_PACKAGER_HOSTNAME=192.168.1.69 (Mac & Linux)
Then restart your expo server by running npm start in your expo project folder and run the app on your Android device by scanning the generated QR code with the expo app.
This error beaus your port it is not open
just check port is open or not for ubuntu you can check using the following way
sudo ufw status verbose
check 19000 port open then you need it
then run following command if port not open
sudo ufw allow 19000/tcp
for other port runs following command
sudo ufw allow 19001/tcp
because http port not you are getting erro. above step solve your problem
similar for mac and windows check firewall setting once
Solution 1:- Connect both(your PC and mobile)with same network then scan the QR with expo application.
Solution 2:-Select / change connection type as Tunnel mention in local host development window of your browser then scan the QR with expo application.
I think this will help :)
I had the same issue I got this when I cancel the permission window of node js I solved it by going at the directory
On the Start menu, click Run, type WF.msc, and then click OK.
In the Windows Firewall and Advanced Security, in the left panel in Inbound Rules I had two options or rules disabled Node.js Serverside Javascript.
I simply double click and in new window In action, I select allow the connection and save
I had the same issue but after some research, I found that this is because your computer has previously connected to multiple adapters. Expo may pick the IP address of one of these. To avoid this
Go to the command prompt and write 'ipconfig'.
Copy the IPv4 Address under Wireless LAN adapter Wi-Fi.
Then wrte the below command.
set REACT_NATIVE_PACKAGER_HOSTNAME=(Your IP here)
i just want to remember this for those who only try to scan the QR Code
You need to connect your phone to your computer using a USB cable the first time you want to launch the app,that will install the app on your device then the expo scan will work, i think all the solution above will work maybe it's just because you didn't connect them first that everything didn't work
just read the docs
https://reactnative.dev/docs/running-on-device
I got it by using this command on my ubuntu system:
sudo ufw allow 19000/tcp
and then type this:
sudo ufw allow 19001/tcp
restart vscode and the expo server and then you are good to go!
For Linux Ubuntu 21.10
This is for users, that don't use UFW.
Make sure ufw is inactive, else, execute 'sudo ufw allow 19000'
sudo ufw status
List rules:
sudo iptables -L
This will output on clean Ubuntu like this:
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Now allow port 19000 with command:
sudo iptables -A INPUT -p tcp --dport 19000 -j ACCEPT
Make sure that rule added:
sudo iptables -L
Expected output:
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:19000
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
After restart all rules will be wiped, so we need to install package, that will add rules from a file rules.v4 on each OS boot
sudo apt install iptables-persistent
su root
iptables-save > /etc/iptables/rules.v4
Enjoy! :)
If you are on Mac OS, this fixed it for me:
System Preferences > Network > Wifi
Uncheck "Limit IP Address Tracking".
This might have to do with iCloud Private Relay blocking your Mac from being seen by other devices.
In Windows,
set REACT_NATIVE_PACKAGER_HOSTNAME=my-ip-address
worked inside my git bash terminal, but not cmd. In git bash, after I ran npm start, I got a firewall popup, which I clicked allow and it worked!
In your device: Log in to your expo app, create account if you doesn't have any.
In you system: open terminal go to you project directory via cd command and then type sudo exp start
it will ask you your expo account login details once you done with this.
It will gives you qr code to scan.
You Just need to open the port in Window Firewall and everything should work.
1.On the Start menu, click Run, type WF.msc, and then click OK.
In the Windows Firewall with Advanced Security, in the left pane, right-click Inbound Rules, and then click New Rule in the action pane.
In the Rule Type dialog box, select Port, and then click Next.
In the Protocol and Ports dialog box, select TCP. Select Specific local ports, and then type the port number of the instance of the React port, such as 19000 for the default instance. Click Next.
In the Action dialog box, select Allow the connection, and then click Next.
In the Profile dialog box, select any profiles that describe the computer connection environment when you want to connect to the Database Engine, and then click Next.
In the Name dialog box, type a name and description for this rule, and then click Finish.
Similarly you can open port 19001 too.
If you have tried everything, and still not working for you. Change the Connection to 'Local' instead of 'LAN', it is working perfectly for me. It is not the best solution but does the work.

Chat History and Monitoring Plugin Openfire

I'm new to openfire. I have a chat application running nodejs. I have a separate Chat server with openfire installed.
I wanted to know how chat history for a chat group is handled?
How to progressively load chat history in the client from openfire server? Should I write a custom routine for the same ? Does Monitoring plugin provide any for the same
What is format is which chats are archived ? Is there a way to retrieve them in any given format ?
Are there any APIs that can be used to access the database ?(I doubt it tho)
I have installed Monitoring Plugin for the same. However I'm not able to find any documentation for openfire or monitoring plugin regarding chat history.
Any help would be much appreciated.
If you have installed the monitoring plugin, you can read in its readme file under the configuration paragraph the following content:
Chat archiving is enabled by default. However, only information about who is communicating and at what time is stored unless chat transcript archiving is enabled. To enable chat transcript archiving or group chat archiving, you will need to log into the admin console and go to:
Server --> Archiving --> Archiving Settings
To enable group chat archiving, you will need to log into the admin console
and go to: Server --> Archiving --> Archiving Settings and 'Message
Archiving' is enabled for either 'Archive one-to-one chats' and/or
'Archive group chats'.
Then the messages get stored in the external database table 'ofMessageArchive'.
The history can be further loaded from the database.
This might help you!
Please login to your server
Go to Plugins, find plugin "Monitoring Service" install/enable it if you have not enabled
Now go to the "Server" menu, go to "Archiving" then "Archiving Settings"
Check "Archive one-to-one chats"
Check "Archive group chats"
Now click on "Update Setting"
And then after most important is you need to click on "Rebuild Index" (last button in this setting screen).
Then send a messsage from your app, and check your database table "ofMessageArchive"
You will have magic :)
It's working for me, let's see it is working for you or not!
Answering to #3:
Chats are archived in following format in ofmessage archive table:
conversationID | fromJID | fromJIDResource | toJID | toJIDResource | sentDate | body |

Splunk email view result link doesn't work

Splunk view results page attaches 8000 port to the link when i click on the view result in the email! In the server setting page the web port is set to 8000 . How do i resolve this ?
Splunk Web
Run Splunk Web
Web port * ---8000
Port 8000 is the default webserver port that the main web url for splunk opens with. As long as I have used splunk I have had no need to change this port. The URL is getting "cut off". What exactly do you mean by this? Can you right click the link and perhaps choose "open in new tab" and see if the URL is any different? Is the entire URL highlighted as a link in the email or are the words "View Results" the link and it is embedded?
I would also double check the alert and verify that you have checked the box for the "Link to the Alert" and the "Link to the Results" in the alert setup page.
If all of this looks ok, check the alert_actions.conf file. In this file you can set the hostname and port you use for web links. It perhaps is configured differently in this file then you would like. You may want make sure the port here is set to 8000 and not 80. Look under "Hostname" for what value is set.
http://docs.splunk.com/Documentation/Splunk/latest/Admin/Alertactionsconf
This is probably you have not link your result to proper host name.
You can link host name in the email settings.
Goto splunk --> setting --> server settings --> Email settings --> update the Link host name parameter with your LB / Splunk server with out port 80
The email link will leverage the settings in 'Settings > Server Settings > General Settings'
Splunk uses the Default host name:Web Port fields to create the URL.
This gets more complicated if you're using a load balancer in front of your search heads.

Enable telnet banner on linux

I want to enable banner while users accessing my machine through telnet. I know how to achieve it through ssh http://servercomputing.blogspot.in/2012/01/how-to-add-ssh-login-banner.html
I think you have to edit
/etc/issue.net
/etc/issue is the text that is displayed before any user is able to log on the system.
Or you can edit
/etc/motd
Which displays after you log in
If your system telnet server is using pam login module, you can use following steps to enable telnet banner.
Add (uncomment) following lines in "/etc/pam.d/login"
auth required pam_issue.so issue=/etc/issue noesc
After this configuration, text from file "/etc/issue" is displayed as banner.
Make sure pam_issue.so library is present in your system library folders.