A family of Unix-like 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

4
votes
3answers
457 views

Set up Linux box as WAP for MyBookLive?

I inherited an old Linux box as well as a MyBookLive and would like to make the MyBookLive available over my wireless, essentially using the Linux box as a gateway. I just wiped the Linux box (home) ...
4
votes
3answers
2k views

Can't set-up Wifi Adhoc on my Raspberry Pi with an USB dongle

I am trying to set-up an access point (ad-hoc) for my Raspberry Pi. That means I'm trying to "share" the ethernet connection over Wi-Fi. I am doing this using my Ralink Technology, Corp. RT2501/RT2573 ...
4
votes
3answers
2k views

No signal on monitor after plug it to a linux box

I use my old computer as an NAS, so I remove the monitor after I installed linux on it (disconnect vga cable). I use ssh to control the machine and it works fine. Until some day, after kernel/softare ...
4
votes
3answers
7k views

Which keymap should I use for a wired Mac keyboard in Gentoo Linux?

I just purchase the new wired Mac keyboard: Running on Gentoo Linux it works mostly fine. The only problem I am having is the function keys and swapping the Alt and Command keys to resemble a ...
3
votes
3answers
258 views

Where does this name come from? root@<hostname>

When I putty into my CentOS 6 server I am shown root@ DemandStream Development This was a copied and repurposed Linux VM from one of our development environments. How do I change this name? It seems ...
3
votes
3answers
1k views

Is there actually a way to make video calls through XMPP/Jingle WITHOUT Google Talk?

Good day people, I'm writing because I've spent the whole day trying to make video calls through XMPP but I haven't really found out if it's actually possible. There are many clients which ...
3
votes
3answers
6k views

SFTP ChRoot result in broken pipe

I have a website that I want to add some restricted access to a sub-folder. For this, I've decided to use CHROOT with SFTP (I mostly followed this link : ...
2
votes
3answers
96 views

Recovering filesystem in mangled partition

Accidentally booted the Acer Recovery partition of my multi-boot laptop and despite selecting EXIT when presented with a choice of whether I wanted to recover anything or not, one of my partitions got ...
2
votes
3answers
62 views

How do I create a file as a user and then modify it as another user?

I have a script that does an "su - oracle" then runs exp. I need to store that file to a directory /app/dumps that the user "backups" has access to read + write the file. What's the proper way to ...
2
votes
3answers
15k views

Linux Mint Wifi keeps disconnecting at random times and asks for wifi password

I have a fresh install of linux mint 16 cinnamon edition. I have a Netgear wireless dongle model: WNA1000M. Is there any command i should run to get more details? Wifi drops about: 15min to 1hr.
2
votes
3answers
444 views

Why is my computer screen black whenever I load an OS?

Whenever I boot up windows I get the "Starting Windows" screen and then I'm shown a black screen with a mouse cursor (which I can move). I installed Linux Mint 17 on an entirely different hard drive ...
2
votes
3answers
636 views

How can I find all files on a folder tree that have a none alpha numeric characters in it

I have taken over from someone else a lot of historic data. However the file names are totaly random and badly formatted IMHO. To start with I want to get a list of all files that contain spaces, or ...
2
votes
3answers
981 views

How can I determine if a client SSH connection has a tty associated with it?

Im writing a PAM module to handle authentication (server side - sshd) and I have to know if an ssh client is a tty (interactive) or not (non interactive). Does anyone have a clue?
2
votes
3answers
2k views

sudo very slow after winbind to AD on RHEL6

When I run a sudo command after binding my linux machine to an AD domain using samba/winbind, it takes anywhere between 10 seconds and 2 minutes to respond before prompting for my password. I've ...
2
votes
3answers
3k views

ALSA - no surround playback with mplayer

When I run: speaker-test -c6 ...everything is fine. I get 5.1 playback. However, when I run: mplayer -channels 6 "some video with 5.1 audio" no audio plays. Here is what appears in the ...
2
votes
3answers
289 views

How to prevent a user from viewing the entire file-system?

I've set up SFTP/SSH so that a user can only put to their home directory, however, they can still cd to all other directories and get files that they see. How can I prevent this? EDIT: My ...
2
votes
3answers
1k views

