3
votes
1answer
163 views

Screwed up my bash prompt, what happened?

I just thought I might get version information about the current bash by entering bash -v That brought many lines of code to stdout and left me with a line that appears right above my usual promt ...
3
votes
1answer
379 views

pcregrep newline lookbehind assertion bug?

Attempting to use pcregrep to print the first line after a blank line. For example, contents of file first line second line I need second line to be printed. Here are a few tests using the same ...
3
votes
1answer
187 views

Write a shell script that takes in a variable from the terminal? (~$ command variable)

I am writing a shell script that takes in a time (in minutes) and opens an online egg timer set for that amount. #!/bin/bash #Opens http://e.ggtimer.com/TIMEmin where TIME = number of minutes TIME=5 ...
2
votes
1answer
122 views

Hosting on freeBSD

I already installed FreeBSD 10, Apache 2.4 and PHP 5.5. I also just bought a domain from GoDaddy, and I would like to setup a web-hosting in my server, in order to make my website to be reachable from ...
2
votes
1answer
430 views

How to add a read only group permission to a folder that already has a default group, and have it inherited for all newly created files & folders?

In Windows this is easy. I never fully figured out Linux permissions, I have a directory such as this: /Photos The current ACL permissions are as follows: owner: root - full access group: photos -...
4
votes
2answers
447 views

User created without a password behaves as if he had one

Inside one of my scripts, I created an user based on a directory arrangement on another machine. The thing is that this user, created without a password, behaves just as he had one : he has sudo ...
2
votes
0answers
356 views

While connecting to hidden SSID, Supplicant PAE state=HELD

Here details of my Wireless network hidden SSID (non-broadcast) The authentication protocol used is PEAP, which is a username and password protocol. The username and password are passed between the ...
1
vote
1answer
1k views

su to another user using ssh keys?

Assuming that user_A and user_B set up and exchange public ssh keys with each other, is it possible for user_A to su into user_B on the same machine?
7
votes
3answers
1k views

What is the difference between invoking a perl script via sh or perl

I have a simple Hello World perl script. #!/usr/bin/perl print 'Hello world.'; It works fine if I run it via perl <file_name>, but it fails I run it via sh <file_name>. My ...
4
votes
1answer
222 views

How do you give a developer group access to apache, MySQL, php and the webroot?

