In some cases you would need to find the location of a given file or to search for a certain text in all files under a directory. SSH provides two different commands, which can be used to accomplish this.
In order to search for a file location you can use the find command. Find is a very powerful tool and accepts various arguments allowing you to specify the exact search term (i.e search by name, by type or even by modified time).For example, to search for a file called myFile.txt under the current folder (and all...
Saturday, September 24, 2011
Move and copy files using SSH
Often you will need to move one or more files/folders or copy them to a different location. You can do so easily using an SSH connection. The commands which you would need to use are mv (short from move) and cp (short from copy).The mv command syntax looks like this:mv configuration.php-dist configuration.phpBy issuing the above command we will move (rename) the file configuration.php-dist to configuration.php. You can also use...
How To Recover root password under linux with single user mode
It happens sometime that you can't remember root password. On Linux, recovering root password can be done by booting Linux under a specific mode: single user mode.
This tutorial will show how to boot Linux in single user mode when using GRUB and finally how to change root password.
During normal usage, a Linux OS runs under runlevels between 2 and 5 which corresponds to various multi-user modes. Booting Linux under runlevel 1 will allow one to enter into a specific mode, single user mode. Under such a level, you directly...
How to edit a file via ssh

To edit a file via ssh we have the following editors:
nano / pico
vim
vi
touch
Suppose we want to edit a file /home/w3tools/index.html using vim editor.
To edit this file use the following steps:
1. Log in to server via ssh using any client (recommended: Putty)
2. Run the following commands.
vim /home/w3tools/index.html 3. Now...
How to change root password via ssh.
To change the root password via ssh, use the following steps:
1. Log in to ssh by using any client(recommended: Putty).
2. Run these commands after it
su - root
passwd 3. Enter your new password for root. Confirm your password by re-entering it.
DONE...!! YOUR PASSWORD FOR ROOT IS NOW UPDATED....
PHP - lame encoder mp3 conversion
Uses PHP - lame to change ID3 tags and convert bitrate of a mp3 file.
You can change album,artist,trackno,genre,year,comment,artist,art and bitrate.
Link to lame encoder : Click here
Enjoy guys !
Source: TechnosL...
How to add tags/labels to bloggers posts via Gdata api
Get The Code From Here: http://pastebin.com/8qCeJsNN
Dependency: http://framework.zend.com/download/gdata
Source: TechnosLa...
In
htaccess style authentication via php,
PHP,
php http authentication,
projects
by Unknown
//
8:49 PM
//
Leave a Comment
HTTP authentication via PHP
Here's a small snippet that let's you implement htaccess style http authentication in your PHP scripts. Just define user and password and you are ready to go !
Go Here To download the code: http://pastebin.com/9Xu02jLD
Make sure that this code block is present in topmost of your scripts or it'll give errors and authentication will be messed up....
In
bypass,
leech,
tf,
timer,
torrent,
torrific,
torrific limit,
torrific.com,
tpb
by Unknown
//
7:20 PM
//
Leave a Comment
Bypass torrific.com download timer
Torrific.com is a great tool for fetching torrents and downloading them over http through our favorite download manager. From last week, they have imposed a timer on download page that limits us from downloading a fetched torrent instantly. Now we can either pay them to gain premium access to their services or we can find a work around. While I suggest you to go for premium membership, I also give you a work around.
On the...
How to Change The Default SSH Port.
To force or change the default SSH to run on a non standard port, use the following steps: 1. Open /etc/ssh/sshd_config in your favorite text editor:
2. Look for the below lines:
# Port 22
3. Uncomment and edit this line to change the default port.
For example you can set it to:
Port 99
4. Save the file, and restart the SSH.
/etc/init.d/ssh restart
NOTE: Removing the # will uncomment and you will need to remove this for any change in the por...
How to force remove a dead node from solusvm.
This command will help you in removing a dead node from solusvm master. Since the node is dead therefore we cannot remove it using the available option in the master.Login to SSH in the master server and run below command.
php /usr/local/solusvm/scripts/deletenode.php --level=force --comm=delete --id=
The node id can be found in the VPS Control Panel. Click on node list and note down the ID of the node you want to remove.
Example: Suppose you want to remove a node having ID = 5
Then the command will be like:
php /usr/local/solusvm/scripts/deletenode.php...
How to change a forgotten MySQL root password from SSH.
To change the MySQL root password, run the below commands as root:
/etc/init.d/mysql stopkillall -9 mysql /etc/init.d/mysql --skip-grant-tables --user=root start
Connect to mysql with the following command:
mysql -u root
Execute the below command in the mysql client:
UPDATE mysql.user SET Password=PASSWORD('newpwd') WHERE User='root';
The 'newpwd' will be the new password for the MySQ...
What does serial, refresh, retry, expire, minimum and TTL mean?
Details of SOA parameters used in DNS records:Serial — The zone serial number, incremented when the zone file is modified, so the slave and secondary name servers know when the zone has been changed and should be reloaded. Refresh — This is the number of seconds between update requests from secondary and slave name servers. Retry — This is the number of seconds the secondary or slave will wait before retrying when the last attempt has failed. Expire — This is the number of seconds a master...
Friday, September 23, 2011
Speed Up Your Javascript Load Time
Javascript is becoming increasingly popular on websites, from loading dynamic data via AJAX to adding special effects to your page.
Unfortunately, these features come at a price: you must often rely on heavy Javascript libraries that can add dozens or even hundreds of kilobytes to your page.
Users hate waiting, so here are a few techniques you can use to trim down your sites.
Find The Flab
Like any optimization technique, it helps...
How To Optimize Your Site With GZIP Compression
Compression is a simple, effective way to save bandwidth and speed up your site. I hesitated when recommending gzip compression when speeding up your javascript because of problems in older browsers.
But it's the 21st century. Most of my traffic comes from modern browsers, and quite frankly, most of my users are fairly tech-savvy. I don't want to slow everyone else down because somebody is chugging along on IE 4.0 on Windows 95. Google and Yahoo use gzip compression. A modern browser is needed to enjoy modern web content and...
Thursday, September 22, 2011
All about facebook passwords
So far, you must have been thinking that just like other websites, you have a single password on facebook. Well it's quite shocking to know that you actually have three facebook passwords and not just one. In fact everybody on facebook has three passwords that they can use to log in. Surprised ? So was I but you need not worry.
The passwords are not a security issue or a bug. Developers at facebook have intentionally done so to make our lives easier. Let me make it clearer through an example. Assume that your facebook password...
Google+ Social Networking Website – Plus.google.com Login
The leading search engine and generalised name as a father of internet has came in booming market of social networking along with its never stopping and unmatchable service as Google Plus, which is also writes as Google+ or G+. Official URL is www.plus.google.com. It’s just going to be proved as new Social Networking Site from Google. This deafening provision of social networking by Google has almost made community to wait for their sweet...
Google plus is now open to public
After being tested immensely for 90 days, google plus is now ready to make it's transition form an invite only to a public beta. Yes, google plus is now open to all. In a yet another feature update post on official the blog, Vic Gundotra from Google expressed how happy they are to introduce Google plus's 100th feature: open signups. The post also includes updates regarding pre-existing features like hangouts bringing it to the screens of your phones, though only for android 2.3+ devices with a front facing camera,...