Linux Packages


Linux Packages

• Autoconf
This package contains programs for producing shell scripts that can automatically configure source code from a
developer’s template. It is often needed to rebuild a package after updates to the build procedures.
• Automake
This package contains programs for generating Make files from a template. It is often needed to rebuild a
package after updates to the build procedures.
• Bash
This package satisfies an LSB core requirement to provide a Bourne Shell interface to the system. It was chosen
over other shell packages because of its common usage and extensive capabilities beyond basic shell functions.
• Binutils
This package contains a linker, an assembler, and other tools for handling object files. The programs in this
package are needed to compile most of the packages in an LFS system and beyond.
• Bison
This package contains the GNU version of yacc (Yet Another Compiler Compiler) needed to build several other
LFS programs.
• Bzip2
This package contains programs for compressing and decompressing files. It is required to decompress many
LFS packages.
• Coreutils
This package contains a number of essential programs for viewing and manipulating files and directories. These
programs are needed for command line file management, and are necessary for the installation procedures of
every package in LFS.
• DejaGNU
This package contains a framework for testing other programs. It is only installed in the temporary toolchain.
• Diffutils
This package contains programs that show the differences between files or directories. These programs can be
used to create patches, and are also used in many packages’ build procedures.
• Expect
This package contains a program for carrying out scripted dialogues with other interactive programs. It is
commonly used for testing other packages. It is only installed in the temporary toolchain.
• E2fsprogs
This package contains the utilities for handling the ext2, ext3 and ext4 file systems. These are the most common
and thoroughly tested file systems that Linux supports.
• File
This package contains a utility for determining the type of a given file or files. A few packages need it to build.
• Findutils
This package contains programs to find files in a file system. It is used in many packages’ build scripts.
• Flex
This package contains a utility for generating programs that recognize patterns in text. It is the GNU version of
the lex (lexical analyzer) program. It is required to build several LFS packages.
• Gawk
This package contains programs for manipulating text files. It is the GNU version of awk (Aho-Weinberg-
Kernighan). It is used in many other packages’ build scripts.
• Gcc
This package is the Gnu Compiler Collection. It contains the C and C++ compilers as well as several others not
built by LFS.
• GDBM
This package contains the GNU Database Manager library. It is used by one other LFS package, Man-DB.
• Gettext
This package contains utilities and libraries for internationalization and localization of numerous packages.
• Glibc
This package contains the main C library. Linux programs would not run without it.
• GMP
This package contains math libraries that provide useful functions for arbitrary precision arithmetic. It is required
to build Gcc.
• Grep
This package contains programs for searching through files. These programs are used by most packages’ build
scripts.
• Groff
This package contains programs for processing and formatting text. One important function of these programs is
to format man pages.
• GRUB
This package is the Grand Unified Boot Loader. It is one of several boot loaders available, but is the most
flexible.
• Gzip
This package contains programs for compressing and decompressing files. It is needed to decompress many
packages in LFS and beyond.
• Iana-etc
This package provides data for network services and protocols. It is needed to enable proper networking
capabilities.
• Inetutils
This package contains programs for basic network administration.
• IProute2
This package contains programs for basic and advanced IPv4 and IPv6 networking. It was chosen over the other
common network tools package (net-tools) for its IPv6 capabilities.
• Kbd
This package contains key-table files, keyboard utilities for non-US keyboards, and a number of console fonts.
• Kmod
This package contains programs needed to administer Linux kernel modules.
• Less
This package contains a very nice text file viewer that allows scrolling up or down when viewing a file. It is also
used by Man-DB for viewing manpages.
• Libtool
This package contains the GNU generic library support script. It wraps the complexity of using shared libraries
in a consistent, portable interface. It is needed by the test suites in other LFS packages.
• Linux Kernel
This package is the Operating System. It is the Linux in the GNU/Linux environment.
• M4
This package contains a general text macro processor useful as a build tool for other programs.
• Make
This package contains a program for directing the building of packages. It is required by almost every package in
LFS.
• Man-DB
This package contains programs for finding and viewing man pages. It was chosen instead of the man package
due to superior internationalization capabilities. It supplies the man program.
• Man-pages
This package contains the actual contents of the basic Linux man pages.
• MPC
This package contains functions for the arithmetic of complex numbers. It is required by Gcc.
• MPFR
This package contains functions for multiple precision arithmetic. It is required by Gcc.
• Ncurses
This package contains libraries for terminal-independent handling of character screens. It is often used to provide
cursor control for a menuing system. It is needed by a number of packages in LFS.
• Patch
This package contains a program for modifying or creating files by applying a patch file typically created by the
diff program. It is needed by the build procedure for several LFS packages.
• Perl
This package is an interpreter for the runtime language PERL. It is needed for the installation and test suites of
several LFS packages.
• Procps
This package contains programs for monitoring processes. These programs are useful for system administration,
and are also used by the LFS Bootscripts.
• Psmisc
This package contains programs for displaying information about running processes. These programs are useful
for system administration.
• Readline
This package is a set of libraries that offers command-line editing and history capabilities. It is used by Bash.
• Sed
This package allows editing of text without opening it in a text editor. It is also needed by most LFS packages’
configure scripts.
• Shadow
This package contains programs for handling passwords in a secure way.
• Sysklogd
This package contains programs for logging system messages, such as those given by the kernel or daemon
processes when unusual events occur.
• Sysvinit
This package provides the init program, which is the parent of all other processes on the Linux system.
• Tar
This package provides archiving and extraction capabilities of virtually all packages used in LFS.
• Tcl
This package contains the Tool Command Language used in many test suites in LFS packages. It is only
installed in the temporary toolchain.
• Texinfo
This package contains programs for reading, writing, and converting info pages. It is used in the installation
procedures of many LFS packages.
• Udev
This package contains programs for dynamic creation of device nodes. It is an alternative to creating thousands
of static devices in the /dev directory.
• Util-linux
This package contains miscellaneous utility programs. Among them are utilities for handling file systems,
consoles, partitions, and messages.
• Vim
This package contains an editor. It was chosen because of its compatibility with the classic vi editor and its huge
number of powerful capabilities. An editor is a very personal choice for many users and any other editor could
be substituted if desired.
• XZ Utils
This package contains programs for compressing and decompressing files. It provides the highest compression
generally available and is useful for decompressing packages XZ or LZMA format.
• Zlib
This package contains compression and decompression routines used by some programs.

