Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Sunday, 30 July 2017

copy paste in ubuntu unix linux using key board shortcuts commands

copy paste in ubuntu unix linux using key board shortcuts commands





First to copy, select the text that you want to copy using mouse and then press ctrl + shift + c ( This make the text to copy to clip board)

Then simply to paste this content into a file press  ctrl + shift + v
{ Read More }


Saturday, 29 July 2017

Create static library for C program in Linux

Create static library for C program in Linux


Consider your C program has three files, which are addSub.c, mulDiv.c and main.c

addSub.c : 
int add(int x, int y)
{
    return x + y;
}
 
int sub(int x, int y)
{
        return x - y;
}
mulDiv.c : 
int mul(int x, int y)
{
    return x * y;
}
 
int div(int x, int y)
{
        return x / y;
}
main.c : 
#include <stdio.h>
 
int main(int argc, char *argv[])
{
    printf("%d ", add(10, 15));
    printf("%d ", sub(50, 15));
    printf("%d ", add(10, 3));
    printf("%d ", add(100, 4));
    return 0;
}

1 . Compile and create object file for addSub.c and mulDiv.c 
gcc -c addSub.c mulDiv.c -Wall
2.  Create static library( liboperation.a ) for compiled files 
ar -cvq libopeartion.a addSub.o mulDiv.o
3.  We can list the available files from library file using following
ar -t libopeartion.a
4. Compile the main program with linking the library 
gcc -o output main.c libopeartion.a
5. Run the created output executable file
./output 

{ Read More }


Thursday, 27 July 2017

Couple of Interesting Linux Links Issue 1

Couple of Interesting Linux Links Issue 1


Hey since i dont get time to actually write articles these days on my blog(Well am in Undergrad college right now doing Bachelor of Technology course in Information and Communication Technology ) so well i guess i would in the meantime post good links related to Desktop Linux frequently on my blog hope you people find them interesting and useful :)

Review of EEE Laptop PC

Asus EEE laptop in past few weeks has received lots of press coverage and well has been selling like hot cakes . Its a compact laptop that sells around 400 $ and well comes with linux loaded .

Here is the review of laptop

and here is the site of the Asus EEE laptop PC


Some More Links about Asus EEE PC


Asus Says Eee PC is Most Successful Product Ever

Simple, tiny computers forcing Microsoft to make changes


Interview with Richard Stallman

Here is a nice interview with Richard Stallman that appeared in a popular indian newspaper .

Digital Colonisation curtailing right to creativity


Reasons why Schools should use free software

The article by Richar M Stallman the founder of GNU Free Software Movement discusses reasons why schools should be using free software as opposed to commercial proprietary softwares

Why schools should exclusively use free software

KDE 4

A few days back the much anticipated KDE 4 was released among much fanfare . KDE 4 has been in development for some time and has some really revolutionary features thats sure to propel desktop linux to new era in coming time .

Here is the link to the visual guide of KDE 4 .

Or if you want to try KDE 4 , here is the OpenSuse 10.3 based Live CD of KDE 4.

and here is the instructions on installing kde 4 on kubuntu/ubuntu .

and here is a nice review of KDE 4 from some one running KDE 4 on Ubuntu gusty gibbon


and Finally Ubuntu 7.10 Desktop Course

OK folks the long awaited Ubuntu 7.10 Desktop Course is ready, waiting and all yours for the taking! Thanks to all the community members who slogged over writing, reviewing, editing, proof reading and fixing the layout. This is just the beginning of the project which we hope will live and evolve with each new Ubuntu release. Yours to develop, enhance and branch off to your hearts content! There are 10 lessons in total. The course is modular - 2 days if all lessons are covered, however, topics and lessons can be selected as required. There are 2 versions of the course: an Instructor Guide, and a student guide

Here is the Students guide to the Desktop Course

and Here is the Instructors guide to the Desktop Course




Article Written by : Ambuj Varshney (blogambuj@gmail.com)
For Desktop on Linux Blog , http://linuxondesktop.blogspot.com
(C) 2007 , Ambuj Varshney


{ Read More }


Tuesday, 25 July 2017

Create a live system ISO for your Ubuntu based Linux machines using Systemback

Create a live system ISO for your Ubuntu based Linux machines using Systemback


Jack Wallen introduces you to an easy way to create live ISO images of your currently running Linux system with Systemback.
Systemback
You have that Linux desktop or server precisely how you want it and are interested in either creating a spot-on backup or a live ISO that you can then install on other (similar) hardware. How do you do it? You could go through the process of learning a number of commands to take care of the process, or you could install and use a handy tool called Systemback.
The Systemback tool allows you to create restore points, backups, and live images of a running system. Currently, it only works for Ubuntu derivatives based on 14.04, 14.10, and 15.04. It does, however, work like a champ (and does so quite easily).
I want to show you how to install and quickly make a live image of your current Linux system.

Installation

You wont find Systemback in the standard repositories, so you must first add the repo with the command:
sudo add-apt-repository -y ppa:nemh/systemback
Now, update apt with the command:
sudo apt-get update
Finally, install Systemback with the command:
sudo apt-get install systemback
Youll have to okay the dependencies before the install will begin. The dependencies will vary, based on what you have installed.
At this point, you should be able to start Systemback from the Unity Dash or your desktop start menu. You can also start Systemback from the command line with:
sudo systemback
You are now ready to create a live ISO.

Usage

