Questions specifically about Linux but not specific to a particular distribution. If the question could apply to any Unix-like system, specify your Linux distribution in the body of your question but do not use the /linux tag.

learn more… | top users | synonyms

6
votes
0answers
106 views

Why is `du --apparent-size` sometimes off by more than 90%?

I'm working on a software that builds Pacman packages (which basically are tarballs with some special metadata files). The test suite builds some packages, then compares the resulting package to a ...
6
votes
0answers
39 views

Why does 8250 UART driver not wake up TTY if more than 256 characters are pending?

What is the motivation of this if-condition in void serial8250_tx_chars(struct uart_8250_port *up)? if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) uart_write_wakeup(port); It has been ...
5
votes
0answers
83 views

Linux iptables ssh port forwarding (martian rejection)

I have a Linux gateway performing NAT for my home network. I have another network which I'd like to transparently forward packets to, but only to/from specific IP/ports (ie. not a VPN). Here's some ...
5
votes
0answers
85 views

How do I vmtouch a directory (not the files it contains)?

The vmtouch(8) tool allows locking a file or files in memory. It has recursive mode, but the directories are used just for discovering files and are not locked themselves. How do I lock a directory ...
5
votes
0answers
143 views

Limit the inode cache used by a command

I want to run a task with limits on the kernel objects that they will indirectly trigger. Note that this is not about the memory, threads, etc. used by the application, but about memory used by the ...
5
votes
0answers
537 views

How can I configure Yast to switch languages completely?

I have an installation of openSUSE 11.4 which was installed in German. I started Yast2 (which displayed in German, like "Netzwerkdienste") and switched the language to English under "System" -> ...
4
votes
0answers
31 views

Why does /proc/*/status not account for all swap used on a system?

I have a system that has been swapping recently and am unable to account for all swap that is shown as in use by tools like 'free' or 'top'. Specifically, I can account for 19GB of 28GB swap used ...
4
votes
0answers
34 views

send super key to remote Citrix session

I use Citrix Receiver on my home GNU/Linux Debian (testing) desktop to remote in to my work Windows machine. I use Emacs extensively and I have many keybindings that use the super key or ...
4
votes
0answers
55 views

Mounting a SafeDisc-protected ISO on Linux

I have a copy of a very old and obscure software CD (circa 2004). The disc uses SafeDisc copy protection and needs to be in the CD tray for the program to run. I have been using the original CD under ...
4
votes
0answers
68 views

Get quota usage information as non-privileged user

I have non-privileged access to a Linux server (shared PHP+MySQL hosting) and there are disk space, memory, CPU usage, I/O quotas. I wonder how can I get information about max/current quota usage ...
4
votes
0answers
36 views

Block device naming, how to enable by-name and by-uuid?

While building and using linux kernel for custom boards, when Android is used, usually the MMC partitions appear in /dev/block/mmcblkXpY. And there are also symbolic links created in ...
4
votes
0answers
87 views

Where in GRUB2 source code is the handover/jump to kernel code?

I'm looking for the line of code where GRUB2 finally jumps to kernel code and thus hands over execution on x86 systems? I guess it's in an assembler file since this is very low architecture stuff. I ...
4
votes
0answers
954 views

Understanding Broadcom setup and kernel files

I often install Linux distros form live usb/CDs. For that I would like to be able to setup my wireless without any internet connexion. I have a Broadcom chipset : $ lspci -k 04:00.0 Network ...
4
votes
0answers
473 views

Can inotify be used to watch for a specific file to be created without monitoring the entire directory?

I want to be notified when a specific filename is created. I'm looking at inotify. The IN_CREATE flag is available for monitoring a directory for any changes within it, but I'd prefer not to monitor ...
4
votes
0answers
349 views

Why are block sizes limited by page size in Linux?

In many (all?) file systems that Linux uses, including ext2/3/4, the maximum block size is the page size of the architecture Linux is running on, ie. 4KiB on x86. Why is there this limit? Might this ...
4
votes
0answers
684 views

Have tmux wait until I SSH in, to complete rest of Tmuxinator script

After recently discovering tmux and Tmuxinator, I've been trying to set up a development environment to use. Per protocol, we aren't allowed to store passwords/passphrases in scripts. So what I'm ...
4
votes
0answers
261 views

Due to a broken monitor, I need to setup only the right half of my screen

The left side of my full hd monitor is broken, in order to use only the good part the resolution needs to be 1274x1080, aligned to the right. A simple xrandr -s 1274x1080 will get the right ...
4
votes
0answers
482 views

Arch Linux problem: What is causing the black screen problem when logging into Cinnamon?

I first posted this in February, but I'm making the problem clearer because I had no responses in 6 months, and the problem still exists. My Arch boots to the terminal. I login as root. I start ...
4
votes
0answers
2k views

Graph is too large for cairo-renderer bitmaps Error

Im trying to use pyreverse to generate images of UML diagrams for a project source code. When I run the pyreverse command and specify to generate .png images, it runs and then after a while, it shows: ...
4
votes
0answers
506 views

Why does `xvfb-run glxgears` fail with an swrast error?

xvfb is supposed to let me run X programs in a headless environment. But when I run xvfb-run glxgears, I get: libGL error: failed to load driver: swrast libGL error: Try again with ...
4
votes
0answers
43 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 ...
4
votes
0answers
306 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 ...
4
votes
0answers
354 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 ...
4
votes
0answers
720 views

Are there any tools to test MTD/JFFS2 for Linux 2.4 kernels

I have some issues with a platform I support and I suspect memory problems. I wanted to check the Flash parts using some MTD JFFS2 test tools, I found a link to a bunch on this site. However they ...
4
votes
0answers
349 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. ...
4
votes
0answers
3k 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
980 views

Debian Squeeze: connect to A2DP (bluetooth) through command line

I would like to turn my Lacie NAS into a A2DP bluetooth source, in order to stream audio to a bluetooth audio sink. The NAS runs Debian Squeeze in a chroot environment, and is connected to a Bluetooth ...
4
votes
0answers
713 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) ...
4
votes
0answers
418 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
406 views

Pulseaudio/X permission other user/SSH

My user user1 is running a graphical X session with pulse configured per-user. I need to run a graphical program that uses audio with user2. If I do su user2; program program doesn't start and I ...
4
votes
0answers
144 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 ...
4
votes
0answers
1k views

Automounting not working correctly for CIFS shares; weird results

I followed the guide on this page to get samba shares working via autofs: http://www.howtoforge.com/accessing_windows_or_samba_shares_using_autofs Servers and Configuration My Samba server (remote) ...
4
votes
0answers
228 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
25 views

Linux strace not following child processes even with -f (multithreaded parent)

Note: there are several similar questions, with the general answer being "If you want to trace a multithreaded process, or follow children, use -f". This doesn't help me, as i am using -f already. I ...
3
votes
0answers
9 views

Why I need a framebuffer size larger then monitor size when transform destination area is smaller

I tried to remove 100px left & right the top of a 1366x768 screen (as below) using xrandr transformation. But I got an error about not enough framebuffer size. $ xrandr --output LVDS1 --fb ...
3
votes
0answers
37 views

Can using chcon to essentially bypass selinux be less secure than setting selinux to permissive?

I was wondering if it is possible to make a CentOS 7 server less secure by using chcon than it would be if SELinux were in Permissive mode. I am essentially trying to set up Phusion Passenger with ...
3
votes
0answers
12 views

x2go printer sharing trouble

I have a got x2go server installed on Debian 8 by official manual: On server-side: sudo aptitude install x2goserver x2goserver-printing cups cups-x2go I login on server as user with x2goclient. I ...
3
votes
0answers
26 views

Configuring a Linux Wi-Fi access point to redirect a one-word URL to http://192.168.42.1:8888

've created a Wi-Fi access point on a Linux box (thanks to hostapd). I'm trying to make it easy for clients to access the Freenet service that's running on said box. Ideally, the user would be able ...
3
votes
0answers
47 views

Reason for security software to not scan directories with more than 10,000 resources in them?

We have a security software on Linux which scans for exploits in files that exist in directories on the server (such as if websites had hack scripts uploaded to them). It defaults to a limit of ...
3
votes
0answers
47 views

LVM cache and TRIM

I have set up LVM to cache a logical volume (located on an HDD) on a partition of an SSD (in writeback mode if this matters). As far as I can tell, this works correctly and the cache uses all ...
3
votes
0answers
47 views

Linux does not proxy-arp for me, despite the documentation suggesting that it does

I am working on a PDP-10 emulator (see https://github.com/Rhialto/klh10 ). The operating system installed inside it may want to communicate with the outside world via IPv4 (which was just gaining use ...
3
votes
0answers
38 views

Replacing a running binary on read-only file system

I have a simple updater bash script, which replaces files by removing the incident old files and copying new files from an archive to the running embedded target root file system. This way, the script ...
3
votes
0answers
35 views

Automated kernel recompilation on security patches?

I'm on Ubuntu 14.04 and really enjoy the fact that I get automatic kernel security updates. When a kernel security problem is patched, a new package will be shipped with the new version. My machine is ...
3
votes
0answers
55 views

Linux: can't open /dev/dsp

I am getting an error while running festival on my system: linux: can,t open /dev/dsp I was searching for this error on the Internet and found this instruction: To solve this problem just write ...
3
votes
0answers
20 views

chroot and hyperos on ArchLinux?

hyperos is a fork of tinycorelinux Can I run hyperos in a chroot? How can I create an ISO image from files on repo? Is this possible? Which steps should I follow?
3
votes
0answers
27 views

Directing sound output for specific applications

I'm trying to direct the sound from Youtube running in Opera to my sound card's HDMI output (to a TV), but still have all other OS sounds go to my PC's "Built-in Audio Analog Stereo" playback device. ...
3
votes
0answers
70 views

How to create an SELinux exception for individual files

I use a monitoring tool and on one of my systems that is checked remotely, it calls up a script, which in turn runs systemctl to check the status of a service. This was not working until I put SELinux ...
3
votes
0answers
70 views

systemctl hibernate - crash on execution

systemctl hibernate or anything similar (i.e. suspend and hybrid-sleep) crashes the PC on invocation. When called, it first correctly executes all scripts in system-sleep and then logs out any ...
3
votes
0answers
53 views

Dnsmasq problem with Linux network namespace

I have tried to use dnsmasq as the name server for virtual machines. On all the vm-s, /etc/resolv.conf indicates the vm need to access 192.168.15.3 to resolve the domain names. However, the interface ...
3
votes
0answers
26 views

kexec and USE_GRUB_CONFIG

I find kexec very usefull to speed-up the reboot of Linux servers. One parameter into /etc/default/kexec is USE_GRUB_CONFIG. This parameter is meant to "read Grub configuration file". But I don't ...