These questions are about Linux in general -- NOT specific to a particular distribution. If the question just happens to be in a Linux environment, please specify your Linux distribution in the body of your question, but do NOT use the /linux tag.

learn more… | top users | synonyms

0
votes
3answers
36 views

iptables: block all inbound traffic over a certain port number

It is possible using iptables (on Debian) to block all inbound connections for all the ports with a port number over (as an example) 16000. Like this (using 16000 as reference): The port 15999 is ...
0
votes
1answer
40 views

How can I execute any command as a normal user without sudo?

Is it possible to assign the sticky bit to sudo in order to execute any command as a normal user? Let's suppose that we have the user test and then: test@test$ apt-get update But I don't wanna use ...
0
votes
0answers
8 views

What is the difference between the SIGHUP generated by typing “exit” in the SSH shell terminal vs clicking the “X” button in the PuTTY window?

Referring to this question, I am trying to use nohup <command> <arg> & to continue to run a command in the background after I logout from the SSH shell terminal. However, the ...
0
votes
1answer
52 views

How to execute shell script on Kali Linux startup?

I need to execute a shell script on a Kali Linux startup. I am using 2016.1 version of Kali Linux. i tried many things like rc.local, init.d, X11 and GDM3 config etc. but I couldn't get it work. ...
-1
votes
1answer
35 views

openSUSE frozen on login screen, refuses to return to GUI [closed]

I just came back to my recently installed (overnight last night, just started using it today) openSUSE installation to find it frozen on the lock screen. After various attempts to get it to unfreeze I ...
-1
votes
2answers
35 views

writing into /opt/folder

I'm using gcsfuse with an app I am making to write files into /opt/storage that folder is owned by a specific user called lets say "hero" which is in a group called "hero" too: ls -al /opt: ...
0
votes
2answers
32 views

remove log files

I have a folder which in turn contain multiple sub-folders. All of these sub folders have a log folder. How to clear all the log files alone from all the log folders in these sub-directories using a ...
-3
votes
1answer
64 views

Script to clean log files does not delete them

Could someone explain to me why this script does not delete /var/logmessages and /var/log/wtmp files? I found it on tldp.org tutorial #!/bin/bash LOG_DIR=/var/log cd $LOG_DIR cat /dev/null > ...
0
votes
0answers
24 views

redhat + never get the passwd prompt when login

after Linux installation version 6.x we boot the machine and when we type on login prompt the login word the login prompt return again, and again after we type the login name so we never get the ...
4
votes
0answers
34 views

disable a usb port in linux

I've searched a lot for an answer to this, but the closest I can get to finding a solution is this: http://ask.metafilter.com/219676/How-can-I-tell-linux-to-ignore-one-USB-port but it doesn't work for ...
-1
votes
0answers
7 views

Iptables on Chromebook [duplicate]

I am having a problem when trying to execute the command iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 808 This gives me an error saying no chain/target/match by ...
0
votes
1answer
22 views

Install Mint and Ubuntu on separate drives: how many grub installers needed?

I would like to setup a dual boot system using Mint and Ubuntu, with each on a drive of its own. Would I install each as a distinct OS with its own grub installer, or will they have to be on just one ...
0
votes
2answers
9 views

Add TCP congestion control variant to Linux Ubuntu

I want to test different variants of TCP in Linux Ubuntu. I have Ubuntu 14.04 LTS with Kernel version 3.14. When I check the available congestion control algorithm using the following command sysctl ...
0
votes
0answers
19 views

How do i disable ascii codes while reading serial port binary data

I am trying to read binary data from a serial port using an FTDI TTL-232R-3V3 cable. It gets enumerated /dev/ttyUSB0. I have a small development board hooked up that will send the bytes: 00 01 02 ...
0
votes
0answers
14 views

Phoenix Securecore tiano USB boot doesnt work

I've a problem with a Dell XPS 17 which I want to install Linux Mint on. I've created my USB key (which work on old pc) but it doen't recognized as USB device or removable device on my Dell. Many ...
0
votes
1answer
26 views

linux + single user mode and set network

I have linux redhat machine version 6.5 I reboot machine and work as single user mode , then I set the network on eth0 with default gw address /etc/sysconfig/network-script/ifcfg-eth0 but from ...
0
votes
1answer
18 views

How to add a virtual core to Linux system

