2
votes
1answer
1k views

Shell escape characters for sh -c

I need to execute a command with escaped argument(s) using sh -c. I know the string looks pretty ugly but simple ones don't cause a problem. The output of the echo when passed to sh -c is different ...
1
vote
1answer
149 views

How to change the current directory graphically using the keyboard only?

There was a program named NCD (Norton Change Directory) a few years ago that did a good job at helping me change directory back in the DOS days. This programs displayed a tree, and you could navigate ...
2
votes
1answer
2k views

Force GRUB to boot into a specific kernel/OS?

I'm using both a Bluetooth mouse and keyboard, and frankly it's really annoying having to go grab a physical keyboard in order to boot into another kernel version or into Windows on another partition. ...
1
vote
1answer
3k views

Creating Conky text variables with zero padding?

I've got a strange issue with my Conky setup: What I'm looking to get rid of/fix is the fact that my CPU percentages (using ${cpu cpuX}) won't seem to pad properly. I'd like all values to be ...
2
votes
1answer
715 views

Create xorg input device configuration file for only a specific device

I've noticed that there are a few problems with using the Apple Magic Trackpad by default on Ubuntu derivatives. I've found the solution lies in making a modification to ...
3
votes
2answers
7k views

Do I only need one swap partition for multiple Linux distros? (and other questions)

I have Linux Mint 14 installed as my only OS. I have one extended partition containing /swap, / and /home, and I have some unallocated space on my drive. I'm guessing that Mint decided to put this ...
1
vote
1answer
1k views

connect to a remote server through ssh [duplicate]

Possible Duplicate: How do I execute a remote shell script over SSH and be prompted for passwords by commands that require it in that script? I want to connect to a remote server through ...
3
votes
1answer
4k views

SSH publickey works for root but not user [duplicate]

Possible Duplicate: Why am I still getting a password prompt with ssh with public key authentication? I'm setting up a remote server. The sshd is configured to use publickey only. There ...
1
vote
2answers
1k views

how to move files from one folder to other with appending time stamp to the name? [duplicate]

Possible Duplicate: Renaming a bunch of files with date modified timestamp at the end of the filename? I want to move files from one folder to another folder with appending time stamp to ...
4
votes
2answers
2k views

Solaris 11.1 and ipfilter

I'm trying to get IP Filter to work on Solaris 11.1. I'm following the official Solaris 11.1 guide. When the host is booted it doesn't pick up the ipf.conf that I expect. Here's the contents of ...
0
votes
1answer
460 views

How to install apt-get without a package manager

How can I install apt-get on a 32-bit Linux System if I don't have an existing package manager, like yum? What do I need to get?
3
votes
4answers
2k views

How to rename files with sed and csv

I'm new with Linux, sed, and awk but I don't mind challenging myself on new ideas. That being said, I understand the purpose and how to use rename and sed for a common event such as adding a $date or ...
2
votes
2answers
844 views

Bypass sshd AllowTCPFowarding=no by installing own forwarder?

In the man pages for sshd_config, for the AllowTCPForwarding option, it states: AllowTcpForwarding Specifies whether TCP forwarding is permitted. The default is “yes”. Note that disabling ...
2
votes
2answers
98 views

What to do about an outdated, but easily fixed, PKGBUILD in AUR?

I've found an outdated PKGBUILD on AUR. The source URL that it references doesn't exist anymore. It can easily be fixed by incrementing a version number. What is the proper way of solving this? I've ...
2
votes
1answer
1k views

What is “ALL ALL=!SUDOSUDO” for?

The last line of the /etc/sudoers file is: grep -i sudosudo /etc/sudoers Cmnd_Alias SUDOSUDO = /usr/bin/sudo ALL ALL=!SUDOSUDO why? What does it exactly do? UPDATE#1: Now I know that it prevents ...
6
votes
3answers
10k views

Copy over ssh and execute commands in one session [duplicate]

Possible Duplicate: Using an already established SSH channel Here is my sync script: ssh user@remote.host /etc/init.d/some_service stop scp user@remote.host:/var/some_service/events ...
2
votes
2answers
98 views

