Posts Tagged ‘debian’

How-to Install Debian 6.0 (squeeze) Linux on HP 620 notebook

5 August 2011

HP 620. It’s a great notebook for business. Hp620 is not the best about performance but it’s fast – really fast! with linux – and it’s ok with it’s easy and clean design. Its hardware is very good (almost everything is manufactured by Intel) and it’s cheap!

Above all, you can also buy it pre-installed with Linux (Suse Enterprise Desktop)!

If you want Debian just install Debian 6.0 (Squeeze) with Desktop System, Notebook and Basic System files.
After installation run these commands from shell (as root).

cd ~
mv /etc/apt/sources.list /etc/apt/sources.list.original
touch /etc/apt/sources.list
echo "deb http://ftp.it.debian.org/debian/ squeeze main contrib non-free" >> /etc/apt/sources.list
echo "deb-src http://ftp.it.debian.org/debian/ squeeze main contrib non-free" >> /etc/apt/sources.list
echo "deb http://ftp.it.debian.org/debian/ squeeze-updates main contrib non-free" >> /etc/apt/sources.list
echo "deb-src http://ftp.it.debian.org/debian/ squeeze-updates main contrib non-free" >> /etc/apt/sources.list
echo "deb http://security.debian.org/ squeeze/updates main contrib" >> /etc/apt/sources.list
echo "deb-src http://security.debian.org/ squeeze/updates main contrib" >> /etc/apt/sources.list
apt-get update
apt-get install flashplugin-nonfree icedove icedove-l10n-it ntp wireless-tools
apt-get --yes install linux-headers-2.6-686 build-essential module-assistant pulseaudio firmware-ralink
m-a update && m-a prepare
m-a a-i -t alsa-source
echo "acpiphp" >> /etc/modules
echo "ata_piix" >> /etc/modules
echo "cfg80211" >> /etc/modules
echo "iTCO_vendor_support" >> /etc/modules
echo "iTCO_wdt" >> /etc/modules
echo "pci_hotplug" >> /etc/modules
echo "rt3090sta" >> /etc/modules
echo "snd_mixer_oss" >> /etc/modules
echo "snd_pcm_oss" >> /etc/modules
echo "speedstep_lib" >> /etc/modules
echo "tpm" >> /etc/modules
echo "tpm_bios" >> /etc/modules
echo "tpm_tis" >> /etc/modules
echo "auto lo" > /etc/network/interfaces
echo "iface lo inet loopback" >> /etc/network/interfaces
echo "allow-hotplug eth0" >> /etc/network/interfaces

Now you have a perfect business laptop with browser (firefox/iceweasel), email client (thunderbird/icedove) and openoffice (and whatever you want to install).

All hardware now works very well without any problem.
Enjoy.

debian, grub-pc and /usr/sbin/grub-probe: error: unknown filesystem.

5 February 2010

apt-get dist-upgrade and… BOOM!!!

