linux

vsftpd problems/install

Hi, I have installed vsftpd and added users normally. However I get permission problems. Everything is on default and I have turned off anon uploads. I cannot change directory or I cannnot upload/create/change permissions or folders and files. Please help, been trying for ages. I am running on ubuntu 32 bit ...

diff exclude pattern

I have a question about the diff command if I want a recursive directory diff but only for a specific file type, how to do that? I tried using the exclude option but can only use one pattern only: $ diff /destination/dir/1 /destination/dir/2 -r -x *.xml with the command I can only exclude xml file type, even though there are files in ...

what is the difference between GCC and C?

what is the difference between GCC and C? ...

Eclipse release heap back to system

Hello, I'm using Eclipse 3.6 with latest Sun Java 6 on Linux (64 bit) with a larger number of large projects. In some special circumstances (SVN updates for example) Eclipse needs up to 1 GB heap. But most of the time it only needs 350 MB. When I enable the heap status panel then I see this most of the time: 350M of 878M I start Eclip...

how create cron command

how can i call some url like stackoverflow.com from cron without getting return data from page? ...

Upgradation of PCRE Library (Perl Compatible Regular Expressions) Support.

I have upgrade the (pcre-devel-6.6-1.1, pcre-6.6-1.1) support on test linux machine having centos-5.0. I have restarted the apache, But in php information it is still showing the old version of PCRE (PCRE Library Version-5.0 13-Sep-2004), I want to upgrade this version on machine please guide me to update this version. Thanks in advanc...

What command do you use to preview any image

I'm trying to write a command in sh using the software ImageMagick. I was trying to find a command that allows me use any image( presumably jpeg) and be able to preview the image but at a 200x200 pixels instead of the original size? ...

preview multiple thumbnails of images

I have this piece of sh code here which takes one argument at a time: #!/bin/sh clear if [ $# -eq 0 ] then echo -n "There are arguments...Please enter again with the arguments" echo exit elif [ ! -f "$*" ] then echo -n "The image file '$*' doesn't exist!" ...

Is it possible to enable ERASE while in non-canonical mode?

The question is pretty much in the title. I need to have my terminal in non-canonical mode for some input I am getting from the user (I need to have Ctrl-D act as an immediate "finished" signal, rather than flushing the input when pressed and only EOF-ing when there is no input to flush.), but this makes it impossible to ERASE. I am not ...

bash alias with argument and autocompletion

I have a bunch of scripts in directory that exists on the path, so I can access each wherever I am. Sometime those are very simple util scripts that "vims" the file. From time to time I would like to quickly see the content of script file and see path to file the script opens (then make cat, grep ...). I would like to make an alias whi...

Can anyone recommend a good book on the linux kernel?

Hi, I'm looking for a good book on the linux kernel. I've found this one http://www.kroah.com/lkn/ which is free. I'd like something I can read when away from my computer though and so want to buy a good book. I was thinking about getting this hxxp://oreilly.com/catalog/9780596000028 (cannot submit more than one link). Has anyone any...

WGET without the log file

Hello, Every time I use wget http://www.domain.com a Log file is being saved automatically on my server. is there anyway to run this command without logging? Thanks, Joel ...

Changing directory echoes "Directory: <pwd>"

Hi, I have an annoying problem when using Screen on my SLED10 machine. When changing directory (cd, chdir, pushd/popd) the resulting path is echoed in the terminal. user@/home/user> cd .. Directory: /home user@/home> This problem only seem to exist in Screen. I have checked my prompt and it does not contain anything related to this ...

how to install git on CENTOS 5.5

Hi, How can I install git on CENTOS 5.5 machine? I tried to install it from yum but got following msg. root@host [~]# sudo yum install git Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: centos.mirrors.tds.net * base: mirror.ubiquityservers.com * extras: mirrors.serveraxis.net * updates: pubmirror...

Check database connectivity using Shell script

I am trying to write a shell script to check database connectivity. Within my script I am using the command sqlplus uid/pwd@database-schemaname to connect to my Oracle database. Now I want to save the output generated by this command (before it drops to SQL prompt) in a temp file and then grep / find the string "Connected to" from t...

Is there a Linux equivalent to Windows >log.txt for logging command output to a file?

The character > (or >>) can be used with a command in Windows to log results of a command to file. Does Linux have this ability? How do you do it? Example: $ find /?>find.txt This command will make a file named find.txt in the current directory. This file will contain exactly what is found in the term window after typing the command: ...

TMUX key bindings

Hi, I have a problem with TMUX key bindings. When I'm working on a terminal pane, if I press ctrl+pgup, it should scroll the screen one page up, as a normal terminal, but it doesn't. Also, while using VIM, I have mapped to do some actions, but this key combination is not called. Any TMUX expert there?. ...

drop/rewrite/generate keyboard events under Linux

I would like to hook into, intercept, and generate keyboard (make/break) events under Linux before they get delivered to any application. More precisely, I want to detect patterns in the key event stream and be able to discard/insert events into the stream depending on the detected patterns. I've seen some related questions on SO, but: ...

Recommendations for Test Linux/Web Server Environment using Java

I'm a .NET developer looking do some research on my own time to better familiarize myself with Linux and Java (e.g JSP and Servlets). My plan is to install Linux on an old PC. Then, install and configure a web server capable of hosting JavaServer Pages and Servlets. I would like to create a small web site with dynamic content being pull...

Linux XML parser library

Anybody knows good Linux XML parser library available, and how to set it up and use it? Thanks. ...