Wednesday, October 16, 2013

Apache REQUIRE order deny allow

Apache Server 2.4 has dropped the directives 

"Order" , "Allow" and "Deny" in favour of the new directive “Require”.


~ all requests denied : 

2.2 configuration:

Order deny,allow
Deny from all

2.4 configuration:

Require all denied


~  all requests allowed : 

2.2 configuration:

Order allow,deny
Allow from all

2.4 configuration:

Require all granted

Fedora 19 - firewalld : open httpd port 80


https://fedoraproject.org/wiki/FirewallD

http://liquidat.wordpress.com/2013/04/09/howto-firewalld-basics/

 # firewall-cmd --state

   -> running

 firewall-cmd --get-active-zones
 public
  interfaces: p1p1

 firewall-cmd --get-zones
 work drop internal external trusted home dmz public block

 firewall-cmd --get-active-zones
public
  interfaces: p1p1


 firewall-cmd --get-services
 cluster-suite kpasswd bacula-client smtp ipp radius mysql ms-wbt bacula transmission-client ftp mdns  samba pmproxy dhcpv6-client rpc-bind ldaps https ldap dhcp imaps samba-client vnc-server http dns  pmwebapi ntp kerberos telnet libvirt openvpn ssh pmwebapis pmcd ipsec postgresql ipp-client proxy-dhcp  amanda-client mountd tftp-client dhcpv6 nfs tftp pop3s libvirt-tls

 # firewall-cmd --zone=public --add-service=http
 -> success

after reboot :

# firewall-cmd --zone=public --list-services
 -> mdns dhcpv6-client ssh

# firewall-cmd --zone=public --add-service=http
 -> success

# firewall-cmd --zone=public --add-service=https
 -> success

 firewall-cmd --zone=public --list-services
mdns dhcpv6-client http ssh https

 firewall-cmd --permanent --zone=public --list-services

ssh mdns dhcpv6-client

firewall-cmd --permanent --zone=public --add-service=https
success

firewall-cmd --permanent --zone=public --add-service=http
success

 firewall-cmd --permanent --zone=public --list-services
mdns http dhcpv6-client https ssh



~ ~ ~ 


# system-config-firewall

bash: system-config-firewall: command not found...

[root@nut ~]#

[root@nut ~]# yum install system-config-firewall
Loaded plugins: langpacks, refresh-packagekit
adobe-linux-x86_64                                                                                     
fedora-chromium-stable                                                                                 
google-chrome                                                                                          
updates/19/x86_64/metalink                                                                            
google-chrome/primary                                                                                 
google-chrome                                                                                             
Resolving Dependencies
--> Running transaction check
---> Package system-config-firewall.noarch 0:1.2.29-9.fc19 will be installed
--> Processing Dependency: system-config-firewall-tui = 1.2.29-9.fc19 for
           package: system-config-firewall-1.2.29-9.fc19.noarch

--> Processing Dependency: system-config-firewall-base = 1.2.29-9.fc19 for
           package: system-config-firewall-1.2.29-9.fc19.noarch

--> Running transaction check
---> Package system-config-firewall-base.noarch 0:1.2.29-9.fc19 will be installed
---> Package system-config-firewall-tui.noarch 0:1.2.29-9.fc19 will be installed
--> Finished Dependency Resolution

Dependencies Resolved


=====================================================================

 Package                                    Arch                  Version                         Repository             Size
=====================================================================
Installing:
 system-config-firewall                      noarch                1.2.29-9.fc19                   fedora                118 k
Installing for dependencies:
 system-config-firewall-base             noarch                1.2.29-9.fc19                   fedora                414 k
 system-config-firewall-tui                 noarch                1.2.29-9.fc19                   fedora                 38 k

Transaction Summary

======================================================================
Install  1 Package (+2 Dependent packages)

Total download size: 571 k

Installed size: 2.9 M



# system-config-firewall

ERROR: FirewallD is active, please use firewall-cmd.

CONCLUSION :
It seems that the firewall daemon is independent to system-config-firewall, 

and they can't be used at the same time ;



Sunday, October 13, 2013

Sopcast player on Ubuntu



http://www.webupd8.org/2012/04/tv-maxe-07-released-ubuntu-ppa.html


TV-Maxe is an application that you can use to watch TV stations online, through a P2P technology called SopCast


To install the latest TV-Maxe in Ubuntu 14.04, 12.04, use the commands below:

sudo add-apt-repository ppa:venerix/pkg
sudo apt-get update
sudo apt-get install tv-maxe

Note: if TV-Maxe doesn’t work properly for you, try changing the player backend from GStreamer to Mplayer of VLC (in the TV-Maxe menu select Preferences and on the General Settings tab, select the backend under Player settings):

Monday, October 7, 2013

US Top Smartphone Platforms



iOS gains on Android in mobile OS race


Apple moved up to 40.7 percent, even before the sensational September sales of its iPhone 5c and iPhone 5s.



