Linux.com

Feature: Community

Ask Linux.com: Startup commands, cloning, and anti-virus software

By Linux.com Staff on April 25, 2008 (4:00:00 PM)

Share    Print    Comments   

In this week's peek inside the Linux.com discussion forums, we'll learn how to schedule commands to run every time at system start-up and what the Linux equivalents are for the disk cloning powers of Symantec Ghost. We'll also see a discussion about anti-virus software options for Linux, and whether or not they are worth the trouble to install. Plus, you'll get your chance to chime in with answers to tricky unsolved problems with virtual consoles and distributed filesystems.

Ghosts, Viruses, Pods, and more

User r2b2 posed the question about startup commands in the New to Linux forum, asking how to execute a command when the computer starts -- and, furthermore, what to do if the command in question requires sudo.

Readers asked r2b2 to elaborate, and it came out that the command that prompted the question was mounting a remote SMB (Windows) share. As user tophandcwby explained, that action is best handled by adding an entry to the /etc/fstab file, which allows you to specify both local and remote volumes to mount at startup.

But that was not the end: r2b2 still wanted to know how to configure general-purpose commands to run when the system starts. "When using debian and maybe ubuntu since it is derived from debian, to run a script at boot time, write the script and locate it at /etc/rc.local," tophandcwby replied. "During the boot up process the script in /etc/init.d/rc.local checks for /etc/rc.local and if it's executable, runs it. This script will be run with root privilege so sudo is not needed."

Two questions this week involved finding Linux-based replacements for important Windows utilities. User smhall05 wanted to find a replacement for Symantec's Ghost, a hard disk cloning utility known for its bit-perfect reliability. "I have used dd and dd_rhelp minimally in the past. Do these programs image the actual data only? If not, what programs can I use that are comparable?" User Penguin pointed out the differences between Ghost and dd's approach to data copying, and recommended looking at Partimage and G4L for a more Ghost-like solution. Khabi posted another possible alternative using the dump and restore programs, and gave a brief tutorial.

New Linux user (and new forum reader) zach asked if there were any anti-virus programs written for Linux in particular. Snowman responded with the three big contenders, the GPL-licensed Clam AV, and the proprietary F-Prot and AVG. Synthead took issue with the need, pointing out that the majority of computer virus target and exploit the Windows operating system. "At least for now, you have nothing to worry about. The only way an intruder can really get into your system is if they trick you to run code designed to harm your system," he concluded. "Another thing to keep in mind is that Linux is very different from many OSes. Many of the general guidelines taken to run other operating systems don't apply."

The need, or lack-of-need, for anti-virus protection on Linux is a hotly-debated topic, and one not likely to be settled soon. The same can be said about the merits of supporting proprietary technology like the iPod. User ler wrote in to ask for helping syncing his Linux machine with an iPod touch -- the newest model, and one different enough from its predecessors that it poses a unique challenge. Waxon pointed out an article that dealt with several iPod-supporting applications, but ler didn't find iPod touch support mentioned. User Synthead reassured ler that the touch was supported in the latest releases of gtkpod, and added some specifics to help get a working Firewire connection to the device.

Brains out, it's unanswered question time

If you don't have an iPod touch and you're not concerned about viruses, turn your attention to the forum readers that still have open questions. Efrain recently started using Compiz Fusion on a Gateway laptop, only to find that the mouse stops working after waking up from a suspend.

ImmerOhneGott has a virtual console (TTY) conundrum: although X sees the monitor correctly, the TTY does not, cutting of the bottom few lines of text, and thus making the shell impossible to use.

If troubleshooting isn't your thing, user Ratmonkey is in need of advice about working with the OpenAFS distributed filesystem. JimS is embarking on an unusual project -- building a headless Linux system to serve up Internet audio streams -- and he could use some success stories from others who have done similar work in the past.

Whether you have an answer for any of these posters or just an experience to share, click on the link to the thread and let readers know. Do you have a question of your own? Just visit the forums and ask away.

Share    Print    Comments   

Comments

on Ask Linux.com: Startup commands, cloning, and anti-virus software

