0
votes
1answer
52 views

IP Prefix - how do I declare this?

Hi I have an IP Prefix issue I would like to declare the following IP's as "safe" using ip prefix "methodology" ("?") The IP's first three parts of the IP have been doctored to protect the innocent, ...
1
vote
2answers
216 views

How to get the group that a user belongs to in SCO

I can see how to add a user, but is there a way to get information on a user, such as the group that it belongs to?
0
votes
4answers
159 views

Can I have the shell ignore the command line sometimes but not always?

For debugging purpose sometimes I access a remote Linux box via VNC. At that time someone else may be working on that same Linux box through VNC and it may happen that I do not have facility to chat ...
3
votes
1answer
492 views

Easiest method to create pdf from template using command line (without pdflatex)?

For ten years I have been generating billings for me and my wife in this way: Create TeX template with LyX or by hand Using in this source placeholder text Then: cat template | sed ...
3
votes
1answer
214 views

sshfs LocalForward without config file

I'm trying to add portforwarding to my sshfs-mount-scripts: sshfs tim@devserver1:/ /home/tim/mnt/devserver1/ -o SSHOPT=LocalForward 127.0.0.5:3306 127.0.0.1:3306 So far I've failed using the ...
2
votes
2answers
232 views

How does system know where the first logical disk starts?

I'm trying to understand the ms-dos partition table, and there's the following diagram: It comes from this site. Almost everything is pretty clear to me, but there's one thing I don't get. As you ...
4
votes
1answer
449 views

ARP request with wrong IP address

I have a strange problem with a Linux router. The setup is like this: host1 === Linux router === host2 a.b.c.d --- a.b.c.e/g.h.i.j --- g.i.h.k Every five minutes host1 tries to reach host2. ...
1
vote
1answer
46 views

Let the server own the file created by the client on a Samba share

I'm sharing a directory on my Mac using Samba. When the client (Raspebian) creates a file on the mounted share, the file is owned by the user on the client and the permissions are set to -rw-------. ...
2
votes
2answers
163 views

What was the old linux game for programmers, simulating a life on a grid of pixels? [closed]

I remember about 10 years ago in the official Linux repository there was a program, simulating a life of creatures on a grid of pixels (each occupying one pixel). The point of the "game" was in ...
15
votes
9answers
139k views

yum update fails: Error: Cannot retrieve repository metadata (repomd.xml) for repository …

I'm using CentOS 6.3. When I try to update my system with yum I have this message: yum update Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.ircam.fr * ...
0
votes
3answers
2k views

SSH public key authentication works on LAN and not from WAN

I've setup my SSH server to use public key authentication. When I connect to my server on local network, it authenticates. But it doesn't when I connect over the internet. I don't think the problem ...
0
votes
2answers
2k views

Ssh 'access denied' from one host but not the other

Consider the following scenario: I have a Debian-ssh-server setup and exposed it to the internet for some time for testing. Also I have an account which is basically configured as root in the sudoers ...
2
votes
2answers
1k views

How do I get my laptop screen backlight brightness controls to work?

What do I need to do to get my laptop screen backlight brightness controls to work? I currently have Ubuntu 13.04 and a Dell Studio 1558. After reading these two links: ...
2
votes
1answer
328 views

Linux Equivalent of Windows Reparse Points?

I've recently become aware of a neat feature of Windows file systems called a reparse point. My understanding is that they are files whose contents when read are not the contents on the actual disk, ...
2
votes
1answer
345 views

Why it is necessary to update /etc/default/grub, and not just save it?

I understand that the grub file contains some instructions that are required before booting such as: booting in text or booting in Graphics mode. My question is why do I need update-grub? Why just ...
21
votes
4answers
3k views

Automatically detect when I typed “vi” but meant “cd”?

Title says it all. About 5 times a day, I type "vi" when I meant "cd", and end up opening a directory in vi. It's making me NUTS. It seems like there should be a way to detect when I type in "vi + ...
2
votes
2answers
655 views

Shell script to wait for a packet from a certain port

I want to start my minecraft server when someone tries to connect to it on port 25565. I have a plugin for the server which shuts it down after x amount of minutes without players online. With a shell ...
3
votes
1answer
356 views

Show in folder does not select file

