1
vote
0answers
134 views

share vpn conneciton using router

I want to share my VPN connection with other devices. I just got a D-Link router, and I'm a little bit lost about how to deal with it. I connect to internet using the VPN of my university (PPTP). The ...
13
votes
5answers
7k views

How can I copy a file and create the target directories at the same time?

I want to cp aaa/deep/sea/blob.psd to bbb/deep/sea/blob.psd How do I do the copy if the deep and sea directories don't exist under bbb so that the copy both creates the directories that are needed ...
6
votes
1answer
565 views

Ksh features incorporated into Zsh?

I have been a user of Bash for some time. I want to learn at least one other shell now, so I have been picking up the Korn Shell. However, it doesn't look like Ksh has had major updates for almost ...
7
votes
4answers
7k views

Traffic stats per network port

I have two machines with two applications that talk to each other on few network ports (TCP and UDP). I want to count traffic that they send and receive. I need not only overall count but stats per ...
2
votes
1answer
1k views

Will wget -k still convert links to relative paths if wget is stopped prematurely?

I am running wget on a site that (I have come to realize) has two languages - and duplicate pages for each language. I've already got the content in English, so I'd like to stop wget from downloading ...
9
votes
6answers
15k views

How to remove mounted locations that have been added using the mount command?

I've mounted few shared locations using the below command. mount -t cifs /mnt/systemfolder -o username=name,password=password //10.10.1.1/My-Shared-Folder A few incorrect locations* have been ...
2
votes
0answers
235 views

How to limit ext4 filenames to only those filenames legal in FAT?

The ext4 filesystem allows some characters that FAT does not allow, such as :. This has caused me much grief in the past when trying to move files, especially as KDE will delete such files instead of ...
4
votes
5answers
516 views

How does this directory use so much space

Unix is not my native language and I'm getting confused by their concept of filesystems. When I look at my free space I see: /$ df -kh Filesystem Size Used Avail Use% Mounted on ...
4
votes
2answers
2k views

delete first line of file only if blank using sed

I have a solution for this in awk: awk '{if (NR==1 && NF==0) next};1' somefile but was unable to find one that worked in sed. E.g., sed -i.bak '/^$/{1,1d;}' somefile ended up deleting ...
1
vote
1answer
435 views

wdfs mount problem

I'm running Fedora/Gnome 3.4.2 64bit and I'm trying to mount a webdav file system to work with. As root, I run the command #mkdir /mnt/webdav #wdfs https://www.webiste.com:port/directory ...
6
votes
3answers
818 views

Vim: How to get rid of filetype-specific map?

Edit: Working version. I've mapped [[ and ]] to my own functions: nmap <silent> ]] :let &tabstop += 1 <CR> :echo 'tabstop =' &tabstop <CR> nmap <silent> [[ :let ...
16
votes
3answers
7k views

Find -exec + vs find | xargs. Which one to choose?

I understand that the -exec can take a + option to mimic the behaviour of xargs. Is there any situation where you'd prefer one form over the other? I personally tend to prefer the first form, if ...
12
votes
2answers
806 views

Keep only successful commands in BASH history

Sometimes I misunderstand the syntax of a command: # mysql -d test mysql: unknown option '-d' # echo $? 2 I try again and get it right: # mysql --database test Welcome to the MySQL monitor. mysql ...
8
votes
1answer
28k views

Booting linux from usb using EFI

