linux

Run a script when the system starts up or reboots on Ubuntu.

1) Create script, on this example I'm starting the gluu-server service as the root user

$sudo nano /etc/init.d/MyScriptName

Copy/paste the following script, update accordingly:

#! /bin/sh
# /etc/init.d/MyScriptName
#

case "$1" in
  start)
    echo "Attempting to Start Gluu Server..."
    sudo -H -b service gluu-server start
    ;;
  stop)
    echo "Attempting to Stop Gluu Server..."
    sudo -H service gluu-server stop
    ;;
  *)
    echo "Usage: /etc/init.d/MyScriptName {start|stop}"
    exit 1
    ;;
esac

exit 0

2) Give the script executable permission

$sudo chmod +x /etc/init.d/MyScriptName

3) Tell script to run at startup. This tells the script be the first to shutdown and the last to…

Read more...
Monday, July 13, 2015

The idea of this blog post is to show how to install and configure a secure FTP access to your server and provide support for your users.

I'm configuring it so all you users can have their /home/{username} directory available as their FTP folder(s) which I think is one of the most secure ways of configuring an FTP service. After following this tutorial you can create a "ftp" user in your system without ssh access (you can google that ;) ) and use it as you generic ftp user. First of all we need to download the FTP server, in this case I'm going to be using VSFTPD, in order to download it, we need to add the ppa to our system by issuing the following commands:

# sudo add-apt-repository ppa:thefrontiergroup/vsftpd sudo apt-get update

and then install the package:

# sudo apt-get install vsftpd

Read more...
Thursday, September 19, 2013

Installation of Zend Server on Ubuntu 12.04 has a new repo that fixes known issues with Ubuntu 12.04.

The new source:

deb http://repos.zend.com/zend-server/5.6.0_ubuntu1204/deb server non-free

add it to you sources.list file

more info about the issue:

http://forums.zend.com/viewtopic.php?f=78&t=65618

Thursday, January 17, 2013

VLC version that comes with a fresh Lucid install won't play *.mkv files extensions (blu-ray)

add this ppa to your system in order to keep your VLC updated:

#sudo add-apt-repository ppa:n-muench/vlc2

ppa page: https://launchpad.net/~n-muench/+archive/vlc2

Thursday, March 15, 2012

It's been 20 years now since Linux started as an OS and it keeps kicking asses! 

Happy B-day Linux!

Thursday, April 7, 2011