Linux refers to the family of Unix-like computer operating systems using the Linux kernel. If your question is about a certain distribution only, use a more specific tag.

learn more… | top users | synonyms

1
vote
2answers
699 views

linux COM port write and read

I have a COM port connected to my Linux host, namely /dev/ttySx, how can I simply write and read some data from this COM port in shell, like use echo and cat command?
3
votes
0answers
192 views

Need noacpi in CentOS 6.4, not in RHEL 6.4

I've been trying to fix a rather odd problem that I've seen on our new Dell R5500 (Xeon based workstations). We want to run CentOS 6.4 64 bit on them. We did a base install which worked fine, however ...
1
vote
2answers
498 views

Extracting one frame per minute with ffmpeg, and skip a few seconds

I'd like to extract one frame per minute from a video, starting from a specified offset. For example, say the offset is 00:01 (mm:ss), then I'd like to extract 00:01, 01:01, 02:01, and so on. The ...
0
votes
2answers
318 views

Linux command to find all instances of a file pattern?

I'm looking for a way to scan a directory recursively and print out all instances of any file that ends ".qfx". Thus, for a given directory: somedir/ fizz.qfx buzz.qfx blah/ ...
3
votes
1answer
1k views

How can I automatically switch my VMs' bridged adapters between eth0 and wlan0 depending on what's active?

In Virtualbox, I have a bunch of virtual machines. The host is a Debian laptop that frequently switches between a wired and a wireless connection. Every time I go wireless (or go wired), I have to ...
7
votes
1answer
8k views

Why do we use cp to copy files and not dd? (in unix-derivatives)

For normal file copying in *nix, I've only ever seen people use cp (eg. cp /mnt/mydevice/myfile ~/myfile), but I eventually ran into dd, which appears to do the exact same thing (dd ...
0
votes
1answer
272 views

Safe backup/restore of Linux partitions in a Windows /Linux dual boot setup using a recovery partition

I have a dual-boot laptop (Windows 7/Kubuntu 12.04) with an IDE spinning-rust disk. I'd like to reinstall Windows. The problem is that the only medium for that is a factory-installed recovery ...
0
votes
1answer
173 views

Cannot run /bin/mount on NFS share with root_squash enabled

I have a NFS share mounted on /. /srv/nfs/gentoo/i686-gentoo 192.168.1.0/255.255.255.0(all_squash,ro,no_subtree_check) Running mount with any "squash" option will prevent the client from running ...
0
votes
0answers
2k views

CentOS bootloader installation in actual hard drive instead of bootable USB

I am trying to install CentOS6. I am using a bootble USB drive for installation. During installation, my flash drive where the installation image is present is /dev/sda1. My actual internal hard ...
0
votes
1answer
331 views

Evolution on Debian 7 won't restore Evolution back up file from Fedora 18

I made a back up of my Evolution mail client when my laptop was using Fedora 18. Today, I have finished installing Debian 7 on to the same laptop, and now I am trying to restore the back up file to ...
1
vote
2answers
288 views

copy logical volume to another server

I have copied a logical volume from Server A to Server B, using dd command, however every time I try to mount the volume root@munin:~# mount /dev/DS/data_snap /mnt/ mount: you must specify the ...
1
vote
1answer
175 views

zsh running a comand but not from the path

My zsh is doing something odd, it is running an executable that is not the first executable on my path. I have a wrapper script for ssh but the wrapper is not being invoked while the real ssh binary ...
0
votes
1answer
318 views

what is the effect of using 'ping -m' (tagging the packets)

i was going through the man pages of ping and i found a -m option there.. so how does this effect my packets? its something like tagging the packets. ping 8.8.8.8 -m 2 ...
-1
votes
3answers
1k views

Mount permanently a windows shared folder on linux

I have a little server with a shared partition called D. I'd like to mount it permanently on a local machine with Linux Ubuntu, in order to access them easily. I have looked for similar questions, but ...
-1
votes
1answer
150 views

What to do when a drive is no more recognized under Linux?

I was salvaging a hard drive with damaged sectors using a bash script performing calls to ddrescue. That drive was known as /dev/sdc and connected in eSata via an ExpressCard. I could not find any ...
1
vote
1answer
313 views

Simple daemon in C for constantly removing files from a user directory [closed]

