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

0
votes
1answer
2k views

Watching a Samba share for modifications from Linux

I'm trying to monitor a remote Windows Share for changes (the server can be an actual Windows machine or a Linux machine with Samba server). AFAIK the SMB protocol supports a kind of event-based ...
2
votes
1answer
416 views

How can I rename all files setting 1.jpg, 2.jpg, etc?

It's been a long time that I don't do any shell scripting. I'm using Bash on a Ubuntu I've a folder with many jpg pictures with some random name generated by the camera. I want to rename all ...
1
vote
1answer
905 views

configuring huawei e303e dongle on arm9 embedded board

i have been trying to connect 3g modem on arm9 board. bot modem is not getting detected. here is my lsusb: Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID ...
1
vote
1answer
4k views

iptables rule for loopback interface lo

I want to test some network performance, where I need to use a tcp client to connect to a tcp server program on the same host, so I used localhost(127.0.0.1) however, when the TCP SYN is sent, it get ...
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 /// ...
0
votes
1answer
132 views

Where can I find an initial/default computer name per OS? [closed]

After installing the OS you get an initial/default computer name, i.e. for some Windows computers is something like "WIN-SJ32FF4". Does it always start with "WIN-"? What would it be for Linux? ...
1
vote
1answer
436 views

Executable not found although in PATH

My $PATH is set to a lot of directories including ~/bin and ~/target/bin I want to execute script.sh which is in ~/target/bin but I get the error bash: ~/bin/script.sh: No such file or directory ...
0
votes
2answers
184 views

.bash_profile wont run on login

I am trying to set up my computer so that the escape key performs the caps lock function and caps lock performs the escape key function. I have a small script to swap my escape and caps lock using ...
0
votes
1answer
80 views

What does gateway mean in linux route table?

Does it mean the next hop of the route? Can the gateway be the next next hop, if there is an internal router in the private network?
0
votes
1answer
161 views

Do all the scripts that are run in “rc.local” display results on the terminal or do they just run in the background?

Do all the scripts that are run in rc.local display results on the terminal or do they just run in the background? What if I want the scripts to run before the startup and wait for the user input to ...
0
votes
1answer
207 views

Write output to $TMPDIR/$variable : file does not exist (should be created)

I have the following .sh script in which I am trying to do all major writing in $TMPDIR. However, when it gets to line 86, it returns the following error: ...
11
votes
1answer
567 views

How do I give the OOM killer teeth again?

Back in the day I used to curse the OOM-killer for being over-aggressive and killing apps I was using. Now, as I periodically watch my system thrash for 15 minutes because of some ill-behaved program, ...
0
votes
1answer
937 views

SSMTP and PHP sending mail through different domainds(sub-domains)

I'm trying to set up SSMTP on my Raspberry PI(Raspbian Wheezy(Debian ARM port)) Model B, Right now I can send mail through the console just fine, actually getting the mail aswel. The problem is when ...
1
vote
1answer
410 views

Make Firefox open an URL or focus the window/tab if already loaded

Is there a way to make Firefox open a new window on a certain URL or raise the tab/window where that URL is already loaded? I would like to call Firefox with firefox --open-or-focus ...
2
votes
1answer
8k views

Using iw to add a virtual wireless interface, getting the error “No such device (-19)”

I am trying to add a virtual wireless interface to my debian squeeze system using iw. The output of iw list is shown below: root@alix:~# iw list Wiphy phy0 I am using the command: iw dev phy0 ...
2
votes
1answer
870 views

How do execute a bash alias in a new screen window?

In my .screenrc, I have several lines similar to the following: screen -t qf1 bash So for that window, I am currently executing bash. Instead, I would like to execute the following alias "qf" which ...
0
votes
1answer
798 views

Partition invisible on Windows, not on Linux

I have Windows 7 64b installed and recently also installed Ubuntu 12.04 Problem: 2 of 4 Partitions on the same harddrive are not visible in Windows. Here is some info: $ df -T Filesystem Type ...
1
vote
1answer
72 views

Mouse pointer missing in SSH windows

