Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
First I need to get the serial number (to register later on). So I do this and got an error: sudo rpm -qip -scripts avg75lms-r49-a1124.i386.rpm
Code:
Name : avg75lms Relocations: (not relocatable)
Version : r49 Vendor: (none)
Release : a1124 Build Date: Thu 06 Sep 2007 08:10:31 AM PDT
Install Date: (not installed) Build Host: localhost
Group : Applications/System Source RPM: avg75lms-r49-a1124.src.rpm
Size : 52023783 License: (c) 2006 GRISOFT, s.r.o.
Signature : (none)
URL : http://www.grisoft.cz/linux
Summary : AVG Anti-Virus for Linux
Description :
This package contains the binary release of AVG Anti-Virus for x86 Linux.
preinstall scriptlet (using /bin/sh):
if [ -z `grep ^avg /etc/group | cut -f1 -d:` ];
then
groupadd avg 2> /dev/null
fi
if [ -z `grep ^avg /etc/passwd | cut -f1 -d:` ];
then
useradd -s /sbin/nologin -g avg avg 2>/dev/null
fi
postinstall scriptlet (using /bin/sh):sudo rpm -qip -scripts avg75lms-r49-a1124.i386.rpm
AVG_SCRIPTS_DIR=/opt/grisoft/avg7/etc/init.d/
. ${AVG_SCRIPTS_DIR}/avgdinit.conf
. ${AVG_SCRIPTS_DIR}/functions.common
. ${AVG_SCRIPTS_DIR}/functions.slack
distro=`detect_distro`
echo "Installing 'avgd' service initscripts..."
case "$distro" in
rh | suse | mdk | ubuntu | deb )
ln -s ${AVG_SCRIPTS_DIR}/avgd.all /etc/init.d/avgd
;;
slack )
ln -s ${AVG_SCRIPTS_DIR}/avgd.all /etc/rc.d/rc.avgd
;;
* )
echo "Automatic installation of initscripts for your platform/distro is not supported."
echo "Please, in directory according to your plartform/distribution"
echo "create symbolic link 'avgd' to initscript for AVG daemon"
echo "${AVG_SCRIPTS_DIR}/avgd.all."
;;
esac
echo "Registering 'avgd' service to runlevels..."
case "$distro" in
rh | suse | mdk )
/sbin/chkconfig --add avgd
;;
deb | ubuntu )
update-rc.d avgd defaults
;;
slack )
# System V emulation
# get runlevels to register from initscript file (if possible)
echo "Using System V emulation for registering initscript to runlevels"
levels=`awk '$1 == "#" && $2 == "chkconfig:" {print $3":"$4":"$5}' ${AVG_SCRIPTS_DIR}/avgd.all`;
levels=${levels:-"2345:60:40"}
register_slack_initscript rc.avgd $levels
;;
* )
echo "Automatic registration of initscripts for your platform/distro is not supported."
echo "Please, register the 'avgd' service initscript for startup and runlevels."
;;
esac
touch /opt/grisoft/avg7/data/set_vers.cfg
echo "Please do registration with avgscan -register."
echo "See /opt/grisoft/avg7/doc/README for more information."
preuninstall scriptlet (using /bin/sh):
if [ $1 = 0 ] ; then
. /opt/grisoft/avg7/etc/init.d/avgdinit.conf
. /opt/grisoft/avg7/etc/init.d/functions.common
. /opt/grisoft/avg7/etc/init.d/functions.slack
distro=`detect_distro`
echo "Unregistering 'avgd' service ..."
case "$distro" in
rh | suse | mdk )
/sbin/chkconfig --del avgd
;;
deb | ubuntu )
update-rc.d avgd remove
;;
slack )
# System V emulation
unregister_slack_initscript rc.avgd
;;
* )
echo "Automatic unregistration of 'avgd' service initscript for your platform/distro is not supported."
;;
esac
# Stop the daemon
case "$distro" in
rh | suse | mdk | deb | ubuntu )
/etc/init.d/avgd stop >/dev/null 2>&1
;;
slack )
/etc/rc.d/rc.avgd stop >/dev/null 2>&1
;;
* )
;;
esac
echo "Uninstalling 'avgd' service initscripts..."
case "$distro" in
rh | suse | mdk | ubuntu | deb )
rm /etc/init.d/avgd
;;
slack )
rm /etc/rc.d/rc.avgd
;;
* )
echo "Automatic uninstallation of initscripts for your platform/distro is not supported."
;;
esac
fi
cp /opt/grisoft/avg7/data/set_vers.cfg /opt/grisoft/avg7/data/upd_vers.cfg
exit 0
Basically, I want to know what this error (or whatever it is) is and what I can do about it. If there is another way to install avg on Freespire, please post it. Thanks.
From the link you provided to the installation instructions, you have several steps left to complete the installation.
The command you entered generates a script you will need to convert the rpm to a .deb (for Linux derived from Debian, which includes Freespire).
Just keep executing the commands in the order given in the installation instructions. If you get an error, it will be plainly labeled as an error. The code you quote doesn't say *error* in the output.
PS: the next command in the sequence gives the License Number you need.
AVG7 Anti-Virus command line scanner
Copyright (c) 2007 GRISOFT, s.r.o.
Program version 7.5.49, engine 442
Virus Database: Version 269.13.8/993 2007-09-06
Enter license number:
I don't have a License Number...
Also, In the text I posted before, there is a line that reads "Automatic installation of initscripts for your platform/distro is not supported."
I think I'm supposed to look for a License Number to then paste in the next command. Is this correct? If so, where can I find it?
I tried "sudo /opt/grisoft/avggui/bin/avggui_update_licinfo.sh" and said command not found.
I browsed to /opt/grisoft/ and found out avggui was really avg7 so I changed the path to "/opt/grisoft/avg7/bin/avgupdate"
When I put in "sudo '/opt/grisoft/avg7/bin/avgupdate'" I got this:
Code:
usage: /opt/grisoft/avg7/bin/avgupdate [OPTIONS] [PATH|LIST]
OPTIONS:
-o, --online online update from Internet
-f, --offline offline update from PATH or LIST
-d, --download download update files
-s, --antispam antispam update from Internet
-p, --priority NUM
NUM represents type of update
2 - priority update
3 - recommended update
4 - optional update
-c, --config FILE
use ohter config file
-t, --daemon-pid FILE
file with AVG daemons group pid
-i, --no-diff ignore binary diff files
-b, --no-backup do not create backup files
-n, --no-progress do not display progress information
-l, --no-log do not create log file
-a, --no-daemons do not restart deamons
-m, --complete only complete updating files
-r, --restore restore previous version
-v, --version display version
-h, --help display this help end exit
PATH : directory with update files
LIST : list of update files separated with space
I'm not sure what to do now. I can't find anything about a License Number.
I tried automatically updating with "sudo '/opt/grisoft/avg7/bin/avgupdate' -o"
At this point, I suggest that you go back to the website and download the .deb version (which is what Freespire needs) and try that. If that doesn't work, try downloading the tarbal (.tar.gz) version and compile it.
When I install using "sudo dpkg -i avg75lms-r49-a1124.i386.deb" there are no problems.
It also said:
Code:
Please do registration with avgscan -register.
See /opt/grisoft/avg7/doc/README for more information.
I read /opt/grisoft/avg7/doc/README and I noticed they gave me a License Number but for a trial. I don't want a trial, I want the free version. I know this is a "Full Version" as it says that on the page I downloaded the files from.
I tried "sudo avgscan -register" and it still asked for a License Number.
I then tried "sudo gedit /usr/share/applications/avg.desktop" and noticed when I pasted the text in avg.desktop that some of the paths might be incorrect, not every installion will be the same.
For the line: "File:/usr/share/applications/avg.desktop" there was a avg.desktop file, thats good.
For the line: "Icon=/opt/grisoft/avggui/prog/pixmaps/avgico_big.png" I looked and found /opt/grisoft/avg7/ but no prog file
Installing .tar.gz
I unpacked the file: "tar -xzvf avg75lms-r49-a1124.i386.tar.gz"
Changed the directory: "cd avg7-linux"
Installed: "sudo ./install.sh"
It asked me some questions then installed.
Here's what I got:
Code:
Do you want to continue? (yes/no): yes
Do you agree with the license? (yes/no): yes
Detected operating system is:
Linux for i686: Debian
Is this correct? (Y/n): y
What group should be used for AVG 7 for Linux [avg]: timberwolf90
Under which user should AVG 7 for Linux run [avg]: timberwolf90
Creating destination directories...
Installing files...
Creating symlinks...
ln: creating symbolic link `/usr/bin/avgscan' to `/opt/grisoft/avg7/bin/avgscan': File exists
ln: creating symbolic link `/usr/bin/avgqrtctl' to `/opt/grisoft/avg7/bin/avgqrtctl': File exists
ln: creating symbolic link `/usr/bin/avgspmctl' to `/opt/grisoft/avg7/bin/avgspmctl': File exists
ln: creating symbolic link `/usr/bin/avgdmilter' to `/opt/grisoft/avg7/bin/avgdmilter': File exists
ln: creating symbolic link `/usr/bin/avgupdate' to `/opt/grisoft/avg7/bin/avgupdate': File exists
ln: creating symbolic link `/etc/avg.conf' to `/opt/grisoft/avg7/etc/avg.conf': File exists
Installing 'avgd' service initscripts...
ln: creating symbolic link `/etc/init.d/avgd' to `/opt/grisoft/avg7/etc/init.d/avgd.all': File exists
Registering 'avgd' service to runlevels...
System startup links for /etc/init.d/avgd already exist.
Generating uninstall script...
Would you like to read README now? (Y/n): n
Would you like to do registration now? (Y/n): y
AVG7 Anti-Virus command line scanner
Copyright (c) 2007 GRISOFT, s.r.o.
Program version 7.5.49, engine 442
Virus Database: Version 269.13.8/993 2007-09-06
License type is TRIAL for SERVER.
Number of days to expiration: 30
AVG Anti-Virus for Linux/FreeBSD successfully installed.
I said yes to registering and now I'm on a trial version.
I still can't find the icon to start the program in "Run Programs"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.