0
votes
1answer
715 views

newsyslog.conf logrotate when file is older than 6 month

I would like to delete following files with newsyslog.conf when the files are older than 6 month: # logfile [owner:group] mode count size when flags [/pid_file] /mnt/usb/access_*....
4
votes
3answers
1k views

Put text in the bash command line buffer

I would like to programmatically put a certain piece of text in the command line buffer of bash, read to be edited and used as a command. What I am looking forward to is something similar to read -i ...
1
vote
1answer
63 views

Recommended app for elaborating “System Charts” out of a Makefile in Ubuntu?

I'm looking for an application that is capable of plotting graphically as boxes on a chart (System Chart) all the components and operations of a Makefile so that the chart be taped prominently to the ...
53
votes
4answers
13k views

Why is root login via SSH so bad that everyone advises to disable it?

Everybody on the Internet advises to disable root login via SSH as it is a bad practice and a security hole in the system, but nobody explains why it is so. What is so dangerous in enabling root ...
2
votes
1answer
1k views

GUI apps don't inherit PATH from parent console apps [closed]

In Gnome, don't GUI applications inherit the PATH of the shell process that launches them? Apparently, GUI applications see only the PATH specified in ~/.profile. No issues with console applications, ...
2
votes
2answers
15k views

df command not showing correct values

This is a RHEL server, I'm running a MySQL server on it, the database and log files (however, logging is disabled) are located on the /srv directory where plenty of space is available. Recently I had ...
2
votes
3answers
801 views

Memory Mapping Linux 3+ kernel

Can some one help me understand how memory mapping is done Gone through this Why does Linux show both more and less memory than I physically have installed? but still i am not able to understand ...
1
vote
1answer
106 views

Installed Win7 after Ubuntu, Win removed Ubuntu boot option [duplicate]

Completely 100% new to Linux. I recently partitioned my drive to run Windows and Ubuntu simultaneously. Ubuntu installed fine, but then I installed Win7 and suddenly Ubuntu disappeared from the boot ...
1
vote
1answer
501 views

how to get Cisco IOS public key for automatic scp connection

I want to backup the running-config of all switches per SCP to a server. Question 1: is this possible with kron? Is there a better way and why? Question 2: how can I get the public key of the switch ...
1
vote
1answer
3k views

Why does NOEXEC not prevent the specified program from running?

I have tried the NOEXEC in my CentOS6.4 I have edited my /etc/sudo.conf file as below : Path noexec /usr/libexec/sudo_noexec.so and /etc/sudoers: ssh ALL=(root) ALL,NOEXEC:/usr/bin/passwd I am ...
0
votes
0answers
44 views

getting “//” after the URL

I'm running nginx web server. I have not written any rule to redirect abc.com to www.abc.com, I have just added both in server_name directive which looks like, server_name abc.com www.abc.com; My ...
26
votes
6answers
23k views

How do I write a retry logic in script to keep retrying to run it upto 5 times?

I want to write logic in shell script which will retry it to run again after 15 sec upto 5 times based on "status code=FAIL" if it fails due to some issue.
7
votes
3answers
8k views

Where does Firefox store its cookies on Linux?

Where does Firefox store cookies in Linux? I searched everywhere but did not find anything.
2
votes
1answer
1k views

Tmux ranger integration: opening text files in new panes

Here we have some amazing tools: tmux, ranger, vim... Would be amazing to configure ranger to open the files (when text editable) in a tmux newpane? Is that easy and how it is done?
1
vote
0answers
3k views

System proxy settings not taking effect on Kali (debian 6)

I'm in the process of trying to configure TOR on a Kali installation, as a system-wide SOCKS proxy. I just did this successfully on Ubuntu, and it worked like a charm. I installed TOR & Vidalia ...
0
votes
1answer
112 views

install a kernel module into BeagleBoard (BB)

I want to install a kernel module (For example "Hello world") on the BeagleBoard(BB). (The installed OS on the BB is an Ubuntu Linux). If anybody already worked on this could you suggest me a step by ...
2
votes
1answer
449 views

etckeeper for opensuse - bash script install and configure

