0
votes
0answers
3 views

Data integrity after GPT restore on Mdraid configured disk

I've restored backup GPT headers on previously GPT partitioned disks that are member of a Linux software raid (mdraid). This was done because partprobe reported corrupted headers. Now actually ...
1
vote
1answer
11 views

How to make my bash script be able to create an log file for a clamscan running in cron?

I've created an custom clamscan(clamav) in bash and when I run it in my shell everyhing is fine, but if I run it in a cron, it can't create the log file. This is the error: /root/Scripts/clamscan : ...
-1
votes
0answers
5 views

Firewall rules for user groups

Is there a way to define of firewall rules that are only applicable for a specify user group or a user? Assume I have a user ABC that is not a sudoer on a box, I would like to ABC to follow ABC's ...
1
vote
1answer
9 views

Process ownership on linux changes to root when the user tries to kill the process

We have a bunch of RHEL machines which all run an application binary that is owned by root and has SUID set. Let's say user X starts the application, the process starts with PPID 1, since SUID is set ...
-2
votes
1answer
20 views

Shell Script to copy the file to another folder

I am new to Linux, I have to write .sh file which will be called from .Net Application. Script.sh has to move the file from rootdirectory to a specified folder. I am expecting to pass SourceFilePath ...
1
vote
2answers
15 views

Server running on guest Linux VM will not accept connections from Windows host

I have a simple echo server program running on CentOS 7. If I run both the client and the server in the VM, I can connect to the server. I'm using VirtualBox with the "bridged" network configuration. ...
1
vote
1answer
13 views

Who is user “unset” in aureport?

I couldn't find this elusive "unset" user in /etc/passwd and there is no mention of him in man aureport although she scored the most number of hits on my audit log: # aureport -u -i --summary --start ...
0
votes
2answers
27 views

tcpdump doesn't appear to be capturing any data, why?

I'm trying to capture data with tcpdump like so: $ sudo tcpdump -Xi eth0 I have the device and the PC connected to each other. On both sides I launch a simple test application that sends a message ...
2
votes
1answer
35 views

How to Mount a Drive with Right Filesystem?

I am trying to mount the device /dev/xvdc on my CentOS system. When I run an fdisk command I get: Device Boot Start End Blocks Id System /dev/xvda1 * 1 33 ...
0
votes
1answer
19 views

Mysql Database files read access

Right now I'm trying to set read access to the files of one of my databases. I'm using debian with basic mysql installation so the database location is /var/lib/mysql. I want ...
0
votes
0answers
8 views

Fedora 20 - Use defined webapps fonts [migrated]

I am a web developer. Everyone who works in this business knows how important the look and feel is (I mean take a look at apple). When I'm browsing my application via Chrome or Firefox i see a ...
-3
votes
0answers
31 views

Create my own shell? [on hold]

i need to create a shell in C using fork() and execv() that prompts the user to enter a command followed by a space and an argument. It should then exit as soon as the user enters exit command
2
votes
1answer
58 views

Do I have thousands of attempts to breach my system in this log from logwatch?

I'm setting my systems up to send me reports by email. I'm posting one log report (see below). This log shows that there are thousands of attempted break-ins. Questions: I have denyhosts and ...
-2
votes
0answers
21 views

How to separate upload and download on two different internet providers? [on hold]

I have two different internet providers. Can I use one for upload and the other for download? In particular, can I send internet packets with one and receive internet packets with the other? How?
1
vote
1answer
16 views

Does -o and -i make sense when the target host is already connected to the interface specified?

iptables -A FORWARD -s 192.168.20.7 -d 10.10.48.3 -p tcp --dport 25 -o eth1 -j ACCEPT iptables -A FORWARD -s 10.10.48.3 -d 192.168.20.7 -p tcp --sport 25 -i eth1 -j ACCEPT Tuning the firewall of my ...
1
vote
1answer
42 views

Disadvantages of Ubuntu installed inside the Win vs next to Win

Are there any disadvantages of installing Ubuntu inside the Win using installator vs next to Win using bootable device? For example: My user account (on Win) contains diacritics which causes problems ...
1
vote
1answer
13 views

sendmail displaying issues

