1
vote
3answers
213 views

Determining network interface names in NetBSD

Does anyone know if there is a way to determine what a network interface will be called in NetBSD if you know which NIC/driver you will be using before hand? I'm trying to automate parts of a NetBSD ...
1
vote
4answers
182 views

How can i run a piece of code in background?

Can I run a piece of code in background instead of using another script. [sesiv@itseelm-lx4151 ~]$ cat ./testback2 #!/bin/bash start_time=$(date +%s) for i in {1..5} do ./testscript & done wait ...
0
votes
1answer
298 views

How to remove LUKS auto-unlock?

Unfortunately my drive unlocks automatically. This makes the whole encryption useless. How do I turn off this annoying feature on a specified drive (e.g. /dev/x) ? The cryptsetup command I've found ...
1
vote
2answers
488 views

How to find responsible script with ausearch results?

So I wanted to know which process is creating a directory ']' in my root. I was assuming this is some typo in some script. So I set up an audit for that directory, very similarly as shown on This ...
60
votes
7answers
4k views

How safe is it to cat an arbitrary file?

Sometimes when I cat a binary file by mistake, my terminal gets garbled up. Nothing a quick reset can't fix, but couldn't an attacker theoretically create a file that, when displayed on a terminal, ...
1
vote
1answer
97 views

Losing smtp/pop3/imap access