I have a problem with the mouse pointer when I use SSH to launch a remote window. I run ssh -CY somehost and then run some command that opens a new window. When the mouse pointer enters that new ...
1
vote
1answer
1k views

GPU usage and heat production in linux

I am using Fedora 18 in my laptop with Nvidia GT 630M graphics card. I am using dual boot with windows 7. In windows I am getting a battery backup of around 3 hr. But when I use Fedora, it reduces to ...
0
votes
1answer
577 views

config error: why sendmail concatenates domains?

trying send mail via sendmail forward to cf16r@wp.pl, my domain is dorotamama.eu. and I get following: May 6 17:55:47 myubuntu sm-mta[3856]: r46FrhNl003854: to=cf16r@wp.pl, delay=00:02:03, ...
0
votes
0answers
57 views

misterious collapse of Fedora 18 on a dual system

I've recently (about a month ago) installed Windows 7 and Fedora 18 as a dual system on my Dell Vostro laptop, and everything went well until my Fedora started shutting down out of a sudden, just like ...
3
votes
1answer
447 views

Gentoo based custom Live CD won't boot

I followed this guide for building a Gentoo based custom live CD but I didn't manage to preform a complete boot. The kernel boots from the initrd and start scanning modules. After that it states ...
3
votes
3answers
5k views

ArchLinux's Partition Suggestions

I'm trying to install ArchLinux and I've run into something extremely weird. Its guide suggests that you should create 2 partitions: ~15gb root partition Home partition [filling the rest of the ...
0
votes
1answer
103 views

Why my Grub 2 version is 1.99?

Pretty much like the title says. I'm using Kubuntu 12.04, and my installed grub packages are grub-pc and its various dependencies. The package description says GRand Unified Bootloader, version 2 ...
0
votes
1answer
303 views

Find, prune and delete files under Linux

find . -path '/mnt/ftp/ben/brc' -prune -o -iregex '.*\.\(docx\|xls\|txt\|pdf\|xlsm\|doc\|xlsx\|CVS\|csv\)$' -mtime +730 -delete I need all docx, xls, txt, xlms, doc files older than 2 years from ...
0
votes
1answer
56 views

Why does K3B (KDE disc burning program) always asks to install additional packages when it starts?

Every time that I start K3B I get a prompt that asks me to install additional packages, specifically some mp3 codecs. This seems strange, because once I have installed them once they should be ...
-5
votes
3answers
178 views

Shell script that reads a file and executes a command

I want to write a script which reads a file and executes a command for each row in the file. This command contains a variable for which we need to pass each row in the file. File has only one column ...
0
votes
1answer
301 views

How do I use tar to transfer through ssh on a non standard port?

I am trying to transfer all files from within a directory through tar as follows: tar cz * | ssh -p 57310 root@example.com tar xzv -C /home/site/www and the error that is returned is stdin: is not ...
2
votes
1answer
101 views

quick tail on a huge file on linux

I need to get the last 10 million lines of a 100 million lines file. tail -n 10000000 $in_file>$out_file however the above command took more than 1 day and is still going. I guess I can use the ...
1
vote
1answer
145 views

trouble shooting the connection between systems by using telnet?

I have a windowsystem called "A" and Linux system called"B" .Our application software is client -server software. So in this scenario server part of application is resding in a window system and ...
1
vote
1answer
44 views

Problems with locate

Wondering if someone can enlighten me as I believe that perhaps my expectations are wrong. When I use locate I almost never get what I am expecting. For example... I removed a software package and ran ...
1
vote
2answers
4k views

Mount USB Device in Debian

I'm using a Siduction (a Debian derivative) on a Lenovo x230 laptop which has a built-in SD drive, and I'm trying to mount it to get some pictures of off an SD card. I've also tried connecting the ...
1
vote
2answers
2k views

How to find out what port is Exim 4 using for SMTP?

I'm trying to debug a problem with email sending on my home machine, possibly a router related problem. This is on Debian squeeze with Exim 4.72-6+squeeze3 (the default Exim 4 Debian package for this ...
1
vote
0answers
39 views

Check which printer is online

I have one machine with Windows 7 - Ubuntu 12.04 dual boot, i installed and shared over the network my printer on every two operating systems, naming it printer-windows on w7 and printer-linux on ...
1
vote
2answers
22k views

telnet fails to connect: Connection closed by foreign host

I try to connect to localhost with telnet: % telnet localhost 6311 This connection succeed, but when I connect by external IP of my computer, connection fails: % telnet x.x.x.x 6311 Trying ...
1
vote
2answers
158 views

For cloud machine is it a good practice to reboot periodically?

As a desktop Windows user one often find better performance if one reboot it after using if for a long periold of time. Is it also the case for virtual machine in th cloud, like EC2, Azure, or VPS?
3
votes
3answers
679 views

Linux GUI Regular Expression File Renamer (with substitution)

I have folder with several hundred files named like this: 010203.txt I want to rearrange the file names so that last two digits are moved to the front like this: 030102.txt I want to avoid writing ...
2
votes
1answer
6k views

Samba share shows as available, but can't be accessed

I'm having problems getting Samba sharing working on a fairly stock version of Debian (technically Raspbian, but that's not all that different from Debian.) The Samba logs are giving me errors like ...
2
votes
1answer
407 views

