2
votes
1answer
3k views

tftp transfer painfully slow

I am using HPA's tftp server for PXE boot. When I try downloading an image from my tftp server using curl, the transfer rate is less than 3 MB/s, even on my 1Gb network. curl -o initrd.gz ...
2
votes
1answer
11k views

Make sure X server isn't already running? [closed]

Suddenly out of the blue I was able to start the X server but with many warnings on CentOS and then I tried to make sure it was shut down by going into /usr/bin and gdm stop but there is an error log ...
0
votes
0answers
2k views

Warning: Group GNOME Desktop Environment does not exist

I am still having problems connecting to X server on CentOS 6.5 My mac has it (X server) installed by default and opens no problem and if I command startx it looks for connections but my remote linux ...
0
votes
0answers
2k views

Why does my USB device not get recognized by Ubuntu?

I seem to have a problem that no else appears to have encountered before (at least a couple of hours Googling has shown this to be the case). I am running Ubuntu 12.04. I plug in the device (Linksys ...
1
vote
1answer
794 views

How to make a multiple --scale dialog in yad or other alternative?

Is it possible to make a dialog with multiple --scale in yad, or other alternative easily, can you help me? I would like an interface multiple on/off. Example: This is my script... #!/bin/sh ...
1
vote
0answers
146 views

ssh-copy-id hangs with 8192-bit key

Having a bit of an issue with ssh-copy-id it seems to hang when i try to copy 8192-bit rsa keys accross to an OpenIndiana server. I running OS X as my client OS. Is anyone aware of issues with keys of ...
16
votes
5answers
7k views

What constitutes a 'field' for the cut command?

For example, the cut command can take a parameter -f, which according to man select only these fields; also print any line that contains no delimiter character, unless the -s ...
4
votes
2answers
670 views

Send traffic to self over physical network on Ubuntu

I have a dual port ethernet NIC and let's say I have connected both ports in a loop and assigned the following IPs to the 2 ethernet interfaces: eth2 -> 192.168.2.1 eth3 -> 192.168.3.1 I want to ...
9
votes
1answer
2k views

Where does the kernel ring buffer sit relative to rsyslog?

Is rsyslog just an abstraction layer on top of the kernel ring buffer? Or is the kernel ring buffer its own entity and rsyslogs interaction is like that of any other "application"?
1
vote
4answers
5k views

Apache Tomcat not working

I am a Linux beginner and have CentOS 6.4 installed on VMware. Recently installed Java SE8 and Apache Tomcat server but I cant't connect to the server by using `localhost:8080' browser says Unable to ...
1
vote
2answers
521 views

emacs wont let me use a different background color

I've tried different themes in emacs (on mac with xterm set to 256) and everything works great except it's ignoring the theme's background color. Even if I add (set-background-color "red") for example ...
0
votes
3answers
182 views

iptables rules - input and output

I'm new with Linux and iptables. I have a Ubuntu Server distro (12.04) on a PC which has 2 network interfaces (eth0 and eth1). I also have 2 laptops, one is plugged to eth0 and the other to eth1. ...
7
votes
2answers
779 views

Can the shell be more “offensive”?

My Gentoo Linux is compiled with the offensive USE flag enabled: # sudo su - Password: Hold it up to the light --- not a brain in sight! Password: It is also possible to select fortunes based on ...
5
votes
2answers
9k views

xsetroot, xterm and twm are not found when starting XRDP/Xvnc (on Cent OS)

I am trying to install xrdp service on one my VPS server, and though all installed successfully I get following error after connecting via Windows MSTSC service. Following are the resources I have ...
4
votes
2answers
323 views

Splitting `File` and `directory name with space' via shell script

I've got a file called Files.txt having following content: TestApp/Resources/Supporting Files/main.m TestApp/Resources/Supporting Files/AppDelegate.h TestApp/Resources/Supporting Files/AppDelegate.m ...
4
votes
1answer
192 views

Is it possible to have multiple SSH host aliases? [duplicate]

I have a laptop that can obviously be inside or outside of my home network at times. When I need to SSH into a machine inside of my network, the connection is fairly straightforward: localhost $ ssh ...
4
votes
2answers
150 views

What's the recommended way to run a service as a non-root user?

I have a simple init.d script which starts and stops a process. I call the init.d as root, but I'd like the process it controls to run as a specific user. The most common suggestion online seems to ...
3
votes
1answer
1k views

setting output of a command to a variable [duplicate]

How can I put the output of head -15 textfile.txt to a variable $X to use it in an if command like this: if $X = 'disabled' then ?
0
votes
3answers
15k views

How to install Kali linux on to a specific (existing) partition on a USB stick

I'm endeavoring to put Kali linux onto a USB stick - I know it's already written up, but I'd like to use only a portion of the total space (the aforementioned link will use the entire drive space). ...
1
vote
2answers
3k views

Grub not starting on recently Debian install

i recently install Debian 7.4.0 on my laptop. The problem is when i reboot my system it start on Windows 7 by default, i tried to boot again the Debian installer and my surprise was the boot USB load ...
0
votes
2answers
174 views

How can I ensure that a custom environment variable is set before cron runs a task?

I recently experienced a logwatch issue that is fixed by running export DATE_MANIP=DM5. cron seems to forget this when I logout (presumably because it's not saved). Where can I add this custom ...
10
votes
4answers
1k views

Sudoers for one day per week?

I have been volunteered by my boss to be the sysadmin for our production redhat server. He asked me to tighten the security to avoid mishaps like rm -f * that occured not long ago. Right now, we ...
0
votes
1answer
214 views

Upgrading Ubuntu Based distro without losing everything

I use Zorin OS 8. I have previously used Ubuntu and Know that to upgrade Ubuntu versions you can use the "sudo apt-get dist-upgrade" command. I was wondering if that same command would work the same ...
4
votes
3answers
684 views

how do I do this: dd if=coolstuff.iso of=(ssh kev@mypi )

the card reader on my laptop doesn't want to work. can I use dd (or some other tool) to write an image to a networked disk. I am trying to replace one raspberry pi distro with another. The SD card ...
1
vote
3answers
3k views

How to create a permanent alias without resourcing the .bashrc-like file?

I really like bash aliases, it annoys me that every time I want to add a new alias I have type two commands: echo "alias \"short-cmd\"='long-command'" >> ~/.bash_aliases source ~/.bash_aliases ...
1
vote
2answers
104 views

Tracking from httpd instance to PHP script when PHP is a module

I'm trying to figure out exactly what's going on that kicks CPU usage in random httpd workers so high but I'm having a little hard of a time figuring out what PHP page is being requested so that I can ...
0
votes
1answer
99 views

Have I installed and started zram successfully?

On my Kubuntu 13.10 laptop, have installed zram by sudo aptitude install zram-config and the output of swapon -s Filename Type Size Used Priority ...
4
votes
1answer
717 views

Alsa not detecting USB microphone on system boot

I have a USB microphone that works fine, up until I reboot my system. After that, it doesn't work at all until I unplug it and replug it. Based on my (limited) understanding of the components ...
10
votes
4answers
9k views

How to run parallel processes and combine outputs when both finished

I have a bash shell script in which I pipe some data through about 5 or 6 different programs then the final results into a tab delimited file. I then do the same again for a separate similar dataset ...
3
votes
3answers
1k views

Regex not matching

why this does not match..? sed -e '/--Updated?[[:space:]]+Date/d' inputfile this..: --Updated Date: 2013-11-06 15:32:13 d? is because sometimes I have Update Date, and sometimes Updated Date. ...
1
vote
0answers
110 views

Disable yum presto / deltarpms on a per-repository basis

I have a local mirror of the fedora and fedora-updates repositories, but I also use other repos such as rpmsphere and rpmfusion. For the local mirrors, my bandwidth is so fast, the deltarpms feature ...
1
vote
2answers
212 views

How to find the underlying disks of a mirrored volume in LVM (linux)?

When I run command lvs -a the output shows the logical volumes from which the mirrored-volume has been made but how to find the actual disks from which the sub-logical volume were allocated. Any ...
0
votes
1answer
125 views

Is there any command to list all related files and folders to specified file in macosx?

I have many ctags in my macosx. When doing which ctags, it gave me /usr/bin/ctags. But I also want to know where is all related folders and files to this /usr/bin/ctags Any useful command?
5
votes
2answers
1k views

Process in user mode switch to kernel mode. Then the process will have root privileges?

According to http://www.linfo.org/kernel_mode.html in paragraph 7: When a user process runs a portion of the kernel code via a system call, the process temporarily becomes a kernel process and is ...
0
votes
1answer
293 views

Unidentified network connections

I have an external-facing ftp/webserver (with virtual hosts) running Ubuntu 12.04LTS, and I have some concerns about some network traffic I'm seeing. Some background. I tried to be as preventive in ...
0
votes
0answers
184 views

Centralized package management for RPM based distro

We have about 6 servers under Linux CentOS. And I want to have possibility to view (best will be some web-interface, but console-only useful too) outdated packages, which can be updated and have all ...
2
votes
1answer
268 views

How to give each variable a different color?

Is it possible to have a vim color scheme where each variable is given a unique color? If so, how? This feature would be really helpful when visually scanning code. (I think I saw this feature in ...
5
votes
3answers
332 views

Is any extended logging available for cron jobs?

I have 3 scripts under /etc/cron.daily. My cron logs are written in /var/log/cron. The below is an entry for the above cron that has run. (root) CMD (run-parts /etc/cron.hourly) Here the stdout or ...
2
votes
0answers
776 views

How can I prevent my bluetooth keyboard from sleeping?

I like to type using a bluetooth keyboard. After about 5 or 10 minutes of being idle, the keyboard seems to go to sleep. Once the keyboard is asleep, there is a 5 to 10 between the next key press ...
2
votes
1answer
205 views

Why did my debian server crash?

I have a debian server newly installed yesterday evening. I used an image called debian-7.0-amd64-minimal from my hoster. Just installed apache2, mysql, php, vim, lynx and configured a few webpages. ...
4
votes
1answer
2k views

chmod does not change permissions of certain directories

System file: ext4 I changed the owner of files to apache: with the command: chown -R apache: wp.localhost Then, I could not change the permissions of directories in wp.localhost nor the ...
0
votes
0answers
635 views

death_handler: Fatal signal 15 received

I have problem with my Linux when I try to shut it down. init 0 I get the following error: death_handler: Fatal signal 15 received setsockopt recvref[30]: Protocol not available The sytem will ...
1
vote
1answer
577 views

Forcing keys to run bash scripts

Is it possible to define bash scripts for all keys on keyboard so that by pressing any key the bash script for that key will be run? The scripts may do anything, for instance they may save the key ...
12
votes
1answer
424 views

Why bash encapsulates syntax error both with grave accent and with an apostrophe?

When bash is reporting a syntax error, it encapsulates the text which has raised the syntax error both with grave accent and with an apostrophe, like this: `...'. Any idea why? Here's an example: $ ...
1
vote
0answers
146 views

Renaming public_html for main domain to subdomain which is development website

In CPanel I created a subdomain test.mydomain.com under my main domain mydomain.com. Both domains have magento websites. The contents of mydomain.com are stored in public_html and the contents of ...
4
votes
3answers
698 views

Any way to provide a separate vimrc file just for 1 session

I would like to know, if there is a way in vim/vi to provide a different vimrc file. I am looking at managing 2 different vimrc files. For the contents I checkout/checkin in version control I want to ...
0
votes
0answers
61 views

configuration of apache on sunfire v880 runing solaris 10

I am runing SunOS 5.10 on Sunfire v880 for my project but I can't run the Apache which is already installed. I have tried svcadm enable apache but it says that apache is not a known service. How do I ...
1
vote
0answers
194 views

Interfacing ds1337 RTC on LPC17xx

I am a newbie and I am trying to understand how to interface DS1337(RTC) on LPC17xx Board. This board uses uclinux 2.6.33. .CONFIG: CONFIG_RTC_LIB=y CONFIG_RTC_CLASS=y CONFIG_RTC_HCTOSYS=y ...
7
votes
1answer
3k views

Convert newlines to null-delimited when using tail

How can I change the output from tail to use null-terminated lines instead of newlines? My question is similar to this one: How to do `head` and `tail` on null-delimited input in bash?, but differs ...
0
votes
0answers
466 views

Postfix: restrict all external access but allow for only mynetworks

How can I restrict access for an internal domain but allow all access for me the administrator? All users should be blocked from communicating outbound and no external domain may contact them, but I ...

15 30 50 per page