Hi..
Question : How can i find out hard drive information in linux box.
Install smartmontools on linux box. On Debian & Ubuntu
Follow the instructions :
apt-get install smartmontools
vim /etc/defaults/smartmontools
Uncomment the follwing line
# uncomment to start smartd on system startup
start_smartd=yes
start the service, /etc/init.d/smartmontools start
smartctl -i /dev/hda or dev/sda (Gives you information about harddrive model no, serial no/ vendor details)
If its showing any errors like this "SMART support is: Unavailable"
Run this smartctl -i -d /dev/hda or /dev/sda (This should work).
To know detailed information about harddrive smartctl --all /dev/hda
check man smartctl to know more.
Wednesday, December 31, 2008
Saturday, December 27, 2008
Hp LaserJet 1020 On debian
How To Connect Printer
Configure For Debian & Ubuntu
apt-cache search build-essential
wget http://foo2zjs.rkkda.com/foo2zjs.tar.gz
tar -zxvf foo2zjs.tar.gz
cd foo2zjs
make
edit this file like this
###Common For UBUNTU & DEBIAN###
vim foo2zjs/getweb
http://foo2zjs.rkkda.com/firmware sihp1020.tar.gz \
save&exit
./getweb 1020
make install install-hotplug
Configure For Debian :
---------------------
DEBIAN NOTES
------------
Follow the steps to install printer on debian etch:-
Install build-essential, foomatic-filters, cupsys FIRST:
$ su
# apt-get install build-essential
# apt-get install foomatic-filters
# apt-get install cupsys
$ wget -O foo2zjs.tar.gz http://foo2zjs.rkkda.com/foo2zjs.tar.gz
$ tar zxf foo2zjs.tar.gz
$ cd foo2zjs
$ make
$ ./getweb 1020
OR other printer
$ su
# make install install-hotplug cups
After complting the steps edit the following files :
vim /etc/cups/clients.conf
Servername localhost
Set the (client.conf) if its not there in the client machine.
For client machines give IP of the printer connected machine insted of (localhost)
Friday, December 26, 2008
Installation QEMU On debian & ubuntu.
INSTALLATION Of QEMU
1. To install "qemu" on a debian/ubuntu machine follow the steps as mentioned :-
apt-get install qemu, qemu-launcher.
a. To install "qemu" using cd.
Login to admin account got to synaptic package manager, Search "qemu" install it.
2. After installing qemu, create a disk drive image in a separate path.
To create disk image type this command :-
dd of=hd.img bs=1024 seek=2000000 count=0
The space can be increased by mentioning seek=(), mention the space in bytes.
3. After creating disk image run qemu-launcher.
4. In qemu-launcher, Enable (Use Cdrom), [Bootable Disk = Cdrom (if your booting form cdrom)]
5. Mention the hard disk image (Hard disk 0 : /path/hd.img)
6. Disable the Acceleration in 'Emulator'.
7. Mention the ram size : ( Default will be 128mb), Make it double.
8. Once you done with mentioned steps, Click Launch, It will start booting from
cd & installation screen will be appered.
Enjoy playing with qemu...... :-)
Wednesday, December 24, 2008
Restricting users to send mails to off-site destinations in Postfix & Zimbra
Hi...
Configuring Postfix in a way that some users can only send mails to internet and some users not. The users without internet access should get bounce message.
This steps can also use in zimbra
Run following commands :
/opt/zimbra/postfix/sbin/postmap:~ /opt/zimbra/postfix/conf/restricted_senders
/opt/zimbra/postfix/sbin/postfix reload
Configuring Postfix in a way that some users can only send mails to internet and some users not. The users without internet access should get bounce message.
This steps can also use in zimbra
/etc/postfix/main.cf:
smtpd_recipient_restrictions = check_sender_access hash:/etc/postfix/restricted_senders
...other stuff...
smtpd_restriction_classes = local_only
local_only =
check_recipient_access hash:/etc/postfix/local_domains, reject
/etc/postfix/restricted_senders:
foo@domain local_only
bar@domain local_only
/etc/postfix/local_domains:
this.domain OK matches this.domain and subdomains
that.domain OK matches that.domain and subdomains
Once after adding email id restricted_senders, the database should get updated.Run following commands :
/opt/zimbra/postfix/sbin/postmap:~ /opt/zimbra/postfix/conf/restricted_senders
/opt/zimbra/postfix/sbin/postfix reload
Kannada On Debian
Hi..
Installation Of scim and kannada on debian.
scim-uim scim-tables-additional scim-modules-table scim-m17n scim-gtk2-immodule scim uim-xim uim-utils uim-m17nlib uim scim-uim
Download kannada fonts ( Use Kedage)
1. Install ttf-kannada-fonts using apt-get
2.unzip the downloaded fonts file, run following commands :
3. rm /usr/share/fonts/truetype/ttf-kannada-fonts/
4. Copy the unzipped .ttf fonts to /usr/share/fonts/truetype/ttf-kannada-fonts/
5. run fc-cache
6. run scim -d on your "run application"
Installation Of scim and kannada on debian.
scim-uim scim-tables-additional scim-modules-table scim-m17n scim-gtk2-immodule scim uim-xim uim-utils uim-m17nlib uim scim-uim
Download kannada fonts ( Use Kedage)
1. Install ttf-kannada-fonts using apt-get
2.unzip the downloaded fonts file, run following commands :
3. rm /usr/share/fonts/truetype/ttf-kannada-fonts/
4. Copy the unzipped .ttf fonts to /usr/share/fonts/truetype/ttf-kannada-fonts/
5. run fc-cache
6. run scim -d on your "run application"
Subscribe to:
Posts (Atom)