0
votes
0answers
3 views

Raspberry Pi OpenVPN SSH problem

I followed this tutorial to configure OpenVPN and it and runs very well: http://blog.frd.mn/raspberry-pi-vpn-gateway/ Now I want to access my Raspberry Pi via SSH. OpenVPN is most of the time ...
-1
votes
0answers
13 views

I can only install few linux distros

I have a big problem installing some linux distros. I can install some of them, some of them can only run in live mod and after their installation I get black screen. For example, I can install ubuntu ...
-1
votes
1answer
10 views

Manually install SSH service

I have a CCTV camera DVR at work that only allows local login for DVR software management via a command line console (looks like a GUI you'd get on a serial console) or web login for viewing the ...
0
votes
1answer
10 views

Deleted all files in dir, except ones within a json file

I have a static assets server with 1 million+ images sitting in a folder, most of them I don't need anymore. I have a list of the filenames I do still need in a .json file. How in bash can I delete ...
0
votes
0answers
4 views

Release for VLC 2.2.1

I'm running Debian 8 (Jessie), and I've been waiting for months and months for vlc 2.2.1 to come out. Is there a way I can track the package (in terms of what phase it's currently in) so I can get an ...
0
votes
2answers
10 views

Fixing fstab after reformatting swap

I just made a small mistake and reformatted my swap partition. It's still formatted as a swap partition - I was fortunate not to touch anything more important. However, I notice that the uuid has ...
0
votes
0answers
6 views

Counting number of processes in Minix

I need to create a user program that will be able to see how many processes are running with help of system calls. I found out that getsysinfo() function can give me the result but I get error when i ...
0
votes
0answers
11 views

CUPS & Raspbian - Printer turns on but does not print

I am new to the UNIX exchange... I have been setting up a home print server on my raspberry pi using CUPS. I have managed to get it to work with one of my printers, but not with an older Laser ...
0
votes
0answers
3 views

Having trouble installing libirecovery from source

Here is the output I get from the make command. I have readline installed but it is still throwing this error. What am I doing wrong here? root@Kali:~/idevice/libirecovery# make make all-recursive ...
0
votes
1answer
26 views

() { :; }; in user agent on server logs

Can anyone tell me what someone is trying to do with the following code in their user-agent: () { :; }; echo Content-type:text/plain;echo;echo;echo M`expr 1330 + 7`H;/bin/uname -a;echo @ I have a ...
0
votes
1answer
7 views

Logout from jail

I'm trying to use FreeNAS on my office along with Syncthing, and some things are giving me headache. FreeNAS installed Syncthing as a jail, and I did the jexec command to login into the jail, but now ...
0
votes
0answers
2 views

Is there any reason the hardware watchdog (itco_wdt) would react to the NMI watchdog firing after a reboot?

I have a script which unloads the hardware watchdog and loads the softdog module, then reboots (in case the system hangs, so it will still reboot, but not wait for F1 to be pressed as the hardware ...
-1
votes
6answers
32 views

network: destination host unreachable

So Im using linux oess(centos). in the terminal im trying to ping 8.8.8.8 to see my connectivity. so it says: Network is unreachable Than I typed ifconfig: inet addr: 192.168.56.101 ...
5
votes
8answers
93 views

Split text file into lines with fixed number of words

Related, but no satisfactory answers: How can I split a large text file into chunks of 500 words or so? I'm trying to take a text file (http://mattmahoney.net/dc/text8.zip) with > 10^7 words all in ...
1
vote
3answers
23 views

New signal arrives while execution is in a signal handler, how to decide which is first?

I am working on a tool handling a massive amount of signals (with different signums) with sigaction(). I need to handle the case, if a new signal is coming, while the previous was in a signal ...
0
votes
1answer
24 views

Mkdir add number iteration

Lets say I have folder1 and I wanted to automatically make a folder2. Now lets say I ran this again and I wanted it to now make folder3, folder 4, and so on for each time I ran this. What would be the ...
5
votes
5answers
118 views

What are the alternatives to the FHS?

Please don't crucify me for asking this question. :) I'm a long time Linux user for over 15 years but one thing I hate with a passion is the mandated directory structure. I don't like that /usr/bin ...
0
votes
0answers
7 views

Number of CPU cores versus frequency of cores in Qemu/Openbox

I plan to build a workstation mainly for running virtual machines. There will be dozens of virtual machines and they do not execute computationally expensive tasks. I will use mainly Qemu as an ...
0
votes
1answer
26 views

Linux: root filesystem via network (with authentication)

I try to create a linux computer which loads its root filesystem from the network. This currently works with NFS, but unfortunately it is not very secure. The network is just a home network, which ...
0
votes
0answers
18 views

shuttle xs35v2 - can't boot from usb drive

I'am trying to install lubuntu on a new shuttle barebone xs35v2. I have tryed with various usb-sticks and diffrent versions, e.g: lubuntu-net installer, lubuntu 62 and 32, and standart ubuntu-version! ...
1
vote
2answers
30 views

With awk, how to Insert a number only for lines starting with “Toto” when they are between a specific couple of patterns

With awk, I would like to insert a numbering like Record n°i# in front of each line starting with Toto only when they are located in-between two specific patterns start=ABCD and stop=EFGH. Input file ...
2
votes
1answer
10 views

How to replace a device in BTRFS RAID-1 filesystem?

I have a BTRFS RAID-1 filesystem with 2 legs. One disk needs to be replaced because of re-occuring read errors. Thus, the plan is: add a 3rd leg -> result should be: 3 way mirror remove the faulty ...
1
vote
1answer
25 views

How to know before compilation which dependencies a package will need?

I want to install a package on Ubuntu 14.04 using ./configure; make; sudo make install, however, it is failing due to several missing libraries. How can I produce a list of needed packages and ...
0
votes
1answer
26 views

How to assign two iface to different subnets?

I have a ethernet connection eth0 and a wifi usb connection wlan0 on my raspbian box which both connect to a router with internet. In my etc/network/interfaces file I have a setup that allows me to ...
0
votes
1answer
12 views

working of pthread_join(tid,&retval);

Why main function calling pthread_join(tid,&retval) does not wait for thread with thread id equal to tid to close? Details - I am trying to create simple file copying program with multi-threading ...
0
votes
2answers
15 views

Are there any drawbacks/caveats to changing process priority on linux?

I'm writing a program launcher that uses nice to launch X applications with a higher than usual priority and while there's plenty of guides to using nice/renice there's not much discussion about best ...
2
votes
2answers
90 views

Is it possible to transfer file from a Linux bash script to Windows without mounting the server folder?

I am writing a script (bash) to transfer files from my local linux machine to Windows servers. The Windows servers are accessible normally using the SAMBA shares and I am able to mount a folder to my ...
-1
votes
0answers
14 views

Unable to replace apache2 conf using sed command [on hold]

sed '//,// s/AllowOverride None/AllowOverride all/' /etc/apache2/sites-available/default Output: sed: -e expression #1, char 38: expected newer version of sed
0
votes
0answers
19 views

Vi-mode shell with Tmux

I want to try using vi-mode shell with Tmux. The reason i want this is to be able to use modal-mode key binding (some g combination or leader key) as Tmux prefix, thus potentially simplifying ...
-1
votes
0answers
13 views

MultiBoot Linux Distros LVM LUKS, How to?

The scope: Have three linux distros(1 BSD) on a cryptodisk with a LVM instead in one computer, so must have a grub2 boot. Did tests and tests but without a success. Following this tutorial ...
0
votes
3answers
36 views

How do I check if a given parameter is in an given array?

I have a shell script script.sh like this: names=( jack john jerry) And I want the user to type any of these three names as its first parameter, just like: ./script.sh jack If the user typed a ...
0
votes
0answers
12 views

fs_usage: a part of stdout is missing.. Where did it go?

I'm using $ fs_usage -f diskio to spy on processus when I hear my hard drive spinning for no reason, so that I know who is working so hard.. Here is one sample line: 16:14:13.785568 ...
1
vote
0answers
19 views

How to force Debian to use a newer version of OpenSSL?

Today I installed ,,empty'' (just minimal set of packages) Debian 8.1 on my VirtualBox. I wanted to play with compiling apps from sources. I started with OpenSSL: compiled from sources OpenSSL ...
0
votes
3answers
49 views

What if I don't want to do anything in a if-then block but something in its else block?

#intro if [ -n "$1" ] then echo 666 else echo 555 fi exit; Actually I do want to echo 555 while I don't want to do anything in the first block, what should I do? I noticed ...
0
votes
2answers
35 views

how to echo $, & symbols correctly?

It'd be a very stupid question but I failed with some existed answers. what I need is very simple: out put &a on the screen while there is already a defined variable a. Here is what happened in ...
0
votes
0answers
31 views

I can't ping the gateway

The network error is that I can't ping the gateway after ip forwarding configuration. Here's the my configuration: linux microcore(server)(First PC) sudo su ifconfig eth0 192.168.2.200 netmask ...
0
votes
1answer
15 views

CentOS and a small boost example

I ask this question here, because I think, it has more to do with linux than with boost itself. So i created a small cpp file: #include <boost/math/special_functions/round.hpp> #include ...
0
votes
1answer
21 views

To find files like '-file9' files [duplicate]

This is Venkat I was created a file. Name is '-file1'. So how can we open or find these type of files Thanks, Venkat.K
0
votes
1answer
29 views

Remote execution of a file is not working

I'm trying to execute a local file (here /tmp/cmd) on a remote machine (slc05bkt) using SSH. Here's the command I'm trying from a script file: cmd="ssh -v ssuthari@slc05bkt \"bash -l -s\" < ...
0
votes
1answer
22 views

Sudo Apache, with command line ? (not visudo)

I have visudo-edited /etc/sudoers this way: User_Alias APACHE = www-data Cmnd_Alias FIREWALL = /sbin/iptables, /sbin/ifconfig, /sbin/route APACHE ALL = (ALL) NOPASSWD: FIREWALL (To allow php ...
0
votes
2answers
19 views

link cut, find length and cut the new text with the first text's length

I'm stuck up with the below situation. there are two files - sample.war & sample1.48.war now, I've to cut only the first field of the first file. i.e., 'sample'. Next, I've to count the total ...
-3
votes
0answers
14 views

how to run reaver on dsl

I want to run reaver for hacking nearby wifi but I do not want to download the whole kali Linux for it. So I tried kali Linux mini but I had some problem installing it. So now I downloaded damn small ...
0
votes
3answers
21 views

extract url between 2 strings in a file

I have a file in which each line is like this "372"^""^"2015-09-03 06:59:44.475"^"NEW"^"N/A"^""^0^"105592"^"https://example-url.com"^"example-domain < MEN'S ULTRA < UltraSeriesViewAll ...
2
votes
3answers
41 views

How to add “wrappers” around methods in source code based on a pattern, using sed, awk, grep and friends

How can I add wrappers to a file based on a pattern? For instance I have the following: ... find(css_policy_form_stage3).click with_ajax_wait expect(css_coverage_type_everquote).to ...
0
votes
3answers
35 views

Shell Script to change locale has no effect

I wrote a simple script to switch my locale. If I write each line in the console and execute it, it works without any problem or if I put it in .bashrc. However when I execute the script either with ...
0
votes
2answers
30 views

Find the time of the file received in a particular directory

I have a directory called /home/mydir/test A file will be sent from some other team which lands in this directory. How to find what is the time the file came to this particular directory? ( I need ...
1
vote
0answers
31 views

How do I find out hard disk model and serial number in amazon machine?

when check in local machine /proc/scsi/scsi file it contains Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: ATA Model: ST3160215AS Rev: 3.AA Type: Direct-Access ...
-1
votes
1answer
28 views

error while changing directory using crontab [on hold]

This is my script I am trying to rename the files in folder. rename1.sh ---------- #!/bin/bash cd /home/lanein1/WestonIN7pm/"$(date +%Y-%m-%d)" && rename s/WestonIN/WestonIN7pm/ *.jpg cd ...
3
votes
3answers
162 views

Help with bash script

I am teaching myself bash scripting with the book 'Learning the Bash Shell' by Newbam. I'm getting on OK with the book, but am a bit confused by the following script. It is a script which uses a for ...
5
votes
3answers
923 views

make a process unkillable on linux

I'm working on password manager application, and for security reasons I want to launch an unkillable process. And besides I don't want this program to be a daemon since I need to read from standard ...

15 30 50 per page