1
vote
0answers
5 views

Is there anything with having locked drives in the BIOS that Linux can't handle?

I have a sata disk which is not part of the available pool of disks I set in the BIOS (dmidecode --type 0 confirms AMI 1403 - 09/10/2009 - on Asus) when I boot. Therefore the disk is online but ...
1
vote
0answers
4 views

Use a Linux directory as a USB-OTG device to an Android phone?

I have a really strange idea and I was wondering if I could do it. Many Android custom recoveries allow placing backups in both the internal storage, the external (ie: microSD) storage, and ...
1
vote
1answer
16 views

change the order of executables started in bash

If I execute the test command in bash, test(evaluates conditional expression) built-in utility is started: $ type test test is a shell builtin $ type -a test test is a shell builtin test is ...
1
vote
1answer
10 views

Check for plugged in network cable on startup

I actually wanted to post the below as an answer to this question. But am not sure if this is right approach or it's a way of screwing up things badly. We can actually check if the network cable is ...
3
votes
1answer
17 views

ifup eth0 timeout during boot

I need to start eth0 network interface during boot, but only if cable is plugged in. I have following in my /etc/network/interfaces auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp ...
2
votes
4answers
49 views

how can we use `awk` to get multiple words after a significant word?

I want to connect to my DB only once to do multiple SELECT queries as follows: #!/bin/bash #Begin Code query=$(echo "SELECT COUNT(*) from USER_IPTable; SELECT User from USER_IPTable; ...
1
vote
1answer
20 views

Changing user to root when connected to a linux server and copying files

My script is coded in a way that doesn't allow you to connect to a server directly by root. This code basically copies files a server to my computer and it works but I don't have access to many files ...
0
votes
3answers
30 views

Telnet on Linux Server

I want to know if it is necessary to have telnet enabled on both sides of machines to get telnet connection. Here's the issue: I am trying to telnet some public IP on port 80 from a Linux web server ...
1
vote
1answer
8 views

br0 causes to drop multicast connection after 5 minutes

I have these interfaces set up on the router (Linux machine): br0: flags=4419<UP,BROADCAST,RUNNING,PROMISC,MULTICAST> mtu 1500 inet 192.168.0.3 netmask 255.255.255.0 broadcast ...
-8
votes
1answer
34 views

I need a certain script [on hold]

Ok lets say I have a list of servers in a text document going user:pass:Ip, I need a script that will log into those servers and execute a command. So for instance ./Script servers.txt where ...
1
vote
0answers
8 views

NetBSD: /etc/man.conf search path does not work

I've added a new man page directory /usr/local/share/man/man1b which contains files like e.g. troff.1b In /etc/man.conf I added _subdir ...some names... man1b _default ...
0
votes
0answers
7 views

Imitate network device receiving

I'm writing tunnelling driver and I can't to get virtual network device to imitate packet receiving. I have searching for this but still cant get it working. I use Linux kernel v3.11. I have setup in ...
1
vote
0answers
6 views

Synchronize KDE4 Hotkeys

how can I synchronize my personally defined KDE4 Hotkeys between different computers? I would like to check in a file in git, as I do it with .bashrc and other configuration files. I found ...
3
votes
1answer
39 views

Is it possible to view a package information from terminal before installing it?

I was wondering if it was possible to check information about a package before installing it without needing to open a web browser to look for it there. For example, say I type in ~$ asdf Then I ...
0
votes
0answers
7 views

E1000 Hardware loopback mode for custom driver

The e1000 (82541) has an internal loopback feature. What's not clear from the Intel SDM is when this is enabled does it just test itself and then reset, or do all packets sent route back to the ...
3
votes
2answers
89 views

How to count how many shell/terminals are running?

I´m trying to count how many shell or terminal windows are currently running. I tried ps a|grep bash; ps a|grep tty; But it can be inaccurate.
0
votes
1answer
55 views

Switch users with sudo or su in a shell script

I inherited this. Long story short I have an XML file that is calling a shell to run some commands. Everything I have tried has failed at the second su in the script. Here are some of the failure ...
0
votes
0answers
44 views

IP Address not reachable [on hold]

