1
vote
1answer
718 views

Download attachments in a URL redirect via Axel

Axel is not resolving URLs that redirect to another URL that has the file as an attachment. As you see, I'm getting 404 when I try to download this URL. (original site is replaced with example.com) ...
2
votes
3answers
4k views

How to identify and remove invisible whitespace characters on gedit?

I want to remove unnecessary whitespace on my css file. I am using grep with the command as follows: $ grep -rn "[[:space:]]$" Surprisingly, it is returning a hit on every line in the file. I ...
-2
votes
1answer
44 views

Blacked out html folder in root directory [closed]

Just looking through my system's directories and wondering about some of the contents. There is a blacked out (inaccessible) directory called html. I'm thinkging this is a bad link? I'm guessing and ...
2
votes
1answer
150 views

What is the tmp folder in /var?

I have a tmp folder in /var and it has the file channel.xml in it. I don't know what this is and if it should be there and what permissions it should have because at the moment it is wide open. Also ...
6
votes
5answers
342 views

Command line expression solver?

I'm looking for a Linux-compatible TTY-based calculator. For example: user@host:~$ calculate > 2 2 user@host:~$ calculate > 8*6-4 44 user@host:~$ calculate > 8*(6-4) 16 Is there anything ...
5
votes
1answer
1k views

How can I reverse the effect of apt-get build-dep <package>?

When I run: apt-get build-dep <package> privileged it installs the build dependencies for <package>. Now, I know that I can use apt-cache depends <package> to see binary ...
2
votes
1answer
201 views

Relation between “Block Size”and “Upper Limits” in ext2

A similar looking question asks for the reason why the upper file limit could be 2 TB in ext2. I am trying to understand but the Documentation on ext2 but find this hard. Please correct me if I'm ...
3
votes
1answer
4k views

Securest way to authenticate users against /etc/shadow using PHP?

This question became important to me, since I'm setting up a Horde environment and want to use the system accounts. Doing some search I found mainly 4 ways of doing that, which all seem to have some ...
2
votes
3answers
513 views

How do I change owner/permissions of auto mount on an embedded linaro based linux

I have an ARM based embedded system that when it auto mounts a USB drive it mounts it: drwx------ 6 linaro linaro 2048 Jan 1 1970 PENDRIVE I need to change the permissions and possibly thew owner ...
2
votes
1answer
39 views

Have some 2TB partition for a directory

I have 4 2TB HDD on a VmWare ESXi 5.1 server. I have httpd on /var/www/html directory on a Centos VM. can I have full size of 4 HDD (8TB) on this directory? Or I must mount every HDD to seperate ...
0
votes
1answer
1k views

Why is my machine not showing anything when booting?

I'm using Ubuntu Server 11.10 x86, and after I make my normal selection (Ubuntu, with Linux 3.0.0-12-generic-pae) from the GRUB menu, the screen just goes blank - there's not even a cursor showing up. ...
4
votes
1answer
253 views

Disable GNU Indent backup files

I am using GNU Indent to format C code in my project. By default backup files are created ending with a ~. I don't want to have any backup files created, is there a way to disable it?
0
votes
0answers
457 views

How can I get ssh working on Mint Olivia?

I have a Mint KDE VM (under VMware Fusion on Mavericks), and it is refusing ssh connections. I have not enabled UFW, and openssh-server installed without reported error. However, when I attempt to ...
6
votes
3answers
2k views

Extracting fixed width records with no delimiter from a single line

I need to extract strings of text from a single file containing one very long line of text with no delimiters. Using the sample line below, these are the following known facts: ...
1
vote
2answers
190 views

issues with resolv.conf

I was tinkering with my resolv.conf file. I logged in to root and made the changes to it there. All of a sudden, I cannot get through to any websites using my Firefox browser. The file looks like ...
2
votes
5answers
105 views

using regex with find

Let's say I need to find all files in /var/log/ except btmp, lastlog, wtmp. And I only need depth 1. I tried with the following find command, but that does not work as expected: find /var/log/ ...
1
vote
0answers
241 views

Using wget, download a website translated by google translate

