1
vote
1answer
546 views

Linux hardware: Apple Magic Track Pad Alternatives

I'm using Linux as my main OS for few years. Before month or so, i tested apple magic track pad and i loved it since i am using laptop touch pad more than a mouse, it requires less movement of hand ...
13
votes
5answers
9k views

In bash, how can I convert a Unicode Codepoint [0-9A-F] into a printable character?

I have a list of Unicode codepoints, but I don't know of a "simple" way to convert these hex values into the actual characters they represent... I've heard that zsh has echo -e '\u0965', but I use ...
0
votes
3answers
12k views

arch installation- startx not working

I went through the Arch installation yesterday, everything seemed to be going fine but when I ran startx it gave an error(in image below)- Is it a problem with the graphics card driver? My laptop ...
8
votes
4answers
315 views

Do you prefer bash scripts or aliases for shortcuts?

I have a ~/bin directory (which is on my PATH) where I store a lot of little 1 or 2 line scripts. Some of them just cd into a directory and run a command on a file, like vim or something. But I also ...
36
votes
4answers
4k views

unix, difference between path starting with '/' and '//'

In unix/linux, any number of consecutive forwardslashes in a path is generally equivalent to a single forwardslash. eg. $ cd /home/shum $ pwd /home/shum $ cd /home//shum $ pwd /home/shum $ cd ...
8
votes
8answers
2k views

Alternatives to FVWM window manager?

I've been using FVWM for over a decade, and for some time I've been concerned that the window manager is dying a slow death. I realize that 2.6.0 just came out a few days ago, and ironically that is ...
11
votes
3answers
29k views

How to encrypt messages/text with RSA? (using openssl?)

I have Alice's public key. I want to send Alice an RSA encrypted message. How can I do it using the openssl command? The message is: Hi Alice! Please bring malacpörkölt for dinner!
4
votes
3answers
10k views

checking an argument to a bash script is a string of all digits

The Bash FAQ says If you're validating a simple "string of digits", you can do it with a glob: # Bash if [[ $foo = *[!0-9]* ]]; then echo "'$foo' has a non-digit somewhere in it" else echo ...
4
votes
4answers
18k views

Linux file access monitoring

Is there any way in unix to find out who accessed certain file in last 1 week? It may be user or some script ftp it to some other place. Can I get a list of user name who accessed certain file? How ...
5
votes
3answers
1k views

How do I create a virtual secondary screen in X11?

I'm trying to use xvfb as a secondary screen, but I am struggling getting the two screens working together. xvfb does not seem to have the randr extension. So is there another possibility to create a ...
9
votes
1answer
2k views

How can I type Unicode characters into KDE's Konsole terminal from a Gnome desktop?

I use Ubuntu.. In 'gnome-terminal', I can type Unicode Codepoints by first typing Ctrl-Shift-u followed by the Codepoint hex value, eg. C-S-u 2468 produces ⑨ konsole, my preferred terminal, does ...
1
vote
1answer
280 views

erratic keyboard shortcut behavior - gnome debian testing

Sometimes my keyboard shortcuts in gnome do not work (ctrl-alt-right for next desktop, ctrl-alt-m for menu, ctrl-alt-b for browser, et cetera) Sometimes after rebooting they do work. I wish I ...
1
vote
3answers
5k views

How to kill a printing job on centOS

How does one kill a printing job on centOS?
16
votes
5answers
7k views

Best resources to learn bash scripting?

I've programmed in a number of languages for two years now, I mean that I know how to design and implement a decent solution for a given problem. However, bash is being a major headache to me, just ...
1
vote
2answers
162 views

Linux/Firefox- snapping open tab from another machine

Is there a way to snap the currently open tab(s) on Firefox (or any other browser) on Linux? I have full user access to that machine...
6
votes
1answer
319 views

`hostname` - host name or FQDN?

What is the right thing to set a computer's hostname to? (/bin/hostname, /etc/hostname, sethostname(2), etc.) I usually just use the "name" part, and it works perfectly (for me at least), but I've ...
2
votes
3answers
788 views

