IPFire
Linux ‘screen’ command
0Just a quick note about an awesome tool I’ve discovered on my travels.
The ‘screen‘ command in a linux shell.
This neat little tool allows you to run a remote shell (via SSH in my case) and run a command so that it doesn’t die after you exit the SSH session.
Normally when you exit an SSH session while a command is being run you will kill any processes being run by that session. With screen, you basically tell it to leave that particular session in the background (running) and you can come back to it at any time and check on its progress.
I’ve found it particularly useful when I’m using Rsync to dump the files from one computer to another (as in my current predicament.
So basically your essential commands are:
localhost@user:$ screen
This makes a new screen so you are given a new shell in which to type any commands you need to run in the background.
localhost@user:$ screen -ls
This will give you a list of current screen sockets open. Note the socket number so you can get back to the screen you want.
localhost@user:$ screen -r [screen socket number]
This command will reattach/restore the screen you had running to the front so that you can check on it’s progress. If at this point you exit the shell the session will still remain and you can use the same command to restore it again.
Once you are finished, just type exit and it should kill the socket and drop back to the standard shell.
If for whatever reason it doesn’t drop the socket (check with screen -ls) you can either leave it (I doubt it would use much memory anyway) or use the command screen -wipe and that will destroy all sockets that have been made.
So that’s it. What a useful tool, and very easy to use.
As always with Linux, it has many more options than described here, so you can check the man pages on it (man screen) or just screen –help will give you most of what you’ll ever need.
Later.
Windows – Linux Networking
0So a few weeks ago I installed IPFire on my router primarily to enable me to put in an NTFS drive and share it via SAMBA.
I’ve only now got around to actually measuring how fast it actually transfers; not so good.
But first I did an IPerf test to check my actual throughput, with interesting results:
When the Router was Client I got 476Mbps or 59.5MB/s
Now with my Windows 7 machine as the client I got 268Mbps or 33.5MB/s
There’s something weird going on there.
Anyway on to the SAMBA results:
Source of file: /tmp (ext4 drive)
Router -> Desktop I got 20-21MB/s
Desktop -> Router I got 15-17 MB/s
Source of file: /mnt/media (ntfs drive)
Router -> Desktop I got 15 MB/s
Desktop -> Router I got 8-9 MB/s
Funny thing about all this: I have no idea what conclusions I can draw from the data provided. It appears that the slowest transfer occurs when I try copying a file from my desktop machine to the media drive on the router. Why? Not a clue. It really doesn’t make much sense to me. Possibly it’s the NTFS driver, maybe the HDD has something wrong, perhaps the mount point isn’t configured right.
One thing I can be sure of is that the problem happens primarily when transferring from my desktop machine, to the router. Guess it’s gonna be trial and error