Using Systemback is quite easy. From the main window (Figure A), select the location to house the ISO image (by clicking the ... button under Storage Location).
Figure A
Figure A
The Systemback main window.
Click the Live system create button and, in the new window (Figure B), give the live system a name, change the storage location (this location will need to have more than 4 GB of available space), and click Create new. You can optionally include user data files by checking the associated box.
Figure B
Figure B
Creating the live ISO image.
Note: If your .sblive file is larger than 4 GB, the conversion to a ISO is not possible. This is a file system limitation.
Depending on the size of your installation, the process will take some time to complete, so grab a cup of coffee or administer a server or two. After its installed, you should find an .sblive image in the defined storage location ready to convert to ISO. This image can either be written to a USB device or used to create a live ISO image. From the Created Live images window, select the image you want to convert, and then click Convert to ISO. When this process is completed, youll find the .iso file in the storage location ready to be written to disk. With that disk, you can then install the live image on other machines.
The best time to use Systemback is on a close-to-newly installed system. This is simply because of the file system size limitation. If youve installed too many applications on the system, the size will reach beyond 4 GB, and you wont be able to convert it. You can, however, still create restore points for a system. To create a restore point, first make sure youve selected a Storage directory, and then click the Create New button.
Once youve created a restore point, you can then go back to that restore point by simply selecting it from the left side of the window (Figure C) and then clicking System Restore on the right side.
Figure C
Figure C
Restoring from a restore point.
In the resulting window (Figure D), select the type of restore you want to do, if you want to include user configuration files, and click Next. This will begin the restore process.
Figure D
Figure D
Restore point options.
Systemback is a great way to create live images based on a pre-existing system and restore points in case you need to roll a Linux machine backward.
Do you administer or use Linux machines? If so, what do you use for your Linux backup/restore systems? Share your experience in the discussion thread below.

Source: http://www.techrepublic.com/article/create-a-live-system-iso-for-your-ubuntu-based-linux-machines-using-systemback/
{ Read More }


Monday, 24 July 2017

Copying files from my remote linux machine

Copying files from my remote linux machine


  •  Copying file
Source:  File vs.txt in the location /home/vineeshvs_logged_in/Desktop from the pc I have logged in.
Destination: /home/vineeshvs_remote_pc/Desktop in a remote pc in the same network with ip 10.107.104.1

scp /home/vineeshvs_logged_in/Desktop vineeshvs@10.107.104.1:/home/vineeshvs_remote_pc/Desktop
  • Copying folder
Source:  Folder vs in the location /home/vineeshvs_logged_in/Desktop/vs from the pc I have logged in.
Destination: /home/vineeshvs_remote_pc/Desktop in a remote pc in the same network with ip 10.107.104.1

scp -r /home/vineeshvs_logged_in/Desktop/vs vineeshvs@10.107.104.1:/home/vineeshvs_remote_pc/Desktop
{ Read More }


Saturday, 22 July 2017

Counter Strike Global Offensive Available For Linux

Counter Strike Global Offensive Available For Linux


Valve finally released Counter Strike: Global Offensive for Linux.

Counter Strike: Global Offensive (CS:GO) is  an objective-based multiplayer first-person shooter in which players join either the Terrorist or Counter-Terrorist team. CS:GO uses the Source engine and it was initially released in August, 2012, as the fourth game in the Counter-Strike franchise.

Counter Strike: Global Offensive Linux

Compared to the previous games in the series, CS:GO includes ranked match-making, extra weapons and equipment, new and revamped maps along with extra modes (Arms Race, Arsenal: Demolition - which combines Defuse and Arms Race, and Deathmatch) and more.

In my short test under Ubuntu 14.10, I didnt encounter any major issues while playing CS:GO, even with my laptops integrated Intel graphics. However, since the game was just released for Linux, expect to find some bugs (check out this Reddit thread for some potential issues) - if you encounter bugs, report them @ GitHub.

Note that game Steam page wasnt updated to show the newly added Linux support so it wont show up in the Linux section yet, but this should change soon.

Buy Counter Strike: Global Offensive via Steam (�11.99 / $14.99)

via Reddit
{ Read More }


Thursday, 20 July 2017

creating Virtual users on linux server using Proftpd

creating Virtual users on linux server using Proftpd


  ##################################################################
 proftpd FTP server user account creation using commands    ##################################################################

note:- If you have already configured proftpd server and just want to add new user , skip to step 3 direct

////////////////
//  step 1. 
////////////////

install proftpd on system if it is not installed using apt
command is 
apt-get install  proftpd-basic


/////////////////
//  Step 2
/////////////////

enter into directory /etc/proftpd
open file proftpd.conf
uncoment line number 34 (containg text DefaultRoot ~ )
and add this line just below it

AuthUserFile    /etc/proftpd/ftpd.passwd




//////////////
// Step 3
//////////////

now add virtual user to ftp server using command 
ftpasswd --uid <uid> --gid <gid> --name <username> --shell /bin/false --home <path> --passwd

here 

uid is the user id (assign 33 and user will behave like www-data user)
gid is group id (assign 33 to work as www-data)
name is the username which you want to add to ftp server
shell is the name of shell terminal have it /bin/false
home is the directory where user will be directed after successful login
passwd is for password and need not to supply password with command 

for example i want to create a user having name indishell and want to assign /ftp directory to him if user autheticate successfully
uid and gid is 33 
command will be 

ftpasswd --uid 33 --gid 33 --name indishell --shell /bin/false --home /ftp --passwd


press enter and supply new password for the user account


