All Questions
0
votes
0answers
1 views
Can't get grub to boot windows 7 partition. “error: invalid EFI file path”
I have an "HP pavilion 7008tx dv7" laptop. It came bundled with Windows 7 and has two 1TB HHD and an 32G SSD.
Here is the output form "parted -l":
Model: ATA TOSHIBA MQ01ABD1 (scsi)
Disk ...
0
votes
0answers
9 views
How can I workaround or fix a printer offset x0y?
OK, so I have an old office reject printer, the OKI B4350.
Works great with CUPS and Evince except for one thing: often it prints the page all messed up: offset from the upper left corner and ...
2
votes
1answer
27 views
How to set-up a Gnu/Linux distro for kids?
I will have to repair a computer, which will be used by kids (9-12 years).
This computer had Vista, but I will install a Gnu/Linux distro, for security/pedagogic reasons.
I just come here to ask if ...
1
vote
0answers
12 views
Behavior of ALT in Qt5 applications
I work in Arch Linux 64bit with both English and Hebrew keyboard layouts available, using Alt+Shift to change between them.
I recently noticed that when I work in Texmaker, which is a Qt5 ...
1
vote
1answer
16 views
Remove control characters from /var/log/boot.log
I have a script that sends out email to sysadmin group when a server is powered on or off. The email contains dump of some important logs like /var/log/messages, /var/log/secure, /var/log/boot.log . ...
0
votes
0answers
10 views
Opening Nautilus without --no-desktop, on Xmonad on top of Ubuntu, what happens?
I have a standard Ubuntu install with an Xmonad install on top of it [1].
Now, when I run nautilus from the command line a view unexpected things happen. While Nautilus does appear, there is now also ...
4
votes
2answers
40 views
Can I simulate mouse movements via terminal without xdotool?
I would like to write a script to prevent a computer from locking by virtually wiggling the mouse. However, I do not have xdotool on the computer that I am using, and I cannot install since I am not ...
5
votes
1answer
54 views
Provide two arguments to one option using getopts
In below code when I give option r then getopts requires one arguments:
while getopts ":hr::l:" opt; do
case $opt in
r ) echo "Run Numbers - argument = $OPTARG " ;;
l ) echo ...
5
votes
2answers
81 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
8 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
18 views
How can I use the scroll lock key to toggle the back light on my keyboard?
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.
...
-1
votes
1answer
31 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
1answer
14 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
32 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
2answers
10 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
14 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
28 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
23 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
7 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
9 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
92 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
11 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 ...
5
votes
1answer
222 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
46 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
77 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
17 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
274 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
17 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
13 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
251 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
25 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
14 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
13 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
15 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
14 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
15 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 ...