Questions specifically about Linux, as opposed to Unix-like systems in general, or to questions about a specific distribution or program.

learn more… | top users | synonyms

0
votes
2answers
659 views

Is CDPATH behavior broken in bourne shell (/bin/sh)

I have the following script: #!/bin/sh mkdir -p /tmp/test/foo cd /tmp/test unset CDPATH echo "TEST1: Current working directory: ${PWD}" echo "TEST1: attempting to 'cd foo'" cd foo echo "TEST1: ...
1
vote
1answer
617 views

Possible to download all the packages from “groupinstall” and then run ( yum --nogpgcheck localinstall *.rpm )?

This is the original command: yum groupinstall "Desktop" "Desktop Platform" "X Window System" "Fonts" I would like to create 4 folders for these. (1 folder for each). mkdir Desktop mkdir ...
15
votes
6answers
2k views

How to achieve portability with sed -i (in-place editing)?

I'm writing shell scripts for my server, which is a shared hosting running FreeBSD. I also want to be able to test them locally, on my PC running Linux. Hence, I'm trying to write them in a portable ...
1
vote
1answer
16 views

How to prevent UDEV rules assigning a device to a specific set of names

I have some UDEV rules for a RAID array; 10 hard disks are assigned names from /dev/sda to /dev/sdj. The disks can be absent at any time. How do I write a UDEV rule to prevent a device such as an ...
0
votes
2answers
27 views

Timeout function return value

I'm using the timeout function on debian to wait 5 seconds for my script. Works great but the problem I have is that I need a return value. Like 1 for timeout and 0 for no timeout How am I going to ...
0
votes
0answers
15 views

OpenSuse does not show .eps files

I am running on this machine on a cluster: > lsb_release -r -i -c -d Distributor ID: openSUSE project Description: openSUSE 13.2 (Harlequin) (x86_64) Release: 13.2 Codename: Harlequin ...
3
votes
1answer
535 views

Grub and usb serial support

How to access the grub menu using a usb serial converter? I know it's possible to have grub menu in serial console, putting these lines in grub.conf: serial --unit=0 --speed=9600 --word=8 ...
8
votes
1answer
18k views

ifconfig command not found

I've just installed CentOS7 as a virtual machine on my mac (osx10.9.3 + virtualbox) .Running ifconfig returns command not found. Also running sudo /sbin/ifconfig returns commmand not found. I am root. ...
1
vote
0answers
29 views

How to create boot SD card for Banana Pi manually

It seems that I have a lack of understanding how booting SD-Card images on devices like the Banana Pi work. The situation is as follows. I have a Banana Pi and a Banana Pro. Every device has an ...
3
votes
2answers
168 views

What are the programs/commands which the magic SysRq key invoke?

From Magic SysRq key The magic SysRq key is a key combination understood by the Linux kernel, which allows the user to perform various low level commands regardless of the system's state. It ...
1
vote
1answer
40 views

fork: retry: Resource temporarily unavailable

While I am connecting to my server I get, -bash: fork: retry: Resource temporarily unavailable -bash: fork: retry: Resource temporarily unavailable -bash: fork: retry: Resource temporarily ...
1
vote
1answer
27 views

Routing table and multiply hops

I have 6 networks, I need to connect network 1 and network 5 via five routers. What’s the command to set multiply hops? ip route add IP_address/mask via IP_adrress dev eth0, but how do I set next hop? ...
3
votes
2answers
23 views

Multiple screens on one physical monitor

I've recently bought one large monitor to replace my two smaller ones. I use i3 and as it turns out I miss the screen switching mechanism in a big way. Is it possible to configure X11 to split my one ...
-3
votes
0answers
41 views

What does this output of ls -l mean? [on hold]

What does the line .-rwxr-xr-x 1 root root 920788 Mar 28 2013 bash mean? I want to create a new text file of the directory entries that I find in the /bin directory making sure that I display the ...
0
votes
1answer
2k views

Cannot add new partition using fdisk - No free sectors available

I would like to add new partitions to sda3, but fdisk says "No free sectors available". What can I do?
1
vote
3answers
19 views

