Linux refers to the family of Unix-like computer operating systems using the Linux kernel. If your question is about a certain distribution only, use a more specific tag.

learn more… | top users | synonyms

3
votes
1answer
103 views

How do I highlight “copy this” text on a website so that I might middle-click paste?

It seems to be one common practice on websites which intend to give the user text for copying/pasting to place this text in an <input/> or <textarea/> and pre-select it for the user. ...
-1
votes
2answers
609 views

Fresh Linux Mint 14 install not executing eclipse and sublime text

I just upgraded from Linux mint 13 to 14 Cinammon. The problem is I have the tar files of sublime text and eclipse that I usually extract and run but after I upgraded to Mint 14 I get the error in the ...
1
vote
0answers
46 views

Who is filling the ELF header

I have ELF file which I dumped using readelf -h filename and I can see the different fields with the some values like entry point address is 0x99cc ,but really want to know from where these values get ...
1
vote
1answer
582 views

Shell Script : How use find expression in a for?

I would like to use the find command in a for. So I did this: for logs in `find $BACKUP_FOLDER -exec ls -la {} \; | awk '{ if ( $8==2011) printf $0"\n" }'`; do // some command here done; But it ...
4
votes
1answer
561 views

Strange keyboard when using sqlite shell on linux

I use a linux box connected trough putty. Using it with bash, my keyboard performs well, but when I am using the sqlite shell (sqlite3 program) my keys get crazy: del=^[[3~ up=^[[A left=^[[D ...
0
votes
0answers
68 views

How to replace file strings with regexp in Linux

I'm trying to replace the specific numbers and use this command: sed -e 's/[0-9]\{12\}/ /g' file.log but nothing happens. As U can see this expression should replace all numeric occurrences with ...
2
votes
1answer
738 views

Reading CPU usage

I am building a Linux, web-based resource monitor. For now I am looking forward to use: df for reading HDD usage status /proc/meminfo (through cat) for reading RAM status mpstat (from sysstat ...
0
votes
1answer
184 views

Classpath reading in Linux

$ $CLASSPATH $ $ source .profile $ $CLASSPATH > bash: :/usr/java/connectors/mysql-connector-java-5.1.23-bin.jar: No such file or directory $ /usr/java/connectors/mysql-connector-java-5.1.23-bin.jar ...
2
votes
1answer
994 views

How to prevent LibreOffice running 'recover' at each startup?

How to prevent LibreOffice running 'recover' at each start-up? On Ubuntu, each time I restart my computer, and then start LibreOffice, it asks me whether I want to recover documents. It does this ...
1
vote
1answer
170 views

sudo chmod is invalid when using mounted-partition(windows)?

# /etc/fstab UUID=D254B*****B5B*** /home/username/c ntfs defaults,fmask=113,dmask=002, uid=username,gid=username 0 2 # uname -a Linux 00544 3.2.0-37-generic-pae #58-Ubuntu SMP Thu Jan 24 15:51:02 ...
3
votes
2answers
1k views

Linux: Alert user when a file changes

Here's a more general use question. How can I monitor a log file for specific changes, and use a "notify-send" alert in Ubuntu to alert when said changes occur? ORIGINAL QUESTION: I'm attempting ...
1
vote
1answer
793 views

How to fix a corrupted(too big) GPT?

So, I got a new SSD. I decided to use GPT instead of MBR on it, so I'm a bit lost. It ended up getting corrupted. I'm not for sure if the GPT just didn't take the host protected area into account, or ...
7
votes
1answer
211 views

Is there a way to force all file transactions with a filesystem to be UTF8 or UTF16 compliant?

What I want is to specify that for a directory, every file creation/modification within said directory will be checked by the kernel and if the filename has unsupported characters the offending ...
0
votes
1answer
376 views

How to achive a pull / backup / archive task with rsync?

I know rsync is a powerful tool. Can someone please tell me what settings I need to achive the following task. assumption: the remote server is a linux box with ssh/rsync access The original data ...
2
votes
2answers
6k views

How list file by range of date?

I would like to list files with 3 days years old. I found this one at stackoverflow: find . -type f -printf "%-.22T+ %M %n %-8u %-8g %8s %Tx %.8TX %p\n" | sort | cut -f 2- -d ' ' | grep 2012 But I ...
0
votes
1answer
65 views

1 minute deployment of custom Linux installation

A typical Debian/Ubuntu installation takes at least 15 minutes, and you have to answer a lot of questions along the way. Yet a VPS service on the Web is able to deploy a ready-to-use Linux server in ...
0
votes
1answer
478 views

Correctly setting resolv.conf domain

I'm having problems with resolving domains at work. The domain is company.local . When I connect, my etc/resolv.conf looks like this: # Generated by NetworkManager domain company.local search ...
0
votes
3answers
13k views

Linux Shell script to copy files from one location to another location

I have a folder in my server which contains some files. These are automated that means everyday we get new files automatically which will overwrite the old ones. So want to take a back up for this ...
1
vote
2answers
535 views

How do i check the RAM on my Ubuntu sever?

I'm using an old laptop that originally had 512MB of RAM and installed Ubuntu Server 12.04 I upgraded the old 512MB memory card to 1GB memory card, and now I just want to check how much RAM my laptop ...
0
votes
1answer
422 views

DVI -> HDMI pipe sound as well? [duplicate]

I have a slightly older desktop running Ubuntu Linux with an older Nvidia GeForce 9-series graphics card (with only DVI and VGA output). I recently got a new HDTV and want to use that as the monitor ...
1
vote
1answer
550 views

qdisc netem / htb on subinterface

I have a linux box that I use to simulate a WAN link between two nodes. This linux box has two subinterfaces on eth1 (eth1:11 and eth1:12). I'm successfully using netem / htb to simulate delay and ...
0
votes
1answer
413 views

Dual booting windows 7 and Mint 14 with “something else” option

I would like to do a dual boot of Windows 7 and Mint 14 on my Acer netbook which already has Windows 7 Pro 64-bit installed on a terabyte hard drive. I have already shrunk the Windows 7 partition to ...
1
vote
0answers
38 views

Selectively “pass” commands onto the shell/program if certain programs are running

Is there a way for tmux to "pass" its control commands (C-A x) to the program running in the pane if a certain program is indeed running?
2
votes
2answers
4k views

kill - no process found

when I list my processes I have: root@adam-ThinkPad-T410:~# ps -e | grep signals 11641 pts/0 00:00:00 signals 11642 pts/0 00:00:00 signals 11643 pts/0 00:00:00 signals but when I ...
4
votes
4answers
84 views

Apply regex to certain occurrences

I have a large file with plain text (no html tags, etc.). What I want to do is to apply regex to whole file on the one hand but on the other I want to choose which changes will be applied. For ...
1
vote
2answers
1k views

How to test IP Tables Rule (Linux Ubuntu12.04)

I wanted to ask how to test IP Table Rules. For example, I have a port number and I want to be sure that it accepts all packets. How can I do it? After I type iptables -L I see that the rule has been ...
1
vote
1answer
389 views

Set gnu screen title within ssh

On my local machine, window titles within screen update nicely to the pwd. I have shelltitle '% |bash' in my .screenrc. Yet when I ssh to another host, the window title remains as the pwd from ...
1
vote
2answers
478 views

ls executes slowly on remote server

I have a very strange problem, one that may be too difficult to diagnosis without machine access, but maybe someone here may be able to help. I am using OS X, and on my local machine ls executes ...
0
votes
1answer
674 views

Can't run sox, No such file or directory

In Ubuntu 12.04 I installed sox with this command: sudo apt-get install sox Now if I use this command: sox message.wav message.flac rate 16k I get this: bash: /usr/local/bin/sox: No such file ...
1
vote
2answers
248 views

Processors cores over processor speed [closed]

Dual 5520 Quad-Core Xeon 2.26GHz with HT & Turbo(2.53 GHz) -vs- Single Quad-Core E3-1240v2 (3.4 GHz to 3.8 GHz) I run web hosting. I'm just wondering which would be more ideal. Personally, I am ...
2
votes
1answer
103 views

Linux Utility for “Timestamping” Functionality

wget's timestamping functionality ensures it only downloads files that have changed. I'm looking for a linux command-line tool that will recursively compare a directories contents with a saved version ...
2
votes
1answer
4k views

FFMpeg convert jpeg images to video

I'm attempting to take a set of images taken at 1-second intervals to form a timelapse video. I figured this would be easy with ffmpeg, but i'm running into cryptic errors. All the images are yuv420 ...
6
votes
2answers
471 views

How to connect to a SSH session that was backgrounded with -f -N?

I'm doing some work where I need to pivot off a machine using proxychains so I'm connecting to a system and binding a local port like so... ssh -f -N -D 9000 user@host.com … which returns me back ...
2
votes
2answers
73 views

I am running a dual boot, but now have 13 different options to choose from

I am running a dual boot of Windows 7 and Linux Mint. Now on start-up, I have: Linux Mint 13 Maya (13) (on /dev/sda6) - Displayed 5 times Linux Mint 13 Cinnamon 64-bit, 3.2.0.23-generic displayed 3 ...
3
votes
1answer
5k views

How to get only names from find command without path

I am trying to get only the names from the search result using find, but it always includes the directories too. How can I print only the names (or assign to a variable) using find find ...
1
vote
1answer
1k views

Can't install TrueCrypt in Debian Wheezy

In Debian Testing (Wheezy) 64bit, I am trying to install TrueCrypt: root@debian:/media/cdrom0# ls -l total 47120 dr-xr-xr-x 3 root root 2048 Apr 3 2012 32Bit dr-xr-xr-x 2 root root 2048 Apr ...
1
vote
1answer
307 views

How to run GCC compiled output on NTFS drive?

Basically, I have three major partitions on my machine as I'm dual booting: Partition1: Windows-7 Partition2: Linux-Mint Partition3: SHARED_NTFS_DRIVE Well, I've reserved only a minimal chunk of ...
0
votes
1answer
4k views

Converting from MXF to MPEG format with FFmpeg

We're trying to convert .mxf video to .mpeg on ffmpeg-0.9.2 and looks like 0.9.2 version doesn't support .mxf conversion to .mpeg. We don't want to switch on latest 0.11 version of ffmpeg as the ...
3
votes
2answers
413 views

How can I have `less` automatically decompress `xz` files like it did with `gz` files on my old SUSE distro?

On my old SUSE distro, less would automatically decompress .gz files. That came in very convenient when listing auto-compressed /var/log/mail*.gz files. The current version of SUSE now archives ...
1
vote
1answer
747 views

Reduce WiFi power usage

I found that WiFi is draining too much battery power on my laptop. The system has Linux Mint 14 (32 bit) and runs with its default kernel, 3.5.0-17-generic. The driver in use is ath9k and runs on ...
1
vote
1answer
144 views

Best folder configuration for application that opens around 1 million files and ulimit problems

I have an application that creates 16^5 files (1048576). I can configure it to create all them in the same folder or separate them in whatever way I want (having 1, 2, 3 or 4 subfolders on each ...
3
votes
5answers
15k views

how to change the maximum number of fork process by user in linux

Whenever I login to shell, I get this error -bash: fork: Resource temporarily unavailable -bash-3.2$ I can't seem to execute any command which uses fork(). I tried ulimit -u as it doesn't use ...
0
votes
1answer
469 views

Linux, boot into terminal mode

I have install catalyst for ATI in fedora 17, I'm stuck on a black screen when the system is booting, how can i force the system to boot in command line so that i can remove the catalyst packages??
0
votes
2answers
228 views

Linux distro with 2.4 kernel, that has GNOME [closed]

I am looking for a Linux distro with 2.4 kernel, that can run Gnome. Can't seem to find anything. Please provide links to iso files also.
0
votes
1answer
2k views

Can't open Foxit in Ubuntu / Mint Linux

After installing Foxit PDF reader on Ubuntu or Mint Linux, any attempts to open Foxit reader result in absolutely nothing. Foxit simply doesn't open, and provides no useful error messages to indicate ...
0
votes
1answer
2k views

Timeout in whois command

Unable to figure out the problem with whois command. Whenever i give any query to whois command it gives timeout error. I also learned about jwhois command but it seems it is also getting similar ...
1
vote
4answers
82 views

Catalog of programs listed in bash

In bash (or any other shell), when you type "firefox" or another command, how does bash point it to its actual location (/usr/bin/firefox)? Also, where is the "catalog" for bash autocomplete?
1
vote
0answers
392 views

After installing upstart Raspberrypi gets stuck in boot

I recently installed upstart blindly replacing things I shouldn't of been. The results was that now my raspberry pi is stuck on Setting up X socket directories... /tmp/.X11-unix /tmp/.ICE-unix ...
3
votes
1answer
95 views

How is PAE implemented in Linux?

There are only 36 physical address lines but a page table entry is 64 bit long. How does the CPU check if the address is valid ? How does Linux OS map the same virtual address in different processes ...
1
vote
0answers
1k views

Centos 6.3 doesn't detect USB drives

Unable to locate its file. In the terminal fdisk -l didn't give the expected result. I tried mounting the device using 'mount /dev/sdb1 /media/usb' but it says mount requires the 'type of device'. ...