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

4
votes
3answers
10k views

How to determine if NFS mount is mounted as v3 or v4?

Red Hat 5/6 when I do mount it says type nfs, I would like to know how to determine version if it isn't listed in mount options or fstab. Please don't say remount it with the version option, I want ...
0
votes
0answers
42 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
votes
0answers
43 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: ...
1
vote
2answers
1k views

Unknown hard disk partition?

I want to mount my second hard disk from my Linux VMware guest but when I try mount -t ext3 /dev/sdb2 it is not available. fdisk -l /dev/sdb gives me unknown format: /dev/sdb1 2048 ...
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
vote
1answer
581 views

Why do I not seem to have hidraw options on my system, and how can I fix my usb devices?

Starting today, I noticed a few problems with my system. USB devices, including the internal ones such as microphones, don't seem to be working at all. I first noticed when my keyboard and mouse ...
2
votes
1answer
31 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 ...
0
votes
0answers
30 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 ...
1
vote
2answers
88 views

Kali Linux openVPN does not pass the DNS Leak test

I recently installed Kali Linux on VMWare. I was able to successfully install openVPN following these instructions, but it seems that it does not pass the DNS Leak test. Is there anything that can fix ...
0
votes
1answer
1k views

How can I simulate usb storage device connection with qemu?

I'm writting a program for controlling usb storage device connections (this is a classic subject). All it's ok with my program, but now, I want to write some tests. So in order to do that, I realized ...
1
vote
2answers
878 views

tkdiff error on Linux Redhat 5.5

I installed tkdiff as root, and it runs fine under that user, but when I switch to a local user I get the error: Application initialization failed: Can't find a usable init.tcl in the following ...
2
votes
2answers
342 views

Google Hangouts chrome extension transparency issue in Linux Mint?

I am new to Linux Mint. I just installed the Google Hangouts chrome extension (the one that looks like Facebook's Messenger pop-up heads). Unfortunately, all the circles have a white box around it, as ...
3
votes
1answer
27 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
15 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
0answers
11 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 ...
10
votes
2answers
72k views

Boot windows from grub rescue command prompt

Previously I had installed the Ubuntu 10.04 and Windows 7. Now I logged on to Windows, opened thepartition editor and deleted the volume containing the Ubuntu (Thought it will delete the Ubuntu and ...
6
votes
3answers
512 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 ...
0
votes
0answers
40 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
vote
0answers
22 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 ...
1
vote
1answer
1k views

Samba no longer allowing different guest account per share

I sure hope I don't make a fool of myself with this but here goes... I've updated Samba from 3.0.33 to 3.6.9 (well, upgraded my OS and this update came with it) and have found certain features I ...
-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 ...
0
votes
0answers
21 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 ...
14
votes
2answers
51k views

Orphaned connections in CLOSE_WAIT state

I've got a SLES machine that accumulates TCP connections in a CLOSE_WAIT state for what appears to be forever. These descriptors eventually suck up all available memory. At the moment, I've got 3037 ...
2
votes
3answers
57 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 ...
13
votes
1answer
9k views

Linux LXC vs FreeBSD jail

Are there any notable differences between LXC (Linux containers) and FreeBSD's jails in terms of security, stability & performance? On first look, both approaches look very similar.
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
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. ...
38
votes
5answers
19k views

Can Linux deal with ultra high resolution displays?

A few months ago, Samsung announced the Ativ Book 9 Plus, a pretty cool ultrabook with a screen resolution of 3200 x 1800 pixels (QHD+). The device ships with Windows 8 until Windows 8.1 is released ...
13
votes
4answers
26k views

How to check password with Linux?

I want to check, from the linux command line, if a given cleartext password is the same of a crypted password on a /etc/shadow (I need this to authenticate web users. I'm running an embedded linux.) ...
1
vote
1answer
540 views

Is it possible to prevent eth0 network traffic from accessing eth1 network?

I am not really sure how this is possible but I have a linux(ubuntu 14.04) box with 2 interfaces. eth0 is connected to our lan 192.168.0.* and eth1 is connected to a dlink wifi router on network ...
3
votes
2answers
1k views

Use curl to send binary file through POST with content-type multipart/form-data;

A post request is made to: http://www.example.com/example/ and the post data is as follows: ------WebKitFormBoundaryB8NNdk2kNdndnnn Content-Disposition: form-data; name="picture[uploaded_data]"; ...
-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.
0
votes
2answers
40 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 ...
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
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 ...
-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
18 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.
1
vote
3answers
46 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
1answer
824 views

How to select which graphics card to use?

I have a desktop with an integrated graphics card, which i want to use, and a PCI graphics card. I would like to display video through the integrated graphics, and use the PCI card for CUDA based ...
3
votes
1answer
160 views

program needs to be run as root by any user and can be located anywhere

I have some program called foo that needs root privileges when it executes. foo needs to be able to be run by any user and can be located at any path. The reason this program can be at any path is ...
4
votes
1answer
60 views

high precision subsecond cronjob replacement

I am looking for a cron replacement which could run subsecond schedule, is there have any "still alive" project which serve this purpose? Currently running Ubuntu 14
1
vote
1answer
1k views

Deleting Non-empty Directory with smbclient

How can I remove a non-empty directory with smbclient? I have tried the following: 1) rm Result: NT_STATUS_NO_SUCH_FILE listing [dir_path] 2) recurse;rm Result: No Error but also nothing ...
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 ...
2
votes
1answer
64 views

Multiple Windows recovery image deployment via Linux PXE server?

Is the following scenario feasible: A laptop repair workshop currently using multiple, physical hard disk caddies containing various Windows 7 / 8 recovery images for repairing various laptop models ...
2
votes
1answer
121 views

“mount: wrong fs type..” error when mounting USB

I'm stuck trying to mount a USB drive on a Raspberry Pi (Wheezy). I've reformatted it (ext4) and tried re-mounting it in /media/owncloud (following sudo chown -R pi:pi /media/owncloud), but hit an ...
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
1answer
132 views

bluetooth - btusb - How to replace module version with a newer one

I have pre-compiled kernel 3.16.7 which has btusb v0.6 module; The current btusb v0.6 I'd like to replace with btusb v0.7 which is located in kernel 4.0; So my question is how to : remove the ...
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.