Parameter expansion seems to be missing a piece

I'm currently learning how to write simple scripts and can't get my head around a very simple problem. I have the following command in my script... touch ${DIRECTORY}/${FILE} This command appears ...
2
votes
3answers
2k views

Substitute placeholders in template

Say I have a shell configuration file config like this: HOST=localhost PORT=8080 Now I have a template template like this: The host is <%= @HOST %> The port is <%= @PORT %> How do I ...
0
votes
1answer
377 views

Memory usage caused by MySQL or Apache?

Here is a screenshot of my usage today on an idle unfinished cms drupal site with a maximum of 14 added modules besides core and no activity or users. As you can see I am at my limit which is crazy ...
5
votes
1answer
4k views

Remmina doesn't eat keys

Unlike rdesktop, when I press ALT + F4 in remmina, it doesn't react in the Windows system, but instead closes the remmina window. Any thoughts?
3
votes
2answers
1k views

Keep all commands in bash history?

I have the opposite question to this. How do I keep all commands in bash history? In Ubuntu since quite some time now, the default for bash is to forget commands with non success exit code. This is ...
4
votes
2answers
10k views

How to forward a port from one machine to another?

Consider the following situation: At my home, I have a router (which is connected to internet), server (S) and my main machine (M). S is reachable from the internet (it has static IP), and it is up ...
1
vote
1answer
2k views

kernel: mdadm: sending ioctl 1261 to a partition!

Every minute these three lines are added to /var/log/syslog: Dec 6 06:04:01 machine1234 kernel: last message repeated 3 times Dec 6 06:04:01 machine1234 CRON[28959]: (root) CMD ...
5
votes
3answers
2k views

How do I resume a tar command which was killed

I was doing a : tar -cvf and I had to killed it with ctrl-C. I know I should have done a Ctrl-Z and then bring back the task to foreground... but it's not the story. Can I resume from the point I ...
1
vote
1answer
2k views

Building kernel module

I have a 3rd party device driver which I am trying to cross-compile. When I build the driver everything goes smooth but I don't see any driver.ko file, however driver.o file is generated fine and I ...
1
vote
1answer
296 views

Display words in color

I am looking for a tool which takes a file in input and a word to search. It should display the file with color the words if it corresponds to the search. Like grep --colors but displays all the ...
3
votes
3answers
701 views

Script matching literal pattern over multiple lines?

I have a multi-line string in the variable $PAT. $PAT must be searched for within the file $FILE. If $PAT is in $FILE, it needs to print the file with $PAT removed. If $PAT is not found, then print ...
0
votes
1answer
686 views

How to install FTP server on Red Hat VM?

I have a windows machine and I need to transfer files from my machine to another Linux virtual machine which I have created. How do I install a FTP server on those VM's to transfer files via FTP ...
2
votes
1answer
2k views

Static IP address shifting to 192.168.1.251

I have a system with a static IP address of 192.168.1.150. I configured /etc/network/interfaces manually (i.e. without using NetworkManager.) It is a web server hosting three sites. I am having ...
2
votes
1answer
214 views

Difference between 3 commands which are used to execute shell script? [duplicate]

Possible Duplicate: Different ways to execute a shell script What are the specific differences between the commands listed below? ./<scriptname> . <scriptname> bash ...
15
votes
2answers
3k views

Modeless vs modal editors

I just started learning Linux and all my previous experience of programming has been using the Windows platform. I came across Vim editor and read that it is modal editor unlike notepad which is ...
3
votes
2answers
977 views

Installing yum packages by pattern

I want to install all openoffice packages. Passing openoffice* obviously wouldn't work, because it'd look at file system. How can I do that?
3
votes
0answers
3k views

Reset background to transparent with tmux?

I recently set up tmux-powerline and noticed that the background color on the status-left, if changed, refuses to go back to default and transparent (if transparency is enabled). I was able to fix ...
3
votes
1answer
635 views

How to get bash to suggest a missing package?