Clone Linux user (copy user, based on another one)

How can I create a new system user, an exact copy of another one (having the same groups, permissions, privileges and settings), but with different username, password and home directory?
3
votes
3answers
238 views

USB device to be detected at the “same” /dev point always?

In Linux (actually I'm with CentOS v6.5), whenever I plug in my USB Terminal/Character Device (some kind of USB Adapter) for the first time (after booted), it is detected at: /dev/ttyUSB0 But ...
0
votes
0answers
19 views

virtualbox shared clipboard not working [on hold]

I run linux mint on my laptop, and I installed the newest virtualbox software from oracle. I run windows 7 inside a virtualbox. Now I would like to copy and paste or drag and drop files from linux ...
1
vote
1answer
709 views

Can I use a parallel port as a CUPS input device?

I have an old piece of a hardware that does diagnostics on medical equipment. It prints out results over a parallel port. Is there any way to have CUPS accept jobs from a parallel port and redirect ...
1
vote
2answers
592 views

How to install jdk in Linux Mint

I am unable to install jdk on Linux Mint. I tried the following: # apt-get install openjdk-7-jdk openjdk-7-doc openjdk-7-jre-lib Reading package lists... Done Building dependency tree Reading ...
-6
votes
0answers
33 views

Installation of watsapp on ubuntu 12.04 [on hold]

Please post the latest set of instructions to install whatsapp on ubuntu 12.04.
0
votes
1answer
14 views

what is tagging a socket in linux netfilter [on hold]

What is tagging in linux kernel netfilter module? This is the reference code : ...
1
vote
3answers
95 views

How to decode base64 text in xml file in Linux?

I'm new in linux (shell). I need to decode base64 text in xml file using linux shell script. Could you please help me to write linux shell script for decoding the values of those tags where attribute ...
1
vote
1answer
40 views

Why `ip addr` showing inet 192.168.122.1/24?

My local ip address is : 10.102.42.102, but i don't understand the rest of the address. Can someone explain why ? root@HitHiFitHai:~# ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc ...
0
votes
2answers
905 views

Linux Permissions vsftpd

I have mybb installed and running in /var/www/forums. I have two users part of the www group, logan and www-data. I have the recursive permissions of forums directory set to: chmod -R 755 forums ...
1
vote
1answer
58 views

Apache / OpenSSL configuration keywords `SSLProtocol` vs. `SSLCipherSuite`

According to the Apache docs I can configure the cipher suite with (a.o.) two different keywords and examples on Internet often use both (but not necessarily identical to below example). What is the ...
1
vote
1answer
20 views

How can I change the IP and gateway addresses permanently?

I recently installed Linux Ubuntu 14.04 to my computer. To enable internet connection I needed to change my IP and Gateway address. I did the following as a root user # ifconfig eth0 "my ip address ...
0
votes
1answer
31 views

passing bootloader arguments to the kernel

We know that the bootloader parameters are passed to the kernel before the init process starts executing. What file in the /proc directory actually does this job?
2
votes
1answer
107 views

Simulate Initial Login of user without using sudo

I'm writing a script to interface 2 third-party programs. (Datadog and AWS) The data mining script uses sudo -u to run my script. The script that I need to retrieve data from will segfault if ...
2
votes
1answer
678 views

redirect web server with no-ip and port forwarding in livebox

I want my Apache web server running on a Livebox (home router appliance running Linux) to be accessible from the Internet (WAN). I installed and configured the application noip2 on my Ubuntu PC. ...
4
votes
0answers
33 views

Linux - mount command returns zero/0 but not working

Sounds strange, I have a shell script that it gets trigger by udev rules, to mount attached USB device to the system file tree. The script runs when an usb device attaches to system, so the rules ...
-1
votes
0answers
21 views

exchange from Manjaro to Ubuntu [closed]

i have a big problem now i had deleted previous windows and Ubuntu and formatted my hard of the laptop now i already installed Manjaro but want to change it to ubuntu i tried to make boot usb by the ...
4
votes
1answer
502 views

GNU/Linux, IO performance problems

I have some problems with my system performance. As I was adviced here, I used sar: $sar -u 5 and found out that the problems are caused by a low HDD performance, as I supposed (high %iowait). ...
2
votes
1answer
633 views

How to monitor per user disk usage in Linux

I have local disk with 2T capacity attached to a host. Nearly 60 user home directories are stored on this disk. Currently no disk quotas are enabled. I need monitor the disk usage of individual ...
-1
votes
0answers
6 views

initramfs too slow and ISR taking too much time?

On my SMP (2 core with 10siblings each) platform i have a PCIe deivce which is a video card which does DMA transfers to the application buffers. This works fine with suse13.1 installed on a SSD drive. ...
4
votes
3answers
933 views

awk + print lines from the first line until match word

I want to print all lines from file until the match word please advice how to do that with awk for example I want to print all lines until word PPP remark the first line chuld be diff from AAA ( ...
0
votes
0answers
20 views

“yum-config-manager --disable <repoid>” How to get repoid for centos 7?

I mistaken installed centos7 minimal. But I want to install GUI for centos7. from this link: ...
5
votes
2answers
57 views

What are pending signals?

When looking at the limits of a running process, I see Max pending signals 15725 What is this? How can I determine a sensible value for a busy service? Generally, I can't seem to find a ...
1
vote
0answers
14 views

Using a rados block device as block device in libvirt qemu

What is the difference between using a rados block device in libvirt qemu with disk type='network' and disk type='block'? The ceph guide tells me to do the following: <disk type='network' ...
1
vote
0answers
16 views

What is the correct way to start a container with a given command?

I want to create a set of containers for simulating network traffic. Inside each of the containers, I would like to set a different network delay. Right now I am doing it manually using this command, ...
0
votes
0answers
19 views

Where am I supposed to put PyCharm files?

I've just downloaded PyCharm (pro) for Linux (I'm running Ubuntu). It's basically a zipped directory containing everything it needs to run (tree below), including an entry point (bin/pycharm.sh). ...
17
votes
7answers
55k views

Show top five CPU consuming processes with `ps`

How to show top five CPU consuming processes with ps?
0
votes
0answers
20 views

2 X 2TB HD in RAID1 config, “Data volume failed to mount” error

I am using a Western Digital My Book Live Duo and for some reason it decided to go bad on me. The WD support people usual answer is that the device is bad and they even upgraded my warranty to get a ...
0
votes
0answers
17 views

memtest86+ doesn't show up in grub

According to my package manager memtest is installed and both memtest68+.elf and memtest86+.bin are in my boot partition yet grub doesn't give me the option to boot to them. Is there anyway to add the ...
0
votes
0answers
13 views

Centos 7.1.1503 no longer has some static libs that python packages assume are present

I ran repoquery -ql readline-devel and it revealed that only various .so libs are a part of this repository. /usr/include/readline /usr/include/readline/chardefs.h /usr/include/readline/history.h ...
-1
votes
0answers
19 views

network block device: a port was specified but old style export were not requested

I configured the nbd-server in Ubuntu. I configured the following [generic] [myexport] exportname=/dev/sda1 port=9000 Now I restart the nbd-server service #service nbd-server force-reload but ...
0
votes
1answer
26 views

Linux driver privileges

I've loaded a custom driver to linux via mknod. However, now any programs I write to use it need to be run using sudo, which is difficult to do when I'm using an IDE. Is there any way to adjust the ...
25
votes
9answers
2k views

Uninstalling programs on Linux

I've been using Windows and Mac OS for the past 5 years and now I'm considering to use Linux on a daily basis. I've installed Ubuntu on a virtual machine and trying to understand how I can use Linux ...
1
vote
2answers
787 views

Linux guest VM on mac host - Keyboard

I use a Mac as a development box, but am slowly transitioning to Linux. So I am spending the majority of my time in the Linux guest VM while working. But I still spend a fair amount of time in Mac ...
2
votes
3answers
54 views

Bash | port killing loop fails

I am trying to create a bash function which should kill all processes using some ports specified in port_array. The kill-port function works if I call it myself with a port e.g. with kill-port "80";. ...