Questions tagged [linux]

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

Filter by
Sorted by
Tagged with
14 votes
9 answers
11k views

How do I prevent GDM from running at boot on Ubuntu?

I have a Ubuntu (Hardy Heron) sever that currenlty boots up and runs gnome. I would like to make it so that when it boots it only goes into text-mode (e.g. the x server never starts) I tried: sudo ...
user avatar
14 votes
1 answer
5k views

Can't access rails server on VM from host

I have a rails server on virtual machine and I need to access localhost from host. I've tried both NAT (by port forwarding - port 80 and 3000 on the guest side) and bridged adapter but nothing seems ...
Hubert Siwkin's user avatar
14 votes
4 answers
8k views

Reducing video mode switching during Linux boot

When I boot up my desktop computer, which only has Linux on it, the video mode and/or console font gets switched four times: When GRUB starts, it switches from 80x25 text to a graphical mode so it ...
zwol's user avatar
  • 1,278
14 votes
5 answers
14k views

How to use xrandr to crop part of my monitor

The top of my monitor is physically obstructed by a bezel. I want to use xrandr to redefine the display resolution (height only) to restrict it to the viewable portion of the monitor. The monitor ...
Greg S's user avatar
  • 149
13 votes
1 answer
72k views

Setting correct permissions for uploading files

I have a php script that uploads a file to a directory called "uploads". The only way I can get the upload to work is if I do: chmod 777 uploads I know this isn't correct but I don't know what ...
fun_programming's user avatar
13 votes
2 answers
12k views

ffmpeg x11grab a single window

Is it possible with ffmpeg grab a window that is minimized or that not has the focus (there is another window over but ffmpeg records only the window which is below)? With a command like ffmpeg -f ...
Pioz's user avatar
  • 233
13 votes
4 answers
33k views

Haproxy for SSH name based proxying

I have a host machine with several lxc containers. I am trying to give ssh access to containers directly based on domain names. For this I have tried setting up HAProxy. Could achieve this easily with ...
Medhamsh's user avatar
  • 303
13 votes
5 answers
83k views

Configuring proxy settings for Google Chrome on Linux

How do I configure proxy settings for Chrome on Linux? It doesn't have a configuration interface like Firefox. I'd like to configure it in a way that I don't have to type every time, the login and ...
liewl's user avatar
  • 431
13 votes
3 answers
29k views

Are there faster solutions for NTFS on Linux than NTFS-3G?

NTFS-3G is a stable read/write NTFS driver, but it is unfortunately extremely slow compared to both NTFS on Windows, and any native Linux filesystem. Not only is the access itself very slow due to use ...
Billy ONeal's user avatar
  • 8,271
13 votes
8 answers
5k views

Save me from gibberish terminal

While logged in to a remote ssh session, sometimes I do cat to the wrong file (a binary or a diretory) and the display converts to gibberish. The only way out is to close the terminal and open a new ...
flybywire's user avatar
  • 4,060
13 votes
2 answers
8k views

How to copy VirtualBox VDI contents to a partition and dual boot the OS from it?

I'm a Linux user but I keep a compressed Windows XP ISO with me on a pen drive for the case I absolutely need Windows to do something. This works in VirtualBox most of the time. But now I want to ...
Calmarius's user avatar
  • 948
13 votes
4 answers
13k views

Terminal Vs. Shell [duplicate]

Possible Duplicate: What are the differences between shell , console & terminal? This probably sounds like a stupid question but I'm having a lot of trouble clearly differentiating between a ...
Nicklas Olsen's user avatar
13 votes
3 answers
14k views

linux merge folders: rsync?

I have two copies of a folder src/ dest/ I want to merge them, doing the following: If a file is only in src, I want it to be moved to dest If a file is only in dest, I want it ignored IE left ...
David Oneill's user avatar
  • 2,660
13 votes
3 answers
14k views

Ubuntu Network Priority

Situation I'm temporarily without a fixed Internet connection on my desktop computer. I'm using my HTC Magic as a 3G dongle through usb0. I also want to be able to print on my Samsung printer ...
Wilgert's user avatar
  • 411
13 votes
8 answers
7k views

What online backup solutions work with Linux? [closed]

I'm looking for an online backup solution for my Ubuntu server. Unfourtunatly it looks like both mozy and backblaze do not have a linux client? The paid version of dropbox does have a linux client, ...
Sam Saffron's user avatar
  • 1,003
13 votes
3 answers
5k views

Direction of a symlink

touch a ln -s a b The above command creates a symbolic link which originates from "b" and points to "a": lrwxrwxrwx 1 root root 1 Dec 20 23:41 b -> a The question is that how to say that ...
dash17291's user avatar
  • 992
13 votes
2 answers
7k views

Is there an equivalent of .lnk in Linux?

