5
votes
2answers
2k views

/dev/sda2 has gone 49710 days without being checked, check forced

Why the shell show "/dev/sda2 has gone 49710 days without being checked, check forced." at centos start and then reboot? ...... /dev/sda2: Superblock last mount time is in the future. FIXED. ...
2
votes
1answer
841 views

How do i fix the to address when forwarding with mail/exim?

I am using debian squeeze (i believe, the box doesnt really say) i config exim4 to use gmail and put root: someuser in /etc/aliases then put my email address (name+box@gmail.com) in .forward I ...
3
votes
2answers
7k views

How to check disk usage in ftp?

Is there a way to sum up the disk usage of a certain directory while in ftp? I was trying to create a script that will check what is the disk usage of the current directory and prints out the free ...
2
votes
2answers
940 views

How do I install multiple java command-line programs?

I have a bunch of java command-line programs I've written and would like to install for all users. Building with NetBeans, I get a /dist directory which contains myprog1.jar and a /libs directory ...
0
votes
1answer
481 views

Printing file content with grep

Is it possible to print to the console all file content using only grep command? (wihtout cat, less, echo, more...)
1
vote
1answer
429 views

vixie-cron.x86_64 doesn't seem to execute jobs on crontab

I have installed crontab on CentOS 5.6 x64 via yum install vixie-cron.x86_64 Here is my crontab -e SHELL=/bin/sh 0 0 * * * cat /root/mysql-backup.txt | xargs ...
3
votes
1answer
3k views

How do I email root?

I am on Debian squeeze and I'd like to forward my root emails to my real email. I setup exim to use gmail so when I write mail myname@myemail.com it sends to my email. However, now I'd like to email ...
10
votes
1answer
806 views

How do you omit “./” when running scripts on current directory

On some tutorials over the internet they can run a script on the current directory without doing: ./script How do you omit this? I am using CentOS 5.6 x64. I want to run it this way script
27
votes
16answers
6k views

Is there ever a reason to use `cat` when you've got `less`?

I used to use cat to view files. Then I learned that less is usually better, and is a must if the file is longer than a few dozen rows. My question: Is there ever a reason to use cat instead of less? ...
1
vote
3answers
506 views

How to know which compiler is used to compile Python programs?

How can I know which compiler is used when I type python myapp.py in terminal?
6
votes
2answers
5k views

Get CPU utilization stats from C program

I want to read the CPU utilization stats from a C program, I am interested in the percentage of use of CPU, steal time etc. These stats are shown in the 3rd row from the top command. I tried to parse ...
3
votes
2answers
3k views

From shell, killing a process if wallclock runtime exceeds some predetermined value

I want to start a process from a shell script, allow it to interact with the user (so I cannot just background it, grab the PID, launch sleep followed by sanity checks and kill), but if it is still ...
5
votes
1answer
4k views

Configure wireless network from the command line

