7
votes
2answers
387 views

Command-line software for playlist syncing to Android Phone?

I'm looking for a way to sync music to my Android Phone without having to load something like banshee. I know there are plenty of ways to sync files, but I'm interested in syncing playlists and having ...
1
vote
1answer
645 views

crypt() on different machines

Because of a hardware issue i need to migrate many virtual users to a new machine. Their passwords stored in MySQL encrypted with ENCRYPT which using crypt()eventually. Maybe it's my fault but salt ...
34
votes
1answer
25k views

How do I find on which physical device a folder is located?

Specifically: I did sudo mkdir /work, and would like to verify it indeed sits on my harddrive and not mapped to some other drive. How do I check where this folder is physically located?
11
votes
6answers
1k views

Looking for tools to build minimal linux desktop

Increasingly I am dissatisfied by the fact, that configuring my linux desktop usually means removing bloat instead of adding and tweaking features. I have come to the conclusion that I would rather ...
13
votes
4answers
6k views

Grep: Show all the file up to the match

grep --before-context 5 shows 5 lines before the match. I want to show everything before the match. Doing grep --before-context 99999999 would work but it is not very... professional. How to show ...
5
votes
2answers
2k views

Hight iowait while the wMB/s is low

I was indexing a MySQL table. It makes a high load on that computer. It seems due to a high iowait. But it also shows that the wMB/s is only 2.87. Isn't even a common SATA HDD able to handle more ...
4
votes
2answers
506 views

Shell script printing the most visited directories

Is there a way to write a bash script with the following functionalities? Be launched when I press some key or key combination. (not so important requirement) Identify the 7 most visited directories ...
2
votes
2answers
126 views

What would it take for a *nix system to shutdown, then continue to grub?

Is this possible to shutdown to grub, not all the way so you don't have to load back up the BIOS and other things. Like to give you the ability to quickly boot for Linux to Windows?
8
votes
3answers
3k views

Automating web requests using curl?

I have some "corporative" systems I have to use at work. Some of them are terrible, with frames, pop-ups and such. I was thinking about automating some stuff using curl or something like that. I need ...
1
vote
1answer
553 views

How to setup a local POP3 server?

I'm developing a Thunderbird extension and I would like to setup a fake POP3 account to play with. What's the easiest way to setup a local POP3 server? It doesn't need to be particularly ...
1
vote
4answers
1k views

How to install Fedora&Ubuntu with encrypted VG's on one disk?

I installed Fedora 14 first, then Ubuntu 10.04. I installed them using dm_crypt/aes256/lvm, so I used encrypted VolumeGroups. At the end of the Ubuntu install it said it cannot install GRUB, so I had ...
19
votes
3answers
7k views

How is sudo intended to be used?

I've tried configuring sudo before, but I haven't had too much luck with it. How is it different from su -l -c "x"? It seems that via the configuration file, one can make it so a user can only have ...
2
votes
1answer
1k views

Redirecting Google search to HTTPS with Privoxy