I have a server running OS X. This server connects to another server, this other one CentOS 6.3, from times to times to collect mail messages over POP3/IMAP and also to send mails using SMTP (exim, on ...
0
votes
1answer
493 views

How do I find out which package contains an executable? [duplicate]

Suppose I want to use the command eg. from the project info2html and it's not available on my system. Some distro's sometimes suggest packages for some missing commands that are expected (ie. ...
2
votes
3answers
439 views

Detect which interface traffic to an IP address goes through

I'm making an script, and I need to detect in what interface is the traffic of an IP going through. This is because in the arch, an IP address is attended only for one of four NIC's, but can be any of ...
3
votes
0answers
286 views

Exynos 5 DVFS or turning off cores in Ubuntu - Scaling frequency for one of the cores only (dual core) (cpufreq)

I was wondering if there is possible to scale only one of the cpu cores in the A15 in Exynos 5 ? I have tried using e.g cpufreq-set -c 1 -f 500MHz, but both cores are set to the same frequency. When ...
3
votes
2answers
847 views

rpmbuild: Is there a way to specify recommended packages

So, search as I might, I can't find anything about specifying recommended packages in a spec file. I wouldn't even consider it possible if I hadn't seen it in the spec file for Mono 2.10.9. It reads ...
2
votes
1answer
269 views

rpmbuild: How can I 'Require' one package *or* another

So, I'm trying to fix a spec file right now for rpmbuild. On Suse, it looks like the X11 library development package is named "xorg-x11-libX11-devel" while on CentOS it seems to be named ...
1
vote
2answers
531 views

Search and replace full line in recursive files

I'm using: grep -n -H -o -R -e textword . List all file recursively under directory '.' with string 'textword' and show the file, line and only portion matching. I need to remove lines that ...
4
votes
1answer
2k views

apt-get won't install: dpkg: files list for package 'gnome-themes-standard-data' is not a regular file

I'm trying to install packages to get a webcam stream running on my raspberry pi. All of a sudden, apt-get is totally busted -- every time I try to install, reinstall or purge something that might fix ...
1
vote
1answer
439 views

Banshee crashes on Arch Linux x86_64 after a few seconds

Whenever I run Banshee, a few seconds after starting it crashes. I am using Arch Linux and made sure all packages on the computer were up to date. Running banshee > output 2> output yields the ...
0
votes
2answers
92 views

Executing a program according to the last modified date

I need to write a script which would execute some executables in a directory according to the last modified date. The oldest should run first. How do I do it? This is what I have done so far for f ...
2
votes
2answers
513 views

Sending binary data to gets()

I have a victim program (with a buffer overrun vulnerability): it uses gets() to write into a fixed-sized buffer. Suppose I put shellcode into a file SC. Then I run $ ./victim < SC Input your ...
11
votes
2answers
1k views

What are the characters printed when Alt+Arrow keys are pressed?

When I press AltUp, A printed to terminal screen. Same thing happened when I pressed AltDown but B is printed instead. Other characters that I realized; AltLeft = D and AltRight = C What is the ...
2
votes
1answer
163 views

Flashing rootfs on Embedded Linux with Limited RAM

I'm fairly new to the embedded world, so forgive me if this seems obvious. I'm working on a board based off of the AT91SAM9260. I have 256MB of flash and 64MB of RAM. The current setup flashes two ...
3
votes
2answers
2k views

Getting xmonad and gnome-panel working with Fedora 18

I have been using fedora 18 lately and trying to get xmonad working with gnome-panel. On my ubuntu and kali installations this works perfectly fine, but in fedora I have yet to get gnome-panels to ...
4
votes
2answers
414 views

Install application to /usr/local

Some application that installs automatically such as Netbean, JDK often install to /usr/local and I run it by normal user (not root). But another application, just extract tar.gz file and run it. ...
2
votes
6answers
1k views

extract a file from jar file and get the diff

In real world I have a xsd in a jar file across various releases I am trying to check whether xsd has changed across releases 10.x.y.z to 11.a.b.c I have different release directories which are read ...
10
votes
2answers
10k views

Installing a package locally to a user - best practices?

I want to install Git locally to a user on a RHEL server (I don't have root access) What would be your cleanest/ most organized way of installing software to a local user account? Installing ...
0
votes
0answers
73 views

Fedora 18. Centering activities on one monitor

I've recently installed Fedora 18 and the only gripe I have so far is that everything is spread between two monitors. Example: The date is currently half on one monitor, half on the other. I get 'Thu ...
4
votes
1answer
101 views

How does coreutil's date manage to get such weird results?

I was playing around with date to try to convert expressions such as "2 hours" to a number of seconds like 7200. I thought I could perform this with invocations such as: date -d "1970-01-01 00:00:00 ...
1
vote
2answers
133 views

Shell script execution

I have two shell script files with exactly the same permissions etc. I can run one of them by just giving its name in the command line but for the other one I should use sh or ./ to run it. What is ...
11
votes
2answers
530 views

Expand subshell before executing it?

I often run commands using subshells, and sometimes would like to have the subshells expanded before I run something.. This way I could verify what I'm doing, and possibly edit what's about to happen ...
3
votes
1answer
220 views

QEMU Direct Access to Video Card (or, QEMU Video Output without X11)

I have a system that boots up into Linux at power on and then needs to boot into Windows XP Embedded. After messing around with kexec and grub4dos, things aren't working out too well. One idea that ...
3
votes
1answer
575 views

Gnome Terminal---hide the tilde files produced by Emacs

Editing text file using Emacs will make Emacs make a companion file for its own purpose. For example, after first editing a file called test.c, Emacs will leave a file called test.c~ in the same ...
1
vote
1answer
780 views

Cannot connect to belkin router through linux mint

I recently installed Linux Mint 13 alongside windows 7. I have a Realtek RTL8191SEvB Wireless Card. This work's fine with any router. However when I try to connect to a Belkin G Wireless Router it ...
10
votes
3answers
6k views

How to turn off the beep only in bash tab-complete

I find the beep useful for some things, so I only want to turn it off for tab completion (I'm not asking how to completely turn it off, that has already been answered in a different question on ...
2
votes
1answer
450 views

Configure SSL Mutual (Two-way) Authentication

I was asked to do it "Configure SSL Mutual (Two-way) Authentication" and I don't know where to start or how to test it . server and many clients . they can access code on server only if they have a ...
7
votes
2answers
137 views

Keyboard combination to insert non keyboard characters

on windows one could with Alt+235 print ë into (any) textfield. I tried the same on linux and it seems to be not working. Depending on the application the result is different, but never the wanted ...
2
votes
1answer
654 views

shell parameter substitution to rename files

I need to rename filenames which starts with "foo" into "boo" This is the script I used #!/bin/sh for f in *.jpg; do mv -- "{$f}" "${f/foo/boo}"; done but when i run I get a bad substitution ...
5
votes
1answer
20k views

How to find Heap memory of a running process? [duplicate]

I would like to know how to find the heap memory of a process that is running in the background. Is there any command that allows such?
1
vote
3answers
123 views

Does sed write to the file or give a sample output

when using sed with a file like this sed 's/a/o' fruits it gives the necessary output to the terminal but it does not change the contents in the file. How do I permanently change the file with the ...
16
votes
3answers
9k views

How to get near-perfect screen recording quality?

Someone suggested I direct a copy of the unmodified X display to a file and afterwards convert that file to a general purpose video file. What commands would I use to do this on a Kubuntu system? ...
0
votes
1answer
2k views

Can't load IA 32-bit .so on a IA 32-bit platform

I'm trying to install an 32_bit_application on CentOS (64-bit), while running the setup.bin file it return the following error Invocation of this Java Application has caused an ...
2
votes
2answers
263 views

Fake installation of java-runtime package?

I don't use openjdk environment, and I've got oracle java installed, then linked the java / javac binaries to /usr/bin. Now when I build packages that requires java-runtime package, I had to edit the ...
0
votes
1answer
2k views

Arch Linux: Apache just isn't interpreting the index.php files

Title is self explanatory. I'm on Arch Linux, I installed the apache, php, php-apache and mariadb packages. I have added the following line to the /etc/httpd/conf/httpd.conf file: LoadModule ...
3
votes
1answer
188 views

Program for identifying files from unfinished torrent-downloads?

Are there any programs that can help identify files and directories belonging to unfinished bittorrent-downloads? I've made a mess, and I'm unsure of which downloads are finished and which are not. ...
2
votes
3answers
297 views

Any programs suitable for making a database over disk-content?

I have quite a lot of external hard-drives, and often have a hard time finding what I'm looking for - not to mention not storing the same file several times on different drives or finding free space ...
4
votes
1answer
668 views

How can I silence ssh-agent?

I have a script like this one at my .bashrc file at the mysuer home: eval `ssh-agent` ssh-add /path/to/my/key The problem is I have this output when I log with the user mysuer (su - myuser): Agent ...
2
votes
2answers
656 views

Creating an Alias to Loopback Interface with an Arbitrary Name

I have an odd problem that seems simple enough but has evaded me thus far. I am attempting to support a legacy application that has a hard-coded ethernet device name ("eth0"). This hard-coding, I am ...
4
votes
2answers
476 views

tac command's option creates strange output [comprehension question]

Say I have this file, containing nothing but a b c b a Using tac --separator=a file in BASH [on a Debian based Linux], I get this: # empty line # empty line b c ...
4
votes
1answer
510 views

Making a recovery partition in embedded Linux

I have an Atmel SAM9X system running Angstrom. I am trying to make a recovery partition so when a user holds a button during boot up the recovery partition boots up. I have modified the bootstrap so ...
0
votes
1answer
968 views

Bad wifi with MacBook Air mid 2012

I have a MacBook Air mid 2012 with i7 CPU. The one with Ivy Bridge. I have connectivity problems with wifi running Arch Linux which I keep updated regularily. Throughput and response time performance ...
8
votes
2answers
8k views

wlan number assignment

How or where does Linux determine the assignment of a network device? Specifically, wlan0 or wlan1 for wireless USB devices. I plugged in a TP USB wireless a while ago, and it was assigned wlan0. I ...
3
votes
1answer
5k views

Will I have to dist-upgrade from wheezy to Jessie?

I am running Debian testing (my sources.list is deb http://ftp.us.debian.org/debian testing main ). When Wheezy comes out (testing becomes stable), will testing automatically point to the new ...
0
votes
2answers
55 views

Sound is staticy on Squeeze

I have recently setup a Debian Squeeze virtual machine, which uses OpenBox, via VirtualBox and got things work somewhat right, but I am having issues with sound. When I launch Google Chrome, which ...
-1
votes
1answer
172 views

Why I cannot download pdf files?

I use Debian (Linux) and since some day I cannot download any .pdf file. I don't know if it's because of the web browser (I'm using Epiphany and the other ones do not work). I don't know how to use ...

15 30 50 per page