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
13 views

Erratic behavior with gzip on unix

I am compressing log files daily and very recently I have been seeing some crazy results on the file type of the file after compression. Normally you would expect file filename.gz returning gzip ...
0
votes
0answers
5 views

Fast TSC calibration failed in TAILS whch pauses boot

I have several flash drives which have TAILS installed onto them. I have tried to boot from each of them, both on safe mode and off of safe mode, and I get a "Fast TSC calibration failed" warning ...
1
vote
0answers
13 views

Which Processes are interconnected with each other to create the GUI in Linux ?

I read, that the GUI created in the Userspace of Linux is not a single Program/Process but a few Processes that build on each other to create the GUI. Is there a general Layout for this architecture ...
3
votes
1answer
17 views

Change the root password of a Linux image

I'm building a jessie build of Debian. Passwords are saved in /etc/shadow in the build tree, but they are salted obviously so I cannot change it just by editing the file. If this was my installed ...
0
votes
2answers
19 views

selectively moving partially matched files to different directories

I am working in linux server where a parent directory I has 100s of partially numbered files, e.g GGG12345_abb.txt GGG12346_abc.txt GGG12347_cbx.txt . . GGG19045_jha.txt each of which is ...
0
votes
1answer
13 views

Debian E: unable to locate package [duplicate]

I am attempting to install the lxdm package for debian (wheezy). Running apt-get update does not yield any errors, and my sources.list file is as follows: deb http://ftp.us.debian.org/debian/ wheezy ...
0
votes
2answers
25 views

Is there any disadvantage of executing a shell script using nohup?

To execute a shell script in background and without an interruption, we use nohup command. For example: $nohup mytest.sh & Press ALT Press Enter Is there any drawback or disadvantage of this ...
2
votes
1answer
28 views

User without a password - how can one login into that account from a non-root account

I have just started to use Scientific Linux (7.0) (although I assume this question might be distribution neutral..). The kernel version is 3.10.0-123.20.1.el7.x86_64. Coming back to my question. I ...
2
votes
1answer
21 views

How to make sshd listen to two ports, but restrict one of them to a single source address?

I need sshd to listen both on port 22225 (allowing connections on that port from any IP) and port 22 (allowing just a single static IP on that port). In other words, listen on two ports at the same ...
0
votes
0answers
13 views

Map characters to key-combinations

Is there a way to map special characters to the keyboard, using a combination of keys? For example, having Alt+A print out a Greek alpha letter, or having Alt+⇨ print out an implication arrow.
0
votes
0answers
11 views

Java JRE 6 installation

I installed Java 6 (jre-6u45-linux-x64.bin) on a Ubuntu 12.04 machine following the procedure from this link: http://ubuntuforums.org/showthread.php?t=1904467. When I later installed Java 7 and ...
-2
votes
3answers
36 views

what is the difference between “ssh user@ip” and “ssh ip user”?

I am facing problem with one of the above. Only ssh user@ip works not the other way round. And I am getting the following error when I run ssh ip user sh: root: not found Because of this I GUESS ...
0
votes
2answers
26 views

output in iptables

I have added the rule to iptables file, however the command does not show it. $ sudo less /etc/sysconfig/iptables Generated by iptables-save v1.4.7 on Fri Oct 24 13:28:48 2014 *filter :INPUT ...
2
votes
1answer
49 views

bash: how to save state on prompt evaluation