I want to automate the installation of etckeeper on OpenSuse 12.3. My first issue is that etckeeper doesn't seem to be available in the standard OpenSuse repos. zypper search etckeeper Loading ...
0
votes
1answer
545 views

Is setting CentOS user home-dir as NGINX server block root secure for vsftpd?

This is what I did: CentOS 6.2 server installed nginx installed vsftpd in vsftpd.conf I set chroot_local_user=YES created a new user "bleh" created directory /home/bleh/public_html/ in virtual.conf ...
1
vote
1answer
1k views

SFTP over reverse SSH tunnel?

I want to SFTP to a remote computer that is behind NAT. I can't modify the NAT router, so I have set up a reverse SSH tunnel using a middleman server. Here's what my SSH tunnel looks like: laptop---&...
4
votes
1answer
2k views

How can I use tee and logger -t “some tag:”?

I've seen in another post which shows how to use tee and logger as shown below. tee >(logger) <<< "System Load is OK : $Current_loadadv" >(logger) is bash syntax to create a file ...
2
votes
1answer
632 views

How to disable the automatic mute after booting in gnome?

Whenever I start up, gnome sets the volume to mute automatically. So how can I ask it to remember the volume last time I set before shutting down?
5
votes
4answers
1k views

Why is that when I download a binary from the web it doesn't have executable permissions set, but when I use gcc to build a binary it does?

For example, if I have the file hello.c which just contains: int main() { printf("Hello world"); return 0; } and I built it in gcc with gcc hello.c -o hello I can then run ./hello and it runs....
5
votes
3answers
4k views

What process is accessing a mounted filesystem sporadically?

I have a Solaris 10 server with autofs-mounted home dirs. On one server they are not unmounted after the 10 min timeout period. We've got AUTOMOUNT_TIMEOUT=600 in /etc/default/autofs, I ran automount -...
0
votes
1answer
856 views

Tab autocomplete for files with spaces in it [closed]

How do I tab autocomplete for files with spaces in it? Thanks.
3
votes
1answer
2k views

Bonds vs. Aggregators

I'm almost to the point where I can post the solution I wound up with for my complex port bonding question. However, in reading the bonding.txt file, I see this option text: ad_select Specifies the ...
0
votes
3answers
2k views

Yum Returns Errors when using

