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

0
votes
1answer
51 views

Restart Firefox after crash fails

I'm using Firefox 31.0 on SuSE Linux Enterprise Desktop 11.2, launched from a terminal window. Every now and then Firefox crashes, which in itself isn't too big of an issue as Firefox saves the ...
0
votes
1answer
125 views

get current terminal display text from another terminal

I've started a job in a terminal that will print some data to the screen that I need. I know I should have used screen or told the terminal to log to a script but I did not. Also, I do not have the ...
0
votes
1answer
390 views

LINUX Bash - Recursively Create Intermediary Directories and Move Files of Type Into New Directories

I've used StackExchange before and lurked on SuperUser but first time posting. Here's what I'm trying to do. (Pseudo) For Each DIR containing $file *.Item Mkdir ./dir1/dir2 Mv $file ./dir1/...
0
votes
1answer
61 views

how to detect availability of GUI

For Linux: I have a text mode installation (bash) script and a graphical mode setup program (a Free Pascal binary). I'd like to run the graphical setup when a GUI is available. How do I detect which ...
0
votes
1answer
603 views

Erase and Partition Hard Drive in Linux Command Line

If I want to erase and partition a drive on my Mac I can use Disk Utility. From there I can erase the drive and select a format (FAT32, Mac OS Extended...) as well as partition the drive. I am ...
0
votes
1answer
67 views

Can I mount my local (OSX) directory to a remote linux host during my SSH session?

I spend a lot of time using SSH. While using Vagrant, I've found that having a shared folder between my local machine and the guest that I can access from the guest really makes life easier. Is ...
0
votes
1answer
55 views

DNS (BIND) Problems

I'm trying to get BIND (named) working, but am having some issues. named loads and everything, but when I do a dig -x 127.0.0.1 I get: ; <<>> DiG 9.9.4-rpz2.13269.14-P2 <<>&...
0
votes
1answer
26 views

How can I prnt scrn to USB drive in bash linux

During early stages of installing linux, when in the bash terminal is it possible to screen capture and save the output to a mounted USB drive?
0
votes
1answer
39 views

Is there any difference in the view of process & sub process between command “/bin/sh -c ls /” and sh temp.sh(containing one line ls / only)?

What is the difference between the above ways of executing command and the code below? #include int main ( ) { int return_value; return_value = system ( "ls /" ); return return_value; }
0
votes
1answer
554 views

How to use openvpn daemon with authentication token

we recently started using openvpn in production environment. We also use several kinds of OS here (Mac, Linux and Win). I would like to talk about linux. Those who have access also have tokens from ...
0
votes
1answer
292 views

How to start GUI application with upstart?

I have struggled with this problem for three days and I have tried many ways to solve it but not successful yet. I hope you guys can help me... I have an GUI application. I want to start this ...
0
votes
1answer
211 views

iptables does not seem to be applying SNAT to packets sent on a raw socket

I'm writing packets from a user space program to my wireless interface wlan0. I've set up a SNAT rule with iptables as follows iptables -t nat -A POSTROUTING -o wlan0 -j SNAT --to 192.168.1.3 And ...
0
votes
1answer
1k views

Forwarding internet using a raspberry pi (eth0 and eth1)

So I have my raspberry pi connected to the internet via my iPhone (tethering via USB), and it all works fine, the connection is setup on eth1. The problem I have is I cannot manage to forward my ...
0
votes
1answer
49 views

I lost my Ubuntu Partition

I have two operating systems installed on my computer, Ubuntu and Windows 7. I reinstalled Windows 7 today and I think have a problem with the Ubuntu partition. Running fdisk -l when booted into a ...
0
votes
1answer
14 views

How to use aliases for catalogs for file creation navigation

if I have some aliases like Catalog1 (/home/ed/1), Catalog2 (/home/ed/2) I have scripts in Catalog1, and Catalog2 is for output saving, f.e. : python /home/ed/1/one.py > /home/ed/2/log1.txt i ...
0
votes
1answer
225 views

Internal hard drive is dying. Is this the right procedure to recover data (with ddrescue)?

As the title says my hard drive is supposedly dying. Two days ago, I powered on my Windows laptop after a week of not using it. After being on it for an hour with no particular problems, I got a BSOD. ...
0
votes
1answer
113 views

how to find all files under directory different directories

