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

15
votes
2answers
1k views

Is it possible to run pure GNU?

On the GNU Project webpage, there's a subsection called "All GNU packages" which lists the various software in the GNU project. Are there any GNU distributions which use only these packages -- i.e. a ...
3
votes
0answers
965 views

Installing Firefox add-on globally without extracting the .xpi archive

Since the great -install-global-extension option was removed in Gecko 1.9.2 (for no obvious reason, as usual), copying the extension (as root) to /usr/lib/iceweasel/extensions/<appid> is now the ...
1
vote
1answer
915 views

VPN Setup Errors

I'm trying to install a VPN on one of our servers for use within my campus so that we can play some games, but I appear to be getting errors when I try to connect, as shown below. Not quite sure about ...
0
votes
2answers
125 views

Monitor servers

I want to monitor three server pages. These three pages contain a simple text (for example it says it's "working fine"). I want to be notified when anything other than this message is displayed, e.g. ...
1
vote
1answer
609 views

Pulseaudio over network - change output on-the-fly

I successfully configured PulseAudio server and client to send audio over network. It uses direct connection: http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Network/#index1h2 ...
16
votes
3answers
70k views

How to bring up a wi-fi interface from a command line?

I can't figure out how to properly bring up the wi-fi card on my laptop. When I turn it on and issue $ sudo iwconfig wlan0 txpower auto $ sudo iwlist wlan0 scan wlan0 Interface doesn't support ...
16
votes
4answers
1k views

Why not always use rsync?

I wanted to ask is there any reason not to use rsync for everything and abandon cp? I wasn't aware of rsync and now I don't know why cp is ever needed.
1
vote
2answers
142 views

Mysterious file I can't remove

root@host [/home2/newgames/public_html/hello/cache/javascripttostring.com]# rm -rf * root@host [/home2/newgames/public_html/hello/cache/javascripttostring.com]# ls /bin/ls: cannot access http\260\353\...
7
votes
3answers
7k views

How to remove a USB drive without worrying if its been unmounted?

Sometimes I unplug my usb drive only to find out files were not written to it. I suppose the only way to ensure files are written to it is to right click on the USB drive on the desktop and then ...
2
votes
1answer
1k views

Send attachment to gmail id from shell script

I have a shell script that generates reports. Using crontab i run the scrip everyday at 1000 hrs. I want to mail that report to my gmail id as an attachment. I have tried using mutt but it doesnt ...
3
votes
2answers
3k views

Xterm not loading color schemes

I work a lot with vim and decided to switch to cli version, I chose xterm because its the only terminal I know of that properly recognizes Alt shortcuts (and I have lots of those bound in vim). My ...
0
votes
0answers
856 views

Permission Denied (PublicKey,keyboard-interactive) linux raspberry pi

I know there are a ton of questions on this. I have read almost all of them. I have also googled this problem to no avail I attempted to git clone git@git.assembla.com:myhubname.git and I get ...
1
vote
1answer
661 views

Linux EXT 4: How to list files that occupy a block group?

Linux EXT 4: How to list files that occupy a block group? I believe a file can span multiple block groups. Given a block group, how do i enumerate the paths of all files contained in it?
0
votes
1answer
1k views

Cannot upen libusb shared object

I'm trying to use heimdall to install a custom Android ROM. When I run it, I get this: ./heimdall: error while loading shared libraries: libusb-1.0.so.0: cannot open shared object file: No such file ...
20
votes
1answer
4k views

sysctl: /proc/sys/net/ipv[46]/conf/: what's the difference between “all”, “default” and “eth*”?

In sysctl, the /proc/sys/net/ipv[46]/conf/ keys have the following subkeys: all, default, and a key for each network interface. For example, on a machine with a single network interface eth0, it will ...
2
votes
0answers
243 views

Issues accessing CIFS share directories

Disclaimer 1: Crossposted from Serverfault because there was no activity over there. Disclaimer 2: This question is similar to Automounting not working correctly for CIFS shares; weird results but ...
1
vote
5answers
13k views

Black screen after GRUB

I recently bought a new laptop which came preinstalled with Windows 8 (no! please don't run away yet!). I'd like to try and put Linux on it in a dual boot (probably Ubuntu, with its UEFI support), but ...
1
vote
1answer
535 views

rfkill unblock bluetooth is timing out

I'm creating a Bluetooth script that controls every aspect of the Bluetooth experience with headphones. As part of this I want to reset the Bluetooth adapter. I'm using: rfkill block bluetooth ...
1
vote
1answer
153 views

Where to drop libraries according Filesystem Hierarchy Standard

I do operate a Linux-based build system. The build system itself is based on Jenkins, Nexus, Maven, Ant and Shell scripting. Some projects need some special tools and libraries for building. ...
3
votes
1answer
1k views

Using Command Line (Linux) how do I enable the Bluetooth Adapter?

I have 1 BlueTooth adapter on my laptop. Using the command line, I want to be able to enable / disable it. This would be the same functionality that is achieved using GUI -> Bluetooth settings -> ...
4
votes
1answer
918 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 ...
3
votes
2answers
5k views

`chattr +i` error on NFS

I'm trying to secure my authorized_keys file to prevent it from being modified. I run this: [root@localhost]# chattr +i authorized_keys chattr: Inappropriate ioctl for device while reading flags on ...
13
votes
3answers
4k views

Automatically set Linux timezone according to location

How can we automatically set the system default timezone in Linux using the Internet? As I see it, NTP servers can update only time, but not timezone. Is there any server that can change the timezone?
5
votes
2answers
131 views

Is there a flag corresponding to x/X, but for s with chmod on Linux?

When using chmod (in my case part of coreutils 8.12), and recursively setting the x bit, there exists the convenient X (uppercase letter x), to set the bit only on directories. So if you wanted to ...
1
vote
0answers
44 views

How to get 256 color support in a login shell TTY? [duplicate]

I want to experiment with a fully text-based environment, however, the only thing that is stopping me - is getting 256 colors so my Vim color schemes could work perfectly. When I enter a TTY by ...
2
votes
1answer
141 views

How to edit the file content in vi?

I have a text file with following content (Actual filecontains thousands of lines) abcd xyas sasss jddks asa sasa lkkkss asasd I want the output in the folloing format. abcd xyas sasss jddks asa ...
2
votes
1answer
64 views

Will Linux as a guest be able to make use of hardware support of a Windows host?

I have a Radeon HD 7790 which apparently won't work as well in Linux (haven't tried it yet). My idea is to install Windows as the host and do the Linux work in a VM (which involves stuff that needs ...
1
vote
0answers
199 views

A Linux Distribution for Nintendo DS Lite

I want to use a linux OS on my Nintendo DS Lite. Tried to use the DSLinux, but it turned the device into white and non-responsive screens! Went on IRC channel and got the advice to learn C and solve ...
0
votes
2answers
2k views

How to remove a USB drive without worry if its been unmounted? [closed]

Sometimes I unplug my usb drive only to find out files were not written to it. I suppose the only way to ensure files are written to it is to right click on the USB drive on the desktop and then ...
2
votes
0answers
394 views

SNAT problem in iptables

I am trying to reroute traffic from specific devices in my house over openvpn. For this, I've created an OpenVPN tunnel between my house wifi router and my server. Here is my setup: Wifi router's ...
3
votes
1answer
314 views

How can I write a sed script to delete numbers from a line?

Sample File a.b.gg3d 0000000001 0000000001 y a.b.112a 0000000000 0000000001 y a.b.gg3s 0000000001 0000000001 y a.b.1111 0000000000 0000000001 m I have a file that includes about three thousand ...
5
votes
1answer
1k views

Which one is lighter security- and CPU-wise: LXC versus UML

I'm trying to decide between "jailing" certain applications and I know the trade-offs of KVM versus LXC and how I can use them both. Lately I came across UML (User-Mode Linux) again and was wondering ...
2
votes
1answer
544 views

How to create a new user with restricted network access [duplicate]

I want to create a new user (or group), so that any application running with this user can't connect to the network. @Michael Kjörling I have followed your suggestion(with Ubuntu 12.04 64bit) and got ...
2
votes
4answers
4k views

Wrong root shell in /etc/passwd

I wanted to change the standard shell for my root user to bash but I got the path wrong. i typed /bin/bash instead of /opt/bin/bash. Now my /etc/passwd looks like this: root:x:0:0:root:/root:/bin/...
9
votes
5answers
28k views

How to set DNS resolver in Fedora using network-manager?

I want to try out Google public DNS. For this I need to change the nameserver address. I know it's in the file /etc/resolv.conf, but whenever I start network-manager, it overwrites the values in that ...
2
votes
4answers
3k views

How to show loaded kernel modules inside OpenVZ virtual server

I am trying to find out what kernel modules are loaded inside a OpenVZ virtual server. Command lsmod is empty and I believe the reason is the way how OpenVZ's virtualisation is working. Specifically, ...
5
votes
2answers
5k views

What is the sequence loading linux kernel module on startup? How priority is set to them?

I have a Linux kernel module which I compiled dynamically. How is it added to startup? There are lot of .ko files in /lib/modules. How is priority set for loading these modules?
4
votes
1answer
404 views

Change owner of own directory

I am fully aware that a non-root user cannot change the owner of a folder to another user even if the user owns it unless they use sudo or have the CAP_CHOWN capability. Is there a way to grant a ...
3
votes
2answers
125 views

How proc gets updated about the devices [duplicate]

If i do cat /proc/asound/cards it lists all the sound card details from where proc gets this information.This file is continuously updating what if i want to make a manual entry
10
votes
4answers
30k views

How to view core files for debugging purposes in Linux?

I want to view the contents of a core file while debugging a program. How can I view the contents of a core file?
7
votes
2answers
12k views

How does Linux load the 'initrd' image?

I've been trying to understand the booting process, but there's just one thing that is going over my head.. As soon as the Linux kernel has been booted and the root file system (/) mounted, ...
0
votes
1answer
209 views

My at command failed to reschedule. How can I debug this?

When using at is there a limitation on the amount of minutes to use? E.g I rescheduled programmatically via a script to run in the next 2014.989 minutes (taken from the log) but when I do atq I don't ...
1
vote
1answer
3k views

Cannot dual-boot Linux Mint and Windows 7

I have Windows 7 already installed from a long time ago and I have no Windows/update CD. I want to install Linux Mint. I created a partition, formatted it as Ext4 (in Linux), and labeled it E. I ...
3
votes
2answers
4k views

sed : Ignore line starting whitespace for match

I want to replace the default listening port of httpd to 9090. I can edit the line in httpd.conf file using below sed -i "/^Listen/c\Listen 9090" /etc/httpd/conf/httpd.conf But the line Listen 80 ...
15
votes
1answer
3k views

How is nice working?

sched_setscheduler says : All scheduling is preemptive: if a process with a higher static priority becomes ready to run, the currently running process will be preempted and ...
55
votes
4answers
3k views

How to compile the C compiler from scratch, then compile Unix/Linux from scratch

Let's say I work for a large services organisation outside the US/UK. We use UNIX and Linux servers extensively. Reading through this article it mentions that it would be easy to insert a backdoor ...
3
votes
1answer
2k views

systemd - umount device after service which depends on it finishes

I'm trying to implement a mechanism of automated backup using udev rules and systemd. The idea is to launch a backup routine upon hot-plugging a specific storage device, quite similar to this question,...
1
vote
0answers
279 views

Installed a new NVidia graphics card and now I can't login

Running Linux Mint 14, I was using the integrated graphics from the i5 4670k processor. Now I've installed a NVidia graphics card (GTX 660 Ti) and now it doesn't login on normal mode. I tried ...
1
vote
1answer
1k views

Possible to download all the packages from “groupinstall” and then run ( yum --nogpgcheck localinstall *.rpm )?

This is the original command: yum groupinstall "Desktop" "Desktop Platform" "X Window System" "Fonts" I would like to create 4 folders for these. (1 folder for each). mkdir Desktop mkdir ...
58
votes
11answers
41k views

Easy way to determine virtualization technology

I have command line access to a Linux machine which may or may not be virtualized. I want to determine what kind of virtualization technology it runs on, if any (VMWare, VirtualBox, KVM, OpenVZ, Xen, )...