These questions are about Linux in general -- NOT specific to a particular distribution. If the question just happens to be in a Linux environment, please specify your Linux distribution in the body of your question, but do NOT use the /linux tag.

learn more… | top users | synonyms

3
votes
3answers
3k views

Are there any command line utilities that can capture joystick button presses?

Here's my situation: I have a Raspberry Pi with Raspbian installed on it. I also have RetroArch installed and a simple USB gamepad hooked up. Everything works fine, but I wanted to set it up so that ...
0
votes
1answer
125 views

Installing Windows On PC with Linux Mint

I recently installed Linux Mint on my computer but have decided I would prefer to have a dual boot system. I wish to re-install my Windows 7 and create a dual boot afterwards but am having trouble i ...
0
votes
1answer
946 views

Cannot start Apache server with Bugzilla installed

Linux noob here... I've installed Bugzilla following the guide here, however, when I restart my Apache server (so I can login to the Bugzilla system), I get the following error... Jun 27 16:10:30 ...
1
vote
4answers
7k views

PAM login permission denied

I have an OpenSuSE 12.3 machine and can't login to the box either on tty or via ssh. As soon as the user logs in the session terminates and in the message "login [1234] permission denied" is printed. ...
8
votes
1answer
325 views

How do I prevent system information from being displayed on a terminal?

I'm working on a curses GUI that is supposed to start up automatically on boot-up in the default linux terminal (I have no X server installed). I have this working great, but I have a problem where ...
3
votes
1answer
382 views

Copy symlinks from ext3 to cifs share

I'm using scp to copy files from a Linux disk (ext3 file format) to a Windows disk (NTFS exposed using CIFS over the network). I've found that scp follows symbolic links and copies their contents ...
0
votes
2answers
893 views

Cheap 100% Debian compatible ultrabooks [closed]