I want to put duration of last running command in command prompt, f.ex: user@host$ sleep 360 6m user@host$ Also, I want duration to not show up if it is less than some minimum threshold (say 30 ...
0
votes
0answers
11 views

Monitor not indentity

I use Debian 7.x and have two same monitors NEC MultiSync LCD2090UXi. But only one of them is detected as NEC. I used xrandr for change resolution of unidentified monitor and all was ok, but after ...
0
votes
1answer
21 views

iptables | redirect from local [interface:port] to local [interface:port]

0 down vote favorite I have two interfaces eth0 (192.168.1.95) and eth0:1 (10.0.0.100) i want all packet for 192.168.1.95:9900 (from any 192.168/24) will be redirect/forward to 10.0.0.100:9900 and ...
0
votes
0answers
23 views

Where can we find a good Linux System Administrator? [on hold]

Where can we find a good Linux System Administrator? What are the websites to post a position that Administrators visit? Do System Administrators like to work as contractors? Or do they prefer to work ...
2
votes
0answers
45 views

sudo -i returns an error

When I try to switch to root using sudo -i i get the error /var/tmp/sclDvf3Vx: line 8: -i: command not found... However, su - works which I will continue to use. I'm by no means a linux system ...
2
votes
2answers
52 views

Print file contents and delete the printed content* from the file

In Linux, from a bash shell, how can I print the contents of a file and remove the content I just printed content from the file? I have a program writing texts to a file repeatedly. On a Linux shell ...
0
votes
0answers
11 views

Keyboard merely plugged in greatly increases kernel boot time

Specs are here. I am using a K65 RGB. I am using the ckb-git package from the AUR to provide basic input functionality. With Keyboard and with driver: Startup finished in 3.100s (firmware) + ...
2
votes
4answers
44 views

Does the inode change when renaming or moving a file?

in PHP the fileinode() functions returns the inode of a file. I was wondering if I can use it to determine if a file was renamed, moved or modified. I did some tests and it seems the inode stays the ...
0
votes
0answers
21 views

Two monitors work as if they were a single one

I have 3 monitors (1 on an Intel card, 2 on Nvidia). After some magic with xorg.conf they started to work, but the two Nvidia monitors work as if they were a single, wide monitor (any maximized window ...
0
votes
1answer
10 views

Porting Binder IPC to Linux

Android provides a device driver based IPC mechanism called Binder. I see it as one of the staging drivers in Linux. Although I can have a linux kernel running with this device driver, if I want to ...
0
votes
0answers
16 views

Running Mac OS X under KVM/QEMU

Note to be removed in the future, so as to avoid confusion from answerers and mods edit: Forgot to add in the note, if anyone thinks this is the wrong stack-site to post this, please comment on why, ...
1
vote
1answer
16 views

Convert Tab Separated csv using unoconv

I am attempting to convert a tab separated csv into an xls file using unoconv. However, the tabs are not being recognized as the field separator. Can someone please tell me how this can be done. I've ...
2
votes
1answer
42 views

How to set the core dump file location (and name)?

I am on CentOS 6, trying to enable core dumps for an application I am developing. I have put: ulimit -H -c unlimited >/dev/null ulimit -S -c unlimited >/dev/null in to my bash profile, but a ...
-3
votes
1answer
29 views

does curl -Ls 'http://pastebin.com/raw.php?i=r2jYDZaw' mean it will not output anything?

Does the s in -Ls mean that nothing should be outputted? If so what will be the output then?
1
vote
1answer
18 views

genfstab not working [on hold]

I mounted my sda1 mount /dev/sda1 /mnt Then I call command genfstab genfstab /mnt >> /mnt/etc/fstab I get an error: genfstab: command not found I got this error while installing ...
0
votes
1answer
27 views

Is anyone using Red Hat Enterprise Linux for Desktops or Workstations at home? [on hold]

I consider using RHEL for my dissertation, on my Thinkpad T430. I've been using Linux (mostly Ubuntu, Debian) for the last decade but I'm curious about RHEL since it seems to be used a lot outside ...
1
vote
3answers
54 views

Simple flag based comparison in Linux

I am trying to run a simple script to check for a flag and then check for additional conditions. The following always echoes "Run Script.." irrespective of the value of the flag: FLAG_Control=false ...
0
votes
1answer
25 views

wkhtmltopdf - QXcbConnection: Could not connect to display

How to run wkhtmltopdf headless?! Installation on Debian Whezzy apt-get install wkhtmltopdf Command wkhtmltopdf --title "$SUBJECT" -q $SOURCEFILE $OUTPUTFILE Error QXcbConnection: Could not ...
0
votes
2answers
59 views

Print awk's current new line character

How can I find what new line character is in my file when using awk? I know the default is \n but this is what manual says. I want to see it with my own eyes. I have just started learning awk and ...
0
votes
0answers
28 views

What's the difference between RHEL 6.5 and RHEL 6.6? [on hold]

I've a copyright software installed on my server and the support told they don't support RHEL 6.6 against RHEL 6.5 only. They ask me to downgrade the release. I explained I'm very surprised like it's ...
1
vote
1answer
25 views

Monitoring tool without web interface

I need to monitor a Linux server. I'm searching for a monitoring tool able to store system information (CPU, RAM disks usage, Apache and Postfix status, etc.) throughout the day and send an email ...
1
vote
0answers
46 views

Function tracing tool [on hold]

What are the best tools for user space function tracing ? I want to know if there is a tool for User Space function tracing (Cent Os environment) that without actually modifying the source code can ...
0
votes
2answers
20 views

Skype/Spotify Installation Error: Cannot Install libssl1.0.0:i386

OpenSSL has been giving me a lot of gripe lately with some pieces of software such as spotify and skype. I include both apps because I think it's the same issue causing both to stop installing, ...
2
votes
2answers
31 views

Several hard-links with different metadata in Linux using Ext4

Is it possible for Ext4 file systems (or maybe another one understood by Linux) to assign different metadata (like modification time, owner, access rights) to several hard-links that refer to the same ...
-3
votes
2answers
32 views

How can I identify if a binary file is set-user-ID? [on hold]

In Linux, how can I identify if a binary file is set-user-ID? Can I use ls -l?
1
vote
1answer
42 views

Write text on last line of document [duplicate]

If I have this document aaa bbb ccc And I want to add " ddd" on the last line. My document should look like this: aaa bbb ccc ddd How can I do this? If I prefer awk or sed but ...
0
votes
0answers
41 views

grep command with pipes, how to implement in script?

I'm new to expect scripting and trying to get below script to work. The script logs in to a server and reads a config file ($val in the script) for the values of "cps" and then presents a total ...
-1
votes
0answers
18 views

Is it safe to run programs that have viruses on a virtual machine [on hold]

Is it safe to run applications with viruses on a virtual machine? Please explain the vulnerability
0
votes
1answer
29 views

Understanding high load average with vmstat, mpstat, sar, and top

I am trying to understand the load average on my system when idle. Here are some results after the system has been running for a few hours, with almost nothing installed. vmstat root@arm:~# vmstat ...
0
votes
0answers
13 views

DHCP server easy switch

i have a server, running Centos, that bring reserved DHCP for mac to 5 computers, but they have diferentes ip depending on some external parameters, and i change manually everytime, and i want know ...
0
votes
1answer
36 views

What variables are valid within /etc/default/useradd file?

My /etc/default/useradd file is as follow: # useradd defaults file GROUP=100 HOME=/home INACTIVE=-1 EXPIRE= SHELL=/bin/bash SKEL=/etc/skel CREATE_MAIL_SPOOL=yes man page for useradd provides many ...
0
votes
0answers
15 views

using man command for a system call close [duplicate]

So if we have an executable program called close on linux, and theres also a system call close. How can i generate a command that makes sure i get the manual for the system call "close" rather than ...
0
votes
0answers
15 views

How to color a replaced word in Livecode [on hold]

I want to replace "organisation" with "organization" and change the color of organization to red in Livecode. Iam using this code for replacement --replace "organisation" with "organization" in ...
0
votes
1answer
37 views

User Input Bash Script

I am trying to make a Bash Script that has 4 choices and prompts the user to select an option. Each option corresponds to a Linux Command operation. Can someone give me a bash example on how could ...
0
votes
0answers
13 views

Is user/filesystem access separation of services enough to have well secured data of services?

I'm about to publish some of my projects. So, I'm gonna to re-install my VPS and do it properly. I'll have running on it Apache server(websites are made using Ruby and Python), databases. I'll also ...
1
vote
1answer
46 views

When saving INTO OUTFILE from mysql on a systemd based system, the output file is grabbed by systemd — why?

I regularly run simple reports from a mysql (actually, mariaDB) database: MariaDB [acts]> SELECT resolution, title FROM acts ORDER BY resolution INTO OUTFILE '/tmp/acts-titles.txt'; Recently I ...