Monday, March 26, 2012

Debain 6.0.4: quick samba installation and configuration

Here is a quick description to how to install samba server and configure it in order to share folder on the network.

Giving 
apt-cache search samba
results:
[...]
libsmbclient-dev - development files for libsmbclient
libsmbclient - shared library for communication with SMB/CIFS servers
libwbclient0 - Samba winbind client library
samba-common-bin - common files used by both the Samba server and client
samba-common - common files used by both the Samba server and client
samba-dbg - Samba debugging symbols
samba-doc-pdf - Samba documentation in PDF format
samba-doc - Samba documentation
samba-tools - Samba testing utilities
samba - SMB/CIFS file, print, and login server for Unix
smbclient - command-line SMB/CIFS clients for Unix
swat - Samba Web Administration Tool
winbind - Samba nameservice integration server
smb2www - SMB/CIFS network client with a web interface
[...]
So run
apt-get install samba smbfs smbclient
to install these three packets....
during installation, it performs default configuration
after....
So next commands.....
adduser guest --home=/home/public --shell=/bin/false --disabled-password
to create a guest user to use only as samba default user....
chmod -R 0700 /home/public
chown -R guest.guest /home/public
These commands configure the sharing in way of every user can create a content(file or folder)
into the shared folder.
No one may edit the content created by something others.... 
If you want some of differently, change the permission mask.....
Now edit /etc/samba/smb.conf
adding after the row 
obey pam restrictions = yes
insert these others rows: 
guest account = guest
invalid users = root

and in the ****Authorization**** section,  these two rows.....: 
; security = user
security = share

In the sharing section add:

# SHARED DIR
[shared]
   comment = shared
   read only = no
   path = /home/public
   guest ok = yes
   guest only = yes
   create mask = 0600
   directory mask = 0700

 
Fine...... restart samba:

 /etc/init.d/samba restart

and all is done.....

 Bye....

Freepopsd under Debian

Freepops is a free tool that can help you for differently things....
One of the most important is to configure your external web mail(of several providers) to your Mail Client(outlook, thunderbird, ecc.)
In debian you can found it into the repository.....
So let's go to install it.....
apt-get install freepops
Now a quick way to start to use it.....

Remember to download the last versions of the plugins you use....
In my case I need to set-up only a ymail.com account
so I download(from http://www.freepops.org/en/) only the last version
of my yahoo.lua and put it into /usr/share/freepops/lua/ directory

Now I create under /sbin those two files.......
The file  start_freepopsd.sh contains:
#!/bin/bash
freepopsd &



The file  stop_freepopsd.sh contains:
#!/bin/bash
freepopsd -k &


And now link the freepopsd start and stop commands and rc.directories....
I choose rc5 for start.....
ln -s /sbin/start_freepopsd.sh S23_freepopsd_start
and rc6 for stopping....
ln -s /sbin/stop_freepopsd.sh K23_freepopsd_stop

Let's done....

Bye....

Monday, March 19, 2012

Debian: install sun java

Default installation of debian surely give you not the sun java available...
If you give
java -version
something like this is the results....:
 java version "1.5.0"
gij (GNU libgcj) version 4.4.5
[........]

So now we move to install sun java package, and set the java command to the new package installed.....
Please ensure you have into /etc/apt/sources.list file non-free rows for your distribution.
If no(in my case I use squeeze) add the follows:

deb http://ftp.it.debian.org/debian/ squeeze non-free
deb-src http://ftp.it.debian.org/debian/ squeeze non-free

Next
apt-get update
apt-cache search sun-java6
and this result will prompt to you....:
.....
sun-java6-bin - Sun Java(TM) Runtime Environment (JRE) 6 (architecture dependent files)
sun-java6-demo - Sun Java(TM) Development Kit (JDK) 6 demos and examples
sun-java6-fonts - Lucida TrueType fonts (from the Sun JRE)
sun-java6-javadb - Java(TM) DB, Sun Microsystems' distribution of Apache Derby
sun-java6-jdk - Sun Java(TM) Development Kit (JDK) 6
sun-java6-jre - Sun Java(TM) Runtime Environment (JRE) 6 (architecture independent files)
sun-java6-plugin - The Java(TM) Plug-in, Java SE 6
sun-java6-source - Sun Java(TM) Development Kit (JDK) 6 source files
....

So give the follow:
apt-get install sun-java6-jdk
if you are a developer, and you need the jdk....
Or the jre if you want only the runtime enviroment...
apt-get install sun-java6-jre

At the end of installation give this last command
update-java-alternatives -s java-6-sun
to set to java command the right(and new) path....
 
Run 
java -version 
to look this...:
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
[...]

Bye....
 






Tuesday, March 13, 2012

Debian: install flash plugin(the "non free flash plugin")

Please verify if the following command has no results:
apt-cache search flashplugin
if has no results
add edit, as root, /etc/apt/sources.list file
and add a row as follow.
Take the row with the current version of your debian
(in my case "squeeze")(not squeeze-updates....or others......)
and "main" as branch version.......

In my case I take the 2 following rows 
deb http://ftp.it.debian.org/debian/ squeeze contrib
deb-src http://ftp.it.debian.org/debian/ squeeze contrib


After this I give
apt-get update
to reload all available packages
and again
apt-cache search flashplugin
to search.... I have this results....:
flashplugin-nonfree-extrasound - Adobe Flash Player platform support library for Esound and OSS
flashplugin-nonfree - Adobe Flash Player - browser plugin


So I give
apt-get install flashplugin-nonfree
restart firefox browser
and all is done....

Bye.....