Posts Tagged Debian

How to maintenance debian/changelog file in a source package

Posted in Debian, Linux | No Comments »

Hi all,

After some time finally I will write a new post here.

Today a will write how to maintenance debian/changelog file in a source package.

= Configuring environment variables =

First you need export some environment variables.

EDITOR="vim"

DEBFULLNAME=”Ragner Magalhaes”

DEBEMAIL=”foo@ragner.org”

export DEBEMAIL DEBFULLNAME EDITOR

You can put these lines above in your .bashrc file

= To create a new debian/changelog file =

In the project’s directory just run

$ dch --create

To create a new debian/changelog file.

= To increment the Debian release number =

To increment the package release number run the follow command

$ dch -i -U -D "unstable"

So it will open the debian/changelog file to you  write some comments.

Thanks to Anderson Lizardo[http://lizardo.wordpress.com/] and Alvinho.

Debian nVidia Dual Head

Posted in Debian | No Comments »

Linux + Debian + nVidia + Dual Head + VGA + DVI

Hi all,

Jus a cat in my /etc/X11/xorg.conf to show you how to do Dual Head in Debian.

$ cat /etc/X11/xorg.conf

Section “Module”
Load “bitmap”
Load “dbe”
# Without “dri”
Load “ddc”
Load “extmod”
Load “freetype”
Load “glx”
Load “int10″
Load “v4l”
Load “vbe”
EndSection

Section “Device”
Identifier “nVidia Corporation NV34GL [Quadro FX 500/600 PCI]”
Driver “nvidia”
BusID “PCI:1:0:0″
# Dual Head
Option “TwinView” “True”
EndSection

Section “Monitor”
Identifier “DELL 1908FP”
Option “DPMS”
HorizSync 30-65
VertRefresh 50-75
EndSection

Section “Screen”
Identifier “Default Screen”
Device “nVidia Corporation NV34GL [Quadro FX 500/600 PCI]”
Monitor “DELL 1908FP”
DefaultDepth 16
Option “DPMS”
# Dual Head
Option “TwinView” “true”
# Sync/Refresh for each monitor
Option “HorizSync” “DFP-0: 30-65; DFP-1: 30-65″
Option “VertRefresh” “DFP-0: 50-75; DFP-1: 50-75″

# The second monitor of the right side
Option “TwinViewOrientation” “DFP-1 RightOf DFP-0″
# Screen size to each monitor
Option “MetaModes” “DFP-0: 1280×1024, DFP-1: 1280×1024″
# Monitor types
Option “ConnectedMonitor” “lcd,lcd”
SubSection “Display”
Depth 16
Modes “1280×1024″ “1152×864″ “1024×768″ “800×600″ “640×480″
EndSubSection
SubSection “Display”
Depth 24
Modes “1280×1024″ “1152×864″ “1024×768″ “800×600″ “640×480″
EndSubSection
EndSection

Section “ServerLayout”
Identifier “Default Layout”
Screen “Default Screen”
InputDevice “Generic Keyboard”
InputDevice “Configured Mouse”
EndSection

Reference:

http://umgeher.wordpress.com/2006/09/01/dual-head-usando-nvidia

Linux command to set the screen size

Posted in Debian | No Comments »

Hi all,
today I will teach how to set the screen size using xrandr Linux command.

To find out what sizes are available, run:
$ xrandr -q
SZ: Pixels Physical Refresh
*0 1024 x 768 ( 271mm x 203mm ) *75 70 60
1 800 x 600 ( 271mm x 203mm ) 75 72 60 56

To set the screen size to an available size, run:
$ xrandr -s 800×600

Thanks,
God bless you … [:P]

Debian Ad Hoc Wireless Networking

Posted in Debian | No Comments »

The following example uses eth1 for the wifi interface though this may be wlan0, ath0 or something else in your case.

Preparation

Ensure that network manager has been stopped and then bring the interface down.

sudo /etc/dbus-1/event.d/25NetworkManager stopsudo ifdown eth1
Configuration
  1. Switch the card into ad hoc mode
  • sudo iwconfig eth1 mode ad-hoc
  1. Set the channel/frequency that you want to use.
  • sudo iwconfig eth1 channel 11
  1. Add the name (ssid) for the network you want to create/join. Use single quotes if there is a space in the name.
  • sudo iwconfig eth1 essid 'name'
  1. Add a WEP encryption key
  • sudo iwconfig eth1 key 1234567890
Activation
  1. Bring the interface back up
  • sudo ifconfig eth1 up
  1. Start dhclient to get an address
  • sudo dhclient eth1
  1. If you want to do it manually, you will have to make up an IP address.
  • sudo ifconfig eth1 10.0.0.1 netmask 255.255.255.0

echo 1 > /proc/sys/net/ipv4/ip_forward

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

Reference

https://help.ubuntu.com/community/WifiDocs/Adhoc

GPG key error at apt-get

Posted in Debian | No Comments »

Package dependences:

# apt-get install debian-keyring debian-archive-keyring

If you get o follow error from an unofficial repository:

W: GPG error: ftp://ftp.ragner.net etch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 08GC463D1F41D098

Take the GPG key

# gpg --keyserver subkeys.pgp.net --recv-keys 08GC463D1F41D098

and add to apt

# gpg --export --armor 08GC463D1F41D098 | sudo apt-key add -

End

Ploblem with start up apache2 on debian etch

Posted in Debian | No Comments »

If you run /etc/init.d/apache2 start but the apache2 do not start.
A solution can to be
edit /etc/default/apache2 and change NO_START to be 0

How to configure Debian Brazilian locale

Posted in Debian | No Comments »

Configure your xserver, here is the xorg:
# dpkg-reconfigure xserver-xorg

My keyboard layout “us” and own variant “us_intl”
$ cat /etc/X11/xorg.conf

Section “InputDevice”
Identifier “Generic Keyboard”
Driver “kbd”
Option “CoreKeyboard”
Option “XkbRules” “xorg”
Option “XkbModel” “pc104″
Option “XkbLayout” “us”
Option “XkbVariant” “us_intl”
EndSection

Now configure your locales and select the default:
# dpkg-reconfigure locales

Reboot your system:
# init 6

Printing with multiple pages

Posted in Debian | No Comments »

First, put n pages at each leaf with mpage comman:

$ mpage -n a.ps > b.ps

* n can to be 2, 4 or 8

To reverse the pages:
$ pstops "2:0@1.0(-0.00cm,0.0cm),1U@1.0(21cm,29.7cm)" b.ps > c.ps

Configuring Postfix to do smtp/relay

Posted in Debian | No Comments »

# aptitude install postfix sasl2-bin

Edit /etc/postfix/main.cf

#
# Transport com relay autenticado
#

smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/saslpass


Edit /etc/postfix/saslpass

smtp.servername userlogin:password

Then, run:

# postmap /etc/postfix/saslpass
# postfix reload

References:

http://www.postfix.org/

Linux Configuring Wireless Connection

Posted in Debian | No Comments »

Install the wireless tools:

# aptitude install wireless-tools

Scanning wireless network:

# iwlist eth1 scanning

eth1 Scan completed :
Cell 01 – Address: 00:13:60:17:3D:60
ESSID:”netid”
Protocol:IEEE 802.11b
Mode:Master
Channel:1
Encryption key:off
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s
Quality:50 Signal level:0 Noise level:0
Extra: Last beacon: 204ms ago

# iwconfig eth1 essid netid

# dhclient eth1