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

3
votes
2answers
306 views

In bash, how I define a “command scope” variable?

I'm reading this book on the bash architecture and one of the bash maintainers says: There are different variable scopes for shell function calls and temporary scopes for variables set by ...
3
votes
1answer
182 views

Trying to reset local ip address with a script that edits /etc/network/interfaces

I'm trying to write a script that sets the local IP address. This is what I have so far: #!/bin/sh echo -n \ "# interfaces(5) file used by ifup(8) and ifdown(8)\n"\ "auto lo\n"\ "iface lo inet ...
3
votes
1answer
1k views

ACL vs standard file permissions - which are used when accessing file?

ACLs and standard file permissions seem to be synchronized: $ getfacl test.cpp # file: test.cpp # owner: scdmb # group: scdmb user::rw- group::rw- other::r-- $ ls -l test.cpp -rw-rw-r-- 2 scdmb ...
3
votes
1answer
4k views

Access Samba share from Windows

I have a samba share set up on a linux box which is only accessible from Windows if they turn off Microsoft network client: Digitally sign communications (always) They would like me to configure the ...
3
votes
3answers
3k views

Ffmpeg Audio Stereo to Mono using only left channel

I use the following command to extract video parts of an '.MTS' record (video). ffmpeg -i 00402.MTS -s 1280x720 -r 25 -ss 0:00:05.38608 -vcodec libxvid -qscale:v 2 -acodec ac3 -ar 48000 -ab 256k -t ...
3
votes
1answer
2k views

apt-offline on Windows

Following this tutorial, I don't know how to reproduce step 2 on a windows machine: apt-offline get C:\apt-offline.sig --threads 5 How do I install apt-offline on a Windows machine so I can run ...
3
votes
2answers
2k views

How do I configure a linux machine to ignore wifi when connected via LAN?

My laptop is set to automatically connect to my campus wifi network, which is desirable under most circumstances. However, in my office, the signal is quite poor, so I rely on a wired connection. ...
3
votes
1answer
1k views

Run ssh/scp without .ssh directory or with alternate dir?

I'm inside chroot, and everytime I scp it keeps telling me: bash-4.2$ scp user@example.com:somefile . Could not create directory '/.ssh'. Host key verification failed. Obviously, I have no means ...
3
votes
2answers
162 views

Why I can access the dir // in Linux?

I found this dir in my ubuntu server momo@myubuntuserver:/$ cd / momo@myubuntuserver:/$ pwd / momo@myubuntuserver:/$ cd // momo@myubuntuserver://$ pwd // momo@myubuntuserver://$ cd /// ...
3
votes
2answers
673 views

SSH as Normal User --> SU --> SCP as Root

I'm on a Win7 box connecting to a linux server. From reading: http://winscp.net/eng/docs/faq_su it looks like I need to open my SCP connections as the particular user. When I connect via SSH, I can ...
3
votes
4answers
1k views

Redirecting shell command outputs to another konsole shell

I am writing a shell script and I would like to write commands in the script but redirect the output to other konsole sessions. (using kde)
3
votes
5answers
21k views

Linux Mint fails to start X automatically after update, but X still works

After some update and reboot, X fails to start. I don't get any errors or warnings from the console, after the last service has started, nothing happens. I can then switch to any terminal I'd like, ...
3
votes
1answer
296 views

Where is terminal scroll back information stored (how does tmpfs work)?

While trying to test something unconnected, I launched an infinite loop on my terminator terminal emulator which printed a lot of data to STDOUT. After running it for a few minutes, I noticed that my ...
3
votes
2answers
3k views

How to use iptables to connect proxy server

In my company, all http and https must connect to a proxy server, which means we must set proxy in our web browser. Our department has an internal network (192.168.0.xxx). I use a Linux server as ...
3
votes
3answers
62 views

Why do I need ./ for commands to run on Mountain Lion? [duplicate]

Possible Duplicate: What does “/” , “./”, “../” represent while giving path? Why do I need ./ for commands to run on Mountain Lion? For example, when using mysql I have to type in the ...
3
votes
4answers
2k views

How to replace a list of strings by another list

I have a file which has (many) strings I'd like to replace, so I thought about using a simple command like: sed 's/string1/string2/g' file1 > out However, there are too many strings for that ...
3
votes
1answer
10k views

Sharing Wifi-internet access via bluetooth

I'm on an extremely strict wireless network, which locks down one machine to one account. [Hotel wifi] Is there a way that I can share the Wifi connection with my android tablet via bluetooth? ...
3
votes
1answer
549 views

Keyboard-Shortcut to move windows around on multiscreen setup [duplicate]

Possible Duplicate: How to automagically move windows between monitors with one keystroke? I am looking for a way to move windows around on a multi-screen (usually dual screen) setup. So ...
3
votes
3answers
404 views

scp/sshfs on a remote 'not direct acessable' machine

Maybe the title must be changed but I have the following situation: I can ssh to a host A From A, I can ssh into a machine B, but this machine cannot be accessed from my computer. The name of the ...
3
votes
2answers
206 views

How should I create a folder that automatically links to a shared drive between Windows and Linux?

I'd like to set it up so that when I click on my 'My Pictures|Videos|Music...etc' folder it just redirects to my middle data drive. Likewise for my linux folders. How can I set this up? I'm sorry if ...
3
votes
3answers
13k views

Can't mount hard drive. Ubuntu 12.04

I am trying to recover some pictures on my 320 GB Hard Disk, so I put in a Live Ubuntu CD and am in that right now. In the devices list, it shows my USB drive, but not my 320 GB Hard Disk. I can see ...
3
votes
2answers
4k views

Linux startup script to connect to bluetooth and cron to keep it connected

I have a mini Bluetooth keyboard and a Raspberry Pi running a Debian-based distro. I know the MAC address of the keyboard but for this question, let’s just use AA:BB:CC:DD:EE:FF. Right now I have to ...
3
votes
0answers
2k views

Linux run script automatically after boot [duplicate]

I want to start a script, which set the system time automatically after booting. I wrote the command date -s "12/31/12 23:59" in rc.d/rc.local. That didn't work. How to solve that?
3
votes
1answer
11k views

How can I play games requiring DirectX in linux?

I am an avid gamer, I use Windows & Linux, I would like to play games in my Ubuntu machine which requires DirectX. How can I run the game which requires DirectX in Linux?
3
votes
1answer
2k views

Mail migration: pumping mails into IMAP account

I'm having troubles migrating the email system of our company from an old provider to a new one, call this one FOO. I already created, via control panel, the email addresses and the mailboxes on FOO ...
3
votes
1answer
176 views

Can Linux OS's cause a 'neighbour' NTFS partition to stop working?

I have set up Ubuntu 12.04 on one hard drive, and Windows 7 on another, the bootloader being on the former. After about a month of using solely Ubuntu, I tried to boot W7 and got a message on the ...
3
votes
1answer
1k views

How to use Control as modifier with xmodmap?

So I'm trying to create a combination of keys to generate ISO keys for the Portuguese layout, the key in question is the < >, pressing it will normally generate the < character, < > + Shift ...
3
votes
2answers
2k views

Failed to symbolic-link /boot/initrd.img-3.2.0-24-generic to initrd.img: File exists

Since running an upgrade today I am no longer able to use apt-get. Case in point: sudo apt-get install curl Reading package lists... Done Building dependency tree Reading state ...
3
votes
4answers
8k views

Gigabyte GA-970A-UD3 mobo won't boot from USB flash drive

I am trying to boot BAMT, a Linux distribution based on Debian via USB on a brand new Gigabyte GA-970A-UD3 motherboard. I tried various flash drive and various OS. I never had this problem with ASUS ...
3
votes
2answers
330 views

How to limit CPU and disk usage of rm to allow other programs to remain functional

When deleting a large file, rm seems to be hogging all the available CPU and disk resources so that other program are hanging. Is there a way to limit a programs - specifically a CPU or disk ...
3
votes
4answers
10k views

Copy entire website including PHP and SQL?

Is it possible when copying an entire website and template using wget (httrack or other program) to also get the PHP code and the SQL database? What software would I need to copy/mirror a site like ...
3
votes
4answers
4k views

Migrating Windows 7 to new hard drive/partition

So, I'be managed to migrate my Windows 7 data over from /dev/sdb3 to a new partition on /dev/sdc1 using ntfsclone. I managed to resize the volume size to match the new partition size. I also used ...
3
votes
2answers
5k views

How to download all of package's dependencies offline

