• Entries (RSS)
  • Comments (RSS)

How to change “-bash-*”?

Posted by | Posted in CentOS, How to, Linux, Thoughts, Tips and Tricks, Ubuntu, Virtual Private Server | Posted on 23-06-2010

Tagged Under : , ,

If you are seeing this in your bash (SSH), It makes it tough to navigate through SSH since it doesn’t give you much information.

-bash-3.2#

To fix that, you can simply type this in your SSH when logged in:

PS1="[\u@\h \W]\$ "

How to change password in linux console?

Posted by | Posted in CentOS, Linux, Ubuntu | Posted on 08-05-2010

Tagged Under : , , ,

Connect to server via SSH and then issue the following command

sudo passwd

output will be something similar to this

root@vps:~# sudo passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

Configuring SSH on Ubuntu 8.10

Posted by | Posted in How to, Linux, OpenSource, Resources, Tips and Tricks, Tutorials, Ubuntu | Posted on 08-01-2009

Tagged Under : , , , , ,

The first issue that I had after installing Ubuntu 8.10 was that I could not connect to SSH on it because SSH server is not installed on Ubuntu 8.10 and it never asked me if I wanted to make a selection of what software packages I need to have installed. I guess thats why they are making a less then 25 min install promise.

Here’s how you can enable / configure / install SSH on your Ubuntu 8.10
Open a terminal window by selecting the Applications menu and selecting Terminal from the Accessories menu. In the terminal window enter the following command and press enter to execute it

sudo apt-get install openssh-server

It will automatically download and install the SSH serve and configure it to run on port 22 (default port).

Ubuntu 8.10 SSH Access
Ubuntu 8.10 SSH Access

I will write another article to explain how you can change the port or enable / disable the SSH server.

Using CakePHP’s Bake on Linux

Posted by | Posted in Linux, OpenSource, PHP, Resources, Tips and Tricks, Tutorials | Posted on 06-01-2009

Tagged Under : , , , , , , , ,

If you want to use CakePHP’s bake tool on Linux command line (like I have development environment on Linux) then you can ssh to your linux box as shown in the screen shot below

Linux Console

Second, you can execute the cake bake command in the following manner

./cake/console/cake bake

as shown in the picture below
Linux Console

19 ffmpeg commands for all needs

Posted by | Posted in FFMPEG library, OpenSource, PHP, Resources, Tips and Tricks, Tutorials | Posted on 29-09-2008

Tagged Under : , , , , , ,

Do you need to convert video/audio files or generate thumbnails from Video files? Then you need FFMPEG library. I found a very nice post titled 19 ffmpeg commands for all needs.

Enjoy!

How to create a tar file using SSH on Linux

Posted by | Posted in Linux, Tips and Tricks, Tutorials | Posted on 02-07-2008

Tagged Under : , , , , , , ,

To create a tar from a directory using SSH on Linux punch in the following command

tar -vcf backup.tar mystuff/

Where “mystuff” is a directory and backup.tar is the target compressed file.
You can also create a file called archive.tar of all the files and subdirectories in the current directory with the following command

tar -vcf backup.tar *

Note: “v” flag is for verbose mode.

Get Adobe Flash playerPlugin by wpburn.com wordpress themes