0
votes
5answers
102 views

When I set the default shell, it doesn't “take”

I want my default shell to be bash. However, whenever I log into my server, the shell is apparently -bash: $ echo $0 -bash If I run bash, I'm of course switched to bash for that session, but it ...
1
vote
2answers
944 views

LDAP on openSUSE

I'm trying to run an LDAP server on a openSUSE 12. But I have a couple of doubts. What I whant is this: testing.com with 2 OU (Info and People ). So the right way would be ou=Info,dc=testing,dc=com. ...
2
votes
1answer
444 views

Can I get the backup option of cp and mv to work with directories?

--backup[=CONTROL] make a backup of each existing destination file The man page does say that it works on file. It doesn't seem to have any effect on directories. Is there anyway to make this ...
0
votes
2answers
1k views

How to calculate in linux number of file inside nested directories?

I need to extract information how much files are in some directory tree: /.../testRoot/test1/test11/..../file1 /.../testRoot/test1/test11/file2 /.../testRoot/test1/test11/..../file3 ...
3
votes
1answer
2k views

What is the fastest way to write all sectors on a drive?

The goal in my case is not to securely erase data, but simply to force sector reallocation by the drives firmware. I have a drive that has had a few file corruptions. It seems to be due to getting ...
1
vote
0answers
114 views

How do I create new entries for possible default calendar, mail and web browser programs?

At least there still is default application selector (though hidden in very inappropriate place, why "system info"?), but seems that xml definitions in /usr/share/gnome-control-center/default-apps/ ...
2
votes
0answers
526 views

Howto reduce skype video outgoing traffic?

Issue background I'm having having problems with skype under linux. My video calls are all the time non-continuous and they're getting stuck. The situation is the same whether I use skype alone, or ...
1
vote
1answer
263 views

Which driver for USB enclosure should I install?

I'd like to connect my old harddrive to my laptop via USB enclosure. I connected it but it only produced strange sounds, so I thought that the enclosure is corrupted. I connected the enclosure to ...
6
votes
1answer
1k views

How can I read CD-Text information from CDs

What applications are available for GNU/Linux that allow read-out of CD-Text data from CDs? Command-line programs would be preferred.
0
votes
0answers
353 views

Facing issue with cron on embedded linux

I have a SAM9 based board running embedded linux using buildroot package. I added the crond and crontab support to busybox from make menuconfig and built the rootfs and flashed it to my board. The ...
2
votes
4answers
1k views

Grep for a string with list of files as source

I have a plain text file, in every line is a path to a file. Now I have to grep for a string in these files. Is there any way to use this file as "search source" for grep? Or do I have to copy and ...
5
votes
2answers
6k views

How to limit application memory usage?

I have spend 2 hours reading questions about this matter, and still there is some misunderstanding. I have this process: USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1452 0.4 1.8 ...
7
votes
5answers
1k views

Securing a Debian installation for general home usage

Debian comes with several harden packages, designed to make a computer more secure. My needs are very simple: word processing and Web browsing. I do not run any special servers, do not use SSH, ...
3
votes
1answer
948 views

Disabling Web camera

My Eee PC comes with a Web cam, which I never use. How can I ensure that it is effectively disabled, so that no software can use it?
6
votes
2answers
439 views

How to specify timeout for tab completion in zsh?

Zsh's completion feature is great except for this one. When I try to complete in a folder with lots of files/network folder, it takes a couple of minutes and prints this error. example.com:~$ ls ...
2
votes
2answers
563 views

How to identify the program that uses most bandwidth?

How can I know which application is using the most network bandwidth? I saw some graph from KDE's network monitor, but don't know which process did that.
4
votes
1answer
2k views

Escaping of meta characters in basic/extended posix regex strings in grep

Is it possible to escape all meta characters of a string inside a variable before passing it to grep? I know similar question has been asked before on SE (here) and also a good explanation here, but I ...
1
vote
1answer
825 views

Any better alternative to chroot on an OpenVZ VPS?

