4
votes
2answers
5k views

File descriptor and fork

When a child is forked then it inherits parent's file descriptors, if child closes the file descriptor what will happen ? If child starts writing what shall happen to the file at the parent's end ? ...
2
votes
1answer
184 views

Configuring Org-mode to open PDFs with evince

I'm starting to use org-mode to export text to LaTeX. My problem is that it opens the generated PDF with ebook-viewer (it is a EPUB, CHM reader) instead of using evince. Question Does anyone know ...
9
votes
1answer
1k views

How to tell if mysterious programs in nethogs listing are malware?

This is what I see in Nethogs: I'm concerned about the listings with PID ?, running as root. How can I find out what these are? I'm running Linux Mint 14. Please let me know what other information ...
2
votes
2answers
788 views

How to use -d in ntfsundelete?

As far as I can tell from the manpage of ntfsundelete getting a file back is done with e.g. ntfsundelete /dev/sdb3 -u -m important.txt which would undelete the file in-place. If I don't want in-...
13
votes
3answers
4k views

Search for mail content with mutt

Is it possible to use to search for specific mail content using built-in functionality of Mutt? Or, as last resort, how can I configure grep to be used in Mutt ? The documentation only mentions the ...
4
votes
0answers
562 views

Upstart reload does not work

On a virtualised Ubuntu, I used the command $ foreman export upstart /etc/init -f Procfile -e conf/development.env -u ubuntu -a my_app -t upstart And can now start my_app using $ sudo start my_app ...
7
votes
4answers
2k views

uniq a csv file ignoring a column, awk maybe?

Given this file (annotations are not part of file, but form part of explanation)... x,a,001,b,c,d,y x,a,002,b,c,e,yy x,bb,003,b,d,e,y x,c,004,b,d,e,y x,c,005,b,d,e,y # nb - dupe of row 4 x,dd,006,b,...
2
votes
2answers
2k views

How can I replace a tty using getty with qingy on ubuntu 12.04 or later?

Qingy is a getty replacement. I'd like to use it for a tty terminal on Linux Mint 15 (in hopes of getting tmux to get proper 256 colors in tty which fails with fbterm) which means replacing getty. ...
22
votes
3answers
34k views

How to disable USB autosuspend on kernel 3.7.10 or above?

I've updated my HTPC from kernel 3.7.10 to 3.10.7 and it seems CONFIG_USB_SUSPEND is now gone from the kernel options and included in PM. The main problem I'm facing is that I have an external HDD ...
6
votes
2answers
2k views

Copy all dotfiles except for `.git` and `..`

