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

Backup using rsnapshot not working

I have a server web based Linux and i want to make backup every hour using rsnapshot. this is my rsnapshot file configuration : config_version 1.2 snapshot_root /var/Majjane-Save/ cmd_cp ...
0
votes
2answers
26 views

Where can I find the speciation that a terminal emulator must meet?

I'm interested in writing a terminal emulator for fun. I roughly understand the division of labor between the shell and the terminal emulator from this post: What is the exact difference between a ...
0
votes
0answers
43 views

How to detect the user has logged in a domain or local host in the linux shell script?

In the default, the linux doesn't support the domain. But the user can join a domain by applictions, such as: Likewise, Winbind, and so on. For my project, my customers are all enterprise members. For ...
1
vote
1answer
34 views

How to send AT commands to modem once the connection is established?

I have a zte 3g modem. I use carrier provided dialer for connection establishment. Once the ppp connection is active, i would like to send some AT commands(for ex. Query signal strength, AT+CSQ). But ...
-1
votes
0answers
54 views

Centos 7.0 update command not working

I have just installed CentOS 7 on my PC. After install completed I tried to update CentOS using the yum update command: Downloading packages: No Presto metadata available for base warning: ...
0
votes
0answers
32 views

Redirect with axel in linux

I am trying to download a file from googlevideo. This download link may expire in a few minutes but I will post everything I have. When I use axel with the following command, I get $ axel -n 10 ...
3
votes
1answer
28 views

Error codes for watchdog daemon

Here's a line from a linux syslog: watchdog[2423]: shutting down the system because of error 101 However, after searching online and in man watchdog, I cannot find any discussion or explanation of ...
1
vote
1answer
16 views

Resend (bounce) a message with attachment in mailx (or any other tools)

I've got a mail folder which contains a unique e-mail containing several attachment. I'd like to script the resending of the email as verbatim as possible. If I write cat tosend | mailx ...
0
votes
1answer
17 views

Synaptics touchpad loses its settings intermittently

From time to time, the Synaptics touchpad on my Samsung N145 Plus will lose "advanced features", like scroll area on the right side. I used to have a script to take care of this, IIRC by doing sudo ...
0
votes
0answers
13 views

fontconfig availability on major linux systems

I need to install a font on my qt-based app, the function to do so says: Adding application fonts on Unix/X11 platforms without fontconfig is currently not supported. Since I'm a linux newbie ...
0
votes
0answers
37 views

How to manage any command access privileges on debian linux

I am using Debian 7, and my desktop is xfce. I want to achieve managing any command on Linux. For example, executing /usr/bin/xfce4-taskmanager command would not require sudo privileges so any user ...
2
votes
1answer
32 views

How do I create executables that can work on old systems on modern distros?

