1
vote
1answer
206 views

How to ensure a process has started reading a file before continuing?

I'm trying to write a command to test that data is written to a file. My first approach was: Start reading in the background. Write some data to the file. Wait for the reader to find a result. ...
0
votes
1answer
180 views

I'm only allowing pubkey auth via ssh. How can I still log in with password?

vi /etc/ssh/sshd_config egrep -i 'Pubkey|Password|Listen' /etc/ssh/sshd_config | grep -v '^#' ListenAddress 0.0.0.0 PermitRootLogin without-password PubkeyAuthentication yes ...
0
votes
1answer
505 views

How can I check if a file is being downloaded?

I have a Raspberry Pi which I want to use to automate downloads to a network drive. I would like to restart the machine on a regular basis using cron (I've heard they're not the most stable of ...
0
votes
1answer
128 views

Is port knocking good for a last chance when everything is locked out via the Firewall?

Based on this question: "Safe mode" on Linux? - So there is a configured knockd on a server, and a wrong firewall command was given out, so everybody got locked out from the server via ...
1
vote
1answer
459 views

Giving non-admin users permissions ( to update, to access new wifi, but block DVD writing) in Ubuntu 12.04

Is there a way I can give a non sudoer the permissions necessary for them to update the system through Update Manager? I don't want the user to be able to apt-get install whatever like however, just ...
2
votes
3answers
2k views

How to start subsequent shells as root?

I run my local testing server inside a VM. I often have to open up multiple windows in it, and all have to be logged in root. Usually this is accomplished by writing su on every tab, a total of 7-8 ...
4
votes
4answers
2k views

Linux OS running a single application [closed]

I want to build a Linux based OS which is custom made for only one application and is totally light-weight and uses minimum system resources. How do I go about this? Would stripping down an already ...
0
votes
1answer
104 views

Remote linux using vnc and gdm without login

I remote linux server by using vnc and gdm. This link is very good but I would like to remote linux server using vnc viewer without login. May I know your suggestion?
1
vote
4answers
6k views

Updated Fedora 18 - no sound devices, just dummy output

So, yesterday I updated the recently released Fedora 18, this has been done: Packages Altered: Updated grubby-8.20-1.fc18.x86_64 @?fedora Update 8.22-1.fc18.x86_64 ...
3
votes
3answers
251 views

All dependencies for third-party-compiled binary

I've got a binary, compiled by a third party and I need to know all the dependencies it requires. I'm not sure if ldd shows everything. I'm sure the binary uses GStreamer, and some codec packages, but ...
1
vote
1answer
1k views

How to copy symbolic links while preserving the validity of the link?

Say under directory /usr/local/boost_1_52_0/stage/lib, I have a symbolic link: libboost_timer.so, which points to the regular file libboost_timer.so.1.52.0 in the same directory. How can I cp the ...
5
votes
1answer
191 views

Launch a program when any wireless connection comes up using netcfg

I have written a program that transparently logs in to captive portals. As such, I'd like to run this any time that any wireless connection comes up using netcfg. It is possible to do this ...
3
votes
3answers
2k views

FreeBSD and Linux shared partitions

Which directories, and how, can I share between FreeBSD and Linux? In particular, how can I deduplicate respectively /usr/home and /home? I guess directly sharing a partition between both systems ...
11
votes
1answer
27k views

how to tell rsync to preserve time stamp on files when source tree has a mounted point

Related to this question Short description of the problem: When source tree has a mounted point inside it, then time stamps on files inside that mounted point when copied to target tree are not ...
0
votes
1answer
575 views

The relationship between execute permission on a directory and its inode structure

My question deals with the relationship between the read and execute bits on a directory. I'm going to give my assumptions, first, all according to my current knowledge, then ask my question in bold ...
19
votes
4answers
23k views

How to solve the issue that a Terminal screen is messed up? (usually after a resizing)

Sometimes, a terminal screen is messed up, and when we use man ls to read the manpages, or press the UP arrow to go to previous commands in history, the screen will show characters not as the right ...
0
votes
1answer
188 views

Alter path of find result [duplicate]

Possible Duplicate: Manipulate file name piped from find command How can I alter the path of a file found with find before I run an exec on it? I want to find files and then mv them to a ...
6
votes
2answers
11k views

sftp gives an error: “Received message too long” and what is the reason?

I was able to do sftp yesterday to a RHEL 5.4 box (RedHat) and today I can't. The message is "Received message too long 778199411", and after some investigation, it was due to my RHEL box's .bashrc ...
3
votes
1answer
2k views

Recursive find that does not find hidden files or recurse into hidden dirs

I am wanting to search recursively through a directory and find all files that are not hidden files themselves and are not in a hidden dir. I tried using find . -type f -not -name '.*' which excludes ...
1
vote
2answers
13k views

How to easily install Google Chrome and Firefox on RHEL 5.4 (RedHat)?

I heard that it should be not that hard to install Google Chrome and the latest Firefox on RHEL 5.4. (the OS our company support is only up to RHEL 5.4). It probably requires some make install and ...
2
votes
2answers
270 views

Awk: expanding first field along the column

I have a task which requires some awk scripting: Lets say I have a file: A,under1 ,under2 ,under3 ,under4 ,under5 B,new1 ,new2 ,new3 C,sm1 ,sm2 How could I make it look like this using awk? ...
3
votes
1answer
604 views

What does it mean if a directory has only x (executable) permission for certain user/group?

I stumbled across the directory /etc/ssl/private on Ubuntu (12.04), it has following permission: drwx--x--- 2 root ssl-cert 4096 7月 8 2012 private/ I wonder what does this mean for group ...
24
votes
2answers
18k views

SSHFS specify key

I've got a question that I've not been able to find an answer for. I have two computers, both of which run Ubuntu Linux 12.04. I have set up my first computer ("home") to be able to SSH into my second ...
3
votes
1answer
195 views

Change who is able to chmod

Is there a way to change who can chmod (change the permissions of) a particular file? It is only the owner of the file (without sudo-ing it), if my experimentation has been correct? But what I want ...
0
votes
0answers
52 views

Root user can't do everything? [duplicate]

Possible Duplicate: Redirecting stdout to a file you don’t have write permission on I'm quite new to Linux and I have a permissions questions. I'm using Linux Mint. If I go to /opt and do ...
2
votes
2answers
3k views

Linux and Android apps on ARM vs x86

There are a plethora of low-cost ARM-based mini-devices coming out (Cotton Candy, etc). Some of these are Android-only, some Linux-only, and some allow both operating systems to run. The only issue ...
1
vote
2answers
737 views

Is the chromebook Linux based at its core?

Just wondering if the Chromebook uses Linux in some way? If so, would there be a way to run Linux commands (e.g. Ssh) from a command line on it?
6
votes
2answers
4k views

Add file to deep inside a zip file

Say I want to add the file file.txt to foo.zip, I could just do zip -u foo.zip file.txt. However inside the zip-file there already exist a folder with the path foo.zip/very/many/paths/ (relatively to ...
1
vote
0answers
240 views

Use rsync with closed files only

I am interested in using rsync with the --remove-source-files option. I am planning on pointing it to a directory, with a command like: rsync -avm --remove-source-files --include='*.dat' -f 'hide,! ...
3
votes
1answer
109 views

Symbolic link starting with .#

I have a symlink in one of my directories that has the following name: lrwxrwxrwx 1 XXXX ZZZ 37 Jan 15 18:18 .#perl.org -> XXX@YYY.com.2980:1344441539 I am wondering what this symlink ...
4
votes
5answers
739 views

Get package sources and repository link

Is there any way (dpkg, apt?) to get a package's sources and URL to repository, if available, in Debian ?
1
vote
1answer
987 views

Installing Boot and OS on SSD, rest on HDD

Okay so I got an SSD for my notebook and I'm currently setting up my system. On the SSD I'd like to have the main OS (Crunchbang in this case) and maybe some swap whereas on the HDD I want my Home ...
6
votes
3answers
2k views

Read a directory to see the file to inode mapping

I'm just learning about filesystems and it is said that a directory is just an ordinary file which keeps a list of file-inode pairs. If I try to open the directory Downloads with any of the following ...
2
votes
1answer
1k views

Does uClibc support using pthreads?

I recently attended an embedded Linux course that stated that uClibc does not support the use of pthreads and that it only supports linuxthreads. Furthermore, the course instructor implied that ...
2
votes
1answer
993 views

Installing Debian on USB

From my Ubuntu, I want to create a bootable Debian USB. I tried to install Debian with debootstrap. A brief list of commands is mount /dev/sdb1 /mnt debootstrap sid /mnt http://ftp.debian.org/debian ...
10
votes
3answers
680 views

Unix on a DEC VAX?

I just picked up a DEC VaxStation 4000 model 90 with a built in CDROM and an auxiliary SCSI storage module with tape archive drive. I believe it is functional although I cannot test it yet since I ...
6
votes
3answers
237 views

When were the first graphical app installers created for Linux distributions

Having a discussion at work with a colleague, and he is claiming graphical installers for *nix environments have only been available for the last few years, but I can't find any solid information on ...
3
votes
1answer
908 views

How to have find recurse into subdirectories when using -prune option

I see that the find command does not descend into subdirectories when you're using the -prune option. How do I tell find to recurse into the sub directories, but also ignore some stuff? ...
5
votes
1answer
395 views

How do I cd up and down again with symlinks in bash?

Structure: /base/ +- somedir/ +- symlink/ -> /some_other_dir This command (in addition to my Makefiles) fails: cd /base/symlink ls ../somedir Bash complains that ../somedir does not ...
0
votes
1answer
214 views

Removing all tags from images [duplicate]

Possible Duplicate: Batch delete exif info How can I remove all tags from images under a directory (using Linux)? I can find all files with something like find pictures -type f -iname ...
3
votes
3answers
319 views

Change routes for VPN

I need to use for some things a cisco VPN connection, but I don't want to route all my trafic over the VPN but only that traffic, that is send to a specific network. How does a script look like, that ...
0
votes
1answer
1k views

External Hard-Drive not visible in /media

I cannot seem to ssh into my external Hard-drive on "/media" it used to show up there, but now it doesn't. I have erased the Disk and verified it (on MAC OSX) and it still does not show. I have ...
1
vote
1answer
853 views

Dynamic wallpaper change on CentOS 6.3

Is there any possible way to change wallpaper (background) every five minutes on centos 6.3 with gnome 2.28.2 ? I found this Python script: #!/usr/bin/env python import gobject ...
4
votes
1answer
6k views

CUPS gives 'Unable to open the initial device, quitting' when printing to network printer

I am trying to print over Wi-Fi to an HP Photosmart D110 printer which is successfully recognized by CUPS. But I only get a sheet with the error message Unable to open the initial device, quitting. ...
1
vote
1answer
1k views

rsync command to backup home tree to another disk

I want to make sure I am using the correct rsync command on Linux. I do not want to run an rsync and end up losing data as I am new to Linux and I have no backup now. On Linux Mint, I want to backup ...
3
votes
1answer
4k views

Definitive way to configure network devices in Centos 6.2

What is the definitive way to configure network devices in Centos 6.2? Via network manager or editing /etc/sysconfig/network-scripts? I have a notebook with 1 ethernet port and a usb ethernet adapter ...
2
votes
1answer
2k views

How to create a multiboot flash drive in Linux?

I like the way the yumi makes a multiboot flash drive in Windows. In Linux, can I complete the same task as easily as yumi does in Windows? With yumi, I just browse to selected iso (i.e. ...
-1
votes
2answers
8k views

Find the Information of USB Devices In C++ [closed]

I need to list existing USB hub and the devices connected in the hub using my C++ program. I can able to print the USB Hub and devices connected in hub from terminal using the commands lsusb lsusb ...
5
votes
1answer
8k views

What is kondemand?

I have searched the web for the answer of this question but couldn't find a clear answer. Best answer I found was as follows: kondemand is a kernel thread that belongs to the ondemand governor of ...
2
votes
1answer
301 views

What does Chakra “optimize” about KDE?

The KDE about box in Chakra says that I'm running "Platform Version 4.9.97 optimized by The Chakra Project". What exactly does Chakra "optimize" about KDE? I'm considering switching away (mostly due ...

15 30 50 per page