//////////////
// Step 4
////////////// 
now need to chmod and chown the /etc/proftpd/ftpd.passwd and /etc/proftpd/ftpd.group
these files contains FTP server usernames/groups and its password 

chmod 400 /etc/proftpd/ftpd.passwd /etc/proftpd/ftpd.group
chown proftpd.nogroup /etc/proftpd/ftpd.passwd /etc/proftpd/ftpd.group

and now are done :)
you can login to your ftp account using command
ftp  server_IP



Note:- if you are on ubuntu server, then value of uid and gid should be 33(web server id) else you may face issue in writing files ;)

enjoy >:D<
Thank you


-==[[Love to]]==--
zero Cool ,code breaker ica, root_devil, google_warrior,INX_r0ot,Darkwolf indishell,Baba ,Silent poison India,Magnum sniper,Atul  Dwivedi,ethicalnoob Indishell,Local root indishell,Irfninja indishell,Reborn India,L0rd Crus4d3r,AR AR,Mannu, ViKi, Hardeep singh Bhuppi,Mohit, Ffe, Anju, RR Mam, Acchi bacchi(Jagriti) and DON

{ Read More }


Friday, 14 July 2017

Create Classy Slow Motion Videos In Linux With slowmoVideo

Create Classy Slow Motion Videos In Linux With slowmoVideo


slowmoVideo is a Qt application for Linux and Windows that can be used to create beautiful slow motion videos. But dont think all it does is change the video playback speed! The tool can smoothly slow down and speed up the video with optional motion blur.

slowmoVideo Ubuntu

The application is not new and is actually quite popular, but I just realized I never covered it on failsdownloads, so I though Id let you know about this cool application, in case youre not familiar with it.

To get an idea on what the application can do, you can watch a video created by the slowmoVideo developer from an image sequence:


Timelapse retiming (slow motion) from Simon A. Eugster.

He explains:

"Source material for this video was an image sequence shot with a Nikon D90. The clouds were moving so quickly that even with shorter intervals (9 seconds; For a different timelapse I used 20 s which was still enough for the clouds there) the video was playing too fast."

Heres another video which has only some parts in slow motion:


Short dream � Hair in slow-motion from Simon A. Eugster


slowmoVideo features:
  • can be used with any video format supported by ffmpeg;
  • supports loading image sequences;
  • motion blur can be added to the videos.

As you can see, the application doesnt offer a huge amount of features and instead its specialized on doing one thing only: creating amazing slow motion videos from your footage.

slowmoVideo isnt exactly intuitive, but the documentation available on its website should be enough to get you started. Youll find it HERE.

One note though: I recommend trimming your video before importing it into slowmoVideo because it extracts frames from the video when importing it and that will take a long time if your video is relatively large.


Install slowmoVideo in Ubuntu


slowmoVideo can be installed in Ubuntu by using its official PPA (there are no packages for Ubuntu 14.04 yet!). To add the PPA and install slowmoVideo, use the commands below:
sudo add-apt-repository ppa:brousselle/slowmovideo
sudo apt-get update
sudo apt-get install slowmovideo


Download slowmoVideo


Arch Linux users can install slowmoVideo via AUR.

Download slowmoVideo (for Windows or source files). The downloads page includes build instructions for Debian/Ubuntu, Fedora, and openSUSE.
{ Read More }


Friday, 2 June 2017

Couple of Ubuntu Linux Tips

Couple of Ubuntu Linux Tips


I had a number of really good Linux particularly Ubuntu specific tips lying around , so i thought instead of posting them separately it would be way better to post them together as a single article . Some of the tips i have discussed below helps you change default operating system to load in case of time out in the grub boot loader , logging in to system automatically without having to worry about typing in your login credentials , installing DVD playing support , viewing chm files in Mozilla Firefox , Improving quality of font rendered on LCD Displays , increasing your laptops battery life , Installing cool graphics effect , enabling delete option etc .


1. Logging in automatically

Ubuntu by default does not come with automatic log-in enabled so whenever you start ubuntu you have to type in your login credentials . Now however if you want a particular user to be logged in automatically whenever ubuntu starts you can do that easily by following these steps :

1. Go to System -> Administration -> Log-In Window
2. In the dialog box that appears go to Security tab and click on " Enable Automatic login" and click on the user you want to login automatically .


2. Increasing your laptops battery life

Intel a year back released a tool called PowerTop that uses no of features available in the Linux Kernel to make Linux Kernel power efficient and hence helps you conserve your precious laptop battery . Powertop does this by providing you entire list of running application and amount of power they are consuming , so turning of the non-essential one causes one to use less power and hence increases your battery life .

Here is text from PowerTop project about PowerTop

Computer programs can make your computer use more power. PowerTOP is a Linux tool that helps you find those programs that are misbehaving while your computer is idle. The application that misbehaved the most was the Linux kernel. However, as of version 2.6.21, the Linux kernel went tickless, and no longer has a fixed 1000Hz timer tick. The result (in theory) is huge power savings because the CPU stays in low power mode for longer periods during system idle.

However... there are many things that can ruin the party, both inside the kernel and in userspace. PowerTOP combines various sources of information from the kernel into one convenient screen so that you can see how well your system is doing at saving power, and which components are the biggest problems.

PowerTOP has these four basic goals:
  • Show how well your system is using the various hardware power-saving features
  • Show you the culprit software components that are preventing optimal usage of your hardware power savings
  • Help Linux developers test their application and achieve optimal behavior
  • Provide you with tuning suggestions to achieve low power consumption

