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.
4,018
questions
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
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 ...
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?
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* ...
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 ...
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, ...
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 ...
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 ...
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 ...
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
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 ...
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 ...
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 ...
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?
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 ...
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 |-...
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 ...
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 ...
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?
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 ...
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 ...
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)?
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 ...
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% ...
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?
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 ...
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 ...
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?
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 ...
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 ....
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?
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?
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 --...
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. ...
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?
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, ...