Batch File Rename Using Mapping File

I have a large collection of image files, for example: a.png, b.png, c.png, etc If I have a file with mappings of filenames to numbers, like so (ignore the format, it could be anything): a=>1 ...
0
votes
1answer
47 views

Configure webserver for compression

Based on this page: http://code.google.com/speed/page-speed/docs/payload.html#GzipCompression I need to enable compression on my website, but I have no idea how to do this. If this is the right ...
2
votes
6answers
395 views

Searching strings on files

I've got a bunch on strings which I need to find in a couple of files, for example: string1 string2 stringn file1.txt file2.txt filen.txt Is there an (easy) way to do that in bash? I need to know, ...
11
votes
4answers
1k views

How exactly do people “crack” Unix/Linux Systems?

No im not looking to become a cracker or something like that, but Im trying to figure out the process (more from a programming perspective). So im assuming (guessing) a cracker's main goal is to gain ...
9
votes
2answers
20k views

“rsync: failed to set permissions on …” error with rsync -a or -p option

When I use the -a option as is asked and answered in Preserve the permissions with rsync, I got a lot of "rsync: failed to set permissions on" errors. rsync: failed to set permissions on ...
12
votes
1answer
26k views

Preserve the permissions with rsync

Let's say I have a file a.txt in LINUX with permission of 0664. When I use rsync to copy the file to my Mac with rsync -r -t -v LINUX MAC, the file's permission becomes 0644. How can I keep the ...
12
votes
5answers
18k views

Syncing directories in both directions with rsync

I happen to know about rsyn, and I use rsync to sync between my mac and a linux server as follows. rsync -r -t -v MAC LINUX rsync -r -t -v LINUX MAC I expected to run the first command to sync, but ...
1
vote
1answer
757 views

Debian (Gnome): unable to login

I am new to Linux, installed Gnome, and unable to login, as only root is set, and disabled, I think after reading on the Internet. Now how do i get back to the command line, at least so I can deal ...
2
votes
1answer
780 views

How can I press key of “keycode 53” every minute in X?

I want to automate my typing. I can use window managers such as gnome and fvwm. I can access to ubuntu and obsd.
17
votes
4answers
16k views

How to avoid being asked passphrase each time I push to Bitbucket

I set up my ssh stuff with the help of this guide, and it used to work well (I could run hg push without being asked for a passphrase). What could have happened between then and now, considering that ...
4
votes
1answer
2k views

How to quit GNOME file copy GUI after it hangs

Many times I find GNOME file copy GUI tool (Nautilus) irritating when it stops working. It happens when: I cancel the copy or move I try to copy to blue tooth exchange folder to my friends ...
8
votes
2answers
554 views

Are there any good tools besides SeleniumRC that can fetch webpages including content post-painted by JavaScript?

One major shortcoming of curl is that more and more wepages are having their main piece of content painted by a JavaScript AJAX response that occurs after the initial HTTP response. curl never picks ...
4
votes
3answers
4k views

Gnome Logout from command

How to get logout from Gnome session via command line ? Also Is there any way in GNOME to do "switch user" from command line ?
4
votes
3answers
311 views

Can I insert sudo via the ^ command?

Sorry if this is a yes/no question.. I am reading this unix tutorial and found the following: Repeating and Modifying the Previous Command [..] If you mistype leavenworth as leaveworth ...
2
votes
2answers
840 views

Create url link in menu

How can I create a menu item that points to a URL? I've tried creating a mylink.desktop entry like this: [Desktop Entry] Encoding=UTF-8 Name=My Link Name Icon=my-icon Type=Link Categories=Office; ...
1
vote
1answer
461 views

Queries about top command