I want to download(recursively) http://e-maxx.ru/algo , after it has been translated to english using Google translate.
1
vote
1answer
908 views

chroot segfault

I've been trying to create a LXC container (lxc create) but at the end I get these messages: W: Failure trying to run: chroot /var/cache/lxc/debian/wheezy_armhf.partial mount -t proc proc /proc W: ...
1
vote
0answers
115 views

Arch Linux starting Wireless connection shuts down wired connection

When Im starting the wireless connection via SSH, as soon as th dhcp starts the connection(wired) to the computer stops working and the computer is only available on Wifi. Is that normal. Im using ...
2
votes
4answers
185 views

Parallel pausing and resuming?

I have a pretty strange thing I'm seeing as I run 8 GPG encryption jobs with GNU parallel: The command I've run is this: find . -type f -not -iname "*.gpg" | sort |parallel --gnu -j 8 --workdir ...
3
votes
2answers
484 views

Bash if script is called from terminal echo stdout to terminal, if from cron do not echo output

I would like to have a service watchdog script echo the status to the screen if called like ./watchdog.sh but if it is run by cron, there is no need to echo output. What is the proper method? Where ...
2
votes
2answers
600 views

RELATED,ESTABLISHED state in iptables

What do the words 'RELATED' and 'ESTABLISHED' individually signify in RELATED,ESTABLISHED state in iptables?
0
votes
1answer
87 views

How do I prevent Xorg from loading one-time?

