How to Install Agedu Tool in CentOS

To install Agedu Tool in CentOS

Agedu is a tool used to check the wasted disk space. It is an opensource and free utility, which helps to delete the unused data. Installation of Agedu in CentOS is explained in this manual.

To Install Agedu Tool

Use the following link to download the tar package of Agedu tool.

[root@linuxhelp~]# wget http://www.chiark.greenend.org.uk/~sgtatham/agedu/agedu-20160302.a05fca7.tar.gz
--2016-08-03 17:35:32--  http://www.chiark.greenend.org.uk/~sgtatham/agedu/agedu-20160302.a05fca7.tar.gz
Resolving www.chiark.greenend.org.uk... 212.13.197.229
Connecting to www.chiark.greenend.org.uk|212.13.197.229|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 164937 (161K) [application/x-gzip]
Saving to: “ agedu-20160302.a05fca7.tar.gz” 

100%[=================================================================> ] 164,937     83.2K/s   in 1.9s    

2016-08-03 17:35:36 (83.2 KB/s) - “ agedu-20160302.a05fca7.tar.gz”  saved [164937/164937]

Since its a zip file, unzip by using the following command.

[root@linuxhelp1 ~]# gunzip agedu-20160302.a05fca7.tar.gz
[root@linuxhelp1 ~]# ls -l
-rw-r--r--  1 root root 614400 Aug  3 10:32 agedu-20160302.a05fca7.tar

Extract the downloaded tar package using the following command.

[root@linuxhelp1 ~]# tar -xvf agedu-20160302.a05fca7.tar
agedu-20160302.a05fca7/
agedu-20160302.a05fca7/.gitignore
agedu-20160302.a05fca7/Buildscr
agedu-20160302.a05fca7/LICENCE
agedu-20160302.a05fca7/Makefile.am
agedu-20160302.a05fca7/TODO
agedu-20160302.a05fca7/agedu.but
agedu-20160302.a05fca7/agedu.c
agedu-20160302.a05fca7/agedu.h
agedu-20160302.a05fca7/alloc.c
agedu-20160302.a05fca7/alloc.h.

Go to the extracted directory and install Agedu by using following command.

[root@linuxhelp~]# cd agedu-20160302.a05fca7
[root@linuxhelp1 agedu-20160302.a05fca7]# ./configure 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
.
.
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands

[root@linuxhelp1 agedu-20160302.a05fca7]# make
make  all-am
make[1]: Entering directory `/root/agedu-20160302.a05fca7' 
gcc -std=gnu99 -DHAVE_CONFIG_H -I.     -g -O2 -MT agedu.o -MD -MP -MF .deps/agedu.Tpo -c -o agedu.o agedu.c
mv -f .deps/agedu.Tpo .deps/agedu.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I.     -g -O2 -MT du.o -MD -MP -MF .deps/du.Tpo -c -o du.o du.c
mv -f .deps/du.Tpo .deps/du.Po
.
.
gcc -std=gnu99  -g -O2   -o agedu agedu.o du.o alloc.o trie.o index.o html.o httpd.o fgetline.o licence.o  
make[1]: Leaving directory `/root/agedu-20160302.a05fca7' 

[root@linuxhelp1 agedu-20160302.a05fca7]# make install
make[1]: Entering directory `/root/agedu-20160302.a05fca7' 
 /bin/mkdir -p ' /usr/local/bin' 
  /usr/bin/install -c agedu ' /usr/local/bin' 
 /bin/mkdir -p ' /usr/local/share/man/man1' 
 /usr/bin/install -c -m 644 agedu.1 ' /usr/local/share/man/man1' 
make[1]: Leaving directory `/root/agedu-20160302.a05fca7' 

Once the installation is completed, its time to run the Agedu tool from home directory.

[root@linuxhelp1 agedu-20160302.a05fca7]# cd /home/
[root@linuxhelp1 home]# ls -l
total 12
drwx------  7 user1  user1  4096 Aug  3 17:39 user1
drwx------  7 user2  user2  4096 Aug  3 17:42 user2

Run the Agedu tool in home directory or from the respective user’ s directory only.

Use the below command to check the unused data in User1 directory.

[root@linuxhelp1 home]#agedu -s /home/user1
Built pathname index, 59 entries, 4411 bytes of index                                                     
Faking directory atimes
Building index
Final index file size = 8208 bytes

-s option is used to scan the respective directory.

Now run the following command to view graphical output.

[root@linuxhelp1 home]# agedu -w
Using Linux /proc/net magic authentication
URL: http://localhost:52519/

Use the above URL in browser, to view the graphical output as given below.

Change the default port number by using the following command.

[root@linuxhelp1 home]# agedu -w --address 127.0.0.1:12345
Using Linux /proc/net magic authentication
URL: http://127.0.0.1:12345/

Use below command to authenticate in browser.

[root@linuxhelp1 home]# agedu -w --auth basic
Username: agedu
Password: my6e112z3zr447kg
URL: http://127.0.0.1:46673/

Now login with the above generated username & password in browser.

Tag : Agedu
FAQ
Q
How to scan a particular directory via Agedu?
A
To scan a particular directory via Agedu use "-s option" is used for it.
Q
What is Agedu Application Tool?
A
Agedu is a tool used to check the wasted disk space. It is an opensource and free utility, which helps to delete the unused data.
Q
Is this Agedu available for Centos7?
A
Agedu available for Centos7, you can use epel repositories for the installation of it.
Q
Where can I get latest releases updates of Agedu?
A
The latest releases of Agedu can be viewed in the following link http://www.chiark.greenend.org.uk/~sgtatham/agedu/
Q
How to rectify the URL not found error in Agedu?
A
The URL is not found problem can be rectified by enabling Agedu custom port in Firewall Application.