1
vote
1answer
1k views

Batch encryption using a public GPG key

I've written a little script for my Clonezilla USB stick which will allow me to quickly back everything up without entering any options by simply running the script. Next, I'd like to store my public ...
2
votes
1answer
817 views

How to mount software RAID-5 created by Windows under Linux?

At our university we have a Windows FTP server that was implemented with software RAID-5 technology, but we decided to migrate to Linux. How can we mount and modify it under Linux?
1
vote
1answer
200 views

rm -r path : how to avoid being asked at each level?

How to avoid being asked at each level if I want to delete that path? I just want to remove everything in a path?
4
votes
1answer
433 views

Magic trackpad natural scrolling interruption

I have my Apple Magic Trackpad connected to my Ubuntu 12.04 distro and it's working great with a custom xorg configuration file at /etc/X11/xorg.conf.d/60-apple-wireless-trackpad.conf: # ...
2
votes
3answers
649 views

denyhosts is blocking existing users from logging in from unknown (new) IP addresses

I have denyhosts set up and working on Ubuntu 12.04. It apparently works well, except it is too strict. I can log in from any IP address that I have added to hosts.allow in advance. My sshd_config ...
3
votes
3answers
4k views

Node installation: No module named gyp.common

I was trying to install node.js on CentOS 6.4 VirtualBox guest on a Windows XP host with the following commands: cd /usr/local/src/ git clone git://github.com/joyent/node.git cd node ./configure make ...
1
vote
1answer
142 views

After I log in, Debian stops registering input

So I just installed Debian on my (other) computer, and I've run into an interesting problem: once I log in, the keyboard and mouse buttons don't work. I can move the mouse, but clicking does nothing, ...
1
vote
1answer
343 views

missing files after reassemble of RAID-5

I had to open my file-server's housing today to replace a faulty fan. What I didn't see was that one of the sata-cables was not properly connected. The 1st thing I did after a reboot was a check of ...
3
votes
1answer
544 views

Merging preexisting source folders in mksquashfs

In this answer on a previous question, I found out how to modify files in a squashfs filesystem: # unsquash the filesystem to a local directory sudo cp /media/clonezilla/live/filesystem.squashfs ./ ...
3
votes
1answer
817 views

Ubuntu styled notifications in Linux Mint

I recently installed Linux Mint 15 with Cinnamon. It ran smoothly after forcing a kernel update by activating visibility of "Level 5" "dangerous packages". Later, after a post-update reboot, my ...
1
vote
0answers
813 views

Caps lock delay problem

With using caps lock for word capitalization, when I type fast using my Linux distro, I get the following: CAps LOck NOt WOrking PRoperly. I tried the same keyboard on a windows machine, it works ...
6
votes
5answers
5k views

How can I run an hdparm command after boot and resume on Fedora 19?

I bought a new HD(WD5000BPVT) which unfortunately tries to sleep every 5-8 seconds. Not only is the clicking noise quite audible, the 1-second spinup time adds very noticeable latency in day-to-day ...
2
votes
1answer
222 views

Is it alright to have two PATH variables in .bash_profile

I am trying to setup Metasploit on osx 10.7, but I need to edit my .bash_profile and I noticed something unusual to me. I have been reading about setting the environment variable on ...
9
votes
2answers
3k views

/etc/sudoers - Insults - How to add a list of insults?

I intend to play with the linux insults and add a few. However, i only could figure how to add a single insult but not a list or the location of the file that contains the insults.
31
votes
4answers
2k views

Append huge files to each other without copying them

There are 5 huge files ( file1, file2, .. file5) about 10G each and extremely low free space left on the disk and I need to concatenate all this files into one. There is no need to keep original ...
16
votes
6answers
17k views

Why using more threads makes it slower than using less threads

Tried to run program X using 8 threads and it was over in n minutes. Tried to run same program using 50 threads and it was over in n*10 minutes. Why does this happen and how can I get optimal ...
1
vote
2answers
2k views

Use FOR Loop inside END block of awk command

