Monday, August 07, 2006

open a port

Just in case you need it in the future, I use this for opening a port:
Code:
iptables -I INPUT -p tcp --dport $1 -j ACCEPT
Where $i is the port number you wish to open.

Like the others said, it sounds to me like telnet is not even running, and the connection refused is because there isn't actually a service to connect to.

backup tomboy notes

[tomboy-list] Backup files:

Hi Shannon,

Tomboy stores all your notes in ~/.tomboy/*.note. It keeps a few simple
settings in GConf, but nothing major.

-Alex

On Fri, 2004-12-10 at 20:43 +0000, Shannon Baker wrote:
> I move data and reinstall on my machines fairly frequently but don't want to
> lose my Tomboy notes. What files do I need to back up to transfer them to
> another machine? Is there any special process or procedure to reimport them
> on the new machine?
>
> Thanks
>
> Shannon T. Baker
>

linux equivalent

c:\documents and settings\start menu

/usr/share/applications/

-----------------

system-wide startup folder

/etc/xdg/autostart

linux

c:\documents and settings\start menu

/usr/share/applications/

-----------------

system-wide startup folder

/etc/xdg/autostart

Sunday, August 06, 2006

system wide startup programs

aiken@aiken-laptop:/etc/xdg/autostart$ ls
compiz.desktop gnome-volume-manager.desktop
gnome-power-manager.desktop update-notifier.desktop
aiken@aiken-laptop:/etc/xdg/autostart$
this solved the gset-compiz settings problem

aiken@aiken-laptop:~/.gconf/apps$ chmod 777 %gconf.xml
aiken@aiken-laptop:~/.gconf/apps$
/etc/gconf/gconf.xml.defaults$ sudo gedit %gconf-tree.xml
Howto Install xorg-aiglx + compiz (packages) - Ubuntu Forums:

Howto Install xorg-aiglx + compiz (packages)

All packages as based on Kristian Høgsberg fixes, forums compiz packages and official packages.

They provide to get compiz run on aiglx.

I'm running it on my i915 laptop, and the performance is actually quite impressive. For those people using NVidia should continue to use Xgl server. compiz-aiglx don't work on this card !

1. Download packages

aiglx :
First you should add reggaemenu compiz repository in you source.list
Code:
deb http://xgl.compiz.info/ dapper aiglx
deb http://xgl.compiz.info/ dapper main

and update all deb
Code:
sudo apt-get update
sudo apt-get dist-upgrade

you should install latest dri modules packages :
Code:
sudo apt-get install linux-dri-modules-common linux-dri-modules-`uname -r`

if after a linux-restricted-modules or linux-image update you have some troubles, start this command to regenerate modules.dep :
Code:
sudo /sbin/ldm-manager

compiz:

compiz aiglx are now partially official, compiz-vanilla or compiz-quinn packages work now on xorg-aiglx. All compiz-aiglx packages are now deprecated, well first uninstall all compiz-aiglx packages

Code:
sudo aptitude purge compiz-aiglx compiz-aiglx-gnome
you can then either install compiz-vanilla packages :
Code:
sudo apt-get install compiz-vanilla-aiglx compiz-vanilla compiz-vanilla-gnome
or compiz-quinn packages:
Code:
sudo apt-get install compiz-quinn-aiglx compiz compiz-gnome

2. Configure Xorg

Good news you can rework in 24 depth mode
Edit your Screen section and modify your DefaultDepth
Quote:
DefaultDepth 24

Warning this options are necessary !

first activate dri,dbe, glx and all necessary modules like this :
Quote:
Section "Module"
# Load "GLcore"
Load "bitmap"
Load "ddc"
Load "dbe"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "type1"
Load "vbe"
EndSection

add Option "XAANoOffscreenPixmaps" and remove all other option in device section like this :
Quote:
Section "Device"
Identifier "Intel Corporation Intel Default Card"
Driver "i810"
Option "XAANoOffscreenPixmaps"
BusID "PCI:0:2:0"
EndSection

add AIGLX option in your ServerLayout section like this :
Quote:
Section "ServerLayout"
Option "AIGLX" "true"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Synaptics Touchpad"
EndSection

uncomment all dri section
Quote:
Section "DRI"
Mode 0666
EndSection


and you must have:
Quote:
Section "Extensions"
Option "Composite" "Enable"
EndSection

is required.


3. Configure gdm

Create or modify /etc/gdm/gdm.conf-custom to change your xorg server like this:
Quote:
[servers]
0=aiglx

[server-aiglx]
name=aiglx server
command=/usr/bin/Xorg-air :0
flexible=true

and restart gdm
Quote:
sudo /etc/init.d/gdm restart

4. Compiz-aiglx start script
the compiz-aiglx start script is now in package and automatically started on all gnome session startup. If you have some trouble with it you can remove compiz-aiglx.desktop file in /etc/xdg/autostart.

5. Fix totem playback

To have an optimised video playing on xorg-aiglx :

-> if you have totem-gstreamer :
launch gstreamer-properties and select on default video playback "XWindow (NoXv)" in video tab.

-> if you have totem-xine :
edit ~/.gnome2/totem_config and replace this line :
Quote:
#video.driver:auto
by
Quote:
video.drivershm

Have fun

Friday, August 04, 2006

how to install wine and cabextract

Ubuntu Dapper 6.06

You have to enable universe packages first. It is also recommended that you use the official winehq ubuntu package:

1) Open /etc/apt/sources.list
Code:
sudo gedit /etc/apt/sources.list


2) Uncomment following lines:
Code:
deb http://us.archive.ubuntu.com/ubuntu dapper universe
deb-src http://us.archive.ubuntu.com/ubuntu dapper universe


3) Add this line:
Code:
deb http://wine.budgetdedicated.com/apt breezy main


4) Close gedit and run an update:
Code:
sudo apt-get update


5) Install wine and cabextract:
Code:
sudo apt-get install wine cabextract
Following on from my last post about PostgreSQL, i've found a couple of things were 'off' with the setup, so this is a quick re-write and update... on with the show!

So, if the last guide worked, what's different with this set-up...

* We now enable and use the default 'postgres' user account to administrate our database server (saves creating a new one)!
* We also fix a couple of issues with the networking set-up.
* We now use the latest build of PostgreSQL - v8.1.
* This set-up is less of a 'hack', than the last guide (i've been reading since then).

Before we move on, this guide was tested on (and intended for) the current stable build of Ubuntu (5.04 - Breezy Badger), but it should also work fine on any other build of Ubuntu/Debian (6.06 - Dapper Drake etc).

First off, PostgreSQL 8.1 isn't in the main repositories in Breezy, you'll need to have backports enabled to get hold of the latest packages. Once you've done that, let's move on.

Right, now let's install the database server. At the command-line, enter the following (Or you can do all this in Synaptic - just search for and install the packages listed in the commands):

> sudo apt-get install postgresql-8.1 postgresql-client-8.1
> sudo apt-get install pgadmin3 pgadmin3-data

This installs the database server, and the pgAdmin administration application (If you don't really get on with the pgAdmin GUI, there is an alternative in the form of phpPgAdmin - a web-based administration interface. A quick 'How To' on getting this up will be coming shortly! ;) ).

Now we need to reset the password for the 'postgres' admin account for the server, so we can use this for all of the system administration tasks. Type the following at the command-line (substitute in the password you want to use for your administrator account):

> sudo su postgres -c psql template1
template1=# ALTER USER postgres WITH PASSWORD '*password*';
template1=# \q

Then, from here on in we can use pgAdmin to run the database server. To get a menu entry for pgAdmin do the following...

> sudo gedit /usr/share/applications/pgadmin.desktop

Then paste the following into the file:

[Desktop Entry] Comment= PostgreSQL Administrator III
Name=pgAdmin III
Encoding=UTF-8
Exec=pgadmin3
Terminal=false
Comment[en_GB]=PostgreSQL Administrator III
Icon=/usr/share/pixmaps/pgadmin3.xpm
Type=Application
Categories=GNOME;Application;Database;System;
Name[en_GB]=pgAdmin III

Then save the file and exit gedit. You should find the launcher in the System Tools section of the Applications menu. Alternatively, you could just type 'pgadmin3' at the shell. The wizards to connect to the database should be pretty simple to figure out.

Finally, we need to open up the server so that we can access and use it remotely - unless you only want to access the database on the local machine (The guidelines here are for opening up your server on a secure LAN - if you are not on a secure LAN you may want to look into adding SSL authentication before proceeding with these steps).

To do this, first, we need to edit the postgresql.conf file:

> sudo gedit /etc/postgresql/8.1/main/postgresql.conf

Now, to edit a couple of lines in the 'Connections and Authentication' section...

Change the line:

#listen_addresses = 'localhost'

to

listen_addresses = '*'

and also change the line:

#password_encryption = on

to

password_encryption = on

Then save the file and close gedit.

Now for the final step, we must define who can access the server. This is all done using the pg_hba.conf file.

> sudo gedit /etc/postgresql/8.1/main/pg_hba.conf

Now add the following lines to the file:

# Allow any user on the local system to connect to any database under
# any user name using Unix-domain sockets (the default for local
# connections).
#
# Database administrative login by UNIX sockets
local all all trust

# TYPE DATABASE USER CIDR-ADDRESS METHOD

# "local" is for Unix domain socket connections only
local all all md5

# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5

# Connections for all PCs on the subnet
#
# TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD
host all all [ip address] [subnet mask] md5

and in the last line, add in your subnet mask (i.e. 255.255.255.0) and the IP address of the machine that you would like to access your server (i.e. 138.250.192.115). However, if you would like to enable access to a range of IP addresses, just substitute the last number for a zero and all machines within that range will be allowed access (i.e. 138.250.192.0 would allow all machines with an IP address 138.250.192.x to use the database server).

That's it, now all you have to do is restart the server and all should be working!
> sudo /etc/init.d/postgresql-8.1 restart

Tuesday, August 01, 2006

vmware installation

ftvcs
April 13th, 2005, 03:26 PM
I got te same problem, but i found a solution:
as root i did:

apt-get install linux-headers-2.6.10-5-386

and then entered on the vmware installation:

/usr/src/linux-headers-2.6.10-5-386/include

I hope this helps some of you.

corefile
April 16th, 2005, 08:08 PM
if you have the correct headers installed all you have to do is create a symlink for the missing /usr/src/linux


for instance for me

in the /usr/src directory I did:

ln -s linux-headers-2.6.10-5-k7/ linux

and every thing was fine after that.
building kopete

problem:
Can't find X includes. Please check your installation and add the correct paths!


solution:
install kde-dev

chikka dependency problem

To solve my problem, I did a "sudo dpkg -i --force-depends package-name.deb" so that version problems will be ignore
put this in /etc/bash.bashrc for monodevelop to work:

export MOZILLA_FIVE_HOME=/usr/bin/mozilla

If your laptop takes too long to configure network interfaces, especially when you are not on an network, you can stop it from waiting by hitting Ctrl+C. This will cause this step to be skipped.

On a more permanent basis, you can modify the amount of time your computer waits for network configuration as follows:

Edit /etc/dhcp3/dhclient.conf

Edit the line that says:
#timeout 60
to read
timeout 20

Now your laptop will only try for 20 seconds to configure the network interfaces. 20 seconds is ample time for my laptop’s network interfaces to get configured. (I actually use nm-applet, but that is another story…)

If you want to disable the configuration of the ethernet network interface (eth0) at startup, edit “/etc/network/interfaces” and comment out the line “auto eth0“. You will have to bring up eth0 manually later, by doing $sudo ifup eth0 whenever you are plugged into the network.

Sunday, July 30, 2006

Reasons why Reiser4 is great for you:

* Reiser4 is the fastest filesystem, and here are the benchmarks.
* Reiser4 is an atomic filesystem, which means that your filesystem operations either entirely occur, or they entirely don't, and they don't corrupt due to half occuring. We do this without significant performance losses, because we invented algorithms to do it without copying the data twice.
* Reiser4 uses dancing trees, which obsolete the balanced tree algorithms used in databases (see farther down). This makes Reiser4 more space efficient than other filesystems because we squish small files together rather than wasting space due to block alignment like they do. It also means that Reiser4 scales better than any other filesystem. Do you want a million files in a directory, and want to create them fast? No problem.
* Reiser4 is based on plugins, which means that it will attract many outside contributors, and you'll be able to upgrade to their innovations without reformatting your disk. If you like to code, you'll really like plugins....
* Reiser4 is architected for military grade security. You'll find it is easy to audit the code, and that assertions guard the entrance to every function.

V3 of reiserfs is used as the default filesystem for SuSE, Lindows, FTOSX and Gentoo. We don't touch the V3 code except to fix a bug, and as a result we don't get bug reports for the current mainstream kernel version. It shipped before the other journaling filesystems for Linux, and is the most stable of them as a result of having been out the longest. We must caution that just as Linux 2.6 is not yet as stable as Linux 2.4, it will also be some substantial time before V4 is as stable as V3.

discussion about reiserfs

EVERY computer needs a u.p.s.

(Score:5, Insightful)
by FrankHaynes (467244) on Monday August 23, @11:59PM (#10052991)
Write on the blackboard 10^10000000 times:

"EVERY computer needs an uninterruptible power supply. EVERY one."

There are so many problems of which you might not be aware, aside from those requiring you to run fsck afterwards, which are solved by a good u.p.s. that you'd be penny-wise, pound-foolish for not putting a u.p.s. on every machine in sight.

My clients think that I can walk on water simply because I eliminated a large share of unexplainable wierdnesses from their machines by installing an inexpensive u.p.s. on every single one.

Solid, clean power is very important to a stable computing system. I cannot stress this enough.
> > E: /var/cache/apt/archives/tzdata_2006g-2_all.deb: trying to overwrite
> > `/usr/share/zoneinfo/Africa/Algiers', which is also in package locales
> >
> Absolutely, this happens when you have to put on tzdata, which is needed for
> libc6.
> dpkg --force overwrite /var/cache/apt/archives/tzdata._2006g-2_all.deb
> should do it

The answer was:

sudo dpkg --force-overwrite
--install /var/cache/apt/archives/tzdata_2006g-2_all.deb

But thanks for putting me on the right track.

1.9.7 really looks good.

Thanks, Bill, for the info that it was on sid. If anyone notices when
future versions make it there, I'd appreciate the announcement.

how to burn cd in Ubuntu

how to burn cd in Ubuntu

in nautilis (the file manager)

type: burn:///

Saturday, July 29, 2006

ugly openoffice fonts


I think the problem the OP has is withthe font rendering in OpenOffice. I have to agree that it does pretty bad job with most fonts. I haven't found any solution for this, but at least everything looks OK when printed to paper or exported to PDF

Friday, July 28, 2006

converting FLV to MPG

sudo apt-get install ffmpeg 
ffmpeg -i video.flv -ab 56 -ar 22050 -b 500  -s 320x240 video.mpg 

finally to make your life easier just put it a script file to excute later

mkdir ~/scripts;
echo 'ffmpeg -i $1 -ab 56 -ar 22050 -b 500 -s 320x240 $1.mpg' > f2mpg.sh;
mv Flv2Mpg.sh ~/scripts

now whenever you want to convert FLV file to mpg just shot the

 ~/scripts/f2mpg.sh Flv_video_file_name.flv