sysvctl=1


sysvctl=1

The question requests you to enter 'sysvctl=1' in the right file, and check in 'proc/cmdline' after reboot that it works.

answer:
'/proc/cmdline' shows the /boot/grub/grub.conf kernel options loaded
so to implement the question do:

1.     edit  /boot/grub/grub.conf.
1.1   add 'sysvctl=1' at the end of 'ro root=/dev/VolGroup00/LogVol00 rhgb quite'
2      reboot
2.1   check by viewing /proc/cmdline

linux acl howto Configure:


linux acl howto Configure:

Step 1

Enable ACL support on the partition.
Edit /etc/fstab file and change the default parameter to rw,acl
If we want to enable acl for /home

LABEL=/                 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2 
LABEL=/home             /home                   ext3    rw,acl          1 2
LABEL=/tmp              /tmp                    ext3    defaults        1 2
LABEL=/usr              /usr                    ext3    defaults        1 2
LABEL=/var              /var                    ext3    defaults        1 2
/dev/hda8               swap                    swap    defaults        0 0
/dev/hdd1               /Data                   ext3    ro,noatime      1 2
LABEL=/XFS              /XFS                    xfs     rw,noatime      0 2

Reboot the system. If the partition is not in use, you can unmount and remount the partition

#sudo umount /home
#sudo mount /home

Step 2

Create user and group

#useradd user1
#groupadd group1
#usermod -a -G group1 user1

Step 3

Default ACL

Now you can enable ACL by using setfacl command

#mkdir /home/folder1
#chgrp group1 /home/folder1
#chmod g+w /home/folder1
#setfacl --set u::rwx,g::r-x,o::- /home/folder1


To set ACL 

#setfacl -d --set u::rwx,u:user1:rwx,g::rx,g:group1:rx,o::- /home/folder1


To view the acl

# getfacl /home/folder1/

# file: home/folder1/
# owner: root
# group: group1
user::rwx
group::r-x
other::---
default:user::rwx
default:user:user1:rwx
default:group::r-x
default:group:group1:r-x
default:mask::rwx
default:other::---

E-mail Alert on Root SSH Login