While running Ubuntu, while trying to execute a commmand in bash, it used to suggest that the said program was missing but found in another package Y, and that I could try installing it. Now on a ...
3
votes
1answer
211 views

Graphical console applications in Emacs

I am having trouble running htop within an ansi-term in Emacs 24.2. It looks like some of the control characters are not interpreted correctly. I thought ansi-term was capable of handling font ...
1
vote
1answer
41 views

Task management tools with keyboard navigation that run in a terminal

I recently learned that I can use top with my keyboard to kill processes (k), show processes for a specific user only (u), etc. But I was wondering if there is a way of selecting processes from the ...
1
vote
1answer
691 views

Complete install on RAID1 + LVM

When doing a complete install of Linux is it possible to install everything including /boot on 2 software RAID 1s (4 hdds) + LVM? I haven't been able to figure out whether this is definitely ...
1
vote
1answer
580 views

cannot find libarchive when compiling YAP prolog in OSX

I am trying to compile the last development version of Yap Prolog in OSX (Mountain Lion). The first time I tried I saw this message: ################################################################## ...
3
votes
1answer
1k views

Unix User Level Keylogger

I need to record my own keystroke data for some academic research. I wrote a regular keylogger for Windows, but now I need to write one for a Unix environment, with the constraint that I have only ...
0
votes
1answer
774 views

Xrandr does not recognize newmode option

I was trying to modify the screen resolution using xrandr. I used the following command. xrandr -s 1680x1050 It returned an error. size 1680x1050 not found in available modes I figured I have ...
0
votes
1answer
474 views

Why is rewriting in htaccess not working on this server

I'm moving code from a server that served a single domain to one that serves multiple domains. I'm using named virtual hosts to handle the different domains. The url rewriting is not being executed ...
2
votes
1answer
786 views

Where is max process size specified?

I've got a RHEL4 machine with 1TB of memory and have discovered that malloc and mmap refuse to allocate any memory above 512GB. Meanwhile, I don't seem to have a problem with RHEL5 machines. I'm ...
3
votes
2answers
1k views

Why can't I kill a timeout called from a Bash script with a keystroke?

[Edit: This looks similar to some other questions asking how to kill all spawned processes – the answers all seem to be to use pkill. So the core of my question may be: Is there a way to propagate ...
1
vote
1answer
1k views

How to set tz and date without restart in Debian Squeeze?

I've tried tzselect and all it appears to do is tell me what region I want to pick. I'm trying to change tz without a restart and for all users, then sync the time accordingly.
11
votes
3answers
676 views

Any utility to find source of system load / load average for a certain period?

By running top, htop, uptime, etc. we can see the load average as three values indicating the average load for the last 1/5/15 minutes (well not really, but that isn't the question here). Sometimes ...
4
votes
1answer
998 views

How to utilize XDG directories and paths in Bash?

I wonder how to access not only the variables defined in ~/.config/user-dirs.dirs with xdg-user-dir, e.g. "$(xdg-user-dir VIDEOS)", but also the following standard variables: ...
5
votes
3answers
5k views

How to access a machine behind a restricted NAT gateway I don't manage?

I have a linux machine that I'd like to be able to access remotely for SSH, FTP, HTTP, and so forth. I signed up for Dynamic DNS with No-IP.com, but this isn't adequate because I am on a college ...
2
votes
1answer
810 views

Linux Mint 13 XFCE freezes when external monitor connected

I am running Linux Mint 13. The problem is that whenever I connect/disconnect an external monitor to my laptop it freezes. If the monitor is connected on boot it works fine. Any ideas ? Output from ...
1
vote
1answer
137 views

Stop compiz from animating chromium history drop-down box?

I don't know how to stop compiz from animating the drop-down list from chromium browser, it only appears if you type something, and disappears when focus is lost. Any ideas on how to do it? I just ...
2
votes
3answers
302 views

I can not remove folder from server

Accidentall I created the folder on remotely server (Server OS is Linux) using php: mkdir("folder_name",0); Now I can not delete this folder from server. I think this is from permission, because 0 is ...

15 30 50 per page