1
vote
1answer
125 views

Looping through commands' results, KSH script

I'd like to put two strings in two different variables. Let's take a small example. after a simple grep, I got this : $ grep nl.*acc.*bas : ABAS01=... ABAS02=... I'd like to have two variables, ...
1
vote
2answers
3k views

Why FreeRADIUS service won't work on Centos?

I have installed FreeRADIUS server on centos via yum successfully, but I couldn't start radiusd service. when I run as root user and exec the following radiusd -X an error is occurred. [root@userAAA ...
1
vote
3answers
11k views

Set environment variable automatically upon SSH login (no root access)

The situation: I run Ubuntu 12.04 LTS on a virtual machine. I regularly have to connect to my account on a university server, I do this by opening up terminal and using ssh -Y username@server.com. ...
0
votes
0answers
30 views

SSH tunneling via few hosts [duplicate]

That question is'n only about Unix/Linux - but contain something... So - given: host1 with TeamCity server running on 8111 port; host2 which will be "ssh-proxy" between client and host1. From host1 ...
0
votes
2answers
69 views

Modifiying source code of an application

I'm doing a project where i need to change or add some functionality on an Debian based application. I've downloaded the source code but problem is they all have .rpm as extension. Anyone know what do ...
7
votes
2answers
4k views

Having trouble exporting FUSE via NFS

I've got a self-written FUSE file system I mount on my NFS server on mountpoint /export/example/mount. Then I export a parent directory of the FUSE via NFS. The /etc/exports contains the options ...
0
votes
1answer
330 views

How to make options mandatory in KSH script

Here is the skeleton to catch arguments in my script : # fMain(){ while getopts "d:e:h" _OPTION; do case $_OPTION in d) ...
2
votes
2answers
1k views

GConf equivalent for KDE

GNOME and many window managers such as the Awesome WM use the GSettings settings database, with Dconf as the backend. What is the equivalent of this for KDE? Also, we can edit GSettiings with the ...
5
votes
2answers
2k views

How does AptConf work in Debian Wheezy?

As far as I understand, the /etc/apt/apt.conf file of Squeeze has been broken into separate files within the /etc/apt/apt.conf.d/ directory in Wheezy. The debian wiki has not been updated yet and it ...
16
votes
2answers
827 views

How can I stream data to a program that expects to read data from a file that is given as a argument?

I have a huge gzipped file and I want a program (4s-import in this case) to read it. It takes a lot of time to first unzip the file and then call the program with the path to the file as an argument. ...
2
votes
1answer
463 views

How to have a bash script perform a specific action on errors of _each_ command?

Similarly to set -e performs an exit on "uncaught" $? != 0, I'd like to have this event trigger the execution of another command, e.g. a logger call. How can this be done?
2
votes
1answer
658 views

Sort doesn't use natural order

I have used uniq -c and sort extensively on other machines, and it always worked very well. Now, on my new Ubuntu (13.04) machine, I end up with a weird ordering: % cat queries.log | grep INSERT | ...
0
votes
1answer
762 views

Finding all WAV files of multiple directories and copying them to local computer from server

I have a Linux server where the directory structure is Mainfolder1/folder2/firstfile.wav /folder3/secondfile.wav /folder4/thirdfile.wav Mainfolder2/folder1/fourthfile.wav Now, ...
0
votes
1answer
172 views

debootstrap local download dir

Can someone tell me where does debootstrap store downloaded packages that it's about to install? Possibly also the download method would be interesting (wget/curl/apt-get). In my case I run: sudo ...
6
votes
5answers
45k views

How to start a program in the background

The program Boblight does not run in background. There is no noticeable difference between executing sudo boblightd and sudo boblightd& How can I solve this problem that the console will ...
0
votes
0answers
2k views

How to enable bluetooth in Ubuntu 13.10?

Before updating ubuntu to it's current version, bluetooth used to work just fine. But, now I've been facing problem regarding this bluetooth setting. While adding devices,it keeps on searching but ...
0
votes
2answers
5k views

create a cronjob to run php script

I've created a cronjob in Xubuntu to run a PHP script in every 5 minutes. I did it as follows. I entered the following command: $ crontab -e Then entered the following: */5 * * * * /usr/bin/php ...
0
votes
1answer
92 views