Email alert on root SSH login
Why should I enable email alert for every root login?
If you want to get notified instantly when someone logs into your server with date, time and local ip address then you need to enable email alerts.
What are the disadvantages of enabling email alerts?
None. Please do make sure that the email address on which u want to get the alert is not hosted on the same server.
How can I enable email alerts?
Applies to: RedHat, CentOS, Ubuntu
1) Login to the server as root.
2) Open the .bashrc file under /root :
# vi /root/.bashrc
3) Append the following to the file :
echo 'ALERT - Root Shell Access on:' `date` `who` | mail -s "Alert: Root Access from `who | cut -d"(" -f2 | cut -d")" -f1`" user@example.com
Replace user@example.com with the email address on which u want to get the email alert.
4) Save and exit.
Now logout and login again as root, you should receive a root login alert email.
When you login again as root and if you are prompted with this error (assuming use of postfix):
postdrop: warning: unable to look up public/pickup: No such file or directory
then do this:
# mkfifo /var/spool/postfix/public/pickup
# ps aux | grep mail
# kill [insert process number]
# sudo /etc/init.d/postfix restart
Now logout and login again as root, you should receive an email of the root login alert.



Get email alerts for each SSH root login to your server

There are 3 files that can be run once a user logs in (and the Bash Shell starts) and we will add a line in one of these which will email a notification to a given email address whenever the root user logs in. The 3 possible files are in the root user's home directory:
·         .bash_profile
·         .bash_login
·         .profile
Bash looks for those scripts in that order and once it has found a file that matches that filename, it and only it, is run. For example, if there is a .bashprofile file, any commands in .bashlogin will not be called.
So once you have logged in as root
$ cd

$ ls -al



This will give you a list of all files in root's home directory and see which of the above three files exist and open the one that gets called first. Insert this line
echo "ALERT - Root Shell Access on:" `date` `who` | mail -s "Alert: Root Access on SERVER" YOU@DOMAIN.COM



Change SERVER to your server name and YOU@DOMAIN.COM to your email address. Then logout and back in again and check your inbox for a notification















E-mail Alert on Root SSH Login
Want to be notified instantly when someone logs into your server as root? No problem, check out this nice tutorial on email notification for root logins. Keeping track of who logs into your server and when is very important, especially when you're dealing with the super user account. We recommend that you use an email address not hosted on the server your sending the alert from.
So lets get started!
1. Login to your server and su to root, I know the irony!
2. cd /root
3. pico .bashrc
4. Scroll to the end of the file then add the following:
echo 'ALERT - Root Shell Access (YourserverName) on:' `date` `who` | mail -s "Alert: Root Access from `who | cut -d'(' -f2 | cut -d')' -f1`" you@yourdomain.com
Replace YourServerName with the handle for your actual server
Replace you@yourdomain.com with your actual email address
5. Crtl + X then Y
Now logout of SSH, close the connection and log back in! You should receive an email address of the root login alert a few minutes afterwards.
Note: This is a great tool for servers that have multiple admins or if you give someone SSH access for whatever reason, although you should give out the root password to as few people as humanly possible and be sure to change it often.
This will not magically alert you when a hacker runs the latest kernel exploit on your server and logs into SSH because they will create their own SSH/telnet connection. You should keep your system up to date, install a firewall and follow the latest security releases.


Install SquirrelMail


Install SquirrelMail to build web-based mail transfer system like yahoo
 mail or hotmail. SMTP/IMAP server is needed to run in your LAN.
[1]
Install SquirrelMail


www1:~ # 
l-1.4.19-ja-20090522.tar.gz


www1:~ # 
tar zxvf squirrelmail-1.4.19-ja-20090522.tar.gz

www1:~ # 
mv squirrelmail-1.4.19-ja /srv/www/htdocs/squirrelmail

www1:~ # 
cd /srv/www/htdocs/squirrelmail

www1:~ # 
chown -R wwwrun:www /srv/www/htdocs/squirrelmail/data

www1:~ # 
cd /srv/www/htdocs/squirrelmail/plugins

www1:/srv/www/htdocs/squirrelmail/plugins # 
wget http://www.squirrelmail.org/plugins/compatibility-2.0.14-1.0.tar.gz

www1:/srv/www/htdocs/squirrelmail/plugins # 
wget http://www.squirrelmail.org/plugins/empty_trash-1.4-1.2.2.tar.gz

www1:/srv/www/htdocs/squirrelmail/plugins # 
wget http://www.squirrelmail.org/plugins/secure_login-1.4-1.2.8.tar.gz

www1:/srv/www/htdocs/squirrelmail/plugins # 
tar zxvf compatibility-2.0.14-1.0.tar.gz