In various applications when I do "show file in folder" it simply open the file-manager (nemo) but does not select the actual file. How can I make show in folder also select the file?
2
votes
1answer
4k views

“stdin: is not a tty” mails for running scripts as cron jobs

I have several shell scripts (bash) which are started by cron. Every time a script is executed I get an email saying "stdin: is not a tty". Can someone please tell me how to fix this? All scripts run ...
1
vote
1answer
923 views

How to escape spaces while using command's output in command line [duplicate]

I want to perform the following command in command line : $ md5sum $(find . -type f) But this would cause problems when it encounter files with spaces in filenames : md5sum: Kaufmann: No such ...
5
votes
1answer
720 views

Reset running process when certain ammount of memory is consumed

I'm running a Hydra on Rasppberry PI. There were some problems with the program, but aside from these, there is a hidden memory leak in the program. The source is pretty big and really can't find the ...
1
vote
2answers
2k views

Debian: How to resolve Xserver failure

I keep finding similar posts online but I can't really use the solutions in my case. in my /etc/bash.bashrc file, I have the following code placed at the very bottom: if [ -e /tmp/.X0-lock ]; then ...
2
votes
1answer
72 views

How can I migrate my Ubuntu installation from LVM2 to RAID5?

I stumbled upon this question, but I do not think this is a duplicate since I'm under the impression that the OP in this question is not running under a live session. I, on the other hand, have ...
16
votes
3answers
9k views

If you ^Z from a process, it gets “stopped”. How do you switch back in?