Configurazione di grub-pc (1.98~20100128-1)…
/usr/sbin/grub-probe: error: unknown filesystem.
Auto-detection of a filesystem module failed.
Please specify the module with the option `–modules’ explicitly.
Generating grub.cfg …
/usr/sbin/grub-probe: error: unknown filesystem.
dpkg: errore nell’elaborare grub-pc (–configure):

Not good.

Bug Report and my solution, downgrade to 1.98~20100115-1:

apt-get install grub-common= grub-pc=1.98~20100115-1 grub2=1.98~20100115-1
(…)
Installation finished. No error reported.

Have a nice day!

How to downgrade rails version on debian

1 October 2008

If you want to downgrade rails (aka install an old version of rails) on debian first of all install rails gems. Execute next command as root:

apt-get install rubygems

Remove rails package of debian if it’s actually installed

apt-get remove rails

Now install rails by gems utility and force the right version. Example:

gem install -v=2.0.2 rails --include-dependencies

Now put gems bin folder on bash PATH. Edit /etc/bash.bashrc

export PATH=$PATH:/var/lib/gems/1.8/bin

Note: version of rubygems may be different, check your right PATH to gems bin folder

If all goes right now you can use your preferred rails version. Note, rails command from gems is little different between the script that debian package installs. Just check params: call rails command without params.

$ rails
Usage: /var/lib/gems/1.8/bin/rails /path/to/your/app [options]
Options:
-r, --ruby=path Path to the Ruby binary of your choice (otherwise scripts use env, dispatchers current path).
Default: /usr/bin/ruby1.8
-d, --database=name Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite2/sqlite3).
Default: mysql
-f, --freeze Freeze Rails in vendor/rails from the gems generating the skeleton
Default: false
Rails Info:
-v, --version Show the Rails version number and quit.
-h, --help Show this help message and quit.
General Options:
-p, --pretend Run but do not make any changes.
--force Overwrite files that already exist.
-s, --skip Skip files that already exist.
-q, --quiet Suppress normal output.
-t, --backtrace Debugging: show backtrace on errors.
-c, --svn Modify files with subversion. (Note: svn must be in path)

That’s all folks! :)

Intel Corporation PRO/Wireless 4965 AG or AGN (HP notebook dv2690el / Debian / Linux)

27 September 2008

Hi! I’m posting to release a fast and furious tutorial to bring your wireless lan active in a few minutes.

I assume that you have a kernel release >= 2.6.24. The iwlwifi driver (we need it) has been merged into mainline kernel since 2.6.24.
Run uname -r command to know your kernel version.

Ex.
$ uname -r
2.6.26-1-686

If your kernel is < 2.6.24, you have to upgrade your kernel.
If your kernel is >= 2.6.24 simply load iwlwifi module with modprobe as root user (to become root user use su command at command line and insert root’s password):

modprobe iwlwifi

Is your wlan led turned blue? It’s right. Your wlan is active.
Now you can configure it with ifconfig or you can create an adeguate configuration in /etc/network/interfaces file. If you need help simply use man interfaces command.

Uhm, but I think you need a basic config to use at home with WPA encryption… you don’t have time to read / search / study… that’s so strange!! :D

So that’s it: edit /etc/network/interfaces (you need root privileges) and put this at the end of file.

#IW
# uncomment next row if you want your wlan active at startup
#auto wlan0
iface wlan0 inet dhcp
pre-up (echo 'Modprobing iwl4965') && /sbin/modprobe iwl4965
post-down (echo 'Removing iwl4965') && /sbin/modprobe -r iwl4965
wpa-ssid YOURNETNAMEAKASID
wpa-key_mgmt WPA-PSK
wpa-proto WPA
wpa-pairwise TKIP
wpa-group TKIP
wpa-psk "yourpassphrase"
wpa-driver wext

With this config you can easy bring up/down your wlan with ifup wlan0 or ifdown wlan0 as root user.

Note: in order to use wpa you need to install a package called wpasupplicant. Install it with apt-get install wpasupplicant as root user.

Have a nice day!

HP notebook dv2690el and linux and… WOW!!!

15 September 2008

Hp dv2690el (dv2000 series) is my new laptop.

dv2690el notebook and linux debian

dv2690el notebook and linux debian

Microsoft Vista is too much slow for a pc like this… Who code Vista think to users or think to Hardware Productors? I can’t belive that a new machine equipped with centrino duo and 2gb ram may be slow like it may be with Vista… like a pentium II and XP four years ago…

So, my friend, I’m going on linux with my preferred distro: Debian. And I’m going like a rocket!!!
When I bought this notebook I thinked «I hope that linux works with it».
But now, with debain unstable and kernel 2.6.26-1-686 I think: «Wow!!! It’s completly ready to work after installation!!!». Webcam works without any configuration, also with Skype. alsaconf configure audiocard in no more than 30s, nvidia video card has native linux drivers directly from productor, wlan is active immediatly and without problems (see my dv2690el linux wireless how-to), touchpad it’s right, eth0 works without problems during installation (NETinst) and after, k3b burn CDs and DVDs whitout stop, special keys work immediatly with xmodmap and remote control too… simply wonderful!!!

You like linux and want a new notebook? dv2690el it’s a good choice!

To use special keys and remote control put these rows in a new file:

keycode 162 = XF86AudioPlay
keycode 164 = XF86AudioStop
keycode 144 = XF86AudioPrev
keycode 153 = XF86AudioNext
keycode 174 = XF86AudioLowerVolume
keycode 176 = XF86AudioRaiseVolume
keycode 160 = XF86AudioMute

Name this file .Xmodmap and put it in your home (~) directory. Reload X or type xmodmap ~/.Xmodmap.

Postfix and lastest Debian/Testing Mysql 5 upgrade

24 September 2007

Today I have upgraded my mail server.

As usual I did

#apt-get update #apt-get dist-upgrade

Always goes well but after some minutes I was in panic because my postfix server did not receive messages as usual.

There is some log messages:

Sep 24 06:44:14 localhost postfix/trivial-rewrite[25002]: fatal: mysql:/etc/postfix/mysql_virtual_alias_maps.cf(0,lock|fold_fix): table lookup problem
Sep 24 06:44:14 localhost postfix/pickup[24913]: 1BE73105714: uid=106 from=<logcheck>
Sep 24 06:44:14 localhost postfix/cleanup[24961]: warning: 1BE73105714: virtual_alias_maps map lookup problem for root@sviluppoweb.eu 

With last upgrade the mantainer of mysql package has removed `old_passwords` row.

There isn’t a postfix package upgrade, so due to recovery I have enabled old password.

Open your /etc/mysql/my.cnf and add this row

old_passwords = true

under `mysqld` section.

Good luck and see you soon!

Giulio


Follow

Get every new post delivered to your Inbox.