Now , however PowerTop does not come preinstalled with ubuntu and you have to install it separately (assuming you have all your repositories in order) issue the following command in the terminal window to install power-top :

sudo apt-get install powertop


and after completing above step launch powertop by typing in following in terminal mode ( should be run in super-user administrator mode )

powertop

or
sudo powertop
Powertop in action


3. bypassing trash and deleting files directly

By default nautilus does not come with option to delete file directly , so well whenever you delete file it goes into the Trash . Now however if you want an option to delete file directly without the file going into Trash you can do so by following these steps :

First open nautilus by either clicking on Home Folder ( on menubar at top go to Places -> Home Folder) once nautilus is open go to (Edit -> Preferences )
in the menubar at top of the frame of nautilus , and in the dialog box go to Behaviour you will find a dialog box like this :



In this dialog box enable "Include a Delete command that Bypasses Trash " and close the dialog box . Now whenever you want to delete a file permanently , just right click on the file and chose Delete to delete file permanently .

4. Improving clarity of fonts on LCD/Laptop Displays

Ubuntu does not enable Subpixel smoothing by default which improves the clarity of fonts on LCD displays . To enable it go to (System -> Preference -> Appearance ) and click on the Fonts tab

You will find a window like the one shown below , chose "Subpixel smoothing(LCD)" and close the window you should be able to see the change immediately .
Dialog Box With Subpixel smoothing Enabled

Same Dialog Boxes one with Subpixel smoothing enabled and one with Best shapes enabled

5. Enabling Cool Graphics Effects

Unlike previous releases of Ubuntu where one had to manually download and install compiz,beryl etc (Compiz Fusion is composite window manager that provides best features of Compiz and Beryl) from Repositories if one wanted to have glitzy visual effects . Ubuntu 7.10 comes with Compiz Fusion pre-installed and on supported hardware offers a wide array of Visual Effect . Now depending on graphic hardware of computer one could chose from three level of Visual Effect (From System -> Preferences -> Appearance )

None : - This mode causes Ubuntu to use Metacity instead of Compiz Fusion , with no visual effect

Basic : - Has only simple visual effects like shadows , fading windows-menus etc

Advanced : - Recommended for PC with descent graphic hardware , enables effects like wobbly windows, transparency , animated workspace switching etc
Visual Effect Dialog Box
Now , the biggest advantage of Compiz Fusion is even on really slow hardware one can have descent set of visual effects even on my slow laptop i could use Extra graphics effects though it was painful while using application like OpenOffice because of my slow hardware.

However , compiz-fusion is capable of much more and you can enable more desktop effects /customize compiz by typing the following command in the terminal window : -

sudo apt-get install compizconfig-settings-manager
After completing above step , you can customize compiz by going to System > Preferences > Advanced Desktop Effects Settings .

6. Opening CHM Files using Mozilla Firefox


Mozilla Firefox is a powerful platform and it can be extended to do a number of cool things by installing different plug ins and one really useful addon is a CHM viewer .

To install CHM reader addon go to the following site and click on install button , procedure after that is quite self explanatory owing to extremely easy interface of Mozilla Firefox .


After clicking install button you will find a dialog box like this just click the "Install Now" button in this dialog box

After installing you can easily open chm files from Mozilla Firefox , In the File submenu you will find a option of opening chm files .
File Menu in Firefox showing new option to open CHM file


Firefox rendering a CHM file

7.
1.Changing default operating system to load in case of time-out in grub

Most of the Linux distributions these days use GRUB as default boot-loader . Now after completing installation , if not specified during the time of installation if grub sets Linux as the default operating system to load in case of a time-out . Now even though this is what most users would want still if some one wants to have windows or any other operating system as a default operating system one can do it easily by following the steps below :

Firstly you have to open menu.lst file which is the configuration file of grub loader . Now to modify it you need super-user(administrator ) privileges , to open the file type in the following command .

sudo gedit /boot/grub/menu.lst

Now add a default option like this and set its value to a number that is the sequential order of operating system you want to load in the grub configuration file .

for example for the grub file :

default 5

title Ubuntu 7.10, kernel 2.6.22-14-generic
root (hd0,5)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=4bc9176e-77b6-4067-97c4-6c25c6c6b7a2 ro quiet splash
initrd /boot/initrd.img-2.6.22-14-generic
quiet

title Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root (hd0,5)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=4bc9176e-77b6-4067-97c4-6c25c6c6b7a2 ro single
initrd /boot/initrd.img-2.6.22-14-generic

title Ubuntu 7.10, memtest86+
root (hd0,5)
kernel /boot/memtest86+.bin
quiet

title Fedora (2.6.23.1-42.fc8)
root (hd0,2)
kernel /boot/vmlinuz-2.6.23.1-42.fc8 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.23.1-42.fc8.img
### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Windows Vista/Longhorn (loader)
root (hd0,0)
savedefault
makeactive
chainloader +1

To load windows automatically , i added

default 5


at the top of menu.lst


8. Installing Audio/Video and DVD Playback support

he first thing anyone who wants to use Ubuntu as a replacement to their windows operating system would like to do is install support for all kind of audio/video multimedia codecs . Ubuntu does not come installed with support for major audio/video formats because of licensing issue and other issues . To install support for audio/video codecs type in the following command in the terminal window : -