How can you find files name 'xyz' under directories name 'abc'? something like this....but its not working. find . -type d -name 'abc' -exec find {} -type f -name 'xyz' \; find . -not -path 'abc' -...
0
votes
1answer
268 views

Linux Mint 17, PBIS 8.01 No sound on AD Logon

When I login with a local account I have sound, but when I authenticated to AD I get the software rendering mode message and I do not have sound. I don’t believe to be a hardware problem since it is ...
0
votes
1answer
472 views

How do I capture what I see in tail?

Tail seems to parse TTY commands. When commands use ^M to erase the line & redraw the line in stdout, for example an animated ASCII progress bar. When I tail a file where this is happening, I see ...
0
votes
1answer
148 views

setting of grub for two linux distributions installed to two separate harddisk

(I am aware I may be duplicating post, but no sure where should I ask my quesiton) I installed a second harddisk to my laptop so that I can test on new linux distribution without trashing my working ...
0
votes
1answer
346 views

How do I find out the duplex mode / speed of an ethernet interface under Linux?

I want to find out the duplex mode / speed of an etherenet interface or a bridge interface. And I want to change them also. I can not use tools like ethtool or mii because my system does not have a ...
0
votes
1answer
1k views

wget index.php redirection - The name is too long

I am trying to get a copy of the catalog. I would love to get the "List View" and "Show Object" details. The URL I am tring to wget is: http://catalog.quittenbaum.de/index.php?_function=list_objects&...
0
votes
1answer
669 views

Something is creating inodes on my VPS Linux Server

Please help, my server keeps exceeding the limit of iNodes (750,000). I'm not sure how these are being created. I do have multiple development sites on the server but it had never been a problem ...
0
votes
1answer
128 views

grub rescue moved folder out of root

