Wednesday, October 12, 2016

How to redirecting cron job output to log file :

*/5 * * * *    /home/venkatesh/ >> /var/log/precampaign.log 2>&1

Note :
2>&1 indicates that the standard error (2>) is redirected to the same file descriptor that is pointed by standard output (&1).
Read More

Thursday, September 22, 2016

Read More

Tuesday, August 30, 2016

VSFTPD Installation on Ubuntu 14.04/16.04 :

Install the FTP server using the following command.
apt-get -y install vsftpd

Configuring VSFTPD Server :

Open the vsftpd Configuration File.

vim /etc/vsftpd.conf


# Make sure PORT transfer connections originate from port 20 (ftp-data).

# if you get 500 Internal error for ftp server add following line.

# if you get login incorrect error edit the pam_Service_name to ftp from vsftpd

make the above changes and save the file

Now Create the FTP user :

useradd -d '/var/www/html' -s /sbin/nologin ftpuser

change the password for the user.
passwd ftpuser

Now give all permissions on the home directory

chown -R ftpuser '/var/www/html/'
chmod 775 '/var/www/html/

Add to ftpusers group

groupadd ftpusers
usermod -G ftpusers ftpuser

Open the firewall port 21 for FTP
ufw allow 21

Now restart the vsftpd server
sudo service vsftpd restart

Then try to connect to the FTP server using any FTP client such as FileZilla with the ftpuser credentials.

Read More

Tuesday, August 23, 2016

Getting rid of 500 OOPS vsftpd error :

To avoid 500 writeable access error, add the following line of code at the end of the /etc/vsftpd.conf file.

# Keep non-chroot listed users jailed
Then Restart the vsftpd server.
# restart the service for changes to take effect
sudo service vsftpd restart
Then try to connect to the FTP server again.

Read More

Monday, August 22, 2016

Installing OpenSSL from the Source code :

 tar zxf openssl-VERSION.tar.gz
 cd openssl-VERSION
 ./config [options]
 make install
This doesn't update any of the information used by dpkg -s openssl; that will still refer to the version installed as part of the OS installation.
Depending on what options you passed to ./config, it may also have overwritten the system's openssl files. I use
./config --prefix=/usr/local/apps/openssl-VERSION
to avoid this. This installs the binaries in /usr/local/apps/openssl-VERSION/bin, and so forth. You can use a path other than /usr/local/apps, and you may have to create some of the directories before running make install. You can use --prefix=/usr/local to install directly to /usr/local/bin/usr/local/lib, etc. If you don't specify a prefix, it will default to /usr/local/ssl.
But that doesn't mean you haven't installed it successfully, just that dpkg won't be able to tell you anything about your new installation.
openssl version
specifying the path to your new openssl executable if necessary, to see what version you have.
Read More

Wednesday, August 3, 2016

Here is the sample Apache Tomcat startup script. move this script into the /etc/init.d/ folder.

Tomcat Startup Script:

Read More

Monday, May 30, 2016

First of all add the Ag projects repository to system repositories. 
Add the following lines to /etc/apt/sources.list

Ubuntu Trusty 14.04 :
deb trusty main
deb-src trusty main
Then Install AG Projects software signing key:
sudo apt-key add agp-debian-gpg.key

Install or upgrade SylkServer
sudo apt-get update
sudo apt-get install sylkserver

or to install with WebRTC gateway support:
sudo apt-get update
sudo apt-get install sylkserver-webrtc-gateway

As soon as I hit the above webrtc gateway install command, I got many errors
To overcome this I need to install all the dependencies.

python-msgpack 0.4:
Ubuntu default official repositories doesn't contains the latest version 0.4 so I needed to use third party Deb to install the msgpack 0.4 version.

dpkg -i python-msgpack_0.4.6-1~ubuntu14.04.1~ppa1_amd64.deb

apt-get install python-autobahn
Now Install the sylkserver with WebRTC Gateway :
sudo apt-get install sylkserver-webrtc-gateway

Running the server
Set in /etc/default/syslkserver:
The software can work fine with the default settings. To overwrite the default settings edit the following files:
At least one XMPP domain must be configured in the file above and the DNS.
Start the server:
sudo /etc/init.d/sylkserver start


Activity messages are logged to syslog.
SIP and MSRP protocol traces can be enabled in config.ini

Listening ports

SylkServer must run on a public IP address reachable directly by the SIP clients. If SylkServer is installed behind NAT using a private IP address, only clients from the same LAN can make use of it.
By default SylkServer listens for incoming connections on the following ports:
SIP signaling5060UDP, TCP
SIP signaling5061TLS
RTP media50000:50500UDP
MSRP media2855TLS
WEB mediarandom > 1024TLS
XMPP signaling and media5269TLS
The server is also initiating outbound connections for both signaling and media.

Read More

About Our Blog

This Blog targets readers who want to understand C programming and Linux Essentials. All programming related posts and few jobs are published in this Blog.
Powered by Blogger.
back to top