Run a script after killing lxsession (xorg)

I am trying to run a program automatically within a bash script after killing the LXDE session. My script consists of: #!/bin/sh pkill lxsession; sh ...
2
votes
3answers
565 views

Create bootable hard drive image

I've got a file server running Linux that I want to be able to run headless and access it via ssh. I no longer have room for the monitor and keyboard and plan to put it in a closet or somewhere out of ...
2
votes
3answers
934 views

Power optimization in Linux

I am working on a traffic surveillance project which performs various image processing tasks with a number of visual sensors and a computing platform. My basic task in the project is the power ...
2
votes
3answers
6k views

Cant get squid proxy to work

i need squid proxy on my centos server. But i just can't get it to work. I did yum install squid. Here is my squid.conf file (i removed all comments): acl all src 0.0.0.0/0.0.0.0 acl manager proto ...
2
votes
3answers
879 views

GNU Screen - pasting from System Clipboard

I am using screen on OS X. I have two bind commands: bind ( eval "writebuf" "exec sh -c 'pbcopy < /tmp/screen-exchange'" bind ) eval "exec sh -c 'pbpaste > /tmp/screen-exchange'" "readbuf" ...
1
vote
3answers
240 views

How to check the program is installed on linux?

I want to check if the program is istalled on linux(CentOS). (I used java jsch) If not, send messages to front-end which program user lacked. I used which As you can see,I didn't have php ...
1
vote
3answers
401 views

Using scp to get all files in multiple directories

I have a directory structure which looks like A1/B1/C1/files111*, A1/B1/C2/files112*, A1/B2/C1/files121*, A1/B2/C2/files122*, etc. so that all files in all directories are unique. Is there a way to ...
1
vote
3answers
2k views

Hard drive (SATA) making trouble when connecting via USB

I have a hard drive from Western Digital (model: WD2500BEVS-75UST0) that is running without visible problems inside my laptop connected with SATA. However, once I connect it with an external case that ...
1
vote
3answers
341 views

Bash script to find all folders containing a specific file and copy a new file to those folders

I'm trying to write a script that will loop through all subfolders of a directory to search for a specific file and then copy a new file to those folders that contain that file. This is what I have ...
1
vote
3answers
1k views

Unable to get Linux Live installation media to properly boot from USB on 2006 iMac

I'm trying to dual boot linux on a 2006 iMac. I have tried Arch, Ubuntu, and Fedora. I originally created the Arch USB installation media following the instructions in the Arch Beginner's Guide. ...
1
vote
3answers
506 views

How to encrypt files under linux for cloud storage

How to encrypt files under linux for cloud storage I am searching for a file based encryption tool, which I can use in Linux (Mint) to store files in google drive. I really like encfs. But since die ...
1
vote
3answers
1k views

Reduce brightness on laptop with Fedora 20 and Gnome Shell

So, I just gave up trying to get my screen brightness keys working properly and now I'm searching for a way to decrease the brightness of my screen artificially. Maybe there's a gnome shell extension ...
1
vote
3answers
877 views

Is it possible to run a program as a specific user but with root permissions?

I'm doing development with PyCharm, doing development on a script that uses the scapy module for Python to do port scans, sniff traffic, and build raw packets. This, of course, requires root ...
1
vote
3answers
152 views

Files in red, what do they mean

What does it mean when a file is in red. I change into one of my directories and run ls and it shows these files I've never seen in red. duplicity-full.20120405T013825Z.vol10.difftar.gz and goes all ...
1
vote
3answers
106 views

Linux: create a “public” SSH account that executes a specific binary and then closes?

I have written a simple application that runs in console mode. I want to allow people from the Internet to SSH to this host and use the application in question. Each time someone SSH's to the server, ...
1
vote
3answers
518 views

The system cannot find the path specified

Here is my situation. I have a Windows server box and a Linux box. On my Windows server I have Sharepoint installed and was able to access the shared directory through the Windows command line by ...
1
vote
3answers
652 views

Sending large files from Linux to Windows

I have been trying to send a large backup file (over 2G) from debian Linux to a Windows XP machine. I've had problems using CIFS, e.g.: Jan 16 11:39:58 debian kernel: [3205845.238084] CIFS VFS: ...
1
vote
3answers
707 views