Here a virtual core means another CPU core that does not exist physically but can exist just as another core and can be assigned processes naturally by the system. Is it even possible to do this? ...
3
votes
3answers
1k views

Is it good to utilize ~100% CPU by my application [closed]

I have an application written in C++ on Linux (Ubuntu 12.14), which decodes audio and finds the peak. This calculation is running on a background thread. From the main UI thread, I am calling the ...
0
votes
0answers
12 views

Long response time when using chroot

I have a Ubuntu 14.04 LTS Server and yesterday the response time of the server was quite long, meaning when using simple commands like: ls -al it would take up to 20 seconds to respond in a very ...
2
votes
2answers
44 views

Why does df show negative available space?

Filesystem Size Used Avail Capacity Mounted on /dev/ada0p2 1G 624M 302M 67% / devfs 1.0k 1.0k 0B 100% /dev /dev/ada0p4 503M 20k 463M 0% ...
0
votes
0answers
17 views

Arch linux applications do not open

I've installed the arch linux into my old hp machine. I have faced a problem that almost every app does not open (not including terminal, settings and browser). What should I do and how to fix it? ...
0
votes
0answers
6 views

Block incoming traffic in bonding mode when primary interface is down

My server running on latest kernel (4.4.6) has configured a bond device (bond0) with two enslaved interfaces eth0, wlan0 with primary interface eth0. cat /proc/net/bonding/bond0 Ethernet Channel ...
0
votes
0answers
12 views

Ubuntu VPS in sleep mode / standby?

I currently have a problem with my VPS (ubuntu 14.04.4). When I access it after hours the first time again via HTTP or SSH it takes a few seconds until it reacts, sometimes it is even too long, so it ...
0
votes
0answers
12 views

openssh - Reading from a file [migrated]

In the openssh code (openssh-5.9p1/auth2.c) in the function input_userauth_request(int type, u_int32_t seq, void *ctxt) I'm trying to read my own file (tried using fopen, fread) but fopen fails ...
0
votes
1answer
15 views

The unalias in the Mysql Backup script

Here's the script to back up Mysql database. #!/bin/bash FILE=minime.sql.`date +%F` DBSERVER=127.0.0.1 DATABASE=wordpress USER=root PASS=789789 unalias rm 2> /dev/null rm $FILE 2> /dev/null ...
0
votes
0answers
13 views

FTP Over SSL not accessible from outside network

We have setup an FTP server over SSL with configuration using vsftpd as below (/etc/vsftpd/vsftpd.conf): pam_service_name=vsftpd local_enable=YES write_enable=YES local_umask=022 anonymous_enable=NO ...
1
vote
1answer
41 views

how to do administrative commands without sudo?

Is there a possibility to grant administrative privileges to the current logged in user forever? So I don't have to type sudo everytime I want to do something?
0
votes
2answers
58 views

Disk busy 101% all the time

I have an OpenNMS Linux server which is having poor disk performance. The machine is a EC2 inside a VPC. atop shows: iotop shows: How do I reduce the IO numbers and bring down the disk ...
1
vote
0answers
10 views

Which is the correct dm-cache version

I am trying to install dm-cache on my CentOS machine. Which dm-cache version should I use. I read on wikipedia as below: Another dm-cache project with similar goals was announced by Eric Van ...
0
votes
1answer
37 views

Why this script didn't work? [closed]

#!/bin/bash if [ $# !=1 ] then echo Usage: A single argument which is the directory to backup exit fi if [ ! -d ~/projects/$1 ] then echo 'The given directory does not seem to exist (possible ...
3
votes
1answer
26 views

reserve disk space before copying files