Top Smartphone Platforms
3 Month Avg. Ending Aug. 2013 vs. 3 Month Avg. Ending May 2013
Total U.S. Smartphone Subscribers Age 13+
Source: comScore MobiLens
Share (%) of Smartphone Subscribers
May-13Aug-13Point Change
Total Smartphone Subscribers100.0%100.0%N/A
Android52.4%51.6%-0.8
Apple39.2%40.7%1.5
BlackBerry4.8%4.0%-0.8
Microsoft3.0%3.2%0.2
Symbian0.4%0.3%-0.1


Gnome Classic in Ubuntu 12.04 (Precise Pangolin)


   To get started, press Ctrl – Alt – T on your keyboard to open Terminal.
When it opens, run the commands below to enable Gnome Classic.

sudo apt-get install gnome-session-fallback 

Restart and on the logon screen, click the option to change your session.
Then choose Gnome Classic to logon.

http://www.liberiangeek.net/2012/03/return-to-gnome-classic-in-ubuntu-12-04-precise-pangolin/

Install Classic Menu Indicator in Ubuntu 12.04 (Precise Pangolin)

http://www.liberiangeek.net/2012/05/install-classic-menu-indicator-in-ubuntu-12-04-precise-pangolin/

Are you finding it hard to browse and find what you’re looking for in Ubuntu?

Want to go back to gnome classic menu instead?
Well, you can have both;
Ubuntu Unity Desktop as well as Ubuntu Classic Menu.
 
sudo apt-add-repository ppa:diesch/testing
sudo apt-get update && sudo apt-get install classicmenu-indicator


Enable Classic GNOME In Ubuntu 13.04

http://www.liberiangeek.net/2013/04/no-unity-here-enable-classic-gnome-in-ubuntu-13-04/

On the logon screen, select the Ubuntu logo ;
Next, choose ‘GNOME Fallback’

Sunday, October 6, 2013

Enable Desktop Cube in Unity - Ubuntu 12.04 LTS

Howto Enable Desktop Cube in Unity - Ubuntu 12.04 LTS ( "Precise Pangolin" ) 


Install Compiz Config Settings Manager
sudo apt-get install compizconfig-settings-manager
sudo apt-get install compizconfig-settings-manager compiz-plugins compiz-plugins-extra

ALT + F2 :
compizconfig

Open Compiz Config Settings Manager and go to Preferences
Select Plugin List Tab

Disable Automatic Plugin Sorting and accept the warning that will appear after trying to disable it.

From the Disable Plugins List, Enable the following plugins: cube, rotate

From the Enable Plugins List, Disable the following plugins: wall

Go back from the Preferences menu to the Main Compiz Menu and select General Options

Go to Desktop Size tab and change the Horizontal and Vertical Virtual Size to 4



http://askubuntu.com/questions/86977/how-to-correctly-enable-desktop-cube-in-unity-3d


Monday, September 30, 2013

Fedora 19 : Squirrelmail , procmail , dovecot , maildir



Install SquirrelMail


I'm assuming that SELinux is not enabled ; 

yum install squirrelmail
yum install mutt 
yum install dovecot
yum install procmail

We must create a procmailrc file 

/etc/procmailrc  




Restart Apache:

service httpd restart

Then configure SquirrelMail for COURIER IMAP

/usr/share/squirrelmail/config/conf.pl 

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 >> 



D.  Set pre-defined settings for specific IMAP servers



SquirrelMail Configuration : Read: config.php

---------------------------------------------------------
While we have been building SquirrelMail, we have discovered some
preferences that work better with some servers that don't work so
well with others.  If you select your IMAP server, this option will
set some pre-defined settings for that server.

Please note that you will still need to go through and make sure

everything is correct.  This does not change everything.  There are
only a few settings that this will change.

Please select your IMAP server:

    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
    gmail       = IMAP access to Google mail (Gmail) accounts

    quit        = Do not change anything

Command >> 

courier



Without courier IMAP configurations in dovecot , new emails are stored in 

/var/spool/mail 
In this folder there is a single file for each user ; This scenario is for small servers with pop3 access ;

Configuring DOVECOT 

/etc/dovecot/conf.d/10-mail.conf


mail_location = maildir:%h/Maildir


Then , the test : 

echo "test" | mutt -s "eMaiL TesT" user@localhost

After this test , an email must enter in 

/home/user/Maildir ;

If the email arrives in 

/var/spool/mail/user 
then , the dovecot and procmailrc settings are not OK 
and must check 
/var/log/maillog 



Configuring PROCMAIL  


/etc/procmailrc 


SHELL=/bin/sh

MAILDIR="$HOME/Maildir/"
DEFAULT=$MAILDIR
VERBOSE=off
LOGFILE=$HOME/.procmail_`date "+%Y.%m.%d"`.log
FORMAIL=/usr/bin/formail
USER=root
DROPPRIVS=yes 
SENDMAIL=/usr/sbin/sendmail

~ ~ ~ 

If from localhost squirrelmail is OK and from another host can't be accessed , 
then we must check the firewall : 

firewall-cmd --state
- > running

systemctl stop firewalld.service

After the firewalld service has stopped , the webmail can be accessed from the network ! 

Fedora 18 : disable firewalld & install iptables