0
votes
0answers
7 views

Provide two arguments to one option

In below patch when I give option r then it needs one arguments. while getopts ":hr::l:" opt; do case $opt in r ) echo "Run Numbers - argument = $OPTARG " ;; l ) echo "Latency ...
0
votes
0answers
15 views

Piping bash string manipulation

I've read some other piping bash string manipulation questions but they seem to be specialized applications. Essentially, is there a way to do the below simpler? instead of $ string='hello world'; ...
0
votes
0answers
5 views

What is the functional difference between wpa_supplicant and the system's /etc/networks/interfaces file?

I understand that one is a program and that one is a configuration file used by linux, but practically what is the function of each of these pieces in conjunction with my computer's network ...
1
vote
0answers
14 views

What are the options for programming a toggle function with keys in Linux?

I recently purchased a backlit keyboard that requires Scroll Lock for toggling the lights. I quickly came into some issues that can be worked around with a few simple bash commands - See this thread. ...
-2
votes
1answer
22 views

Overwrote Windows bootloader with Mint: how to restore?

I have encountered serious problem while experimenting with Ubuntu/Mint. A few days ago I felt like trying Linux. I had Windows 7 installed on my SSD drive. Since I had one free HDD I decided to ...
1
vote
0answers
8 views

Why is the Scroll Lock key disabled in Cinnamon/Linux/Xorg?

I recently purchased a backlit keyboard that was designed such that the Scroll Lock key was used to toggle the back light. I quickly found that Cinnamon does not respond properly when the Scroll Lock ...
3
votes
1answer
26 views

How can I prevent disk I/O from taking over my CPU?

I run Debian Jessie on a quad-core i7 processor, which results in 8 cores being shown thanks to hyperthreading. On disk-heavy loads, all eight cores are maxed out with io-wait, as shown by htop. This ...
0
votes
1answer
9 views

Setting Up VPN Practice/Service Without Access to Private Internet

I use Lubuntu 14.04. I've gotten concerned about encrypting my internet traffic after reading about the problems with public WiFi and intend to start using VPN. However, all my internet usage is on ...
1
vote
0answers
12 views

chromium-browser processes' cmdline not available in full form

I am running Ubuntu 14.04, with 3.13.0-38-generic kernel on a MacBookPro11,2. (late 2013) I'm trying to get the process ids of all chromium-browser processes, a bit selectively such as only renderers ...
1
vote
1answer
26 views

grep: input file 'X' is also the output

I use ubuntu 14.4, and attempt to redirect the output of grep command to a file, but I keep getting this error: grep: input file 'X' is also the output I've searched for this issue and just found ...
1
vote
1answer
21 views

How to fix corrupted bash-completion in command substitution?

