2
votes
2answers
590 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 ...
4
votes
2answers
4k 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
26k 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
183 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
321 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 ...
42
votes
8answers
98k 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
304 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
6k 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
81 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
117 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
172 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
590 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
417 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
743 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
278 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
1answer
346 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 ...
3
votes
0answers
417 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
1k 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 ...
2
votes
0answers
613 views

Debian Wheezy USB2 ehci_hcd

I have a friend who decided to switch to Linux from Windows. I was helping her to get up and running as quickly as possible but we ran into a problem which I can't seem to solve. She uses Debian ...
3
votes
1answer
417 views

Check if debian/control Build-Depends: requirements are satisfiable when backporting packages

Debian/Ubuntu question here. I routinely backport packages from more recent Ubuntu distros to older ones (LTS). I download (via dget) a Debian source, then cd into it and type debuild -b. It then says ...
0
votes
0answers
455 views

Ubuntu warning. W: Duplicate sources.list entry

After installing Oracle VirtualBox, when I do sudo apt-get update, I get the following warning W: Duplicate sources.list entry http://download.virtualbox.org/virtualbox/debian/ raring/contrib i386 ...
3
votes
1answer
3k views

Is there a update manager whitout gnome dependencies for xfce?

I'm looking a update manager for Debian Xfce. I installed xfce on a computer which will be use by laypersons. Therefore, I want another way (graphical) to launch apt-get update && apt-get ...
3
votes
1answer
738 views

Rsync over ssh tunnel - using gateway server

Environment: ---------- ---------- /| ------------ | Work | | Gateway| | | | cluster | |Station |--------------------------------| ...
5
votes
5answers
3k views

Bash: Fastest way of determining dimensions of image from URL

I'm trying to figure out a really fast method in bash of determining an images dimensions. I know I could wget the image and then use imagemagick to determine the height and width of the image. I'm ...
-1
votes
2answers
72 views

is there a Webview for debian to see what software, packages, etc. are installed? [closed]

I am searching for a webview where I have some overview over my system on my debian server. Is there something out there?
1
vote
1answer
496 views

Ubuntu Server - OS on single HDD, file server on software RAID 1

I run a Windows Server 2008 machine. It is used as a file server (File Services feature), in addition to local shares I use CrushFTP for SFTP and HTTP access to my files. I would like to convert to ...
1
vote
3answers
83 views

Can I install other distro and use /home from previous one?

I want to install CrunchBang, and I have been using Ubuntu 12.10. Should I format /home, or do I need to only format / and install #! there?
2
votes
2answers
524 views

Shell script and adding large values in a delimited file problem

I have a script that reads through a delimited file and adds up the 3rd element in the file for each record. For a majority of the data files, this works fine except for one. I have one data file were ...
5
votes
1answer
5k views

Linux - File change time versus modification time

I'm using Ubuntu 12.04, though I'd imagine this question spans all Linux variants. In the manpage for the stat command, there are two (four) formatting options that appear to mean the same thing: ...
3
votes
1answer
150 views

Two DNS servers, both incomplete

In my company we have 2 DNS servers: one for the internal hostnames and one for Internet. I tried to configure both in my Network Manager, who result in having the two DNS server IPs in my ...
4
votes
4answers
3k views

Recursively apply a command to modify all files in a directory

I have a command that reads a file, and outputs a modified version on stdout: ./convert /path/to/file How can I recursively apply this command to all files in a directory, and overwrite the ...
6
votes
3answers
6k views

How long are Debian stable releases supported? like Debian Wheezy

I am Ubuntu user; while I know that Ubuntu 12.04 is LTS and will be supported until April 2017, I'd like to know what the projected support lifetime of Debian Wheezy will be.
1
vote
1answer
193 views

What does * next to the file name mean in the output of ls? [duplicate]

I have a doubt related the output of ll command. When, in my shell, I execute the ll command I obtain this output: -rwxrwxr-x 1 andrea andrea 104215 ott 15 15:56 atmosfs* Why I have the * next to ...
3
votes
2answers
1k views

Disable xscreensaver when program is running?

I find it very annoying that xscreensaver sometimes helpfully starts while I'm playing Urban Terror, and was wondering if there is a better way to solve this than making some script to run Urban ...
2
votes
1answer
822 views

Use the raspberry pi as a source of entropy for /dev/random

I'm trying to see if I can use my raspberry pi's hardware RNG as a source of entropy for /dev/random. Mostly to see if I can get it to work and find yet another use for this nifty little device. Of ...
2
votes
1answer
428 views

How to add tmux confirm prompt when I kill a window?

I see in tmux's list-keys: bind-key & confirm-before -p "kill-window #W? (y/n)" kill-window I use tmuxinator, and will often go overboard on the Ctrl-D, where I accidentally close a window. Is ...
2
votes
2answers
117 views

Awk not rendering any result

My goal is to get the file created in the current month in a directory. It seems that the command is correct but not rendering any result: Date=`date '+%b'` echo $Date Oct ls -l | awk -v d="$Date" ...
3
votes
1answer
1k views

Compilation of my wifi driver (RTL8192CE) fails

I'm kind of desperately trying to make my wifi work on my newly-installed Debian Sid (amd64, kernel 3.10.11-1). The relevant line of the output of lspci is : 06:00.0 Network controller: Realtek ...
1
vote
2answers
492 views

Increase space between icons in xfce notification area

Is it possible to increase the space between the icons in the xfce notification area? I want to change the spacing so that the notification area looks like the indicator plugin on the left (see the ...
2
votes
0answers
908 views

Live boot GUI convert a primary partition to a logical partition?

Is Gparted Live unable to convert a primary partition to a logical partition? i.e. to make an extended partition and make that primary partition a logical partition within the newly created extended ...
2
votes
0answers
118 views

How can I make Krusader show real size of symlinked files?

In the "size" column in Krusader, there is a link's size noted, instead of the size of the actual file. This is the same as what ls -l shows (the full address of the target file, e.g. 64 B instead of ...
1
vote
1answer
614 views

Archlinux mute sound in browser only

Is there a way how to mute all sounds in browser only? I need it to be done from command line. I'm currently using alsa mixer for mute (command amixer set Master toggle), but I can't find any way how ...
6
votes
3answers
5k views

Bluetooth LE scan as non root?

To perform a scan for bluetooth LE devices hcitool apparently requires root privileges. For normal users the output is following: $ hcitool lescan Set scan parameters failed: Operation not permitted ...
0
votes
1answer
456 views

wireless enabled but can't browse internet

My laptop sees wireless ssid and connects but I get unknown host when trying to ping www.google.co.za, but I get replies when I ping 8.8.8.8, my other machine connected to the same router can surf the ...

15 30 50 per page