3
votes
1answer
5k views

USB passthrough for LXC containers

PROBLEM: So I've been trying to get a usb device (primesense - the OEM reference for the Kinect) to passthrough to an LXC container so I can develop without worrying about polluting my stable system ...
0
votes
1answer
224 views

Creating a file from another file on the basis of a numeric value in each line

We will generate a csv file with below values. yp1234,577,1,3 yp5678,570,3,5 yp9012,132,8,9 I need to extract data and create files based on second column. If it's value greater than 577 then the ...
2
votes
0answers
164 views

Easiest way to sandbox an user

I'd like to sandbox a user so that they can only read files under /media/shared/somefolder. What's the easiest way to accomplish this? Users/groups? ACL? AppArmor? Some context: Plex Media Server is ...
7
votes
3answers
5k views

Replace multiple strings in a single pass

I'm looking for a way to replace placeholder strings in a template file with concrete values, with common Unix tools (bash, sed, awk, maybe perl). It is important that the replacement is done in a ...
0
votes
1answer
1k views

wired ethernet interface not detected by lshw, lspci

I have a Toshiba Satellite PSAG8U-04001W. No eth* interface shows up on ifconfig. $ ifconfig -a lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 ...
5
votes
4answers
3k views

disabling job control in bash (CTRL-Z)

It happens to me sometimes, that I press CTRL+Z by accident and my application disappears into background. I know, I can bring it back with fg, so it's not such a big deal. But I am wondering about ...
1
vote
1answer
61 views

Re-routing request and response to server behind a VPN

My situation is as follows: I have a server (A) set up with a VPN connection to a third-party server (B). I have a collection of other servers (C, D, E...) that share the same private network as my ...
9
votes
3answers
1k views

How does make continue compilation?

I know that I can interrupt a make process anytime without having to recompile the entire source tree again. As I know, make only compiles a target if it's not compiled yet, or the source code is ...
1
vote
1answer
88 views

Restarting gnome-shell - KDE programs look ugly

I needed to restart my gnome-shell. I did this on the tty1 via export DISPLAY=:0.0 gnome-shell --replace This helps to keep all the open programs, but all KDE program have a different (e.g. ugly) ...
25
votes
4answers
3k views

Can I “drag” a file into a window without a file manager?

(I'm on Arch Linux, using i3 as my wm and xterm as my terminal emulator, though I don't know if any of that is relevant.) Occasionally, a website asks me to drag a file with my mouse from my desktop ...
8
votes
4answers
7k views

How to do domain filtering in Linux?

Preferably something similar to iptables. Basically, I want to do domain filtering/whitelisting/blacklisting like I would with IPs in iptables. Are there any recommendations on how to do this?
7
votes
2answers
285 views

Why there are multiple folders for executable files in Linux? [duplicate]

I'm trying to understand Linux file system, and one of the question is: 1- Why there are multiple folders for executable files: /usr/bin, /usr/sbin/ and /usr/local/bin? Is there any differences ...
7
votes
2answers
26k views

How to auto generate resolv.conf on Centos 6.5

I just installed CentOS 6.5 and configured the following files: /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 HWADDR=aa:bb:dd:dd:ee:ff TYPE=Ethernet UUID=adfddfaf-9sda-adse-dfs4-asdfsdfdfg97 ...
4
votes
2answers
1k views

Java doesn't show menu text