When I try to use Yum (e.g. # yum update) I get an error and it prevents me from using Yum. Any help on this would be really cool! This is the error that I get when I try to run a Yum command: # yum ...
2
votes
1answer
3k views

virt-install complains “error: no such option: --network-bridge:br0”

I was following the directions here to set up a VM in CentOS 6.4 i386/686. But I'm getting this error: $ sudo virt-install --network-bridge:br0 --name vm1 --ram=1024 --vcpus=1 --disk path=/var/lib/...
18
votes
3answers
34k views

convert a hex string to binary and send with netcat

I have a binary file that I can send with netcat: $ nc -l localhost 8181 < my.dat The file contains this: $ xxd my.dat 0000000: 0006 3030 3030 4e43 ..0000NC What I really ...
1
vote
4answers
2k views

using scp command to transfer files keeping the same names intact?

Using scp command I want to move files from local system to a remote system. I'm doing something like this: $ scp file1 root@abc:root /root/tmp With this command I'm able to upload file1 to abc:/...
4
votes
2answers
929 views

Is it possible to copy data from one screen session to another?

I recently needed to copy X amount of lines from a file, that I opened in vim and then paste them to another file opened in a different screen session (and different server). So on screen #1 I ran in ...
6
votes
1answer
2k views

How is cron scheduling actually implemented and makes sure scripts run on time?

I want to ask about cron jobs. OK, we place the scripts in the crontab and the cron daemon executes them. Now if I understand this, each minute, cron checks the crontab of each user and executes the ...
3
votes
1answer
220 views

Bootup prompt for ecryptfs password

Is it possible to setup ecryptfs mounts to prompt for password upon bootup? Say for example /home and /var are ecryptfs folders that need to be mounted; how do I force a prompt upon bootup to ask for ...
0
votes
1answer
369 views

problem reading and comparing files using nested loops [closed]

while read newfile <&3; do if [[ ! $newfile =~ [^[:space:]] ]] ; then #empty line exception continue fi # while read oldfile <&3; do if [[ ! $oldfile =~ [^[:space:]] ]]...
4
votes
1answer
67 views

Whether monitor is off without appealing to X or /proc

How can I know whether the monitor is on or off if X is not running, and without appealing to /proc/acpi/video? The latter isn't available from my kernel. If X is running it's just a matter of $ ...
1
vote
3answers
6k views

Count number of lines with a certain value in a column for all files in directory recursively

I have 40 files in a directory and I want to count the number of times there is a line with a "2" in the first column in each file individually. I am trying something like this, but it prints out ...
10
votes
3answers
8k views

Loop through the lines of two files in parallel [closed]

The object of the script I'm making is to compare two series of files. The file names are themselves stored into two separate files, one path per line. My idea is to have two while read loops, one for ...
8
votes
1answer
5k views

Showing type of newline character in Emacs

How can I have Emacs display the type of new character? I am looking for something similar to what Notepadd does (see below). I read that Emacs comes with M-x whitespace-mode but this doesn't seem to ...
6
votes
3answers
2k views

Can one scan with fsck a read-only partition?

I have a file system that has some "unlinked inodes" and for this reason it was mounted as read-only. As I understood, to get this device into rw-mode, I need to perform partition check with fsck. All ...
2
votes
1answer
2k views

Installing KVM on CentOS 6.4 without GUI (yet)

I've installed CentOS 6.4 from the 'minimal' iso, so it doesn't come with a GUI. Will this question's answer allow me to install KVM, or do I need to install KDE or X-server or something first?
3
votes
1answer
516 views

Corrupted PDF: Opens fine, but pyPdf bails with AssertionError

I received a PDF in an email and I want to crop and rotate it because it has two pages per sheet. Trying the solutions in Split pages in pdf I had problems with "AssertionError" in pyPDF and "Warning: ...
3
votes
1answer
474 views

Linux signals logger

I'm looking for a signals logger for the Linux kernel, without patching of kernel. I found many articles with patching, but I am not interested in that. I'm running default Ubuntu 13.04. # uname -a ...
0
votes
1answer
104 views

locating somebody on IRC servers over the Internet

Is there a way to locate somebody by his nick or IP address on the internet's IRC servers? I guess the protocol doesn't seem to support it! Still... can it be done? like crawling the web for IRC ...
0
votes
1answer
3k views

nmap failed to determine route

I have set about trying to learn nmap, though for some reason it does not work I keep getting the same error, the only time it works is when I specify loopback address, this is the error I get ...
3
votes
2answers
1k views

Display Server vs. Window Manager vs. Graphics Driver?

I am trying to sort my understanding of the different part of graphics on Linux, and I am confused as to the roles played by each of the following concepts. Display Server Window Manager Graphics ...
0
votes
1answer
973 views

Catch all emails and save them in MySQL

I want to do something like Facebook has with it message system. When you reply to email sent from Facebook User, it automatically gets in his message box. This is done, because you reply to {...
0
votes
2answers
11k views

Read the output of a command into a variable [duplicate]

I am making a bash script but I'm totally new and got lost. I've made this code cat * | grep "|*parameter1*|" | grep "|*parameter2*|" | cut -f 8,11,12,15,21,23,34 -d "|" | wc -l which works just ...
1
vote
0answers
264 views

Why is my graphical desktop running on TTY1

I recently installed gnome-shell on my new Archlinux and X is running on TTY1. Is this is a normal behaviour? screenfetch -` .o+` rkmax@...
0
votes
0answers
261 views

Gnome3 memory comsuption high

I recently installed ArchLinux on my desktop. I simply installed the base system and installed GNOME and GDM and the system work "fine". However today (after 10 hours) when I tried to open any ...
0
votes
2answers
242 views

How to manage all logs on VPS

I'm new to Linux but I'm about to start using a VPS to host my website. I've been reading about and it's been mentioned that I need to make sure that all of my logs are rotating and compressed, but I ...
0
votes
2answers
721 views

How does strace know to use /bin/echo instead of failing on a built-in

When I do strace echo hello, I see it is using /bin/echo, but built-in echo should be found first. Is it a functionality of strace to skip built-in commands? strace -- version 4.5.19 I understand ...

15 30 50 per page