top command shows the process cpu utilization, and it when we sum the cpu utilization of all the processes then it goes greater than 100%. And how can it shows the cpu utilization of each process( ...
3
votes
6answers
5k views

ssh user@IP sh <command> missed environment variables

I use an approach ssh user@IP sh [runme.sh] to execute script remotely, this works fine. But I got one problem, that is in runme.sh, I can't get any envirnoment variables which are defined in ...
4
votes
3answers
919 views

slow media - disk cache tuning?

Is there any way to make the system more consistent when using LUKS? (or slow storage in general) as it is everything is snappy until the write buffer is full, then everything grinds to a halt as the ...
4
votes
2answers
972 views

bash script is trying to execute a variable

I have a very short Bash script, like this: variable="3 things" if $(echo $variable|grep "^[0-9]\{1,\}") #if $variable begins with [0-9] then echo $(echo $variable|sed 's/ .*$//') else echo ...
1
vote
1answer
2k views

Install MySQL workbench on ubuntu

I am using Ubuntu 9.10 - the Karmic Koala - released in October 2009 I downloaded mysql-workbench-gpl-5.2.33b-1ubu1004-i386.deb from here But when I run this package it show me following error: ...
4
votes
2answers
5k views

Motd not changing

My /etc/motd file is showing duplicate messages. When I edit it manual, it keeps returning to the messed up version whenever a user logs in. How do I stop this? I'm using Ubuntu 10.04
6
votes
5answers
7k views

Setting a name for a screen session

Is there a way to give a particular name to a unix screen session? For instance, say I'm running the same program multiple times, each with different parameters and I want to tell which one is which.
7
votes
1answer
513 views

Does one alias affect another alias?

I don't have many aliases set up in my .bash_aliases file just yet. Only recently have I discovered how useful they can be. I can see myself getting quite hooked on aliases so before the file gets ...
0
votes
1answer
433 views

Fedora 12 No wireless networks detected

I have just bought a Dell Inspiron 1510 and loaded Fedora 12 along with Windows. I cannot detect any wireless networks through my network applet on the tool bar. $:lscpi 12:00.0 Network controller: ...
2
votes
2answers
1k views

How can I get weechat to signal gnome-terminal on a highlight?

When using a terminal based client like weechat, weechat does not signal the terminal letting the user know that they have been highlighted. How can this be done? I would like my terminal to blink ...
1
vote
2answers
2k views

Several versions of JAVA on one PC

I want to use jre-1_5_0_21 on my Fedora 14 box. Here's whats installed on my PC: $ update-alternatives --config java There are 2 programs which provide 'java'. Selection Command ...
2
votes
3answers
1k views

Unique hardware signatures in BSD?

What unique hardware signatures can you get from, for example, a FreeBSD system? I am right now using the ethernet mac address (getifaddrs(3)) but as we all know this can easily be changed with ...
3
votes
2answers
5k views

How to change temporarily font size in text console in openSUSE?

I found several answers already but all of them are focused on changing size for good, i.e. at Lilo/Grub level. I don't want this though. So, key issues: changing size on-fly, I would like to ...
3
votes
1answer
3k views

can not sftp: returns 128 “is the sftp server running”

I can ssh to my EC2 instance (amazon linux) (same user, from same machine, same certificate) however I can no longer use sftp. Logging in via WinScp (via my windows7 box) for SFTP used to work, but ...
3
votes
3answers
1k views

What a good text editor with RTL (right-to-left) support?

gvim doesn't seem to support it out of the box on my Ubuntu lucid.
1
vote
5answers
629 views

No response on a Linux machine

I am using centOS, sometimes the system just does not respond at all. In windows box, I can ctrl-alt-delete. On a Linux machine, how should I handle this?
13
votes
2answers
7k views

How do I refresh Gnome 3 applications

I just added and modified a .desktop file in my /home/user/.local/share/applications folder. Is there any way to refresh the icon and caption in the list of applications without logging out?
1
vote
1answer
436 views

Find unversioned files in CVS checkout

CVS doesn't list unversioned files in the status output by default, so how can I get a list of all unversioned files? This is the best I've come up with so far: while IFS= read -r -d '' -u 9 do ...
7
votes
1answer
679 views

Opening port 80 but remain secure

I have a standard installation of Ubuntu 10.04, and have installed the LAMP stack so I can do some web development locally. On my router I have opened port 80 so I can develop with external services ...

15 30 50 per page