Friday, July 24, 2009

Picasa 3 on Fedora 11 network problem

Was getting this message:

Login failed. Please check that you are connected to the internet ...

Log:
less /root/.google/picasa/3.0/drive_c/Documents and Settings/root/Local Settings/Application Data/Google/Picasa2

Request made via proxy
Post data size: 109
[140187] id 3: Error: HttpOpenRequest failed (12157)
[140188] id 3: Failed to establish connection. will retry if possible
[140189] id 3: Stream summary:
POST request: https://www.google.com/accounts/ClientAuth (0)
Modified request headers:
Added header: Content-Type: application/x-www-form-urlencoded; charset=utf-8
Added header: Accept-Encoding: gzip

Solution:
Copied from here.

yum install wine
cp /usr/lib/wine/wininet.dll.so /opt/google/picasa/3.0/wine/lib/wine/wininet.dll.so

Sunday, June 28, 2009

FiWi on Fedora 11 on Dell Inspiron 1525 (BCM4312 / Dell Wireless 1395 adapter)

# check if it's the correct version
lspci -knn | grep -i -e network -e Wireless

from http://www.broadcom.com/support/802.11/linux_sta.php download and extract 2.6.29 kernel patch and 32 or 64-bit driver and then run

patch -p1 < patch_2.6.29_kernels
make -C /lib/modules/`uname -r`/build M=`pwd` clean
make -C /lib/modules/`uname -r`/build M=`pwd`
rmmod ndiswrapper b43 ssb bcm43xx b43legacy
# change the following line to reflect your kernel
cp wl.ko /lib/modules/2.6.29.5-191.fc11.i686.PAE/kernel/drivers/net/wireless/
depmod
# and now comes the climax - WiFi led lits up
modprobe wl

Saturday, April 25, 2009

Mailto links to Google Apps Gmail in FF3

http://techblog.appirio.com/2008/08/defaulting-your-mailto-links-to-google.html
http://www.addictivetips.com/internet-tips/easiest-way-to-set-gmail-as-default-firefox-3-mail-client/

Go to
about:config
and set the following settings to true:
network.protocol-handler.external.mailto
gecko.handlerService.allowRegisterFromDifferentHost

When on gmail page, go to (replace lichner.name with your domain):
javascript:window.navigator.registerProtocolHandler('mailto','https://mail.google.com/a/lichner.name/mail/?extsrc=mailto&url=%s','Google Apps')

Click Add Application button that should appear in top right corner.

If the button doesn't appear, make sure that quotes are not replaced with smart quotes. If it still wouldn't work, try it in save mode:
firefox -safe-mode

Thursday, January 22, 2009

Cobbler on CentOS 5

http://fedoraproject.org/wiki/EPEL/FAQ#How_can_I_install_the_packages_from_the_EPEL_software_repository.3F

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm


yum install cobbler
service cobblerd start


web Interface
https://fedorahosted.org/cobbler/wiki/CobblerWebInterface
vim /etc/cobbler/modules.conf
#change
[authentication]
module = authn_configfile

- might use default password or change it to cobbler with:
htdigest /etc/cobbler/users.digest "Cobbler" cobbler

Run with:
http://127.0.0.1/cobbler/web
username: cobbler, password: cobbler

# the web interface didn't work till I created this file and added entry for cobbler in hosts file
vim /etc/httpd/conf.d/cobbler_my.conf

<VirtualHost *:80>
ServerName cobbler
DocumentRoot /var/www/cobbler
</VirtualHost>

service httpd restart
service cobblerd restart


vim /etc/cobbler/settings
#change
next_server: '192.168.1.1'
server: '192.168.1.1'
manage_dhcp: 1

vim /etc/xinetd.d/tftp
#change
disable = no

vim /etc/cobbler/dhcp.template
#edit
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;
option domain-name-servers 192.168.1.1;
option subnet-mask 255.255.255.0;
range dynamic-bootp 192.168.1.100 192.168.1.254;
filename "/pxelinux.0";
default-lease-time 21600;
max-lease-time 43200;
next-server $next_server;
}


service cobblerd restart
service xinetd start
service dhcpd start

chkconfig cobblerd on
chkconfig xinetd on
chkconfig dhcpd on



#if got errors with dhcpd, repeat:
vim /etc/cobbler/dhcp.template
cobbler sync
service dhcpd start
less /var/log/messages

ks menu
# yet to be done - don't want a menu
# might add systems:
#00:0c:29:46:17:d1 i386
#00:0c:29:70:55:9a x86_64

#edit

vim /etc/cobbler/pxedefault.template

download image
#make download to folder /isos if possible or after download move iso to /isos
rtorrent

ftp://ftp.iinet.net.au/linux/centos/5.2/isos/i386/CentOS-5.2-i386-bin-DVD.torrent
ftp://ftp.iinet.net.au/linux/centos/5.2/isos/x86_64/CentOS-5.2-x86_64-bin-DVD.torrent

mount iso image
mkdir -p /mnt/Centos52
mount -t auto -o loop /isos/CentOS-5.2-i386-bin-DVD.iso /mnt/Centos52
cobbler import --mirror=/mnt/Centos52 --name=CentOS-5.2-i386

#add extra repositories
cobbler repo add --name=CentOS-5.2-i386-UPDATES --mirror=ftp://ftp.iinet.net.au/linux/centos/5.2/updates/i386/ --priority=40 --createrepo-flags="-c cache"

#!schedule daily sync!