I'm trying to find the average number of files per day. The following script works: #!/bin/sh ls -l | grep "^-" | awk '{ key=$6$7 freq[key]++ } END { for (date in freq) printf ...
1
vote
1answer
1k views

How to filter an array of strings in ksh

Please advise what's wrong in my ksh code. I want to remove the IP's as defined in "bb" array from "aa" array so the IP's 255.0.0.0 and 255.255.255.0 will be removed from the list in aa array. When ...
2
votes
1answer
859 views

View song's title on terminal

How to view currently playing song's title on terminal using vlc media player?
2
votes
1answer
8k views

What to do after the LUNS are created

Our Management bought a New EMC2 VNX storage device . And a guy from vendor came to create the LUNS. I honestly have no idea how to configure the EMC SANS as i never got a chance to work on such ...
3
votes
2answers
605 views

convert bulk of text files to pdf with naming based upon header file

Knowing that "How to convert from text to .pdf" is already well answered here link and here link, I am looking for something more specific: Using Claws-Mail [website] and a Plug-In [RSSyl] to read ...
2
votes
2answers
253 views

ksh + delete number from string

the string IP include some IP address numbers as the following example echo ${IP[*]} 192.9.200.1 192.9.200.2 192.9.200.3 is it possible to remove some IP address number from the list ( using ksh ...
0
votes
1answer
376 views

stream a certificate to stdout to download it in php

Related Questions : when downloading certficate binary data , result is invalid certificate Download binary stream data from browser using PHP with web service “ downloaded file is corrupted ” ...
1
vote
2answers
2k views

How to cut file name not actual file

I have a list of file names like ./run_results/rat/coding_exons/0.01_100_best.txt ./run_results/mouse/introns/0.01_100_best.txt I want to create new files with names like ...
11
votes
3answers
6k views

cat all lines from file, which are after “KEYWORD” [duplicate]

I have a file, with a "KEYWORD" on line number n. How can I print all lines starting from line n+1 until the end? For example, here I would liek to pro=int only lines DDD and EEE AAA BBB CCC KEYWORD ...
0
votes
1answer
358 views

What to do when result from pipe is not last argument in next command

The example below shows what I want to do, namely take the result from my last pipe and put it into the middle of the next command (where I wrote $RESULT_FROM_FIND_COMMAND). $ find . -name ...
0
votes
2answers
79 views

apt config file location

I have my / mounted as read-only (and my /root as well). Every time I start aptitude, it complains that it cannot write to /root/.aptitude/. Is it possible to tell aptitude to use another directory ...
7
votes
1answer
10k views

start autossh reverse tunnel automatically when network comes up

I connect from my home PC thru an Internet server I own to a restricted client (that I also own) using a reverse ssh tunnel. I have a script that sets up the restricted client to middleman leg of ...
1
vote
1answer
455 views

How to remotely check if apache server responds

I have 2 servers. one of them often crashes. I want to send a SMS to my phone when it crashes. I wrote this simple bash script in another server and put it in crontab to run every 10 minutes. wget ...
3
votes
1answer
1k views

Closing lid on Crunchbang

I'm running Crunchbang on a laptop. I can't seem to find an option to toggle if the laptop goes to sleep when the lid closes. There are certain times where I want to put the laptop away or close it ...
1
vote
1answer
7k views

Arch time zone: Wrong time due to local-time hardware clock

My hardware clock is set to local time (GMT +2) and my fresh Arch installation apparently thinks that it is not, so it adds 3 hours to it. I've fiddled with hwclock and timedatectl without hope. I'm ...
0
votes
1answer
105 views

parameter extraction from multiple parameter output in bash?

Here's the bash script I am working on: i/p: ls *.py o/p: List of output files with .py extension 1.How do I know the number "n" of the .py files? 2.Then pump files one by one into the program to do ...
7
votes
3answers
2k views

How does the CentOS installation work from the inside?

I am trying to understand the content of a Linux distribution's ISO image file and how the installation process take place. Here I am specifically talking about CentOS 6.4 in its minimal version. So ...
8
votes
5answers
8k views

How to clone a NTFS partition (WinXP) from a damaged disk to a new one?

I'm an Italian Windows programmer. I know almost nothing of Linux, so please be patient if the question is dumb and pardon my bad english. I need to clone a NTFS partition from a damaged, near to die ...
5
votes
4answers
3k views

What does <<< mean? [duplicate]

What does <<< mean? Here is an example: $ sed 's/a/b/g' <<< "aaa" bbb Is it something general that works with more Linux commands? It looks like it's feeding the sed program with ...
1
vote
1answer
337 views

Correct diacritics in a mysql dump on CentOS

On my CentOS server, I have got a dump file of a mysql table which contains special czech characters in it (e.g. á, é, č, ž). When I view the file using cat, the special characters are broken (e.g. ĂĄ ...
3
votes
1answer
723 views

Streaming music to a raspberry pi

I have a laptop and a raspberry pi connected to a soundsystem via the jack output. I'd like to have the output of the soundcard of my laptop redirected to the raspberry through my local network. I ...
0
votes
1answer
62 views

Random file accesses to server's ip

[Sat Jun 22 13:07:06 2013] [error] [client 208.80.194.26] File does not exist: ...
0
votes
0answers
809 views

Steam Launch Segfault on Arch (steam.sh line 704)

Launching Steam on Arch Linux crashes with the error: /home/matthew/.local/share/Steam/steam.sh: line 704: 4013 Segmentation fault (core dumped) $STEAM_DEBUGGER "$STEAMROOT/$/PLATFORM$/STEAMEXE" ...
16
votes
4answers
3k views

Why is cp --reflink=auto not the default behaviour?

Why is cp --reflink=auto not the default behaviour? Could it cause any harm to enable it? Is it possible to enable it at compile time, so it is used all across the system, not just in interactive ...
3
votes
1answer
8k views

How to deal with a package “not upgraded” using aptitude?

I'm (still) on Debian Squeeze. When I try to upgrade the system, here's what I get: [09:20]/root# aptitude upgrade No packages will be installed, upgraded, or removed. 0 packages upgraded, 0 newly ...
7
votes
3answers
8k views

How can I cd into a directory as root?

Let's say there's a directory that I don't have the privileges to access. Obviously sudo cd foo won't work, because cd is a shell builtin in every shell ever. So far, I've just been using sudo bash ...
65
votes
3answers
6k views

How do the internals of sudo work?

How does sudo work internally? How is it possible that it can become root without having the root password, unlike su? What syscalls, etc. are involved in the process? Is it not a gaping security hole ...
0
votes
0answers
46 views

User drive is not showing

I'll try my best explaining this: /dev/disk0 /dev/disk0s1 /dev/disk0s2 disk0 does not show up at all, when I login even my desktop is completely blank with no dock nor toolbar so even to logout is ...
2
votes
1answer
49 views

How can I know the dependency packages for an installed package?

Let's say I installed foo. The foo package depends on bar, so bar was installed to satisfy foo's dependency. How can I get Ubuntu/APT/dpkg to tell me that bar is installed because foo is installed? ...
0
votes
2answers
58 views

Emacs ssh connection abbreviations [closed]

When connecting to a remote server via ssh in bash I use abbreviations in ~/.ssh/config file: Host aaa HostName aaa.ssh.myhost.com User user1 So I can connect to aaa.ssh.myhost.com, typing: ssh ...
1
vote
1answer
2k views

Looking to build a low powered linux based firewall

I am looking to build a low powered linux based firewall. I need a reliable piece of hardware that has two (2) LAN inputs and a built in wifi. Fanless and low power system. any recommendations? Any ...
1
vote
2answers
88 views

Associating variable with specific for loop file

I want to use for for a set of files. for file in fileA fileB fileC; do COMMAND $file $variable done For every $file I want to use specific $variable. (for example: fileA variableA; fileB ...
3
votes
2answers
391 views

Determining if a file system object is a procfs/sysfs/etc. “virtual file” which doesn't report its length correctly

Some kinds of pseudo-files, like many in the procfs and sysfs virtual file systems, have no file size (stat returns st_size == 0) and do not support SEEK_END in fseek. These file system objects, such ...
3
votes
2answers
4k views

using bash script to output new script: need mixture of variables to be replaced and not replaced

I'm having a problem with bash variable substitution. Here's a silly example of what I am trying to do. I need to output a new script from a bash script. A line (see echo in my example) has a mixture ...

15 30 50 per page