Note: Comments are owned by the poster. We are not responsible for their content.

Many of the general guidelines taken to run other operating systems don't apply.

Posted by: Anonymous [ip: 141.123.223.100] on April 25, 2008 07:44 PM
Not true...the same kinds of security guidelines you use in Windows apply in Linux, too: separation of privilege, eliminating unnecessary services, not running with root privilege, etc, etc. Installing AV or AM software on Windows is not "security", it's a fallback to protect users who don't understand how to practice good security. Should the world's user base shift from Windows to Linux, the same kinds of problems are going to be experienced. An OS doesn't provide security, it provides the tools the admin uses to provide security. In the end, a system is only as secure as the admin, and if you think Linux is immune to all of the security threats and issues faced by Windows users....well....you're in for a rude awakening.

#

Re: Many of the general guidelines taken to run other operating systems don't apply.

Posted by: Anonymous [ip: 78.94.204.12] on April 27, 2008 10:06 AM
> the same kinds of security guidelines you use in Windows apply in Linux, too:
> separation of privilege, eliminating unnecessary services, not running with root
> privilege, etc, etc.

I totally agree with that. I believe the major thing separating Linux and Windows right now is that Linux encourages good security practices (and knowing what's "going on" on your pc), while Windows doesn't. Windows makes it too easy to run as "Administrator", not to use a password and just click "Ok" every time something pops up. This is what gives Windows its reputation as being "easy to use", but it also makes it insecure in the hands of an ignorant user.

#

Re(1): Many of the general guidelines taken to run other operating systems don't apply.

Posted by: Anonymous [ip: 63.139.213.249] on April 29, 2008 10:06 PM
One of the problems in Windows is that it is difficult to run as a non-privileged user. Numerous applications require administrator privileges to run (or figuring out what hoops to jump through).

In Linux, applications assume that users don't have administrative privileges, unless it is absolutely necessary.

#

Ask Linux.com: Startup commands, cloning, and anti-virus software

Posted by: Anonymous [ip: 96.228.149.153] on April 26, 2008 12:25 AM
I also agree with the above post, however for the time being because in the whole scheme of things since Linux only represents a small percentage of desktops worldwide you can probably get by with a poorly configured system because the vast majority of malware is directed at the windows crowd.

also I was wondering why you did not mention Clonezilla http://www.clonezilla.org/ as one of the options for a Ghost replacement.

#

Ask Linux.com: Startup commands, cloning, and anti-virus software

Posted by: Anonymous [ip: 70.58.3.167] on April 26, 2008 05:58 AM
Clonezilla rocks for partition and disk cloning. For me Linux "dd" would take over 4 hours where Clonezilla is done in ~10 minutes (writing a dual boot image to a 60GB HDD, a total of about 6GB real data). How can this be? "dd" blindly copies every single (even empty) block whereas Clonezilla, when it can, only handles the blocks containing needed information. I've completed dozens on copies with no errors.

#

Re: Ask Linux.com: Startup commands, cloning, and anti-virus software

Posted by: Anonymous [ip: 67.176.142.30] on April 27, 2008 02:45 PM
Have you look at "FOG is a free open-source ghost-like imaging solution/rescue suite. A free alt. to Ghost, used to image Windows XP, Vista PCs using PXE, PartImage, and a Web Gui to tie it together. Includes featues like memory and disk test, disk wipe and av scan"

https://sourceforge.net/projects/freeghost/

#

Re(1): Ask Linux.com: Startup commands, cloning, and anti-virus software

Posted by: Anonymous [ip: 75.57.180.80] on April 28, 2008 01:26 AM
We are currently using FOG, it is pretty nice, I would highly recommend it!

#

Ask Linux.com: Startup commands, cloning, and anti-virus software

Posted by: Anonymous [ip: 71.68.53.102] on April 27, 2008 01:48 AM
If you are not root but have sudo privilage for a specific file then using @reboot under crontab -e would work too (i.e):

@reboot sudo /path/to/program/program -options

http://jeremy.zawodny.com/blog/archives/001021.html

#

This story has been archived. Comments can no longer be posted.



 
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya