Linux refers to the family of Unix-like computer operating systems using the Linux kernel. If your question is about a certain distribution only, use a more specific tag.

learn more… | top users | synonyms

2
votes
2answers
615 views

How to read PDFs on Linux so the white margin around the page is automatically cropped?

I have another device, an eInk ebook reader (Onyx Boox), that has this wonderful feature, "auto-crop", that auto-detects the white margins in pdf (with a given degree of "aggression"), and zooms out ...
2
votes
0answers
736 views

How to add “Read & execute” permission in Windows 7 for file on Samba drive

From a C program I would like to add "Read & execute" permission in Windows 7 for a file on a Samba drive. The "icacls" program is used in example below, but a C library call could also be a ...
2
votes
0answers
486 views

Debian Wheezy crackling sound on shutdown

Crackling sound is coming out of my internal and external speakers as well when I shutdown or reboot my HP 8540w notebook. lspci | grep Aud 00:1b.0 Audio device: Intel Corporation 5 Series/3400 ...
1
vote
1answer
357 views

Linux shell to execute keystroke (CTRL+C)

I've been encountering a problem while trying to simulate "Ctrl + C" within a bash script. Basically, I am trying to simulate keystrokes after another command has been run. While I seem to have no ...
0
votes
1answer
306 views

Issues while setting up passwordless sftp

I was trying to set up a passwordless sftp from one Red Hat Linux server to another. As "oracle" user, I created the key-pair on server1, copied the publickey over to server2, and then added them to ...
2
votes
1answer
207 views

Put linux on the fifth partition

So I have this quite "insane" partition scheme on my MacBook: Kevins-MacBook-Air:~ Ingwie$ diskutil list /dev/disk0 #: TYPE NAME SIZE IDENTIFIER 0: ...
0
votes
2answers
159 views

Why does windows 7 shutdown require so much hard drive usage? [duplicate]

When I shut down linux, for example, it takes a couple seconds. All it does is shut down running services, maybe write a couple log files etc... On my windows 7 box however it takes about 1 minute to ...
4
votes
1answer
4k views

How to enable mouse focus in Linux Mint 15 with Cinnamon

I'm a big fan of mouse-focus, or "focus follows mouse", and I had this enabled in Mint 14, but when I reinstalled with Mint 15 I can't find the option anywhere. None of the sections in "system ...
1
vote
1answer
679 views

Why is systemd not setting my system time?

I'm running Arch Linux. Recently, when I turn on my PC, the system time is set to 1:00 1 January 1970 - presumably the 1:00 o'clock is from the timezone shift. Does anyone have any ideas why systemd ...
0
votes
0answers
47 views

Deleted video file from spy glasses

please help me... I have bought spy glasses - glasses with video camera. I use it for horse riding ;) and sometimes I have problems to turn it off. The it makes some mistake and the SD microCard seems ...
2
votes
2answers
4k views

ssh: connect to host port 22: Connection refused with external ip address

ssh: connect to host XXX.XXX.XXX.XX port 22: Connection refused This happens when i try to connect with external ip (WAN IP Address). I am successfully able to connect using internal ip address ...
1
vote
1answer
2k views

Ubuntu Monodevelop not starting, gtk-sharp missing

I'm just switching from windows to ubuntu, just that you know I'm a linux noob. I've compiled monodevelop (4.0) from sources, because only the old 2.x version can be installed with apt-get. Then my ...
1
vote
4answers
358 views

Can't make an iso of burned DVD-R

I've got problem while trying to open burned DVD-R, I even can't to make an iso image of it within dd - after making iso image, I've tried to mount them: mount -t iso9660 /dev/cdrom /mnt -o ...
1
vote
2answers
310 views

How to create a file that just consist of ones

To create a binary file with all '0's, one could do dd if=/dev/zero of=foo bs=1024 count=1 What if I wanted to create a file with all '1's? I can't find /dev/one anywhere.
2
votes
1answer
4k views

Unable to write as root (but can as user)

I have an NFS/NIS based file system. NFS and NIS servers are on different physical machines. When we log into our head node home directories are automounted. When logged in as a user I can write ...
0
votes
2answers
103 views

How to find the process which has a lock on a file in a linux environment

So I have a problem similar to this individual... http://stackoverflow.com/questions/13635429/git-rename-from-index-lock-to-index-failed So it seems that he eventually solves his problem by finding ...
11
votes
3answers
5k views

How to stream my GNU/Linux audio output to Android devices over WI-FI?

I want to stream my audio output over the network (Wi-Fi) to my Android devices. I'm not looking for a music/video streaming solution, but I would stream any audio output of my GNU/Linux desktop to my ...
0
votes
1answer
3k views

Corrupted linux partition: EXT4-fs error loading journal

I have a Linux partition (Ubuntu 12.10 upgraded to 13.4) on a machine that originally came with Windows 7. Windows 7 was working unusually slow (still is, and was still running slow after ...
1
vote
4answers
3k views

Rsync root files between systems without specifying password

This seems very tricky to me. I've set up my two systems so that I can rsync files between them as me, without specifying password. Now the the problem is to rsync files that belong to root. On both ...
0
votes
1answer
278 views

Connecting to openvpn server from linux command line

I'm trying to setup openvpn client on Debian Linux so my traffic goes through he vpn. I have done a lot of Googling and in all the articles I crossed it mentions that I need to copy the certificate ...
0
votes
1answer
2k views

Is virtualbox shared folder working for Debian guest

This is very strange. I'm running Debian and Ubuntu guests under the same virtualbox (hosted under Win7). And the Debian and Ubuntu mostly have the same packages installed. And I did the same steps to ...
5
votes
3answers
623 views

Debian security: lots of connections on port 80

I have a debian server (kernel: 2.6.32-5-amd64). I normally run a jetty server on it, but lately it started getting tons of connections to it. It shouldn't get all this traffic, since its a pretty ...
2
votes
2answers
3k views

time stamp XXXX s in the future issue - touch command (Linux)

When I untar a tar.gz file on Debian Lenny, I get the such outputs: tar: openssl-1.0.1e/apps/openssl.cnf: time stamp 2013-02-11 15:26:04 is 1360584537.139999998 s in the future ...
1
vote
2answers
1k views

GTK apps from remote server look bad

I ssh into my headless remote server with X11 forwarding. All my remote GTK apps from remote server look rather ugly. My default GTK theme is not applied. I think this has something to do with GTK ...
1
vote
1answer
1k views

Ubuntu 13.04: How to keep nautilus' ftp connection alive?

I've installed ubuntu 13.04 today, and I'm having problems with ftp (via nautilus) disconnecting too quickly. On ubuntu 12, I used to prolong it by calling ls ~/.gvfs/ftp* every 20 seconds using a ...
1
vote
0answers
148 views

Permissions tar extraction to nfs share from a Perl script

As part of an installation procedure of a piece of software, I use: curl -s <url-to-targz> | tar -p -x -z -C / inside a Perl script (I use qx($command) or system($command), either will ...
1
vote
1answer
2k views

Using a Logitech c310 Camera with Linux Mint

I've never used or installed a webcam before, so bear with me. I plugged the camera into a USB port and nothing happened. What should happen? How do I mount the camera? It didn't come with directions, ...
2
votes
1answer
126 views

Script acting strange in bash_profile (but just under X)

I have made a simple .sh script which checks every minute whether a particular file is empty or not, and if it is not empty, makes a led on my laptop blink at 0.5Hz. I call this script from my ...
0
votes
1answer
67 views

Viewing a specific process in the terminal

Have been using Ubuntu for about 2 weeks right now and I am in love with it. The only thing I was wondering if it is possible to view the percentage on a process in the terminal, sounds a bit vague ...
0
votes
1answer
645 views

How to troubleshoot high cpu problems related to postgres and postmaster service?

I'm using an open source(RHCE 6.2) based machine running SIEM software , when i do the top command i see postgress postmaster both eating 96% of cpu usage? Is there a way to pin-point or see ...
2
votes
2answers
177 views

Cannot setup ssh gateway

I am trying to setup a ssh gateway. I have a physical host (H) and a number of VMs on it. The host can ssh to one of the VMs (A) and then ssh to others from it (lets call it B). I have this in ...
1
vote
1answer
366 views

How can I detect long-lived connections and mark them for shaping

I would like to detect TCP connections which have been open for more than one minute (or for greater than N bytes, or M packets), so I can classify them as bulk traffic ("downloads") and de-prioritise ...
0
votes
2answers
1k views

How to send a binary message in TCP and store the response

I have to develop a client for a proprietary protocol and it would be very useful to be able to understand the behaviour of the existing server by sending it custom messages and look at the answer. ...
0
votes
1answer
1k views

Send mail with an zip attached from Mutt without prompt options?

I'm stucked when I'm trying send an email, using Mutt, but evry times that I run the script it prompt an menu with an verification. There is any way to bypass that verification or to inupt the option ...
1
vote
1answer
2k views

tcpdump output to file not working

I'm trying to write the results of tcpdump to a text file. I am not interested in saving a pcap file to use later, I just need exactly what tcpdump returns in plain text (the ips and timestamps of ...
1
vote
1answer
2k views

I can't change permissions in /media folder

On my laptop I have got installed Ubuntu 11.04 and VirtualBox with Ubuntu Server 12.10. I have shared folder in /home/szymon/projekty_www. I can see content of this folder in virtual machine in ...
7
votes
5answers
26k views

Monitor TCP Traffic on specific port

I've searched quite extensively for this, but cannot seem to come up with a working example. My objective is to monitor TCP traffic on a specific port to see incoming connections and write them to a ...
0
votes
0answers
173 views

How to fully install linux on a USB flash drive

i need to install linux (Ubuntu) on a flash drive, i need it for installing the OS on my pandaboard ES. I want to make a full installation (not the live cd one) I've tried installing it from a cd to ...
1
vote
2answers
2k views

Dual monitor setup using startx not working

I have two Monitors which used to run two different application on each one. Eg. Monitor A should run chromium-browser Monitor B should run another chromium-browser This should be run after ...
0
votes
1answer
328 views

Safe backup/restore of Linux partitions in a Windows /Linux dual boot setup using a recovery partition

I have a dual-boot laptop (Windows 7/Kubuntu 12.04) with an IDE spinning-rust disk. I'd like to reinstall Windows. The problem is that the only medium for that is a factory-installed recovery ...
0
votes
0answers
91 views

How to edit a remote file with implicit su-ing to another user on remote host

I want to edit files on Unix/Linux servers from my PC (running Linux and/or Windows). However due to security, I cannot log into the remote server as the file owner, but as my named user, then sudo su ...
0
votes
0answers
272 views

GNOME 2.16.0: desktop frozen (redhat 5.8)

I have a user whose desktop is frozen. We're running Redhat 5.8. Gnome version is 2.16.0. Clicking the icons does nothing. The menus on the toolbar work. If I try to launch nautilus from the ...
0
votes
1answer
94 views

Power off device from Linux

I'm trying to find out a way to power off a device (hard drive) via sysfs or anything else. The only thing I have found was to turn off the power supply to the USB device, but that's not what I'm ...
0
votes
2answers
634 views

Run a bash script on boot of ubuntu server which does a constant loop

I am in the middle of create a local FTP server and I need this script to run when the machine boots up: #!/bin/bash while [ 1 ]; do chmod 2777 /home/ftp/folder; chmod -R 777 /home/ftp/folder; sleep ...
0
votes
0answers
239 views

crash shell: any way to check if a command executed Successfully

I am automating a test using crash package. is there some thing like $? in bash shell, which can be used to check if previous command is executed success fully or not. eg : when command crash> ...
0
votes
1answer
255 views

How to split file on basis of size without breaking last line of split file

I have a big file and want to split the file on the basis of size. For e.g. Main file: 10 Mb and then I want to split it into 2 mb parts. But the issue is if I use split -b it breaks the last line ...
0
votes
1answer
899 views

How can i change the system wide default graphical text editor?

As with #! waldorf, geany is the default graphical text editor. However i want to substitute that with sublime text. Any ideas on how to do this?
3
votes
2answers
527 views

How to execute a function in bash or zsh on every letter being typed into prompt?

I know about preexec() hooks for zsh and the way this can be achieved in bash. ( link ) But can i get the current input while still typing? The idea behind this question is the following: in order ...
0
votes
1answer
143 views

Programatically refresh chrome pages on ubuntu

I'm building a static website. I'd like to write a script that watches a directory and, when a file changes, tells chrome to refresh that page. This is pretty simple with AppleScript, but I'm moving ...
1
vote
2answers
1k views

find number of groups assigned to a user

Is there a way to find the number of groups assigned to a user in linux? as of right now i have: foo : foo bar apple users An app I use may have given a user a group of "apple users" but I cant ...