I tried this in the user.action file: { +redirect{s@http://www.google.*/search@https://encrypted.google.com/search@} } .google. But it doesn't work. My goal is to redirect from this: ...
3
votes
3answers
2k views

Accessing a linux machine with a name (not ip address)

When I access a linux machine with sshfs, I take the following steps. Get the ip address of the linux (the ip address is dynamically allocated to linux) Run sshfs id@ip_address:/HOME_DIRECTORY Can ...
2
votes
1answer
2k views

How to whitelist a url/site in privoxy?

I'm using Fedora 14 with privoxy-3.0.16-3.fc14.i686! These sites are blocked by Privoxy: http://somewhere.com/user/11111/track?page=1 ...
2
votes
2answers
2k views

How to change dm_crypt aes/256 LVM password after install?

I installed Fedora 14 & Ubuntu 10.04 LTS on my PC. I used dm_crypt/LVM with aes256 in both installs (2 VolumeGroups, each encrypted, so there is 2 separated & encrypted linux distro on this ...
3
votes
4answers
2k views

How to configure permissions to allow file access?

I'm running Wowza Media Server on my server as "root". The problem is that all files created (recorded) by Wowza are "root:root" and aren't writable, editable, or deletable by any other users. How can ...
15
votes
1answer
1k views

Rebooting without shutting off?

I have been using Linux Mint Debian with Debian unstable and noticed that when I press restart, instead of going all the way back to the BIOS, then grub, then booting up, I seem to be shutting down ...
1
vote
1answer
6k views

Install GCC on OpenSUSE 11.4

I installed OpenSUSE 11.4 but I noticed that it don't have gcc… How I can install it?
58
votes
10answers
32k views

How do I know if dd is still working?

I've not used dd all that much, but so far it's not failed me yet. Right now, I've had a dd going for over 12 hours - I'm writing an image back to the disk it came from - and I'm getting a little ...
2
votes
1answer
1k views

mount.cifs is slow

Using mount.cifs on openSUSE 11.3, I'm getting very slow performance on a gigabit network, usually around 4-5MB/s. The following mount command has yielded me the best performance so far: mount.cifs ...
1
vote
1answer
2k views

Differences between Debian bigmem and amd64 kernels

Debian 6 has multiple Linux kernel packages, and I'm interested in two of them: linux-image-2.6.32-5-686-bigmem linux-image-2.6.32-5-amd64 Consider that: I'm not going to be running any ...
3
votes
2answers
105 views

Generate suggestions for errors from a lookup dictionary

EDIT: the files were changed to tsv to deal better with spaces in text fields I have 2 csv files in the following form: File 1: availableText.csv (can be very big) "id1" , "text1-1" "id1" , ...
4
votes
3answers
866 views

When networkmanager is used, OpenSuSe gets stuck during boot for 10 minutes

I have this problem on all machines that I every installed (different configurations, different geographical locations, even different OpenSuSe versions) and it's extremely irritating. When I turn on ...
1
vote
1answer
65 views

How to run hello world in Maemo

Do you know any other way to start app than using ./? I've just compiled one in c++ and i can't run it.
3
votes
2answers
371 views

Unix Shell and colours

Can any one please help me understand this code snippet that I found in .profile file echo -en "\e[32;44m $(hostname) \e[m";echo -e "\e[m"
26
votes
4answers
83k views

How to get over “device or resource busy”?

I tried to rm -rf a folder, and got "device or resource busy". In Windows, I would have used LockHunter to resolve this. What's the linux equivalent? (Please give as answer a simple "unlock this" ...
1
vote
1answer
577 views

I can't kill xfwm4

$ ps aux | grep xfwm xralf 4365 1.2 0.4 19888 9444 ? S 10:45 0:00 xfwm4 --replace --display :0.0 --sm-client-id 204399537-7a38-4196-8c31-43cf2f3542ac xralf 4369 0.0 0.0 3324 ...
13
votes
6answers
8k views

Is it safe to rm -rf /tmp/*?

This is something I used to do a lot on Windows, but after my recent fiasco I want to make sure. Is it safe to do sudo rm -rf /tmp/* ?
3
votes
2answers
256 views

Where should I copy-paste-install software to?

I'm installing IntelliJ, and the readme tells me to choose an installation folder. Where is a good, standard place to put installed programs?
0
votes
1answer
2k views

best BSD distro for Desktop PCs? [closed]

I want to know if the bsd distros are for the desktop usage at all If yes; What is the Best bsd distro for desktop usage some thing like ubuntu linux which is easy to use and good GUI management ...
3
votes
2answers
554 views

How to build a cross-distro binary RPM package?

I'm trying to build a cross-distro binary RPM package that works under Fedora and openSUSE. I'm using a Require: tag to set the dependencies package names. The problem is that the package names are ...
5
votes
3answers
602 views

What would happen if a hard drive failed while the Linux kernel was running?

I've always been curious of what would happen if a hard drive failed while the Linux kernel was running. Since the kernel image itself is loaded completely into RAM, I don't imagine there would be any ...
7
votes
2answers
468 views

Are there any desktop email clients that implement gmail style conversation view?

I don't like threaded email views as much as the inline "conversation view" of gmail, however gmail is not as fast as I'd like it to be. Are there any desktop clients which provide a "conversation ...
4
votes
1answer
1k views

Audio/video out of sync when playing MP4s in mplayer

When I try to play MP4 files in mplayer, after a few seconds I get the "Your system is too SLOW to play this!" warning and the video starts lagging behind the audio. It only happens with MP4s, and ...
3
votes
2answers
3k views

change terminal title

I want to make a shell alias that starts a certain program and also changes the title of the terminal to the name of the program. How can I do that? In case it matters, I am running the terminal on ...
6
votes
5answers
1k views

How can I recursively search directories for a pattern and just print out file names and line numbers

Currently I am using grep as follows: grep -lr <PATTERN> . This gives me the following output, containing a list of all files whose contents (not name) contain : ./path/to/file1 ...
4
votes
2answers
207 views

What potential ills can be brought by 'deleting' a live kernel?

I recently deleted my active Linux kernel and continued using the system as if nothing drastic happened. Are there any side-effects to deleting the Linux kernel that's currently in use? What about ...
6
votes
2answers
4k views

sed one-liner to delete any line that does not contain lowercase letters

So, basically THIS LINE WOULD BE DELETED and (THIS LINE WOULD ALSO BE DELETED) but Indeed, THIS LINE WOULD NOT
4
votes
3answers
1k views

grub shows multiple kernel versions on startup

I have Ubuntu 10.10 and after few updates the boot menu lists many kernel versions. How do I remove older versions?
2
votes
1answer
689 views

tun0+ iptables rule

I'm trying to figure out what that + sign means in a rule such as this: -A FORWARD -i tun0+ -j ACCEPT I'm pretty positive it relates to vpn. I noticed a /dev/net/tun interface and a tun0 in ...
2
votes
1answer
3k views

Devices get renamed when SATA disk attached

I have an HP xw8200 workstation running linux with two small, fast SCSI drives hooked up to the onboard LSI SCSI controller. The drives get labeled /dev/sda & /dev/sdb in /dev, respectively. I ...
4
votes
1answer
626 views

Reverse control-code look up for terminals

My understanding is that terminals often use ANSI control-codes to represent non-alphanumeric character sequences. For example, when editing .inputrc for Bash in Linux, it's easy to find code ...
16
votes
3answers
12k views

How do I remove certain lines (using line numbers) in a file?

There are specific lines that I want to remove from a file. Let's say it's line 20-37 and then line 45. How would I do that without specifying the content of those lines?
7
votes
6answers
2k views

Is there any alternative to grep's -A -B -C switches (to print few lines before and after )?

grep -A 2 -B 3 prints 2 lines after the grep string and prints 3 lines before. grep -C 3 prints 3 Lines before and 3 lines after Unfortunately, the grep I'm using does not support these ...
0
votes
2answers
269 views

2 consecutive ssh logins [duplicate]

Possible Duplicate: Common multiple SSH connections file handling issue I used to do something like that often: home $> ssh user@server1 user@server1's password: server1 $> ssh ...
6
votes
2answers
1k views

Dump process core without killing the process

Is there a way to get a core dump (or something similar) for a process without actually killing the processes? I have a multithreaded python process running on an embedded system. And I want to be ...
7
votes
2answers
3k views

Ubuntu vs Debian for server

What would be a better choice for a web server, Debian or Ubuntu? I mainly use Python & PostgreSQL with Nginx and sometimes PHP & MySQL. What are pros/cons of each?
10
votes
2answers
3k views

Mapping key combination with xmodmap

I'm trying to achieve the following mapping keycode 135 = <Ctrl-C> Is it possible to achieve this in some way?
4
votes
2answers
1k views

Terminal and web browser combination

I often use only two applications, terminal and web browser. I like the tmux application which enables to split a terminal window into more regions. I noticed that I can open lynx in another region ...

15 30 50 per page