I startet netbeans/intelliJ/squirrelSQL after I didn't use it for a few days/weeks and now the menu doesn't show text. There are just the underlineds. My system: ArchLinux (everything up to date, ...
20
votes
1answer
23k views

How do I find out if my wireless card supports 5ghz?

I have the 03:00.0 Network controller: Intel Corporation Centrino Wireless-N 2200 (rev c4) Hwo do I find out if that card/driver support 5 GHz?
12
votes
4answers
3k views

Stopping output from a program run in SSH session NOW

Problem I execute command that outputs LOTS of information through SSH. For example, I foolishly add debug information inside a loop that executes million times, or just run cat /dev/urandom for ...
0
votes
2answers
4k views

How to get the value from rows and columns from text file in bash?

I am working on a bash project. I need to get all the values (one at a time because I will be using them somewhere else) from a text file. The text file I will be getting is structured like this: ...
2
votes
1answer
883 views

Invalid version string 'GNU/Linux'" when creating bootable USB stick

When I tried to create a bootable USB stick using Startup Disk Creator, appear this massege below. Invalid version string 'GNU/Linux'" How can I create a bootable USB stick on Ubuntu 14.04?
0
votes
2answers
64 views

Is there a need for repeating rule parameters in iptables?

Let's say we need some ssh rules in iptables. But we also want to specify another chain for all the rules. We could use something like this: iptables -t filter -N ssh iptables -t filter -N tcp ...
4
votes
1answer
323 views

How do I limit the number of getty processes started?

I've got a FreeBSD (9.2) box that I'm trying to strip down as lightweight as possible. It's running on a VM server, so other than ttyv0, we don't ever use the console. I'd like (if possible and ...
1
vote
3answers
107 views

Is it bad to select remember me option in the browsers of a compromised machine?

I was reading an article on how to sniff network packets. (of course for knowledge purposes only). I came across these particular lines. For instance, say I was sniffing traffic on the network, ...
1
vote
0answers
52 views

Traffic Control user permission

My users need to emulate packet loss on RTP video streams to achieve visual effects. We are in a artistic environment and don't worry about security. The application works only as super user. I ...
2
votes
1answer
6k views

Sending attachments with mailx and uuencode [duplicate]

I am in the process of trying to run a script which usually sits on an AIX machine on its new host Linux node. The code I am running looks like this: (uuencode $path/info.dat info.csv; uuencode $...
11
votes
3answers
12k views

Why does fstab use UUID instead of the actual file system name?

For example, this is the first line of my /etc/fstab: UUID=050e1e34-39e6-4072-a03e-ae0bf90ba13a / ext4 errors=remount-ro 0 1 And here's the output of df -h command (reporting free ...
3
votes
1answer
829 views

How hide the grub 2 start up screen in debian during bootup? [duplicate]

How can I make it so that the grub start up screen will not show up in debian when I boot?
2
votes
1answer
705 views

How do I turn off the backlight but leave the LCD on?

How do I set zero brightness on laptops that have a nonzero minimum brightness on the brightness control? The solution should work regardless of X. I.e. it should also work in the virtual terminals.
1
vote
2answers
557 views

Proper options for openssl with simple ciphertext

Last weekend there was a cryptographic challenge where the ciphertext was the following hex: FC 89 BF C2 B0 5F 1C 2E 64 B8 78 43 92 78 3A C9 I know for sure that this is encrypted using AES/...
3
votes
1answer
3k views

apt-mirror clean script isn't deleting anything

I am using apt-mirror to create a local Ubuntu mirror. It does succeed in downloading files from another mirror (there's about a couple gigabytes each week), but never removing anything or indicates ...
1
vote
1answer
252 views

GNU/Linux: automatic cloning of a system with partitions encrypted with LUKS+dm-crypt

I would like to have an up-to-date clone of a (Debian) GNU/Linux system on an external HDD and therefore be able to replace the internal HDD with the external HDD at any time and being up and running ...
5
votes
1answer
186 views

Per-screen font config?

Is there a way to have different fontconfig settings per screen ? I have two 1080p monitors, however one is 13" and the other 27". I would like antialiased fonts on the small monitor, and non-...
78
votes
4answers
15k views

What is the point of Ctrl-S?

Ctrl+S stops all output to the terminal which can be restarted with Ctrl+Q. But, why does Ctrl+S exist in the first place? What problem was trying to be solved by putting that control sequence in ...
2
votes
2answers
679 views

IPTables DNAT rule to local web server doesn't work with localhost?

I have linux box functioning as Wireless Access Point. Wireless clients connect and then browse the web. I am only allowing port 80. There are certain sites I'd like to block, but not by dropping the ...
2
votes
2answers
165 views

is there a way to keep a session alive even when logging out? [duplicate]

While I am always logging into a CentOS server for simulations it got me thinking: why can't I keep running the simulations even if my session is closed? I know that when a session is ended or a ...
1
vote
0answers
3k views

checking sendmail status as NON root user

I am in the process of converting to CentOS 6.5 from 5.5 and need a way to check if sendmail is on or not. For reasons I don't want to go through, I need to be able to check if sendmail is ON as a ...
1
vote
0answers
495 views

PostgreSQL installation error in debian

I'm trying to install PgSql in the system with following specs: Distributor ID: Debian Description: Debian GNU/Linux 7.1 Release: 7.1 x86_64 But I am getting an error like this The ...
1
vote
1answer
242 views

Dynamic password authentication

I would like to know how can I (and if it's possible) create a dynamic authentication for a user in linux. The server would change the user password periodically and the user would use a program (...
3
votes
1answer
149 views

How to use my login password to do two things

I have a CIFS drive that I mount regularly, and it requires a password for it. Since it's annoying to type my password every time, I wrote a script that sets the PASSWD environment variable, mounts ...
0
votes
1answer
1k views

Static IP on BBB won't change with network/interfaces file

I'm using multiple BBB's (Rev C), communicating with them from my Mac (OSX 10.9.3) over USB using the HoRNDIS drivers. The BBB's are running Debian, and so I want to manually assign them all different ...
0
votes
3answers
1k views

How to do a remote login in linux?

I am rather new to linux and have a CentOS box to play with. I am quite comfortable with the command line, but one thing that bugs me is that unless, someone is logged in to the GUI and has vnc ...
30
votes
8answers
5k views

What's the difference of the Userland vs the Kernel?

I am trying to understand exactly what is userland? everyone that I ask says: "Anything that is not kernel". but it is not tangible for me. When I am reading that kernel can run that driver on the ...
3
votes
0answers
4k views

Autologin question with LightDM & Ubuntu 14.04

I have set up a batch of workstations at a library using DRBL. These workstations are running Ubuntu 14.04. I want these workstations to autologin to a specific user (a different one for each ...
0
votes
0answers
362 views

Skype/Video drivers problems on Linux Mint 16

If I or the people I'm talking with turn on the camera, my system becomes so sluggish that nothing can be done (I can't even hang up the call). Event after the other party hangs up, the system keeps ...
2
votes
5answers
7k views

Using sed with special characters

I have a directory full of XML files that look like this, for which I want to change the value of the "offset" element number from 1 to some other number $ cat my.xml <offset xmlns="">1&...
3
votes
0answers
357 views

Remapping Left Control <LCTL> in xkb changes behavior of Alt + Left Shift

For some reason pressing any alt key (including <MENU>) together with <LFSH> toggles "Switch windows of an application". This can be turned off by commenting out key <LCTL> { [ ...
2
votes
2answers
959 views

Qt applications have tiny fonts on XFCE

My question is almost the same as this one but the answer did not work for me. I'm running OpenSuse 13.1 with XFCE desktop. I have set ~/.kde4/share/config/kcmfonts with forceFontDPI=0 but it didnt ...
1
vote
2answers
159 views

Thunderbird/Enigmail: problem with colors

When I decrypt an encrypted email in Thunderbird (using the Enigmail extension), the enigmail header is displayed in very strange colors, very light green background with white text. This makes the ...
1
vote
1answer
533 views

Configure NAT filtring behavior with iptables

I'm using this rule to configure SNAT: iptables -t nat -A POSTROUTING -o eth1 -j SNAT --to-source 193.49.142.107:4000 I want to specify a rule to filter out packets not destined to the internal ...
1
vote
2answers
2k views

Running system bash command in PHP script - syntax error: unexpected T_LNUMBER

Below is an extract from a script that I've written in PHP, but contains a system command that executes in bash. Now, the reason for this is because it allows me to use the awk function which is ideal ...
1
vote
1answer
88 views

Awk that I am stuck on

I have a project I am working on for work. The script I am building initially takes two arguments: one is an unique Identifier and the other is for a log file (both strings). Now I have the first part ...
0
votes
2answers
116 views

Remove a particular line containing a number from a text file

I have a .csv file having several lines of data. I have to search for a particular value in the string/record and delete that line itself. For example: abc.csv col1_id,col2,col3,col4,col5 1000541,...

15 30 50 per page