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

1
vote
0answers
32 views

enabling ECMP in linux

if i want to use ECMP (Equal Cost Multi Path) in a linux machine acting as a router, is it sufficient to have just multiple next-hop addresses in the routing table for the same destination with equal ...
1
vote
2answers
74 views

Timestamp not getting updated

I've written a piece of code but time stamp is not getting updated. It displays the time when the script runs and keep on displaying the same time even when loop is running and time is getting changed....
1
vote
0answers
19 views

Can we specify percentage value for RuntimeMaxUse attribute in journald.conf

From man page of Journald.conf I came to know that, by default Journal use 10% of file system size for storing journal files. I have configured below values in journald.conf. RuntimeMaxUse=10 #...
0
votes
0answers
22 views

How do I install apache in a user's home directory without sudo? [closed]

(I don't have much experience in setting up linux servers) I am given a user account on a shared server which points to the /home/user/<username> dir. Apache on this server points to /var/...
0
votes
0answers
19 views

udev rule not executing the script specified in RUN

I have the following in /etc/udev/rules.d/40-swallowpv.rules: ACTION=="add", KERNEL=="sd[a-z]+", RUN="/var/tmp/swallowpv sdc" (I've also tried with RUN+= to the same effect). The first thing the ...
-3
votes
2answers
49 views

Bash scripting using #1 & #2 params but if files not found reverting to read from user [closed]

So if my user types in bash copy.sh copysource.txt copydest.txt - and the files are valid I want copysource to append to copydest and then show the file via cat -if the files names are NOT correct or ...
3
votes
1answer
58 views

tried creating duplicate root user, can't connect to server anymore

I'm new to Linux so keep that in mind when offering advice. I became over zealous and ran the command here: http://www.shellhacks.com/en/HowTo-Create-USER-with-ROOT-Privileges-in-Linux useradd -ou ...
1
vote
1answer
34 views

Bcm43142 driver wifi open-suse

i have a problem with my wifi that isn't working on opensuse tumbleweed, when i open the NetworkManager, i see only ethenet interface : 0d:00.0 Network controller: Broadcom Corporation BCM43142 802....
0
votes
1answer
42 views

storage performance test [closed]

So we have some operational Red-hat Linux on physical servers and company are we decided to migrate them to VM's. I wonder if they have same performance on writing and reading from disks. they are ...
0
votes
0answers
265 views

Could not find rake-11.2.2 in any of the sources Run bundle install to install missing gems

I'm using Kali Linux and after I done apt-get dist-upgrade I keep receiving this ''Could not find rake-11.2.2 in any of the sources Run bundle install to install missing gems. '' When I do ''bundle ...
-2
votes
4answers
69 views

Transforming letters in columns into numbers

I want to transform the letters in two columns into numbers. In the following example I want to change the letters in column 2 and 3 for numbers, so that A is changed to 1, B into 2, C into 3 and G ...
1
vote
2answers
38 views

Increase swap space in linux through terminal

While installing Oracle DB in linux machine, I face a problem like swap space is not sufficient. How can I increase the swap space?
1
vote
1answer
72 views

Limit a directory to have only 1 file?

Is there a way to restrict a directory to have only 1 file? I created a specific directory for a user and I would like to limit that directory to have only 1 file. If that user wants to store new ...
2
votes
1answer
47 views

how to append words of two files word by word [duplicate]

sorry for my newbie question. I have two files with the same number of words and column fields in each line. I want to append these two files word by word. For example: File 1: A1 B1 C1 D1 E1 B1 C1 ...
0
votes
0answers
38 views

usbtmc module loaded but no entry in /proc/devices [closed]

I am trying to add a new module usbtmc.ko using this link I was able to build the module and I got the following message while loading the module. # insmod usbtmc.ko usbcore: registered new ...
0
votes
1answer
25 views

What is Alternative of initlog (present in RHEL5) but deprecated in RHEL6?

I am using initlog tool in a cron file to write the output of ntpq -p command in syslog.. But initlog command has been deprecated in RHEL6. Now, I want know the alternative of initlog command in ...
0
votes
1answer
34 views

How to boot to and run Linux from Chromebook with removed SSD?

I have an Acer C740 Chromebook. I am not sure if this is a hardware or a software issue, but the Chromebook refuses to boot properly. The display powers on, but remains blank white with only the ...
0
votes
0answers
14 views

Set GRUB `elevator=deadline` scheduling to a single device

I'd like to set my secondary drive to deadline. Is it possible to do it via GRUB, but leaving the primary drive as cfq? A script after booting would suffice in my case, but I'm interested in the GRUB ...
0
votes
0answers
16 views

ffmpeg-php is showing in phpinfo but not working

Php info result ffmpeg-php version 0.7.0 ffmpeg-php built on Jul 13 2016 22:27:57 ffmpeg-php gd support enabled ffmpeg libavcodec version Lavc57.50.100 ffmpeg libavcodec license nonfree and ...
0
votes
0answers
23 views

eth0 not present in OpenFiler on Hyper-V

I have installed OpenFiler storage sollution (based on rPath Linux) on Hyper-V VM and after booting into it message displays: You do not appear to have networking. Please login to start ...
0
votes
0answers
34 views

When arch linux boots on my mac, I can execute commands, but the screen is completely black

I have tried to boot both ubuntu and arch on my iMac (21.5-inch, Mid 2010). Both seem to boot, for example ubuntu makes its little bongo noise, and I can type zsh commands when arch boots. But the ...
0
votes
0answers
20 views

Set variables into script before or after SCP [duplicate]

I have two scripts out and disk_check.sh. The main script is the out which exports multiple variables but I need two variables set in disk_check.sh which are: VOL and VM_VOLUME. So my out script ...
3
votes
2answers
65 views

How do I download a file from a host i'm already connected to over ssh [duplicate]

I'm trying to download a file from a linux server i'm already connected to. I know you can use scp to connect to and pull down a file from a host, but that requires still being on local. I could scp ...
2
votes
1answer
26 views

UDEV Rules Interfere

I am working on Raspian OS (Linux) for Raspberry Pi 3. I am trying to do a simple task say when I connect any USB to the port it should copy the data from a particular location to the USB and clear ...
0
votes
0answers
26 views

Forcing current user to switch account without root privilege

Is there a way (inside a shell script) to force the current user to switch account (or re-login) without super user privileges ? The user shouldn't be able to cancel it. EDIT: What I'm looking for ...
1
vote
3answers
64 views

Is there a Linux utility to halt all user processes, including a VM?

I know of the killall5, system V kill command. Is there something similar where I can send a SIGSTOP to all user processes, a Host OS and guest OS included? Possibly killall -SIGSTOP??
0
votes
0answers
26 views

Multiple records for the same destination in a routing table

When we use a linux machine as a router and we also use iproute to add two rules for a destination (let's say 123.123.123.123) in the default routing table: e.g. ip route add 123.123.123.123 via 123....
0
votes
2answers
35 views

How to show processes that use more than 30% CPU?

I need to display processes that use more than 30% CPU via command top. How can I do it?
2
votes
0answers
60 views

Fedora: Touchscreen works in live mode, but not after install

Recently I've been playing with Linux on Thinkpad 10 2nd gen tablet. Currently Fedora is running on it. When I boot from USB stick (live mode), touchscreen works and is detected as Wacom 5020 HID, but ...
0
votes
1answer
27 views

Bonding on centos

I have host that running OpenStack. For public access, there bonding (mode active/passive) on nic1 and nic2. Right now both connect at the same switch. Is it possible to connect different switch and ...
0
votes
1answer
42 views

How to display all data using tcpdump?

I am capturing network traffic by using tcpdump. The problem is, I can't see all capture data when the package is too long. For example, when the tcp frame length more than 500,I just see 100-200 or ...
0
votes
1answer
43 views

How do I comment lines in fstab using sed?

I want to comment certain lines in fstab using sed command. The following are the lines I need to comment: 172.0.0.1:/export/project/common /nfs/share nfs4 rw,bg,hard,nointr,rsize=131072,wsize=131072,...
1
vote
1answer
14 views

Trying to understanding startup procedure of monit

I am just starting to learn monit. On its man page I found this: The behavior of Monit is controlled by command-line options and a run control file, ~/.monitrc, the syntax of which we describe ...
1
vote
1answer
19 views

How is findmnt able to list bind mounts?

Note for moderators: Do not close this as a duplicate. I am NOT looking for information on how to list bind mounts. I am asking how the kernel maintains this information and how findmnt is able to ...
0
votes
0answers
47 views

Linux - Cannot connect using ssh key

I used to connect normally to the website on digitalocean using ssh keys and it works normally. Currently I tried to connect and suddenly I keep getting: ssh_exchange_identification: read: Operation ...
0
votes
1answer
29 views

Creating a specific chrome window and use it as drop-down search window

I am using a simple script runs as "toggle.sh process1" which toggles visibility of process1 if it exists and if it doesn't exist then it launches process1. It is really simple but useful. I use it ...
0
votes
0answers
28 views

Boot Linux with sysVinit and systemd hybrid

I have a firmware loading tool that uses a two-step boot process modeled after a live disk, running on an embedded device. First, Linux boots using SysVinit and inittab runs the tool. Next, the ...
0
votes
0answers
7 views

Deploying application in Tomcat using Manager app

We have Tomcat installed in our landscape on SLES 11 and it is being run using the ID "tomcat". We were provided the access to deploy apps using Tomcat "Manager GUI" app. Whenever we do that, it will ...
-2
votes
0answers
12 views

Why are these printfs behaving differently? [migrated]

I'm practicing threaded programing and found this. When I printf("1"), the output will comes after a few seconds, but when I printf("\n"), the output comes step-by-step. Why? #include<stdio.h>//...
0
votes
1answer
21 views

Compiling PHP with apache mod_php on Linux

I need to compile PHP with apache module on Kubuntu. I have installed both apache2 and apache2-dev. But I am unable to locate apxs2 nor apxs. $ uname -a Linux hppavilion 4.4.0-21-generic #37-Ubuntu ...
0
votes
0answers
25 views

CentOS SFTP chroot

I've some issues chrooting an SFTP access for a client. I can access the directory, but the problem is I can't read / write, I can just access the directory. Below is what I've done : # cat /etc/...
1
vote
0answers
17 views

Issue with resume after suspend to disk

I am having an issue with the suspend to disk feature for ARM Linux Kernel version: Linux 4.2.0-rc3-00115-gc5dfd65-dirty #4 SMP PREEMPT Fri Jul 24 12:15:54 CEST 2015 armv7l GNU/Linux I can suspend ...
1
vote
0answers
44 views

Install torrent CLI on montaVista 6

I have been trying to figure this out for a while now but I have never made any progress with it. How can I install a torrent client on my NAS (Seagate Central) box which runs MontaVista 6. I have ...
3
votes
1answer
27 views

What program to use to open files? (gnome-open, gvfs-open, xdg-open, etc.)

I have a Java program that runs on Linux, and from within the program, I want to open files (e.g. PDF files) with the system's native viewer. There are various programs available for this purpose: ...
1
vote
1answer
48 views

is it possbile to add comma in this SQL?

I have a statement like this UPDATE `test`.`scores` SET id=1 name='kobe' score=99 WHERE id=1 name='kobe' score=100 UPDATE `test`.`scores` SET id=2 name='tmac' score=70 ...
0
votes
0answers
4 views

Does updating the firmware as required by a Linux distbution alter the machine for use with a different OS? (i.e., Windows) [migrated]

I'm trying Lubuntu and seeing the same error as here in version 16.04 (Ask Ubuntu question): *starting configure network device [ 110.081458] b43-phy0 ERROR: Firmware file "b43/ucode5.fw" not found [ ...
0
votes
1answer
21 views

centos6.4 fetchmail not downloading mail more than 5MB?

i just configured fetchmail in CentOS 6.4. by the help of this tutorial everything is working mail is downloading well. But it's not downloading mails with attachments more than 5MB(approx.). ...
0
votes
1answer
15 views

FTP server setting with sharing directory

I'm setting FTP server Let say we create the CLASS A and CLASS B making class A and class B not allowed to go other directories chroot_local_user = yes and I want to make a sharing folder ...
2
votes
1answer
29 views

How to restart ngnix server on CentOS

I recent buy a VPS on DigitalOcean and installed CentOS and follow the tutorial to install Ngnix Server, then I follow the tutorial to create a Virtual Host, but when I put this command to restart: ...
0
votes
0answers
22 views

Using an SD card's in-built protection mechanisms

Some SD cards support the following: Toggling temporary write protection. Activating permanent write protection. Setting and clearing a password that is required for reading and writing data. How ...