2
votes
1answer
4k views

How to restart KDE window decorations without loosing the running X session

For graphics editing of some special graphics formats I am using a java program called imagej. This has the annoying bug that one special function tends to kill KDE's window decorations if it has too ...
2
votes
1answer
922 views

Run remote shell daemon as non root user with tab-completion

I need to run any "remote shell daemon" (ssh, telnet, netcat, socat... I don't mind) as non-root user. The remote shell should provide tab-completion and I want to be able to browse history using ...
2
votes
2answers
1k views

How do I set vim as the default editor when I sudo?

I'm working on a CentOS 5.9 machine, and I simply want to type sudo vi somefile and have my trusty vim with syntax highlighting, etc. This seems simple enough, but after many attempts, it's ...
11
votes
3answers
31k views

How to avoid the need to issue “y” several times when removing protected file

I'm looking for a solution to be used as a response to "rm: remove write-protected regular file [x] ?" I was thinking of issuing a character followed by carriage return for several amount of times, ...
1
vote
1answer
92 views

Can I put 2 disks into a raid-0 array without reformating the FS?

We have an existing /dev/sda disk, we are adding an identical /dev/sdb I want to place these two disks in a raid-0 array. Can I do that without reformating /dev/sda?
1
vote
2answers
2k views

Delete n minutes old file in solaris

Can some one please tell me how to delete n minutes old files in Solaris? My find does not -mmin option.
2
votes
0answers
471 views

Emacs on Minix 3?

Has anybody managed to install Emacs on Minix 3? Emacs was available on earlier versions of Minix. I am OK with an earlier version of Emacs if necessary. I don't find Zile, mg or Elle adequate and ...
0
votes
1answer
7k views

How to remove Oracle Wallet using orapki?

Hi i'm on Centos using oracle 11g And i've created a wallet using : $ orapki wallet create -wallet /u01/app/oracle/admin/DB11G/wallet -pwd WalletPasswd123 -auto_login Now i want to remove it to ...
2
votes
0answers
567 views

How to properly configure GRUB settings from KDE System Settings

I'm using Kubuntu 12.04 with KDE 4.10, and I recently installed the kde-config-grub2 that places a nice Grub configuration panel into KDE System Settings. I played around a bit, more for learning how ...
4
votes
1answer
575 views

Watch file using multitail even if it has not been created

I've a MapServer logfile; it is created in /tmp/mapserv.log, but obviously it is flushed at every reboot, and is created only when a loggable event occurs. I'm already using Multitail, but now I need ...
2
votes
4answers
152 views

any feature on linux like Perfermance Counter on Windows servers?

I have a tomcat web application, when invoking an unstable remote API, I want to get realtime http request time at any time. On windows server, I can use Performance Counter, does centos provide ...
0
votes
2answers
340 views

Unix command to exit from command prompt

How can I exit from command prompt from shell file? shell file contains : if(); then // some unix code here else // want to exit from cmd prompt or Kill current cmd prompt fi can any knows @ it?
0
votes
3answers
647 views

SSH connections not accepted after configuring NFS?

I have a couple of servers in a VPC in Amazon EC2. One of them acts as a NFS server, and one of them as a client. I recently noticed a problem in the client that after a reboot, it would reject all ...
10
votes
1answer
16k views

Unzip file contents, but without creating archive folder

I have a file myarchive.zip that contains many directories, files, etc. Let's say this myarchive.zip file lives in a directory called "b". Well, when I use the "unzip myarchive.zip" command, the ...
1
vote
0answers
46 views

How to interpret the explicit references to GNU in the LSB specifications?

The LSB is a specification, and as such, should be provider neutral. But it contains many “hard‑coded” reference to GNU at many places. Ex. the ELF Linux's specific entries PT_GNU_STACK, PT_GNU_RELRO ...
2
votes
1answer
1k views

How to safely remove hard-link to home folder?

In a folder owned by my user /sites/Website there is a dir named ~. When I cd to this directory, I am redirected to ~/, my home folder. At first I thought this was a symbolic link, but doing ls ...
2
votes
1answer
596 views

Is there any way to install freeBSD from Debian?

I know that one can install Debian from (AFAIK) any Linux computer using debootstrap. Is there any way to do the same for freeBSD or do I need to make a CDROM?
3
votes
2answers
1k views

group option in fstab not working

I'm trying to take advantage of the "group" option for fstab entries and not having any success. From the mount man page: Normally, only the superuser can mount filesystems. However, when fstab ...
2
votes
1answer
720 views

Double GNOME UI elements with Xinerama

I have a Debian 7.0 system which I'm trying to set up with 3 monitors. I'm using a Quadro NVS 420 card with the latest NVidia drivers. I configured it using Xinerama and the nvidia-settings utility, ...
22
votes
4answers
15k views

Count number of lines of output from previous program

I'm trying to count the number of lines of output a certain program produces. The problem is, the program takes a long time to run, and I want to display the output to the user. Is there a way to ...
1
vote
0answers
169 views

rsstail Not Printing Output

I've installed rsstail 1.8 on my linux box and everything seems to be going smoothly, knock on wood, except for the part where rsstail isn't printing the streams. Running the command, I see that it's ...
6
votes
3answers
161 views

forward vs. backward symlinks: administrative practice?

I'm wondering how other people feel about forward symlinks: are they safe? Good practice? Depends? The reason I ask is that apparently in the linux desktop world, there seems to be a push by ...
2
votes
1answer
11k views

Mint update with NVIDIA breaks Cinnamon

I have Linux Mint 14 64-bit Cinnamon on a desktop with an NVidia GTX 680 graphics card. I downloaded and installed the drivers from the NVIDIA website (installed on TTY1 with sudo service mdm stop). ...
5
votes
2answers
8k views

How to install CentOS 6.4 on Mac Mini?

I have bought a new Mac Mini, and would like to use it as a Linux server. Now I'm trying to install CentOS on it. I downloaded CentOS-6.4-x86_64-netinstall.iso and booted the Mac Mini from a ...
0
votes
1answer
317 views

Change default Encoding in Terminator

The Title stays pretty much for itself. Tried to figure it out myself but I can´t find a config-setting nor a option in the Preferences for the Encoding. Does anybody know how to change the default ...
1
vote
2answers
491 views

Monitoring script started by rc.local

We have a C program which is started using rc.local´. We added a line like this: /usr/local/bin/pc to the rc.local file. pc is a compiled C program. Everything is working fine at the moment. What ...
0
votes
1answer
774 views

Cannot boot from usb

I bought a new computer (Samsung NP900X4D) which came with Windows 8. I want to install linux (Mint 14) but the computer lacks any optical drives, and so the only option (I'm aware of) is using a ...
4
votes
1answer
2k views

Pass colors from ls through pipe to awk 'print' statement

This is a follow-up to my question from yesterday, Show sum of file sizes in directory listing. Thanks to Zero Piraeus and a point in the right direction by Mauritz Hansen, I now have function ...
5
votes
1answer
7k views

How do I highlight the current line and the cursor in .vimrc?

I am trying to highlight the current line as well as the cursor position in Vim. Here's my .vimrc: set cursorline hi CursorLine ctermbg=8 ctermfg=15 "8 = dark gray, 15 = white hi Cursor ctermbg=15 ...
1
vote
2answers
472 views

Guide/help using Dialog with bash scripting

While I understand how to create menus, no guide I've found teaches how to actually link them to commands I was hoping to have something like: dialog--clear --title "n00b's spellbook" \ ...
3
votes
0answers
473 views

Change the default terminal for all .desktop files?

My htop.desktop launches XTerm, but I want to change the default terminal to xfce4-terminal in all "Terminal=true" .desktop files.
8
votes
2answers
138 views

How should I solicit feedback from a tree maintainer for patches sent to the lkml?

I have submitted a patch to the linux kernel that has gotten several reviews and gone through a couple iterations on the mailing list. It has been ACKed and reviewed by two developers, but they say ...
4
votes
3answers
5k views

lost superblock in md raid

Issue on Red Hat Linux 5. Due to some miscommunication two LUNs in our environment were enlarged from 1.2 TB to 1.7 TB. Now, after a reboot, mdadm does not find the superblocks to build the array ...
0
votes
0answers
31 views

Pass process ownership to another shell [duplicate]

I didn't hear of anything like this, but It might be possible. I often end up starting a process on a server and midway realizing that I would like to suspend that process and continue it inside a ...
4
votes
1answer
2k views

Debian: Mounting NFS Volume at boot with fstab not working, How to change when this is attempted on boot

So there are a bunch of NICs and vlans on the server and after adding the last ones the auto mount of a network volume is not working. I can do it all right if i SSH in and use mount however it doesnt ...
2
votes
1answer
1k views

Script to check a folder, print the files then delete those files

I am looking for some guidance on creating a script that will check a specific folder, print all documents (if any) and then delete those documents. I would also like to run this script as a cron job. ...
1
vote
1answer
112 views

Effect if any of changing LD_LIBRARY_PATH environnment variable on emacs fonts?

The rendering of my emacs fonts changes if I define a specific list of directories under the LD_LIBRARY_PATH environment variable just before I call emacs. I changed this because I wanted to use emacs ...
1
vote
3answers
3k views

find . .[^.]* -type f -print0 | xargs -0 sudo chmod 664; does not work

I am using this command to set permissions for files recursively clime@vm6879 /srv/www-php/steeltrading $ find . .[^.]* -type f -print0 | xargs -0 sudo chmod 664 But after executing that command ...
3
votes
2answers
4k views

What does `chown root.root $file` mean?

I'm trying to install colordiff in a custom directory because I do not have sudo privileges. I did make the directories hard-coded in the Makefile as stated in the README, but I'm getting this error: ...
4
votes
3answers
473 views

Why should 'Character Classes' be preferred over 'Character Ranges' In Shell (Bash)?

The Linux Command Line (Book - page count 47) says: ... you have to be very careful with them [character ranges] because they will not produce the expected results unless properly configured. For ...
-2
votes
1answer
435 views

Looking for a yum package repository containing apache subversion

I'd like to be able to install Apache Subversion on Red Hat with yum. Can anyone recommend a package repository?
3
votes
1answer
2k views

Output of `java -version` not matched by grep or awk

On my Linux machine, it isn't clear to me why if I do the following then I don't get only the version string ("1.5.0_32"). # java -version | grep version | awk '{print $NF}' java version "1.5.0_32" ...
0
votes
3answers
415 views

How to get GPU acceleration working for my old PC?

I am using an old PC Pentium4 2.4Ghz with nVidia GS 7900 AGP 256MB and I would like to support the video play from GPU. As far what I have read, the support for vdpau has come for nVidida 8 series. ...
2
votes
3answers
710 views

Why does this work: “cp image.bin /dev/mapper/loop0p1”?

Why does this work? cp image.bin /dev/mapper/loop0p1 image.bin is a partition image. I have tried it and works, but why? Shouldn't a dd be used?
4
votes
1answer
2k views

why ss(8) understands listening UDP ports differently than netstat(8)?

If I execute ss -lu in order to view all the listening UDP sockets, then none of the sockets are displayed. If I execute ss -au, which lists all(both listening and non-listening) UDP sockets, then ...
6
votes
3answers
3k views

Get diff changes between original files installed with apt and current files

I installed php5-fpm package using apt; then I made some changes to the PHP configuration files. Now I would get the diffs between the original files versions (the ones of the package installed) and ...
10
votes
5answers
7k views

How to remove multiple blank lines from a file?

I have some text-files I use to take notes in - just plain text, usually just using cat >> file. Occasionally I use a blank line or two (just return - the new-line character) to specify a new ...
5
votes
3answers
16k views

awk + print line only if the first field start with string as Linux1

how to print the line in case the first field start with Linux1 for example: echo Linux1_ver2 12542 kernel-update | awk '{if ($1 ~ Linux1 ) print $0;}' the target is to print the line , ...
3
votes
2answers
1k views

Error mounting drives

I am not able to mount the disk. It is showing error. Error mounting system-managed device /dev/sda3: Command-line `mount "/media/tusharmakkar08/Local"' exited with non-zero exit status 1: [mntent]: ...
2
votes
3answers
386 views

How to count the number of words and print the lines that match exactly a given pattern?

I want to count the number of words and print the matched pattern lines which matches exactly with following pattern: abc-ERROR: The input File contains: # abc-ERROR: xyxxkkfgfr # def-Error: ...

15 30 50 per page