I have a problem with calling the command ifconfig / ip addr show Background: I have a Typo 3 installation using kernel 2.6.32 on a Virtual Machine (VMWare). It worked fine until last Sunday. On ...
1
vote
2answers
21 views

Add new packages to repository server

I'm using CentOS I've built a repository and put packages on it ,testing from another server and all things are fine. When I added new packages on repository and execute: $ createrepo -v ...
0
votes
0answers
7 views

Locate encfs rootdir

If a rootdir is mounted by encfs to a mount point, I can see the mount point by "mount" command or from the /proc/mounts. However, if I can get the mount point, but I don't know which rootdir I have ...
3
votes
0answers
16 views

POSIX usage standards for requiring at least one optional arg

So, I'm writing a CLI for an API, and I ran into a point where one of the commands support has two optional arguments, id and fields I want to know how to show that these arguments are optional, BUT, ...
0
votes
0answers
5 views

Proxy from OSX laptop to debian server for web browsing

I want to setup a proxy from my OSX laptop (10.9) to a debian server via SSH, to browse the net via that server. The debian server has an openssh-server running, and I can login. I tried several ...
1
vote
0answers
7 views

Open old Kde Wallet/KWallet

Recently I replaced the hard drive on a laptop with an SSD. I recycled the old drive as a backup drive. I have the old home folders of my setup and nothing else. I have discovered that I am missing ...
1
vote
1answer
29 views

Need help to combine 3 split lines of bash script into one single line

The following is what I found after googling: dpkg --list 'linux-image-*' \ | perl -ane 'BEGIN { $r = `uname -r` or die; chomp $r } print $F[1], "\n" if $F[0] eq "ii" && $F[1] !~ ...
1
vote
0answers
8 views

Apache server: permission and symbolic link problem

I am using CentOS(Linux 2.6.32-431.11.2.el6.x86_64). I am trying to create an Apache2.2.15 web server. Every thing configured very well. My DocumentRoot is the default location i.e. /var/www/html. I ...
0
votes
0answers
5 views

Spamassassin blacklist_subject not translating UTF8 characters

I am using spamassassin version 3.3.1 in conjunction with amavisd on Centos 6.5 64bit. It appears that when I use the whitelist subject plugin (actually using it to blacklist subjects, ie ...
0
votes
1answer
23 views

How can i change the default partition?

I've just got this CentOS Server but i think i've set it up wrong as i can only upload a few GB then i start getting errors, It should have ~1TB. this is the results of lsblk [root@ns4005990 ~]# ...
3
votes
2answers
47 views

How can I get the first column of a 300GB txt file?

let me first explain my problem in detail. It's actually pretty simple. I have a huge .txt file, 300GB to be more preciese, and I would like to put all the distinct strings from the first column, that ...
0
votes
3answers
34 views

How do I create this symbolic link in Unix?

I want to run gmake when I run make, so I am creating a symbolic link. My gmake is inside /usr/local/dist. My make is inisde /usr/ccs/bin. Is this the correct command: ln -s /usr/local/dist/gmake ...
0
votes
1answer
14 views

How to execute grep in tcl for getting XYZ-123 type pattern

can I execute this grep command in TCL? grep '[A-Z][A-Z][A-Z]\-[0-9][0-9][0-9]' file1 > file2
2
votes
1answer
24 views

Can renaming a network device cause race conditions?

Arch uses predictable network interface names. MATLAB licenses are linked to the MAC address of eth0, so I need to rename one of my devices eth0. In a machines with only one NIC I can just turn off ...
0
votes
0answers
24 views

dhcp: way to check the online status of the device

On Linux there is the file /var/lib/dhcp/dhcpd.leases. I need to determine, for the devices for which information contained in this file, whether the device is online at a given moment. Is there any ...
1
vote
0answers
15 views

Changing sound chip with ALSA

I have a laptop with Intel audio card that lspci reports as 00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 04) It is responsible ...
2
votes
1answer
45 views

How to add existing normal partition into LVM in Linux?

I'm having a partition in Linux with some data, I want to add this partition into LVM, which is already running in the same system. What will be the step to do so?
1
vote
1answer
19 views