Clone my 2tb linux system to a new 3tb drive

My 2tb drive uses mbr and my new drive must use gpt as it's 3tb. Normally I use DD to do a copy like this from one drive to another, but how can I do this have have the 3tb drive be gpt and actually ...
1
vote
3answers
782 views

Temporary iptables changes

I have a remote system that I SSH. Since I am planning to make this system more publicly accessible, I want to improve my iptables rules over the current policy of accepting anything. I have added a ...
1
vote
3answers
130 views

Move multiple files from filename list to a new folder

I have a list of filename in list.txt, which have 'abc1.png, abc2.png, abc3.png....'. However, I don't know the directories where the files are. I want to find all files in the txt file, and move ...
1
vote
3answers
85 views

Terminal Program To Save VI State

For a few years now at work I have been using the GNOME Terminal, and have gotten very used to that. I usually organize my work by categorizing each task on its own virtual desktop, then within each ...
1
vote
3answers
229 views

How can I remove exponential terms and floating point numbers from a text file on linux?

What regular expression should I use in order to remove exponential number terms and floating point numbers from a text file? For example I have the following terms in my file: -0.161678 relational ...
1
vote
3answers
1k views

Split file based on first matchof pattern

How can I split a text file based on the first match of a pattern? The file only needs to be split in 2 parts, one containing everything prior to the line matching the pattern, one containing the line ...
1
vote
3answers
129 views

Use latest version of package in bash script

The installed package libnet-amazon-ec2-perl uses v0.14.1. How do I update this package to use the latest stable release v0.22.1? When I try sudo apt-get --only-upgrade install ...
1
vote
3answers
2k views

zcat | head : write error from large gz file

I was trying zcat to get only the first 1M lines of a compressed .gzip file into a new one. However, I get the following error: $ zcat path/to/R2.fq.gz | head -100 >R2.fqtest head: write error: ...
1
vote
3answers
1k views

linux routing outbound port 80 traffic via ssh tunnel, iptables, or a simple route

I have two hosts, A and B. Host A hosts services on port 8080 and has outbound internet firewall rules allowing port 80 and 443 access to Host C. Host B is on the same subnet as Host A. Host B is ...
1
vote
3answers
1k views

How to truncate the streaming output of a redirect?

I have a process that outputs a line for every progress update (sidenote: it does clear/replace the line, no pure newline break). I want to save the latest line of that process to an output file or ...
1
vote
3answers
77 views

Prevent users from using the same cron schedule?

I've a lot of users in my server using exactly the same cron schedule and this is causing high server load. Can we prevent this? For example, if there's x numbers of users that use the following cron ...
1
vote
3answers
369 views

lazy prompt for ssh public key passphrase

I have ssh public keys set up on my computers. They have passphrases. Whenever I need to, e.g. push to github, I have to type in the passphrase. Each time. And I'd rather ssh remembered on subsequent ...
1
vote
3answers
1k views

Editing multicam video on Linux

Multicam is a feature where you combine several video clips together (for example, an Internet band whose members record his own instrument at home, then mix all videos of the members into one single ...
1
vote
3answers
590 views

Initiate restore of directory hierarchy in Glacier to S3?

Using software that runs under Linux, is there a way to initiate a restore from Glacier to S3 of an entire directory hierarchy? The files are transferred to Glacier using a S3 bucket lifecycle rule. ...
1
vote
3answers
1k views

How to make my Ubuntu an internet gateway for my Android phone

I want to use the internet of my school on my Android, the problem is they have a Squid proxy, and many applications on my phone don't use the proxy at all. The obvious solution is to install a ...
1
vote
3answers
901 views

Is it possible to boot a Wubi/Ubuntu system in a virtual machine?

I think the title says it all. Is there any method for doing this? I've Googled around but only found solutions to similar, but not identical problems, and just plain non-answers from people who don't ...
1
vote
3answers
781 views

I need a traffic monitor for Linux, that only counts in a specific wireless network

I need a simple traffic monitor for Linux, that counts the traffic in a specific wireless network because I have volume restrictions on that one. I tried it using the following iptables rule: ...