Archive

Posts Tagged ‘debian’

Debian squeezy on toshiba satellite L30

February 19, 2011 Leave a comment

I install a Debian squeezy on my notebook. I had some problems.

First with audio and second with compiz.

Sound is easy to fix simple install pulseaudio package.

#apt-get install pulseaudio

 

With second problem (with compiz) i spent some time to find solution.

I found it on the debian forum, all whats we need to do is to install a package named firmware-linux-nonfree.

#apt-get install firmware-linux-nonfree

After that if you execute compiz –replace compiz should run normally.

Advertisements
Categories: Uncategorized Tags: , , ,

Local Repository Ubuntu/Debian

September 4, 2010 Leave a comment

Sometimes we dont want download all needed packages from web and installing each deb file and all dependencies disturb us.
We need a apt-get repository locally in example on USB disk, i show how make it.
first we need dpkg-dev package:

sudo apt-get install dpkg-dev

next we need a folder in example /home/user/REPO
and all debs file we need put to that folder.

cp /var/cache/apt/archives/*.deb /home/user/REPO/

or move it:

sudo mv  /var/cache/apt/archives/*.deb /home/user/REPO/

Now we need to build an index of all packages (Packages.gz)

cd /home/user/

sudo dpkg-scanpackages REPO /dev/null | gzip > REPO/Packages.gz

Our repository is ready to add to sources.list
Add below line to begin of /etc/apt/sources.list

deb file:/home/user REPO/

And update a packages by sudo apt-get update

Sometimes apt download files from web instead take it locally.

To avoid this add below lines to /etc/apt/apt.conf (create it probably not exist yet)

APT {
Get {
AllowUnauthenticated “true”;
};
};

Thats should be all. 🙂

Categories: Uncategorized Tags: , , ,

Debian Realtek sound card

September 3, 2010 Leave a comment

I yesterday install a Debian Lenny and my sound card in Toshiba notebook doesn’t not work.

If someone had/have the same problem its simple to fix it.

You must have 2.6.24 kernel installed and you need to configure ALSA by:

#alsaconf

# char mean you need to run command as root (su first)

When alsaconf complete configuring alsa, you need to add below line to /etc/modprobe.d/alsabase

options snd-hda-intel model=toshiba

and restart PC. Sound now should work on builtin speakers and via jack

If you have Asus notebook try replace toshiba with asus, should work too.

(dont forget to run alsamixer and setup volumes)

My aplay -l output

orneo@debian:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: ALC861VD Analog [ALC861VD Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
orneo@debian:~$

You should have similar output.

Categories: Uncategorized Tags: , ,

(G)vim editor

September 1, 2010 Leave a comment

Vim is a great editor for many platform (linux/windows/mac), can highlight many of programming languages.
Vim have a plugin system. Vim isn’t a ‘normal’ editor, vim support many modes of editing.
You need to learn Vim before use, this can be irritate. Who use first time a vim, never change it to other editor.

Screenshot

If you want try it and you use Ubuntu/Debian as your OS, simple execute in console:

sudo apt-get install vim-gtk

otherwise visit HomePage and download file for you system.

Categories: None Tags: , , ,

Creating DEB installer files from python source

September 1, 2010 Leave a comment

How create a deb file from python source? its easy lets make it with 6 simple steps.

We need to add to main python script following lines:


import os

if os.path.isdir('modules'): MODULES_PATH = os.path.join(os.curdir, 'modules')
else: MODULES_PATH = '/usr/share/<projectname>/modules/'

Each step need to run command in console then lets open console and….

1) mkdir myproject
2) mkdir myproject/DEBIAN
3) touch myproject/DEBIAN/control
4) gedit myproject/DEBIAN/control
and paste to this file

Package: packagename
Version: 1.4.24-4
Section: tools
Priority: optional
Architecture: i386
Depends:
Suggests:
Conflicts:
Replaces:
Installed-Size: 76
Maintainer: your name <email@domain.com>
Description: <desctiptions>

5. Create folders structure for your application inside your project directory in example:

myprojct/usr/
myprojct/usr/bin/    (put here your script or binary files)
myprojct/usr/share/
myprojct/usr/share/<projectname>/modules/    (put here your modules)
myprojct/usr/share/doc/<projectname>/    (put here your documentation)

and others folder if needed. Replace <projectname> with your project name.

6. Build deb file:

dpkg -b myproject

Deb file is ready to install.

Categories: Uncategorized Tags: , , ,

Installing Debian from USB flash drive

August 31, 2010 Leave a comment

Needed files you can find here download vmlinuz and initrd.gz from hd-media directory.

1) Run as root to format usb flash to FAT (all data will be lost)

mkdosfs /dev/sdX1

where /dev/sdX1 should be your USB flash drive e.g. /dev/sdb1

2) Run as root to install syslinux on usb

syslinux /dev/sdX1

3) Mount usb and copy there ISO image file and initrd.gz and vmlinuz
4) Create and enter to syslinux.cfg on root folder of USB flash drive

default vmlinuz
append initrd=initrd.gz

5) USB is ready to install Debian from it.

Categories: Uncategorized Tags: ,