I would like to reserve (or is the keyword "claim"?) some amount of disk space before an rsync occurs so other programs will believe a disk has less space (because after the rsync, the disk will have ...
0
votes
0answers
41 views

Authentication required to edit Sudoers - User not listed

I made a small typo in my sudoers file, nothing a simple pkexec can't fix. The problem is that when I added my user with "adduser name" and added "name" to visudo, as well as the root and sudo ...
1
vote
0answers
24 views

ncurses over ssh (osx -> linux) freezing and unresponsive

I'm using linux perf_events and sometimes am having trouble with the perf report (which is an ncurses terminal application) view freezing up. I'm interacting with a remote linux server which is ...
0
votes
0answers
26 views

How to add security (802-1x.eap) with nmcli

I've done nmcli con add type ethernet con-name SOMENAME ifname enp5 now how do I add security to it using nmcli(as if you had hit the on button in the gui.) so that I can than go and edit the ...
0
votes
0answers
64 views

Running a batch script remotely using rdesktop

I have a setup that implies calling rdesktop on a remote machine which is accessed through ssh: user@192.168.1.110:~$ ssh user@192.168.1.120 -X and then running rdesktop as: user@192.168.1.120:~$ ...
3
votes
1answer
585 views

Where can I find detailed documentation on Linux signals?

When we do kill -l we get a list of all the signals that are supported, but is there any man page that describes each signal in detail?
0
votes
2answers
53 views

wc -l command issues in SunOs to Linux migration

We are migrating from SunOS to Linux. I'm facing some problem with wc -l command. When I used wc -l <file_name>, SunOS is giving leading spaces before count where as Linux there are no leading ...
1
vote
2answers
62 views

Mount FreeBSD UFS from logical partition under Linux

How can I mount the FreeBSD UFS boot partition under Ubuntu in this setup: a single HDD which contains an MBR partition table which contains some primary Linux partitions and an extended partition ...
43
votes
3answers
6k views

On Linux, when does “uptime” start counting from?

My computer says: $ uptime 10:20:35 up 1:46, 3 users, load average: 0,03, 0,10, 0,13 And if I check last I see: reboot system boot 3.19.0-51-generi Tue Apr 12 08:34 - 10:20 (01:45) ...
0
votes
1answer
27 views

TeXstudio rpm install: QT dependencies (e.g. libQtGui.so.4)

I'm trying to install TeXstudio on a Scientific Linux 7.2 machine with an rpm. My problem is, that I'm missing the following dependencies: # rpm -ivh texstudio-qt4-2.10.8-6.1.x86_64.rpm warning: ...
0
votes
0answers
29 views

device-mapper error while setup of dm-cache

I am trying to setup dmcache using the tutorial https://wiki.mikejung.biz/Dmcache When I run the command `dmsetup create home-cached --table '0 976771120 cache /dev/mapper/ssd-metadata ...
-1
votes
3answers
45 views

How to swap two words with sed and with multiple delimiters?

Just letters are accepted in words, any other characters are delimiters. I want to exchange the first word with the third word. sed -E 's/([A-Za-z]+) [^A-Za-z] ([A-Za-z]+) [^A-Za-z] ([A-Za-z]+)/\3 \2 ...
0
votes
0answers
14 views

Any clustering / load balancing solutions for VPN servers that support external IPs?

I am looking for a clustering / high availability / load balancing solution (something like ucarp or clusterip, etc) where it allows the nodes to be external IPs. Specifically, I would like it for ...
0
votes
1answer
38 views

Awk to get same column with maximum filed

I have two files. I have to get matching name from file1, print the entire content of file1, and add a fourth column (exp) in file 1 using a second file with max value file1 name value1 ...
1
vote
1answer
18 views

why does systemd cryptsetup try to remount the root partition already mounted?

I have /etc/crypttab as follows: sda7_crypt UUID=<...> /dev/sda8:/keyfile luks,discard,keyscript=/lib/esi/tpm_key_pass sda7_crypt is my root filesystem, so I use update-initramfs to decrypt ...
1
vote
0answers
13 views

Create two boot options for the same distro but with post run options

I have a Raspberry Pi with Raspbian. I installed Kodi (with autorun) but I'd like to install RetroPie into Raspbian also. I'd like to have several grub options: one with Kodi in autorun, another ...
1
vote
1answer
23 views

Linux, having trouble adding user to second group

Redhat Linux 5.10 (Tikanga) I'm trying to add an existing user to a second group. The user is already part of the primary group called "prim" and the secondary group I want to add him to is "sec". ...
3
votes
2answers
60 views

Defer *all* disk writes, keep them in memory

How to temporarily stop synchronizing of dirty data with disk, instead just keeping it in memory. Clarification: I want to sync it later.
0
votes
0answers
21 views

Camera not detected in Ubuntu

I have a built-in camera which has stopped being detected in Ubuntu. lsusb output: Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 004 Device 001: ID 1d6b:0002 Linux ...
1
vote
2answers
39 views

Where is a named semaphore stored? [closed]

A named semaphore (using semaphore.h) is identified by a name in the form /somename; that is, a null-terminated string of up to NAME_MAX-4 (i.e., 251) characters consisting of an initial slash, ...