3
votes
1answer
5k views

No networking for Centos under VirtualBox

Running an Ubuntu desktop server. I installed virtual box, then installed CentOS as a virtual machine. Centos is not starting the eth0 network adaptor. When I start it manually, I cannot connect ...
1
vote
1answer
371 views

Why the inode value of shadow file changes?

I created a hard link for the shadow file. For removing the passwd of the user I opened the shadow file in vi editor and removed the encrypted passwd and then saved. The inode value of the shadow file ...
2
votes
2answers
229 views

Is there a way to undo the 'cpp' command in terminal?

I accidentally typed cpp Scriptname.py DestinationDirectory, intending to copy the Python script into the folder. I realized afterward that I should have used cp, but now my Python script is ...
2
votes
2answers
2k views

List of available command options?

I'm currently setting up my first web server without a control panel and so far things are going pretty good! I was just wondering if anyone could direct me to somewhere that explains all of the ...
11
votes
1answer
473 views

Actkbd as service with systemd

A while ago I asked for how to stop a music player while the screen is locked. The answer was to use actkbd which works like a charm. Now I wanted to add actkbd as a service to systemd in order to ...
1
vote
2answers
137 views

sed substitution matches too many inputs

This is my command: echo "Test" | sed -f <(sed -e 's/.*/s,&,gI/' mydic) The file mydic contains 2 columns delimited by commas (,) a,AlphabetA . . . e,AlphabetE . . ...
2
votes
0answers
841 views

32 bit appplication on 64 bit linux not working

I'm running linux mint LMDE 64 bit version, I have to install this i386 software to use my modem. So I did it with --force-architecture mode, installation completed with errors. Here is the log dpkg: ...
2
votes
1answer
1k views

Using Putty/plink to scp to a named pipe

I have a large tar.gz file that I need to transfer from Windows to a UNIX machine and unzip into a folder that my login user doesn't have write permissions on. Once the file is on the machine I can ...
0
votes
1answer
839 views

Need help with understanding output of ps -ef on linux

When I do ps -ef on my Linux box, I get: UID PID PPID C STIME TTY TIME CMD Please help me with meaning of C,TIME. is the TIME , the actual cpu time allocated to the process?
1
vote
1answer
139 views

How do you prevent user from opening a program?

I'm trying to write a script which prevents the concerned user from opening programs (mostly internet browsers) from being run during a certain time (like 1000 to 1200 hrs). This is like a ...
2
votes
1answer
510 views

*ix based Morphing software?

Morphing is "a special effect in motion pictures and animations that changes (or morphs) one image into another through a seamless transition", according to Wikipedia here. My friend recommended some ...
4
votes
1answer
2k views

Vim visual mode to system clipboard?

Using the vim text editor, I am looking for a method to copy content highlighted in visual mode to the system clipboard (i.e. I would then be able to Ctr-v that content say in a browser window). Is ...
5
votes
1answer
2k views

Extend the scrollable content of gnu-screen?

Using the screen terminal environment, I ofen enter copy mode by using Ctrl-aEsc. However, the scrollable output is often too short for me to view the desired information. What do I modify to extend ...
4
votes
3answers
857 views

Why read works if stdin is redirected to fd4?

What does the following script mean? exec 4<&0 0</etc/XX/cfg read line1 exec 0<&4 It redirects fd0 to fd4, and "/etc/XX/cfg" to fd0. So why does read still work, shouldn't that ...
3
votes
1answer
3k views

How to resize ext3 image files

I have created an 200MB ext3 using the following commands. dd if=/dev/zero of=./system.img bs=1000000 count=200 mkfs.ext2 ./system.img tune2fs -j ./system.img How can I resize it to 50MB and 300MB? ...
1
vote
1answer
201 views

vimrc mapping line numbers

I have these lines in my .vimrc file: :map <F9> :exe ':!gdbset bp "%:'.line(".").'"'<CR><CR> :map <F8> :exe ':!gdbset clear bp "%:'.line(".").'"'<CR><CR> They ...
1
vote
1answer
108 views

Find alternative for Debian 5 to work with big files