www1:/srv/www/htdocs/squirrelmail/plugins # 
tar zxvf empty_trash-1.4-1.2.2.tar.gz

www1:/srv/www/htdocs/squirrelmail/plugins # 
tar zxvf secure_login-1.4-1.2.8.tar.gz

www1:/srv/www/htdocs/squirrelmail/plugins # 
rm -f *.tar.gz

www1:/srv/www/htdocs/squirrelmail/plugins # 

www1:~ # 
vi /srv/www/htdocs/squirrelmail/config/config.php

# line 64,65: change

$data_dir
= '
/srv/www/htdocs/squirrelmail/data/
';

$attachment_dir
$data_dir
;


www1:~ # 
/srv/www/htdocs/squirrelmail/config/conf.pl
   
# config-script

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Main Menu --
1. Organization Preferences
2. Server Settings
3. Folder Defaults
4. General Options
5. Themes
6. Address Books
7. Message of the Day (MOTD)
8. Plugins
9. Database
10. Languages

D. Set pre-defined settings for specific IMAP servers

C Turn color off
S Save data
Q Quit

Command >> 
1
  
# select

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Organization Preferences
1. Organization Name
: SquirrelMail

2. Organization Logo
: ../images/sm_logo.png

3. Org. Logo Width/Height
: (308/111)

4. Organization Title
: SquirrelMail

5. Signout Page 
:

6. Top Frame
: _top

7. Provider link 
: http://www.squirrelmail.org/

8. Provider name
: SquirrelMail


R Return to Main Menu
C Turn color off
S Save data
Q Quit

Command >> 
5
  
# change log-out page



When users click the Sign Out button they will be logged out and
then sent to signout_page. If signout_page is left empty,
(hit space and then return) they will be taken, as normal,
to the default and rather sparse SquirrelMail signout page.

[]: 
/webmail
    
# change log-out page

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Organization Preferences
1. Organization Name
: SquirrelMail

2. Organization Logo
: ../images/sm_logo.png

3. Org. Logo Width/Height
: (308/111)

4. Organization Title
: SquirrelMail

5. Signout Page
: /webmail

6. Top Frame
: _top

7. Provider link
: http://www.squirrelmail.org/

8. Provider name
: SquirrelMail


R Return to Main Menu
C Turn color off
S Save data
Q Quit

Command >> 
r
  
# back to menu

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Main Menu --
1. Organization Preferences
2. Server Settings
3. Folder Defaults
4. General Options
5. Themes
6. Address Books
7. Message of the Day (MOTD)
8. Plugins
9. Database
10. Languages

D. Set pre-defined settings for specific IMAP servers

C Turn color off
S Save data
Q Quit

Command >> 
2
  
# select

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Server Settings

General
-------
1. Domain
: localhost

2. Invert Time
: false

3. Sendmail or SMTP
: Sendmail


A. Update IMAP Settings
: localhost:143 (uw)

B. Change Sendmail Config
: /usr/sbin/sendmail


R Return to Main Menu
C Turn color off
S Save data
Q Quit

Command >> 
1
  
# change to your domain name


The domain name is the suffix at the end of all email addresses. If
for example, your email address is jdoe@example.com, then your domain
would be example.com.

[localhost]: 
server-world.info
  
# input

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Server Settings

General
-------
1. Domain
: server-world.info

2. Invert Time
: false

3. Sendmail or SMTP
: Sendmail


A. Update IMAP Settings
: localhost:143 (uw)

B. Change Sendmail Config
: /usr/sbin/sendmail

R Return to Main Menu
C Turn color off
S Save data
Q Quit

Command >> 
3
  
# select


You now need to choose the method that you will use for sending
messages in SquirrelMail. You can either connect to an SMTP server
or use sendmail directly.

1. Sendmail
2. SMTP
Your choice [1/2] [1]: 
2
  
# change to SMTP

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Server Settings

General
-------
1. Domain
: server-world.info

2. Invert Time
: false

3. Sendmail or SMTP
: SMTP


A. Update IMAP Settings
: localhost:143 (uw)

B. Change Sendmail Config
: localhost:25

R Return to Main Menu
C Turn color off
S Save data
Q Quit

Command >> 
A
  
# select


SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Server Settings

General
-------
1. Domain
: server-world.info

2. Invert Time
: false

3. Sendmail or SMTP
: SMTP


