Questions tagged [linux]
A family of Unix-like operating systems using the Linux kernel. If your question is about a certain distribution only, use a more specific tag.
58,803
questions
1
vote
1
answer
472
views
bash xargs: same command gives different output
When I run
ls -1 *.a | xargs -I{} echo {} | sed 's/.a//'
The output is
1
2
3
When I run
ls -1 *.a | xargs -I{} bash -c "echo {} $(echo {} | sed 's/.a//')"
and the output is
1.a 1.a
2.a 2.a
3.a ...
1
vote
1
answer
4k
views
Shell script fails when executed by systemd service
So I have a systemd service called startup.service:
[Unit]
Description=startup scripts
[Service]
Type=oneshot
ExecStart=/home/user/Documents/Tools/Scripts/startup.sh
[Install]
WantedBy=multi-user....
1
vote
1
answer
3k
views
Difficulty getting /etc/rc.d/init.d tomcat startup script working
I have the following startup script that on reboot does not bring up tomcat:
#!/bin/bash
#
# description: Apache Tomcat init script
# processname: tomcat
# chkconfig: 234 20 80
#
### BEGIN INIT INFO
#...
1
vote
1
answer
11k
views
Grub rescue mode after deleting kali linux
I have a Windows 10 PC where Kali Linux was installed as a dual boot. I deleted the Kali partition from computer management. After I rebooted my PC, I got GRUB rescue mode > unknown filesystem.
set ...
1
vote
1
answer
795
views
How to drop privileges in a Debian Chroot?
I'm testing some software under Debian X32. Its a chroot environment, and its entered upon as root. Some of the tests are failing because of the root account:
make test
...
# Failed test 'Testing ...
1
vote
1
answer
998
views
Weird error when trying to upgrade to Fedora 24
I'm following the instructions posted on Fedora Magazine (https://fedoramagazine.org/upgrading-fedora-23-workstation-to-fedora-24/). I'm getting this message after dnf downloads everything:
Error: ...
1
vote
1
answer
1k
views
Prevent Matlab from creating java.log.* files in the home directory?
I've recently started using matlab. If started with the jvm, log files will be created in the home directory (a different one every time it starts up).
Opening log file: /home/max/java.log.4363
...
1
vote
1
answer
419
views
Why doesn't my web site's port forwarding work?
I have made a website on my Raspberry Pi that works perfectly over the local network. It is running on lighttpd.
I have setup a DNS entry on No-IP (pumpkinprograms.ddns.net) and I know that it works ...
1
vote
1
answer
575
views
Script not working in crontab
I have a script to start my minecraft server each reboot. I can see in the logs it's calling the cmd, but no screen is being opened. If I work run the script manually /home/minecraft/scripts/...
1
vote
1
answer
49
views
Linux OS crash randomly
Randomly, when I tried to open the Linux native browser the computer froze and after a couple minutes went to black and is giving me the error message:
[256657.388021] nouveau E[Xorg[1344]] failed to ...
1
vote
1
answer
442
views
Why does this email not arrive?
I have been attempting to send an email from the command line to myself, but the message does not appear in my inbox (or in spam or anywhere else). Below is the command I used, and a copy of the log. ...
1
vote
1
answer
13k
views
Error: Could not find or load main class with OpenJDK and Oracle Java on CentOS 7
On CentOS 7.2 Linux I have successfully downloaded and installed Oracle Java with:
# rpm -Uvh jdk-8u91-linux-x64.rpm
Also there is already OpenJDK installed:
# rpm -qa | grep -i jdk
java-1.8.0-...
1
vote
2
answers
140
views
SSH connector service
I have a number of linux computers at home, at uni, and my android phone. I'd like some way to be able to SSH to any one of them at any time, but they're all hidden behind different networks, and they ...
1
vote
1
answer
379
views
command option confusion in curl on Linux
Wondering what is the function of @ sign? Here is an example command,
curl -w "@curl-format.txt" -o /dev/null -s "http://wordpress.com/"
Here are more related backgrounds,
https://stackoverflow.com/...
1
vote
1
answer
2k
views
Check if a script completed executing instead of exiting
I'm working with a script that I cannot modify, that does not use exit codes. (all exits are simply 'exit')
Without modifying the script (or yelling at the idiots who wrote it), is there a way to ...
1
vote
1
answer
492
views
Redirect keyboard input to unfocused program
While one program is focused (a full screen web browser) I want to pass keyboard input to another unfocused program (an ssh terminal) in Raspbian/Pi3.
1
vote
2
answers
2k
views
init.d how to start a service in init.d when networking fully works?
I have a python script which exposes a RESTful service (using flask framework). What I would like to do with this service is that it clones the newest version of the python script, and then it starts ...
1
vote
1
answer
242
views
Errors installing nginx on Linux- wheezy
I have a remote server(Linux debian version: 7.8), which is not connected to outside world due to some security issues at my company. For this wheezy os: I see only version available for nginx is : 1....
1
vote
2
answers
977
views
Will running a windows OS in a VM with my graphics card being passed through prevent the host OS from using the graphics cards for display output?
I'm planning on running a linux host OS with a triple monitor setup connected to the graphics card. Of course, I have games that only work on windows so I was planning on running a Windows VM in ...
1
vote
2
answers
876
views
gtk_widget_set_realized was not declared in this scope
I'm trying to compile OpenCV 3.1.0 on RHEL 6.4 and getting the following error:
[ 34%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_gtk.cpp.o
/hpcf/libs/opencv/vendor/...
1
vote
2
answers
2k
views
How do I wait for a connection to be established?
I need to wait until a target host is up and running and accepting connections on a specific port.
I want to use this as a part of the ssh -o ProxyCommand command to wait until the target host has ...
1
vote
1
answer
42
views
Are device IOs handled even when a device is not opened by any process?
The following shell program examples makes the question clearer.
Given a simple character device (a ftdi ttyUSB device in my case), I send it a request with echo to open();write();close(); the device,...
1
vote
1
answer
10k
views
Missing /var/log/messages file in CentOS 6.8
I'm not sure what I'm doing wrong, but my Linux box doesn't seem to be logging any info to the /var/log/messages file.
I've also checked and the kernel isn't logging anything either.
My syslog ...
1
vote
1
answer
506
views
How to set PHP timezone for cloud based web server distributed to different geographic regions?
I'm getting the following warning while running php -i:
PHP Warning: Unknown: It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the ...
1
vote
1
answer
721
views
How to find the user who is running rsync?
In Linux, if rsync is already running, how can we identify which user is running it? And what if it is running as cron job, will the cron job user be different?
1
vote
2
answers
1k
views
How to uninstall SmartSVN on Ubuntu
I cannot find any information on how to cleanly uninstall SmartSVN on Ubuntu. I'm not using it at the moment and part of the reason is that on the latest Ubuntu upgrade it has somehow hijacked some of ...
1
vote
1
answer
5k
views
Dbus: How can I monitor process?
I'm new with Dbus and I'm curious if there is any way to monitor process and see if this process receives any Dbus messages. (I'm working on some project and want to know if Xserver receives any Dbus ...
1
vote
1
answer
2k
views
Debian Testing, iwlwifi-7260 issue
I'm trying to install Debian Testing but I'm actually stuck in the wifi configuration. It asks for:
iwlwifi-7260-13.ucode
iwlwifi-7260-14.ucode
iwlwifi-7260-15.ucode
iwlwifi-7260-16.ucode
iwlwifi-...
1
vote
2
answers
357
views
Delete files with same size but keep always one file?
I have a directory full of zipfiles, that contain many files. They are created by software and this is currently not fixable. I tried to work with fdupes, but this process took too long, because there ...
1
vote
1
answer
1k
views
Can not change permissions while root
I use Kali Linux and discovered the following "problem":
root@kali:/proc/self# ls -l cmdline
-r--r--r-- l root root 0 May 27 13:43 cmdline
root@kali:/proc/self# chmod 744 cmdline
chmod: changing ...
1
vote
2
answers
115
views
Is it really necessary to restart the PC after an update? [duplicate]
This question came to my mind mostly because I rarely restart my Linux laptop, so I wondered if this has any negative consequences. Updating is basically just patching applications, so I could imagine ...
1
vote
1
answer
217
views
Java GC Monitoring on Linux
On Windowssystems I use jvisualvm to monitor the GC activity of my programs. Are there any similar tools for linux to do so? I acces the server via putty (ssh), so graphical tools are not supported, ...
1
vote
2
answers
146
views
Configure SNMP to send messages to two different monitoring platforms
Is it possible to configure snmpd on Ubuntu (via snmpd.conf) to send messages to two different monitoring applications? For example, lets say I have defined a read only community called 'readonly', ...
1
vote
2
answers
4k
views
How to allow multiple users to access to the same crontab in Debian Linux v8.4?
I am trying to create a crontab for a group of users, lets call the group "testGroup". There are 3 users, and I want to give all of them access to the same crontab. I did some research and tried to ...
1
vote
1
answer
2k
views
How to use '!!' (double exclamation) in bash script?
This is the scenario: Sometimes I want to open a list of files using vim. That list of files is output of a command. So I can type vim $(!!) and open those files after running that command.
Is it ...
1
vote
1
answer
268
views
Debian: php and php5
I'm running a small private Debian Jessie server, acting as a private cloud / hosting platform.
Often times, I've faced 'difficulties' installing services with recent PHP requirements because, while ...
1
vote
1
answer
915
views
Logitech Dual Action not detected as input device in Linux
For some reason, my gamepad stopped working. It's detected when I plug it into the USB port, but it's not recognized as an input device.
dmesg
[ 917.280315] usb 1-3: new low-speed USB device ...
1
vote
3
answers
3k
views
PuTTY Fatal Error Software caused connection abort
long time lurker first time asker.
I have a very weird problem, whenever I try to connect to a specific machine on my network from my desktop with Windows 10 I get an error right off the bat.
PuTTY ...
1
vote
1
answer
2k
views
Check how my process was killed
I'm currently running a simple Node.JS server with express.js on my RaspberryPi with Debian installed on it. Everything works fine, but every morning I wake up to see my server isn't running anymore (...
1
vote
1
answer
438
views
How force the Client Bacula execute over a specific interface?
my first question here.
I have the following backup below:
Bacula 5.2 - Ubuntu Server 12
192.168.1.113
Oracle database - Oracle Linux 5.7
192.168.1.24 - eth0 - Used for ERP ...
1
vote
1
answer
1k
views
How to pass nmap outout to a Python script
I have a list of server, and I want to nmap then pass to a Python parser (this)
So normally I do this:
nmap -sV -p- hostname -oN - | python nmaptocsv.py > hostname.txt
Now I want to create a ...
1
vote
1
answer
1k
views
Using a particular version of java in a specific directory
My current default version of Java is 7 (which, for now, can't be updated - I know it's reached EOL), but also have Java 8 installed.
However, I have some third party jars (all contained in a ...
1
vote
1
answer
2k
views
Background process with stdOut/StdErr output in files and console
I want to SSH into a machine, start a process, write the stdErr and stdOut of the process into two seperate files while reading the stdOut/stdErr in the console. As soon as some specific lines were ...
1
vote
1
answer
157
views
GUI password prompt: `Incorrect password`
I installed Debian Jessie without a desktop environment and installed i3wm afterwards. If I start an application which requires administrative privileges inside i3wm other than by running the command ...
1
vote
2
answers
776
views
How can I turn a computer and wireless router into a small network with no Internet connection?
I am looking to make a project for a college club that involves setting up a Linux server (for webpages or a database) and accessing that server over a wireless connection. However, I would like to ...
1
vote
1
answer
5k
views
Cpanel/WHM not working [closed]
Everything work fine, suddenly today afternoon Both cpanel and WHM stop working.
But still the website and SSH work fine, But i am unable to open cpanel or whm, when i opening using IP
xxx.xxx.xxx....
1
vote
1
answer
1k
views
IntelliJ: almost unreadable fonts on linux
As you can see on the screenshot, most of the text on IntelliJ renders as it should, however, on certain elements, such as the code lens, the fonts are almost unreadable.
On the Help -> About I ...
1
vote
2
answers
3k
views
I just installed GMP, where did it install to?
I just installed GMP with ./configure...make and now I cannot seem to find where it installed to.
I checked in all the bins I could think of and nothing. It does import correctly when I write a C ...
1
vote
1
answer
1k
views
force container outbound traffic via another container (without host iptables rules)
I have two containers, A & B.
They should exist on a newly created docker (private) bridge network such that:
A can talk to the world outside the bridge, but only via specified gateway IP
B ...
1
vote
1
answer
321
views
Can I use Y / N when I'm prompted with Did you mean: [command]?
I noticed that when you type a command slightly wrong it comes up with did you mean: command_name
e.g.
git staus
git: 'staus' is not a git command. See 'git --help'.
Did you mean this?
...