2
votes
2answers
175 views

Anyway to navigate percentage-wise in vim?

I often open large files, looking through logs for finding info. As all lines have timestamp in my case and I am sure of in which part of the whole file the info is present which I am interested in. ...
0
votes
2answers
4k views

Cron job is not working [closed]

i have a cron job center code hereonfigured at var/spool/cron/testuser, Am calling "adindex.sh" file from there. Am getting results when am directly put the command directly in prompt(php and sh), ...
3
votes
2answers
4k views

delete old log files except the last one (alphanumerically sorted)

I have a number of log files in the form: log.2014-02-19-10_24_22 I.e. log.YYYY-MM-DD-H24_MI_SS The date that's part of the log file's name is when the log file was first created. So at any given ...
0
votes
1answer
197 views

mdadm large memory consumption [closed]

I am building a RAID 6 with mdadm (8 WD Red 3 Tb) on Ubuntu 13.10x64 server with ext4 filesystem. When I download torrent on the array, server RAM is filled for maximum cap (8 Gb) memory is free when ...
3
votes
2answers
216 views

using SUID bit to drop privileges

So this is a description of the system I'm working on : a "manager" process spawns all the other applications. The manager application runs as root user. so now, any process that it spawns also ...
4
votes
3answers
4k views

Configure multiple interfaces with different hostnames using DHCP and DNS

I have a machine running Ubuntu 12.04 Server with two interfaces connected (eth0, eth1) to the network. Our network is set up so that a FreeBSD based DHCP server hands out leases and registers the ...
0
votes
1answer
80 views

Partitionning disk for installation, what size should I give to filesystem? [closed]

I am planning to install debian on dual boot, I have 250GB free for that, but I d prefer answer for any size. I want to separate filesystem on different partition (/, /boot, /root, /home, /var), but ...
2
votes
1answer
890 views

Share/Stream live video on LAN network - raspberry

As in the question, I need to share a video in lan by broadcasting. From server, I've tried with: avconv -i video.mov -c:v libx264 -f mpegts udp://[destinationIP]:1234 From client I can play ...
9
votes
3answers
3k views

Delete files and directories by their names. No such file or directory

I need to delete all compiled data: directories called build, directories called obj, *.so files. I wrote a command find \( -name build -o -name obj -o -name *.so \) -exec rm -rf {} \; that ...
1
vote
2answers
3k views

How to reload routing table on Centos without lost network service

I've add 1 route in configuration network file, how to reload routing table on Centos without lost network service
0
votes
0answers
2k views

How to setup ATI/Intel dual graphics-card driver in Debian

I have searched it from the Internet, but there is only a solution for Ubuntu. Visit: http://xpressrazor.wordpress.com/2013/01/13/how-to-setup-amdintel-hybrid-graphics-cards-in-linux-ubuntu/ I ...
0
votes
0answers
118 views

Exec in “.desktop” with arguments don't work?

I need help, I made a script, this script run a getopts; the script have some options example: ./people -n 0ad I need make a desktop entry, running the above example, but wasn't run the 'Exec' in ...
1
vote
1answer
175 views

How to deal with a problematic 3G dongle

I have an old 3G USB modem and I wonder if it's dying because it's very unreliable. Connecting it gives the following (/var/log/syslog): Feb 18 22:39:56 thome kernel: [ 5310.999854] usb 1-2: new ...
2
votes
1answer
41 views

Does GRUB install itself on every disk?

