Linux

Ubuntu Proftpd very slow: how to speed up

I have installed proftpd in my Ubuntu.

When I was downloading it was slow enough to make me searching for some answers...

Well I found some.

Here they are:


#UseReverseDNS — Toggle rDNS lookups
UseReverseDNS off
#IdentLookups — Toggle ident lookups
IdentLookups off

Placing these lines at your /etc/proftpd/proftpd.conf

you will get more speed at your file transfers.

How to add sound to your videos using mencoder

If you need to add some sound to your videos and you are using Linux, there is a very easy way to add it.
You can for example add your favourite song into your video, or even record your voice and put it in your video.

mencoder source.avi -o destination.avi -ovc copy -oac copy -audiofile /path_to_the_mp3_file/file.mp3

By telling mencoder not to compress the source video nor the audio the hole procedure will take a few seconds.

Enjoy it !!!

Linux shell useful commands

in
Command Description
apropos word Show commands pertinent to word.
which command Show full path name of command
time command See how long a command takes
time cat Start stopwatch. Ctrl-d to stop.
nice info Run a low priority command (info in this case)
renice 19 -p $$ Make shell (script) low priority. Use for non interactive tasks
look reference Quickly search (sorted) dictionary for prefix
grep --color reference /usr/share/dict/words Highlight occurances of regular expression in dictionary
gpg -c file Encrypt file
gpg file.gpg Decrypt file
alias hd='od -Ax -tx1z -v' Handy hexdump. (usage e.g.: hd /proc/self/cmdline | less)
alias realpath='readlink -f' Canonicalize path. (usage e.g.: realpath ~/../$USER)
set | grep $USER Search current environment
ls /usr/bin | pr -T9 -W$COLUMNS Print in 9 columns to width of terminal
touch -c -t 0304050607 file Set file timestamp (YYMMDDhhmm)
cd - Go to previous directory
cd Go to home directory
(cd dir && command) Go to dir, execute command and return to current dir
pushd . Put current dir on stack so you can popd back to it
gzip < /dev/cdrom > cdrom.iso.gz Save copy of data cdrom
mkisofs -V NAME -r dir | gzip > cdrom.iso.gz Create cdrom image from contents of dir

Batch Resize and Watermark in Linux

 Batch Resize and Watermark in Linux

You have a lot of photos so you want to post them to a website but the photos are very large and will make over a day to be uploaded to your site.

Also you maybe not want to steal your photos so you want to add a watermark with a word or your site or perhaps your logo.

You can do all this stuff and much more through Linux.

You will need imagemagick to accomplish this.

Download and install imagemagick typing this in your console of your linux distro.

sudo apt-get install imagemagick

after typing your password and installing successfully the package then don't exit the console but go to the folder where the images are stored.

So if you have them put on your desktop in some folder named images then go in your console typing

How to install Rar archiver (rar) in Linux

How to install Rar archiver (rar)

Image courtesy of Howard Gee

Open a terminal window and type in:
sudo apt-get install rar
sudo ln -fs /usr/bin/rar /usr/bin/unrar

After that you can find Archive Manager in the Gnome menu under Applications -> Accessories.

Azureus crashes

In my Ubuntu system I've installed azureus to download my torrent files.

I have to say that at first I tried Bittorrent download manager but I wasn't satisfied at all !

Then I installed azureus from the Synaptic Package Manager.

Azureus is the top torrent client. I had a problem though.

Azureus crashed at unexpected times, without some reason. It crashed when downloading only one file.

I must say that after it's first crash, when loading it again it crashed at start. It won't even load this time.

After some serious search, I found that the log files and the lock file made it crash.

So I tried these commands:

rm .azureus/.lock

rm .azureus/logs/save/*

rm .azureus/logs/*.log

These lines worked, at least for some time. I was very happy that I 've solved the problem and now could download my torrents without interruption.

But it wasn't fixed. Azureus crashed again and again and again.

So the SOLUTION (after lot of searching) was to

At Last Beryl + XGL is now a Reality

in

At least, after hard work and many hours I managed to get Beryl + XGL working.

Now the method I followed is not orthodox, but it worked.

If I haven't written already then I tell you that I had Kubuntu Feisty installed in my pc.

I tried to make it work with XGL but with no luck. After a lot of frustration, and an almost damaged to death xorg (cause of the constant changes on it's configuration) I took the decision to switch to Ubuntu, meaning that I would loose many of my configuration etc etc.

But that was my final solution, my last chance to get xgl (the cube) to work.

So I installed Ubuntu Feisty, by the way the installation was a piece of cake. After that the only thing I cared about is to get XGL working.

So I followed the instructions here (I know that this is on greek) which is a translation of these instructions.

After that my excitement went UP ! Beryl and XGL worked like a charm.

Skype 1.4 Database Failure

When I updated skype from 1.3 to 1.4 in my kubuntu feisty system, when I tried to login it returned "Database Failure" error.

Well after some serious search I found out that if you delete the profile folder from your home and start skype the error is solved.

Skype microphone stops

I had a problem with my skype in Kubuntu. It stopped recording, which means that the other person in the call didn't hear my voice.

After endless searching over the net, and installing and uninstalling Skype, I read somewhere in the skype forum that if you start skype as a superuser that the problem does not occur anymore. I tried it and until know, after 1 hour and 28 minutes of call the mic didn't stop.

So if you have this problem too try:

#sudo skype

in your console

Kubuntu 7.04 Feistier than Ever

The press release from Kubuntu.org

Feisty Fawn, 7.04

April 19, 2007 - Kubuntu 7.04 has been released and is available for download now.

Syndicate content