sudo apt-get install gstreamer0.10-plugins-bad gstreamer0.10-ffmpeg gstreamer0.10-plugins-ugly
And if you want to install mp3 support in nautilus you may like to install mpg123 which is a nice command line based utility for playing mp3 files and it works well even on modest hardware .

sudo apt-get install mpg123

This would enable most of the popularly used codecs in the Totem Movie player which uses the GStreamer framework to play audio/video files.

and to install DVD playing support , type in the following command in the terminal window (Note playing DVD in certain regions through the lib being installed below might be illegal so do it at your own risk ) :

sudo apt-get install totem-xine libxine1-ffmpeg libdvdread3


and

sudo /usr/share/doc/libdvdread3/install-css.sh


After issuing the above command whenever you insert DVD , automatically it would start playing in totem .

Article Written by : Ambuj Varshney (blogambuj@gmail.com)
For Linux on Desktop , http://linuxondesktop.blogspot.com
(C) 2008 , Ambuj Varshney
{ Read More }


Thursday, 1 June 2017

Creating a linux service for an executable JAR

Creating a linux service for an executable JAR



We need an executable JAR to run as a service on ubuntu linux.
For this we used Java Service Wrapper.

Here a simple example of the use of Java Service Wrapper.

I have build a simple java executable jar with code below.
package executable;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Main {
 private static final Logger LOGGER = LoggerFactory.getLogger(Main.class);
 private SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 
 private void messageLoop(String msg){
     while(true) {
      Date nu = new Date();
      String strDate = sdf.format(nu);
         LOGGER.info(strDate + " : " + msg);
         try 
            { Thread.sleep(10000); } 
         catch (InterruptedException ex) 
            { return; }
     }
 } 
    public static void main(String[] args) {
  LOGGER.info("Start main" );
  Main mainKlasse = new Main();
  mainKlasse.messageLoop("Hier ben ik ;o)");
  LOGGER.info("Einde main" );      
    }
}

Create an user on linux for the service.
useradd jarserviceuser
mkdir /home/jarserviceuser
chown jarserviceuser.jarserviceuser /home/jarserviceuser
vim /etc/passwd   (jarserviceuser:x:1004:1004::/home/jarserviceuser:/bin/bash)

passwd jarserviceuser  ( and an appropiate password )


Directories for the new executable-jar application are created, see statemenst below.
mkdir /opt/jarapplication
mkdir /opt/jarapplication/lib
mkdir /opt/jarapplication/bin
mkdir /opt/jarapplication/conf
mkdir /opt/jarapplication/logs
mkdir /opt/jarapplication/tmp
Copy the executable jar to the application directory.
mv executablejar.jar /opt/jarapplication/lib/executablejar.jar