I have 4 hard disks. One of them houses Debian, one Windows and others are just storage. Does GRUB install itself on every MBR of every hard disk? (I have not specified any path explicitly for GRUB ...
1
vote
1answer
57 views

Is there a way to check which process terminates first during reboot

Assuming I have 2 processes running. Is there any way for me to check which process terminates first during reboot/shutdown? From this link, it tells about appending boot to a file. Yet, I still don't ...
1
vote
2answers
13k views

Change sshd logging file location on CentOS?

How do I change the sshd logging file location on CentOS? sshd logs to /var/log/messages instead of /var/log/secure. How can I change the setting so sshd will stop sending logs to /var/log/messages?
7
votes
4answers
18k views

What is the right file permission for a .pem file to SSH and SCP

I have tried to SSH into my AWS ubuntu server and copy the directory to my local machine. Throughout the process I experience different file permission errors (noted below). Is there one specific ...
2
votes
0answers
876 views

Enter user authentication details for a printer?

I have a printer which is configured using the correct drivers. However, the printer requires user authentication (i.e. a username and password) to print. Where are authentication details usually ...
0
votes
3answers
93 views

How does one install a camera driver from a c file, and what is this driver doing?

I need to install a driver for a MT9M032 CMOS Image Sensor USB machine vision camera made by Aptina (formerly Micron). I am working on a Macintosh running OS X 10.9.1 and am new to Linux/Unix when it ...
0
votes
1answer
43 views

How to locate an application that is using the 'bash' command? [closed]

I saw a command called 'sshd' that is using the BASH command (according to ps aux) to write to a file. But how to locate the code of this application that is using the bash command?
2
votes
4answers
2k views

Extra-bytes error when unzipping a file

When I enter unzip ../founation-latest.zip, it outputs this: warning [../foundation-latest.zip]: 248 extra bytes at beginning or within zipfile (attempting to process anyway) The file is 138KB. ...
1
vote
2answers
75 views

Why are user account on remote server called shell account

Why are user accounts on a remote server called shell account , remote account sounds like a more intuitive name what is the reason behind this very unintuitive name ???
2
votes
1answer
615 views

Is there an easy way to check which program wrote to /var/log/messages?

Is there an easy way to check which program wrote to which file? I'd like to check which program wrote an error to /var/log/messages for example.
2
votes
1answer
103 views

Highlight today in Mac's cal

Every Mac comes with cal which shows a simple calendar of current month. Output is something like this: February 2014 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 ...
0
votes
2answers
912 views

How do I capture audio from interactive webpages using VLC?

I'm trying to capture an audio video feed (screen-cast) from my web browser and all screen-casting options I tried have the same issue: No sound is captured Platform I'm using a near default ...
0
votes
1answer
150 views

Combining two bash scripts by adding flags

I have two scripts which transform the code from software v.1 to software v.2 and viceversa. These are essentially a lot of sed substitutions. In the way I wrote them they accept two arguments: ...
4
votes
4answers
3k views

how to rename files while copying?

How would I copy (archive style where date isn't changed) all the files in a backup directory to the user's directory while renaming each file to remove the random string portion from the name (i.e., ...
2
votes
0answers
306 views

Is there a way to mix between two RTMP streams (depending on which is up) using something like FFMPEG?

(Apologies about the question title, not quite sure how to word it) So I'm working on a turnkey streaming solution / server for a local LAN party, using the fantastic nginx-rtmp to handle incoming ...
0
votes
2answers
1k views

How to permanantly disable /var/log/lastlog?

When I delete files such as /var/log/lastlog, /var/log/utmp and /var/log/wtmp the files will be recreated. How do I disable the recreation of those files?
2
votes
1answer
572 views

NFS Ownership/Permissions

I'm trying to get NFS working properly on a DD-WRT install using OTRW2. I can see and mount the share from the client. But when I do, the mounted folder changes it's owner to root:root and so my ...
0
votes
2answers
110 views

Red Hat Enterprise Linux 6 wakes up spontaneously after sleeping

I have a Lenovo ThinkPad T430 running Red Hat Enterprise Linux 6.5. Today I put my computer to sleep, double checked 10 seconds later, only to find out after arriving to my office that my computer ...
3
votes
2answers
143 views

403 Forbidden, Tried everything

So currently I am getting the 403 forbidden error. I have tried everything that I could possible think of. It was working a couple of days ago however it has stopped working now. I have tried ...
1
vote
0answers
521 views

Booting from usb fails as I try to install elementary OS on my PC

I'm trying to install Elementary OS Luna on my PC. The problem is that every time I try to boot from my usb, on which I've got the OS installation files, it fails. First I press F12 to get to the ...
0
votes
1answer
55 views

Piped search queries in vim or less

I would like to be able to search a log file for lines that being with ^2014-02-18 15:30:[0-9:,]* and have UserName:someguy much later in the same line. I am sure I could do a regex to include any ...
3
votes
1answer
127 views

How to cd into more than one directory?

I'm not sure if I'm asking that right, but here is the script: #!/bin/sh # foundation-setup.sh --- Gets the latest Zurb Foundation release if test $1 then mkdir $* cd $* wget -q ...
4
votes
2answers
189 views

Extract given tarball and retar it exactly

My versioned project uses the contents of an upstream tarball. I would like to extract the contents in such a way as to be able to recreate the original tarball exactly. The reason is that I don't ...
1
vote
2answers
2k views

Is there a Lubuntu, Centos equvialent…Centos that runs lxde out of the box?

Are there any CentOS distros that run LXDE out of the box? I want to use CentOS for a server I'm throwing together instead of Ubuntu, but I want to be able to run LXDE as the system I'm using has ...
6
votes
2answers
1k views

Using environment variabless in Tmux status bar shell commands

I am attempting to create a tmux status bar which shows three timezones: US Eastern Time :: UTC :: Central European Time. Using the TZ environment variable makes the date command show the time in a ...
3
votes
2answers
3k views

How to install Linux Mint on 24GB SSD alongside 1TB HDD

I had a Lenovo laptop with Windows 8 on it but I wanted to switch to Linux Mint. After disabling UEFI secure boot and some other things I managed to get Linux Mint installed on the 24GB SSD. I'm new ...
6
votes
2answers
226 views

Regex `/pattern/g` and ed `:g/pattern/`: which came first, and why `g`?

The g option (e.g. s/pattern/replacement/g) for many tools that use regex-style pattern matching and the :g command in ed, ex, vi, and vim have pretty similar usage and meaning: match the given regex ...
3
votes
1answer
907 views

Not able to change default group for user with `sudo usermod -g` [duplicate]

I have looked at the questions and answer here at U&L but I still cannot get my default group to change from a user. [red@ws-red-l ~]$ whoami red [red@ws-red-l ~]$ groups yellow green ...
3
votes
1answer
197 views

How to compile a downloaded .zip file

I've downloaded this zip file from GitHub and I need to compile it. I have no idea how to go about the compilation.
0
votes
0answers
2k views

Driver for Validity sensor 138a:0018

Does anyone know a driver which supports Validity sensor in HP Pavilion dv6 Notebook? I'm running Linux Mint 16 Cinnamon. If there isn't any driver, can I run the Windows version of the driver for it ...
5
votes
2answers
3k views

How to remove cache device from bcache?

I believe, that once I made sure my cache device state is "clean": $ sudo cat /sys/block/bcache0/bcache/state I can just physically remove it from the machine when it is powered off or boot with ...
3
votes
1answer
290 views

How do I re-stream a filtered video stream using VLC?

I have an input RTSP stream that I want to apply the "cartoon" gradient filter to before streaming on http. I've managed to stream and apply the filter to the local playback, but the http stream does ...
3
votes
4answers
11k views

How to login as root from Bash and do stuff

This is my simple bash: cat test.sh #!/bin/bash echo "hello" su - root -c /path/to/script.sh <<EOF password EOF whoami echo "good bye" But I get this error: ...
4
votes
2answers
555 views

Unable to delete files to trash in a bind-mounted filesystem

I'm trying to set up shared home directory for two Linux installations and thus I'm using bind-mounts. My user is named dbz and his home directory is /home/dbz. I also have shared directory ...
5
votes
3answers
2k views

paste command: setting (multiple) delimiters

In Linux, I have the following problem with paste from (GNU coreutils) 8.13: Trying to set another delimiter than the default (TAB) results in either just printing the first character of the defined ...
0
votes
0answers
83 views

Problems connecting to IRC server from VPS

So I'm running a CentOS 6 VPS that I've got irssi installed on. I'd like to run irssi as a permanent connection to an IRC server so I can log in from anywhere and not lose my conversations. Irssi ...
3
votes
1answer
195 views

Some software runs only by root terminal

I'm facing this odd situation here, programs such as gparted, furiusisomount and Rstudio never run by clicking on their icons in the applications menu or by running them with terminal as a normal ...

15 30 50 per page