Pages

Sunday, May 1, 2011

Reliance Netconnect and Ubuntu / Debian

Hello Readers,

Oh!! Yeah, Finally reliance netconnect connected & started working on ubuntu 10.04 with easy simple steps followed to configure it.


  • Search the package usb-modeswitch & usb-modeswitch-data
root@cyclotron:~# apt-cache search usb-modeswitch usb-modeswitch-data

  •  Install the package usb-modeswitch & usb-modeswitch-data
root@cyclotron:~# apt-get install usb-modeswitch usb-modeswitch-data


  • Now follow the easy installation steps to get connected.
  • Systems --> Preferences --> Network Connection
  • Select Mobile Broadband --> Add --> Select your provider country --> Select your provider --> Confirm Settings
  • Now Enter the Phone Number in the Username box & Phone Number in the Password and Apply the settings.

Now you should get connected to the Reliance Netconnect. 


Enjoy Netconnect. :-)




Tuesday, March 29, 2011

How To : Install firefox 4 (stable) on Ubuntu

Hello Folks,

If you want to install & enjoy firefox 4 on your Ubuntu Machine / Debian Machine follow the simple steps.


  • apt-get remove firefox 
  • dpkg --purge firefox
Now add the below Firefox Stable PPA :-
sudo add-apt-repository ppa:mozillateam/firefox-stable

  • apt-get update
  • apt-get install firefox
The installation may take sometime, After the installation you check the new Firefox 4 installed and also you download Firefox 4.

Enjoy the browsing with new Firefox 4 with great features in it. :-)



Tuesday, March 22, 2011

Pure-ftpd-mysql : Unable to start a standalone server

Hello All,

After restarting ftp server found that the ftp server is not running, Checked the system log of the server & found the following error.

pure-ftpd: (?@?) [ERROR] Unable to start a standalone server: [Invalid argument]

In debian etch 4, The pure-ftpd-mysql does not have link to pure-ftpd from pure-ftpd-mysql by default. Apply the link by force and restart the service.

ln -sf /usr/sbin/pure-ftpd-mysql /usr/sbin/pure-ftpd


Enjoy. :-)

 



Thursday, March 3, 2011

HOW TO : Convert .flv to .mp3 in Ubuntu / Debian

Hello,

Converting .flv or mp3 has become so easy in Linux box within few minutes. Just thought of sharing it.

Installation of FFmpeg on Debian OR Ubuntu


  • root:~#apt-get install ffmpeg



Converting .flv to .mp3 



  • ffmpeg -i filename.flv -acodec copy output.mp3



Enjoy. :-)

Friday, February 25, 2011

Update-grub : Dual Boot - Grub Load

Hi,

 From last 2days I was trying to upgrade my laptop from Debian Lenny 5.0 to Debian Squeeze 6.0, As there was some problem with my internet connection I was not able to do it.

After 24hrs I was able to connect to internet. Now my machine is upgraded with Debian Squeeze 6.0 finally and thought of sharing a small issue faced with boot loader after the upgradation.

When upgradation was proceeding it asked to select the partition to install the boot-loader. It showed the two partition /dev/sda (Ubuntu partition) & /dev/sda2 (Debian Partition) as I was not sure, installed the boot-loader on /dev/sda. After the complication the laptop rebooted and I was not able to find the Ubuntu 10.04 in my grub. I found only the debian kernel boot loader. After some try I figured it out, if it needs to updated run the command update-grub.  Run this command on live machine. Also check where the master boot record is pointed and run the update command.

By this the grub will read the partition table re-generate the grub.cfg as below.

cyclotron:~# update-grub
Generating grub.cfg ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-2.6.32-5-686
Found initrd image: /boot/initrd.img-2.6.32-5-686
Found linux image: /boot/vmlinuz-2.6.26-2-686
Found initrd image: /boot/initrd.img-2.6.26-2-686
Found linux image: /boot/vmlinuz-2.6.26-1-686
Found initrd image: /boot/initrd.img-2.6.26-1-686
Found Ubuntu 10.04.2 LTS (10.04) on /dev/sda5
done

Thursday, December 16, 2010

Debian Etch Sources List Archive

Hello

As we all know, Debian Etch has been no longer supported since feb 2010. But still some machines might be running Debian Etch(Upgradation not feasible). If your searching for any source to install packages to your machine. Ass this below sources in to your sources.list file.

# vim /etc/apt/sources.list

deb http://archive.debian.org/debian/ etch main contrib non-free

# apt-get update

# apt-get install

Enjoy...


How to Restrict postfix recipient in zimbra

Restrict postfix recipient in zimbra

This will show how you can modify postfix to restrict who can send to certain address in your domain such as distribution like team@domain.com.

These change will most likely not persist between upgrades!!!

zimbra/conf/postfix_recipient_restrictions.cf. Also permissions on files created in /opt/zimbra/postfix/conf/ will be changed.

  • Create permitted sender list as zimbra user under /opt/zimbra/postfix/conf/
permitted_sender List :- This file contains domains list OR User mail list, Only protected senders can send mail to this domains OR users.

# vim /opt/zimbra/postfix/conf/permitted_senders

localhost                         OK
myhost.com                    OK
mydomain.com                OK
username@domain.com   OK
  • Create protected recipient file as zimbra user under /opt/zimbra/postfix/conf/
protected_recipients :- This file contains email address that can only receive from permitted senders

# vim /opt/zimbra/postfix/conf/protected_senders

myteam@domain.com                 permitted_senders_list
protect_users@domain.com         permitted_senders_list

  • Include the important setting to /opt/zimbra/postfix/conf/main.cf
permitted_senders_list=check_senders_access hash:/opt/zimbra/postfix/conf/permitted_senders, reject
smtpd_restriction_classes = permitted_senders_list,local_only



FYI :- The changes in main.cf will not survive after the upgrade of zimbra.
  • Now add the this restriction on the top of all line.
# vim /opt/zimbra/conf/postfix_recipient_restrictions.cf
check_recipient_access hash:/opt/zimbra/postfix/conf/protected_recipients
  • Reload the settings
/opt/zimbra/postfix/sbin/postmap /opt/zimbra/postfix/conf/permitted_senders
/opt/zimbra/postfix/sbin/postmap /opt/zimbra/postfix/conf/protected_recipients
/opt/zimbra/postfix/sbin/postmap /opt/zimbra/postfix/conf/postfix_recipient_restrictions.cf

/opt/zimbra/postfix/sbin/postfix  reload

FYI :- This configuration can also used in normal postfix..