I accidentally "stopped" my telnet process. Now I can neither "switch back" into it, nor can I kill it (it won't respond to kill 92929, where 92929 is the processid.) So, my question is, if you have ...
9
votes
1answer
266 views

Do spellcheckers exist that are aware of Markdown?

I would like to run a spellchecker over my articles before I publish them. I think aspell is ok, but it should not try to check code blocks: asdfasdfa adsfa sdfa text to check adsfasd f ``` a wild ...
1
vote
1answer
370 views

fg a bg process because you forgot to redirect output to /dev/null

I did Ctrl+Z bg with the intention of disowning next, but I forgot to redirect, now I cant get to my terminal because the scrolling of the output (tarballed a huge directory with verbose set). How do ...
5
votes
1answer
3k views

How do I decrypt a message using openssl's CLI?

I have a message, I know the password and the cipher that was used to encrypt it, but I can't figure out how to ask openssl to decrypt it. I see the cipher in the output from the ciphers command, and ...
1
vote
2answers
3k views

Running ipython notebook on Debian

I'm trying to get ipython notebook to run on my Debian machine without much success. I've installed ipython and ipython-notebook via apt-get, but when I try to start it up I get the following: $ ...
0
votes
1answer
2k views

How to install C++ compiler for Eclipse

Im unable to run my C++ codes because Eclipse has not c++ compiler installed in it . How can I install C++ compiler for eclipse on Fedora 20 or other linux os's? When I execute my codes it says: ...
3
votes
1answer
543 views

Reconfigure login through root ftp (lost ssh access)

My question is twofold. I need to somehow re-enable telnet and/or ssh in a device where I currently only have root ftp access. Also, if I am going about this wrong, please let me know. Details to ...
2
votes
1answer
5k views

find + grep to match exact keywords in a file

My script is not matching exact words only. Example: 12312312Alachua21321 or Alachuas would match for Alachua. KEYWORDS=("Alachua" "Gainesville" "Hawthorne") IFS=$'\n' find . -size +1c -type f ! ...
4
votes
4answers
1k views

How to search XTerm console history?

Is there some way to search XTerm's console history interactively, like Ctrl+Shift+f in GNOME Terminal and Terminator? I could run script in my .bashrc or possibly even patch XTerm, but it would be ...
1
vote
2answers
2k views

Virtualbox user home directory

I have a tiny problem. I want to avoid VirtualBox from creating /home/$USER/.VirtualBox directory and create another directory like /home/$USER/DIR instead to put the log files etc there. I tried to ...
2
votes
1answer
191 views

Apache, svn at the root of domain with one exception

I want to setup SVN in such a way that svn.domain.com/ directly lists SVN repositories. To be able to make the web view nicer I am using an SVNIndexXSLT. But I have to serve this file somehow to the ...
0
votes
0answers
240 views

LUKS - changing passphrase with /dev/mapper/fedora-root

I would like to change my passphrase in LUKS, so I started with typing mount | grep 'on / '. The result was /dev/mapper/fedora-root on / type ext4 (rw,relatime,seclabel,data=ordered). So next as usual ...
9
votes
3answers
27k views

“echo 3 > /proc/sys/vm/drop_caches” - Permission denied as root

I am currently having some issues with the cache. It is a little too much right now so I wanted to clear it. I googled and found this little command: sync && echo 3 > ...
5
votes
3answers
649 views

The ERE regex to split() string between a delimiter and end-of-word

I'm using a long gawk 3.1.6 script to do a complex conversion of Zim markdown text into GtkDialog code and am stuck on the following problem... Sample ASCII input... [[link|label label]] [[link]] ...
9
votes
1answer
3k views

Where is / why is there no log for normal user systemd services?

I'm trying to learn basic systemd usage and I've run into a confusing issue with user service units. When running ordinary services with systemctl start some.service I can find the full log for this ...
2
votes
1answer
56 views

Where to find the downloaded file after dragging a FTP URL to the terminal?

Usually, when I drag a link to the terminal, the link target is pasted in the terminal. However, when I just dragged a FTP link from Chromium to my Terminal (first result on Google for "ftp pdf", ...
5
votes
1answer
6k views

Why is permission denied for npm start using node-dev?

I am trying to start a node.js application with on a low permissions user. All the files I know of are owned by the correct user and have permissions set reasonably well. I'm trying to use a script ...
3
votes
2answers
1k views

grep string from contents of file command then delete file

I have a peculiar problem I need help with. I have a large batch of .docx files where a certain number of them are junk. I know how to identify these files from the file command, as they contain the ...
1
vote
0answers
695 views

Only met by a tty “login” prompt when booting Mint

I've installed Linux Mint 11 Katya (dual-booting with Win7) on my PC. After some problems with booting, I decided to use NeoGrub to add a Grub-based bootloader, configurable from within Windows, to ...
5
votes
2answers
3k views

Can I use my own ld.so.cache?

ldconfig has two interesting options: -f conf Use conf instead of /etc/ld.so.conf. -C cache Use cache instead of /etc/ld.so.cache. I tried copying /etc/ld.so.conf to my own home ...
2
votes
1answer
134 views

Mount Drive Unplugged, Folder Still Writable

I created a folder using sudo mkdir /mnt/external/ and then mount an external hdd to it: $ mount -t ext2 /dev/sdd1 /mnt/external I have an application writing backups to that mounted drive. Then, ...
3
votes
1answer
12k views

After updating sSMTP to version 2.61 I cannot send mail via gmail

I updated sSMTP to version 2.61 and now when I try to us it I receive the following error: ssmtp: Cannot open smtp.gmail.com:587 I can connect via telnet to their address, but sSMTP seems to get ...
0
votes
1answer
63 views

Rebuilding RPM results in “invalid numeric value”

I am attempting to add some config changes to Bash and repackage it as an RPM in CentOS x86. This is not something I've done before, so I'm at the mercy of info I've found around the internet. I am ...
3
votes
1answer
127 views

How (if possible) can I terminate a specific blocker hanging a program?

I have a number of files open in my editor (geany). I managed to hang it doing a sort on a large list that I should have saved and just sent through a pipe to sort via command-line (I mapped one of ...
1
vote
0answers
122 views

Linux Source Routing with one gateway

I've a Linux box which have IP 10.1.1.100/24 on eth0 with gateway 10.1.1.1 and as well as 20.1.1.1 on eth0:1 and 20.1.1.2 on eth0:2 . Is there any way that I could communicate to a remote machine ...
5
votes
1answer
45k views

How can I fix/install/reinstall grub?

So I started out with a 250GB HDD, the stock drive from an EeePC 1015pem that I am trying to turn into a MintBook. The drive is physically operable, but all data has been nuked, including the old OS. ...
19
votes
1answer
11k views

Is it better to set -j REJECT or -j DROP in iptables?

There's an example of iptables rules on archlinux wiki: # Generated by iptables-save v1.4.18 on Sun Mar 17 14:21:12 2013 *filter :INPUT DROP [0:0] :FORWARD DROP [0:0] :OUTPUT ACCEPT [0:0] :TCP - ...

15 30 50 per page