I have a problem using find find ./ -mtime +7 Value too large for defined data type because of 2 Gb file (backup) on x32 VDS and it is not possible to reinstall OS. I need to remove old files ...
3
votes
1answer
432 views

User associated with a socket

I use ss -p to see TCP sockets information. But process info are not printed for some sockets. Below: $ ss -p4 State Recv-Q Send-Q Local Address:Port Peer Address:Port ESTAB 0 0 ...
2
votes
1answer
182 views

Fedora list all packages not in a “clean” install

Is there some tool to show me all packages I've installed that are not part of the set of packages that comes with a "clean" install? I'm just cleaning out packages I don't use any more prior to ...
2
votes
1answer
87 views

Emacs + whitespace: ignoring 'normal' spaces

I would like to use whitespace to detect wrong whitespace (i.e. trailing whitespace on line, tabs instead of spaces etc.). However I would like to still have spaces displayed as spaces. I tried to ...
13
votes
1answer
1k views

What are the benefits of the new teaming driver?

When compiling a 3.3 kernel, I noticed that a new driver called teaming was added to the networking system. According to the relevant commit teaming is a userspace-driven alternative to bonding. Has ...
1
vote
1answer
330 views

listen to two IPs for hosting 2 websites with SSL

At my work I had been working on one web application with apche on opensuse listening to one IP, lets say 123.123.123.200. Now we are adding to differet web application to same machine. both have ...
3
votes
2answers
970 views

hunspell: add word to dictionary from command line

From hunspell man page: ... When in the -a mode, hunspell will also accept lines of single words prefixed with any of '*', '&', '@', '+', '-', '~', '#', '!', '%', '`', or '^'. A ...
4
votes
1answer
809 views

Finding the current speaker volume (signal strength)

I'm trying to create a widget for awesome wm that controls and monitors volume. Getting and setting the speaker volume is easy in ALSA and PulseAudio, but how about getting the actual signal ...
3
votes
3answers
1k views

How do I set up a .emacs initialization file?

I am using Linux Fedora 13 (Constantine) and emacs 23.1.1. I am trying to set up a .emacs file for initialization, by using emacs itself to edit and save a file .emacs in my home directory. However, ...
1
vote
2answers
1k views

How to configure sudoers to allow running sudo command under other group and user name?

How to configure sudoers to prevent having the Sorry, user ****** is not allowed to execute error message. Background For the purpose of testing how a python script under a less privileged user and ...
2
votes
1answer
5k views

How can I delete a hidden folder?

I want to delete many configuration folder in my home user folder but I can't figure out how to delete them. How can I delete a hidden folder?
1
vote
1answer
1k views

Gnome Terminal won't autocomplete

My gnome-terminal on a ubuntu 10.10 machine is not working the way it should work. No autocomplete is working. ctrl + l won't clear the screen, bash prompt is simply a $ and nothing else. I got this ...
1
vote
2answers
1k views

Bringing up an interface does not add default gateway to the routing table in Ubuntu

I have this in my interfaces file: auto eth1 iface eth1 inet static address 20.135.251.218 netmask 255.255.255.252 up route add default gw 20.135.251.217 dev eth1 metric 1 ...
5
votes
2answers
162 views

What's the “Unix way” for a CLI app to report no arguments specified?

I'm developing an application which I'd like to follow the "Unix way." What should I program it to do in case it is called with no arguments (which makes no practical sense): display an error ...
0
votes
0answers
672 views

adding system calls to kernel without recompiling during implementation