I have a quagmire of a situation that would be so easily circumvented if even one factor could change...but I'm stuck with what I've got. I have a Windows laptop that I can bring to areas where wi-fi ...
3
votes
2answers
3k views

How can I get a content-listing of a 7z-archive under Linux?

This answer and this one suggest p7zip to work with 7zip-archives under Linux. I can see option for compressing and decompressing. But how can I get a content-listing of an archive, without ...
3
votes
1answer
966 views

Why are there weird commas in my /etc/passwd file?

There are weird commas after the real-name parameter of some lines in my /etc/passwd file. kye:x:1000:100:Kye,,,:/home/kye:/bin/bash What gives? Why are they there? Can I remove them?
3
votes
2answers
3k views

Can I access an ext4 Linux partition in Windows? [duplicate]

Possible Duplicates: How can I access a Linux partition from Windows? How to read EXT2 from Windows 7 64-bit? Does a ext4 reader for Windows exist? I am currently in Windows and was ...
3
votes
4answers
9k views

CHKDSK in Linux…?

My computer has taken a dive and it will not boot up. I have reasons to believe that it is the hard drive. I would like to run CHKDSK but I cannot get the computer to boot up into Windows. My ...
3
votes
2answers
81 views

Are packages within a Linux distro interchangable?

Are the packages interchangeable "within" Linux branches? Between branches? Where is the dividing line? For example, within the Fedora branch there are various Desktop Environments, each with their ...
3
votes
2answers
785 views

Shell script that starts a process, starts another process, then kills the first process

Let's imagine I have a client and a server on the same machine, and I'd like to script some interaction between them. I would really like a shell script to - Start server Put server in the ...
3
votes
1answer
840 views

How can I copy file recursively ignoring destination directory structure?

I have the following content on the source directory: source/foo.txt source/bar/another_file.txt source/bar2/and_another.txt I want copy those files to a destination directory which, after copy, ...
3
votes
1answer
1k views

Linux: multiple network connections - 3G/4G / Wifi / LAN / etc; how can i set a preferred network connection to use?

I've been looking at how I can setup a laptop that has multiple network interfaces, but a problem exists if all the connections are active, i.e. 3G, WiFi and LAN are all connected, I would like it to ...
3
votes
3answers
6k views

du vs df output

Why are there differences between the outputs of the df and du commands? Why they are not accurate in output? # df -h Filesystem Size Used Avail Use% Mounted on /dev/sda3 1012M 394M 567M 42% / ...
3
votes
2answers
2k views

Running FreeBSD binaries on Linux

In general, will binaries built on FreeBSD run on Linux operating systems, especially Ubuntu?
3
votes
2answers
1k views

3TB SATA hard drives into an old Linux system

I have a 3 year old PC with 4 internal SATA ports. My old SATA hard drives, all smaller than 2TB, work fine. If I buy a 3TB SATA hard drive, will it work in Linux? Will Linux with GRUB be able boot ...
3
votes
2answers
5k views

Can't install Google Chrome on Ubuntu 11.04

Yesterday I freshly installed Ubuntu 11.04 (Natty Narwhal) 32bit on my laptop but couldn't install Google Chrome on it. Google Chrome was working fine with my previous Ubuntu 10.04. While I tried to ...
3
votes
1answer
864 views

Midnight Commander search exclude?

In Midnight Commander, is it possible to exclude some directories/patterns/... when doing search? (M-?) I'm specifically interested in skipping the .hg subdirectory.
3
votes
4answers
4k views

How to close all background processes in unix?

I have something like: cd project && python manage.py runserver & cd utilities && ./coffee_auto_compiler.py And I want both of them to close on Ctrl-C (or some other command). ...
3
votes
4answers
3k views

Linux: aliases when using `screen`

I'm using screen, and I have several aliases in my ~/.bash_profile, for example python=python-2.6. But for some reasons these aliases don't work when I work in screen. How can I make them work?
3
votes
2answers
1k views

Downgrading linux

Is there any way to downgrade 10.10 to 10.04 without reinstalling linux ?
3
votes
2answers
3k views

How can I get an interface's bandwidth at any given second from the Linux command line?

I am doing a school project in which I want to get the bandwidth of a network interface at any given second, or some other small increment of time. I need this for a Perl script I am working on. ...