1
vote
1answer
742 views

curl ignores interface parameter

My Ubuntu 12.04 laptop is connected to the Internet by WiFi and to the intranet by cable. I would like to get the content of an intranet site via curl and have tried the following: curl --interface ...
1
vote
2answers
532 views

Is it possible to search text within text-files using Catfish?

I want to find a line in system files - that is I need to scan a lot of files for that. I learned that I can use grep -r <word> * replacing with the needed expression. Can Catfish do ...
1
vote
1answer
519 views

Added user supplementary group, but 'groups(1)' not showing change [duplicate]

I'm trying to add myself to the fuse user group but it doesn't look like the change is taking effect even though /etc/group looks correct after invoking addgroup or usermod. I've tried both ... sudo ...
0
votes
1answer
68 views

How can I install Gentoo in this situation

Why does it nessesary to coincide the release version of stage3 and minimal install CD? Or can I install Gentoo with old minimal CD, but current stage?
0
votes
1answer
45 views

In which way is a commented line active in a program file?

To solve the bug reported here the solution seems to be commenting, not just adding a certain line in a file - as explained here and here. That is - to make that bug disappear in Xfce, a certain line ...
12
votes
4answers
2k views

How can I know if a virtual package is “installed” on a Debian system?

Some packages, have a Provides: header. For example, the package postfix on Debian Wheezy has Provides: mail-transport-agent. The package mail-transport-agent which doesn't exist physically is ...
4
votes
1answer
354 views

returncode of command in a pipline [duplicate]

The following script runs on Solaris using /bin/ksh and on Linux using /bin/sh cmd | tee -a cmd.log | tail exit $? The output of cmd is saved in a file cmd.log and the last lines are displayed on ...
1
vote
1answer
6k views

How to redirect to my squid proxy using iptables since DNAT target: only valid in nat table

I want to redirect the traffic in my lan network through squid proxy but I am having some problems with iptables rules. When I use the following rule: # iptables -I FORWARD -s ...
20
votes
3answers
11k views

Which shell I am running on?

When I run echo $SHELL the output says /bin/tcsh which means that i am running tcsh. But for example when I issue the following command alias emacs 'emacs -nw' I get the following error: bash: ...
0
votes
1answer
608 views

No Space left on device - Debian

when Im new to linux and try to run this below code apt-get -f install getting below error: Checking the available space df Tho output How to increase the available space in /usr path?
2
votes
1answer
482 views

remove tc filter (Traffic Shaping)

How can I remove a single filter? tc filter show dev peth1 shows filter parent 1: protocol ip pref 16 u32 filter parent 1: protocol ip pref 16 u32 fh 800: ht divisor 1 filter parent 1: protocol ip ...
1
vote
1answer
493 views

Binary search for a failing line

git has bisect run to figure out which revision an error was introduced. I have a big file (100GB) and at least one of the lines is bad, but the program I have to check it with will not tell me which ...
2
votes
1answer
893 views

how can we know which pts in /dev/pts mapping to which ip address?

Can anyone explain , how can we detect which ssh session belong to which ip address using /dev/pts directory ?
1
vote
2answers
2k views

Automatically disable Linux extensions for Samba mounts

Samba enables Linux Extensions by default, which can be checked via /proc/fs/cifs/LinuxExtensionsEnabled On Mac OS X (10.8.5 or older) as well as older CIFS shares, mount.cifs will fail with a ...
5
votes
2answers
2k views

Lowercase all but the first (Uppercase) letter from UPPERCASE in cyrillic

To make all letters a lower case except the first letter. The first letter would look like "Uppercase" after I changed (from UPPERCASE in cyrillic). The rest (not UPPERCASED) leave unchanged. I'm ...
-1
votes
1answer
616 views

can i run a java software on startup

Hi I´m a total beginner when it comes to Linux but here goes, I have a raspberry pi with raspien installed. When I start my PI I would like to run the following steps after the operating system is ...
2
votes
2answers
4k views

What are pros to use OmniOS than SmartOS or OpenIndiana?

I could not find good comparison between OmniOS and SmartOS (or OpenIndiana). So what are pros to use OmniOS than SmartOS? (As some people are nitpickers I had to make the question like this. But I ...
0
votes
0answers
2k views

Removing path in env variable PATH permanently [duplicate]

I have recently installed Code Sourcery's ARM EABI Tool Chain. All the executable binaries were installed in a separate folder. I thought that the bin path will be added to env variable $PATH. ...
2
votes
3answers
198 views

How can i get five seconds of data appended to the end of file?

suppose if a shell script appends a data to a file.txt like 1........... 2........... 3............. 4............. 5.............. Now i want another script that could check the fresh data ...
2
votes
2answers
1k views

Upgrading software in linux

I have a program called zlib I need to upgrade. As I've never downloaded it before I suspect it comes with Ubuntu. Normally I'd just download and compile it, but a different tool (vcftools) is going ...
0
votes
1answer
659 views

Can't open display: 192.168…

Recently I stumbled across the problem with remote X display (without ssh). I have two hosts 192.168.0.3 - which runs xclients 192.168.0.4 - which has xserver My configuration of lightdm.conf # ...
3
votes
3answers
1k views

How to detect IP of given device in same network

I have a very typical situation in which I want to connect an (android) phone to a linux notebook in the same (wifi) network using ssh. The IP's are assigned by DHCP so I know only the one of the ...
3
votes
1answer
704 views

One non-root user run jetty by port 512 which less that port1024

Customer asks us to create a non-root user to run our web system which bind port 512, less than 1024. When web server(jetty) runs, this is the exception: 2013-10-16 14:49:51.406:WARN::failed ...
1
vote
2answers
594 views

What's the difference between fdisk -l and df -h?

In my ubuntu system, I want to have a look about my system disk info. When I use fdisk -l without sudo, I get nothing. But with sudo fdisk -l, I only get a device /dev/sda1, but when I use df -h, I ...
1
vote
0answers
261 views

How to monitor user who using dropbear ssh tunneling?

I was used OpenSSH in my debian server. I can see who is using ssh tunneling using either nethogs or top command. When i change from openssh to dropbear i cant monitor user again. In nethogs or top ...
0
votes
1answer
3k views

Why won't OpenCL link with gcc after installing the fglrx driver and amd app sdk?

I have installed the fglrx driver on my machine following this tutorial: http://wiki.cchtml.com/index.php/Fedora_18_Installation_Guide, installed the opencl-headers package, and finally installed the ...
2
votes
2answers
548 views

Making a bootable pendrive for custom kernel

I read the tutorials to make a mimalistic custom kernel from here and am able to boot it up as explained in the tutorial over a virtual machine using GRUB as the boot loader. I think it would be more ...
3
votes
2answers
3k views

Show only part of the line found by grep (but not the part that matches the pattern)

In ifcfg-eth0, I managed to grep "DEVICE=eth0" by using grep "DEVICE=" ifcfg-eth0 But how can I grep pattern to show only "eth0"?
4
votes
2answers
23k views

Search text in command output on a PuTTY terminal

I would like to know how to search particular text on the terminal. If I do cat of log files, I would like to find certain words like job or summary so that I don't have to read through the entire log ...
0
votes
1answer
180 views

Ubuntu 13.04 disconnecting issue

Weird situation here. I can download anything I want with no problems whatsoever. As soon as I try to download a torrent via a magnet link, I disconnect from the wireless router after about three ...
1
vote
0answers
298 views

How can I check which radeon driver are installed?

I am currently installing fglrx on my machine by following this tutorial https://fedoraproject.org/wiki/Fglrx In the finishing touches section, it mentions that I need to blacklist any current radeon ...
38
votes
7answers
84k views

Delete First line of a file

How can I delete the first line of a file and keep the changes? I tried this but it erases the whole content of the file. $sed 1d file.txt > file.txt
3
votes
1answer
6k views

How to install Sun/Oracle Java 1.6 onto centOS 6 using only textmode?

So, after a few days of struggle I have yet to be successful in installing Sun/Oracle java 1.6 onto my CentOS. The issues seem to be as follows No sun java 1.6 package available in repo due to ...
4
votes
2answers
277 views

Nicely close windows in xmonad?

Normally if I close Chrome by clicking on the "X" button on the upper right (in window managers other than xmonad, obviously), if I later reopen Chrome then it shows me all my tabs again. However in ...
13
votes
5answers
5k views

feeding input values to dpkg-reconfigure in non-interactive way

I would like to configure ubuntu package via dpkg-reconfigure with all the values supplied via non-interactive mode (in the script). In fact my case is firebird confiiguration ...
0
votes
1answer
79 views

Install specific version of X11 for xmonad?

I wanted to compile xmonad from source, so I checked out the code and ran the first command from the README. $ runhaskell Setup.lhs configure --user --prefix=$HOME Configuring xmonad-0.12... ...
1
vote
2answers
1k views

Get exit code of command executed by the linux script command

Note this is run on a debian linux environment I have the following sample script called HelloWorld.sh #!/bin/bash echo "Hello World" exit 1 I then run the following command script -c ...
3
votes
3answers
3k views

Download one html page with all needed graphics and linked pdf/zip files

I want to download a website from an URL, to view it locally, more exactly: Download one single html page (no other linked html pages) and everything needed to display it (css, images, etc.) Also ...
3
votes
1answer
3k views

Find location of sourced shell script

Is it possible that a sourced shell script knows its location? I've read determining path to sourced shell script but the answers focus on bash and tcsh and fail if a POSIX shell is used. $0 is also ...
3
votes
1answer
115 views

Shell Script Size 57M

I have recently Downloaded yEd Graph Editor Installer shell script, which size is 57M When inspect that script head script root@home-pc:/usr/local/src# head yEd-3.11.1_32-bit_setup.sh #!/bin/sh ...
1
vote
0answers
165 views

PXE USB BOOT Debian

I have installed a Debian. I rsynced it. I load it on my client through PXE from NFS to make a backup. But I need my Computer(NFS-host) at the same time to make something other with it. For example, ...
1
vote
1answer
539 views

Different version of Python cannot find modules

In my Suse system I have these 2 versions of Python: # which python2.6 # /usr/bin/python2.6 # which python2.4 # /usr/local/bin/python2.4 2.6 is the system one, and 2.4 was compiled by me. If I ...
10
votes
1answer
391 views

How do I apply software patches?

I have an application foobar for which someone has written a patch to add a feature I like. How can I use the patch?
1
vote
1answer
685 views

Why is NetworkManager attempting to control an interface script that doesn't exist?

I'm showing hundreds of frequently repeated entries in /var/log/messages that don't make sense. More below the example. Here's an example, which is repeated ad nauseam in the log file: Oct 15 ...
4
votes
4answers
8k views

Convert Unix timestamp into human-readable format on AIX

I need to convert unix timestamp (number of seconds since 1970, e.g. 1381260225 is Tue Oct 8 19:23:45 GMT 2013) into a standard human-readable format. I could get some answers by googling but those ...
3
votes
2answers
258 views

Use X over an intermediate machine

EDIT: I didn't setup my sshd_config file correctly on the WORK machine. Even though I uncommented the line X11Forwarding no, I didn't realize that it said "no" instead of yes. Since the default is ...
7
votes
0answers
314 views

How to manage multiple panel layouts for different display setups in KDE?

I use my laptop in 3 display setups: laptop only laptop + monitor laptop + projector For each one I use different screen setup and panel layout. It's quite boring to modify layout after each ...
2
votes
0answers
400 views

ssh X forwarding not working on computers outside LAN when ControlMaster is set to auto [closed]

I can connect to machines on my local LAN using ssh -X or ssh -Y and X forwarding works. However, when trying to connect to machines outside my LAN, X forwarding fails. I have narrowed down the ...
0
votes
1answer
976 views

What is the meaning of cut's -d and -f options

How can this pipeline be explained: cat /etc/passwd | cut -d : -f 9 2>&1 | sort | uniq 2>&1 | wc -l I'm learning Unix by myself and I don't really get it. What does cut -d : -f 7 ...
2
votes
1answer
1k views

bootloader configuration with GPT, RAID1, and LVM

Using the GUID Partition Table and RAID 1, the bootloader (syslinux or GRUB) is not able to boot into the machine, which was installed with Arch Linux. First off, there are two drives identical ...

15 30 50 per page