I am aware of using .[!.]* to refer to all dotfiles in a directory with the exception of .., but how might one refer to all dotfiles except for .. and .git? I have tried several variations on .[!.||....
0
votes
2answers
262 views

How to write a job in Perl?

I have had very minimal experience in writing jobs. A long time ago, I had written a very small simple java job for reading and writing files using tasklet in java. Now I have to learn how to write ...
0
votes
1answer
65 views

Debian package available for ia64 but not for x86_64?

I want to download aptitude to build it from source on my 64bit machine. It is a Thinkpad with a normal x86_64 CPU, nothing special. The download page only has: alpha amd64 armel armhf hppa hurd-...
1
vote
1answer
143 views

doubt regarding use of split in awk

arr=($(echo "great#man" | awk '{split($0,a,"#"); } END {print a[0]; print a[1];}')) echo " ${arr[0]} " echo " ${arr[1]}" My expected output is: great man But I am getting great arr[...
1
vote
1answer
2k views

Installing Packages Offline On Linux Mint

Is it possible to create a linux software package on windows ,store it on a USB stick and then install it on a linux system which is not connected to the internet ? For example I would like to ...
0
votes
1answer
5k views

Installing php phalcon extension

I am unable to install phalcon php extension by folowing these steps. I use 64-bit Linux Mint 14 Nadia. http://docs.phalconphp.com/en/latest/reference/install.html#linux-solaris-mac For the ...
0
votes
1answer
50 views

Want to dual boot MBP with Linux [duplicate]

I just upgraded to a 1tb HDD in my MacBook Pro (non-retina) and would like to dual boot from OS X to a linux distro. I'd like to find out a few things so I can be better prepared and informed for ...
21
votes
5answers
13k views

Block Particular Command in Linux for Specific user

How to block command, let say mkdir for specific user ? What I did just created read-only function and store in users profile ~/.bashrc /bin/mkdir() { echo "mkdir command not allow for you" ...
5
votes
1answer
7k views

Cron job does not fire up after a timezone change

I've tried eliminating many of the common errors, 1) ensuring that the PATHs are available for cron 2) there is an endline at the end of crontab file 3) the timezone is set-up by: cd /etc cp /usr/...
4
votes
3answers
558 views

ls on device without mounting it

Is it possible to run ls on a device without mounting it first? Something like this: # ls /dev/sda1
4
votes
1answer
222 views

hosts.allow: %u not working (log username)

I need to keep track of all SSH connections on my server. In my /etc/hosts.allow I have something like this: sshd: ALL : spawn ( echo "`date` from %u %a " >> /var/log/ssh/%d.log ) & where ...
14
votes
4answers
10k views

less command and syntax highlighting

I need to use the less command with the syntax highlighting of the vim command for python, C, bash and other languages. How do I apply syntax highlighting colors according to vim colors for less ...
1
vote
1answer
58 views

How can I know how long it takes to run updatedb daily job?

I'm using CentOS6.4 and updatedb is running as a daily job. What should I do if I want to know how long it takes for updatedb to run?
0
votes
1answer
2k views

linux + xzcat command

Please advice from where ( which site ) I can download the xzcat Linux command? I am using linux version 5.4 I tried to download the xzcat from the site: http://www.filewatcher.com/m/xzcat.2-0....
4
votes
1answer
728 views

Periodic filesystem replication wih snapshot

I'm looking for a non-realtime replication solution that supports periodic snapshot. Here's my current situation: I have 2 email servers running Ubuntu 12.04 LTS The mail server program I use is ...
4
votes
1answer
310 views

What utilities do I need to begin android development on Ubuntu?

I already would work by some Cortex-A boards(for instance Cubieboard, Marsboard,...) I've already started working with integrated circuits: Cubieboard Marsboard I've been directed to learn linux, ...
4
votes
2answers
328 views

What does it mean to install a kernel?

What does it mean to install a new version of the kernel. My Linux box gave me this message when I was updating, NOTE, 3.8.13 was the last maintained maintenance release by Greg Kroah-Hartman. ...
2
votes
0answers
544 views

exit code of grep in trap where the script is launched by upstart service

Recently I encountered a problem in ubuntu upstart and trap in Bash shell. I use ubuntu 12.04. The upstart script(/etc/init/player.conf) is: start on (local-filesystems and runlevel [2345]) stop on ...
4
votes
2answers
616 views

Advantage of symlinks over Windows style shortcuts

When I mainly used Windows, to make a shortcut, I could use a regular file detailing where it linked to, with the extension .lnk or .url Now, on Linux, I mainly use symbolic links, which are a ...
5
votes
2answers
1k views

why doesn't 0 0 * * 1 root hostname >> /tmp/hostname.txt work as a crontab?

0 0 * * 1 root hostname >> /tmp/hostname.txt The above cron entry should run midnight on monday and create a file in /tmp called hostname.txt with the output of the hostname command. But it is ...
2
votes
3answers
147 views

when awake from hibernate, will the VIRT column of top command show the swap space used by process?

top - 10:43:31 up 8 days, 1:28, 4 users, load average: 0.72, 0.57, 0.44 Tasks: 180 total, 1 running, 177 sleeping, 0 stopped, 2 zombie %Cpu(s): 8.9 us, 2.1 sy, 0.0 ni, 88.9 id, 0.0 wa, 0....
0
votes
3answers
165 views

If you want to get a future date, why can't you just get the current date and use sed/awk/etc?

I've just looked at this question. The first answer states how to get a future date directly from the date command. Why couldn't you just use text manipulation to increment the date? Basically: date |...
2
votes
1answer
1k views

How to boot Chromium OS verbosely?

I'm attempting to boot the latest Chromium OS 32-bit build from this site. Whilst I'm currently experiencing a typical installation issue (stuck at a black screen after initial loading screen), not ...
3
votes
1answer
248 views

Bandwidth improvements expected from switching to Wayland or Mir?

I was intrigued by this answer regarding why X is not scalable. I'm unable to find any specific speed comparisons between x forwarding on these different protocols. How much % gain in network speeds ...
1
vote
2answers
2k views

How many authorized_keys can/should be set up in SSHD?

I'm following a FreeNX install wiki page for ArchLinux. Right now I'm setting the SSHD parameter for "AuthorizedKeysfIle". And this brings up the question, How many authorized_keys can/should be set ...
5
votes
1answer
193 views

Does the X windowing system suffer from scalability?

One of my professors was telling us about scalability problems, and said that the X protocol was a prime example of a not scalable protocol. Why is that? Is it because it is very hardware dependent? I ...
8
votes
3answers
368 views

How to order files by date in tab completion list

$ 7z l ~/Downloads/Tab How to make the resulting list to be sorted by date, not by name? I currently use special script to list N most recent files in a given directory (and copy the filename ...
7
votes
2answers
1k views

Possible to use brace (permutation) and array expansion simultaneously?

Bash's {} brace expansion syntax allows for creating easy permutations # echo {b,c,d}{a,e,i,o,u} ba be bi bo bu ca ce ci co cu da de di do du However it's not clear to me if/how it's possible to ...
7
votes
1answer
4k views

why have programs like su access to /etc/shadow

Normally only root can access /etc/shadow. But programs like su and sudo can check passwords without running as root. So the question is: Why can these programs access /etc/shadow without privileges? ...
0
votes
2answers
225 views

md5sum check fails for git-man-pages.tar.gz package

When I try to verify the integrity of git-man-pages package I downloaded from "http://code.google.com/p/git-core/downloads/detail?name=git-manpages-1.8.4.tar.gz&can=2&q=" it fails with error. ...
1
vote
1answer
470 views

Apticron notifying about uninstalled packages

I'm using apticron to notify myself about available updates. However, I've got an installation on a VPN that seems to notify about packages I DON'T have installed. For example, it keeps (daily) ...
0
votes
1answer
174 views

Error with g++47 make compilation?

~/cddir>ls hw1 machine.cpp main.o makefile~ report2.txt user.cpp hw11submit.sh machine.h makefile report1.txt report2.txt~ user.h hw12submit.sh main....
9
votes
1answer
236 views

Map a symbol to a specific key

I have the following problem: I use the intl variant of gb keyboard layout, i.e., what you get with: setxkbmap -layout gb -variant intl I use gmail in Firefox, and for some reason, the gmail ...
2
votes
2answers
1k views

How to open the clonezilla initrd.img?

I am not understand why I get the error about initrd.img ( this initrd.img is the original file from clonezilla ISO file cp initrd.img /tmp zcat /tmp/initrd.img | cpio -idm zcat: initrd.img: not in ...
0
votes
1answer
94 views

Drive keeps rebooting and wait for manual fsck [closed]

This is what my datacenter says I've connected monitor to your server and it looks like it was rebooting and is waiting for manual fschk again. Have you rebooted your server? Then fdcservers ...
4
votes
3answers
3k views

Summing up an array inside of awk?

I have the following piece of code: sum1= sum2= declare -a a echo $temp | awk '{split($0,a,","); name=a[1] ; for(i=2;i<=4;i++) sum1+=a[i] ; for(i=5;i<=7;i++) sum2+=a[i] }' This code is ...
1
vote
2answers
178 views

couldn't update git via git clone comand

I am just a beginner in Git. Was following through the documentation and installed Git using source code package. Now, after installing Git, I want to update it (Though it might be unnecessary at this ...
10
votes
2answers
2k views

Script to quickly test all keyboard keys

I need to check some notebooks for bad keyboard keys, and so I'd like to speed that up as much as possible. I found nothing for this specific task, so my idea is a script that reads the pressed keys ...
10
votes
2answers
17k views

How can I find files and then use xargs to move them?

I want to find some files and then move them. I can find the file with: $ find /tmp/ -ctime -1 -name x* I tried to move them to my ~/play directory with: $ find /tmp/ -ctime -1 -name x* | xargs ...
1
vote
2answers
2k views

proxy settings ignored by apt-get manager in Ubuntu 13.04

I am using Ubuntu 13.04 in company network, http proxy works fine with my user account but still I cannot install or update anything with apt-get : Proxy Authentication Required ( Forefront TMG ...
15
votes
2answers
1k views

Is it possible to run pure GNU?

On the GNU Project webpage, there's a subsection called "All GNU packages" which lists the various software in the GNU project. Are there any GNU distributions which use only these packages -- i.e. a ...

15 30 50 per page