My current Xorg configuration is freezing the machine (and text based terminals don't seem to work). Is there a way (e.g. holding down a hot-key) I can prevent the loading of X at boot time? I cannot ...
0
votes
1answer
219 views

Wiped out Windows partition table

I tried to install Linux (Mint distro) on my laptop computer after recieving a secondary disk. After installing Mint, I just rebooted the system. Nothing was happening (Actually, I was getting a ...
1
vote
1answer
248 views

Graphic glitches with Llano APU in gnome 3 (Arch)

I recently installed Arch Linux on my Mini-ITX machine using the recommended xf86-video-ati driver for the AMD Llano-APU. XFCE works -- with compositing -- perfectly fine, but Gnome 3 shows a lot of ...
1
vote
0answers
48 views

script works fine on client machine but doesnt work in nagios

purpose: nagios check for kannel stuck Date : dec 8, 2013 /etc/init.d/kannel status | grep -i -E "SMS: received" | awk '{ print $3 }' > kannel_temp_1.txt /etc/init.d/kannel status | grep -i -E ...
3
votes
3answers
3k views

How to move the first x files

I have this huge folder with thousands of unordered files. Is it feasible to move the first 5000s to a subfolder via the mv command? For now I move files with mv *some_pattern* ./subfolder1/ ...
9
votes
2answers
2k views

Linux File Versioning?

We are migrating from A VMS environment to a Linux environment for some old alpha servers we are decommissioning. The one challenge I have not been able to overcome is file versioning. VMS keeps ...
1
vote
2answers
374 views

Run a Shell script and read the output in a variable and run another script based on output

I am a novice to Linux system. My requirement is to run a Linux status script which echos a message (message is either "App is running" or "App is not running"). If the message is "App is running" ...
1
vote
4answers
156 views

Symlink everywhere

Is there any way for me to symlink a particular file so that it appears in every directory on the system? So if I symlink /tmp/scratch No matter where I am I can type vi scratch?
3
votes
2answers
327 views

How to fake a filesystem that cannot be mounted by others

I'm currently working on a project. There's an Ubuntu Linux system installed on a disk, DA, mounting the other disk, DB. What it requires is that DB can be only mounted by DA in order to prevent data ...
4
votes
2answers
184 views

Bash Syntax Colouring

I tried the fish shell, and love the fact that it does syntax colouring in the shell itself: Is there some way to do this in bash?
7
votes
3answers
9k views

boot partition is almost full in CentOS [duplicate]

I got a warning of my /boot partition is almost full(85%). What should I do? Can I remove one of the backup kernel? How to do it safely? My partition right now Filesystem 1K-blocks ...
6
votes
2answers
1k views

Prevent focus stealing in Awesome WM, especially from Skype

When I use KDE with Awesome WM and get a new message in Skype, Plasma Desktop steals the focus. This drives me crazy as I cannot just continue typing in my current window. Is there some way to prevent ...
1
vote
0answers
171 views

mongodb “hijacking” port

I'm having some trouble with Python HTTP Server and MongoDB. In this case HTTP server represents a REST service providing data from MongoDB. MongoDB is running on default port (27017) at all times. ...
3
votes
2answers
2k views

How to mount a filesystem from a given USB bus:device

Recently I bought a new smartphone (with Android). When I connect it to my laptop, the (gui)file manager (PCManFM) recognize it and show me the filesystem at route gphoto2://[usb:001,003]. But I can't ...
2
votes
1answer
102 views

Mail character set for norwegian characters

When extracting a message from my inbox containing the norwegian letter "ø" I find that it is encoded with 3 bytes as "=F8" or hexadecimal "0x3d4638". In UTF-8 the letter "ø" is encoded with two bytes ...
3
votes
1answer
916 views

nc both fails and succeeds

Platform: RHEL 5.10 netcat Version: 1.84-10.fc6 I was trying to figure out if my inability to ssh was TCP-level and usually I use nc for this. This time, however, I got something unexpected. ...
1
vote
0answers
158 views

High ping/latency on Xen box

I am having problems with my Xen box. Once in a while it has too high ping/latency and it is very annoying. It does not matter if I am pinging server from outer network (LAN0) or inner network ...
3
votes
1answer
85 views

Prevent closing of plasma-desktop in Awesome WM

I run KDE with Awesome WM. Sometimes, I have no window (client) open and press Mod4+C to close a window, but plasma-desktop is selected. So it kills plasma-desktop which makes my background image and ...
2
votes
1answer
883 views

How to make a library linkable with g++ -l argument

How can I make a shared library which is in /usr/lib/some-path linkable with the g++ -l argument when compiling? As far as I know, to do what I want, I need to chmod 0755 the library .so file, create ...
0
votes
2answers
359 views

Does configuring iscsi target and iscsi initiator in two linux nodes and using ethernet cable for communication make it SAN?

I'm using freeNAS to share an extent via iSCSI to my another Linux box using Ethernet cable. It work as a block storage. So SAN work as a block storage. Now, in my scenario is it working as a NAS or ...
3
votes
2answers
657 views

Auto restart ssh session after sleep

I have an active ssh session to a remote server that it would be nice to be able to restart upon waking from sleep/hibernate (ubuntu), and seamlessly restore tunnels. The Gnome Terminal window is ...
1
vote
2answers
3k views

Can't connect to WLAN with netctl

I can't connect to a WiFi network. I tried various methods such as wpa_supplicant and wicd. At the moment I'm trying netctl. When I enter the command: systemctl --type=service I see the following ...
3
votes
4answers
4k views

Searching a pattern in file names with number

I have a large number of files in a folder each with the date as the filename. For example 20130101 20130102 20130103 . . . 20130131 similarly for other months 20130201 to 20130230, the pattern is ...
1
vote
2answers
93 views

WLAN: get info about AP

I am troubleshooting WLAN connections from my laptop. I have several possible WLANs to connect to. When connection is established, I am unable to see to which AP I am connected. In my ...
5
votes
1answer
204 views

Export content of screen daemon to file

I'd like to export the content of a detached screen under linux. I tried those command: screen -x 2>&1 > temp screen -x > temp 2>&1 screen -x > temp But it's not working, It ...
6
votes
4answers
1k views

Full username in top

On our systems user names can be up to 20 characters long. But the top commands only displays the first 8 characters. How can I configure top to display the whole user name? At the moment we use: ...
28
votes
2answers
2k views

Why use install rather cp and mkdir?

I've seen in many places used install -d to create directories and install -c to copy a file. Why not use mkdir and cp? Is there an advantage in using install?
6
votes
2answers
877 views

what's the format spec for `ss -D `?

Background of the question: I am trying to sum up the total bandwidth, but ss -i cleverly converted numbers to more readable format like Kbps/s or Mbps/s, which is not accurate. So does ss -o with ...

15 30 50 per page