2
votes
1answer
3k views

Testing if a port was forwarded correctly in Ubuntu

I have a Ubuntu box connected to a wifi router. This wifi router is connected to a d-link adsl modem/router. I am preparing this Ubuntu box to run a server that will use some special ports in UDP and ...
1
vote
0answers
307 views

really basic bootstrap logger - (preferably syslog, cascade to http/raw)

I have a bootstrap shell script that is run as the very first thing when a fresh Linux server is booted up to multi-user mode with networking. Once it is complete, I would like to report the error ...
1
vote
1answer
1k views

Capture user input while doing other things

Is there a way to have the output of a subprocess (something other than 'sleep' below) be dovetailed with the output from a foreground command-loop? For example: while true do echo "updating ...
2
votes
2answers
2k views

Fedora 16 ssh over the internet/home network help. Same computer ok

I first posted this on serverfault, but this forum seem to be more appropriate. http://serverfault.com/questions/345471/fedora-16-ssh-over-the-internet-home-network-help-same-computer-ok I think I ...
2
votes
3answers
2k views

Ignore or catch division by zero

How do I ignore the division by zero error in Bash? Example 1: (Doesn't work) echo $((1/0)); echo "yay"; echo $((1/0)) || echo "yay"; Example 2: echo -n $(echo -n $((1/0))) 2> /dev/null; echo ...
0
votes
2answers
1k views

Cannot Connect Using SSH: UseDNS terminating

When I attempt to login via ssh like so ssh marc_mtpt0@m3pt0.com I get this response: /etc/ssh_config: line 51: Bad configuration option: UseDNS /etc/ssh_config: terminating, 1 bad configuration ...
3
votes
1answer
1k views

Making Chrome open md/markdown file instead of downloading them [closed]

I'm trying this google chrome plugin that previews md files in chrome. But when I open an md file from local filesystem, chrome downloads it instead of opening it. So the plugin cannot preview it. md ...
5
votes
5answers
5k views

How to overcome libc resolver limitation of maximum 3 nameservers?

Suppose I work in environment with number of domain changes and slow propagation. I want to test domain configuration immediately after setting change but the propagation is slow. So I want to add ...
1
vote
2answers
86 views

How can I install programming tools in the root directory so that they can be used by non-admin users?

I'm running OS X and for security reasons my main account does not have admin privileges. How can I install development tools in the root directory so that they can be used by all users? If this can't ...
3
votes
2answers
375 views

shell howto: save multiple binary data files (jpg) to one file with some additional data and separate again

I have a system with restricted calculational power (fritzbox) and functions (busybox) and an webcam, able to deliver JPG files. Now I'm looking for for a method (based on shell script) to download ...
3
votes
2answers
197 views

Will Linux become UNIX, instead of just UNIX Like? [closed]

More specifically, is it a goal to make Linux match up to the Single UNIX Specification? Additional details would be nice, for example. Is Linux hopelessly far, or somewhere nearby the SUS? Is the ...
3
votes
2answers
613 views

Java process, swap (/proc Solaris10) memory highly utilized

How can I analyze high swap memory utilization of Solaris 10 for Java processes?
2
votes
1answer
193 views

Expanding text format in VI

The following code is taken from the superfish module for websites: (function($){$.fn.hoverIntent=function(f,g){var ...
3
votes
3answers
959 views

Monitoring progress/liveness of background jobs

I have started a background job. Is there a way to know how it is progressing, and whether it has stopped? My command line is like: java weka.classifiers.trees.J48 -t data.arff J48-data.model ...
2
votes
2answers
97 views

sixteen digit colour code?

I am trying to convert the mac4lin awn theme from 0.3 to 0.4 so it will work in my awn. But I'm not sure about the colour codes in the 0.4 files. They are not normal hex codes, they are sixteen digits ...
5
votes
1answer
596 views

How can I make C-m1 emulate a right click?

On Mac OS X, you can right click by holding down control and clicking. I swapped the command and control keys with setxkbmap -option altwin:ctrl_win, but how do I make it right click by holding down ...
2
votes
2answers
168 views

How to port printer settings between different distributions?

My wife's netbook has two distributions installed on it: OpenSUSE 11.4, which she no longer uses much, and Debian testing. The only reason why OpenSUSE is still installed is that, for some odd ...
1
vote
0answers
2k views

xfce swap command and control keys

What is the equivalent of this in Debian XFCE?: Go into System -> Preferences -> Keyboard Click on the "Layouts" tab and then click the "Layout Options" button. Click on "Alt/Win key ...
2
votes
1answer
2k views

NAS box mounted via CIFS - problem with permissions

I'm running the latest version of Ubuntu, and have mounted a SMB share via a line in rc.local. The share mounts correctly, and I can browse files freely, create new files, and then delete them ...
2
votes
1answer
68 views

Problematic booting process

About a month ago I installed Lubuntu 11.10. Since that time there is a problem with booting and shutting down. Booting is endless. This screen never disappears, so I have to manually press the ...
0
votes
1answer
166 views

System crashes during boot while mounting /lib/init/rw

After a nasty crash, my system keeps crashing during boot. After a little bit of investigation I have discovered that it crashes executing the following function (in /lib/inin/mount_functions): ...
1
vote
4answers
1k views

Checking for the existence of files against a list

I have a "command" text file that issues a data file download command on each line. I send the command file to bash. However, a small percentage of the downloads fail. Here is the algorithm I ...
-2
votes
1answer
772 views

Best method for testing android kernel

I would like to test some of the features of android kernel like inserting a module and collecting certain parameters for research purpose. What would you think the best method for that?
4
votes
2answers
2k views

the usage of < /dev/null & in the command line

I tried to run an example java program using the following command line. However, I do not know what is the trailing part < /dev/null & used for? java -cp /home/weka.jar ...
4
votes
3answers
826 views

AIX won't stop creating random .nfsXXXX files

I am trying to delete some files and folders, but I can't because the system keeps re-creating the files. All these files are named .nfsXXXX, where XXXX is some random 4-character hexadecimal ...
4
votes
4answers
521 views

Show output on another “screen” and return to normal when done

I want a similar behavior as less vim nano etc. uses. Is this possible to achieve with bash?
2
votes
4answers
2k views

Command Line Linux Distro for i386 and 128MB RAM

I'm looking for a command line Linux distro that runs under 128Mb of RAM and works with i386. All the distros that I've looked at so far seem to be too big, don't support that old of a processor, or ...
6
votes
3answers
6k views

Blocking outgoing connects with iptables

I have a (non production) machine where external supporters have shell-access (non-root). I want to prevent them from going further on into our network from that machine using iptables. The "normal" ...
2
votes
1answer
2k views

How to change the default web page in Linux Mint 12

I need help with Linux Mint 12. I am trying to change the default web page, so that people using guest-session will open a specific web page instead of Linux Mint's corny default site. Also, please ...
5
votes
1answer
962 views

Configure fstab for a bootable usb

I'm trying to clone a partition and make it a bootable usb. I've made two ext3 partitions (just like the installation I'm cloning). The first one is small and has grub/ and the kernel. The second ...
6
votes
1answer
3k views

How do I get the difference between two timestamps?

I am creating a simple backup script. I would like to have a message saying "You last backed up x days ago" on login. I can create a file when I do the backup "backup/.last_backup_timestamp" but what ...
16
votes
4answers
3k views

Is it possible to configure ctrl-w (delete word)?

Normally, Ctrl-w deletes back to the last whitespace. Is it possible to configure it to use additional characters, such as /? Edit: To be more clear: I don't want to configure the key for it, I want ...
9
votes
4answers
17k views

What causes swap files to be created?

As part of the program I wrote, I constantly read and write data from files. I noticed that as part of doing so, I am inadvertently creating swap .swp files. What do you think is going on? What would ...
11
votes
3answers
357 views

Prompt user on Linux security denial

Is it possible to make a Linux security module (eg. AppArmor, SELinux etc.) prompt the user, when an application wants to access classified files or folders (digital signatures, SSH keys, credit card ...
6
votes
1answer
1k views

Dual monitors on dual video cards on Ubuntu

I have been trying this to no avail. I am new to Linux, so a step by step explanation would be greatly appreciated. I have two NVIDIA GeForce 8600 GT video cards. I want a monitor to run on each card, ...
6
votes
1answer
1k views

Why bash time is more precise then GNU time?

The buitin bash command time gives milisecond precision of execution and GNU time (usually /usr/bin/time) gives centisecond precision. The times(2) syscall gives times in clocks, and 100 clocks = 1 ...
3
votes
2answers
2k views

Why isn't my environment variable visible from the command line?

I'm trying to run the James SMTP server on Lion (Mac OS X 10.7.2). When I do this: sudo JAVA_HOME=/Library/Java/Home ./james-2.3.2/bin/run.sh it works fine. However, I'd like to make JAVA_HOME an ...
3
votes
2answers
10k views

Getting OpenGL to work under Ubuntu

I have an Intel graphics card, of which I can't tell whether or not it's being recognized. When I go through GUI to the System Info section, it states that my graphics card is unknown. Despite this, ...
1
vote
2answers
245 views

Browser-based front-end to linux

I'd like to ask if anything like this exists. A browser-based tool for looking at a Linux system, managing it, and helping newbies diagnose problems. What I'm thinking of is something like this : ...
2
votes
2answers
972 views

how to apply this patch

There is a patch fix for perl module net::ssh2 it fixes a seg fault error that happens on some machines. It's located here: https://rt.cpan.org/Public/Bug/Display.html?id=36614 I downloaded the ...
2
votes
2answers
314 views

What's the motivation behind kfreebsd

I use both FreeBSD and Debian-based Linuxes on a daily basis. (I am mostly a user/developer/sysadmin not an OS-developer). I want to know what is the motivation behind kFreeBSD? Why people may want ...
3
votes
1answer
115 views

Access PgSQL executables from anywhere

I've installed PgSQL 9.1.2 from PostgreSQL repositories and all it's fine except that I can't execute command from every path in my OS. For example suppose that I want to run the command pg_dump: for ...
2
votes
1answer
2k views

Match one part of a regular expression in a Kwrite find-and-replace regex

Among the joys of KDE, Kwrite is surely noteworthy. Having regular expression support built in by default into text editor is probably one of the top 10 best ideas of all time. Since I often need to ...
1
vote
0answers
271 views

GUI for mount_afp?

I have installed mount_afp, so I can access my iMac via AFP on my PowerBook G4 running Debian XFCE. It works in Terminal (screenshot), but is there a GUI for it - like File Manager?
7
votes
3answers
4k views

If I see a process running using ps, how can I find the executable?

If I can see a process running using ps -e, how can I find the file which launched it?
8
votes
4answers
4k views

Copying protected files between servers in one line?

I'd like to copy squid.conf from one server to another. The servers don't talk to each other. I'd like to go through my workstation. Both servers have the file, so it will be overwritten on the ...
11
votes
4answers
1k views

How do I choose specific files in a different directory using bash?

I want to list (or delete, or do some other operation) on certain files in a directory, like this: $ ls /opt/somedir/ aa bb cc aa.txt bb.txt cc.txt $ ls /opt/somedir/(aa|bb|cc) ## pseudo-bash ...
2
votes
2answers
317 views

Memory reporting issues

When I view the system monitor it reports that I'm only using 48% of ram. Same with gkrellm. But all of the command line utilities report different. Here is the output to free and /proc/meminfo. ...
5
votes
1answer
6k views

Ignore a specific ip for fail2ban

I am using fail2ban with ipfw on FreeBSD. Is there a way to ignore a specific ip address, making sure that fail2ban never blocks or reports it?
1
vote
1answer
820 views

Install virtualenv on Fedora 16

I come from Ubuntu. I know how to install virtualenv and configure stuff on Ubuntu. Now Fedora seems pretty strange to me... Following these two guides: Setting up virtualenv, pip, virtualenvwrapper ...

15 30 50 per page