Consequences of zeroing out a partition with dd

I have a partition called sdb1 formatted as ext4. The partition is currently mounted. If I do the following: dd if=/dev/zero of=/dev/sdb1 What are the consequences (beyond all data on the being ...
2
votes
1answer
2k views

What does the xfce4 power manager in the presentation mode

What exactly does the xfce4-power-manager if I press the button for presentation mode? Is it called X function? Or what else? Any ideas?
1
vote
3answers
2k views

How to incrementally backup a partition (not as a bunch of files) and be able to mount the snapshots?

Is there any tools that allows this use case: I have a LVM2 partition vg-vol; I periodically create snapshots of it, save them (create_new_snapshot --directory=/media/external_storage/snapshots/ ...
4
votes
1answer
3k views

Export putty settings (or sessions) from a linux to another linux

I've been searching the internet for an answer for this question but I found only answers for exporting from a windows to another (using regedit). Is it possible to export putty sessions from a linux ...
0
votes
2answers
118 views

Sending special bash characters to a custom function

I read this great article on customizing the bash prompt: http://blog.superuser.com/2011/09/21/customizing-your-bash-command-prompt/ I also read about using 256 colors in bash: ...
2
votes
2answers
58 views

In linux distros, except for a new kernel, what else could require a reboot?

The most common case is a new kernel as far as I know, but what are other cases that usually require a reboot, too?
0
votes
1answer
140 views

Google Music Manager doesn't displayed

How can I configure my Xmonad config that Google music manager is displayed? I cannot open the options window from the context menu. Has anybody any idea why it does not display?
2
votes
1answer
174 views

Manage multiple world files in gentoo linux for different machines

If a user selects a package to be installed gentoo adds it to /var/lib/portage/world. Hence it can be used to install the same software on many systems by copying this file and run # emerge -uDN world ...
0
votes
2answers
2k views

How do I disable indexing in a specific directory across multiple platforms?

I have some files that will be accessed across several platforms (Mac OS X and Windows 7 mainly, but I wouldn't rule out Linux in the future) and I do not want these files indexed by the search ...
0
votes
1answer
1k views

yaourt asking “please run yaourt as a non-privileged user”

This is a newbie question: why does yaourt in Arch Linux always warn you to "please run yaourt as a non-privileged user"? I am running the following: $ sudo yaourt <package-name> ... to ...
2
votes
2answers
253 views

On linux something is changing my backlight brightness. How to know what process it is?

I'm using Linux with a 3.9 kernel (BohdiLinux, but I'm looking for a distro (or at least desktop environment) agnostic answer). Something is periodically (or on some event, perhaps) reseting the ...
8
votes
6answers
771 views

In Bash (Mac/Linux terminal shell), can the up and down arrow keys be made to function as they do in text editors?

In text editors, if I press the up and down arrow keys, it moves the cursor between lines of text. In Bash, if I’m typing a long command that spans multiple lines and I press the up and down arrow ...