I made a really silly sudo mv /* /some_folder move command on my remote server vm ubuntu 12.04 that moved my boot folder to /home/.../somefolder/boot I can access this folder via a ...
0
votes
1answer
491 views

insert complex line in html file from the command line/bash script

I use a bash script to add a javascript file to a directory, but after that I need to insert into the index.html this line at between line 30 and 31. <script type="text/javascript\" src="./js/...
0
votes
1answer
44 views

Automatic system for os image creation/recovery

I will be doing some laptop cleaning with full disk format and os reinstal of Win7. And I thought about creating sepereate linux partition for os partition image. I know that It can be easily done ...
0
votes
1answer
277 views

My USB pendrive always goes read-only, what can I do?

I have a transcend 16 Gb usb pendrive. I save my daily works to it. I wrote a bash script to copy the contents of my working directories to the pendrive. The bash script contains only "cp" and "mkdir" ...
0
votes
1answer
168 views

tc packetloss cgi script via webpage throws AH01215: Illegal “loss percent”

Using the following tutorial to run CGI commands, and after fixing a small issue executing sudo /sbin/tc qdisc add dev eth0 root netem loss 1% returns an error AH01215: Illegal "loss percent" (at ...
0
votes
1answer
160 views

Mavericks startup script

I am trying to write a small script to launch when user logs on. I have searched and got the script to work but unable to run at log on with .plist We have active directory setup. When the user logs ...
0
votes
1answer
551 views

ssh authorized_keys permission denied only until file is listed/stat'ed - VERY STRANGE

Ubuntu 14.04LTS running openssh. I'm getting a Permission denied (public key) when I try to ssh in using my public key. /var/log/auth.log shows "Could not open authorized keys '/home/wolfgeek/.ssh/...
0
votes
1answer
27 views

Run PHP at specific time - oneliner

I'm trying to run some code that sends an SMS at a specific time in the future. All on one line... Here's my command line command: php -r 'include_once("/home/eamorr/open/open.ie/www/newsite/ajax/...
0
votes
1answer
244 views

Btsync: only three of five shares synced

I try to sync 5 shares from a Win7 computer to a linux box. The Linux box is configured by the following config. I experimented quite a bit with the settings but I only can get 3 of five shares synced....
0
votes
1answer
37 views

Using su with screen

When I am under one of my user-names, I can fire off, say, screen -S -p 0 -X eval 'stuff "say command"\015'. However, I cannot su username screen -S -p 0 -X eval 'stuff "say command"\015'; it ...
0
votes
1answer
620 views

grep: Invalid back reference for date expression in tcsh

I googled for the following error, and didn't get any great explanations as to what was going on with grep under tcsh. (Yes, that date expression exists in the log files). $ grep '2014-07-21' *.log ...
0
votes
1answer
96 views

Autostart multiple apache2 instances on start up

I have an OpenSUSE 13.1 installation, on which I am running multiple instances of apache under a proxy instance of apache. Currently I can start the proxy instance of apache and its MySQL database on ...
0
votes
1answer
1k views

Extending LVM partition on Virtualbox/Ubuntu

I stupidly created a dynamic disk when I created a VM. The disk has been converted to Fixed and the size upped to 20GB. I booted into a GParted live CD and extended the partition up to the maximum. ...
0
votes
1answer
329 views

How to send a BREAK on a serial port from command line in Raspbian Linux?

I am looking for a way to send a serial BREAK from a shell script in the Debian Linux that comes default on a Raspberry PI without needing any additional software to be downloaded or compiled. ...
0
votes
1answer
257 views

Small bootable package to enable ssh client?

I've been trying to find the smallest possible package to put on a cd/thumbdrive that will allow me to use an ssh client on a wired networked computer. I'm talking about really barebones stuff, no ...
0
votes
1answer
131 views

stop all child processes when 1 of then returned exit code 1

I have 2 or more build processes to run in background. I want to stop all the build processes if one of them exit with code other than 0. ./build-1.sh & ./build-2.sh & ./build-3.sh & wait ...
0
votes
1answer
209 views

Bash prompt command being overwritten when invoking history/deleting command

My Bash prompt clears itself when deleting the text after it or going too far in the history. When logging in, the prompt looks normal. There are white brackets around a colored username and then a ...
0
votes
1answer
686 views

CentOS 7.x iptables

I have manually edited the /etc/sysconfig/iptables file in my CentOs 7.x installation , I have two entries and two processes running at the respective ports. I am able to telnet/access port 2181 but ...
0
votes
1answer
342 views

ubuntu on chroot apt-get update fail - Unable to parse package

When I chroot under Ubuntu 12.04 and run apt-get update in my chroot home, I get: 100% [21 Translation-en gzip 0 B] [22 Translation-en bzip2 3E: Unable to parse package file /var/lib/apt/lists/...
0
votes
1answer
422 views

I am not able to send post request properly with 'curl' command

I am very new to django programming.After reading some basic curl command, I am sent the following post request to python server using curl curl --data "system_uuid=b28964bf-3e9e-47d7-af5e-...
0
votes
1answer
107 views

How can I link two network interfaces under linux?

Okay, here goes. I am running linux kernel 3.0.35 on an armv7 processor, and I don't have a C compiler or GNU make. Therefore, apart from other GNU tools and standalone ARM binaries, I have few ...
0
votes
1answer
138 views

Make newly created or uploaded (via ftp) files belongs to a group by default

Each time you create a file or upload it via FTP, considering your user is "myuser", it's chwon would be "myuser" for user and "myuser" for group. So you have to manually execute chown command to ...
0
votes
1answer
1k views

Ubuntu can't be booted from DVD drive?

I bought a Lenovo Ideapad G50-70 (with pre-installed Windows 8.1) lately. Thinking of dual-boot, I downloaded the Ubuntu LiveCD, and created a bootable disc. Later, I restarted the PC (with my CD ...
0
votes
1answer
571 views

squid proxy slow response

We are using the squid proxy in our setup and implemented as transparent proxy with user authentication. Before couple of days, while we are trying to setup the iptables the squid started performing ...
0
votes
1answer
406 views

How to update PHP and MySQL in SUSE LINUX Release 11.2

I have in a server SUSE LINUX Release 11.2, with PHP Version 5.2.17 and phpMyAdmin 3.3.9, How can I do for update the two elements, I tried with: sudo apt-get update php5 but dont works, says: ...
0
votes
1answer
273 views

Linux does not recognize my new laptop battery

Hi there I just bought a new laptop battery for my acer 3820tg, connected it but looks like my Linux Mint 17 can not recognize it. Battery led on laptop is blinking by orange color and acpi command ...
0
votes
1answer
383 views

Scroll bar in xgterm?

Does anyone know how to add or activate a scroll feature in xgterm? It is a bit obnoxious to not be able to scroll around the rest of the terminal.