List of files accessed by application

I want to install propertiary AMD driver but I would also like to know which files were created/changed by installer. Is there some application which can observe (probably by inotify) which files were ...
0
votes
0answers
14 views

Linux mint parse error

I try too much method but still don't work. W: Failed to fetch gzip:/var/lib/apt/lists/partial/linux-mint.froonix.org_dists_olivia_main_binary-amd64_Packages Hash Sum mismatch W: Failed to fetch ...
1
vote
0answers
12 views

Internal microphone not working.. again (Fedora 20, KDE, HP 8460p)

Unfortunately I have yet another "adventure" with my internal microphone. Everything is un-muted in alsamixer, as well as in pavucontrol. It is not the first time it stopped working, but now - for ...
2
votes
0answers
17 views

Problems uploading a file via WebDAV?

I've configured on my Linux server (SLES11) with IHS Webserver with WebDAV enabled. A file upload via curl is successful using a URL like this: $ curl --insecure --upload-file testfile.txt \ ...
0
votes
0answers
10 views

Linux Mint (XFCE) on Acer Veriton - using one monitor, Mint thinks I have two?

I've installed a fresh version of Linux Mint 16 (XFCE) on an Acer Veriton desktop. It seems to work correctly, however, I have a "display within a display". I.e. I have a full screen display, with ...
1
vote
0answers
7 views

Changed to Nvidia xorg driver - now I have less temperature sensors?

I've just installed Debian Wheezy 7.5 on a Toshiba Satellite P100 laptop. By default, X was using the nouveau graphics driver. While this was still installed, I was getting 6 different temperature ...
1
vote
0answers
23 views

Slow sudo because of socket connections

Some time ago sudo started to behave very slow on our server. Some times we have to wait even a few minutes until it executes. I've checked all hostname and dns causes that forums all full of, but ...
1
vote
3answers
51 views

How to get data under or above a line

This is my file: print energy 1 end Local net energy (PE 0) = 1.635393034217E+05 kJ/mol Global net ELEC energy = 1.635393034217E+05 kJ/mol print energy 2 end Local net energy (PE 0) = ...
1
vote
1answer
19 views

Using `tac` on zipped files

tac unzipped.log | grep -m1 pattern works perfectly fine but I am not able to use the tac command on zipped files. tac zipped.gz | zgrep -m1 pattern returns nothing. Is there anyway to use tac ...
1
vote
3answers
133 views

How to capture error message from executed command?

I was tasked to create an automated server hardening script and one thing that they need is a report of all the output of each command executed. I want to store the error message inside a string and ...
1
vote
3answers
20 views

Merging multiple tab-delimited tables based on common columns

I am new to the field and I want to compare and merge 500 hundred tab-delimited files, each with two columns ("Position" and "Poly"). Examples of file1, and file2 (and other files) and the final ...
-4
votes
0answers
32 views

How Often Do You Power Down Your Linux System? [on hold]

How often do you actually shut down your Linux desktops/laptops (servers excluded for the obvious reason)? Do you power down when you’re not using it, every evening when you are done, or never – ...
0
votes
2answers
18 views

UEFI - Linux Mint Boot from USB Doesn't work

I'm running Linux Mint (only OS other than in VirtualBox) and wanting to remove it. I've created a Live USB of Windows 8 using Windows 7 USB/DVD Download Tool - Yes, I know it says Windows 7 but I've ...
1
vote
0answers
12 views

CPU usage by kernel modules, routing and forwarding rules

I have a system with a loopback kernel module installed. Through a bunch of routing and iptable rules, packets coming out of the loopback interface are sent over an ipsec tunnel. I am seeing that ...
1
vote
3answers
72 views

Case-insensitive substring search in a shell script [on hold]

I'm trying to create a script which runs a command and compares the output of that command to a certain string to see if it contains that substring, ignoring the case of the string needed to be ...
2
votes
2answers
39 views

how to show total files size in a folder by filtering extension without showing each file size

du -hc *zip shows me total size of zip files in a folder, but it shows also every single file size of the folder. I only need total size. Is there way to show the total size of a folder without ...

15 30 50 per page