Questions specifically about Linux, as opposed to Unix-like systems in general, or to questions about a specific distribution or program.

learn more… | top users | synonyms

2
votes
3answers
1k views

How can I change the shutter speed of my webcam in Linux?

how can I change the shutter speed of my webcam in Linux? I'm using fedora 14
1
vote
1answer
448 views

Kernel module blacklist not working

I'm trying to figure out how to blacklist modules, and I'm trying it on the usb storage. Unfortunatelly it seems ot have no effect, and I get the module in even if it's not used (apparently). My ...
1
vote
3answers
827 views

Make web project writable by apache and other user

I am running ubuntu 12.04 LTS . To be able to view my web project in the browser I did the following: chown -R www-data:www-data /var/www/project Now I wanted to open the project in netbeans but it ...
-1
votes
2answers
1k 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 ...
5
votes
3answers
2k 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 ...
21
votes
2answers
14k views

How to colorize output of ls ?

I'm running CentOS in Linux text mode. When I run the command ls /usr/, the output is too hard to read (dark blue on black). How can I change the text coloring?
0
votes
1answer
155 views

Local host always being added to /etc/hosts.deny when trying to SSH

I have a rather odd problem with my server. For some reason the local hostname for my workstation keeps getting added to the /etc/hosts.deny and when I try to SSH I get: ssh_exchange_identification: ...
1
vote
1answer
1k views

SSH to machines in new subnet - connection timeout

I'm using RHEL4 and RHEL5. A new group of Linux machines are setup recently using 172.16.32.0/24. The existing RHEL machines are running on 172.16.1.0/22 and 172.16.4.0/22. When I try to ssh from ...
3
votes
1answer
159 views

Why my SSDs are in /dev/hdx instead of /dev/sdx on CentOS 5.9?

I have two SSDs Kingston SH103S3240G plugged on SATA ports of my Intel Server Board S3000AH. The SSDs apear like a PATA device (hdx instead of sdx) on my CentOS 5.9. I'm having problems related to ...
4
votes
1answer
74 views

Lilo makes a lot of disk noise

After upgrading to Debian Wheezy, the lilo command causes my boot disk to make a lot of noise. I am not aways of any real problems, just the noise sounds somewhat scary, especially since this wasn't ...
1
vote
1answer
110 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. ...
4
votes
1answer
1k views

How is cron scheduling actually implemented and makes sure scripts run on time?

I want to ask about cron jobs. OK, we place the scripts in the crontab and the cron daemon executes them. Now if I understand this, each minute, cron checks the crontab of each user and executes the ...
1
vote
1answer
430 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?
1
vote
3answers
239 views

Does a fault in a kernel module necessarily result in a system crash?

Or is it possible to overcome the fault, since the code isn't in the monolithic part of the kernel?
2
votes
1answer
635 views

Process calling getaddrinfo() at boot gets permanently stuck with bad /etc/resolv.conf?

I'm running pianod, a Pandora client/server, on a Raspberry Pi with Arch Linux ARM. I have pianod set up to run as a service at boot. It starts up before the network stack, so getaddrinfo() fails. ...
1
vote
1answer
232 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 ...
7
votes
3answers
243 views

Linux/Unix variant for training system administrators

Is there a Linux/Unix based operating system used for training sysadmins? Some bugs would be deliberately included in the system and the training candidate is supposed to solve all of them. It should ...
3
votes
2answers
3k 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 ...
2
votes
0answers
192 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 ...
10
votes
3answers
2k 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? ...
3
votes
1answer
653 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 -> ...
8
votes
1answer
1k 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 ...
3
votes
2answers
3k views

SD card not accessible (works in an old Nokia though)

Background I have two visually same 2GB microSD cards, both labeled "SD-C02G JAPAN", under the "2GB microSD" logo. My problem is that I can't read one of them in any device except an old Nokia 5310 ...
1
vote
2answers
483 views

Dual boot Win8/Fedora19

I just installed Fedora 19 (gnome, 64 bit), in addition to my Windows 8 installation. But when I start the computer, it goes straight to windows, not providing any option to boot into Fedora. How do I ...
5
votes
2answers
83 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 ...
3
votes
2answers
3k views

256 color in real console

I have in my .bashrc export TERM=xterm-256color but this cause blinking all colored text (ls --color, in vim etc.) in real console (CTRL + ALT + F1) . So is there any possibility to recognize in ...
1
vote
0answers
39 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
132 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 ...
1
vote
0answers
149 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 ...
2
votes
1answer
61 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
4answers
2k 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, ...
4
votes
2answers
2k 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?
2
votes
0answers
297 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
206 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 ...
2
votes
1answer
195 views

GPS Device Attached to Linux Mint 15

I purchased a Silvercrest GPS device from Lidl recently, but the software that came with it is a tad "underpowered" to say the very least and has no Linux support. I'm attempting to get at the raw ...
2
votes
1answer
350 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 ...
3
votes
2answers
85 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
4
votes
1answer
288 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 ...
6
votes
2answers
4k 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
133 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
2answers
2k 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 ...
2
votes
1answer
802 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 ...
13
votes
3answers
4k views

How to set window size and location of an application on screen via command line?

I want Firefox window to be opened in a specific size, and location on screen using a shell command, for example: firefox myfile.html size 800x600 location bottom-left Is there such a command?
0
votes
1answer
164 views

Execute remote programs and completely detaching it

I need to execute a remote application (named ConnectionManager), which uses the ncurses library, on the remote server launching it from a local pc. ConnectionManager is a program wich use ncurses ...
1
vote
0answers
196 views

Full network logging via linux firewall ( iptables )?

How truly enable full network logging via iptables? There is an option --log-prefix to add a tag to log entries. But the log entries don't show all complete packets. What a grand way to enable full ...
2
votes
1answer
801 views

Mounting error while installing VM ware tools in Kali Linux

I'm new to Linux and I have installed Kali Linux on VM Workstation.I want to install the VM tools but when I click "install VMware tools" from the VM workstation menu I receive this error at the guest ...
1
vote
0answers
192 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
85 views

Best way to find the active wireless device

Of course I know the command: iwconfig which lists devices (and gives info about whether they have a wireless connection). For the purposes of a shell script, I'm really wondering, is there any way ...
1
vote
4answers
343 views

How to change color of a character while tailing and tr

I regularly use this command line but I would like to change the color of the "|" to green in the output. Does anyone know how I can accomplish this? tail -f file.log | tr '\001' '|' | grep TEST
2
votes
3answers
2k views

How to run awk for some number of lines.?

I want to extract some lines with awk. Is it possible to do the following task: ls -l | awk 'BEGIN FOR(i=122;i<=129;i++) FNR==i' How can I display the details from line numbers 122 to 129?