For configuring an executable jar as a service, the Java Service Wrapper is used.
( http://wrapper.tanukisoftware.com/doc/english/download.jsp )

Below the statemens used for configuring the service wrapper.
cd /opt/jarapplication
wget http://wrapper.tanukisoftware.com/download/3.5.26/wrapper-linux-x86-64-3.5.26.tar.gz
gunzip wrapper-linux-x86-64-3.5.26.tar.gz
tar -xvf wrapper-linux-x86-64-3.5.26.tar
cp ./wrapper-linux-x86-64-3.5.26/bin/testwrapper ./bin/
cp ./wrapper-linux-x86-64-3.5.26/bin/wrapper ./bin/
cp ./wrapper-linux-x86-64-3.5.26/lib/* ./lib/

Create a config file and edit this with the right information.
cp ./wrapper-linux-x86-64-3.5.26/src/conf/wrapper.conf.in /opt/jarapplication/conf/wrapper.conf

vim /opt/jarapplication/conf/wrapper.conf

#  needed starting from 1
wrapper.java.classpath.1=../lib/wrapper.jar
wrapper.java.classpath.2=../lib/executablejar.jar

# Java Additional Parameters
#wrapper.java.additional.1=

wrapper.app.parameter.1=executable.Main

# Application parameters.  Add parameters as needed starting from 1
wrapper.logfile=/var/log/jarapplication/jarapplication.log

# Title to use when running as a console

wrapper.console.title=jarapplication

Create a startup script in etc/init.d
cp ./wrapper-linux-x86-64-3.5.26/src/bin/sh.script.in /etc/init.d/jarapplication
vim /etc/init.d/jarapplication

APP_NAME=jarapplication
APP_LONG_NAME="test executable jar"
WRAPPER_CMD="/opt/jarapplication/bin/wrapper"
WRAPPER_CONF="/opt/jarapplication/conf/wrapper.conf"
PIDDIR="/opt/jarapplication/bin"
RUN_AS_USER=jarserviceuser
chmod 0755 /etc/init.d/jarapplication

get the initlevels right with sysv-rc-conf

Make sure the ownerships, rights and folders are correct.
chmod 0644 /opt/jarapplication/lib/executablejar.jar
chown -R jarserviceuser.jarserviceuser /opt/jarapplication/
mkdir /var/log/jarapplication
chown jarserviceuser.jarserviceuser /var/log/jarapplication/
touch /var/log/jarapplication/jarapplication.log
chown jarserviceuser.jarserviceuser /var/log/jarapplication/jarapplication.log

The service is now available with the service command.
service jarapplication status
service jarapplication help
service jarapplication start
service jarapplication stop

Some extra information on creating a service with java service wrapper can be found here (Jenkins example)

For configuring the LOG4J logging, the LOG4J property file has to be configured in the wrapper.conf.
Following line has to be inserted.
wrapper.java.additional.1=-Dlog4j.configuration=file:/opt/jarapplication/conf/log4j.properties

The file /opt/jarapplication/conf/log4j.properties can be created with following lines. (This lets you control the LOG4J output)
log4j.rootLogger = INFO, STDOUT
#log4j.rootLogger = DEBUG, STDOUT
log4j.appender.STDOUT = org.apache.log4j.ConsoleAppender
log4j.appender.STDOUT.layout = org.apache.log4j.PatternLayout
log4j.appender.STDOUT.layout.ConversionPattern = %5p [%t] (%F:%L) - %m%n









{ Read More }


Wednesday, 31 May 2017

Convert text files to MP3 under Linux

Convert text files to MP3 under Linux


Even though I am not a fan of audio books and the only thing I use my iPod for is listening music still while exploring Festival(which is basically a General multi-lingual speech synthesis system) I found out that its very easy to convert normal text files into mp3 using festival . Now this could be especially useful for people who either listen to audio books or people who have difficulty in reading.

First we would need to install festival. We can install festival with the following command :

sudo apt-get install festival


Now we need to install voices which would be used to dictate the text (install any one of the following ) :

To install British Accented male voice issue the following command :

sudo apt-get install festvox-rablpc16k

To install American Accented male voice issue the following command:

sudo apt-get install festival festvox-kallpc16k


Now once you have installed festival and voice package we are ready to convert text files .wav files .

Lets say you want computer to read file named kaddu.txt you would need to pipe(send output of one command to other ) the cat command to festival. You can do so by issuing the following command :
cat -A kaddu.txt | festival --tts
Now instead if you want to convert kaddu.txt to kaddu.wav you can do so by piping the output of cat to a tool that comes with festival text2wave. You can do so by issuing the following command in the terminal window :
cat -A kaddu.txt | text2wave -o kaddu.wav
Now however if you want to remove special characters and want festival/text2wav to read only a to z,A to Z, space, �,�,�.�,�!�,�?�. You can do so by piping the output of cat to sed and then piping the output of sed to text2wav/festival.
cat kaddu.txt |sed s/[^a-zA-Z .,!?]//g|festival --tts

or
cat kaddu.txt|sed s/[^a-zA-Z .,!?]//g|text2wave -o kaddu.wav
Now the (.wav) file produced is uncompressed and are huge in size so you might like to convert it to mp3 to reduce its size and to allow the files to be played on iPod or any other mp3 player. You can convert .wav files easily to (.mp3) file format by using lame .

To install lame issue the following command in the terminal window :
sudo apt-get install lame
after istallation is over to convert say kaddu.wav to kaddu.mp3 issue the following command :
lame -f kaddu.wav kaddu.mp3
NOTE : I am using -f switch here which basically encodes mp3 file faster and in lower quality .

Article Written by : Ambuj Varshney (blogambuj@gmail.com)
For Desktop on Linux Blog , http://linuxondesktop.blogspot.com
(C) 2008 , Ambuj Varshney

{ Read More }


Monday, 29 May 2017

CrossOver Mac and CrossOver Linux sale going on now

CrossOver Mac and CrossOver Linux sale going on now


We will be having a CrossOver Mac and CrossOver Linux sale going on until October 31st 2016 this sale price is only $19.95 for a 1 year activation key / serial number. We only sell activation keys and CrossOver is a digital download only. Simply click on one of the links below to get your copy of CrossOver before this sale ends.

CrossOver Mac and CrossOver Linux can get your Windows productivity applications and PC games up and running on your Mac or Linux machine quickly and easily. CrossOver runs the Windows software that you need on Mac and Linux at home, in the office, or at school without purchasing a Windows license, without rebooting your computer, and without having to use a virtual machine. And CrossOver can run a wide range of Windows games and entertainment applications.

https://crossover.ecwid.com/#!/CrossOver/c/21096476/

A brief overview of CrossOver Mac.

CrossOver Mac is a powerful and useful Mac OS X application that enables you to easily install and run the desired Windows productivity applications or PC games on your Mac with just a few mouse clicks.

 

Provides you with an easy to install environment for running a huge selection of Windows applications on your Mac


The best thing about CrossOver Mac is that you can enjoy various Windows software on your Mac at home, in the office or at work without purchasing a Windows license.In other words, you do not have to go to the trouble of installing a Windows virtual machine or creating a Boot Camp partition on which you can install a Windows copy. The fact that you do not need to reboot your system to logon on a different operating system or share your resources with a Windows virtual machine translates into a faster and smoother application usage.

Extensive list of supported Windows programs and support for running a multitude of others that havent yet been tested


CrossOver Mac comes with support for a long list of Windows programs and games, you can visit CrossOver Mac�s support page and view What Runs on CrossOver. Additionally, you can access the CrossOver Software Installer and search for the desired application using the built-in search form.
What is more, you can configure CrossOver Mac to install certain programs or games via specific installers and into the desire Bottle. The Installation process will guide you through the necessary steps to deploy your software.

Powerful and handy tool that enables you to use virtually any Windows program on a Mac


CrossOver Mac is easy-to-use and kind to your Mac�s resources, and provides a simple and clean user interface. From CrossOver Mac�s main window you can choose between two simple options: �Install Windows Software� and �Run Installed Software�.
As expected, the first option takes you to the above mentioned CrossOver Software Installer window from where you can install the programs you need while the second option enables you to run the installed programs.

About CrossOver Mac


CrossOver Mac is a commercial product that provides Mac OSX users with an easy way to install various applications and games that run only on the proprietary Microsoft Windows operating systems. Technically, the application is a GUI (Graphical User Interface) front-end for the well known Wine software, which provides a set of APIs and libraries to emulate several Microsoft Windows OSes on top of your Mac operating system.

Features at a glance


By default, the program comes with support for a very large selection of Windows applications, allowing users to install and use them without the need for a Microsoft Windows license. However, this does not mean that you won�t have to own a specific software license. It is distributed as a binary packages that supports Mac OSX 10.8 or higher.

Supported Windows applications 


Considering the fact that CrossOver is just a simple user interface for Wine, it comes with support for all the applications that can be installed by the latter, such as the entire Microsoft Office 2010/2007/2003/XP/2000/97 suite, including Microsoft Word, Microsoft Excel, Microsoft PowerPoint, Microsoft Outlook, and Microsoft Access.Among some other Windows-only applications that can be installed by this software, we can mention Internet Explorer, MicrosoftProject, Adobe Photoshop, Lotus Notes, Microsoft Visio, Quicken, FrameMaker, Shockwave Director, QuickTime, Windows Media Player, as well as numerous games.

{ Read More }


Thursday, 25 May 2017

Create Bootable Linux ISO from DD command

Create Bootable Linux ISO from DD command



I have tried many times to create a Bootable USB linux from ISO but failed almost 20 times. After a lot of googling I have found as this is the proper command

dd if=/path/to/ISO.iso of=/dev/sda bs=4M;sync

Thats it. Note: at of=/dev/sda dont give anything after your device. for example If your USB mounted as /dev/sdb1 then at of you should give as of=/dev/sdb only.
{ Read More }


Wednesday, 24 May 2017

Creating A New Panel in Linux Mint XFCE

Creating A New Panel in Linux Mint XFCE


Panel is my another favorite item in Linux desktop. I got addict using more then one panel in my system desktop. I always love to recommend it to my friends. You can add more then one Panel filled with various launcher (aka Application Link/ Shortcut). Today we will learn "How to add a new panel in xfce DE"? I am using Linux Mint 13 xfce to describe this.

Start Panel Properties from Main Menu> Settings > Panel
start panel properties main menu settings panel
Main menu > settings > Panel
You have option to start Panel properties right clicking on an empty place of bottom panel.

right click in bottom panel to start panel properties in linuxmint13xfce
Right click in bottom panel
I am writing some information about 3 Tabs of Panel Properties.
Panel display tab in panel properties in linux mint 13 xfce
Panel display tab
Display:You can set the panel in Horizontal or Virtical in General section here. Change panels size and add more then one row or change langth of this panel in Measurements. You could select Automatically increase the length clicking the radio button just behind the text.
Panel appearance tab in panel properties in linux mint 13 xfce
Panel appearance tab 
Appearance:You could change Panels Background and Opacity here. Add a photo as the background of the panel or select one colour or left it for system style.
Panel items tab in panel properties in linux mint 13 xfce
Panel items tab
Items:Your freedom to adding software link or application shortcut in a panel can be satisfied in this tab. Click on the + (Plus) sign at the right side and add your preferred software links in this panel.

addin or creating a new panel click plus button in panel properties in linuxmint13xfce
Create a new panel click plus button
 Creating a new panel is very easy. Just click on the PLUS (+) button. A new panel will be create instantly. Now configure and add new items / shortcuts there according to this post.
{ Read More }


Tuesday, 16 May 2017

Course For Beginners On How To Deal With The Linux System In 10 Lessons!

Course For Beginners On How To Deal With The Linux System In 10 Lessons!





We decided in "http://lunixhelp.blogspot.com/," that we have to do a course for beginners on how to deal with the Linux system. Ubuntu is an open source software platform that runs everywhere from the smartphone, the tablet and the PC to the server and the cloud. its probably easier to get help for an Ubuntu installation than any other Linux distro, and as a result of its popularity, new software tends to get packaged for Ubuntu very quickly (the addition of PPAs greatly helps with this) so it reduces the need to compile packages yourself if you want the latest versions of things. A lot of things that will be explained can  also apply to other Linux distributions, such as: LinuxMint, ElementaryOS, Fedora, Arch, etc ..., because they look alike in many standards, so you can use this guide even if you use other distributions, and with a few exceptions.


This simple course in learning the basics of Linux from scratch and even access to some advanced things! This Post Is the current index Of lessons links, stay with us.



Lesson 1: Introduction - What is Linux? What is Ubuntu?

Lesson 2: A Comprehensive guide to install Ubuntu

Lesson 3: Meet Ubuntu Desktop I


 
{ Read More }


Cool Desktop Linux Applications Part 1 Internet and networking applications

Cool Desktop Linux Applications Part 1 Internet and networking applications


Desktop Linux has seen tremendous growth over the past few years and with this there has also been tremendous growth in number of applications relevant for desktop use available . Now most of the Linux distributions because of either space constraint or well because of licensing issue do not include many really cool applications .

Now through these series of articles i try to help you install some really cool applications on your desktop Linux installation . Now since Ubuntu is one of the most widely used and user friendly desktop Linux distribution , i have included instructions here on how to install applications on your Ubuntu 7.10 Gusty gibbon installation (though all the applications should work flawlessly in other distribution too with little modification to installation instruction ) .

In this first part of the series we look at some really neat applications that could help you improve your internet browsing experience and your networking experience .

Step 1 : - Enabling Additional Repositories

Now many applications need additional repositories to be installed or some to be enabled in Synaptic package manager so before trying out steps given below ensure that repositories in order.

Launch Synaptic Package Manager (System -> Administration -> Synaptic Package Manager ) , then in Synaptic package manager go to (Settings -> Repositories ) you will find window like this . Ensure that all the check boxes are marked leaving source code(if you want to you can enable this also but you are not going to need this unless you are software developer) the dialog box should look like this .
Dialog Box showing the repositories that should be enabled

After completing above step you will find a dialog box like this

Besides these you may also like to add medibuntu repositories if you want to install applications like ------- , to add mediubuntu repositories follow the following steps

echo "deb http://packages.medibuntu.org/ gutsy free non-free" | sudo tee -a /etc/apt/sources.list

and

wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - && sudo apt-get update

Getting your hands dirty :-) , actual installation instructions

1.
aMule

aMule is alternative to popular eMule program on windows platform , amule supports/works with eDonkey2000 Network or Kadnetwork and allows P2P sharing of files . aMule is available on number of platforms , Current supported systems include Linux, Mac OS X, FreeBSD, NetBSD, OpenBSD, Windows and Solaris.

To install aMule type the following command in the terminal window : -

sudo aptitude install amule
After completing above step launch aMule from (Application -> Internet -> aMule )


2. Nvu/Kompozer
Nvu is one of the most popular
WYSIWYG HTML editor available on Windows and Linux and is open source and free . Nvu is based on Composer component of Mozilla Application Suite . Nvu allows novice or beginners who have little or no knowledge of CSS/HTML to create attractive web pages .Nvu was started by Linspire . As of now Nvu development has ceased and there is a project called Kompozer which if fork of Nvu and is unoffical bug-fix release of Nvu .

To install Kompozer type the following command in the terminal window : -

wget -c http://internap.dl.sourceforge.net/sourceforge/kompozer/kompozer-077-i686.tgz

and

tar -xvzf kompozer-077-i686.tgz
and
sudo mv kompozer /opt/
and
sudo ln -s /opt/kompozer/kompozer /usr/bin/kompozer
After completing above steps type : -

kompozer
In the terminal window to launch Kompozer .

Kompozer in Action


3. aMSN

aMSN is a MSN Messenger clone for Linux operating system , it tries to emulate look and feel of MSN messenger as close as possible allowing linux newbies to use aMSN easily .

aMSN has features not present in MSN Messenger. Users can set alarms, are able to see others who have removed them from their contact list, and are able to open many profiles at once. It is also very customizable, with extensions and themes available at the main site.

To install aMSN type the following command in the terminal window : -

sudo apt-get install amsn
and after completing installation launch aMSN from (Applications -> Internet -> aMSN )

4.
Azureus

Azureus is one of the more popular bittorrent client available on both Windows and Linux , based on java it is one of the most powerful bittorrent client.

To install azureus type the following command in the terminal window : -

sudo aptitude install azureus

This is how azureus looks


5.
Installing Linux DC++ Client

DC++ is a popuar tool used for p2p file sharing and is especially popular in college campuses , to install dc++ for linux follow the following instructions .

Type the following command in the terminal window: -

sudo apt-get install linuxdcpp
And after completing above step launch dcpp from (Applications -> Internet -> DC++)
Linux Client of popular DC++ Application

7.Sylpheed - A Fast Email and News Client

Sylpheed is a Email and News client created using GTK libraries , Sylpheed is a simple, lightweight but featureful, and easy-to-use e-mail client.

Now personally i havent been able to to try Sylpheed since i dont use POP accounts anyways to install it type the following command .

sudo apt-get install sylpheed
After completing above step to launch sylpheed type in "sylpheed" in the terminal window .

Default Window of Sylpheed

For more information visit Sylpheed Website : - http://sylpheed.sraoss.jp/en/

8. Liferea Feed Reader

Everyone would today agree that feeds is one of the best way to remain connected with your favorite website and know about any new changes , news etc . Now there are a number of good feed readers available on Linux the one that stands out is Liferea feed reader , it has an extremely clean and simple user interface and is quite easy to work with too . Liferea supports the major feed formats including RSS/RDF and Atom and can import and export subscription lists in OPML format.


TO install liferea feed reader type in the following command in the terminal window :

sudo apt-get install liferea

and after completing installation launch the feed reader from (Applications -> Internet -> Liferea Feed Reader )


Liferea feed Reader in action




9. CheckGmail

CheckGmail is a nifty little gadget/widget that sits in your taskbar and once configured automatically informs you whenever you receive new email in your GMail Inbox .

To install CheckGmail type in the following command :

sudo apt-get install checkgmail


and after installation is over you can launch it from (Applications -> Internet -> CheckGmail )


10.Opera Web Browser

Opera is a excellent web browser available on a number of different platforms including Windows,Linux and Mac OS X . Now opera has a number of really good features it includes a download manager , bit torrent client has a excellent rendering engine and a number of other really good features .

To install opera type the following command in the terminal (Application -> Accessories -> Terminal ) window : -

wget http://get.opera.com/pub/opera/linux/926/final/en/i386/shared/opera_9.26-20080218.6-shared-qt_en_i386.deb

and

sudo dpkg -i opera_9.26-20080218.6-shared-qt_en_i386.deb

Opera Web browser in Action

Article Written by : Ambuj Varshney (blogambuj@gmail.com)
(C) 2008 , For Linux On Desktop Blog (http://linuxondesktop.blogspot.com)


{ Read More }