Archive for August, 2007 Page 2 of 6



Secure shell (ssh) session timeout

Welcome to Linux Screw! If you're new here, you may want to subscribe our RSS feed.

I've noticed that when I keep ssh sessions that I opened before untouched for some period of time (like 30 minutes) they become frozen and as a result I have to close ssh terminal and start a new connection. To prevent such situation I found several tips:

1) Start some utility updating the screen before leaving ssh session untouched. I usually use watch -n 1 'date' that shows current date every second. Other simple way is to send icmp requests to some host, e.g. ping google.com.

2) Increase ssh session idle time by

echo "7200" > /proc/sys/net/ipv4/tcp_keepalive_time

I've checked these tips with Fedora Core, CentOS, Debian and Ubuntu but I'm completely sure that it applicable also for other Linux distributions. First tip (ping) can be used in Unix also.

You may also be interested in:
Secure shell (ssh) connection without password
Keep ssh session saved (Unix “screen” utility)
Moving Linux to remote server (over ssh via third server)

Share This

Switching from Windows to Linux help resource

Here is a nice web site that may be useful for users who are going to switch to Linux from Windows.

applications.jpg

Share This

Silent and unattended large file download with wget

If you would like to download large file like HD Video or Linux ISO image while you're working at your Linux PC or laptop I recommend to use the following command:

wget -c -b "http://file/you/wish/to/download.ext" --limit-rate=100k

Where, -c will continue getting partially-downloaded file (if connection was dropped or smth else), -b will put wget downloading into background, --limit-rate=100k will limit downloading speed at 100 KBytes per second (KB/s).

P.S. man wget still works :)

Share This

Can’t find usable shell script encryption solution…

It sounds a bit cheesy but I can't find any usable solution on how to encrypt Linux/Unix shell script in order to protect it’s source code when it’s still executable.

There was a post here about how to protect shell scripts, but I found SHC bug. Just run script that is encrypted with shc and execute command ps ax and you'll see full source code at ps’s output (newline characters will be replaced with "?" symbol). Because of this fact I can't use SHC anymore and looking for alternative solution.

It would be very appreciated if you suggest a way how to solve the issue. THANK YOU, mates.

Please follow up with this thread on linuxforums.org.

Share This

Feed spamassassin with spam or ham

The easiest way to feed spamassassin with spam is:

spamassassin -r < message.txt

Continue reading...

Share This

Vmware Server at Ubuntu Feisty 7.04

This step-by-step manual provides instructions on how to install freely available VMWare Server at Ubuntu Feisty Fawn Linux (7.04).

First of all download installation package here and get free serial code. To get VMWare Server working at Ubuntu 7.04 I recommend to download this patch.

To make sure there are all necessary tools installed to get VMWare Server running, execute:
sudo aptitude install linux-headers-`uname -r` build-essentia xinetd

After it’s done unpack installation package and patch:
tar -xvzf VMware-server-1.0.3-44356.tar.gz
tar -xvzf vmware-any-any-update109.tar.gz

Then:
cd vmware-server-distrib
./vmware-install.pl

Choose defaults to questions until installer asks to run vmware-config.pl. Press no and install patch:
cd ../
cd vmware-any-any-update109
sudo ./runme.pl

Now it’s proper time to configure VMWare Server:
sudo vmware-config.pl

Just choose default values (it really worked for me).

When the installation is done, run
vmware

and proceed with using VMWare Server:

screenshot-viper-laptop-vmwareserverconsole.png

You may also be insterested in:
Make a copy of virtual machine with Vmware Server

Share This

One more way to count CPUs in Linux

Here is one more way to find out how many CPUs are used by Linux:
cat /proc/cpuinfo | grep "^vendor_id" | wc -l

As for me I use this way to make sure that SMP kernel should be installed.

You're welcome to suggest your ways of doing the same in comments. Thank you in advance!

Share This



Information Improvisation: Operating system is the backbone for every organization. Having professionals with CISSP certification in organization ensures the life running through its networks. Organizations manage tremendous amounts of traffic due to the use of pc phone and people with 646-058 certifications are ideal for this job. They can also manage online networks which can be hosted on lunarpages, which also provides free email hosting. With the company's logo design every page and a well crafted web template the site can be given a graceful look.

 

Friendly Sites:Who is behind Linux Screw?
Aspiring Sysadmin | GeekyBits³ | Bash Cures Cancer | TOTMS
Linux Operating System | Small Linux Deployments | My SysAd Blog
The Danesh Project | ZEPY | LinuxHaxor.net | Planet Sysadmin
The Sys Admin | {buhay sysad} | a non-geek's linux notes
CyberCapital.Org | G-LOADED! | The Linux Alternative Project
My name is Artem Nosulchik (artiomix AT gmail DOT com) and I'm Linux/Unix, Cisco systems engineer. The main idea of Linux Screw is to share relevant knowledge, skills and observations over The Web. Here you can find a lot of information related to different Linux distributions, FreeBSD, IOS as well as a other Open Source around staff. Read more ››