Skip to main content

Posts

Showing posts from 2012

Problem setting up HP LaserJet P1102 on Linux

If you have problem setting up driver for HP LaserJet P1102, it most probably because of Smart Install feature of the device. You can see it in dmesg output:


[353279.710023] usb 6-1: new high-speed USB device number 22 using ehci_hcd
[353279.824940] usb 6-1: New USB device found, idVendor=03f0, idProduct=002a
[353279.824944] usb 6-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[353279.824947] usb 6-1: Product: HP LaserJet Professional P1102
[353279.824950] usb 6-1: Manufacturer: Hewlett-Packard
[353279.824952] usb 6-1: SerialNumber: 000000000Q84CF03SI1c
[353279.826253] scsi16 : usb-storage 6-1:1.0
[353280.838094] scsi 16:0:0:0: CD-ROM            HP       Smart Install    1.0  PQ: 0 ANSI: 2
[353280.868209] sr1: scsi3-mmc drive: 0x/0x caddy
[353280.868365] sr 16:0:0:0: Attached scsi CD-ROM sr1
[353280.868452] sr 16:0:0:0: Attached scsi generic sg2 type 5

it is useful for Windows users as it will create a virtual cdrom drive in order to install the printer's driver. For …

Postfix: smtp_address_preference

For mailserver/system  administrator :

If your mailserver has problem to connect to ipv6 address (especially if your mailserver doesn't support it) and throw errors something like this:
Dec 10 00:05:57 localhost postfix/smtp[16925]: connect to mta7.am0.yahoodns.net[2404:160:0:f:0:2:42c4:7621]:25: Network is unreachable
Dec 10 00:05:57 localhost postfix/smtp[16925]: connect to mta6.am0.yahoodns.net[2404:160:0:f:0:1:6288:d9ca]:25: Network is unreachable
Dec 10 00:05:57 localhost postfix/smtp[16925]: connect to mta7.am0.yahoodns.net[2404:160:0:f:0:2:42c4:7624]:25: Network is unreachable
Dec 10 00:05:57 localhost postfix/smtp[16925]: connect to mta6.am0.yahoodns.net[2404:160:0:f:0:1:43c3:a8e6]:25: Network is unreachable
Dec 10 00:05:57 localhost postfix/smtp[16925]: connect to mta6.am0.yahoodns.net[2404:160:0:f:0:1:42c4:7622]:25: Network is unreachable
then you may want to check the default smtp_address_preference parameter in main.cf. Most probably it is defaulted to ipv6 which is true o…

Migrating and upgrading mailserver

I have new and powerful server for mail server. So now I am in the process of migrating my mail data and settings to the new server. But it is not as simple as copying a directory. It involves many things. Luckily some of them, you can just copy to the new server.
I am most concerned with the mail messages as they contain important messages for day-to-day operations and conversations. I will tell you more after the migration is complete.
cheers,

changing manually wireless connection to be controlled by knetworkmanager

knetworkmanager is a Network Manager for KDE4. It is hated or liked by users and usually not in between. I personally like it although it has its fair share of bugs. But I like Mandriva's net_applet more. It is stable and more reliable. It is prefered by many Mandriva users. However, if you are stuck with recent problems (bug?) of perl in Mandriva Cooker like me, you are forced to use command line of wpa_supplicant or iwconfig or using gui application like knetworkmanager. 
In Mandriva, you can change which network manager control the wireless connection by changing the option in net_applet or you can manually change in file /etc/sysconfig/network-scripts/ifcfg-wlan0. If you want knetworkmanager in control of it, you just have to change this line to yes:

NM_CONTROLLED=yes

Connecting to wireless AP with WPA/2 security using wpa_supplicant

Recently, my cooker updated perl packages and it broke all of drak* family especially drakconf and net_applet. net_applet is the network manager for Mandriva in applet form. I can also use draknetcenter. Now the problem is I cant open net_applet and knetcenter due to this error: /usr/bin/perl: symbol lookup error: /usr/lib/libDrakX/auto/c/stuff/stuff.so: undefined symbol: Perl_Gthr_key_ptr So how do I connect to wireless AP? I dont know how to use iwconfig to connect to such AP or can I? After googling, I found a solution: wpa_supplicant. In Mandriva, I just have to run this command (as root): wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf & If you have setup the connection before with draknetcenter, you dont have to edit the file wpa_supplicant.conf. If not, you have to manually edit the file to suit your environment. it is heavily documented. 
Then you have to run dhclient to get IP address from the AP or other dhcp server:  dhclient wlan0
wlan0 is my wireless in…

Happy New Year and distros for router

Happy New Year everbody. Hope 2012 will be a great year for Linux. In 2011, I tested several distros for different purposes. For routers, I found several free distros that serve as a really good gateway for my network. Among others are:
Zentyal - this is the best distro for routers. Fully featured with webcache, url filtering, load balancing for multiple lines and has 32-bit and 64-bit version. It is based on Ubuntu.ClearOS - Also the best but it doesn't have 64-bit version (at the time of this writing. recently there's a 64-bit release but still in beta stage). Has many features as Zentyal. Based on Redhat.pfSense - this is not Linux-based. It is freeBSD-based firewall and router. It has bug with my servers pertaining to PCI-E. So I dumped it. It's good but the bug prevent it from being operational. Others: Untangle - didn't try it because the free version has no webcache feature.Zeroshell - tried it but a little awkward to use. So I chose Zentyal as my distro for my …