0
votes
0answers
2 views
Sharing a keyboard over point to point network
I tried following http://superuser.com/questions/67659/linux-share-keyboard-over-network but had no success with the #1 solution.
Then I tried socat and I had partial success -- it does work but ...
0
votes
0answers
5 views
Why gzip doeznt decompress if set extension two times
If one creates two files, say, foo1.gz (.gz is just typed by myself) and foo2. Then compress them with gzip --force (to escape gzip: foo1.gz already has .gz suffix -- unchanged message). Now we have ...
0
votes
0answers
3 views
C compiler Problem Ubuntu
Recently i was trying to install cpuminer and i ran this code to configure it
./configure CFLAGS="-03"
when this error came up
checking whether the C compiler works... no
configure: error: in ...
0
votes
0answers
2 views
How to install Wine 1.7.50 on mac
I want to install WineHQ 1.7.50 on macbook pro as it supports DirectX11. I tried installing it from source but I get random warnings but no errors were thrown.
./configure
make depend
...
0
votes
1answer
8 views
How do I get / available space with “df” and output it to a log file?
With the command of df, I can get something like:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 197844228 15578648 180242500 8% /
devtmpfs 4101368 0 ...
0
votes
0answers
15 views
Unix with lisp built in
What is the smallest linux distro that readable makes use of something like lisp?
Ideally I'm looking for something similar to lisp although it doesn't have to be.
0
votes
0answers
3 views
Can I make a degraded RAID-Z on NAS4Free?
Here is my situation.
Old whitebox PC. I planned to change this to home NAS with three 1TB HDDs.
But I found out one of them needs to be replaced.
So only two drives are available now. Third ...
0
votes
1answer
7 views
MySQLdump via crontab - Pass --password=/hashed/password/file so I can use via crontab w/o using plain text password
So I'm setting up a WordPress backup guide/making a backup schedule for myself for real.
I want to do MySQL dumps daily, but the command either requires
-p then user input
or
...
2
votes
0answers
9 views
Deleted my ssh keys
I'm on a Mac (OSX).
I've accidentally deleted my ssh keys, but I haven't restarted my computer yet so I'm still able to access servers with my key. I guess the ssh-agent has some form of it in ...
0
votes
0answers
3 views
extract email/web address from .CFM file in C program
i am learning C and would like my program to do the following on a Linux platform
Use System call to execute WGET command (Done)
Use WGET command to download webpage (Done)
Loads and Parse downloaded ...
1
vote
0answers
2 views
EFI boot and RAID6
I am a Linux beginner and I am trying to install SLES on a server with 8 HDDs, 3 TB each, but I am testing the configuration first on a VM (virtualbox).
I tried following configurations and both got ...
0
votes
4answers
20 views
Rename first part of multiple files with mv
In a directory there are these files and more:
file1.txt
file1.html
file1.pdf
...
Every file1 should be replaced with newfile:
newfile.txt
newfile.html
newfile.pdf
...
I've tried:
for f in ...
0
votes
0answers
5 views
How does aircrack-ng suite view Clients on networks we are not connected to?
I noticed with the tool airodump-ng which is apart of the aircrack-ng suite we can view all networks around us along with Client MAC address's which are connected to these networks.
How can I acheive ...
0
votes
0answers
6 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
17 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
11 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
12 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
1answer
5 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 ...
1
vote
2answers
13 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
12 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
30 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
5answers
37 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
...
7
votes
8answers
106 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
24 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
25 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
149 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
33 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
31 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
0answers
12 views
working of pthread_join(tid,&retval); [migrated]
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
91 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
15 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
38 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
20 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
36 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 ...