I need to use a USB drive as an installation media for my Mint and Ubuntu. For that I have unetbootin to make the usb bootable. But my PC only supports EFI boot (while adding the boot device, I need ...
5
votes
2answers
919 views

How to initiate SMTP outbound traffic via secondary interface - Linux Sendmail

We have sendmail running in a RHEL box. We have two public IP address configured in the same box, one for SAP app and other for Sendmail. First interface will be used for SAP and second for Sendmail. ...
0
votes
3answers
633 views

Why Debian CD has 52 CD [duplicate]

Possible Duplicate: 31 Debian CDs — Why? and which do I need for a vanilla desktop install? I am about to install Debian. But Debian has 52 CD Images - how can Debian be so large? 52 ...
2
votes
1answer
2k views

Ext4 support in Grub 0.9X (legacy) and Grub 1.9X (Grub2)

I'm about to setup my new USB key with Grub or Grub2. In the old days I used ext2 for the boot partition. I'm wondering if I could use ext4 for Grub2? And if use Grub 0.9X, what about support of ...
5
votes
3answers
2k views

On Debian, how do I add a Python package in dist-packages to a virtualenv?

Given some python package in /usr/share/pyshared/ or /usr/lib/pythonX.Y/dist-packages/ (take python-numpy or python-scipy for example), how do I add that package to a virtualenv? When adding the ...
23
votes
3answers
36k views

Linux: How to find the device driver used for a device?

If my target has one device connected and many drivers for that device loaded, how can I understand what device is using which driver?
3
votes
1answer
334 views

How to make custom key type auto repeat in xkb

I have defined a custom key type in my xkb configure file to do some redirection (e.g. redirect Ctrl+p to Up etc.) However, I cannot get auto-repeat work for this custom type (neither the original key ...
4
votes
3answers
863 views

Copying a deeply nested directory structure

I have to copy a directory structure to a new host as part of an application migration. The directory structure is as follows: {10 - ff} / {00 - ff} / {00 - ff} (non-inclusive) / uniquefilename So ...
6
votes
1answer
760 views

Postfix configuration - keep the envelops

I have a postfix server that delivers mail and send a copy of the outgoing mail to a second server for content analysis using the following configuration (addresses and IPs have been replaced): ...
5
votes
2answers
4k views

I cannot install new packages: “Could not get lock /var/lib/dpkg/lock”

I am new to Linux (installed Ubuntu for the first time yesterday), and have never dealt with any unix-based OS. I started using Linux for the sole purpose of collaborating code with my partners via ...
5
votes
3answers
1k views

Advantage to using Linux over Windows? [closed]

I want to get into using Linux more, all my programming and development has all been done under Windows. But I am wondering what is the core advantages to using Linux over Windows? What can I do in ...
1
vote
1answer
839 views

mousekeys is too slow in gnome3 fedora

Today I had to use mousekeys feature and tried it but it was very slow and unsusable, can I incerase the speed of my cursor while using mousekeys?
2
votes
0answers
35 views

Batch up a number of jobs to run concurrently [duplicate]

Possible Duplicate: Four tasks in parallel… how do I do that? I have a group of jobs to run (a few hundred jobs) - they have a variety of command names and parameters. Each one runs ...
3
votes
4answers
1k views

Invoking CPU Stress

Looking for an app or tool to invoke CPU usage on my virtual Linux and Unix guests. I found the app "stress" from a post on Stackoverflow, but curious what the Unix/Linux crowd would recommend.
22
votes
4answers
28k views

How to copy some, but not all files?

So, you can use the * as a wild card for all files when using cp within context of a directory. Is there a way to copy all files except x file?
0
votes
0answers
454 views

Automount in Xfce4 just stopped working

A little while ago my usb drives stopped auto mounting. It might have been after an update but not sure where to look. I have been manually mounting them as root and that is a pain. Is there maybe ...
3
votes
1answer
4k views

How should I rsync files in /var/www if I want them to be owned by www-data?

I have set up a new ec2 ubuntu box and installed apache and php5. By default you log onto the box with the ubuntu user who has sudo privileges. I believe apache runs as root and php5 runs as ...
1
vote
1answer
2k views

Changing DD-WRT's default IP address

I have Buffalo WZR-HP-G300NH wireless router and I updated the firmware to DD-WRT (the newest build). The rest of my home network is in IP scope of 192.168.0.100-200 and this router has it's own. The ...
8
votes
6answers
39k views

exit out of all SSH connections in one command and close PuTTY

Is there a way to back out of all SSH connections and close PuTTY in "one shot"? I work in Windows 7 and use PuTTY to SSH to various Linux hosts. An example of the way I find myself working: SSH to ...
1
vote
1answer
3k views

Bridging ethernet interface

I have a server with 4 public IP's. I have it with this configuration and I want to bridge the interface eth0 for using it with KVM: So, I have 3 IP's (A.B.C.144, A.B.C.145, A.B.C.146) and another ...
4
votes
1answer
222 views

Org-mode tables: How to insert result of a system command?

In Org-mode I would like to insert the result of a Unix command in a field. For instance, consider I have the following table: | / | | /bin | | /usr/bin | | /lib | | /usr/lib | I ...
4
votes
5answers
7k views

How can I make the Gnome3 calendar use Thunderbird instead of Evolution?

Can it be done? I don't want to use Evolution's calendar... I want to keep using Thunderbird... I have to add some addons (like lightning) first right? My goal is to have some calendar-like on ...
1
vote
1answer
245 views

How to find/correct error in a path

It's often that a long path is mistyped or you get a log file entry that a path does not exist. Is there a command or shell function that navigates the path hierarchy until it finds a matching path? ...
15
votes
2answers
3k views

What happens when you read a file while it is overwritten?

Suppose I read (cat) a file while another process is rewriting its contents. Is the output predictable? What would happen?
2
votes
0answers
48 views

Disable the GIO network extension?

I don't use any LAN, so the following "Network" is useless to me: I checked the source code partially and it seems to be using the GIO network extension. How can I disable this without modification ...
1
vote
1answer
573 views

Detached screen on a remote host

I have a local script that runs a remote script via ssh. The local script is minecraft.php: ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i {$this->pemkey} {$this->ssh_user} ...
3
votes
3answers
3k views

SSH connection freezes after bigger output when inactive for a while

I have a problem with an SSH session freezing after using it again when it was idle for a while. The problem is that the session doesn't freeze immediately, I can still use it. But as soon as a ...
10
votes
3answers
7k views

How to sort the string which combined with string + numeric using bash script?

This is the data what I want to sort. But sort treats the numeric to string, the data it no sorted as I expected. /home/files/profile1 /home/files/profile10 /home/files/profile11 ...
1
vote
0answers
641 views

Running uinput code on DM368 board

I am using DM368 TI board. I want to send keystrokes to gstplayer in ubuntu 10.10 For that purpose i used uinput function in C code. My code works properly on console but not on the hardware. I even ...
1
vote
2answers
273 views

File encryption and decryption on Linux using ucrypt

A few years back, I was using the ucrypt utility on CentOS 5. Now I am using Fedora 11 and need ucrypt for file encryption and decryption, but I don't have a backup of the old system. Where can I find ...
1
vote
2answers
117 views

access rights of a file in octal format

I wonder if there is command which will give you access rights of any file you provide. There stat related command but it is not accessible in solaris. stat -c %a /etc/passwd Is there any ...
7
votes
4answers
10k views

Switch Fn key state

I have this issue with Lenovo Thinkcentre Edge. Its keyboard has Fn key, which acts in my Ubuntu (with Fluxbox) as if it is always "active/pressed". I can't use standard F1-F12 keys unless I hold ...
1
vote
1answer
605 views

How to download openSUSE 12.1 throught `wget -c`?

http://software.opensuse.org/121/en Usually I right click and open the download link in a new tab. Copy the url on the command line with wget -c. In this case I just can't right click on the ...
0
votes
2answers
1k views

Dovecot version upgrade

I am using ubuntu 12.04 and dovecot version is 1.2.9, I want to upgrade my dovecot version from 1.2.9 to 2.1.7
2
votes
1answer
711 views

What are the commands to logout and shutdown with a session manager?

I decided to write my own DE using these instructions here it worked and I can login however I didn't use a panel so I don't have a logout button or a session manager. I've decided to write my own ...
8
votes
2answers
1k views

CPU stuck at 99% for a few hours. Really need help figuring out logs

extract from syslog: CRON[pid]: (user) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin ...
5
votes
2answers
415 views

Is it possible to represent the +X symbolic permission with an octal value?

Is it possible to represent the +X symbolic permission with an octal value? The chmod(1) man page says: execute/search only if the file is a directory or already has execute permission for some ...

15 30 50 per page