Are there any better alternative to chroot environment? I'm thinking about running nginx on a jailed environment. BTW, I'm on OpenVZ VPS, so modifying the Kernel is a no-no. (I think that prevents ...
1
vote
1answer
2k views

Ubuntu Server - Access webserver from other LAN computer, setting up SSH or FTP, closing ports?

I'm running Ubuntu 11.10 x64 Server, with apache2 installed. The setup is pretty much default configuration. I have a few questions about; DocumentRoot/Static IP/Connect from LAN/SSH or ...
0
votes
2answers
788 views

Permanently Storing a command in bash history

Is there any way to store a command in bash history permanently? The actual scenario goes like this:- I have a project in C and in order to configure my project, I have to run a very long command ...
15
votes
4answers
9k views

Is there a way to lock command line?

For example, in X session, I can use Ctrl-Alt-L to lock the screen, so it would ask for password to unlock and prevent somebody from messing with mine computer. But if I have an open terminal session ...
4
votes
2answers
3k views

Why doesn't tar ask before overwriting existing files?

I lost a couple hundred lines of a Vim plugin I wrote and continue back up every so often because I extracted a tar file containing an older version. I decided not to use source control management ...
3
votes
1answer
6k views

How to Increase Screen Resolution in Linux Mint. (Parallels and iMac)

I'm very new to Linux and I've decided to install Linux Mint on a Virtual Machine on my iMac 27 inch using Parallels 7. But, the screen resolution is stuck at 800x600 and there are no options in the ...
1
vote
2answers
1k views

Which are best repo for Cent OS 5.7? [closed]

Which are best repo for Cent OS 5.7? Should I install apt-get and use other deb packages on Cent OS? I mainly used Ubuntu which is really easy to update any packages.
22
votes
3answers
4k views

What does the vm.swappiness parameter really control?

Per the kernel documentation: This control is used to define how aggressive the kernel will swap memory pages. Higher values will increase aggressiveness, lower values decrease the amount of swap. ...
2
votes
2answers
1k views

Are there command line tool(s) to convert video to WebM format in Debian Squeeze?

I would like to convert some videos to WebM format using Debian Squeeze. I prefer command line tool(s) although gui applications are also welcome. Video formats to convert from would most probably be ...
3
votes
2answers
1k views

Keep global variables values piping through functions

I wrote a little bash script using sed on some html pages to extract some urls. To avoid each time grabbing sed results in a variable then read it again I simply made 3 functions and piped together. ...
3
votes
1answer
489 views

Apply astyle on commited files using SVN hooks

I would like to apply some styling to code whenever someone commits to an SVN repository, for this I use astyle on the commited changes with an svn pre-commit hook. I can get the file names like ...
7
votes
1answer
355 views

How set environment variable based on whether a GUI is available?

How can I set up my .bashrc such that the value of an environment variable changes based on whether or not the current session has access to the gui / windowing system? For example, let's say I have ...
8
votes
4answers
5k views

FreeBSD + ZFS + Encryption? Alternatives? Suggestions?

I would like to create a dedicated physical server which will work as a NAS & fileserver inside my LAN (as well as through VPN). However I need to fully encrypt the drives (both the system ones ...
1
vote
2answers
705 views

using SSH to connect to remote CentOS 5.6 server where Firefox running on server is very slow [duplicate]

Possible Duplicate: How to speed up X over SSH on a slow network connection? I've installed firefox on CentOS 5.6 and I'm using X11 SSH to remotely login to view the browser. Firefox ...
5
votes
1answer
928 views

Is 32bit still preferable to 64bit? [duplicate]

Possible Duplicate: Should I install 32 or 64 bit? I want to migrate from Ubuntu to OpenSUSE, and I need to decide between the 32bit and the 64bit versions. 6 years ago, when I purchased a ...
2
votes
1answer
203 views

Destroying KVM first try virtual machine

I'm trying to understand how KVM works, working on ubuntu 10.04 server. I created one with sudo ubuntu-vm-builder kvm lucid --arch 'amd64' --mem '512' --rootsize '10248' --swapsize '1024' ...
7
votes
1answer
3k views

how to set the sftp -s subsystem option in a configuration file

The sftp command supports a subsystem option (-s) which allows the remote user to select the remote sftp-server executable, and optionally upgrade to sudo in the process like so; sftp -s ...
3
votes
1answer
526 views

Bash: Filter invalid commands from history, specifically passwords

Related Question, less specific: Automatic cleanup of Bash history This question focuses on a single problem. Over time, a user will eventually enter a password on the command line by accident, ...
1
vote
1answer
2k views

How to log user in to Gnome Desktop from remote ssh terminal?

I'm using CentOS 5.5 with Gnome Desktop Enironment. By default, after system boot i get Gnome's login screen. Independently, I can log in through SSH and execute commands. Is there any command line ...
4
votes
1answer
484 views

How do I stop Apache from running as root?

New on the job, small place, and the security stuff just landed on my desk. I was hired to be a front-end developer. Happy to learn new things, but never had to do sysadmin stuff before. I started ...
4
votes
3answers
702 views

Join the executable and all its libraries

Lets say I have a /bin/cat executable that uses the following shared libraries: linux-vdso.so.1 libc.so.6 /lib64/ld-linux-x86-64.so.2 Is it possible to somehow "join" that stuff together ...
5
votes
2answers
898 views

regex wanted to exclude a string

I want to have an expression that targets all lines that begin with http, end with icon.ico and do not contain config.privoxy.org. In the sample list below, I would like to catch all except the third ...
2
votes
2answers
1k views

Restore /etc/hosts on SuSE

I have lost my /etc/hosts file on SuSE Enterprise 11.3 64 bit. Is there any way to get the original file back?
3
votes
2answers
391 views

Does /var keep growing in size?

tldp.org quotes /var as: Files in /var/log can often grow indefinitely, and may require cleaning at regular intervals. So without cleaning, using a system for a long enough period will fill up ...
8
votes
2answers
4k views

16 Colors in ZShell

I only seem to be able to call 8 colors in my zshell prompt. Example: PROMPT="[%n@%{$fg[magenta]%}%m%{$reset_color%} %.] %# " Works fine. However, ...
1
vote
1answer
198 views

egrep command which shows all the authors and subjects of mails contained in a directory

Anyone know of an egrep command which will show the authors and subjects of all mails contained in some directory?
12
votes
2answers
5k views

Per process firewall?

I've been reading around but can't seem to find a way to create per-process firewall rules. I know about iptables --uid-owner but that only works for outgoing traffic. I've considered scripting ...
4
votes
2answers
874 views

Conflict between `pushd .` and `cd -`

I am a happy user of the cd - command to go to the previous directory. At the same time I like pushd . and popd. However, when I want to remember the current working directory by means of pushd ., I ...
5
votes
1answer
2k views

Execute Script automatically at shutdown on Fedora 15/16

With fedora 15 or 16, I don't find the directory for execute a shell script automaticaly at shutdown...
7
votes
2answers
2k views

Number of backslashes needed for escaping regex backslash on the command-line

I recently had trouble with some regex on the command-line, and found that for matching a backslash, different numbers of characters can be used. This number depends on the quoting used for the regex ...
2
votes
2answers
428 views

inserting a token while parsing a file - bash

I have a file with this structure: ma${token}jid-azimi-865131021 javad-ya${token}rip-865132012 and here is my program: IFS="-" token="12345678" cat input.txt | while read col1 col2 col3; do ...
2
votes
3answers
358 views

terminal emulator which auto closes after execution but stays open if there was an error during execution

I have a automatic build script it uses a makefile which starts different ant scripts depending on the target I start it using xterm (I have a shortcut on the desktop) It works fine but if I want ...
5
votes
2answers
7k views

What's the meaning of output of lsattr

I'm wondering what the output of lsattr means.It prints so oddly as follows,when I have tried: lsattr /usr. $ lsattr /usr -----------------e- /usr/local -----------------e- /usr/src ...

15 30 50 per page