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

6
votes
1answer
48 views

Cleanup trap for ssh command on multiple remote hosts

I want to execute an arbitrary command on multiple remote hosts using ssh. These commands are mostly long running commands that monitor server resources and aggregate the output to my local ...
1
vote
4answers
112 views

How to find IP address of device connected on the same network as PC based on MAC id

A PC and embedded Linux device is connected on the same local network.(We don't have DHCP server access, IT admin has the access). We also don't have access to debug UART on the embedded Linux board. ...
8
votes
1answer
369 views

Why do user space apps need kernel headers?

I'm building busy-box and iptables for an embedded device and one of the dependencies for them are the kernel headers. I have searched the whole file system for *.ko files and found none. So i ...
0
votes
1answer
31 views

How to write shell script on VMDK to derive configuration

I have several VMDK files and I would like to write a shell scripts to derive configuration (i.e. No. of CPUs, RAM, NIC, HDDs Size, No of HDDs, etc.). How can I do this, or where do I start?
2
votes
0answers
47 views

Update Corrupted GRUB; Can't Boot Right

Okay, I've been trying to repair my GRUB for awhile on my version of Lubuntu 14, and nothing seems to work. It seems that an update has broken my GRUB, so that now when I try to boot on the ...
0
votes
2answers
103 views

Which linux distro ships unaltered GNOME 3.1x

I tried the GNOME 3.14 promo DVD. Unfortunately it did not offer the option to install it. I would like to install the latest version of GNOME that ships in a Linux distribution, which I suppose is ...
0
votes
0answers
26 views

Zone Normal range in system with 4G RAM

I have a 4GB RAM in my system. Following is my BIOS provided RAM map. [ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009d7ff] usable [ 0.000000] BIOS-e820: [mem ...
0
votes
2answers
47 views

Howto Configure IPv6 on a Debian based system?

I realize this is probably a pretty basic question, but I can't seem to find an answer that makes sense to me. I have experience configuring networks for IPv4, but IPv6 is a whole other beast. I'm ...
2
votes
1answer
68 views

How to let a user create a directory although not create a sub directory

I'm trying to create a Bash shell script that allows for the transfer of files from a flash device to a archive in which the user will specify. Although I'd like to restrict this user from not being ...
2
votes
0answers
33 views

Advantages of using command line interface over GUI [closed]

I know its a simple question but what advantages does using a command line interface over GUI (graphical user interface) have?
1
vote
1answer
63 views

Unable to mount location after installing Linux Mint

I have been using Ubuntu for a while, but I decided to move to Linux Mint. I removed everything and clearly installed it. After the installation there are two parts which are File System and Toshiba. ...
0
votes
1answer
13 views

Bash - Need to make df output user friendly on login

I am trying to display the disk freespace to users when they login. Basically the output of df -h. I added this to .bash: echo -ne '\e[0;34m'"Disk: \e[m"$(df -h)"\n" It works fine & auto ...
5
votes
3answers
228 views

Can we hot-swap from one install of linux to another?

I have several separate installs of Linux on my machine, and reboot to whichever one is appropriate. I'm wondering if it is possible to switch from one to the other without a full reboot by doing ...
5
votes
2answers
181 views

sed + how to delete the second character “.” from the line

how to delete the second character "." from the line what I have is this ( but its remove the first "." from output uname -r | sed s'/\./ /' 2 6.18-164.2.1.el5PAE while I need the following ...
2
votes
1answer
84 views

Display power management in console

When in console (i.e. not in Gnome or KDE) the display will automatically power down in case of inactivity. It seems to me to be set to something around 30 minutes. This power management is completely ...
0
votes
1answer
59 views

rpm + where RPM installed the files/scripts PATH

I installed the following RPM file rpm -Uvh --repackage /var/tmp/bash-3.2-33.el5_11.4.i386.rpm warning: /var/tmp/bash-3.2-33.el5_11.4.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186 ...
1
vote
1answer
55 views

Daemon /etc/init.d message on Debian

When I start/stop/restart a daemon (eg. apache2), no message appears. I am on Debian testing (jessie). On my old server (Debian testing too), messages are displayed: root@old-server # ...
1
vote
0answers
31 views

How can I properly reload a kernel module?

Related Question I can't reload a kernel module for trying new flags. Example: thinkpad_acpi default is without fan_control=1. So if my computer runs really hot and the fans don't go to full speed it ...
1
vote
0answers
28 views

Copying files to a directory shared via ACL doesn't get default mask

I'm trying to setup a simple shared directory on an ext4 filesystem for a group of users to work on. Let's say i just need to give all permissions to all users belonging to the group "workgroup" to ...
-1
votes
1answer
81 views

Is there a tablet for programming in the market today? [closed]

I need a tablet that could do Python (CPython), Java, C, C++ (also embedding) programming. So suppose that I would use android arm tablet for that and install Ubuntu on it. What I don't know would I ...
0
votes
1answer
31 views

Allowing web server communication in Linux firewall

I have a unique situation. Let's say my webserver ( e.g. 10.0.0.2) is connected to eth0 of my firewall (gw 10.0.0.1). A local network (192.168.0.0/24) is also connected to eth1 (192.168.0.1/24) of my ...
0
votes
0answers
16 views

Mange the source code of kernel

If I download a kernel source tree and decompress it to get below directory: linux-3.13.9 I make a copy of it: cp -r linux-3.13.9 linux-3.13.9.orig, and then I modify one file and run a sequence of ...
1
vote
1answer
33 views

Ran php file contents in bash, could some commands be executed?

I accidently pasted this in bash as super user on production server. Now I'm eating nails. I looked through each line and most of them produce syntax error. But is there something evil that could ...
1
vote
1answer
21 views

Installing plugin to application running on Linux SUSE

I have an application running on a SUSE Linux Enterprise Server 11. A plugin is available which is installed by running an installation program (which unpacks, creates directories and registry entries ...
2
votes
1answer
31 views

Yum installation of package specific modules

I was playing around with texlive package recently and found out that there is a way to install tex style packages with yum install 'tex(package.sty)' command. I've never seen package name was ...
1
vote
0answers
17 views

What is the point of the second route lookup after OUTPUT?

According to the packet path diagram, and its description: Table 6-2. Source local host (our own machine) [...] Routing decision, since the previous mangle and nat changes may have ...
1
vote
1answer
35 views

Install rpm from custom repo

I created a custom repo on one of my machines that I am able to grab updates from. However I also want to be able to install packages such as emacs,gcc, and the such from the repo. The updates work ...
0
votes
1answer
32 views

UNIX + nginx + php + SQL

I use a FTP site to upload my work, which resides on a server running on a Linux OS based on nginx. And I use an odbc driver to connect to a database that interacts with my php code. In that database ...
0
votes
2answers
55 views

I get an error whenever I try to add myself to sudoers

So I installed Debian yesterday, and I tried to make myself a sudoer so that I don't have to be root every time I try to install something. However, this always happens when I add my user to the sudo ...
2
votes
3answers
79 views

Linux speed up by moving files to ramdisk at start

I have more than enough ram in my computer (8GB), which hardly gets used. In the most cases my desktop and apps use up in 2-3GBs out of it, on the other hand I do not have an SSD. My system is 64bit ...
2
votes
1answer
31 views

linux systemd intercept shutdown if service is active

I've created a little update/upgrade program for my arch-based linux. Instead of using a cronjob I'm using systemd and created following files: in /etc/systemd/system: uupgrades.target & ...
5
votes
1answer
86 views

Tail log file on multiple machines over ssh

I'm trying to tail a log file on multiple remote machines and forward the output to my local workstation. I want connections to close when pressing Ctrl-C. At the moment I have the following function ...
1
vote
1answer
34 views

CheckInstall fails to install on Debian

I tried CheckInstall to track installation of package on Debian, but it fails to install it. Installation follows the typical configure/make process $ autoconf $ ./configure $ make $ make install ...
0
votes
0answers
18 views

Start menu position in Linux Mint Petra

I added a panel at the bottom panel, then added the start menu button. The button is now located at the right corner of the panel, beside the month calendar. I want it to be where it always has been, ...
1
vote
1answer
59 views

Identify if server boots using upstart or sysvinit

I am a not a experienced linux user/admin, but last week I acquired a raspberry, and installed on it a Raspbmc, based on Debian distro. I am having some troubles trying to identify which scripts the ...
-2
votes
1answer
74 views

Installing Linux on an unsupported USB device [closed]

Would somebody please direct me to some resources for creating and installing a home-brewed version of Linux onto an unsupported device with USB capabilities, like an insulin pump? Basically, I need ...
2
votes
0answers
46 views

Why adding swap space is the slowest part of the booting process? [closed]

I'm not having performance problems, but just running dmesg command, I can see that adding Swap space is the slowest part of the booting process. Why? I actually have ~4GB for swap and 2GB RAM ...
1
vote
2answers
133 views

Using only 3.3GB but I have 8GB RAM even on Ubuntu 14.04 64bit

I have 2x 4GB(8GB) RAM installed on my motherboard and BIOS/UEFI can confirm it, but on Ubuntu 14.04 64bit only has 3424776kB or 3.266120911GB. uname -a returns: 3.13.0-36-generic #63-Ubuntu SMP Wed ...
1
vote
1answer
102 views

Does Linux support the ThinkPad Helix 2?

I'm holding out for the ThinkPad Helix 2, which has a detachable tablet as a screen. It comes out later this month. I've heard that installing Linux on bleeding edge technology can be problematic ...
0
votes
1answer
51 views

How to wait until script ends - csh?

I execute a script that splits a big file into little files. Immediately afterwards I ask if (-f *filename) then .... Sometimes the script doesn't finish so the if doesn't work. I tried sleep but ...
1
vote
1answer
34 views

Cacti/rrdtool error -> Poller[0] ERROR: SQL Row Failed!, Error:'1033'

I have cacti working flawlessly on a centos 7.0 machine but I need it working on a centos 6.3 machine. I download the same version of cacti as what is on the 7.0 and I installed rrdtool from yum. ...
3
votes
1answer
81 views

Bind Ctrl+Down in Joe on a Linux console

When I want to select a line in joe editor, I can go to the beginning and simply pres CTRL-Down and this will select the line. I can move somewhere ales and copy the line with CTRL-k-c. The key code ...
0
votes
2answers
33 views

No sound on my system

So I've been trying out linux, and regardless of what I do, I end up getting no sound at all. I've tried researching the matter to no luck. At first I tried Debian, then moved onto Elementary OS, and ...
3
votes
1answer
86 views

cannot create special file /dev/pts/0

When using midnight commander in console, I cannot "toggle" the window (using CTRL-o Not an xterm or Linux console; the panels cannot be toggled however, my $TERM is set to linux. After some ...
4
votes
3answers
155 views

Script to compare 2 input paramters and show shared letter(s)

I am writing a script that I want a user to enter two separate words, and the result to show which letter the two words share. For instance ./share Cat Rat - would return shared letters: "a" and "t". ...
0
votes
1answer
33 views

Get hostname to show fqdn without --fqdn

I would like the hostname command to show the fqdn by default on CentOS Linux. What must be done to get this behavior? I am not looking to alias hostname to 'hostname --fqdn' I am looking to modify ...
0
votes
1answer
40 views

Command to list all usernames on a Linux server

What is the command that allows one to generate a list of all the usernames of authorised users on a Linux server? I have tried getent passwd | cut -d : -f 1 | xargs groups and less ...
3
votes
1answer
76 views

Differences between dd in Mac OS X and Linux

When using Linux (Debian), I often use dd to copy a disk image to an SD card. I have written a script that throws an error if the device file specified in the "of" option is too large. This keeps me ...
1
vote
1answer
42 views

exec -t is invalid

I made an rpm that installs a .run file and whenever I run the rpm and the rpm tries to execute the .run file I keep getting the error that exec -t is an invalid option at the following lines of code ...
0
votes
3answers
131 views

Extracting index.php?dir=foo/bar/&file=bar2.jpg to foo/bar/bar2.jpg

I have a lot of files with names like: index.php?dir=IOP%2FFOO%2FBAR%2F&file=ScanImage001.jpg After replacing index.php? with nothing %2F with '/', dir= with noting and file= with nothing: ...