xterminal dosen't pass key-strokes to emacs

I opened emacs using emacs -nw. Now, when I press M-v, it opens the view menu of the terminal, instead of passing the command to emacs. Is there a way to prevent this from happening? (I'm running on ...
0
votes
4answers
4k views

Output the result of DF command to variable then print to an HTML page [closed]

I am having a problem executing a script that basically captures the disk space from the server and outputs the result to an HTML page. STORAGE=$(df -PTh | column -t | sort -n -k6n) The output in ...
11
votes
1answer
2k views

Is there an easy method for installing binary builds of glibc?

Time and time again I see questions such as these: GLIBCXX 3.4.15 on Centos 6 CentOS 4.8 and glibc 2.5 And these are the types of solutions we're typically pushing: how to run new software ...
2
votes
0answers
391 views

Writing to Arbitrary Memory Addresses [closed]

I'm reading "Art of Exploitation 2nd Ed." and I have a question regarding a section on format string attacks. Target program Below code (fmt_vuln.c) is a target program. #include <stdio.h> ...
4
votes
1answer
528 views

xautolock: how to auto-unlock on user activity?

I need to run a script after a period of user inactivity. For that I use the wonderful program xautolock. Now, I also need to run another script when the activity is resumed (e.g. mouse is moved or a ...
2
votes
2answers
760 views

How can I modify and rebuild the Finnix ISO to include my own scripts?

I've been using this live boot distro, Finnix to do some installation work on several virtual machines. I'd like to modify the ISO file to include a script I need to do installations. I've booted the ...
1
vote
2answers
76 views

Replace “-from” with “this” in the begining of line

I want to replace "-from" with "this" in the begining of line. This should happen when that line has 'R' at the end and line above it has "D" at the end. For example for the block shown below: ...
0
votes
1answer
2k views

RHEL - Login screen not showing

I have a RHEL 5.6 system which shut down unexpectedly due to a power failure. I restarted the machine to figure out if something is wrong. However, the machine is not showing the login screen. It is ...
2
votes
2answers
6k views

ACL defaults not being obeyed on copy over NFS

I have an Arch Linux box that has a folder from an Ubuntu server mounted via NFS. I've set up an Access Control List on the folder on the server such that any new files should have their permissions ...
1
vote
3answers
117 views

a string representation using regex (modified)

I would like to use regular expression to represent a pattern with the following type of characteristics 1) It includes a continuous sequence of digit values. The length of this sequence it at least ...
3
votes
1answer
259 views

Discover clients connected to a network [duplicate]

How can you discover who is connected to a wifi network near you? (you not being connected to it). I know that some tools can scan your own network, and that some tools like Wireshark can monitor ...
7
votes
1answer
3k views

How to write bash script to configure my displays when HDMI is plugged in or unplugged

I have a notebook running Kubuntu Precise (12.04) which I occasionally use for watching videos. When I do, I plug in an HDMI cable connected to an A/V receiver with an HDMI monitor attached to it. ...
-1
votes
3answers
1k views

RHEL- mysql installation error

I am trying to install mysql in my RHEL 5.6 machine. I use the command yum install mysql. However, I receive the below error message. Transaction Check Error: file ...
10
votes
3answers
9k views

realpath command not found

I have debian squeeze amd64. My current shell is bash. If I write the following in my terminal, it works: $ uname -a Linux core 2.6.32-5-amd64 #1 SMP Fri May 10 08:43:19 UTC 2013 x86_64 GNU/Linux $ ...
1
vote
1answer
1k views

useradd does not work but has exit code 0

One of my Solaris 10 servers will not add new users. Existing users are able to log in. The useradd command appears to work normally but it does not add the user. I checked my other Solaris servers ...
10
votes
5answers
987 views

How does mounting on the GUI work “under the hood”

UPDATE Please correct me if I'm wrong: For working on my computer, with a GNU/Linux Distribution named Debian, I know two ways to enter a command, start an application, open a file, etc.: a ...
2
votes
1answer
11k views

How to change permissions from root user to all users?

I created a folder on the command line as the root user. Now I want to edit it and its contents in GUI mode. How do I change the permissions on it to allow me to do this?
11
votes
1answer
20k views

New md array is auto-read-only and has resync=PENDING

I've created a new md array with the following command: mdadm --create /dev/md1 -l 1 -n 2 /dev/sd[ed]1 But now /proc/mdstat shows the array as "auto-read-only" with resync=PENDING: ~ # cat ...
3
votes
0answers
794 views

What happens if I delete dmraid?

I am new to Linux and am trying to install Ubuntu 12.04.3 LTS from a live-USB and have it run alongside my Windows 7 installation. On the installation screen for Ubuntu, at the partition page, I get ...
2
votes
1answer
186 views

On Arch, how can you set a WM to start on boot?

How would you go about getting X and a window manger to load on boot, and present a fancy-ish login screen like you would in other distros? I want to use something new to me like dwm or bspwm, but I ...
4
votes
1answer
10k views

Debian user is not in the sudoers file

Accidentally removed my gnome desktop and am stuck in tty1. Trying to reinstall the desktop and keep getting the error "user is not in the sudoers file". Having trouble adding my user, new to debian ...
8
votes
4answers
3k views

sed behaves different on FreeBSD and on Linux?

I use both Linux and FreeBSD (specifically, I use Debian Linux and PC-BSD), and I found something weird about sed. I frequently need to convert "tab separated values" files to "comma separated ...
1
vote
2answers
252 views

How do I enable kernel option MMC_UNSAFE_RESUME

I am trying sleep and wake up my Kobo Mini ebook reader manually by using the command rtcwake. The reader is using busybox. cat /proc/version gives me this output: Linux version 2.6.35.3-850-gbc67621+ ...
3
votes
1answer
106 views

How to cd open / autocomplete a folder that ends in a specific phrase

I have a folder with subfolders named like this: 1122334 important things 1122335 less important things 1122336 notes 1122337 pictures of kittens etc The numbers at the beginning are date codes. ...
2
votes
2answers
106 views

Capturing the name of the file pointed by a symbolic link in a variable

Say I have a symbolic link: /path/to/foo->/path/to/some_file.txt Say I have a shell variable x=/path/to/foo, how can I get some_file.txt in a shell variable y?
0
votes
1answer
757 views

mount: special device /tmp/cdrom does not exist - CentOS kickstart %post section

I am upgrading an installation from CentOS 5.5 to 6.4. I am having troubles with my kickstart file in the %post section while mounting /tmp/cdrom during the install: The following configuration in ...
3
votes
1answer
560 views

present users a login prompt? /bin/login? getty?

I have a service that execs a command when a user connects to it through a socket, and redirects everything it receives to the executed program. It works ok with shells like bash, giving the user a ...
3
votes
1answer
4k views

Linker error: /usr/bin/ld: cannot find -lgcc_s

I am trying to compile symlinks (tar.gz-file), which is a very small tool with one line for compilation: gcc -Wall -Wstrict-prototypes -O2 -N -s -o symlinks symlinks.c which gives the error .... ...
12
votes
2answers
388 views

Does watch only monitor the visible output?

Does watch only monitor the visible output of a command? Say I'm in a directory with the following contents: $ ls a b c d e f g h i j k l m n If I run watch -g ls -1 I expect it to ...
1
vote
2answers
596 views

File compression - how to implement in Linux

I would like to be able to compress certain files (that I need to keep, but use rarely) on disk. I noticed that chattr +c flags a file for compression, but it doesn't seem to actually compress files. ...
1
vote
1answer
253 views

RHEL - GDM could not be initialized

Actions before the GDM failure I was trying to install RT tool in my system. However, the RT tool required Perl 5.10. So, I did yum remove perl to remove the existing version. While the command was ...
0
votes
1answer
831 views

Unzipping a TAR file, causing an error

I am trying to unzip a .tar.gz file using tar xvzf, as hhaamu said in his answer to my other question about Installing GCC on SCO. When I type: bash-3.1$ tar xzf gcc-2.95.2pl1-dist.tar.gz tar: z: ...
1
vote
3answers
96 views

file system not mounted should display it is not mounted

I need to check a particular file system is mounted or not . I know we can find out this from df -k.But here if a particular file system is not mounted, the error should display "cronshadow(file ...

15 30 50 per page