Typically even old programs (copied from systems with Linux kernel version 2.4) just run file on modern Linux systems, unless they depend on a lot of libraries or use frameworks. New programs, (often ...
1
vote
0answers
23 views

Allowing sudo kill for remote user for recovery purpose. Security implications?

I'm planning to create user allowed to SSH in and with right to sudo kill in case something disables local terminal/keyboard/display etc. Would probably add ps and/or htop to the list, as well. I ...
0
votes
0answers
41 views

Gedit start problem in kali linux

I try to open gedit after install third party plugins but it won't open. When i try it by terminal it shows root@localhost:~# gedit Segmentation fault I think gedit is running background but it ...
-1
votes
0answers
21 views

Search for a file on a domain in the command line

I'm running a Direwolf20 minecraft server, which doesn't auto-update and I want to write a script to do so, but I won't know the new server version at the time of the update. Is there any way I can ...
6
votes
3answers
518 views

How does Unix implement file permissions?

I have a text file named foo.txt with root permission in one Linux distribution. I copied it to another Linux distribution on another computer. Would file permissions be still maintained for ...
2
votes
3answers
61 views

When to use reboot(2) vs reboot(8)

I'm writing a custom reboot program in C and trying to decide if I should use reboot(2) directly or call system("/sbin/reboot"). Both reboot(8) and init 6 change the runlevel and gracefully shut down ...
0
votes
0answers
22 views

How would you find just the files created by a specified user? [duplicate]

I'm trying to create a script that prompts a user within the terminal to enter a username. If the username exists then the script will display all the files created by the user, else display a error. ...
31
votes
4answers
1k views

Does bash open files in O_APPEND when using “>>” on linux?

If we use echo 1234 >> some-file then Documentation says that the output is appended. My guess is that, if some-file does not exist, then O_CREAT will make a new file. If > was used, then ...
-1
votes
0answers
8 views

Squid on Debian, access to internet only from windows machine

how the parameters in the configuration of squid is responsible for filtering the operating system? I would like to make the network using only Windows XP users.
2
votes
2answers
21 views

Utility which gives line from /proc/id/maps by specific address

Is there an utility that gives me specific line from /proc/id/maps when given specific address from this process? For example when given 0x7fb4a84f6008 it returns: 7fb4a84f6000-7fb4a84fd000 r-xp ...
0
votes
2answers
41 views

dmidecode - what is the “system”?

In dmidecode types 0 BIOS Information 1 System Information 2 Baseboard (or Module) Information What is the second entry? For exmaple, First is for bios, second for Motherboard. What does ...
0
votes
0answers
26 views

READ DMA Error after Installing CentOS 7

I have been trying to install CentOS7. After I installed it, I see the following message sporadically. ata2.00: exception Emask 0x10 SAct 0x0 SErr 0x4050000 action 0xe frozen ata2.00: irq_stat ...
1
vote
0answers
38 views

eth0:<name> interfaces in Linux

I have a server which shows following three "secondary" IPv4 addresses in ip addr show output under physical interface eth0 section: inet 10.10.1.26/32 scope global eth0:vpn inet 10.10.1.19/32 scope ...
0
votes
2answers
22 views

How to display open file descriptors with thread id but not using lsof command

How to display open file descriptors with thread id but not using lsof. I know a similar question exists but the answer doesnt include thread details.
-1
votes
1answer
41 views

What is Dash(-) actually in unix or linux? [duplicate]

It's been While since i'm using dash(-) in unix command. But have never found out what exactly is this. Have searched at some place it says . It mean stdin/stdout when used in end of command or like ...
-1
votes
1answer
19 views

Vsftp too much time for login [closed]

While I'm trying to connect my new Vsftpd server using ftp client. The user authentication passed quit speedy but next steps lag too much. Please help me to speedup my Vsftpd server.
3
votes
0answers
30 views

Limit the inode cache used by a command

I want to run a task with limits on the kernel objects that they will indirectly trigger. Note that this is not about the memory, threads, etc. used by the application, but about memory used by the ...
0
votes
1answer
37 views

File system not detected after OS upgrade - how do I debug this?

I have a computer with two hard drives in it. One carries the OS and a whole bunch of other stuff; the other was mounted inside /media as a dump-space for an additional terabyte of storage space. ...
0
votes
0answers
17 views

How do I Increase swf video speed in gnash?

Is there any way to increase the speed of a swf file? I couldn't find a good and fast way to convert it to video so as to increase its speed. I am using gnash to open swf files.
0
votes
1answer
19 views

error when install library ubuntu 10.10

I have installed Ubuntu 10.10 I have chosen this Ubuntu because I want to run openbts 2.6 on this machine. My problem is that when I run this library: sudo apt-get -y install libfontconfig1-dev ...
1
vote
1answer
32 views

how to know smartd test was successfully completed or not

I am using smartmontools 6 and redhat5.In my smartmontool, smartd dameaon is working fine that means logs at the location of /opt/smarttool/logs changes at every 30 minute. logs file name are: ...
0
votes
1answer
22 views

GNU\Linux clustreing , Which level? Which application? [closed]

I need to start GNU* clustering, But I have problem, Which level: DB level? (replication) file system? (distributed) process level ? (such as intel fortran for civilization softwares) new process ? ...
0
votes
0answers
17 views

interceptty error message

I want to listen to a certain device on my linux system. therefore I am using interceptty. When I call: mv ttyO0 ttyO0-orig and then ./interceptty -o ttyO0.out /dev/ttyO0-orig /dev/ttyO0 & I ...
-2
votes
0answers
8 views

Yum Configuration With http [duplicate]

I have problem yum configuration using http. I want to install NBD packages from internet and I configure the yum server following using the yum.conf configuration file [myrepos] name=reposeme ...
0
votes
0answers
40 views

strongSwan routing issue with roadwarrior behind NAT

Using the following ipsec.conf configuration: conn %default ikelifetime=60m keylife=20m keyingtries=3 rekeymargin=3m keyexchange=ikev2 ...
1
vote
3answers
50 views

Is it possible to create dynamic content on file read operation?

Is it possible to generate file content based on file name? I need a lot of similar .conf files with content depending on file name only. Can I create some "dynamic" file and generate a bunch of ...
0
votes
0answers
50 views

Linux Clean Installation ERROR IN BOOT: “Reboot and select proper boot device or insert boot media in selected boot device”

After installing a clean copy of linux elementary os. It shows me "Reboot and select proper boot device or insert boot media in selected boot device". I'm using a laptop and previously I was running ...
2
votes
2answers
58 views

how to pass environment variable to sudo su

I basically need to do this: DUMMY=dummy sudo su - ec2-user -c 'echo $DUMMY' This doesnt work. How can I pass the env variable $DUMMY to su? -p doesnt work with -l.
1
vote
1answer
30 views

How to associate physical usb port with usb device number

I'm using Ubuntu 12.04. I need to send a command to a device that I have connected on a port of my PC. I can send the command by finding out what the Bus and Device number are. For example, lsusb ...
0
votes
0answers
7 views

auto boot a java app fullscreen on lxle

I just downloaded a base version of LXLE. How can I configure the system whereby on startup, it'll launch a java app full screen (covering everything possible). The only way to navigate out of it is ...
1
vote
1answer
42 views

Track Internet Usage [duplicate]

I am looking to track the internet usage on linux, how can I do this? I would like to come back in x amount of time and be able to see how much data has been used.
0
votes
0answers
5 views

Whisker Menu - Switch to application if already running

Is it possible to not just start applications but also switch to them if they are already running? For example if Firefox is running and I run it again Linux tells me that an instance is already ...
4
votes
3answers
91 views

Why can't I read /dev/stdout with a text editor?

I just started learning how Everything Is A FileTM on Linux, which made me wonder what would happen if I literally read from /dev/stdout: $ cat /dev/stdout ^C $ tail /dev/stdout ^C (The ^C is me ...
1
vote
0answers
28 views

How to get the mouse/keyboard raw events?

I want to intercept the raw events from the keyboard (or the mouse, eventually). I tried to use the /dev/input/[...] files, they are very practical and I can read the events of any key even caps lock ...
2
votes
3answers
48 views

Search a String in a directory- Get output without filename

I am executing the below command to display the lines which matches the pattern. find ./files/ -name "*.txt" -print0 | xargs -0 grep "5|20150507" And output is ...
1
vote
0answers
33 views

How to corrupt rpmdb?

Yes, You read it right i actually want to corrupt RPMDB for testing purpose. I tried Googling it but all i got was to, how to rebuild it. So at last i tried rpm --rebuilddb and killed the process ...
0
votes
0answers
7 views

Fedora 16 only boots after manual drive selection [closed]

A colleague of mine recently tried to setup a RAID 1 on our Fedora 16 machine via the Disk Utiliser menu, even since then (even after tearing the raid down and removing all HDDs but the boot drive), ...
-1
votes
1answer
19 views

How to get the screen logs of a oracle VM [closed]

When I start an oracle VM with Linux operating system I want to get the standard output, i.e whatever is coming in the screen. Is there any tool or is there any way to get that so that I can check ...
0
votes
1answer
31 views

What is Dynamic interleave for process in Linux?

I have read through the source defined in /source/mm/mempolicy.c. Starting at line 1178: /* Do dynamic interleaving for a process */ static unsigned interleave_nodes(struct mempolicy *policy) { ...