3
votes
1answer
346 views

POSIX head and tail not feature equivalent

The documentation for POSIX tail's -n option says that The origin for counting shall be 1; that is, -n +1 represents the first line of the file, -n -1 the last. So tail -n 10 (used later on the ...
0
votes
4answers
2k views

What stuff can be safely removed for disk space sake?

I am using Scientific Linux. So is there any stuff that can be safely removed from disk except /tmp?
1
vote
1answer
7k views

gunzip multiple compressed files to another directory without deleting the .gz files

I have multiple .gz file in a folder and I want to unzip it in other folder through gunzip without deleting parent file. Please help.
-1
votes
1answer
878 views

Convert SVG to PDF in python [closed]

I am trying to convert an SVG file to PDF in python using the svglib and reportlab packages. Here is the SVG file. <?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG ...
2
votes
1answer
397 views

Should I use useradd or adduser?

I am trying to add a new user to the system. I am confused though which command to run: useradd or adduser?
6
votes
2answers
619 views

Linux distro for a developer

I am mainly using Linux for programming. I basically started with Archlinux and Manjaro and I kinda like it. What I really like is the package management. It has a huge collection of new software and ...
1
vote
0answers
655 views

vsftpd virtual user read permissions

I have a vsftp server that services a read-only public space by anonymous login. It works fine. I need to add a few specific users that will authenticate by username/password and they will have ...
1
vote
1answer
802 views

How to set up a blacklist for insmod?

I want to block a certain driver module from loading in the linux kernel. So I created a file in /etc/modprobe.d/cdc_acm.conf. In this file I added the following line: install cdc_acm /bin/false ...
0
votes
0answers
92 views

Gimp core dumped

I'm on ArchLinux, Gimp is updated (already tried to uninstall and re-install) but when I run it I get (after 6 seconds): Bus error (core dumped) I don't understand what it could be... Googling it ...
1
vote
5answers
3k views

Setting a network hostname doesn't work

I'm on a Kubuntu 11.10 and I'm having trouble setting a hostname on the network. I already tried changing send host-name "myhostname" in /etc/dhcp/dhclient.conf or /etc/dhcp3/dhclient.conf with a ...
0
votes
2answers
118 views

Is there a general command to see what shell is running? [duplicate]

On some the shell can be read on in the command prompt, other can be seen when help is ran. But this are not covered by all the shells. Is there a general command to see what shell is running?
1
vote
1answer
652 views

Possible sftp connection behind a router that is impossible to open any public ports except some standart ports like http?

I want to ask about the problem that I have with my office computer. I cannot reach the router so I cannot redirect any incoming requests to my PC. I have to get a huge file from another computer on ...
13
votes
4answers
12k views

Are FIFO, pipe & Unix domain socket the same thing in Linux kernel?