IMAP Settings
--------------
4. IMAP Server
: localhost

5. IMAP Port 
: 143

6. Authentication type
: login

7. Secure IMAP (TLS)
: false

8. Server software
: uw

9. Delimiter 
: /


B. Update SMTP Settings
: localhost:25

H. Hide IMAP Server Settings

R Return to Main Menu
C Turn color off
S Save data
Q Quit

Command >> 
4
  
# select


This is the hostname where your IMAP server can be contacted.
[localhost]: 
mail1.server-world.info
  
# specify your IMAP server

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Server Settings

General
-------
1. Domain
: server-world.info

2. Invert Time
: false

3. Sendmail or SMTP
: SMTP


IMAP Settings
--------------
4. IMAP Server
: mail1.server-world.info

5. IMAP Port 
: 143

6. Authentication type
: login

7. Secure IMAP (TLS)
: false

8. Server software
: uw

9. Delimiter 
: /


B. Update SMTP Settings
: localhost:25

H. Hide IMAP Server Settings

R Return to Main Menu
C Turn color off
S Save data
Q Quit

Command >> 
8
  
# select


Each IMAP server has its own quirks. As much as we tried to stick
to standards, it doesn't help much if the IMAP server doesn't follow
the same principles. We have made some work-arounds for some of
these servers. If you would like to use them, please select your
IMAP server. If you do not wish to use these work-arounds, you can
set this to "other", and none will be used.
   bincimap
= Binc IMAP server

   courier 
= Courier IMAP server

   cyrus 
= Cyrus IMAP server

   dovecot
= Dovecot Secure IMAP server

   exchange
= Microsoft Exchange IMAP server

   hmailserver
= hMailServer

   macosx 
= Mac OS X Mailserver

   mercury32
= Mercury/32

   uw 
= University of Washington's IMAP server

   other 
= Not one of the above servers

[uw]: 
dovecot
  
# select your IMAP server application

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Server Settings

General
-------
1. Domain 
: server-world.info

2. Invert Time 
: false

3. Sendmail or SMTP
: SMTP


IMAP Settings
--------------
4. IMAP Server
: mail1.server-world.info

5. IMAP Port 
: 143

6. Authentication type
: login

7. Secure IMAP (TLS)
: false

8. Server software
: dovecot

9. Delimiter 
: /


B. Update SMTP Settings
: localhost:25

H. Hide IMAP Server Settings

R Return to Main Menu
C Turn color off
S Save data
Q Quit

Command >> 
9
  
# select


This is the delimiter that your IMAP server uses to distinguish between
folders. For example, Cyrus uses '.' as the delimiter and a complete
folder would look like 'INBOX.Friends.Bob', while UW uses '/' and would
look like 'INBOX/Friends/Bob'. Normally this should be left at 'detect'
but if you are sure you know what delimiter your server uses, you can
specify it here.

To have it autodetect the delimiter, set it to 'detect'.

[/]: 
detect
  
# change 'detect'

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Server Settings

General
-------
1. Domain
: server-world.info

2. Invert Time 
: false

3. Sendmail or SMTP
: SMTP


IMAP Settings
--------------
4. IMAP Server 
: mail1.server-world.info

5. IMAP Port 
: 143

6. Authentication type
: login

7. Secure IMAP (TLS)
: false

8. Server software
: other

9. Delimiter
: detect


B. Update SMTP Settings
: localhost:25

H. Hide IMAP Server Settings

R Return to Main Menu
C Turn color off
S Save data
Q Quit

Command >> 
B
  
# select


SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Server Settings

General
-------
1. Domain 
: server-world.info

2. Invert Time
: false

3. Sendmail or SMTP
: SMTP


SMTP Settings
-------------
4. SMTP Server
: localhost

5. SMTP Port
: 25

6. POP before SMTP
: false

7. SMTP Authentication
: none

8. Secure SMTP (TLS)
: false

9. Header encryption key
:


A. Update IMAP Settings
: mail1.server-world.info:143 (other)

H. Hide SMTP Settings

R Return to Main Menu
C Turn color off
S Save data
Q Quit

Command >> 
4
  
# select


This is the hostname of your SMTP server.
[localhost]: 
: mail1.server-world.info
  
# specify your SMTP server

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Server Settings

General
-------
1. Domain 
: server-world.info

2. Invert Time
: false

3. Sendmail or SMTP
: SMTP


