3
votes
2answers
307 views

Where should I copy-paste-install software to?

I'm installing IntelliJ, and the readme tells me to choose an installation folder. Where is a good, standard place to put installed programs?
3
votes
2answers
1k views

The Right Distro for text-based needs

I'm searching for the right Linux Distro. My four current ideas are: Gentoo Grml Arch Debian But I'm absoluty open to more alternatives. Now a little bit more about my needs: I want it to be ...
3
votes
3answers
1k views

.Xresources settings in effect

Is there some way to inspect which .Xresources settings are in effect at the moment (unlike xrdb -query)? For example, I'm on a host which doesn't seem to respect *reverseVideo: true, but I don't know ...
3
votes
2answers
283 views

How to build all of Debian

Let's assume: I have a mirror of the source repository locally. I only want to build for the architecture I'm running, which is i386 in my case. I'm not interested in customisation. In fact, I want ...
3
votes
4answers
3k views

how can i use sudo within a function?

i have written a function which acts in a similar way to tee but also pre-pends a datestamp. everything works fine except when i want to output to a file which is only root writeable (in my case a ...
3
votes
2answers
3k views

su vs su - (on Debian): why is PATH the same?

I know what should be the difference between su and su -, but in my system (Debian) for example PATH is the same: [root]# su [root]# echo $PATH ...
3
votes
1answer
2k views

ps command not giving output in home directory

I am logging into a solaris server, switching to bash, then switching to another user "sruser" and switching to bash. /home/batch/sruser/ is the home directory of the user "sruser". The issue is ps ...
3
votes
3answers
3k views

How is paging managed in the absence of swapping?

How is paging managed in the absence of swapping. If that is the case, how will a page fault be managed? What I meant is, if there is no availability for swapping, then how is Paging managed. I ...
3
votes
1answer
502 views

Grub 2 installed on-partition - how to not embed it

My friend installed ArchLinux on a MacBook Pro alongside Mac OSX and Windows to try it. He's power user, so I only needed to help with the bootloader. Arch Linux's described installation of GRUB did ...
3
votes
1answer
8k views

Mount samba filesystem into RHEL 5.5

I have a trial RHEL version for a proof of concept where I was asked to mount a windows filesystem into linux. I tried mount -t smbfs -o username=samba,password=samba //Desktop/Public /mnt/public ...
3
votes
3answers
755 views

How do I choose between Unix / Linux and Windows in a Server environment?

I need a server, and I'm used to windows at home and in the office, but it seems that Unix / Linux is an option, but I don't really know what it is. I don't know which one to get, how do I choose? ...
3
votes
1answer
294 views

Use _roff to underline words

I currently have a file that I'd like to pass through a _roff to format with underline a few words in the file, and then view the file in less. Just a few, mind you, not whole sections or anything. ...
3
votes
2answers
1k views

Capture multi-line output of a bash builtin

Normally, bash is able to assign multi-line output of a command: L=`ls` This works from both interactive shell and scripts. But it appears the output of a builtin can't be captured in a variable: ...
2
votes
4answers
115 views

What is the difference between running a command directly and with `bash -c`?

For a command (builtin or external), what is the difference of running it directly in a bash shell process and with bash -c in the bash shell? What are their advantages and disadvantages ...
2
votes
0answers
55 views

bash script autobeautifiying using declare -f

I am trying to "beautify" scripts automatically by using declare -f function In a nutshell: Given a bash script foo , you can apparently "automagically" indent it by doing, in bash: MAGIC () { ...
2
votes
1answer
42 views

setting up Xorg input devices without udev

I have udev support in kernel(CONFIG_DEVTMPFS), thus my system does not strictly require udev daemon. Indeed everything works fine without udev daemon with the exception of Xorg (LXDE). LXDE starts ...
2
votes
4answers
60 views

move a file that matches a pattern in a shell script

I have very little experience in writing shell scripts and need advice on how I can accomplish the following task. I need to move the most recent file in a directory where the filename matches a ...
2
votes
1answer
42 views

Why can file expansion work for filenames with a newline character?

$ rm Think\ Python:\ How\ to\ Think\ Like\ a\ Computer \ Scientist\ 2014.pdf rm: cannot remove ‘Think Python: How to Think Like a Computer’: No such file or directory $ Scientist 2014.pdf: command ...
2
votes
2answers
41 views

How to find/grep what is between string1 and string2?

I am trying to extract a value from a long string that may change over time. So for example the string could look something like this ....../filename-1.9.0.3.tar.gz"<.... And what I want to ...
2
votes
2answers
86 views

Avoiding plain-text password in http_proxy

I am behind a corporate firewall, which brings lots of pains in the area of proxies. There are two main approaches I've found to work: Use Cntlm at the cost of not being able to connect (from the ...
2
votes
1answer
85 views

Matching two main columns at the same time between files, and paste supplementary columns into the output file when those main columns match

I have 3 files, each with a unique number of columns, all tab-separated, but some columns are shared between the 3 files. It's the shared columns between the 3 files that I want to use to create some ...
2
votes
1answer
56 views

Return to GUI from text console with many X11 servers?

I know the thread How to get out of TTY and into X session apparently about similar thing as here, and Command line to return to the GUI after Ctrl-Alt-F1 about chvt. I have Ubuntu 14.04 LTS. I run ...
2
votes
1answer
839 views

Intel Skylake + DisplayPort 1.2 MST/Daisy chain on Linux

I am planning to buy hardware for using DisplayPort 1.2's MST feature to daisy chain two monitors in combination with the Intel Core i5 6600 Skylake processor on Ubuntu. Is this supported yet with the ...
2
votes
1answer
137 views

Run SSH over a SOCKS proxy?

I need VPN-like behavior locally, without using a VPN. I've created a SOCKS proxy to a given server which is reachable from the WAN, and I want all of my traffic forwarded through that proxy so I ...
2
votes
1answer
67 views

How do I generate manpages using escape codes for bold, etc.?

While inspecting the source code of less, I noticed that the included manpage (less.man) used terminal escape codes for showing bold text: ^[[1mNAME^[[0m less - opposite of more ...
2
votes
2answers
452 views

Making /dev/net/tun available to qemu?

I have created a tap device (tap0) which I would like to provide as a network interface to qemu. I created the device with the following command and attached it to a network bridge I set up: tunctl ...
2
votes
3answers
167 views

How can I delete everything between two markers in a file?

I have a text in a text file, where I want everything that is between strings like \{{[} and {]}\} to be deleted - including these strings themselves. These two string can lie on different lines as ...
2
votes
2answers
66 views

Find and replace all same files between 2 directories

I want to find all files in dir1 having corresponding same file names in dir2, and replace them with the files from dir2. For example: dir1: first.txt second.txt dir2: third.txt first.txt So I ...
2
votes
0answers
360 views

Difference between make-kpkg and make deb-pkg

I would like to know the exact difference between make-kpkg and make deb-pkg . This question asks almost the same thing but with no satisfying answers. Previously I was using make -j `getconf ...
2
votes
1answer
51 views

NFS Share broken?

I have an NFS share on a server that was working fine up until a few days ago. Me and my co-worker connect to the server with our machines, and share the data we are working on. All are running Ubuntu ...
2
votes
0answers
56 views

RedHat5 stop copy on select

At work do we use RHEL5, with Gnome 2.28.2, we are also required to do development work in RHEL5. RHEL5 have this strange feature that it will replace the clipboard with anything i highlight. This is ...
2
votes
1answer
84 views

Access the GNOME shell aggregate menu per keyboard

Is it possible to access the aggregate menu, or system menu, located in the top right corner on the activities bar of the GNOME shell interface, with a keyboard shortcut? If not, can such a shortcut ...
2
votes
3answers
213 views

Copy vim selected text to system clipboard

My vim is not compiled with clipboard feature. So, i use xsel as suggested by Gilles to copy/paste the contents. I use :.w !xsel -b for selecting the current line and, :w !xsel -b to select the ...
2
votes
5answers
762 views

How to grep all xml files that do not begin with “<”

How can I find all xml files in the current directory and all sub directories, that do not start with < in the first line. I have tried this, but the grep doesn't work: find . -type f -name ...
2
votes
1answer
156 views

How to permanently disable root-password prompt for recovery mode, RHEL6

In the rare cases that a RHEL or CentOS 6 system is prevented from booting by (for instance) an improper shutdown, or a forced fsck-check failure on boot, the console will prompt the user for a root ...
2
votes
0answers
273 views

racoon IPSec/L2TP Client

I am trying to configure a racoon IPSec/L2TP client to connect a Windows 2003 server. The server is originally intended to be used with Windows XP clients (successfully tested with Windows XP SP3 but ...
2
votes
1answer
169 views

What are some methods I can use to create colorful MOTD messages when logging in?

From time to time I've come across colorful ASCII art styled messages when logging into a server. How are these messages constructed?
2
votes
3answers
346 views

How can I copy three partitions of my disk with a specific beginning and ending using dd?

Using the fdisk -l command I got the following answer: Device Boot Start End Blocks Id System /dev/sda1 * 2048 28266495 14132224 27 Hidden NTFS WinRE ...
2
votes
1answer
677 views

How to make this conky (Conky Vision) use other language than English?

I want to use this conky script: Conky Vision But I don't want the days of the week to be displayed in English. When I change my locale to another language, the day of today is displayed in that ...
2
votes
1answer
92 views

Stable timing for shell scripts?

The run times of scripts vary quite much. I would like to find similar time -function as Matlab's timeit, described here. For instance, I am evaluating these commands here about counting quickly ...
2
votes
1answer
114 views

Linux - check IPC stats

What is the best way of checking current status of different types of IPC in Linux (including uids) ? I want to inspect named pipes, half duplex pipes, unix domain sockets, signals. I know for sys V ...
2
votes
3answers
321 views

Split binary data of fixed byte offset by byte position?

I have binary data which I review by xxd -ps in hex format. I notice that the byte distance is 48300 (=805*60) bytes between two headers where the separator is fafafafa. There is the beginning of ...
2
votes
1answer
810 views

What are the default Polkit privileges on Arch Linux for shutdown, halt, etc., and why are they so?

On Arch Linux, with systemd, the following commands are all symlinks to systemctl: /usr/bin/telinit /usr/bin/poweroff /usr/bin/runlevel /usr/bin/reboot /usr/bin/halt /usr/bin/shutdown I find their ...
2
votes
1answer
3k views

Return code for curl used in a command substitution

I've script as below :- (edited) httpUrl="http://www.nnin.com" rep=$(curl -v -X POST -d "UID=username&PWD=pass" $httpUrl) status=$? if [ "$?" -eq 0 ]; then echo "Success" exit $status ...
2
votes
1answer
380 views

Descriptive message services

I have Debian 8 jessie installed on my Laptop, before when I had a Debian 7 wheezy, the system startup and shutdown showing descriptive messages such as these: Now on debian 8 jessie, when I start ...
2
votes
1answer
957 views

How do I run GUI applications as root by using pkexec?

I am using Trisquel GNU/Linux-Libre which comes with Gnome3 Flashback Desktop Environment. I know that I can run GUI application as root by sudo & gksudo but I want to know that How do I run GUI ...
2
votes
4answers
2k views

VIM solarized color scheme looks wrong when using tmux

I am trying to use the solarized color scheme in VIM using gnome terminal (Ubuntu). When I run vim without tmux, it looks great, see below: If I add the following commands to my .bashrc # tmux ...
2
votes
1answer
383 views

Relationship between IO scheduler and cpu/process scheduler?

The concepts of IO scheduler and CPU scheduler confuse me. Below are my understanding: Linux uses CFS scheduler + nice values by default to schedule processes. Each process has an IO queue. There ...
2
votes
1answer
335 views

Mount linux mount in windows (without ftp)?

I successfully mounted my external hard drive (ntfs) to /mnt/seagate. I'm using debian and the server is connected over LAN to my PC. So how can I mount my hard drive in my windows explorer without ...
2
votes
2answers
2k views

Make does not compile modules. Error: Building modules, stage 2. MODPOST 0 modules

I have banana pi and installed debian with kernel 3.19.3-bananapi from http://www.igorpecovnik.com/2014/09/07/banana-pi-debian-sd-image/ So I want to compile a module so I downloaded kernel from ...

15 30 50 per page