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

anonymous_enable=NO
local_enable=YES
write_enable=YES

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

chroot_local_user=YES
# if you get 500 Internal error for ftp server add following line.
allow_writeable_chroot=YES

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

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
allow_writeable_chroot=YES
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
 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.
Run
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 http://ag-projects.com/ubuntu trusty main
deb-src http://ag-projects.com/ubuntu trusty main
Then Install AG Projects software signing key:
wget http://download.ag-projects.com/agp-debian-gpg.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.

wget https://launchpad.net/~costamagnagianfranco/+archive/ubuntu/borgbackup/+build/8849335/+files/python-msgpack_0.4.6-1~ubuntu14.04.1~ppa1_amd64.deb
dpkg -i python-msgpack_0.4.6-1~ubuntu14.04.1~ppa1_amd64.deb

python-autobahn:
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:
RUN_SYLKSERVER=yes
The software can work fine with the default settings. To overwrite the default settings edit the following files:
General:/etc/sylkserver/config.ini
Conferencing:/etc/sylkserver/conference.ini
XMPP:
/etc/sylkserver/xmppgateway.ini.
At least one XMPP domain must be configured in the file above and the DNS.
Start the server:
sudo /etc/init.d/sylkserver start

Logging

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:
ComponentPortsTransport
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

Sunday, May 8, 2016

Finally, After many years of waiting, Ubuntu 16.04 LTS allows users to move Unity Launcher panel to the bottom of the screen. Here is a quick tutorial to move the launcher panel bottom. There are a couple of ways to achieve this.

Moving Unity Launcher Panel to Bottom of the screen:

Through Command Line :

Default Unity Launcher Panel (Left Side)
Open Terminal and type the following command.
gsettings set com.canonical.Unity.Launcher launcher-position Bottom
Unity Launcher is at the bottom of the screen
If you don't like bottom panel, Don't worry run the following command to go back to default left side panel.
gsettings set com.canonical.Unity.Launcher launcher-position Left

Back to Left side.

Through Graphical User Interface (GUI) :

We can move launcher panel to bottom using third party software " Unity Tweak Tool ". So ahead and install the Unity Tweak Tool, It is already available in default system repositories. So open your terminal and paste the following command and Hit enter.
sudo apt install unity-tweak-tool
Installing Unity Tweak Tool
Then Open the Unity Tweak Tool from the dash or from the command line, You will be presented with the following screen.

Then go to ‘Unity’ > ‘Launcher’ > ‘Appearance’
Change ‘Position’ from ‘Left’ to ‘Bottom’  like below.


More Articles on Ubuntu 16.04:

Step by Step guide to installing ubuntu 16.04 LTS
Upgrading Ubuntu 14.04 to 16.04 LTS.
Troubleshooting Ubuntu 16.04 LTS Wi-Fi problems.

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