SMTP Settings
-------------
4. SMTP Server
: mail1.server-world.info

5. SMTP Port
: 25

6. POP before SMTP
: false

7. SMTP Authentication
: none

8. Secure SMTP (TLS)
: false

9. Header encryption key
:


A. Update IMAP Settings
: mail1.server-world.info:143 (other)

H. Hide SMTP Settings

R Return to Main Menu
C Turn color off
S Save data
Q Quit

Command >> 
7
  
# select


If you have already set the hostname and port number, I can try to
automatically detect the mechanisms your SMTP server supports.
Auto-detection is *optional* - you can safely say "n" here.

Try to detect auth mechanisms? [y/N]: 
y
  
# yes (auto-detect)

Trying to detect supported methods (SMTP)...
Testing none: SUPPORTED
Testing login: SUPPORTED
Testing CRAM-MD5: NOT SUPPORTED
Testing DIGEST-MD5: NOT SUPPORTED

What authentication mechanism do you want to use for SMTP connections?
none - Your SMTP server does not require authorization.
login - Plaintext. If you can do better, you probably should.
cram-md5 - Slightly better than plaintext.
digest-md5 - Privacy protection - better than cram-md5.

*** YOUR SMTP SERVER MUST SUPPORT THE MECHANISM YOU CHOOSE HERE ***
If you don't understand or are unsure, you probably want "none"

none, login, cram-md5, or digest-md5 [none]: 
login
  
# select login(for SMTPAuth)

SMTP authentication uses IMAP username and password by default.

Would you like to use other login and password for all SquirrelMail
SMTP connections? [y/N]: 
n


SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Server Settings

General
-------
1. Domain 
: server-world.info

2. Invert Time
: false

3. Sendmail or SMTP
: SMTP


SMTP Settings
-------------
4. SMTP Server
: mail1.server-world.info

5. SMTP Port
: 25

6. POP before SMTP
: false

7. SMTP Authentication
: login

8. Secure SMTP (TLS)
: false

9. Header encryption key
:


A. Update IMAP Settings
: mail1.server-world.info:143 (other)

H. Hide SMTP Settings

R Return to Main Menu
C Turn color off
S Save data
Q Quit

Command >> 
r
  
# back to main menu

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Main Menu --
1. Organization Preferences
2. Server Settings
3. Folder Defaults
4. General Options
5. Themes
6. Address Books
7. Message of the Day (MOTD)
8. Plugins
9. Database
10. Languages

D. Set pre-defined settings for specific IMAP servers

C Turn color off
S Save data
Q Quit

Command >> 
10
  
# select

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Language preferences
1. Default Language
: en_US

2. Default Charset
: iso-8859-1

3. Enable lossy encoding
: falsev


R Return to Main Menu
C Turn color off
S Save data
Q Quit

Command >> 
1
  
# select


SquirrelMail attempts to set the language in many ways. If it
can not figure it out in another way, it will default to this
language. Please use the code for the desired language.

[en_US]: 
ja_JP
  
# select your language

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Language preferences
1. Default Language
: ja_JP

2. Default Charset
: iso-8859-1

3. Enable lossy encoding
: false


R Return to Main Menu
C Turn color off
S Save data
Q Quit

Command >> 
2
  
# select

This option controls what character set is used when sending
mail and when sending HTML to the browser.

This option is used only when default language is 'en_US'.

[iso-8859-1]: 
iso-2022-jp
  
# select your language charaset

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Language preferences
1. Default Language
: ja_JP

2. Default Charset
: iso-2022-jp

3. Enable lossy encoding
: false

R Return to Main Menu
C Turn color off
S Save data
Q Quit

Command >> 
r
  
# back to main menu

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Main Menu --
1. Organization Preferences
2. Server Settings
3. Folder Defaults
4. General Options
5. Themes
6. Address Books
7. Message of the Day (MOTD)
8. Plugins
9. Database
10. Languages

D. Set pre-defined settings for specific IMAP servers

C Turn color off
S Save data
Q Quit

Command >> 
4
  
# select

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
General Options
1. Data Directory
: /var/lib/squirrelmail/prefs/

2. Attachment Directory
: /var/spool/squirrelmail/attach/

3. Directory Hash Level
: 0

4. Default Left Size
: 150

5. Usernames in Lowercase
: false

6. Allow use of priority
: true

7. Hide SM attributions
: false

8. Allow use of receipts
: true

