LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > neonsignal
User Name
Password

Notices


Uncategorized Entries with no category
Old

virus scanning

Posted 11-20-2011 at 06:02 PM by neonsignal
Updated 11-20-2011 at 06:03 PM by neonsignal

Although malware has not been the same problem to the same degree on Linux as on other operating systems, it is still possible to run a virus scanner.

A straightforward one is clamav, which is in the repositories of many distros. Typically the install will set up a cron job to grab daily virus signature list updates (this can be disabled by removing /etc/cron.d/clamav-freshclam). The signature list can also be updated manually:
Code:
freshclam
To scan...
Senior Member
Posted in Uncategorized
Views 785 Comments 0 neonsignal is offline
Old

mixing stable and testing packages

Posted 11-19-2011 at 09:42 PM by neonsignal

Sometimes when sticking with a Debian stable version, it can be useful to just update one or two packages to a testing or even unstable version, because of new features.

The ideal way to do this is to use backports, because these have been tested (and patched if necessary) to work with the stable versions of other packages. The backports repository is added to /etc/apt/sources.list:
Code:
deb http://backports.debian.org/debian-backports/ squeeze-backports main contrib
...
Senior Member
Posted in Uncategorized
Views 559 Comments 0 neonsignal is offline
Old

allowing commands to continue after parent shell exit

Posted 11-05-2011 at 05:52 AM by neonsignal

Because commands that are started from a shell are child processes, they will normally be terminated when the shell exits.

A command can be run with nohup so that it can continue beyond the life of the parent shell, and output will be directed to the file nohup.out:
Code:
nohup command
Alternatively, if the command is already running (ie in the background), it can be allowed to continue by using disown before closing the shell:
Code:
disown
...
Senior Member
Posted in Uncategorized
Views 18474 Comments 2 neonsignal is offline
Old

resetting the root password

Posted 11-05-2011 at 05:36 AM by neonsignal
Updated 11-05-2011 at 05:38 AM by neonsignal

When the root password has been lost, it can be reset as follows.

At the grub menu, select 'e' to edit, and add the parameter 'init=/bin/bash' to the linux line. Then 'ctrl-x' to continue booting. This will start the system into a command shell.

Then remount the filesystem root as writable, so that the password can be changed:
Code:
mount -n -o rw,remount /
Change the password in the usual way, then sync to disk:
Code:
passwd
...
Senior Member
Posted in Uncategorized
Views 521 Comments 0 neonsignal is offline
Old

mounting remote directory through ssh

Posted 11-03-2011 at 03:48 AM by neonsignal

The sshfs package can be used to fuse mount remote directories.

For example, a remote apt-get archive could be mounted as a rough way of sharing the package cache:
Code:
sshfs server:/var/cache/apt/archives /var/cache/apt/archives
And then unmounted later:
Code:
fusermount -u /var/cache/apt/archives
This method can be automated by setting up an entry in /etc/fstab (this works best if the ssh login is done through a PKI...
Senior Member
Posted in Uncategorized
Views 576 Comments 0 neonsignal is offline

  



All times are GMT -5. The time now is 11:00 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration