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
0answers
26 views

kernel make install fails with lacking dracut module 'dmsquash-live' on Fedora22

I have a problem on Fedora22 when make install build kernel. I downloaded kernel source and 'make'. It was ok. When I try to 'make install', I got this error. [root@localhost linux-4.0.5]# make ...
1
vote
2answers
32 views

Is it possible to have bash variables persist between runs

I am trying to create an init script which queries losetup -f for a free loop device. Within the init script I have a start() which queries losetup -f for the free loop device to setup some stuff, and ...
2
votes
1answer
35 views

mount /var/log as tmpfs in Linux

My current laptop hard drive (Seagate ST940818SM) is slow (max 42MB/s R/W speed) and out of space. Mounting /tmp and /var/tmp as tmpfs does a lot of performance improvement. So is it safe to mount ...
0
votes
2answers
26 views

Advantage of GPT over MBR partition table [closed]

What is the advantage GPT partitioned hard drives on older BIOS system ? when boot drive is bellow 2TB on a BIOS system or UEFI boot disabled grub on BIOS system with GPT partitioned needs an ...
0
votes
2answers
20 views

Convert files from .iso using Linux

I have a number of .iso video files 4.7GB is size. I'd like to convert them to perhaps .avi or .mpg4 format to reduce the size and for playing on equipment that likes files not DVDs. Running Linux ...
-2
votes
2answers
59 views

One `if`, two `then`s: Why not? [closed]

I want to make a script that adds a space every time it counts up and outputs the number it's at until it gets to 10 then stops. I'm learning scripting and I'm just making simple scripts to learn. ...
0
votes
1answer
50 views

Why ARM devices are not shipped with latest Linux kernel?

Wondering why ARM based devices like Raspberry Pi, Android phones, Routers etc. are not shipped with latest Linux kernel ? Is it simply due to lack of proprietary device driver support ? Like lack of ...
3
votes
1answer
28 views

See total bandwith a process has used

I am currently watching some process on my server and want to see how much bandwidth it has used in total since it has been started. I don't want to know its current usage, nor does nethogs / nload ...
0
votes
0answers
22 views

Unable to delete a user: user test is currently used by process xxx

I'm trying to delete a user: pgrep -u test ps -fp $(pgrep -u test) killall -KILL -u test userdel -r test But the last command always returns userdel: user test is currently used by process xxx ...
0
votes
2answers
25 views

Content cached in RAM while writing to disk - Linux

I'm facing this issue since ever I started using Linux Distros. While copying/moving either graphically or with cp one/many big content(anything like big text file, tar.gz archive, iso file, movies) ...
11
votes
8answers
2k views

What to use when the “ls” command doesn't work?

I tried to use the ls command and got an error: bash: /bin/ls: cannot execute binary file What can I use instead of this command?
0
votes
0answers
15 views

Running a DE in chroot?

I'm looking to run a desktop environment inside of chroot using Xnest. So far I've gotten Xfce to work but everything else not so much. Both cinnamon and gnome fail to run. Cinnamon gives me this ...
1
vote
0answers
16 views

Get window name on Red Hat Gnome

Is is possible to get the title of a window (Eg. gnome-terminal) via a terminal command, without installing any outside packages like xdotool, xprop or wmctrl? Much appreciated.
0
votes
0answers
13 views

Ext3 Journaling Question on inode and disk layout

I was going through Journaling and JBD and wanted to ask you a very basic question for which I was not getting an answer: 1.Why Journal Inode number comes as 8 when we do ./dumpe2fs? 2.So far my ...
0
votes
2answers
41 views

Grep for regex in basename but return wholename

So say I have a list of files in a text file: ... /foo/barfoo /bar/foo/foobar /foobar/bar/foo ... I have a script that will search through this text file and, much like the locate command, I want ...
1
vote
1answer
23 views

any option to ignore a dns server ip from /etc/resolv.conf when doing nslookup?

We have a list of dns server IPs in /etc/resolv.conf. When doing nslookup for a particular scenario we would like to ingore the second entry below, so that naming resolution occurs via other 3 DNS ...
0
votes
0answers
18 views

How to access boot: invite?

I'd like to simply try a root pawd reset, by entering linux single whan systems display boot: when booting. But my Mint system goes directly to user home prompt. Tks
0
votes
0answers
8 views

Suggested server for Tomboy synchronization

I'm using Tomboy on my desktop and Conboy on my phone (N900). I'd like to synchronize them with a remote server (I don't want to set up my own server for the time being) Now with Snowy discontinued, ...
2
votes
2answers
45 views

High IO wait - How to determine the root cause?

I have a MySQL instance on two dedicated servers. One for the production, the other for the test platform. The 2 servers are pretty the same, the only difference is the RAID controller and the ...
1
vote
0answers
20 views

How can I modify a netinst.iso image to run a bash script on boot?

Background Using Fedora 21 with LVM on a Toshiba C50-B-021 laptop with UEFI (which from what I understand doesn't actually turn off), every time the computer runs out of battery it will hang on boot. ...
0
votes
3answers
22 views

how to show port numbers that are listening for the incoming connections under TCPv4?

I want to use command line to show only the port numbers after ":" only This is what I'm trying to do sudo netstat -ant |grep LISTEN|grep :|sort -n|cut -c 45- It shouldn't list any tcp6 info
1
vote
1answer
66 views

How do I resize the active partition (in Ubuntu 15.04)?

When I first created this virtual server with VMWare it was 16G, but that has proven to be insufficient space. So I recently resized it with GParted to 32G using the Live CD. Judging by the results ...
1
vote
0answers
18 views

Find amount of IO occurring over various NFS mounts

When I run netstat | grep nfs, I get the currently mounted nfs connections for a given host in a cluster. If there is massive io happening over 1 (or 2) of the connections, how can I monitor this? Is ...
0
votes
0answers
27 views

DSCP to p bit mapping in Linux

I have the following setup Linux1--------------------------------------------Linux2 eth0 10.10.10.30 eth0 10.10.10.10 eth0.50 20.20.20.30 ...
1
vote
2answers
21 views

What user runs the commands defined in /etc/rc.local?

Are commands ran by /etc/rc.local ran by su by default? Do I need to specific sudo before each command or will they be ran by su regardless?
3
votes
0answers
13 views

Cocoa API implementation for Linux?

Is there any Wine-like project for running OS X apps on Linux? I mean an implementation of Cocoa API for standard Linux machine, as it is done with Wine.
0
votes
0answers
18 views

Transparently Relay TCP Socket to Serial Port (and vice versa)?

I would like to create a psuedo serial device (such as /dev/ttyXXX0) that I can use to make transparent serial connections to an arduino that's on my wifi (via an esp8266 serial bridge). I would like ...
2
votes
1answer
51 views

Who is the -bash executing user on my server?

On one of my servers I noticed there where 2 active users. Who is that second user? USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root tty1 10Feb15 ...
0
votes
0answers
16 views

Grub-legacy specification: what does “only kernels loaded at 1 megabyte or above are presently supported” mean?

The GNU GRUB Manual 0.97 in section 1.3 (GRUB features) says: Only kernels loaded at 1 megabyte or above are presently supported. Any attempt to load below that boundary will simply result in ...
1
vote
1answer
45 views

Is there a tool that automatically inserts and updates a script header block for e.g. shell or Python scripts?

I found scripts by a former admin who scripted quite nice things with Bash or Python. All his scripts are well formatted and equipped with a always similar looking "script header" or "code header", I ...
1
vote
1answer
17 views

how to verified LDAP on Linux machine

I want to test the LDAP connectivity between my linux machine to the windows domain controler , so I installed successfully the tool- ldapsearch The Linux machine do authentication of users agaisnt ...
0
votes
0answers
5 views

Is the functionality of libipset covered by CAP_NET_ADMIN?

The capabilities(7) states (excerpt): CAP_NET_ADMIN Perform various network-related operations: * interface configuration; * administration of IP firewall, masquerading, and accounting; ...
1
vote
2answers
50 views

ldd says not found but .so file is in /usr/lib

When I type ldd with my executable file there is one not found warning. libCmp.so => not found libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0xb6ed7000) libm.so.6 => ...
1
vote
0answers
15 views

How verify server's hardware before install it into data center? [closed]

could anybody help to understand me how is it possible verify and validate server's hardware configuration that I'm going to install into datacenter? The problem is that the customer bought noname ...
1
vote
0answers
33 views

Detailed history of all commands/actions (also in GUI)

The famous history command shows us a list of recently executed commands. If we set the HISTTIMEFORMAT variable we can also see when the commands where executed. I would like a more general version of ...
2
votes
3answers
329 views

Do I need a computer science degree to have a successful career in Linux? [closed]

I recently got a bachelor's in hospitality management, for 4 years I basically lied to myself thinking thats what I want to study while neglecting my interest in computer science. I've been getting to ...
0
votes
1answer
12 views

Letting a device access internet trough ethernet port via a laptop [duplicate]

So i have internet access to my laptop, over wifi. I have connectd a device with an ethernet port (with an ethernet cable from my laptop to the device), and set up a local area network between the ...
-1
votes
2answers
23 views

how to protect the history of all users in linux without .bash_history file

We are in the process of setting up an environment where we should be able to trace who did what in a server. We generally concentrate on "last" command and bash_history file still it didn't help us ...
0
votes
0answers
9 views

How do I compile a custom Linux kernel to be optimized for Hadoop?

What can I do to configure a kernel to have resources that are optimized for Hadoop? I want to maximize the CPU and RAM availability for Hadoop. What can I remove from a traditional kernel if the ...
0
votes
0answers
16 views

Linux NFS server with two network connections to three systems

I am setting up two new VMWare hosts and will also be adding a Linux (Probably Ubuntu but maybe CentOS) NFS Storage server as the shared storage for these hosts. I would like to connect them directly ...
0
votes
0answers
6 views

upstart + telinit: is it really works?

I think about how to backup my ubuntu server, and I want try one possible solution using init levels. So I downloaded Ubuntu 14.04.2 LTS, install it on VirtualBox, and try: telinit 1 It warn about ...
1
vote
1answer
70 views

Changing the TCP RTO value in Linux

I will like to alter the TCP RTO (retransmission timeout) value for a connection, and some reading I have done suggests that I could do this, but I don’t where and how. I have looked at the ...
1
vote
1answer
33 views

Bash script to detect a file modified yesterday and check if its size is above a certain threshold

I'm writing a script to stat all files in a directory, and then find specific files that were created yesterday and tell me if they are larger than a certain size or not. So basically I need this to ...
2
votes
1answer
52 views

Password protecting Single User Mode and GRUB on a VPS

I have a VPS CentOS 6 Linux web server. It is run on KVM. Running a Lynis audit, it notes that single user mode and GRUB are not protected by any password/authentication: [16:00:28] Warning: No ...
0
votes
0answers
11 views

What themes are those under Controls in Cinnamon themes?

I have installed many Cinnamon themes but those listed under Desktop affect mostly the Panel, not the windows texture: The window frame is set under Windows Borders, but what I am interested in is ...
1
vote
0answers
8 views

Shrinking root partition on Debian

I'm using a headless Debian Wheezy server with 2x3TB disks. It was installed automatically with RAID1. This is the output of df -h: $ df -h Sys. fich. ...
1
vote
1answer
24 views

What are the other alternative to test a LDAP connection on linux machine

I have Linux machine, Redhat 5.8, that gets data via LDAP. For an unclear reason, I can’t get the data via LDAP. I see that from /var/log/messages and /var/log/secure the problem is that the ...
1
vote
2answers
14 views

what is the right ldapsearch version for my linux red-hat machine

I am little confuse about the following I want to install the binary ldapsearch tool on my linux machine In order to use this tool to test LDAP connection on my linux ( linux version 5.8 , i386 ) ...
-1
votes
0answers
28 views

bash script error - command not found

1 #!/bin/bash 2 #test integer2: evaluate the value of an integer 3 4 INT = 5 5 if [[ $INT =~ ^-?[0-9]+$ ]] ; then 6 if [$INT -eq 0 ]; then 7 echo "INT is zero" 8 ...
1
vote
2answers
30 views

How to add some characters to filename via 'rename'?

For example I have a file named 5.jpg. How can I rename it to aaaaa.jpg with char a 5 times. I tried rename -v 's/(\d{1,})/a{$1}/g' * but this renames 5.jpg to a{5}.jpg, which is not what I want. I ...