5
votes
1answer
2k views

What is the meaning of ps process names printed in [] such as [cgroup]? [duplicate]

when I do a command such as ps -aux on CentOS 6 I get a bunch of processes whos command is listed in [] as shown below. What is the meaning of the [] in the name? I am assuming that these are special ...
2
votes
2answers
2k views

Powersave governor as default Arch

I try to change governor from "ondemand" to "powersave" like wiki says ( https://wiki.archlinux.org/index.php/CPU_Frequency_Scaling#Scaling_governors ), but everyway I want to change it, Arch always ...
7
votes
1answer
2k views

Idiomatic location for file based sockets on Debian systems

I am writing a daemon process for a Debian system in C that uses a Unix Domain Socket. If the deamon process's working directory is the root directory, is there an idiomatic directory to place the ...
5
votes
1answer
7k views

Arch Linux on Virtualbox Internet Connection Issue on VirtualBox

I have successfully installed Arch Linux on VirtualBox but the internet is not working in it. There was no issue with the internet connection during the installation but when I boot from the virtual ...
4
votes
1answer
6k views

Configure Lightdm (GTK) for last saved or a default user and focus on password?

I've looked at the man pages and the configuration files but found nothing (but maybe I'm missing something). I see only many options for autologin. From a few googles I've read that the KDE version ...
1
vote
4answers
340 views

Adding KDE to Ubuntu

I seem to have installed KDE on Ubuntu 13.04 desktop, by issuing sudo apt-get install kompare. The reason was rather esoteric – I wanted to use the Kompare utility, that's all. My Ubuntu is ...
1
vote
1answer
1k views

audio recording - record two sources simultaneously, merge into a single 2-track recording

How can I record two audio sources at the same time and create a file where one source is the left channel and the other source is the right channel of a lossless stereo audio recording? My distro ...
28
votes
6answers
43k views

Sorting files according to size recursively

how to scan a folder recursively and find the largest files in the folder, and sort them by size. I have tried using ls -R -S but it tends to list the directories as well I need to scan the folders ...
0
votes
1answer
95 views

Add Chakra os benz to grub 1.99

I have Debian 7 with grub 1.99 in sda1 and Chakra OS without grub in sda2 I want to make a dual boot via grub 1,99, how?
3
votes
2answers
254 views

How to get rid of ogg information in Linux?

How can I get this "something" out of the .ogg file? How can I clear comments/infos like this from the file? $ strings foo.ogg |grep -i SOMETHING ARTIST=SOMETHING $ OS: Scientific Linux 6.3
1
vote
1answer
1k views

How to enable CGI in OpenBSD?

I installed an OpenBSD 5.3 in Virtualbox. Webserver is apache: httpd_flags="" in rc.conf. httpd.conf # cat /var/www/conf/httpd.conf ...
5
votes
2answers
247 views

Filtering the result of the find command, so that it returns only directories

Is it possible to get only the results from find that are directory paths? Using find with some option, or using grep or some other utility the results are piped into as a filter? I thought something ...
2
votes
0answers
596 views

errors from Windows clients accessing printer via Samba despite CUPS working

On CentOS 6.4 (newdc), I have CUPS 1.4.2-50.el6_4.5 installed, can access its web interface. There I set up our main shared printer, an OCE Imagistics cm2520, and successfully printed a test page. ...
2
votes
0answers
2k views

Problems with sound in Linux Mint 15 on video

Problem: I think you'll enjoy this fun problem. I set-up a dev/media server. Steps to reproduce: Start up any video file (with Banshee or VLC or xfce player - doesn't matter) -- all is well. Sound ...
4
votes
2answers
4k views

How to run a remote sed command through ssh if the data includes double quotes (“”)?

I'm trying to run through a list of servers and run the next command: itaig@itaig-lt:~$ ssh root@$srvname "sed -i 's/VNCSERVERARGS[6]="-geometry 1920x1080"/VNCSERVERARGS[6]="-geometry 1152x864"/g' /...
2
votes
1answer
649 views

Can't Log into Fedora 19 after force shutdown