I know I can use ifconfig to configure my ethernet network interfaces. But can I also configure my wireless network interfaces using ifconfig. (It seems to be listed as eth1 in ifconfig output, why is ...
4
votes
1answer
448 views

Alternatives to XDialog

Are there any alternatives to XDialog? Ideally something that would support both X server and terminal interface.
1
vote
2answers
2k views

How can I automatically run a script inside screen if the script is not in $PATH

I have a scenario where I need to cd into a directory before running a script: cd repos; python script.py But it should be setup such that it automatically runs when screen is started. So in ...
4
votes
2answers
419 views

Saving tab completion possibilities to a file

Instead of displaying all possibilities on terminal screen, as in: $ ls /etc/<TAB> Display all 230 possibilities? (y or n) I want to save all possibilities to a file. ls /etc/ > file.txt ...
2
votes
2answers
3k views

How to create a PCM wav with mplayer?

I want to reencode a audiobook for my mobile with speexenc. The first step is to reencode the file with mplayer. for i in *.mp3; do mplayer -ao pcm:waveheader "$i" -af ...
5
votes
3answers
6k views

Window manager and desktop environment for touchscreens

What are some good choices for desktop environments and window manager for touchscreens? Currently I am using XFCE with custom GTK settings for making the controls larger, but that is far from ...
1
vote
2answers
757 views

nagios w/o apache?

I want to install nagios but instead of using apache i would like to use nginx. I installed nagios-cli and it automatically brings parts of apache which puts a script into /etc/init.d/apache2 and ...
2
votes
4answers
872 views

Mastering apt-get

I'd like to learn about apt-get so nothing bad can surprise me. I was looking for some tutorials but have found nothing that teaches it carefully including its internals. I found this article but it's ...
1
vote
3answers
1k views

Solaris - get a list of the commands run at startup/boot?

Is there any way of seeing a list of commands that were run at startup/boot on Solaris? I know there is a network drive being mounted at startup but I wanted to see the exact 'mount ...' command ...
4
votes
3answers
5k views

Source code of netstat

Can I view the source code of netstat on my Linux machine?
2
votes
3answers
219 views

Optimizing c++ compiliation for a specific machine

I am programming a code to simulate a membrane which will run on computation cluster (single node). I want to optimize the code for that machine. I have used the -optimize, -O3 and -march=core2. How ...
3
votes
1answer
314 views

Copy files in different subdirectories that excludes a string

I'm trying to copy all files of a type in a given directory and subdirectories but excluding files of a different type. find /var/ftp/pub/bs -iname "*foo*.foo" -exec cp {} /var/ftp/pub/bs1 \; ...
4
votes
2answers
287 views

linux mint 11 64 bit Citrix Client

Does anyone have Citrix Client 64 bit client working on Linux Mint 11? Been searching for a while and applying several suggestions without success. I've even attempted to get the 32 bit version of ...
1
vote
2answers
4k views

What is the maximum memory a 64bit process can consume?

I know that there is a hardware capacity of 2^48 bits, and I know that there isn't a lot of native limiting of app memory constraints in general by the kernel, but is there an upper bound of the ...
0
votes
0answers
414 views

Resolving Debian wireless issue

I typically dual boot my laptop betwen a Win7 and Ubuntu partition, but keep a spare partition for playing around with new distros. Earlier this week, I decided to try out Debian Squeeze. For the ...
3
votes
1answer
962 views

How can I pass module parameters for bonding driver when compiled into kernel 2.4?

I have an old 2.4 kernel based linux device using NIC Bonding. Instead of having the NIC Bonding module build as a module and modprobe'ed into the system, its compiled directly into the kernel. I'd ...
3
votes
1answer
1k views

When executable files aren't [duplicate]

Possible Duplicate: Can't execute some binaries in chroot environment (zsh: Not found) Today I ran into something that has me stumped. A co-worker is working with a specific ...
5
votes
2answers
451 views

Is there a way to determine what's inhibiting the screensaver?

I have an issue where most often my screensaver will not activate and it's somewhat hard to determine what's preventing it. Is there a way that I can view whatever processes are asking the OS not to ...
10
votes
6answers
12k views

How do I limit the number of files printed by ls?

Is there a way to limit the quantity of listed files on a ls command? I've seen: ls | head -4 but to get head to be executed I need to wait for ls to finish execution, and with directories with an ...
6
votes
2answers
339 views

Concatenate two screen sessions

Because of some server issues I ended up with two screen sessions, each with a few windows. I have long-running tasks in both sessions and don’t want to abort one of them just to get rid of one of the ...
1
vote
1answer
359 views

Sharing files with NFS and Unix Permissions

I'm kind of new to using NFS in the context of Linux permissions, so I'm a little lost on how I can make this work. Here's my setup: alpha writes files as root to the mounted NFS share. beta ...
2
votes
1answer
575 views

How can I install Texas Instrument's dvsdk?

How can I install a file that doesn't even have a file extention? I followed the instructions, but I failed... Also apt doesn't do anything. Here is the link to the file and the installation process: ...
1
vote
1answer
185 views

apt: reinstall older version of a package without altering dependent packages

I have got some problem with sound. In order to investigate the problem I tried to reinstall older version of package libasound2 (I have upgraded it recently). I typed apt-get install ...
2
votes
3answers
363 views

How to substitute awk argument?

I want simplify awk command for common usage so instead of writing awk '{print "rm -r"$4 }' each time I want to write myawk "rm -r"$4. I've tried to write such function myawk() { awk '{ print $1 }' ...
-4
votes
2answers
352 views

Which linux is the most “free”? [closed]

I would like to make my very personal own linux baby, which is not to get whole world users get involved but myself to use it and do lots of experiment with it, so that when things does not work with ...
3
votes
2answers
342 views

Can't get DBUS data for automatic statuschange of pidgin

I'm using a script based on the work posted here: Update pidgin status using cron I'm trying to make a wicd script that automaticly disconnects before Wifi-disconnect and reconnects on ...
1
vote
2answers
200 views

Are there a way to block a program from starting during certain times?

As the title says. I want to prevent a certain program from being started during specific times. Are there a good way of accomplishing this at *nix distros?
2
votes
1answer
128 views

Rosewill RC-212 and Fedora 15

I recently bought a Rosewill RC-212 and configured it in the BIOS for RAID0. Windows 7 recognizes the array without any extra drivers and installed to it without problems. I installed Fedora 15 on a ...
2
votes
0answers
223 views

How can I prevent Apt-Get from autoremoving packages? [duplicate]

Possible Duplicate: apt-get - autoremove wants to uninstall Gnome I'm running Debian@ [edit: kernel] 3.0 with Gnome. apt-get wants to autoremove dozens of packages. How can I prevent it ...
3
votes
1answer
5k views

I am failing to send mail to a Gmail address using Postfix

I am trying to send mail to my test GMail account using Postfix (default Debian setup), and I am failing ("/var/log/mail.log"): Sep 26 16:13:43 sugarmailer postfix/smtpd[1473]: connect from ...
1
vote
3answers
318 views

Get Position of RAID Hard Drives

I was recently tasked with creating a hard drive management system on Linux. I needed to write a program that monitored when drives came online and offline and created/removed links to the drive ...
3
votes
3answers
232 views

How to list prerequisites externally in GNU Make?

How can I query prerequisites of a target from a GNU Make makefile? E.g. if the targets specified like this: fred: wilma barney betty I want to print prerequisites of fred like this: $ make ...
1
vote
1answer
172 views

Audio stopped working in Xine in Debian

Recently sound stopped working in all the Xine-based applications. I get the error: the audio device is unavailable. I am using latest Debian Testing with KDE. I haven't been fiddling with the ...
4
votes
5answers
3k views

Padding a number in a filename to a fixed length

I have a directory of files such as: file.1.png file.2.png … file.10.png … file.1000.png file.1001.png … How can I pad the number to 4 digits? It should end up like this: file.0001.png ...
2
votes
1answer
209 views

How do I build custom Ubuntu CD's automatically?

I'd like to build custom Ubuntu installation CD's daily (CRON job). Think Daily Build but with custom packages coming from a text file. Packages would be a mix of some official Ubuntu packages as well ...
2
votes
1answer
749 views

Asking curl to skip missing files

Is there any way to tell curl not to download a file when it does not exist on the server? I am using my Mac OS X shell to download a few files with curl. The command goes: curl -s -# ...
2
votes
1answer
657 views

How to disable SSLv2 in OpenSSH?

Due to the recent deprecation of SSLv2, is it possible to disable SSLv2 in OpenSSH? Is OpenSSH even using SSLv2? From digging around, I see the sshd is not compiled against openssl , but it is ...
13
votes
8answers
2k views

How can we limit the impact of ssh probes?

My webserver is constantly attacked by various IP addresses. They try five passwords and then change the IP address. I have done various lockdowns like using ssh-keys and not permitting passwords, ...

15 30 50 per page