it seems my bash-completion got corrupted. Every time I try to use command substitution, for example when I type ls $(ls Deskto<Tab> ..result is.. ls $(ls Desktobash unexpected eof while ...
1
vote
0answers
6 views

Connect to IPsec VPN using OpenSwan

I'm connected to Internet with a simple ADSL router with NAT. I have a smartphone and a laptop running linux. I need to connect to a IPsec server using OpenSwan. First I tested that it is possible to ...
0
votes
2answers
63 views

Why should you not edit the .config kernel configuration file?

# Automatically generated file; DO NOT EDIT Is at the header of the kernel configuration file: /usr/src/linux/.config My question is why, why should you not edit this file? If I know exactly what I ...
2
votes
0answers
8 views

How can I properly QoS streaming services on OpenWRT

I'm going to start by explaining my naivete, I'm not sure, if netflix via a web browser uses the same protocol (http?) as netflix via a smart tv, for example. I'm using OpenWRT 14.07 currently, and am ...
2
votes
3answers
82 views

Write to stderr

I'm using stderred to color all output streamed to stderr red. It's working fine. But when I write my own bash script and throw an error with echo 'error' 1>&2, it doesn't color the output in ...
0
votes
1answer
9 views

Remote Xfce session in a separate console?

I have the following setups: A netbook with Xubuntu 14.04 and desktop PC with Debian 7. I can connect from netbook to desktop through SSH. I want to start a separate X server on netbook and host on ...
0
votes
1answer
15 views

Nslookup: command not found error on RHEL/CentOS 7

During linux installation I selected "minimal" option: When I went to run the nslookup command to look up an IP address I got the error message nslookup: command not found as shown in the example ...
1
vote
1answer
28 views

Insert missing string in multiple ordered columns

I have a multi-column file that looks like this: 6 93129B 177 306.98 350.20 8.84 0.23 -0.79 0.22 0.46 m 7 8 192 269.08 413.35 9.29 0.15 -0.81 ...
3
votes
1answer
165 views

Find a file where name starts with a capital letter

I'm trying to find all files for which there name starts with a capital letter. I have tried using the following command: find . -type f -regex '.*\/[A-Z][^/]*' It's finding paths with only ...
0
votes
1answer
15 views

How long should mkfs.fat take to format a 64GB microSDXC Card?

I am attempting to format a possibly-broken microSDXC card. I issued the following command: $ sudo mkdosfs -F 32 -v /dev/sdi1 The following output was generated immediately, and the command is ...
0
votes
2answers
45 views

Split XML file into multiple files

I have an xml file that have different nodes, I want to split files like this: <unix> <mm> </unix> <osx> <nn> </osx> When I run the script I want it to make ...
3
votes
2answers
73 views

Dash equivalent of self-redirection of script output

In Bash you can redirect all future stdout output of the currently running script. For example with this script, exec > >(logger -t my-awesome-script) echo 1 echo 2 echo 3 This will end up in ...
1
vote
2answers
16 views

Changed terminal permissions

For no known reason I suddenly have to execute most terminal commands using sudo. For example, I have always been able to run "git pull/push" etc. without any trouble. Now, I get "permission denied". ...
3
votes
1answer
273 views

It's bad to use ls -A to list hidden files?

I want to list every file, including hidden files, in the current directory. I don't want to include the parent (..) and current (.) directory. I found this: how to glob every hidden file except ...
-2
votes
0answers
17 views

How to replace KDE with Gnome 3 in Debian?

Currently I'm using KDE desktop in Debian 7. How can I replace it with Gnome 3?
0
votes
0answers
16 views

CentOS IPTABLES how to block connections from internet and other questions

I have a CentOS machine that I use in private LAN for development and as file server. I did the following setting to allow httpd, GlassFish, Samba and SSH. Chain INPUT (policy ACCEPT 0 packets, 0 ...
2
votes
0answers
11 views

About dev mapping of partitions

New Linux user. Today had bright idea of making a backup of two partitions on an sd card to another sd card already in use. Did this: shrunk partition on backup sd, thus creating unallocated space, ...
5
votes
1answer
50 views

Why different behaviour of trapping EXIT vs INT

Running bash 4.3 on Kubuntu Trusty 64 bit. Please see the following two files: trapping-int.sh #! /bin/bash trap "echo Exiting" INT cat </dev/urandom >/dev/null echo Hello trapping-exit.sh ...
6
votes
3answers
248 views

Is it possible to create an edited copy of a file without using up extra disk space?

If I have a large file, I can use ln to make make "copies" of it that don't use up extra disk space. But what if I don't want an exact copy of the file? Is there a way to create a new version of a ...
1
vote
0answers
12 views

How can I make a read-only Linux system (which uses unionfs) read/write for the duration of upgrades?

Assuming having an embedded linux application, and for protection against corruption from example abrupt power offs, you implement a read only system with union fs. But then, how is it possible to ...
1
vote
4answers
39 views

Mute system error message in a script file and display mine

I have created a simple script to move all the files with .sh suffix in the current working directory to a designated directory If there was no such file, the script should output only an error ...
-1
votes
1answer
16 views

How do I use export setu command [on hold]

What is the difference between export and export setu command? I have searched online these command (export setu) but it's not found.
-3
votes
0answers
24 views

is it possible to run a linux in recovery mode [on hold]

I would like to enter in a Debian Linux located in one micro SD card starting an update.zip in recovery mode I think it is possible by a switch_root. I don’t know what exactly does /sbin/init, are ...
2
votes
2answers
37 views

Use the same file link for both Linux and Windows

As in the title, is it even possible to do so? I mean, can I create a link on Linux and than make this link valid also on Windows? Use-case I have the folder /media/Data/DownloadedMusic on a NTFS ...
0
votes
0answers
13 views

Openwrt Arpwatch

Trying to follow this easy example http://www.techrapid.co.uk/openwrt/detect-arp-poisoning-network-arpwatch/ but I don't have the file /usr/lib/sendmail. I have ssmtp 2.64-4 installed.
1
vote
0answers
12 views

How can I make wlan0 show up automatically when I plug in my WiFi USB adapter?

Before I plug in the USB there is no wlan0: root@beaglebone:/mnt/etc/network# iwconfig lo no wireless extensions. eth0 no wireless extensions. usb0 no wireless extensions. ...
0
votes
0answers
11 views

Boot to windows installer from USB drive in GNU Grub

When I installed Backtrack 5 R3 I chose to dual boot, and it completely erased my BIOS and installed GNU Grub as the first thing that shows up when I boot up. The "Press escape for startup options" ...
1
vote
0answers
8 views

How do I direct my audio to a bluetooth device?

I have successfully paired my "headset" (actually its a speaker) with KDE. Now where can I go to tell it to send audio to the speaker. My multimedia settings don't seem to list the device as an ...
2
votes
1answer
67 views

Tool to give only the built linux source code

Linux is large complex piece of software. A running kernel in the system would not be using all the code. I'm looking for a tool which can give me the source code needed for the .config I used to ...
1
vote
1answer
18 views

tcpdump won't capture entire packet

I'm using sudo tcpdump -A -s0 -ien0 port 80 | grep schemas-microsoft >> ~/Downloads/convert.txt to capture microsoft-schema xmls being sent throught the internet, when tcpdump is supposed to ...
1
vote
1answer
39 views

Convert XML to SQL INSERT statements using the command line

Is there a way to convert XML to SQL INSERT using the command line, here is examples: <something> <somthingelse>lol</somethingelse> </something> would be INSERT INTO ...
0
votes
1answer
13 views

The linux console resolution seting didn't run

I use Gentoo/Linux. Because of some reasons, I want to set the resolution of the console. So I rewrite grub file. GRUB_GFXMODE=1366x768 GRUB_GFXPAFLOAD_LINUX=1366x768 But it isn't run.When I load ...
1
vote
1answer
14 views

Getting Current path in .desktop entry for ICON command

Im trying to make a .desktop file run a .sh which is stored in the same directory as the .desktop. The whole directory needs to be portable and moved from machine to machine. Now I can get the ...
0
votes
1answer
20 views

Manipulate lynx --dump output to get only specific sections

I'm trying to write a unit that will get me a word's definition from wordnik.com from CLI. Currently my code is: function wordnik { (( $+commands[lynx] )) || return 1 ...
2
votes
5answers
109 views

Stripping directory paths to get file names

What I am doing is converting mp3's with LAME. I already have an old script I wrote that works but I want to add to it this ability--to no longer delete the file but instead save it in a new root ...
1
vote
0answers
4 views

xim not working in Chromium

For a long while now, I have been happily using the xim IME (so that I may use XCompose freely). And I have never had an issue (though some applications which do not sanely handle unicode have crashed ...
-4
votes
0answers
14 views

best linux for low graphics(7872kb)? [on hold]

iam looking for best linux distibution for low graphics.,,.,.,.
0
votes
2answers
30 views

Start/stop service script like Ubuntu for RedHat

Is there a .sh script that manages starting and stopping the service like Debian/Ubuntu but for Red Hat/Fedora? Looking to place it into the file running some software.
1
vote
1answer
41 views

What are the advantages of GRUB over LILO?

Why is GRUB so much more popular than LILO? The only distribution that I can think of that uses LILO by default is Slackware Linux. All other distributions use GRUB. To this day I've never understood ...
1
vote
0answers
9 views

True vim-like behavior in Chromium

I have been struggling in the browser wars for years, and I think I have finally found an extension (chromium-vim) which allows me to switch away from Firefox (or more recently, palemoon) for good. ...

15 30 50 per page