I heard that FIFOs are named pipes. And they have exactly the same semantics. On the other hand, I think Unix domain socket is quite similar to pipe (although I've never made use of it). So I wonder ...
8
votes
4answers
7k views

How to run xfce-terminal with different commands per tab and keep using the tabs after the commands have returned?

To keep the overview I like to place multiple commands always in the same order and start them automatically together (gradle, git, database, scala-REPL, jboss...) -H (hold) seems to mean that the ...
3
votes
1answer
744 views

Bash remote autocompletion : change the 'starting' directory

I'm regularly downloading files from a remote server, always from the same directory. So I wrote a custom function that I put in my bashrc: download_from_myserver () { for file in "$@" do ...
0
votes
1answer
787 views

Opera, Firefox has no kiosk option like Chrome gives it openly?

While using Chrome kiosk mode, i have problem with openbox desktop, its not doing correct for some javascript rendering. So i wanted to test opera and firefox but both does not support kiosk at all ...
0
votes
1answer
99 views

Use of .. in Linux scripting and makefiles [closed]

what is the use of .. in linux scripting and in the following makefile? MODULE = EQUALIZER = .. SRCS = include ${EQUALIZER}/xyz.mak include ${EQUALIZER}/pqr.mak
2
votes
2answers
463 views

Emacs : Ctrl+space (set mark) insert only a space in Konsole

I'm having a problem with emacs in Konsole : I can't set a mark to select text in emacs. Ctrl+space insert a space character instead of setting the mark. On XTerm, i've almost the same behaviour. It ...
7
votes
2answers
7k views

Can I allow users to chmod a file not owned by them?

I would like to allow users to chmod a file that is owned by root or some user that is not themselves. I have chmod'ed the file to 777 and I get "operation not permitted". I have added the user to the ...
18
votes
6answers
40k views

keyserver timed out when trying to add a GPG public key

I am trying to add a public key for installing a program with CPG. But i am pretty new to this but every command i found gave me the same error: gpg --keyserver keyserver.ubuntu.com --recv-keys ...
7
votes
2answers
2k views

Querying an overlayfs

I'm looking for a way to query a mounted overlay filesystem (overlayfs) in order to check it's upper and lower directory, but until now I haven't found any suitable command for that. Is there is a way ...
2
votes
0answers
3k views

sed couldn't flush stdout no space left on device? [duplicate]

What could be the reason for this error : sed couldn't flush stdout no space left on device This is come of the stuff that i am doing at last in my code sed -n '/.*needs to be executed manually.*/{...
0
votes
2answers
394 views

Studio 12.3: language optional software package not installed

I installed the Solaris Studio 12.3 on Solaris 10 OS but when I check the version but it is showing below result. It is installed under /opt/SolarisStudio12.3/bin so why wrong path is coming. I ...
0
votes
0answers
104 views

DHCP configuration for iPXE

Is there a way to configure the DHCP process in iPXE? In particular, I want to configure the DHCP Discover message sent by iPXE, so that the message issued by iPXE includes more options in Parameter ...
2
votes
1answer
131 views

Making less's follow option show line movement

I often find myself using less to display log files that contain hundreds of contiguous, identical lines that are appended to the files at set intervals. For example, something happened something ...
3
votes
2answers
79 views

Bizarre Disk Use Problem

I have an external hard drive on which I use rsync to backup my home directory. Today, I tried to umount the drive. It said it was busy. So, I used fuser to figure out who was using it: /media/Panp9 ...
9
votes
1answer
876 views

Making less print to stdout if an entire file can be displayed on one screen

When more is passed a file whose contents can be displayed on one screen, it just writes the file's contents to stdout without pagination. If the file cannot fit on one screen, more paginates it. ...
0
votes
0answers
2k views

Cent OS 6.4 UEFI Dual boot

i'm really a beginner to Linux trying to study for RHCSA certification here. I have Windows 8 installed on UEFI BIOS. When i installed Cent OS, installation went smoothly and then after restarting, ...
5
votes
3answers
1k views

change prompt formatting based on cwd

I use tcsh. I'd like to have my prompt formatting (coloring/highlighting) change based on the directory I'm in, or other critical aspects of my environment. I'm not enough of a shell hacker to know ...
3
votes
2answers
8k views

Checking if I can reach some ports from my computer

Is there a terminal command or something on OSX that I can use to test if I can reach some ports on a remote server? I know these ports are reachable on that server, because I can access them from ...
4
votes
1answer
217 views

Ignore files for zsh's completion for SVN

I managed to configure zsh such that it does not suggest LaTeX temporary files when I use autocompletion for emacs by adding this line to my ~/.zshrc: zstyle ':completion:*:*:emacs:*:*files' ignored-...
0
votes
0answers
115 views

ansi-term no longer works when emacs is run in daemon mode

I shell into a remote server to run emacs using ssh. Ever since I started running emacs as a daemon I've been having problems using ansi-term, shell, and eshell. I can run commands in eshell fine, ...
1
vote
1answer
7k views

Problem compiling a driver : “No rule to make target”

First of all I am running a CentOS 6.4 installation. My computer is a laptop and I am trying to install the drivers for my ethernet card, because this week end I lost my ability to connect to the ...
-1
votes
1answer
1k views

Delimiters of program arguments?

What is the syntax to delimit the arguments of a C program. For example, if I type : ./myprogram 1 2 3 | grep result The | grep result will be interpreted as arguments (and passed as argv). So how ...
1
vote
2answers
84 views

Is there any way for group “owners” to have full rights of a file or directory owner?

Is it possible with the normal Unix permissions system to enable group members to have the right to change a file's permissions? In other words, suppose we have a file awesome.rb which is owned by ...
0
votes
0answers
144 views

Installing Ossec on an existing centos 6.4 machine

I have an existing machine running centos 6.4. Is it ok to install now the Ossec or it's not worth any more as the machine is already running for few months. Which is the best mechanism to install ...
3
votes
1answer
246 views

Debian's ReportBug equivalent on Fedora/Gnome?

When I was using Debian, there was a tool called reportbug. Ironically, the tool itself was probably the buggiest program I have ever used. I was never, ever actually able to make a successful bug ...
2
votes
1answer
1k views

How to write a script to read wifi SSID and password from USB drive at boot up and auto logon to wifi network

I have an embedded system that is running Debian. I want to be able to provide wifi network SSID and password information via a USB thumb drive. That way I can easily deploy it to any wifi network. ...
1
vote
3answers
108 views

Print filename and execute a command on each result of find

I am trying to apply two command (echo and haml --check) to result of my find. haml --check `find . -name "*.haml"` # return Syntax error on line 2: Illegal nesting: nesting within plain text is ...
1
vote
1answer
365 views

Virtual mouse driver, possible X11 problems

I created virtual mouse driver according to Essential Linux Device Drivers book. After I wrote coordinates echo x y > /sys/ ... /coordinates into sysfs node, my program generates event packets ...
67
votes
7answers
84k views

“no public key available” on apt-get update

When performing apt-get update, I get the following error: root@ADS3-Debian6:/home/aluno# apt-get update Atingido http://sft.if.usp.br squeeze Release.gpg Ign http://sft.if.usp.br/debian/ squeeze/...
6
votes
2answers
9k views

Writing starting from a certain line number in a text file

In a bash script I want to write some lines to a text file, but this file has already been used before and there are texts in it. So I want to echo some additional text in it, starting from a certain ...
2
votes
1answer
126 views

Debian Networking Issues

I recently installed Debian Wheezy (gnome) on my ThinkPad T60. It was going well, until about 2 days ago when suddenly my machine stopped connecting to the web. I can connect to my router, I can ...
2
votes
2answers
392 views

Equivalent of “passwd -sa” in RHEL?

I feel a little silly having to ask this, but: In Solaris you can issue a passwd -sa command which gives you (more or less) the same output as passwd -S userName does, except it prints out the status ...
3
votes
1answer
3k views

Sniffing VirtualBox machine behind NAT

I have a VirtualBox machine with a single interface connected to VB's NAT mode. What I would like to do is sniff all traffic coming from/to any machine behind that NAT. (I don't think I will need to ...
4
votes
6answers
1k views

How do I specify arguments to return all dot files, but not . and ..?

Normally dot files are not included for wildcard expansion: % echo * Applications Desktop Documents Downloads Library Movies Music Pictures Public bin If I explicitly ask for dot files, I get them: ...
3
votes
5answers
965 views

How to set proper monitoring of my services in a automated way? So that if one crash it auto on the fly restarts?

How can i setup monitoring to my system services? Either using automated script which scan every moment, if httpd, mysqld, and my custom daemon is running or not, if not running it will automatically ...
3
votes
2answers
650 views

How to monitor the last PID assigned by the kernel?

To monitor process creation I'd like to periodically write the last PID assigned by the kernel to any process on the system (not just processes created by the PID-monitoring program) with a time stamp ...
6
votes
3answers
14k views

Where is iptables script stored on DD-WRT filesystem?

I have an ASUS RT-N16 router that I've flashed with the open-source DD-WRT firmware. According to my ssh login, I'm running: DD-WRT v24-sp2 mega (c) 2010 NewMedia-NET GmbH Release: 08/07/10 (SVN ...
0
votes
0answers
116 views

How to create customized xsession in RHEL 6?

I want to create a customized xsession so that it should run at a time only one application without any desktop in RHEL 6

15 30 50 per page