9. Allow editing of identity
: true

Allow editing of name
: true

Remove username from header
: false

10. Allow server thread sort
: true

11. Allow server-side sorting
: true

12. Allow server charset search
: true

13. Enable UID support
: true

14. PHP session name
: SQMSESSID

15. Location base
:


R Return to Main Menu
C Turn color off
S Save data
Q Quit

Command >> 
7
  
# select

Hide SM attributions (y/n) [n]: 
y
  
# Yes

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
General Options
1. Data Directory
: /var/lib/squirrelmail/prefs/

2. Attachment Directory
: /var/spool/squirrelmail/attach/

3. Directory Hash Level
: 0

4. Default Left Size
: 150

5. Usernames in Lowercase
: false

6. Allow use of priority
: true

7. Hide SM attributions
: true

8. Allow use of receipts
: true

9. Allow editing of identity
: true

Allow editing of name
: true

Remove username from header
: false

10. Allow server thread sort
: true

11. Allow server-side sorting
: true

12. Allow server charset search
: true

13. Enable UID support
: true

14. PHP session name
: SQMSESSID

15. Location base
:


R Return to Main Menu
C Turn color off
S Save data
Q Quit

Command >> 
r
  
# back to main menu

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Main Menu --
1. Organization Preferences
2. Server Settings
3. Folder Defaults
4. General Options
5. Themes
6. Address Books
7. Message of the Day (MOTD)
8. Plugins
9. Database
10. Languages

D. Set pre-defined settings for specific IMAP servers

C Turn color off
S Save data
Q Quit

Command >> 
8
  
# select

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Plugins
Installed Plugins
1. delete_move_next
2. squirrelspell
3. newmail

Available Plugins:
4. listcommands
5. filters
6. fortune
7. mail_fetch
8. message_details
9. compatibility
10. calendar
11. translate
12. sent_subfolders
13. empty_trash
14. spamcop
15. bug_report
16. abook_take
17. info
18. secure_login
19. administrator

R Return to Main Menu
C Turn color off
S Save data
Q Quit

Command >> 
9
  
# add compatibility(number is different at an env)

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Plugins
Installed Plugins
1. delete_move_next
2. squirrelspell
3. newmail
4. compatibility

Available Plugins:
5. listcommands
6. filters
7. fortune
8. mail_fetch
9. message_details
10. calendar
11. translate
12. sent_subfolders
13. empty_trash
14. spamcop
15. bug_report
16. abook_take
17. info
18. secure_login
19. administrator

R Return to Main Menu
C Turn color off
S Save data
Q Quit

Command >> 
13
  
# add empty_trash(number is different at an env)

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Plugins
Installed Plugins
1. delete_move_next
2. squirrelspell
3. newmail
4. compatibility
5. empty_trash

Available Plugins:
6. listcommands
7. filters
8. fortune
9. mail_fetch
10. message_details
11. calendar
12. translate
13. sent_subfolders
14. spamcop
15. bug_report
16. abook_take
17. info
18. secure_login
19. administrator

R Return to Main Menu
C Turn color off
S Save data
Q Quit

Command >> 
18
  
# add secure_login(number is different at an env)

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Plugins
Installed Plugins
1. delete_move_next
2. squirrelspell
3. newmail
4. compatibility
5. empty_trash
6. secure_login

Available Plugins:
7. listcommands
8. filters
9. fortune
10. mail_fetch
11. message_details
12. calendar
13. translate
14. sent_subfolders
15. spamcop
16. bug_report
17. abook_take
18. info
19. administrator

R Return to Main Menu
C Turn color off
S Save data
Q Quit

Command >> 
q
  
# quit


You have not saved your data.
Save? [Y/n]: 
y
  
# save

Data saved in config.php

Exiting conf.pl.
You might want to test your configuration by browsing to
http://your-squirrelmail-location/src/configtest.php
Happy SquirrelMailing!

www1:~ # 
vi /etc/apache2/conf.d/squirrelmail.conf

# create new

Alias /webmail /srv/www/htdocs/squirrelmail


   SSLRequireSSL
   Order deny,allow
   Deny from all
   Allow from 127.0.0.1 192.168.0


www1:~ # 
/etc/init.d/apache2 reload

Reload httpd2 (graceful restart)
done

[2]Access to 'http://(your server's name or IP address/)/webmail/', then follwing
sacreen is shown, then authenticate your user name and password to login.
 
[3]Done to login