I'm looking for relatively cheap ultrabooks with 100% Debian compatible features. I have several ultrabooks on my list but they contain some additional features which i don't need (additional ...
6
votes
1answer
2k views

Find out if a specific device is an USB mass storage

Context I'm automating SD card imaging from an existing dd factory image. The SD card is always connected through an external USB card reader and thus appears in the system as a SCSI block device /...
-1
votes
1answer
41 views

get Various types of address used [closed]

How to get various address ranges of a running machine or a crash dump? User virtual address Physical address Bus address Kernel logical address Kernel virtual address I don't need the bus address....
6
votes
2answers
876 views

My process was killed but I cannot understand the kernel notice

I have a custom application running on an embedded x86 setup (built using buildroot and uClibc). The application has been running fine but this morning when I returned to work I discovered my process ...
1
vote
1answer
4k views

Ubuntu / Unity attach script to Launcher

I recently downloaded IntelliJ IDEA and start the app by running . idea.sh. The app appears in the launcher while I'm running it, but for some reason when I right click on it I don't get a 'Lock to ...
3
votes
0answers
44 views

A Linux Distro/Project for Digital Literacy

I am in Africa, and I wish to know if there's any project that introduces Linux/Unix to new users? A project like this one of Microsoft's on Digital literacy.
1
vote
2answers
175 views

Reverse Loopback

How to configure reverse loopback on an ethernet device? In that case, all the traffic received will be sent back to transmitter connected to ethernet port.
2
votes
2answers
836 views

Add a suffix string to end of each line? [duplicate]

I have two files: file01: line1 line2 line3 file02: A B C And I want to get line1 A line2 B line3 C I could possibly write a Perl script but it is better if I don't need to. I have tried ...
1
vote
2answers
126 views

Possible to get RAID1, by simply adding HDD? [duplicate]

I have server and there is one 1TB drive in it and I guess it's not running any raid, I'm thinking if it's possible to add another 1TB HDD and setup RAID1 somehow?(software raid1) Server is running ...
3
votes
3answers
931 views

Is there any way to see how much data I sent via Internet?

A big German ISP (Telekom) recently decided to volume limit their DSL internet connection to 75GB per month. Now I would like to know how much I download / upload. I use Linux Mint 14 Nadia and I ...
1
vote
1answer
1k views

CURL command execution

Can anyone explain me the below curl command and how it works : STATUS_CODE=`curl –output /dev/null –silent –head –write-out ‘%{http_code}\n’ $next` # If you want to set a timeout then add –max-time ...
3
votes
7answers
2k views

Rebooting fails randomly

That is, the following command fails at times: $ sudo reboot The last message on terminal, after which the machine gets stuck, requiring a power cycle: Restarting system. I tried the following ...
2
votes
3answers
1k views

Install over / preserving /home

I currently have Ubuntu 13.04 installed on my Desktop PC. It is 32-bit. I have 3 partitions: one for /, one for /home and another one for swap. Say I want to install another operating system (another ...
1
vote
1answer
1k views

Weird problem. My left arrow key is not working and sometimes muting sound

My left arrow key is not working as intended. In KDE, it mutes the sound. In Awesome Window manager, it does nothing. Here's my 00-keyboard.conf file : I have tired to comment out XkbModel, ...
5
votes
1answer
897 views

How to remap a key combination to a key?

Is it possible to remap a key combination to a key in X server based system, so that for example if I press End + Arrow_up, keycode for Home is generated? Google seems to be silent on this issue. It ...
2
votes
1answer
830 views

IPTables string match redirection

The issue: I am currently redirecting port 80 requests to another system on port 1000. This is done like so: iptables -t nat -A PREROUTING ! -s 172.20.1.2 -p tcp --dport 80 -j DNAT --to-destination ...
4
votes
2answers
3k views

Is the Unix Power Tools book still relevant today? [closed]

I was wondering if the Unix Power Tools book, Third edition, is still relevant today? I want to order it but I am afraid it contains only outdated material. If so, is there a recent similar book?
1
vote
1answer
187 views

debootstrap: unknown user 'root' in state override file

I muffed up my graphics card driver and/or xconfig files and decided to just reinstall Debian Linux (squeeze 6.0.6) last night. Part way through installing the base system, it failed. Sorry, I didn't ...
1
vote
1answer
2k views

How can I use wget to download large files? [closed]

I want to get the ISO for a particular version of Linux, say 'Mint 14 “Nadia” KDE '. I tried using wget in the terminal to download the ISO of this distro: $ wget http://mirror.ufs.ac.za/linuxmint/...
6
votes
3answers
7k views

ulimit & rlimit in Linux, are they the same thing?

I see people use the terms ulimit & rlimit interchangeably, can I say they are referring to the same thing?
1
vote
1answer
539 views

GNU screen startup is really slow

I connect to a RHEL 5.7 server via Putty or VNC (not sure it matters) but when I try to run screen, it takes forever (on order of 20-30 secs). Same thing if I run screen -ls, takes just as long. I ...
4
votes
1answer
954 views

Trying to set keyboard layout using Xorg configuration but it's not working

I'm trying to set my HP Pavilion g6 keyboard layout to English(us) and Arabic(ara). I'm using Fedora 18, but followed Arch Wiki anyways. Here's my 90-keyboard-layout.conf file : Section "InputClass"...
7
votes
1answer
295 views

X Server won't load when I add a 50-synaptics.conf file inside the xorg.conf.d directory

I'm using Fedora 18. I'm trying to configure my synaptics touchpad, I need the tapping and the horizontal scrolling inside Awesome Window Manager. I've created a file at /etc/X11/xorg.conf.d/50-...
1
vote
1answer
291 views

Connecting a wireless webcam and wireless dongle

I must create a wireless connection between a USB wireless dongle (DLink wireless-N USB Mini Adapter DWA-140) and a wireless webcam (DLink DCS-932L). I.e. point to point connection without Internet. ...
4
votes
3answers
2k views

What are the interface prefix meanings in ifconfig?

I'm not sure if these have a name, but on most computers I use the interface prefixes are usually: eth- : Ethernet/Wired wlan- : Wireless/WiFi However, on my ASUS RT-N56U, I have the following: ...
2
votes
0answers
105 views

xorg.conf.d not loaded when starting X while docked

Recently installed archlinux on a Lenovo T530 Thinkpad and using it with a Mini dock Series 3. Docking and undocking works just like it should, using acpid to execute scripts turning screens on and ...
8
votes
1answer
13k views

Arch linux wifi works manually, how to make it automatic?

Running Arch Linux with kernel 3.6.11-12-ARCH+ on my Raspberry Pi. I have a Linksys wifi usb dongle (WUSB54GC v3) that is running and working after I execute the following commands: $> sudo ...
2
votes
1answer
822 views

How to mount software RAID-5 created by Windows under Linux?

At our university we have a Windows FTP server that was implemented with software RAID-5 technology, but we decided to migrate to Linux. How can we mount and modify it under Linux?
10
votes
2answers
4k views

/etc/sudoers - Insults - How to add a list of insults?

I intend to play with the linux insults and add a few. However, i only could figure how to add a single insult but not a list or the location of the file that contains the insults.
1
vote
1answer
1k views

How to filter an array of strings in ksh

Please advise what's wrong in my ksh code. I want to remove the IP's as defined in "bb" array from "aa" array so the IP's 255.0.0.0 and 255.255.255.0 will be removed from the list in aa array. When ...
2
votes
2answers
254 views

ksh + delete number from string

the string IP include some IP address numbers as the following example echo ${IP[*]} 192.9.200.1 192.9.200.2 192.9.200.3 is it possible to remove some IP address number from the list ( using ksh ...
12
votes
3answers
6k views

cat all lines from file, which are after “KEYWORD” [duplicate]

I have a file, with a "KEYWORD" on line number n. How can I print all lines starting from line n+1 until the end? For example, here I would liek to pro=int only lines DDD and EEE AAA BBB CCC KEYWORD ...
3
votes
1answer
259 views

What do the fields in the libata device probe line in dmesg mean?

When the kernel boots, it prints out lines like this for each SATA device: [ 0.919450] ata2.00: ATA-8: ST2000DM001-1CH164, CC24, max UDMA/133 [ 0.919487] ata2.00: 3907029168 sectors, multi 16: ...
51
votes
9answers
208k views

Unix/Linux undelete/recover deleted files

Is there a command to recover/undelete deleted files by rm? $ rm -rf /path/to/myfile How can I recover myfile? If there is such a tool how can I use it?
1
vote
1answer
36 views

Searching multiple mysql tables for the same 2 fields in each table

I am trying to figure out how to search mysql tables for the same 2 fields. What I have is 2 tables in the same database. Below is what I have currently:- single search works ok SELECT * FROM `...
2
votes
2answers
287 views

Is tty_nr referenced anywhere else in GNU/Linux procfs?

This is a problem I've been trying to solve on my own for some time without any luck. I'm trying to write a script that (amongst other things) can take an arbitrary PID and map it to TTY device's path ...
12
votes
2answers
3k views

Equivalent of “truss -T” and “truss -U” on Linux?

Is there an equivalent of what the -T and -U option of the truss Solaris utility does on Linux. Those are to specify a system call (-T) or library function (-U) which when called by the traced ...
0
votes
2answers
256 views

Why the linux driver file is much smaller than that in windows?

Recently I install a graphic device driver in Linux, I found that is only dozens of KB. But that is dozens of MB in windows. I wonder why?
2
votes
3answers
1k views

Fastest way to convert a large amount of FLACs to MP3s

I'm looking for something that can take advantage of my GPU or at the very least, multiple cores of my CPU to convert a few terabytes of FLAC to mp3 (VBR v0) very quickly while preserving all of the ...
0
votes
1answer
58 views

High Availability of Services

I want to monitor a couple of services in linux. In case they go down I want to restart them. I'm writing a crontab which will get the name of the services using jps command every 60 seconds, and if ...
3
votes
1answer
248 views

Using tcpdump to log blacklisted IPs

I am using tcpdump to log traffic outbound on a network. I would like to be able to log traffic on a host or IP-only basis but then I would like to be able to log large numbers of potentially ...
5
votes
1answer
1k views

How to confirm/verify WiFi is WPA2?

How do I, from the command line, confirm on the host that the wireless network connection uses WPA2? The wireless router is set to use WPA2 Personal (WPA2 with a pre-shared key) and AES on the ...
1
vote
2answers
518 views

perl one liner + how to match IP address that located in the first/sec field of file

the following perl one liner syntax verify if IP address in "$IP" match the IP ADDRESS in file perl -ne 'BEGIN{$IP=shift} print if /(^|\s)\Q$IP\E(\s|$)/;' $IP file file have two fields as the ...
0
votes
1answer
2k views

How to install Cinnamon with SLiM on Arch Linux? [duplicate]

I have recently installed Arch Linux and since I'm new to hard it's a little hard to get around the things in here. I wanted to know how I can instal cinnamon desktop environment with SliM display ...