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

Monday, August 4, 2014

Install New Version of Skype.

Hi All,

The older versions of skype like 4.2 is not working, so to get the latest version 4.3 type the below command.

# skype --secondary

This command checked in Ubuntu and working fine.

Monday, July 7, 2014

Combine PDF Documents to Single PDF

Here is the command to combine multiple PDF Documents to Single PDF.

$ gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=final.pdf file1.pdf file2.pdf file3.pdf file4.pdf

Tuesday, May 7, 2013

Installing Node.js in Ubuntu

Here are the steps to install Node.js in Ubuntu.

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install build-essential openssl libssl-dev pkg-config

Download the Nodejs Souce from the below link
http://nodejs.org/download/

Extract and move into the folder

$ ./configure
$ make
$ make install

After completing all the above steps add the below code in any of these files ~/.profile or ~/.bash_profile or ~/.bashrc or ~/.zshenv

export PATH=$PATH:/opt/node/bin

For Detailed Installations please refer to the below link.
https://github.com/joyent/node/wiki/Installation




Command to find the processor in ubuntu

$ uname -m

The Below is the Response.

x86_64 ==> 64-bit kernel
i686   ==> 32-bit kernel

Tuesday, February 19, 2013

Update Skype in Ubuntu



To Remove the Existing Skype in your machine.
             sudo apt-get remove skype skype-bin

 Install Skype on Ubuntu 32bit
  • wget -O skype http://download.skype.com/linux/skype-ubuntu_4.0.0.8-1_i386.deb
  • sudo apt-get install libxss1
  • sudo dpkg -i skype
  • sudo apt-get -f install && sudo rm skype

Install Skype on Ubuntu 64bit

  • wget -O skype http://download.skype.com/linux/skype-ubuntu_4.0.0.8-1_amd64.deb
  • sudo apt-get install libxss1 lib32stdc++6 lib32asound2 ia32-libs libc6-i386 lib32gcc1
  • sudo dpkg -i skype
  • sudo apt-get -f install && sudo rm skype
 

Friday, August 17, 2012

Linux Command to get the System Reboot Time

Hi

Here is the command to know the system Reboot Time.

# last -x|grep reboot

Tuesday, August 14, 2012

Clear MemCache in Ubuntu

Hi Here is the Process to clear the MemCache in Your System.

# telnet localhost 11211
flush_all
quit

if the memcache does not run on localhost 11211, you will have to adjust it.

Friday, March 30, 2012

Cisco VPN in Ubuntu

Hi

Here is the command to install Cisco VPN type in Ubuntu.

# sudo apt-get install network-manager-vpnc

For Detailed Procedure please see the below link:

http://www.ubuntugeek.com/how-to-install-cisco-vpn-client-on-ubuntu-11-10.html

Thursday, March 1, 2012

Create VirtualHost in Ubuntu

Hi All

Here is the Procedure to Create the VirtualHost in Ubuntu.

1. Create the folders that will host your new site. By default, Apache in Ubuntu serves from /var/www. So create this:

mkdir /var/www/site1

2.Copy the current default setting found in /etc/apache2/sites-available/default and name it the same as your new site.

cp /etc/apache2/sites-available/default /etc/apache2/sites-available/site1

3. Edit the new config files for each site using your preferred text editor. Add the line ServerName server1 right below the ServerAdmin line and change both DocumentRoot and Directory to point to your new site.
File:/etc/apache2/sites-available/site1

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    ServerName site1

    DocumentRoot /var/www/site1
    <Directory />
        Options FollowSymLinks
        AllowOverride All
    </Directory>
    <Directory /var/www/site1/>
        Options -Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

4. After you have edited the config file, just tell Apache to start serving the new domains

sudo a2ensite site1


5. Add the entry in your hosts file for new site.

file: /etc/hosts
127.0.0.1       site1

6. Now reload apache and you should be able to get new domain:

sudo /etc/init.d/apache2 reload

check the URL:- http://site1.


Note:-
If you have the .htacess files in your project and if you face any problems like NotFound and Internal Server Error Make sure rewrite Module available in "/etc/apache2/mods-enabled" if not please create the Symlink to the rewrite module, here is the code.

ln -s ../mods-available/rewrite.load rewrite.load


Thursday, December 15, 2011

Commands in Ubuntu

Here are the list of commands to install the additional packages in Ubuntu.

For CURL
sudo apt-get install php5-curl

For Chrome Browser
sudo apt-get install chromium-browser

Wednesday, October 19, 2011

Tool to create the Diagrams in Linux

Hi

Here is a very Good Tool to Create the different types of Diagrams (ex: Flow charts, ER Diagrams, UML Diagrams ...) in Linux.

click here





Wednesday, October 5, 2011

Install Apache,PHP,MySQL in Ubuntu

Hi All Here is the nice tutorial to install the Apache,PHP and MySQL in Ubuntu. http://www.howtoforge.com/ubuntu_lamp_for_newbies

Wednesday, January 5, 2011

How to login as root from GUI in Fedora14

Hi Friends,

In Fedora14 I am posting solution for root lovers who like to login with root. Fedora 14 root login is exactly same like Fedora 12 root login.

WARNING :- Its not at all good to login as root from GUI. It’ DANGEROUS. BUT if some one wants to know that how to login as a root from GUI then follow the instructions.

In Fedora 14 You cannot login as a root from gui. By Default, only Normal users are allowed to login from gui mode.

I Managed to Login as a root from GUI on Fedora 14. Follow these steps and you will able to Login as a root from GUI on Fedora 14

If You want to login as a root from GUI in Fedora 14 then you have to edit something like some files which are located to /etc/pam.d/

Open your Te rminal from Applications -> System Tools -> Terminal

Now Login as a root from your terminal

Step 1 :- [user1@localhost]$ su – root
Password:-

Step 2:- Now go to your /etc/pam.d/ directory.

[root@localhost]# cd /etc/pam.d/

Then first take a backup of gdm file

cp gdm gdm.bkp ( always take backup if anything goes wrong you can correct it by original file)

Step 3 :- Now Open gdm file in your favourite editor. I am using vi as my editor.

[root@localhost pam.d]# vi gdm

Find and Comment or remove this line into your gdm file
auth required pam_succeed_if.so user != root quiet

Step 4 :- Save & Exit From that File. ( In Fedora10 Till step 4 is enought to Login as a root from GUI but for Fedora 13 you need one more file to edit otherwise you cannot Login as a root even though you edited gdm file).

Step 5 :- Here is the additional file that you need to edit and that file name is gdm-password. Open gdm-password file in your favourite editor. I am using vi as my editor.

Then first take a backup of gdm-password file

cp gdm-password gdm-password.bkp ( always take backup if anything goes wrong you can correct it by original file)

[root@localhost pam.d]#vi gdm-password

Find and Comment or remove this line into your gdm file
auth required pam_succeed_if.so user != root quiet


Step 6 :- Save & Exit from File. Now Logout and Try to Login as a root user. Now you are able to Login as a root user from GUI in Fedora 14.