Tagged Questions
Questions specifically about Linux, as opposed to Unix-like systems in general, or to questions about a specific distribution or program.
6
votes
0answers
109 views
Creating a virtual microphone
I run a CentOS Server with VNC enabled and some services require a microphone to work properly, but it doesn't have to be used for recording, just a microphone device available. So I was wondering if ...
5
votes
0answers
134 views
Why are cgroups mapped differently on these two systems by systemd
I have two systems, both running customized variants of OpenSuSE 12.2 (Mantis), both running exactly the same kernel. I get two very different outputs of /proc/self/cgroup or /proc/$$/cgroup on the ...
4
votes
0answers
35 views
Why does hdparm see two different values for the size of a drive?
I have a 1 TB drive attached via USB. It contains an LVM physical volume filling the entire device (without any partition table). When I tried to extend a logical volume by using the entire PV, the ...
4
votes
0answers
108 views
Is there a tool(!) to list assigned subuid and subgid values for users?
The question is basically in the title.
usermod -v (--add-sub-uids) and usermod -w (--add-sub-gids) can be used to manipulate the subuid and subgid ranges for a user account, but there appears to be ...
4
votes
0answers
1k views
How do I find out the device node corresponding to my device in SuSE 8?
I'm forced to work with a bunch of point-of-sale systems running SuSE 8. They are my client's computers. We are stuck dealing with these old systems until they get to upgrade their whole fleet to SLE ...
4
votes
0answers
398 views
Can capabilities be used in scripts without setcap'ing the interpreter binary?
Right now I'm using cap_net_bind_service MY_USERNAME in /etc/security/capability.conf.
Now I just need to set cap_net_bind_service+i on the interpreter of my favouite scripting language to be able to ...
4
votes
0answers
172 views
Socksifying a qemu-kvm using tsocks
I'm trying to socksify a qemu-kvm using tsocks, but I have no success.
I don't know if qemu access directly the hardware, skipping the OS or something like that, but I wasn't able to do this feat.
...
4
votes
0answers
367 views
Setting Framebuffer splash resolution when exiting X
I installed a copy of BackTrack 5 R2 (Ubuntu 10.04) to my HDD and dual-booted with Windows 7. After a bit of tweaking I set about updating the native Intel drivers because it was only allowing me to ...
4
votes
0answers
206 views
fsarchiver error
I'm running the following fsarchiver command:
$ fsarchiver restfs /tmp/backup/c0d0p2.fsa id=0,dest=/dev/cciss/c0d0p2
I get the following error:
[errno=22, Invalid argument]: ...
3
votes
0answers
21 views
Can't connect to an external RDS TSG server from home
We have a company RDS (Remote Desktop Server) TSG (Terminal Services Gateway) server, which allows employees to connect to an RDS session from home, so they can see a work RDS desktop from home.
This ...
3
votes
0answers
42 views
How can I add additional resolution for my screen?
I tried to launch a game (GTA San Andreas) on wine.
GTA showed Cannot find 800x600x32 video mode and closed immediately.
The Computer I currently have is a Lenovo IdeaPad G510, with Intel HD ...
3
votes
0answers
22 views
What's the exact behaviour of the command: ip address change?
I have been fiddling with IPv6 and address lifetimes. I found out that the valid_lft attribute will make a v6-address disappear automagically, if used correctly. To extend an address' lifetime I would
...
3
votes
0answers
25 views
What are the differences between rdesktop and xfreerdp?
rdesktop and xfreerdp are both linux clients for RDP.
However from their respective websites it is not clear what advantages/drawbacks of using one over other are there.
I found one post, which ...
3
votes
0answers
18 views
Sharing partitions in qemu
Apart from networking and partition sharing I've made qemu work pretty much like I want it to. I've got a bit of a special setup, I need to pass through /dev/sda, /dev/sda1 and /dev/sda2. (Is it ...
3
votes
0answers
69 views
Linux - Only first virtual interface can ping external gateway
I created 3 virtual interfaces with different MAC addresses all linked to the same physical interface. I see that they can successfully arp for the gateway (gw) and they can ping (the request is ...
3
votes
0answers
36 views
Host system keyboard layout changes when starting LXC container
I successfully created an archlinux container on an archlinux host with lxc. However, whenever I start a container via
lxc-start -n GUESTNAME
the keyboard layout changes to the default ...
3
votes
0answers
44 views
Read out pulseaudio volume from commandline? (I want: “pactl GET-sink-volume”)
I want to read out the volume level I can set with
pactl set-sink-volume $SINK $VOLUME
Is there an easy way to do that?
As easy as the hypothetical
pactl get-sink-volume $SINK
?
(What I'm ...
3
votes
0answers
74 views
How to prevent the Linux kernel from waking a secondary HDD from sleep
Is there a way to instruct the (Linux) kernel not to wake up a secondary hdd after a system sleep/wake-up cycle? I'm asking because in my laptop I have an SSD as a primary drive containing the system ...
3
votes
0answers
39 views
Merge partitions
Due to some unfortunate partitioning I ended up with the following layout:
/dev/sda1 (0-120MB) 128MB (boot)
/dev/sda2 (128MB-500GB) 500GB (empty)
/dev/sda3 (500GB-1TB) 500GB (zfs)
...
3
votes
0answers
135 views
linux udev rule to load gadget module for client driver
I'm having a hard time automating loading a gadget module and bringing up the usb0 device as a eth interface. The interface in question is g_ether for a embedded Linux device and connecting to a PC.
...
3
votes
0answers
35 views
Are there any canned solutions for running sshd in the initrd?
This is mostly aimed at Debian/Ubuntu, but I feel savvy enough on a variety of distros to be able to adapt the solution for one distro to another.
Here's my scenario. There are a few situations when ...
3
votes
0answers
24 views
Can I limit total cputime used by a cgroup?
Although cgroups seemingly allow to control the CFS bandwidth of a cgroup, I don't see a way of enforcing a cpu time limit on a cgroup. The use case is that I would like to catch student programs that ...
3
votes
0answers
2k views
Installing Elementary Isis beta
How can I install Elementary OS Isis Beta?
I tried to made a bootable stick using the latest iso builds but for some reason I cannot login.
Having elementary OS installed on my machine, how can I ...
3
votes
0answers
73 views
Linux distros wont boot
I haven't been able to find an answer to this problem anywhere so im posting it here. So I'm trying to put a couple Linux distros on a laptop, using xboot and a USB drive, and when the computer ...
3
votes
0answers
103 views
linux io stack analysis
I'm trying to understand the Linux IO stack by analyzing blktrace trace.
Below is the trace i captured by executing simple fio sequential write with no Direct IO (5 x 8k request size).
8,16 1 ...
3
votes
0answers
139 views
LXC with both GUI apps and snapshots on unmodified Fedora kernel
I am looking for a tool or library to run LXC that supports:
running X applications
conveniently snapshotting root filesystems (using a Fedora system with an unmodified kernel), so that I don't have ...
3
votes
0answers
150 views
Corosync/Pacemaker cluster loss of synchronization
I'm facing a problem with the corosync and pacemaker cluster software.
I've two virtual nodes (Scientific Linux 6.4) and corosync/pacemaker installed on them:
corosync-1.4.1-17.el6.x86_64
...
3
votes
0answers
98 views
What is the difference between the output of TOP command and Oprofile?
In the top command one of the processes is always showing a CPU usage of 4 to 5%.
But in oprofile the CPU usage is 0.004%.
I do not understand this.
And I also noticed that even when a process is in ...
3
votes
0answers
162 views
What happens if I delete dmraid?
I am new to Linux and am trying to install Ubuntu 12.04.3 LTS from a live-USB and have it run alongside my Windows 7 installation.
On the installation screen for Ubuntu, at the partition page, I get ...
3
votes
0answers
29 views
Queuing disciplines are per-interface, what happen with interfaces using same device?
I have read about queuing disciplines here http://lartc.org/.
I understand that for instance band 0 of pfifo policy is prioritized over band 2 within same qdisc, but what happen when i have ppp0 and ...
3
votes
0answers
545 views
Excessively high memory usage reported (3 GB) after reboot
Brief problem description: A 64-bit Gentoo on Intel Core-2 Q6600 reports about 3GB used out of 8GB total memory after reboot. This memory is neither claimed by any process, nor is it used by ...
3
votes
0answers
188 views
Scrolling with a WACOM tablet pen
I've got a wacom pen with a button. How can I trigger scrolling when moving the pen with the button pressed?
According to xev, below, the triggering events are MotionNotify with state 0x200.
If this ...
3
votes
0answers
447 views
Tune write disk cache flushing algorithm
I would like to use the free memory for write cache. Linux does that automatically, but it has some weird flushing algorithm that I would like tuned for my use.
I have recently used ddrescue to copy ...
3
votes
0answers
349 views
How to migrate existing linux system to LVM partitioning
I want to migrate my system to LVM. My current setup is the following:
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = ...
3
votes
0answers
96 views
What does hierarchy support do in cgroup?
cgroup has 2 options for memory control:
memory.use_hierarchy = 1 : use hierarchy
memory.use_hierarchy = 0 : use flat hierarchy, according to this answer
What is the difference between the two? I ...
3
votes
0answers
163 views
How to set CONFIG_PREEMPT_NONE in RHEL 6.4 (linux)
I am trying to tune the RHEL6.4 Kernel to handle server style load for of my application. With RHEL 6 scheduler has been changed to CFS and with RHEL 5 my application works fine. I would like change ...
3
votes
0answers
60 views
Is there a tool for seeing audit events as they happen without writing them to the disk?
Linux has an audit system that is usually used together with auditd, a daemon that, as far as I know, is designed for logging all events to the disk. However, I would like a way to directly get the ...
3
votes
0answers
146 views
Exynos 5 DVFS or turning off cores in Ubuntu - Scaling frequency for one of the cores only (dual core) (cpufreq)
I was wondering if there is possible to scale only one of the cpu cores in the A15 in Exynos 5 ? I have tried using e.g cpufreq-set -c 1 -f 500MHz, but both cores are set to the same frequency. When ...
3
votes
0answers
237 views
Using symbolic links and git to manage build versions
In general I follow the following workflow when I build any program (e.g. emacs, tmux, etc.)
/home/opt/[name of the program]/builds/[version]/
bin
lib
share
For example for a program like tmux I ...
3
votes
0answers
159 views
How to route one video device to multiple programs
I'd like to direct the output of a single capture card (Hauppauge PVR-150) to two programs: VLC (for streaming on LAN) and MythTV for scheduled recording. I think it's possible to do this with the ...
3
votes
0answers
93 views
Restricting D-Bus access to the logged-in user via ConsoleKit or systemd
I need to restrict the client of a D-Bus service to only the user logged into the system locally, via ConsoleKit or systemd. How must I configure or write the D-Bus service to do so?
3
votes
0answers
360 views
How do I let an SDL app (not running as root) use the console
I want to use an SDL-based program to display graphics on the console, without having to log on from the console, and without running the program as root. For example, I want to be able to run it via ...
3
votes
0answers
286 views
Screen flickers in Fedora 17
Screen flickers every 10 seconds. (I timed with a stopwatch, screen flickers every 10 seconds, 6 times a minute exactly.)
I've used Windows and I'm trying to use Linux. I don't know much about Linux. ...
3
votes
0answers
149 views
Implement Java/JavaFX on ARM
I am working on ARM Linux.
I have found this link that says that JavaFX could work on ARM.
I am confused about Embedded Java SE and JavaFx ARM. Do I need to setup a JVM for those or not?
I have ...
3
votes
0answers
359 views
How to set up an encrypted directory to be mounted only during samba access?
(This is not about restricting client access, for which ext3 permissions do the trick)
I'd like to encrypt the data on my NAS drive (Buffalo LinkStation Pro with SSH access enabled, if that matters) ...
3
votes
0answers
236 views
How to know the event by looking at /dev/input/by-id
I want to access the keyboard device driver. I usually accesses it by looking at
/dev/input/by-name but the event provided by it gets changed every time I log in.
After searchin on the Net, I found ...
3
votes
0answers
85 views
Importing hdhomerun channels into MythTV
I am setting up a MythTV backend, to stream Live TV from.
I scanned for channels with the hdhomerun_config utility, and got this
However, I really don't have a clue how to import it into MythTV.
3
votes
0answers
434 views
Using Creative Sound Blaster on Ubuntu Server
I just got a Creative Sound Blaster for playing audio wirelessly. I connected it to a virtual version of Ubuntu desktop and just had to go into the sound settings and switch it to the USB and the ...
3
votes
0answers
526 views
Memory mapping of the Linux kernel : how extended (4MB) and regular (4KB) paging coexist?
On x86 architecture, "Extended paging" allows page frames (physical memory) to be 4 MB instead of 4 KB.
The book "Understanding the Linux Kernel, 3rd" at chapter 2 "Memory Addressing", sub-chapter ...
3
votes
0answers
131 views
Restricting sound control
I need to restrict users so that they cannot output sound from built-in speakers. They should plug their headphones to hear any sound. They should be able to control headphone volume level, but not ...