I am trying to make a simple daemon for continuously deleting files from purple/icons ( the pidgin dir ). However, remove() and unlink() are not deleting files. Here is my code, please, tell me where ...
10
votes
2answers
961 views

How do I create a dual/multiboot of Windows and GNU/Linux, FreeBSD, etc?

Because of reoccuring questions about dualboot of GNU/Linux and Microsoft Windows, an authoritative general guide is needed as a reference for users asking about dualboot/multiboot. Necessary ...
2
votes
2answers
762 views

Limit video output to a section of a display and leave the rest blank

The video projector I have to use this week projects an image too large for its screen and spills over on every side. Fixing the physical setup is not possible or at least unlikely for the moment: ...
1
vote
0answers
108 views

Ubuntu - Internet isnt working nor popping up

I am COMPLETELY new to Ubuntu, like literally, I only know a few commands and stuff for terminal.. I recently installed it into my laptop to learn it more but for some odd reason my wifi wont pick up, ...
1
vote
0answers
1k views

GRUB2 booting: efidisk read error & prefix is not set

everyone! I have a booting USB stick with some iso-image, based on Arch Linux. It loads through efi and then comes to Grub 1.99, where I can choose the iso images. I can load them without any ...
-1
votes
1answer
450 views

library for html to rtf conversion [closed]

I am much needed the linux library for converting html document to rtf. As currently, I have used CMS kind of functionality where html is stored in database. I need to convert it in rtf. If any ...
-1
votes
1answer
2k views

Take control of all disks/filesystems automatically in linux (Kali)

I have two mac disks plugged into my Linux Kali and for the life of me I cannot get ownership of them. (LaCie) I don't have this problem in Windows or Mac, I just copy the files. Drag and drop. But ...
0
votes
1answer
790 views

Limiting Access to SVN folders for certain users

I have created the file svn.password and added a few users. Now I installed a Subversion repository and a Trac instance to my apache folder and set up the vhost.conf as follows: <Location ...
0
votes
1answer
239 views

Libraries which exist in a binary's elf DT_RUNPATH are not being chosen?

I have custom built gcc-4.7.2 in my environment. The system gcc is gcc-4.3.4. I have patched the DT_RUNPATH for all my custom gcc's binaries and shared libraries using patchelf --set-rpath However, ...
1
vote
1answer
244 views

Windows 7 doesn't see my wifi network after restarting the wireless modem (freebox)

I have a 'freebox' internet connection (France) and from time to time I have to restart the modem (the 'box'). It is a recommended procedure. My problem is that while my old computer running Xubuntu ...
2
votes
1answer
615 views

Linux alternative to route add on windows

When I'm connected to my windows dedicated server and connect to a vpn server I would get disconnected from the dedicated server since its ip address would change. I found a way to overcome this by ...
0
votes
1answer
86 views

What is /dev/blog?

I have tried searching for /dev/blog on google, duckduckgo, etc.; but I cannot find any information about it. I've also asked another sysadmin where I work, but he didn't know what it is used for ...
4
votes
4answers
241 views

How can I find a path by providing only part of the path?

Let's say I need to find this path /<some_where_in_root>/find/this/path and the only information I have is /find/this/path. What would be the best means of locating the full directory? I ...
-1
votes
1answer
228 views

Can a 'good' scratch cause RAM to become useless?

Can a 'good' scratch cause RAM to become useless? I know it depends on where, so here's a picture: (NOTE: The picture is used only for the sake of clarity, and is in no way identical to mine; for ...
2
votes
2answers
196 views

Can I improve my battery life under a Linux Live CD by loading the CD into RAM or using a USB key instead?

Would loading a linux live CD to RAM improve battery life? (knoppix toram or SLAX Copy to RAM option) Compared to running it from the CD. Would booting a Live CD off of a USB increase battery life ...
0
votes
1answer
86 views

Quickly browse through many PDFs

I have hundreds of PDF files that I would like to browse through rather rapidly while viewing them at (nearly) full-screen, preferably while zoomed in to a particular area. What I need is the ...
1
vote
1answer
421 views

Linux distro with C/C++ development tools included

I work at a company that does not allow Internet access to Linux based machines. However, I need to develop C programs for my job. (Strange I know...) Is there a Linux distro with common IDEs and ...
0
votes
1answer
703 views

Running tcpdump on remote machine with no tty using ssh