I'm having a issue with sendmail. I'm sending echo multiple text with sendmail (1 liner) but it isn't breaking up the line. my code is like this: $ echo "$text1\n$text2\n$text3\n$text4 | mail -s ...
1
vote
1answer
19 views

Error while installing glibc-2.14 from source

The version of glibc in the repository is 2.13 so I couldn't use apt-get to install it. I downloaded the source code of glibc-2.14, but when I run ./configure command I get this error: checking for ...
-2
votes
0answers
15 views

NumberLong by the converting of the bson file

I use next command to convert bson file into a json file: bsondump test.bson > test.json If some line has a numeric values, I get output in the strange format back: "key": NumberLong(127836213) ...
1
vote
2answers
45 views

Shell script throws a not found error when run from a sh file. But if entered manually the commands work

Im trying to use the following script to generate a sitemap for my website. When I run it I get an error like this and creates an empty sitemap.xml file : thsitemap.sh: 22: thsitemap.sh: [[: not ...
0
votes
1answer
21 views

Merging two tables including multiple ocurrence of column identifiers and unique lines

I asked a similar question yesterday (Merging two tables including multiple ocurrence of column identifiers) but ran into a problem with unique lines. I would like to merge two tables based on column ...
7
votes
2answers
185 views

Why does `kill -l` not list error code of 32 and 33?

Executing kill -l on linux gives: 1) SIGHUP 2) SIGINT 3) SIGQUIT 4) SIGILL 5) SIGTRAP 6) SIGABRT 7) SIGBUS 8) SIGFPE 9) SIGKILL 10) SIGUSR1 11) SIGSEGV ...
-1
votes
0answers
18 views

Script for restart web server automatically when machine (server) restart

I am new in Linux, I am working on weblogic server and I have a script to start weblogic server and its all services. My question is where should I write this script or move, so it will call ...
0
votes
1answer
6 views

How to recover firmware on a embedded device with corrupted u-boot and kernel image?

My embedded device is not working after updating firmware. Thus I tried to update firmware using u-boot. I could successfully get u-boot console via serial connection, but updating firmware failed due ...
0
votes
0answers
9 views

Mutt: Emaillist emails not be shown in inbox and still readable in some file, how to do it?

I get emails from mail lists such as best-h@list.ayy.com. I don't want them to my inbox, I want them to a new inboxes that I can only read when I select them or basically move all mails like this to a ...
0
votes
0answers
13 views

Make upstart log to /var/log/upstart/<service-name> directory

