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

udev set kdbrate settings on linux with console users issue

I have a kbdrate setting as a udev rule for usb devices(keyboards and scanners that re repluggd in). kdbrate needs to be set by someone with /dev/port access which is the console user. The udev rule ...
1
vote
1answer
7 views

Accessing GPIO after kernel boots

my rootfs.cpio has only following files: [root@localhost extract]# ls dev init tmp dev has console only. init is cross-compiled from the program given at the end: Then I make a my image and ...
2
votes
1answer
45 views

CHROOT: Unable to copy files to jailed users directory from local machine using WINSCP

I have setup a Chroot environment for one of my users called client on my system. I am using WINSCP to connect to my server from my machine using public key authentication. Everything works fine, I ...
50
votes
9answers
3k views

Does `sl` ever show the current directory?

For those out of the loop, sl is a humourous command line tool that is meant to trip people up if they mistype ls. When invoked it prints a Steam Locomotive. For example: ( ...
7
votes
4answers
306 views

How to subtract rows (lines) with AWK

I'm trying to figure out how I can use AWK to subtract lines. For example, imagine the input file is: 30 20 The output would be: 10 Now, as a test I am trying to calculate the "Used" memory ...
-2
votes
0answers
10 views

asking for DCOM AND COM Code [on hold]

I studied about Distributed Component Object Model but didn't find any sample code which can help me to code mine. I want to start COM & DCOM programming in VB. Can anybody provide some ...
1
vote
1answer
29 views

Airdrop compatible

Is there anything in Linux that implements whatever it is that makes Airdrop in OS X work? I'm not really familiar with that program, so I'm not sure what protocol it's using to communicate. update ...
1
vote
0answers
6 views

Awesome not showing up in GDM?

I recently installed debian with xfce. Once installed, I upgraded to Debian testing and installed awesome, then rebooted. When I click the list of session options at GDM's login screen, the only ...
9
votes
4answers
4k views

If I connect a physical device, how can I ever know which device file belongs to it?

Say I plug in several USB drives which don't get automatically mounted. How can I find out which device file belongs to which physical device, so I can mount it for example? I'm running Mac OS X but ...
0
votes
0answers
11 views

Running NFS server as ver 3

As NFS docu stands it is possible to run NFS serwer ver 4 as ver 3 from the boot. Just it is necessery to add such entries in /etc/defaults/nfs file: NFS_SERVER_VERSMAX=3 NFS_SERVER_VERSMIN=3 I ...
0
votes
1answer
21 views

Linux collect only the modified logs every day

Linux collect the modified logs every day I want collect the log files from /var/log/ directory every day. My script will zip all the files in the directory and store it separately. But the problem ...
40
votes
14answers
23k views

Determine the size of a block device

How can I find out the size of a block device, such as /dev/sda? Running ls -l gives no useful information.
2
votes
0answers
16 views

Update Route Entry On another DD-WRT upon New IP address (WAN) SSH linux

I have two routers on two different gateways/ISPs but on the same local subnet (192.168.). If router A (192.168.1.1) gets IP address from the ISP (for example 24.64.10.15, non-static), I would like ...
0
votes
1answer
1k views

Ubuntu: wire network is not stable and must restart network-manager periodcally

I don't know why my wire network now is not stable. After a short time of using, maybe 30 minutes, 15 minutes or maybe just 2 minutes, my network is down. When my network is down, I must run this ...
1
vote
2answers
449 views

xdg-open ignores my application definitions

I am running compiz-gnome session with xfdesktop on fc16, don't ask why, but I have this weird problem. Some of the applications (e.g. tracker, or evolution )do not start the proper application for ...
2
votes
1answer
183 views

Boot graphical application straight from Linux bootup (without verbose boot messages and desktop)

Is it possible to boot from minimum Linux core(Linux/Android) to an application (preferably created in interchangeable platform languages such as C# – Mono / GTK / Java / C) without any verbose ...
2
votes
2answers
428 views

Key mappings in Linux

What do people mean when they point out that the "keys are not properly mapped" in a Linux installation when working on the command line? Isn't the default installation OK? What extra/specific ...
1
vote
1answer
72 views

Sudo su issue on ubuntu 14.04 lts: /root/zsh can't not be found

I have recently re-installed ubuntu 14.04 lts and I installed my favorite shell (zsh) but I am having an issue now. When I type, sudo su it comes back with an error stating /root/zsh can not be ...
2
votes
0answers
20 views

linux udev rule to load gadget module for client driver

I'm having a hard time automating loading a gadget module and bringing up the usb0 device as a eth interface. The interface in question is g_ether for a embedded Linux device and connecting to a PC. ...
6
votes
1answer
1k views

Using setkeycodes to map pressed and released to different “keys”

I have a keyboard that has a scroll wheel, but it doesn't work on Ubuntu and xev command doesn't show anything when moving it. But with the dmesg command I found this: When moving the scroll wheel ...
2
votes
1answer
32 views

I'm trying to count and print song file names using awk as following

RANK NAME BAND YEAR GENERE DOMESTIC/INTERNATIONAL 206:Reach Out, I'll Be There:The Four Tops:1978:Pop:3/2 207:Bye Bye Love:The Everly Brothers:1950:Classic:3/2 ...
0
votes
1answer
15 views

Live Linux distribution with preinstalled NVIDIA CUDA support

Is there any Linux distribution with preinstalled NVIDIA CUDA support that could be launched from a live CD/USB drive?
82
votes
26answers
102 views

Tracking down where disk space has gone on Linux?

When administering Linux systems I often find myself struggling to track down the culprit after a partition goes full. I normally use du / | sort -nr but on a large filesystem this takes a long time ...
3
votes
3answers
276 views

How to put fixed-width, vertically-oriented key-value pairs in a CSV file?

I have a text file with the following type of content: OPERATION_CONTEXT VMD1HTE1A71_ns:.oc.GJ_OAD2 alarm_object 1130 On director: VMD1HTE1A71_ns:.temip.VMD1HTE1A71_director AT Fri 18 Oct 2013 ...
8
votes
2answers
209 views

How can I find available network interfaces?

This is in regard to linux, but if anyone knows of a general *nix method that would be good. I booted a system yesterday with an ethernet cable plugged in. "NetworkManager" is not installed, so once ...
2
votes
1answer
24 views

Problem on running Script on host after connecting

I am new to linux scripting. Please help. I searched on below a lot but was not able to find appropriate answer : I am trying to make a script which I will later schedule as cronjob, so that it keeps ...
3
votes
0answers
41 views

How to create Virtual Network for VM's

I have downloaded a Linux Live CD which I am required to do pentesting using VirtualBox . Live CD is configured for router with Pool Starting Address 192.168.2.2 . Now problem is that my router is't ...
1
vote
1answer
16 views

Create a VPN network between a live server and private networks

I have a VPS (Cent OS 6) on a live IP. I have several other machines (All linux, mostly Cent OS 6 and a few Android devices) sitting behind NATted ADSL Routers on several sites. I need to create a ...
0
votes
1answer
25 views

How to take incremental backup in tape drive

I am having 1 tape drive and I want to take incremental backup of 5 folder to the tape drive on every Friday. But the location of the five folders are on one server and the LTO mounted on a different ...
0
votes
0answers
8 views

how get net switch info in soc?

I have a router device. cpu is mtk7620n. mtk7620n have a switch. How can i get information of the switch . swconfig show nothing. i think the switch have no driver. Anybody give me some ...
13
votes
3answers
205 views
+100

How to find the driver (module) associated with a device on Linux?

On Linux, given: a device, for example /dev/sda, and its major and minor numbers, for example 8, 0, how can I know which module / driver is "driving" it? Can I dig into /sys or /proc to ...
1
vote
0answers
99 views

Possible issues with SSD SATA3 drive

While investigating the issue with my SATA3 SSD drive being recognized as SATA2 (for some reason had to change SATA ports to fix it) I noticed the following messages when I run: $ dmesg | grep ...
5
votes
2answers
222 views

Linux kernel headers' organization

While I was doing some reading on system calls, I did a search for "syscalls.h" to find the header file in LXR. The search results puzzled me. There is a dozen of "syscalls.h" files coming from ...
4
votes
2answers
166 views

Problem when trying to cross-compile an ethernet driver on an old Linux kernel

I'm currently trying to cross-compile a network driver against an old Linux kernel, in version 2.6.27.7 but the compilation fails and prints: make[1]: entering directory « ...
1
vote
1answer
789 views

How to get system configuration information without dmidecode

In order to collect some system configuration information, I have been using dmidecode and the related tool lshw to find the information. This works great on most machines, but I have recently got ...
1
vote
1answer
830 views

Bridge interfaces with Vlan on Linux based access point

I have a Linux based wireless access point. It has eth0 interface for ethernet, ath0 for wireless and br-wan as a bridge between the two. bridge name bridge id STP enabled ...
1
vote
1answer
345 views

Awesome Apache Monitoring

I'm doing some research into how I can collect and graph useful statistics from apache per vhost: Bandwidth Usage Number of requests Errors Busy workers Free workers Queued/Waiting requests Bonus ...
3
votes
1answer
91 views

How can I install Linux on a UEFI system with Secure boot?

My motherboard is a Gigabyte 990XA-UD3 (CPU 1), it's a UEFI -Dual boot, and when I try installing Linux Mint 16 Cinnamon or Ubuntu 13.10 it always bring this error (initramfs) Unable to find a medium ...
6
votes
2answers
3k views

How does cat know the baud rate of the serial port?

I regularly use cat to view debugging information in the console from my FPGA development board over the serial connection, but I never have had to tell linux what the baud rate is. How does cat know ...
-1
votes
0answers
64 views

Debian - how to find out why a lot of services stopped [on hold]

Question: How to find out why services stopped if their logs don't say anything, they just stopped logging. Where does Debian keep logs about services that were killed (for example do to RAM running ...
3
votes
2answers
171 views

Redhat Linux: How to know my system configuration?

I am using Red Hat Enterprise Linux Server release 5.9 (Tikanga). For installation of any application, it is very important to know the system configuration, is it 32 bit or 64 bit system, Installed ...
1
vote
4answers
998 views

Restart MySQL server

I am using MySQL v5.1 on Ubuntu machine. MySQL on my machine used to work. (Running mysql -u root gave me the MySQL command line.) This afternoon, I did the following thing: 1. check active process ...
14
votes
3answers
421 views

Move files and change ownership at the sametime

On Linux (Debian, Ubuntu Mint...), Is there any option command or something that I can use to transfer files to another user without having to do : sudo mv /home/poney/folderfulloffiles ...
5
votes
1answer
998 views

Eye-FI SD Card not working with inbuilt card reader

I am tring to get my cardreader to work with and eye-fi SD card. My System is as follow: #uname -a Linux computer 3.2.0-0.bpo.2-amd64 #1 SMP Thu Mar 15 20:46:44 UTC 2012 x86_64 GNU/Linux Debian ...
-1
votes
1answer
33 views

Apache Downloading a lot data, how to find out which script?

Apache Downloading a lot data, how to find out which script? I host a few sites, i noticed a ton of bandwidth being Downloading (not so much when uploading) when the httpd service is running, when I ...
4
votes
4answers
40 views

Rebuild damaged system directory (for example, /lib)

Let's say I have a Linux system, either Debian, Ubuntu, or CentOS, where a user removed /lib, for example. Let's also say that I managed to boot this system with a livecd version of whatever OS it was ...
2
votes
0answers
45 views

USB 2.0 device is not working in USB 3.0 ports

I have a Ubuntu 12.04 system. To that system I have one USB 3.0 port. In this port I am trying use my USB 2.0 device. But every time when I plugged that USB 2.0 device into that USB 3.0 port,system ...
0
votes
1answer
23 views

Using WiFi port as redundant link

I want to use WiFi port of my server as redundant link for copper connection to my home DSL router. My router if SAGEM 2704 with very limited functionality. So practically the only possibility is to ...
0
votes
1answer
591 views

Windows host shares doesn't get mount when I boot into Linux guest in vmware?

I've enable network shares in vmware and I want to share a Windows folder with my Linux guest OS but I don't know where to look in my guest OS? In Linux I've looked into network shares and samba ...
23
votes
2answers
2k views

Why do some Linux distributions still have /dev/ttyS0, ttyS1, etc., even though newer computers don't have such a serial port?

Many new laptop and desktop computers do not have 9-pin/25-pin serial ports. Why do many Linux distributions still contain /dev/ttyS0, dev/ttyS1 device files? Since udev can create the device files ...