Could anyone tell me if it is possible to add several system calls to the linux kernel (version 2.6.35) and not have to recompile the kernel each time I change one of their implementations (i.e. ...
3
votes
1answer
807 views

Bash globbing hidden files

I'm trying the following globs in a bash shell: $ ls -d .* . .. .a .ab $ ls .a* .a .ab $ ls .[!.]* .a .ab $ ls .[!.]?* .ab Shouldn't the last expression mean "a dot followed by exactly one ...
6
votes
2answers
8k views

How to expire a password? (For inital account creation)

I've often created temporary passwords for users for my own development machine for initial id creation. For other environments, I've seen admins have the ability to have a password show as expired ...
1
vote
2answers
241 views

Why does boot fail with my custom kernel at the mknod step?

I want to build a custom kernel under Ubuntu. I configured and built the new kernel. The new kernel hasn't initrd and comes from vanilla source. I build this new monolithic kernel only with drivers it ...
3
votes
1answer
669 views

Linux Home Firewall

I was recently delving into thoughts of building a small home server to run random things off of (maybe a TF2 server). Thinking about this further I realized I would need to get a better firewall ...
3
votes
2answers
484 views

Thunar file manager: Sort by column keyboard shortcut?

I'm using Xfce 4.3 and the lightweight Thunar file manager. I often change file listings between Sort by Date Modified and Sort by Name. But it seems the only way to do this is by clicking the column ...
0
votes
0answers
550 views

Mint 12, workspaces and two screens

I have two screens connected to my machine, using the NVIDIA X Server Settings program I set them up with TwinView. I had the same exact set up in Mint 11 and it all worked well, today after ...
2
votes
0answers
588 views

proper permissions under HTTP root with Apache2 + FastCGI + Suexec

I currently have a setup which runs Apache2 + FastCGI PHP + Suexec. As an example, I'm using /mnt/data/www/vhosts/inflex.co.uk/htdocs as a DocRoot for one of my virtual hosts. I have a script ...
4
votes
2answers
861 views

Zsh — more intelligent autocorrection

Is it possible to make Zsh stop trying to correct arguments that are not meant to be files with files from the current directory without turning off correction completely or limiting it to setopt ...
0
votes
2answers
313 views

Linux - get shared memory values from Perl script

I'm trying to get shared memory information from a linux box. I'm looking for shmmax, shmmni, shmall, msgmax, msgmni, semmsl, semmns etc. How to get all those values from a Perl script. any help is ...
1
vote
0answers
704 views

ssh: “Error reading response length from authentication socket”

I have a Makefile with some ssh and rsync commands. All of them are executed correctly, but give the following error message: Error reading response length from authentication socket. I don't like ...
11
votes
4answers
21k views

can we know the password for the other users if we have root access?

If a person has root access to a particular RHEL machine, will they be able to retrieve the password of the other users?
3
votes
1answer
975 views

arping equivalent for IPv6

What is an equivalent for IPv6 of arping -q -c 3 -A -I [device] [ip]? I know, there is not an arp in IPv6 and Neighbor solicitation used instead, but which linux user space tool can send such ...
0
votes
1answer
800 views

Windows host shares doesn't get mount when I boot into Linux guest in vmware?

I've enable network shares in vmware and I want to share a Windows folder with my Linux guest OS but I don't know where to look in my guest OS? In Linux I've looked into network shares and samba ...
4
votes
1answer
6k views

Substituting the first occurrence of a pattern in a line, for all the lines in a file with sed

Is it possible to do it in one liner? I have an output like this: "First line" - Description " Second line" - Description "Third line" - Description " Fourth line" - Description This input ...
2
votes
2answers
236 views

Notification out of screen

The notifications extrude the screen. Anyone could help? I am on Ubuntu 11.10 with Gnome3.2.
1
vote
1answer
382 views

Tiny font on Fedora 16

I'm finding that several programs have tiny font with Fedora 16. Google Chrome, for example, has miniscule font in the tabs. MATLAB has tiny font in the menus (File, Edit, etc.) I have the "larger ...
5
votes
3answers
7k views

How can I change 'change' date of file?

How can I change 'change' date? $ touch -t 9901010000 test;stat test File: `test' Size: 0 Blocks: 0 IO Block: 4096 regular empty file Device: fe01h/65025d Inode: 11279017 ...
0
votes
2answers
289 views

Memory Stick Partially Corrupt

My memory stick has recently become partially corrupt and has slowly been getting worse. About a week ago or so I unzipped a Windows .rar archive and placed the contents unto the flash drive, I ...
3
votes
1answer
484 views

Can I configure XFCE terminal the way to open all the new terminals as tabs of one window?

I strongly prefer to have one terminal window with all the terminals being tabs in it, but the most usual way I open a terminal is calling it from another application (usually with "Open Terminal ...

15 30 50 per page