By default upstart logs to /var/log/upstart, and all the service logs are under the same directory. I want to have a directory under /var/log/upstart (say, /var/log/upstart/myservices where all my ...
0
votes
1answer
23 views

Removing duplicated files in the rootfs - to speed up booting time, and improve memory usage

With Buildroot I'm making images for my Embedded Linux Hardware. Mainly I'm trying to speed up the boot sequence (and on the way lower the memory usage), where I've tried many techniques successfully. ...
1
vote
1answer
28 views

How to create dummy webcam?

I would like to join some videoconference, but I don't own a webcam and the conference software requires one. So my question is, can I create a dummy one? I don't care what the cam will cast, I just ...
0
votes
0answers
10 views

NAS set-up issue with NFS protocol in linux Mint

I have a Synology NAS that I'm trying to map in my Linux machine as if its like a regular HDD drive. I have looked all over the internet without being able to figure out how this thing works. I have ...
1
vote
0answers
6 views

xkb: Use a key to change shift level without appearing as a modifier

I'd like to configure XKB to use Caps Lock as a way of producing different keys, but I don't want it to appear as a modifier. For example: F1 produces F21 keypress Caps Lock + F1 produces F1 ...
0
votes
3answers
27 views

Replace word instances with its count attached to it

I have a file which contains word 'name' multiple times ( 250 times ). I need to replace every instance of 'name' with its count attached to it as name_1, name_2, name_3....name_250. Can I do this ...
-1
votes
1answer
20 views

How to use diff command to compare the output of 2 command?

How to use the diff command to compare the output of 2 command. Can I use like this diff ($cat /etc/passwd) ($cut -f2/etc/passwd)
1
vote
3answers
45 views

Sed — Replace first k instances of a word in the file

I want to replace only the first k instances of a word. How can I do this? Eg. Say file foo.txt contains 100 instances occurrences of word 'linux' . I need to replace first 50 occurrences only.
0
votes
0answers
12 views

third party linux auditing software

Linux has a audit system built-in in its kernel and a user space process called auditd reading the system calls intercepted by the kernel. Are there alternate solutions to the Linux Audit system ? I ...
1
vote
0answers
18 views

Find something that is occupying lots of memory and not visible in `ps` or similar

I have a VM that's having memory issues. One of the tasks I'd like to run in it is crashing with out-of-memory errors. However, when it crashes, the system still stays memory starved. I'm not sure if ...
0
votes
0answers
8 views

tar en Meme Suite [on hold]

I'm using Mac OS X 10.9 Mavericks and wanted to install a program bionformatic called Meme Suite but I get the following errors: tar:Error opening archive Failed to open 'meme_4.9.1_2.tar.gz The ...
0
votes
1answer
11 views

xkb: Assign a new shift level to function keys

I'm trying to get some more use out of my function keys. I would like the physical F1 to F12 keys to appear as F21 to F32, so I can assign functions to F21 etc. in my window manager (e.g. switch to ...
7
votes
4answers
445 views

Is it correct to use certain special characters when naming filenames in Linux?

Is it correct to use certain special characters, as +, &, ', . (dot) and , (comma), basically, in filenames. I understand that you can use - and _ with no problem, but doing some research I have ...
2
votes
2answers
24 views

zmv command to rename file after matching pattern

I was trying to figure out a solution for this question using zmv. I am unable to find an exact solution using zmv. This is what I could come up with so far. From here, I could rename all files like ...
1
vote
0answers
11 views

How can you annotate or club info into ELF core files on Linux?

For debugging core files it would be useful to add additional information into a core file at the time it is generated. I'm currently using /proc/sys/kernel/core_pattern to run a 'dumb' script that ...
2
votes
2answers
28 views

How to use/test pivot_root?

I want to test the pivot_root command which moves the root file system of the current process to the directory put_old and makes new_root the new root file system. But I always get the following ...
0
votes
1answer
5 views

Linux [admin] How to test pivot_root?

I want to test the pivot_root command line, which moves the root file system of the current process to the directory put_old and makes new_root the new root file system. ...
2
votes
0answers
15 views

Advantages/disadvantages of increasing “commit” in fstab

I have done many obscure system optimizations in the past, but I got rid of most of them after powertop told me I should set my USB ports to autosuspend, which forced them to an eternal sleep, and ...
0
votes
0answers
45 views

How to match this regular expression in bash? [on hold]

I'm trying to match the sub string "~goddog" in the string "sort -u ~goddog/classes". I've defined two variables as below: cmd="sort -u ~goddog/classes" #eid="gogdog" eid="goddog" The following ...
0
votes
0answers
13 views

change search regex pattern in Emacs?

I start regex search by C-M-s. After typing in some pattern, I would like to edit the pattern shown in the bottom bar. But it seems that I can only append new characters at the current pattern, but I ...
0
votes
1answer
24 views

Trying to access environment variable (array) declared in ~/.profile from shell script

I'm currently fighting with this problem. I've already read some older posts here on SE, and got the conclusion that the only sane way to put a variable (even an array) is ~/.profile. So OK, array ...
5
votes
4answers
228 views

How to rename to fixed length

I have files named as 0-n.jpg for n from 1 to 500, for example. The problem is that some guy using Windows didn't use leading zeros so when I do ls I obtain 0-100.jpg 0-101.jpg ... 0-10.jpg ... ...
-1
votes
2answers
27 views

Recover data from linux partition

Somehow I managed to really mess up my debian installation and I will have to reinstall it. However I have some data on the partition that I really want to save. Is there any way to access the data on ...
-1
votes
1answer
24 views

Hardware problems, can I reinstall OS?

I have managed to break physically break my internal screen on my laptop, I have a sony vio E17 which is connected to a external screen. Yes I have unplugged the internal screen. My main and root ...
5
votes
1answer
90 views

Is the Unix process scheduler itself a process?

Is the Unix process scheduler itself a process, or does it piggyback on other processes in the same way a system call does (running kernel code in the user process with the kernel bit set)?

15 30 50 per page