Archive for the ‘Tools’ Category
Windows has a nice feature in Networking – you just configure the IPs correctly, and the network sharing “magically” works. In Linux we will have to manually configure Samba or some other similar tool to share files between two linux systems – and that’s a bit daunting for a new user. But there is an easier way – using SSH.
SSH or Secure Shell is a program for logging into a remote machine and executing commands on a that machine. Don’t worry – you won’t have to type commands to transfer files – there are GUI clients that supports SSH protocol – for example, the great Konqueror.
SSH is installed and turned on in most distros – so chances are you are running an SSH server at the moment. But if its not installed by default, you can install it using these commands…
In Fedora/Red Hat
yum install openssh
apt-get install openssh
After installing it, you have to activate it in the Services configuration utility. Once that is done, SSH will turned on at boot. Make sure the remote machine have SSH installed and running before trying to connect to it.
An Example Implementation
I use SSH to transfer files between my system and my brothers system. This will give you an overview of the network…
Both the systems have SSH enabled. Now if I want to get some files from my brother’s system, all I have to do is open Konqueror and enter this address in the Address bar:
That is fish://[Remote User]@[Remote Machine’s IP/Name].
This will show a password prompt – where you have to input the password of the remote user. Once that is done, you will see all the files in the remote machine that is accessable by the user you logged in as. All operation you are used to in Konqueror are still supported – Copy/Paste, Drag and Drop etc – they will work between the local system and the remote machine.
If you are a Gnome user, this is possible in Nautilus as well. Instead of
fish://email@example.com , you have to enter
ssh://firstname.lastname@example.org in the address bar – protocol is ssh:// instead of fish://.
Keep in mind that this is practical only for small home networks. If you are implementing a large network with permission settings, shares and stuff, go with Samba. SSH is not a choice there.
Tags: fish, konquoror, local, network, remote, share, ssh
Posted in KDE, Networking, Tools | 4 Comments »
As a web developer good FTP clients are a necessity for me. I have to upload the scripts to the server. I used to use gFTP for this. Good client – clean interface, easy to use. But not as powerful as I wanted. Then I found FireFTP – the extension for Firefox – it is a good client. But recently I found that my favorite application, Konqueror, can do it much better than all the other clients.
Didn’t know konqueror could be used as a FTP client? Just copy and paste this FTP URL into the address bar of Konqueror and see for yourself…
The main advantage of using Konqueror as the FTP client is that you are very familiar with it. All the shortcuts, the tricks, you use when browsing through your files are available when you connect to a remote server as well. Ctrl+C and Ctrl+V? The FTP client has got it. What if you want to browse two folders in the remote server at the same time? Konqueror can do it.
2 Pane View
Like many other FTP Clients, you can split Konqueror into two panes(Window->Split View Left and Right). This is perhaps the best way to use Konqueror as an FTP Client.
X Pane View
Unlike other FTP Clients, Konqueror goes further than just 2 panes. You can keep on splitting a window to make it ‘just perfect’ for you.
If paned view is not enough, just open up a new tab – and continue splitting it.
Multiple Protocols – FTP/SFTP/FISH
Konqueror supports many protocols – among which these three are the most important to us…
- You can use fish if you have a shell account on the remote server. For example, fish://email@example.com would open a connection for user binnyva to a remote server ‘linkdesk.com’.
- File Transfer Protocol – you should be knowing this if you have come this far 😉
- Secure FTP.
So far I have found only one issue with it – I was not able to configure Konqueror to act as an FTP client properly when I was behind a proxy. I have reasons to believe that it was my fault – but I did spend some time trying. Could someone else confirm this?
Konqueror is the best FTP Client there is. Period.
Posted in Applications, KDE, Tools, Tools, Web Development | 7 Comments »
Back in the days when I was working in a web development company, I had to ssh into some sites for setting up crons, importing database dumps etc. But there was a problem – my system was behind a proxy. And SSH did not have an option to connect through a proxy.
To use ssh over a proxy connection, you need a software called Cocrkscrew. Download the source and compile/install it.
wget http://www.agroman.net/corkscrew/corkscrew-2.0.tar.gz tar -xzf corkscrew-2.0.tar.gz cd corkscrew-2.0 ./configure make su [Enter Password] make install
Open the file
Add this line..
ProxyCommand /usr/local/bin/corkscrew <proxy_server_ip> <proxy_server_port> %h %p
ProxyCommand /usr/local/bin/corkscrew 192.168.1.15 80 %h %p
192.168.1.15 is the proxy server and
80 is the port.
After this is done, just connect to the remote server using ssh.
Posted in Networking, Tools | 11 Comments »