When creating a shortcut in windows it makes a .lnk file. I have researched and it seems these are openable in linux(with some tweaking). Does Linux have an equivalent? If so, whats the extension?
sealz's user avatar
  • 2,304
13 votes
1 answer
28k views

Understanding rsync's include / exclude patterns

I want to transfer N files from a remote system, using a pattern: ssh remote ls target/ 2013-08-01.mjson.gz 2014-07-04.mjson.gz 2014-07-09.mjson.gz 2014-08-12.mjson.gz ... I only want the 2014-07* ...
François Beausoleil's user avatar
13 votes
5 answers
23k views

Text / log editor with auto-refresh support [closed]

I'm looking for a text editor / log manager of some kind that will automatically refresh a file's contents when it changes. I have a single target log file (e.g. current.log) that is overwritten ...
Mark McDonald's user avatar
13 votes
1 answer
45k views

Why does SSH hang at the end of these commands and how can I make it exit?

I run this: ssh -t -vvv -i ~/.ssh/druid-keypair -o StrictHostKeyChecking=no ubuntu@${INSTANCE_ADDRESS} <<EOI # Setup Oracle Java ... # Install dependencies - mysql must be built from source, ...
rjurney's user avatar
  • 231
13 votes
3 answers
2k views

What does . .bashrc actually do?

When I enter a eg. a new alias into my .bashrc file I can't use it in that terminal window immediately and until recently I thought I had to restart the terminal to reload the .bashrc file. Then I ...
Spade's user avatar
  • 233
13 votes
2 answers
19k views

sorry, you must have a tty to run sudo

I had already asked this question in Stack Overflow, but I've been asked to post it here. So doing the same. I ran this command using my java program- sudo -u <username> -S pwd I got this ...
AlwaysALearner's user avatar
13 votes
1 answer
3k views

Sink directory like /dev/null

I want a /dev/null directory, to which a graphical program can write a file, and think that it actually is writing it, like redirecting stdout to /dev/null. I can't write it to /tmp, as I nearly never ...
jp_'s user avatar
  • 160
13 votes
2 answers
2k views

Making bash TAB completion more like cmd.exe [duplicate]

I wondered if theres a way to do rotational style completion in bash similar to the behavoir on cmd.exe, I've found it speeds me up in regard to entering commands
user avatar
13 votes
1 answer
20k views

How many EFI System Partitions (ESP) can a computer have?

I'm trying to set up dual/multiboot on an UEFI laptop that came with Windows 8 installed. I'd like to operate with Secure Boot enabled. I can install/configure OS'es with SecureBoot disabled (but I ...
jww's user avatar
  • 12.1k
13 votes
2 answers
5k views

Can I steal a vim session from another terminal?

I forgot to start screen before I started working, and now I've SSH'd into my machine from my laptop. ps -a gives me the process ID of the vim process. Can I steal the vim session from my other ...
alexgolec's user avatar
  • 359
13 votes
3 answers
11k views

Is it possible to put foreground process into background without suspending (control +z)?

I am running an application which receives TCP and UDP packets and therefore cannot be suspended. I intially ran 3 processes of the same application, with different arguments, in background mode using ...
rahul.deshmukhpatil's user avatar
13 votes
3 answers
8k views

Windows UAC vs. Linux sudo

Is it correct to say that Windows UAC is conceptually the same as Linux sudo? Can you point out the differences between the two?
WinWin's user avatar
  • 980
13 votes
8 answers
69k views

How do I know if a remote machine is using Windows or Linux?

Is there some way to run a command (such as ICMP message or another protocol), get a response from a remote machine (not on my own private local network) and analyze the message to find some evidence ...
Diogo's user avatar
  • 30.5k
13 votes
7 answers
22k views

What could cause strange characters in Vim?

I'm have this really strange problem in Vim using the NERD tree plugin, where, as you can see in the picture, the characters are showing up very strange. Where there is the ahat, ~V 3/4 it should be |-...
Tanner's user avatar
  • 361
13 votes
5 answers
5k views

How to get rsync to not print directories

I use rsync to create backups on an external hard drive. I usually run a dry-run first just to sanity check. Specifically, I will use rsync -auvn path/to/source path/to/dest However this prints all ...
Andrew Schwartz's user avatar
13 votes
2 answers
30k views

What is a stopped process in linux?

So I had some PHP scripts running from the command line, and wanted to stop them running. I ran $ ps aux | grep php $ sudo kill 8754 $ sudo kill 8767 And then ran $ ps aux | grep php again to ...
Jon's user avatar
  • 365
13 votes
3 answers
35k views

Tools to see ext2/ext3/ext4/btrfs/jfs/xfs filesystems under windows?

Are there any drivers/application that can read/write ext2/ext3/ext4/btrfs/jfs/xfs filesystems from Windows? E.g.: a removable drive is formatted with EXT3.. how can I write it under Windows XP/7?
LanceBaynes's user avatar
  • 4,090