I was exploring my new fedora 19 after a crash in KDE (I don't know what I just did). I couldn't shutdown my laptop either with the graphical method or the terminal way (because the terminal refused ...
0
votes
1answer
783 views

How can I split a file into multiple files based on pattern using perl? [closed]

How can I split a file into multiple files based on pattern using perl? Ex: input to be a .txt file, name of the output file stored in another .txt file
11
votes
5answers
18k views

Print Matching line and nth line from the matched line

I am trying to print the matched line and the 4th line from the matched line (line containing the expression I am searching for). I have been using the following code: sed -n 's/^[ \t]*//; /img class=...
4
votes
1answer
685 views

What is the effect of setting immutable bit on /boot partition [closed]

What is the effect of setting immutable bit on /boot partition with perspective of security. is it advisable to set the immutable bit (-i) to everything under /boot? Will it enhance or degrade the ...
3
votes
4answers
3k views

How to use the grep result in command line?

When I use grep to find some text which I need, it will display lines containing a match to the given pattern. For example, # grep -r ".*Linux" * path0/output.txt:I hope you enjoyed working on ...
3
votes
1answer
6k views

Set up firwall with iptables to only allow VPN

Im using IPredator VPN with openVPN and I want to make sure that if the connection is dropped, i wont submit data from the internet without the VPN. I heard that I could do that with iptables and a ...
2
votes
1answer
54 views

IPTABLES chain need help for restriction

I have two network cards eth0:- 172.16.91.70 (External Zone) eth1:- 172.16.85.70 (Internal Zone) I have clients in my Internal Zone which can access the external network. The ping goes fine and can ...
5
votes
2answers
1k views

PDF viewer with reflow capabilities for linux?

Anyone know of a PDF viewer for linux that can reflow text on the fly? There are a few for android, and at least one for windows, but I haven't found any for Linux. NOTE: I'm doing this on a 1600x900 ...
0
votes
1answer
430 views

How does this bash statemnet test “.$TOMCAT_USER” = . && TOMCAT_USER=tomcat work?

I am trying to understand the tomcat daemon.sh script which contains a bunch of lines along the lines test ".$TOMCAT_USER" = . && TOMCAT_USER=tomcat I figured out that test ".$TOMCAT_USER" = ...
2
votes
0answers
20 views

Change name of em1 to eth0 in Fedora 19? [duplicate]

I have already followed the instructions here but it doesn't seem to work, as my ifconfig output still shows the same "em1","em2" and "lo". I just need a way to rename one of these to eth0 in Fedora ...
2
votes
1answer
1k views

record audio on Linux - capture both sides of a VoIP conversation

I want to use Audacity (or similar) to record audio for podcasting. The podcasts will be interviews conducted via voice-over-IP (SIP) telephone. I came across an excellent tutorial here: http://www....
4
votes
1answer
3k views

Random mac address at startup [closed]

I would like to get a random mac address everytime I turn on my linux machine (debian). Is this possible? If so, how?
4
votes
1answer
2k views

Mirror displays on Mint 15 login screen

I have the Mirror Displays enabled on my Linux Mint 15 Cinnamon 64-bit box, which has a GTX 680 graphics card installed with recommended drivers. I selected the top green one in this screenshot. ...
1
vote
3answers
209 views

selecting rows that have the same value [closed]

I have a problem in selecting rows that have the same value. My data is too huge to go row by row to do that. I want you guys to let me know scripts that can perform this. My data looks like as ...
2
votes
1answer
554 views

Arch CPU temperature much higher than on Debian [closed]

I switched to Arch Linux from Debian/Crunchbang and noticed much higher temperature. It's almost the same configuration: openbox, etc and Arch runs with 57-70 °C but Debian works with 43°C - 50°C I ...
12
votes
1answer
10k views

Linux as router with multiple internet providers

Linux as router: I have 3 Internet providers, each with its own modem. Provider1, which is gateway address 192.168.1.1 Connected to linux router eth1/192.168.1.2 Provider2, gateway address 192.168.2....
5
votes
2answers
14k views

how do I configure my RHEL5 or RHEL6 system to use ldap for authentication?

I have root access to a RHEL6 system and I want to use the corporate ldap server where I work for user authentication. I ran authconfig-tui and checked [*] Use LDAP and left [*] Use Shadow ...
3
votes
1answer
2k views

USB keyboard only works intermittently in GRUB 2 on reboots - how to make it work consistently?

Something weird is going on with my keyboard. The keyboard is a USB-connected Unicomp, which works absolutely flawlessly once the computer is up and running. However, GRUB 2 (specifically, 1.99-27+...
7
votes
5answers
11k views

How to securely allow scp, but not ssh

I work from a Mac Book Pro (called foo). I have a server where my customers scp large files to. (called bar). I frequently ssh into bar, and scp a file (called buzz) to my Mac. bob@foo$ ssh bar ...
3
votes
2answers
681 views

Writing scripts that use different commands in different shells [duplicate]

How can I write a script that is shell independent? I want to be able to run one script which will run in ksh, sh and bash. For example: If I have a line in my script like whence ls which will run in ...
4
votes
2answers
1k views

Exiting out of an infinite reboot loop in startup (rc.local)

I am creating a startup script (called from rc.local) in Debian Squeeze. The startup script checks for a variable value from a file, decrements the variable and writes it back to the file, then if the ...
7
votes
1answer
6k views

How to get Oracle java 7 to work with setcap cap_net_bind_service+ep

I am trying to grant the java executable the right to open ports below 1024 on Linux. Here is the setup /home/test/java contains the Oracle Server JRE 7.0.25 CentOS 6.4 Here is what getcap ...
1
vote
1answer
175 views

How to dual boot windows 8?

I just installed debian on my computer which has windows 8 from before (has 2 hds installed debian on the storage hd), however it booted straight into windows 8 without loading grub or anything. What ...
1
vote
1answer
305 views

DNS zone fallback file

I have the following DNS zone(bind): zone "." IN { type master; file "named.root"; }; If this zone directive cannot resolve the address, how can I "fallback" to another file for the same ...
2
votes
1answer
77 views

Text-based file navigator with search as you type

How do I set up Midnight Commander or other text-based file navigator so that when I start typing it searches the first directory or file matching the typed text?
6
votes
1answer
288 views

Deploying filesystem images onto a partition of arbitrary size

I would like to establish a deployment process for Ubuntu machines based on root FS images. I would like to restore the image onto a simply-formatted hard drive (I can completely erase the disk during ...
6
votes
4answers
766 views

How to log into database via script securely?

I am wondering about whether it is acceptable (security-wise) to have database login credentials (user/pass) set in an environment variable or passed in as a command-line parameter? Both of these ...
1
vote
1answer
69 views

What part of the Linux kernel determines the execution order of userland apps? [closed]

Stripping the source, I can't pinpoint which part of the kernel sets and manages the userland apps, and how it does it. For example, in the Linux main source, is the procedure have options to set ...
1
vote
6answers
183 views

How to rename directory from all user accounts

Let say that more users have a tmp directory in their home directory. I want to rename each tmp directory in each user home directory. What is the easiest way? Something like this: sudo mv /home/*/...
2
votes
2answers
3k views

What are the implications of setting LC_ALL on Solaris

To support an application we just installed, I've been asked to add this command to the /etc/profile file on our Solaris 10 UNIX server: LC_ALL=en_US.UTF-8; export LC_ALL The effect of this changes ...
2
votes
0answers
127 views

Resize /home on CentOS vmware guest

I have a new vmware guest, let's say I want to extend it from 100 GB to 300 GB My question is how to insert all the 200gb into /home? Where can I start? df -h displays:
1
vote
1answer
455 views

How achieve variable indirection (refer to a variable whose name is stored in another variable) in tcsh

I'm trying to do the following: set a = kitten set temp_kitten = purr echo ${temp_$a} I want the echo command to return "purr". The overall idea is that I have a bunch of variables in an array and ...
1
vote
1answer
261 views

install BIND9 AS A source RPMs

I want to install BIND9 with its source code on Linux (CentOS 6.3), we know by using yum install bind* we don't get the source code, we get only the binary files. Can anybody explain to me how to ...
6
votes
3answers
2k views

Nmap -sn: scan or no scan?

The nmap man page has this to say about the -sn parameter: -sn (No port scan) . This option tells Nmap not to do a port scan after host discovery, and only print out the available hosts that ...
4
votes
3answers
409 views

Simplified navigation in terminal

I know IDEs are the wave of the future, but I always find myself coding in vim in a Linux terminal. Old dog. New tricks. Anyway, navigation becomes challenging when dealing with long package names. ...

15 30 50 per page