We have 3 web designers that are currently logging in to our server via root to configure apache and setup websites. I have very basic linux knowledge (I'm a web designer) and have created users and ...
2
votes
0answers
136 views

How to check whether a usb Wifi supports Hotspot or not

I found a wifi card here:- Wifi Now, how can I check whether It can enter master mode and have support for hotspot? As my current in-built Wifi card is giving me this:- Error for wireless request "...
1
vote
1answer
437 views

Using awk for data manipulation

I have an input file in the following format. #track chr11 61731756 61735132 FTH1 - chr12 6643584 6647537 GAPDH + chr11 18415935 18429765 LDHA + chr12 21788274 21810728 ...
2
votes
1answer
6k views

Executing PHP with CronJobs in CentOS 6.4 not working?

So I've spent around 2-3 hours now and some times researching, I found several of the same responses online but none seem to work! I'm trying to execute a PHP script every minute (as a test), but it ...
1
vote
1answer
2k views

FreeBSD and StrongSwan routing issue

Good day, gentlemen. I have recently faced a problem when a device connected to the FreeBSD server via StrongSwan can't route outside its subnet. Let me explain in details: FreeBSD 10.0-RELEASE, ...
1
vote
1answer
2k views

How do I restore grub on a uefi boot after a windows update wiped it?

Until yesterday I had a dual boot debian / win8 with grub that worked like a charm. Yesterday a stupid windows update totally wiped grub and I'm now unable to boot in linux. I installed linux a year ...
4
votes
1answer
3k views

Cannot use highest resolution, xrandr does not list mode (Intel GPU, DP to DVI adapter)

I have a screen capable of 2560x1440. It is connected to my Intel NUC with a DP to DVI adapter. My graphics card Since updated my Arch Linux system last week (not sure what was updated exactly) I can ...
3
votes
3answers
588 views

Multiline regex blank line delimiters,

I have a program which prints out data in blocks. Each block is delimited by blank lines. I would like to discard most blocks and only keep those blocks that contain something that matches a regex. ...
0
votes
3answers
544 views

How can I run a grep on epub/mobi files?

Is there a way to do it, particularly on a set of multiple epub/mobi files in one directory?
3
votes
0answers
788 views

How can force my screen to unblank?

I've been doing a lot of looking around forums for different ways to unblank the screen. I am running embedded linux on a machine I have and I found out that the screen goes blank under certain ...
1
vote
0answers
122 views

Storing Web Session on S3 bucket

I have a cluster of web servers which store web session related information in a NFS shared directory. We are trying to implement an AWS version of our product where we could use S3 bucket to store ...
1
vote
1answer
56 views

How can I find the git commit in a repo that is more similar to a specified branch?

I have a branch in a git repo. How can I find the single commit in the repo that most closely matches the branch? Like if I run a diff, between this branch and every other commit in the repo, I want ...
10
votes
3answers
7k views

How do I disable the touch screen on my laptop?

My laptop has a touchscreen but I do not use this. How do I disable this functionality? I use Arch Linux. I figured I could try removing the related driver. According to this page the possible drivers ...
2
votes
1answer
1k views

Can't mount filesystem by offset

I'm having trouble trying to mount a filesystem. Basically, if I mount /dev/sdc1, it works perfectly. But if I mount /dev/sdc with a byte offset, it fails. The filesystem is HFS+ (formatted using an ...
4
votes
1answer
76 views

Tab-completion within for loops not working

I'm either going crazy or about to ask a stupidly basic question. I appreciate your patience either way. Tab completion for executable command is not working within interactive for loops in bash. I ...
0
votes
0answers
231 views

Schemes for linux tty and xterm

I actually prefer the font and colorscheme used when I'm in a tty terminal. After I start up a window manager, the colorscheme and font are completely different when I'm in xterm -- which is expected. ...
0
votes
1answer
26 views

How do I properly re-install an OS to the same partitions after failing for the first time?

I have Ubuntu installed. I created 2 more partitions for Linux Arch and failed to install it due to choosing the wrong packages via package manager. It will work on my computer for sure (it already ...
9
votes
3answers
35k views

Logging SSH access attempts

I've configured an ubuntu server with openssh in order to connect to it and execute commands from a remote system like a phone or a laptop. The problem is... I'm probably not the only one. Is there ...
1
vote
1answer
311 views

Connecting to Github from server

I am trying to connect to Github from a server running Jenkins. To do this, I'm copying my public key from another server, into the authorized_keys on the new server. All I'm getting is the ...
2
votes
1answer
391 views

Counting the numbers of lines of data as it comes in? [duplicate]

I am currently connected to the Twitter Stream, and I would like to count the number of lines of data as they come in. I know I can do wc-l to just count the lines, but I want it to be auto-updating. ...
-1
votes
2answers
427 views

How to unpack dd file on Windows? [closed]

Is it possible to unpack files created with linux dd tool on Windows? I have tried that tool http://www.chrysocome.net/dd, but it crashes under Windows 7. Any ideas?
3
votes
1answer
529 views

Pipe hex characters to awk

This command works as expected $ awk 'BEGIN {print "\x41"}' A As does this $ printf '\x41' | awk '{print}' A However when you rely on awk to recognize the hex characters, it fails $ echo '\x41' ...
2
votes
1answer
164 views

switching nvidia profiles

I have an old laptop with a nivdia card (360m) and I use powermizer to force it to run a very low clock. Heres my configuration at /etc/X11/xorg.conf.d/20-nvidia.conf Section "Device" ...
5
votes
1answer
480 views

How is `vi` Aware of the Format of Configuration Files?

When I edit configuration files in vi, it seems like vi is aware of the syntax of the file. For example, vi will color tokens one way or another depending on whether its a key or a value. Furthermore,...
1
vote
0answers
217 views

midnight commander: settings for mcview not honored

Midnight Commander supports skins, where custom colors can be defined. I have created my own skin with custom colors. However, I am unable to change the color for the internal viewer (mcview). ...
1
vote
2answers
1k views

How to move or copy list of files referenced in a csv file to a new folder

I'd like to write a shell script (OSX) which copies files listed in a csv file to a particular directory. I need to strip quotes from each line in the csv file. My attempt for i in $(cat myfile.csv) ...
2
votes
0answers
338 views

DD-WRT: dhcp6c not fetching new address for ppp0

I'm currently trying to configure my DD-WRT-based router to do IPv6. Now I'm at a point where it works fine - until the line is disconnected and reconnects (which happens at least every 24h... for a ...
3
votes
0answers
427 views

Some questions compiling linux kernel with make-kpkg

I'm doing my first steps compiling the linux kernel and adding a new system call. I've managed to do it, but I still have some questions. For this task, I has set up a Virtual Machine guesting debian ...
12
votes
5answers
681 views

Is there a more succinct alternative to piping to wc for counting files in a directory

If I do ls -1 target_dir | wc -l, I get a count of files in a directory. I find this a bit cumbersome. Is there a more elegant or succinct way?
0
votes
0answers
275 views

How to setup dualview without restart X11

I'm using latest ArchLinux with dual monitor, but my second monitor is not detected $ lspci | grep VGA 00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Richland [Radeon HD ...
2
votes
2answers
546 views

Does IP tables need to be configured or is a stand alone firewall sufficient?

I have two desktops and a laptop running Arch Linux. I have not setup any iptable rules on any of the machines, and I am curious if I should. One desktop is only used in my home network and is "...
0
votes
0answers
1k views

How to resolve broken packages when upgrading: from Ubuntu 13.10 to 14.04

I am having an issues upgrading to 14.04 (Trusty Tahr) from 13.10 (Saucy Salamander), where I get a message Could not calculate the upgrade, and I believe it is due to my unofficial software packages. ...
2
votes
1answer
42 views

Script. How to sort and move catalogs

I have some trouble writing a script. I don't know how to sort and move catalogs. #!/bin/bash while read -r line; do mkdir "sd/$line" done < 1a.txt After reading information from 1a.txt ...
1
vote
0answers
256 views

How do I set up pulseaudio's RTP client to listen to a vlc RTP server?

Pulse audio provides the ability to load an rtp client which listens for SAP broadcasts, pactl load-module module-rtp-recv However, I can't get the combination or arguments right for vlc to ...
1
vote
0answers
370 views

Chrome, Linux Mint, Low FPS in games

I'm running Linux Mint 16 on a desktop computer with Nvidia GeForce GTX 550 Ti (driver 331.20, older driver also has same problems) graphics, and have been using the current stable version of Chrome. ...
1
vote
1answer
3k views

How to detect RAID 0 from Ubuntu Live CD?

I have Ubuntu 10.04 installed on a server with RAID 0 configuration. The server has many user accounts and the users have a lot of data in the server. The server has been crashed due to removal of ...
1
vote
0answers
428 views

Linux routing table entry disappears

I run Fedora 20 (3.13.10-200.fc20.i686) inside VirtualBox on a Windows 7 SP1 host. The Ethernet adapter on the guest is configured as a Bridged Adapter in VBox, and gets an IP via DHCP. Here's the ...
2
votes
2answers
4k views

Move completed torrents in rTorrent according to label

I've got a seedbox with rTorrent (and ruTorrent) installed, and I'm trying to automate as much as possible... Currently, I've got this in my rtorrent.rc to move completed files to ~/Download: system....
1
vote
1answer
946 views

What causes a csh script to sometimes not source /etc/csh.cshrc?

I have a csh post-installation script that is executed from an rpm %post with its interpreter line set to #!/bin/csh (without the -f option). This should cause the file /etc/csh.cshrc to be read ...
1
vote
1answer
149 views

How to do arithmetic manipulations on entire rows in LibreOffice

I have a table of data which I want to do some arithmetic manipulations on. If I want to subtract say 11B from 3B I just do =$B3-$B11. But if I want to subtract each row 11 value from its ...
1
vote
1answer
6k views

Cannot connect to WIFI

I finally made the switch from windows to Linux. CentOS to be precise. Unfortunately, I am unable to have my wireless connection working, so accessing the web is a hassle. Following directions on the ...

15 30 50 per page