0
votes
1answer
132 views

How to disable anti-aliasing in git-gui and gitk

After an upgrade to Tcl/Tk 8.5, git-gui and gitk are using anti-aliased fonts which look ugly on my display. I can select different fonts in the preferences dialog, but the fonts I was using before (...
5
votes
1answer
2k views

Automatically run rfkill unblock on startup

I'm running Elementary OS on an old(er) HP Pavilion dm1. Unfortunately, on startup my wireless is hard disabled, and I need to run sudo rfkill unblock all to get it up and running. Works fine once I ...
0
votes
1answer
353 views

apply bash function to parent scope

I can to define function in bash and use it: foo() { echo $1; } foo test But if I want to collect my functions in one bash script all its unavailable: init.bash #!/bin/bash foo() { echo $1; } ...
0
votes
2answers
811 views

New Debian installation hanged

I installed a new copy of Debian on my laptop and upgraded it from testing repo. However, when I turn on my laptop, the system stops working. This error that I found in my logs is new for me and I can'...
1
vote
1answer
41 views

Limiting readers on a pipe

I want to use a pipe to pass some security credential information from "process1" to another script. I only want authorized reader processes to be permitted to read the pipe. I am thinking I will ...
3
votes
2answers
3k views

Automating backups run from a bash script in Linux the right way

I have a bash script I wrote to backup a Moodle installation. It works fine, I've tested the backups, but there's a problem with it; when I do the backups, since I have to use sudo to type the ...
2
votes
2answers
2k views

Automagically upgrade Ubuntu 10.10 32bit to 12.10 64bit

I'm looking for a little advice, I would like to do an upgrade preferably through the update manager from my current 10.10 32bit Ubuntu Box, to 12.04 64bit, can anyone think of anyway I could do this ...
0
votes
1answer
548 views

Trying to pass user generated variable to an external command

I have a bash script that is asking a user for input, then passes that variable to a find command. I've tried quoting/escaping the variable every way I know, but it keeps failing. read -p "Please ...
0
votes
1answer
485 views

Samba not working

I'm trying to follow this guide: http://www.sitepoint.com/ubuntu-12-04-lts-precise-pangolin-file-sharing-with-samba but I'm sure there are many of them. I've had problems with Samba before. In fact ...
1
vote
2answers
1k views

Allow remote MySQL to a specific IP - using CentOS 6.4 [closed]

I've spent a day now trying to find out how to allow remote MySQL to work for my other virtual server. This is proving very difficult so I'm hoping you guys could help me out ;( I've used the ...
0
votes
2answers
66 views

How can I cp different files to an alias that is changing

I would like to be able to replace cp x.x ~/some/long/directory/that/is/deeply/nested/ with cp x.x s1 where s1 is an alias that points to /some/long/directory/that/is/deeply/nested/ However the ...
1
vote
1answer
1k views

How to get source code of running Fedora linux?

This is the first time I am working on Fedora. I will be writing some device drivers. I understand that for proper compilation of the driver I must have the same source code as that of the running ...
3
votes
3answers
534 views

Linux, resolv.conf — adding MSDNS and Bind DNS nameservers where MSDNS isn't recursive?

How to resolve from a non-recursive MSDNS and if not found resolve from googleDNS (recursive)? ## resolv.conf ## nameserver 192.168.10.1 # msdns, non-recursive nameserevr 8.8.8.8 # googleDNS,...
0
votes
1answer
2k views

How to map Unix Directories to Windows Server

I have a Windows Server 2008 R2 machine and an AIX 6.1 server. Now I would like to map 2 AIX folders to Windows for an application to access - The application on Windows is IBM Connect:Direct and ...
2
votes
1answer
668 views

Nvidia HDMI audio not visible on system

I recently installed Arch Linux on my pc. I'm using a Nvidia GTX 660 Ti connected to a receiver over HDMI. I can't get audio to work over this HDMI connection. Next to my video card I have an onboard ...
9
votes
2answers
10k views

qtconfig tool for Qt 5?

I've just installed QT 5 in Arch Linux, but only qtconfig doesn't work: %> qtconfig qtconfig: could not exec '/usr/lib/qt/bin/qtconfig': No such file or directory Yes, there's no such file, not ...
-1
votes
2answers
2k views

what does getline do inside awk?

I have this following awk script that takes the following input file, input.txt and produces the output below. Can someone please take the time to break down how this awk script works? I've spent a ...
1
vote
1answer
2k views

openSuse /etc/profile.local file does not exist

I am referring to the following URL Setting the JAVA_HOME I am interested in the last solution given by Nils, that edit the /etc/profile.local file, this will set it for all the users. The question ...
0
votes
1answer
195 views

Limit log sizes in particual ufw's logs

(Ubuntu 14.04 x86) I have enabled ufw and enabled logging (level low - the default). Even on low there is an entry about every second (it is accessible from the Internet - I guess just port scans ...
2
votes
1answer
2k views

Why do I need GRUB_DISABLE_LINUX_UUID=true

I just switched from lilo to grub2 and my first attempt failed with kernel panic - not syncing vfs unable to mount root fs on unknown block(0 0). It turned out that the problem was that the root ...
3
votes
1answer
671 views

Slow down CPU when it heats up

I run Gentoo Linux on my laptop. I have an issue, though, where if I'm building some very large piece of software (as I do fairly frequently, since the purpose of this laptop is development), the CPU ...
1
vote
2answers
109 views

remove files after insertion into tarball

I want to limit the number of files that get put into a tar ball and erease them after they've been inserted into the tarball and being indipendent from the current directory. I've tried this: tar -C ~...
4
votes
1answer
4k views

Why is the default shell in Debian 7 bash?

As per documentation, dash should be the default shell in Debian Wheezy, however when I open up a terminal and check the SHELL variable, it points to /bin/bash. Since this is a fresh install, and I ...
5
votes
1answer
709 views

Performance differences between pipelines and process substitution

I tend to use pipelines in my bash scripts over process substitution in most situations, especially in cases of using multiple sets of commands as it seems more readable to do ... | ... | ... over ... ...
3
votes
1answer
397 views

filesystem that works under qemu and I can mount on my host

I'm using qemu for different kind of tasks, I would like to pick a filesystem that is both qemu-compatible and easy to mount under my host. I already discarded both qcow and qcow2 because apparently ...
2
votes
2answers
1k views

bash value of $LINE is not showing when defined like val=`$LINE`

I have the following bash script for some reason $LINE value is not coming on val=. I can see the line from file is read can be display by each $LINE but when defined in the val.. is not showing. #/...
2
votes
1answer
4k views

Chromecast / Cubetek Ezcast with Linux computer?

I was pondering getting a Google Chromecast or Cubetek Ezcast the other day, mostly for its novelty and maybe using it as a media player or device to conduct presentations. The way they set up, with ...
5
votes
2answers
3k views

Copying one file to multiple directories

I have a file that I want to copy to another 60 directories. The best way I can think of doing this is by making a bash script that has instructions to every folder like this: cp script.sh /home/...
1
vote
0answers
675 views

Installing openambit on Ubuntu 12.04

My question is in regards to installing openambit which is software for Suunto's ambit watch. I followed the installation instructions here but it didn't work. When I did: $ mkdir libambit-build $ ...
2
votes
1answer
249 views

Move extension-less files with mv

I have a folder with images(png, bmp, jpg) and extension-less files. I cant figure out how to move only the extension-less files. They are all random numbered files.
1
vote
1answer
1k views

bbswitch & bumblebee, card starting one every two call

I'm trying to set up bumblebee for using my Nvidia card (GT 750M) for running opengl 4 applications. I installed intel-dri, xf86-video-intel, nvidia, bumblebee and bbswitch. I set up /etc/modprobe....
2
votes
1answer
407 views

View blocked address from sshguard

How can I view all the addresses that sshguard has blocked to iptables?
1
vote
0answers
1k views

Make xterm transparent

I'm going through the process of making xterm transparent, I've followed the steps on this site. I installed transset-df and Xcompmgr and added this line to my .bashrc file [ -n "$XTERM_VERSION" ] &...
1
vote
1answer
222 views

Getty instances in init process

Init typically will start multiple instances of "getty" which waits for console logins which spawn one's user shell process. Upon shutdown, init controls the sequence and processes for shutdown. The ...
3
votes
0answers
214 views

Lm_sensors not reading gfx card temperature right

I have ran sensors-detect and lm_sensors still returns the following. radeon-pci-0100 Adapter: PCI adapter temp1: +511.0°C (crit = +120.0°C, hyst = +90.0°C) coretemp-isa-0000 Adapter: ISA ...
1
vote
1answer
37 views

How to correct error where 2 out of 3 users on chrooted network cannot gain write access?

I have an SFTP server running on Debian. The directory is chrooted and is set up with privileges as such: /sftp/+---testagent2----writespace 750 | 755 755 +---testagent3----...
15
votes
2answers
18k views

How to make traceroute trace beyond 30 hops?

Some of the servers I use traceroute on, are more than 30 hops away. How do I make traceroute trace beyond 30 hops?
0
votes
2answers
174 views

How to estimate server's network connection quality with traceroute?

I need to estimate network connectivity of various dedicated server hosting providers, e.g. how fast and uniform will my services perform when hosted there. I use traceroute command on my home ...
2
votes
1answer
70 views

Non-administrative network-related tools

I know there are tools to inspect packets (e.g. wireshark) or to simulate latency/packet loss (e.g. netem), but they all seem to require administrative permissions to inspect/modify packets. I'm ...
10
votes
2answers
4k views

AppArmor profiles in Docker/LXC

I have a Docker container (LXC) which runs MySQL. Since the idea behind Docker is generally "one running process per container," if I define AppArmor profiles targeting the MySQL binary, will they be ...
2
votes
1answer
1k views

Kernel 3.12 or 3.10? which one has more features, newer and better?

Based on https://www.kernel.org/ kernel 3.12 is released in 2014-04-23 and kernel 3.10 is released in 2014-04-27. Based on release date, 3.12 is older and based on version number 3.10 is older. Which ...
5
votes
2answers
18k views

Default stack size for pthreads

As I understand, the default stack size for a pthread on Linux is 16K. I am getting strange results on my 64-bit Ubuntu install. $ ulimit -s 8192 Also pthread_attr_init(&attr); ...
1
vote
1answer
2k views

grep file from file

What is the fastest way to grep -v a file against another one, both line by line. does grep support this ? Or should I use it on two for loops ?
0
votes
0answers
2k views

Pbrun not allowing to execute commands

why do i get this when i execute pbrun. $ pbrun ls You are NOT allowed to use pbrun -h <remotehost> ls. Please try again without -h option. Host: xxxx Submithost: xxxx.abcd.xyz.com pbrun7.5....
1
vote
1answer
567 views

How do I use the SED command to remove injected code from multiple files?

One of the domains on my Centos 6.5 (64 bit) server has been compromised. Having run a detection script on the public_html folder I have identified all the files with this code injection. I ...
1
vote
2answers
381 views

How to fix 'set -o emacs' in .bashrc not working in ssh shell

I work in an LDAP-based user and host network. My user exists on all hosts since it an LDAP user, and my user's home directory exists on all hosts as a mountpoint. I have ~/.bash_profile set up to ...
3
votes
1answer
47 views

Can I use two sets of I/O devices for two user sessions on one computer?

I want to connect a second monitor, keyboard and mouse to my PC (running Ubuntu) and let somebody else (e.g. my son) use the a different TTY while I am working. I know I can switch between TTYs using ...
0
votes
1answer
252 views

Can't simulate initial login using sudo

$ sudo -iu cyrus sudo: unable to change directory to /srv/cyrus: Permission denied sudo: unable to execute /bin/zsh: Permission denied I don't understand why I would get permission denied for /bin/...
1
vote
1answer
163 views

How to fix SSH on OSX?

I have been able to connect to OSX machine using ssh client successfully for hours, but then it stops working and I get connection refused. ps -ax | grep ssh 841 ttys004 0:00.00 grep ssh Using ...
3
votes
3answers
177 views

How can I automatically log in to a list of servers to prevent account lockout?

I have started a new contract, and need to have an active account on almost 200 servers. Security has accounts lock after 30 days of inactivity, as well as if you do not log in within 1 hour of ...

15 30 50 per page