13 votes
5 answers
58k views

Extract file and folders with specified permissions

I pack a folder with lot of sub-folders and files in Windows with 7zip, upload to VPS and then run the command: tar -xvzf file.tar.gz then all unpacked files and folders have permissions of 777. How ...
Kaspar L. Palgi's user avatar
13 votes
4 answers
45k views

Linux kernel hangs at 'Switching to clocksource tsc" on Pentium 4

Hardware: Dell Dimension 4500S : i845G, Pentium 4, stock + 2GB RAM and latest (circa 2002) BIOS update. I've been building a Linux system from source, so far it's LFS 7.0 by the book. The first ...
rfmodulator's user avatar
13 votes
5 answers
13k views

Join many MP3, OGG, and FLAC files into one WAV or FLAC

I have 33 audio files, each about 11 seconds long, and I'd like to merge them into one lossless file. How can I do this efficiently (i.e. without cut-pasting in Audacity 33 times)?
ashastral's user avatar
  • 1,103
13 votes
6 answers
32k views

Good, lightweight GUI-based process monitor for Linux [closed]

I'd like a snappy GUI-based (I insist since people still want to propose console-based) application that can show me running processes and allow me to kill them, on Linux. It doesn't need to be as ...
fury's user avatar
  • 339
13 votes
4 answers
13k views

Sound volume increase beyond 100% whenever possible on Linux

Some audio output from files or streams is too low. It is obvious that hardware is able to play the same sounds but louder but because of the data it just plays it at some low level even at 100% ...
fakedrake's user avatar
  • 923
13 votes
3 answers
21k views

How do I convert tar.bz2 to tar.gz?

I'm new in Linux, is this conversion possible? Do I need to compress and decompress all content?
Caio Tarifa's user avatar
13 votes
3 answers
30k views

How to use updatedb command as an ordinary user?

The locate command is very useful tool on Linux, but it seems only root can run updatedb command which is very unconvinent to use it. So how to make ordinary user to have the priviledge to run ...
hugemeow's user avatar
  • 2,299
13 votes
3 answers
38k views

SSH still asks for password after setting up key based authentication

I have successfully created a key based auth for root user from my A machine to my B machine. Now, I created a new user on B machine, the same as on A machine, let's call him USER. I created a home ...
tratto's user avatar
  • 311
13 votes
5 answers
15k views

Linux command to return number of bits (32 or 64)?

What is a Linux command that I can run to programmatically return either 32 or 64 to indicate whether the processor is a 32 bit or 64 bit processor?
WilliamKF's user avatar
  • 7,908
12 votes
3 answers
14k views

Printing from the command line with LibreOffice, lpr commands?

I'm trying to print a word document from the command line, but I need to specify printing options that I would normally use lpr for. This is the command I'm using libreoffice -p "filename.doc" I ...
Davis G's user avatar
  • 123
12 votes
1 answer
7k views

eCryptfs encrypted home - explanation

I'm trying to understand how ecryptfs works internally and documentation on ecryptfs.org doesn't help. Maybe someone is able to explain how does it really works. Of course I'm aware of these hidden ....
ardabro's user avatar
  • 475
12 votes
4 answers
3k views

Why less when you can have more? (Pagers on *Nix)

Why do Linux people and most programs -- Ruby commands, for instance -- use less instead of more. Isn't more bigger, nicer, and better? What is the advantage to less?
Dan Rosenstark's user avatar
12 votes
7 answers
35k views

cron: run a process but only if it isnt running?

Is there a way for me to tell cron to run an app BUT not run it if a process exist already?
user avatar
12 votes
2 answers
2k views

mv command confuses directory name with command option

I have a directory called --pycache--, which I need to move to __pycache__. Using the mv command in the following way, gives me the listed output. How can I use the CLI to do what I want? $ mv --...
user81557's user avatar
  • 223
12 votes
6 answers
84k views

How can I install Windows 7 without dvd or usb, on linux?

I have a different problem that I don't think can be solved but it's better to ask before loosing all hope. I currently run Crunchbang (Debian dist) and would like to install Windows 7 as well. ...
Victor Bjelkholm's user avatar
12 votes
3 answers
10k views

How to move wireless connection to other network namespace?

# ip link set wlan0 netns 1 RTNETLINK answers: Invalid argument It works for usual ethernet. It also works for proprietary broadcom "wl" driver. How to do it for usual mac80211-based driver?
Vi.'s user avatar
  • 17.2k
12 votes
5 answers
50k views

Find all files older than one minute

How can I use find to select files that have been written and not modified in the last minute? I know I can do it the other way around, find files modified in the last 60 seconds with -mtime -60s, ...
719016's user avatar
  • 4,337

1
35 36
37
38 39
81