0
votes
0answers
4 views
Why is my wlan0 interface on Angstrom (Beagleboard) “Not Associated”?
I am installing a Angstrom (custom build, not the default build) on a Beagleboard XM.
I can scan for wireless networks using iwlist and see the neighborhood wireless devices.
I have set my SID and ...
0
votes
0answers
6 views
How to install flash in fedora for firefox with rpm
when I installed it to this step in the official readme guide:
Installing the plugin using RPM: o As root, enter in terminal:
+ # rpm -Uvh <rpm_package_file>
+ Click Enter key and follow ...
0
votes
0answers
7 views
Is it possible to display a static image on VNC connections?
Recently, I've been getting semi-regular VNC connection attempts on my computer. It's most likely from the domain I set up a while back, but it appears to be mostly individual connection attempts, as ...
0
votes
2answers
16 views
Cannot remove /log/var/snort as root
I am using Ubuntu 11.10 Gnome.
I uninstalled snort in order to install a more recent version. The new installation initially failed because the system would not let be rm or modify /var/log/snort ...
-1
votes
0answers
18 views
How should I proceed with transfering sites from external hosting to in house? [closed]
I'm a mix of both a sysadmin and developer. In my job we current host around 50 sites across 15 servers with external companies. Now my manager wants them in house , with new servers and virtual ...
0
votes
0answers
18 views
Remove referenced duplicate entries from XML file [migrated]
After hours beating my head against the wall, I decided this is [probably] not the job for a mere shell script.
There's a bug on Google Earth that makes loading KML files very slow: for almost every ...
-2
votes
2answers
24 views
Push local git repo to server via ssh
So I have a local repo and a server with git installed and a git user.
I want to send (push) the repo to the server. When I simply login to the server via ssh I have to specify my .pem file and a ...
0
votes
1answer
11 views
Red5 can't find JAVA_HOME
I'm setting up a Red5 server on Cygwin
I get this
/usr/share/red5$ sh red5.sh
Running on CYGWIN_NT-6.1-WOW64
Unable to locate Java. Please set JAVA_HOME environment variable.
However, I can also ...
1
vote
2answers
33 views
cat files in current folder and all subfolders
I want to cat a file in current folder and all files in all subfolders (and subsubfolders).
Here is my directory structure
$ tree
.
├── f
│ └── foo
└── yo
I want to cat foo and yo.
I've tried ...
5
votes
3answers
26 views
How to install Suggests dependencies of a package
If I want to install a package and its Suggests dependencies, I run:
$ sudo apt-get --install-suggests install <package name>
However, if <package name> is already installed, and not ...
1
vote
0answers
20 views
Lighttpd rewrite rule
Why does a rewrite rule like this not work:
url.rewrite-if-not-file = (
"^parameter/(.*)$" => "/somefunnyfile.php?someparameter=$1"
)
... but a rule like this does work:
...
2
votes
1answer
20 views
Running time command with cron
So I have a crontab that have this line:
30 16 * * * (time sysbench --test=cpu --cpu-max-prime=20000 run) 2>> ~/cpu.out
I use this because time output goes by default to stderr and I want to ...
1
vote
1answer
26 views
Mouse detected as keyboard
I have tried to use my mouse (perixx mx-2000) on Fedora 18 and Crunchbang 11, and for both of them, the mouse does not work.
The "funny" thing is that the mouse seems to be detected as a keyboard:
...
1
vote
3answers
35 views
List all files in a directory recursively but exclude directories themselves
Simple question, I'm running the following find command:
find . -type d \( -path ./.git -o -path ./log -o -path ./public -o -path ./tmp \) -prune -o -print
To list all the files in my directory, ...
1
vote
0answers
39 views
Why does this code work on Linux but not on SunOS? [migrated]
#include <stdio.h>
int main() {
char *str = "11111111-22222222 r-xp 00000000 00:0e 1843624 /lib/libdl.so.0";
unsigned long long start_addr, stop_addr, offset;
char* access = NULL;
...
1
vote
1answer
14 views
Upgrading Debian Squeeze to Wheezy - Should updatedb.conf be kept or replaced?
A similar question to Upgrading Debian Squeeze To Wheezy - Should conf' files be kept or replaced?, but in my case it concerns a different conf file and I am not on Linode.
I am upgrading a VMWare ...
1
vote
0answers
19 views
Gnome keyring issue
I am attempting to restore some files to an OpenSUSE 12.3 machine that was backed up with deja-dup (duplicity). When prompted for the password to decrypt the backup, I enter the correct password and I ...
2
votes
0answers
14 views
Fedora 18 guest in VirtualBox 4.2: How to assign static IPv4 address to guest regardless of active ethernet interface on host
I have a Ubuntu 13.04 host running VirtualBox 4.2.12. This host has both a wired and a wireless network interface, but only one of which would usually be active at any given time. For example, at home ...
-2
votes
1answer
35 views
GParted doesn't recognize the unallocated space after my current partition
I'm using GParted to resize my partitions on Linux. There is about 5GB of unallocated space following the partition sda5. However, when I right click on sda5 and select 'resize/move', it doesn't show ...
2
votes
2answers
28 views
Boot up problem with RHEL 6
I restarted my RHEL 6 box and now I can't get past the logo screen. I tried booting without the splash screen so I could see what's going on, and I'm getting an error message saying something along ...
3
votes
1answer
32 views
Midnight Commander: file size format
When dealing with large files in MC, I have difficulties counting the digits to get the order of magnitude of the file size (hundreds of MB, or tens of GB, ..). Sometimes, I use the trick to press ...
1
vote
0answers
28 views
write(/proc/<pid>/ctl): The requested resource is busy
My application front end and back end are on java and c respectively. The interface is via listener processes on C-side. If there is an error on the c-side, the corresponding listener process which is ...
1
vote
1answer
42 views
How to kill all processes that don't have specific parent process?
A parent process should always be running with N children process.
I would like to run a script which will show/kill all children processes that don't have a parent process.
$ ps faux | grep ...
0
votes
2answers
34 views
process memory usage
What is usually meant by the phrase process memory usage, what does this actually mean, i.e. what does this memory consist of? And what column does it correspond in ps aux output, RSS or VSZ?
1
vote
1answer
21 views
How to add a program to be indexed by Synapse?
I downloaded the IntelliJ community edition and I'm currently running it by clicking the shell script that is in the folder of IntelliJ
I was wondering how I can make Synapse recognize the idea.sh ...
0
votes
0answers
24 views
Zsh: quickly bookmark commands
I just had an idea, I'm sure it must exist though I could not find anything on the web.
This topic gets close to my idea but not enough:
How to quickly store and access often used commands?
I'd like ...
2
votes
2answers
36 views
Copy website from RedHat to CentOS
We currently have our website and website's CMS hosted on a dedicated host which runs Red Hat. We want to remove Red Hat and install CentOS instead.
My question: is there a straight forward way of ...
0
votes
1answer
29 views
Apache subdomain can not be resolved
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName domain.no-ip.org
ServerAlias www.domain.no-ip.org
DocumentRoot /var/www/main
ErrorLog ...
-3
votes
1answer
48 views
perl script explanation please [closed]
Write a perl program that reads in a text file containing
one word per line. Create a hash containing the words read as
keys and the number of times they have been read as the value.
Print ...
2
votes
1answer
59 views
How to repair system if kernel panic?
I've just updated packages:
2013-05-23 11:15:34 startup archives unpack
2013-05-23 11:15:35 upgrade locales:all 2.13-38 2.17-3
2013-05-23 11:15:35 status half-configured locales:all 2.13-38
...
3
votes
2answers
41 views
How to add a line from a list into another file when a specified line is found?
Basically I have 2 files. One has a list of router and switch login prompts, like this:
user@router1
user@router2
user@switch1
user@switch2
The other file has blocks of XML, like this:
...
1
vote
1answer
29 views
Read log file between two dates
I have to read log file between and my question is how to get only the text in the file wich is between two dates using unix commands?
Every line contain date and I want to get the text in the file ...
1
vote
1answer
21 views
What are the chkconfig directives (classic style) into init.d scripts?
To ask my question, I must first clarify the context.
Every init script in /etc/init.d (on RedHat and Centos distros) is prepared to be managed with the chkconfig command-line tool utility.
This ...
0
votes
2answers
28 views
How to run a script when install a rpm package?
I try to build rpm package. I follow here.
I want to run a script (bash or python) when run command as "rpm -Uvh mytest-1.0-1.el6.noarch.rpm" .
Could run a script when install a rpm package? How?
1
vote
1answer
41 views
Strange changes in files
I have a very strange problem on one of my servers. I'm not sure if it's completely related to linux because it occurs in php and js files.
Today I was trying to backup my databases using phpmyadmin. ...
4
votes
3answers
64 views
Cannot write to file with write permission
I have this file:
$ ls -lrta ~/.bash_profile
-rwxr-x---. 1 xxx xxx 904 May 23 15:36 /home/xxx/.bash_profile
$
I am the owner of the file and I have write permission.
When I try to edit (delete the ...
0
votes
1answer
35 views
Not able to remove a file
file name : abc
permissions : -rwxrwxrwx
shell : ksh
I am logged with the user which is the owner of this file.
Contents of file
AccessTime = 20130424-161120 ActualShmKeyDec = 1090650862 ...
0
votes
1answer
30 views
Redundant array of NTFS disks
I have a number of NFS disks with unused capacity. They are leftover external hard drives with a Windows history. I have a very limited number of USB ports on my machine, and want to find a cheap way ...
4
votes
4answers
47 views
Find out how much all tmp directy occupy
How can I know the size of all tmp folders for all users.
I tried
du -h /home/*/tmp
But it did not add them all together.
1
vote
3answers
42 views
bash script to login multiple remote server and execute a script
I want to make a script that will remote login to the multiple servers listed in a txt file like
10.3.9.6
10.3.9.7
and all servers have same username and password.
and want to capture the output of ...
0
votes
2answers
36 views
Creating an email that can trigger a script
I have a CentOS 6.3 server. I would like to create an email address like, for example, list@myserver.com that will be a special kind of email that will trigger a script.
For example: suppose I mail ...
1
vote
1answer
46 views
Privilege escalation detection?
I am not a linux/unix expert but everytime when I read about some local privilege escalation exploit (e.g. this),
I wonder if an OS can detect that there is someone logging in as root (or new root ...
-1
votes
0answers
38 views
Symlinks fail over time? [closed]
Not sure what to do with this one, but I have some stuff symlinked in my home directory:
~/Folder/ is symlinked to /mnt/media1
~/Folder2/ is symlinked to /mnt/media2
For some reason that I cannot ...
0
votes
1answer
31 views
How to Get FreeBSD Grep to recognize '-' option?
I am using FreeBSD grep, version 2.5.1, and want to be able to have grep read the pattern from stdin. Other versions of grep I have used allow for the specification of - to enable this feature. ...
0
votes
1answer
15 views
pulse-audio does not recognise my Logitech mic and my Webcam mic
I use the (great) AK5370 microphone for Skype, but it is not recognized by my archlinux i86_64.
It also fails to recognize the mic on my Logitech Webcam (PTZ, which I do not use).
Both are connected ...
2
votes
1answer
41 views
Playing a remote movie on the remote computer
I have two computers (a desktop and a laptop) running linux connected to my local area network. I like to ssh from my laptop over to my desktop and run programs there, and sometimes listen to music on ...
4
votes
3answers
35 views
Is there a way to refer to multiple files in a directory without retyping the whole path?
In a bash shell, when I have to remove multiple files in the same directory, I currently need to do something like this:
rm /some/path/file1 /some/path/file2
Is there a shorter way to write this so ...
4
votes
1answer
36 views
How to configure Linux to cache file metadata in preference to contents?
I’d like to set the system up to use most RAM for file system metadata caching, but only a reasonably small amount for read/write caching and prefetching files. Ideally I would like to be able to ...
0
votes
2answers
23 views
Can't boot after installing FreeBSD in VMware Workstation
I'm trying to install FreeBSD 9.1-i386 in VMware Workstation.
I'm following the guide in the manual on freebsd.org to do this.
When I come to the partitioning part I use the guided setting and it ...
2
votes
0answers
35 views
Is it possible to get a character at terminal cursor using ANSI escape codes?
I know I can move the cursor with the escape codes, and I can also print at the cursor. What I'd like to know is if it is possible to pull the character under the cursor.
I tried searching for such a ...