I'm trying to start tcpdump on several remote machines to perform some network analysis with a script, but I'm failing to run it correctly. The command I would like to use is: ssh user@host ...
2
votes
2answers
323 views

How to enter tty1-6 in Linux in virtual-box in Linux host

I installed a virtual box in my Ubuntu host, and then installed another Ubuntu on my virtual box. Everything is alright except when I try to enter tty1-6 in the virtual one, I just enter tty1-6 in my ...
2
votes
1answer
527 views

How to read PDFs on Linux so the white margin around the page is automatically cropped?

I have another device, an eInk ebook reader (Onyx Boox), that has this wonderful feature, "auto-crop", that auto-detects the white margins in pdf (with a given degree of "aggression"), and zooms out ...
0
votes
0answers
92 views

On ubuntu 12.04 the video, after some day of working, turn blank

I have a PC with ubuntu 12.04 which is connected to a video with a resolution of 1366x768, without mouse and keyboard. It happened that after some days of work , without any external input, but only ...
0
votes
1answer
258 views

LVM mount physical disk for backups

I have a home server running Centos 6.4. There are 2 400GB physical disks, and I believe I have 1 logical volume over one of the disks. I want to mount the 2nd disk under /backup and use it for ...
1
vote
0answers
119 views

How to run ntfsfix automatically when a disk with corrupted partition is plugged in?

I'm wondering if it's possible to detect a corrupted partition automatically and run ntfsfix on that partition to fix it when a disk is plugged in similar to Windows asking to run chkdsk. But I ...
1
vote
1answer
439 views

linux: utility to find good partition alignment on ssd

I am getting a new SSD. is there a linux utility that aids me by recommending/choosing/checking the correct partition (and potentially ext4) parameters to avoid the performance penalty? my "default" ...
3
votes
2answers
1k views

Time the execution time of multiple commands

Is there a way to time a series of commands in linux? Perhaps something like this: /usr/bin/time { ls; pwd; ls }
2
votes
1answer
772 views

ssh terminal session times out, how can this be changed

It seems after about 5 minutes an inactive ssh session is terminated. The server is Ubuntu. How can I change this?
4
votes
1answer
446 views

FreeBSD compatibility layer on Linux

I am aware of Linux mode on FreeBSD, where Linux binaries can seamlessly be executed in FreeBSD. From the FreeBSD handbook: In effect, there is a Linux kernel in the FreeBSD kernel. The various ...
0
votes
2answers
182 views

Hard Drive broken beyond repair?

Yesterday my sata HD (western digital) on my windows 7 desktop PC suddenly became really slow, and Windows hanged, which led to a failed shutdown. I ran whatever automatical repair Windows suggested ...
0
votes
2answers
495 views

Does ulimit change resource limits at runtime?

Does ulimit change the limits of running programs? Are their specific resources which can not be changed at run time? If ulimit doesn't change limits at run time, does this mean that you have to ...
0
votes
0answers
661 views

Executing tcpdump remotely while storing packet capture locally

I have run into stumbling block while attempting to create a bash script that will write packet capture files from tcpdump onto a remote server, while displaying the output of the tcpdump command so ...
0
votes
1answer
691 views

Bash script to remove and rename files based on size and naming

I have directories with multiple conflicting files, and am looking for a way to sort, name and delete duplicates based on a distinct pattern based on the file's name and size. Though my knowledge of ...
0
votes
1answer
2k views

Use both OpenVPN & eth0 together

I connect to a VPN using openVPN. Now, after the connection is established, all my traffic goes through tun0. My LAN gateway is 10.100.98.4... So, for apps to use my direct internet connnection I did ...
0
votes
1answer
297 views

How can i write my CPU temperature into a file on linux

Recently i install lm-sensor for monitoring my CPU temperature. I am monitoring it by this command in terminal : while [ true ]; do sensors; sleep 1; done but i need access my temperature after i run ...
0
votes
1answer
1k views

Routing a process's network traffic through a specific interface on ArchLinux

I have a VPS in the cloud I want to use to act as a media download server. I have a VPN to avoid getting anyone in trouble (me or host). I have set up the VPN tunnel, and it created an interface ...
1
vote
5answers
1k views

How do you prevent find, du, ls -R from caching?

I'm currently copying a large number of files over a network. To monitor progress, I tried running watch du. However, the output never changed (or not much, not sure). find . -type f | wc -l always ...