I am trying to find a workaround for incorrect grouping of windows in Docky, and I believe the problem lies with the WMClass attribute that is set for each window. However, I do not know how to view this attribute for open windows. Is there any way to do this?
Here's a strange thing I haven't seen before -- a directory whose size is reported by ls as 0 instead of 4096, and I can't create any files within it.
# ls -ld lib home
drwxr-xr-x. 2 root root 0 Feb 7 03:10 home <-- it has zero size
dr-xr-xr-x. 11 root root 4096 Feb 4 09:28 lib
# touch home/foo
touch: cannot touch `home/foo': No such file or directory <-- and I can't create files in it
# rm home
rm: cannot remove `home': Is a directory <-- look, it really is a dir
So what does it mean for a directory to have size 0 instead of 4096?
Filesystem is ext4 on fedora core 14.
The output of mount is:
/dev/mapper/vg_dev-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")
/dev/vda1 on /boot type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
Output of du -s /home:
0 /home
Output of stat /home:
File: `/home'
Size: 0 Blocks: 0 IO Block: 1024 directory
Device: 15h/21d Inode: 34913 Links: 2
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2011-02-07 03:45:46.188995765 -0800
Modify: 2011-02-07 03:11:59.980995019 -0800
Change: 2011-02-06 07:58:45.874995002 -0800
For a frequent task, I need a file manager window open with about 8 tabs, each a different location. I'd like to be able to open the tabs once and then save them as a "tab set", so that in future sessions, I can simply open a file manager and restore the saved tab set, without having to open each tab manually.
I'm running Mint 16 with Thunar, but could use a different file manager if needed.
Is there a way to do this?
We have about 10 heterogeneous machines we would like to run various jobs on. The current situation is that people log in on a machine with ssh, see if other people are running stuff on it, then use screen to run the job.
I'd like to automate this process, but I don't have enough time to install a full-fledged cluster solution. So what's the simplest thing I can do?
I was trying to bring up my custom kernel. I did the following :
make menuconfig && make modules && make modules_install && make install
I would like to change the install PATH. How can i do that?
I tried doing
export INSTALL_PATH=<my custom path>
But then it is only creating the vmlinux.bin(it is not creating the ramdisk image!!)
But if i am not doing that, make install will automatically create the ramdisk image in the default /boot folder.
How can i change that??
Thanks,
Sen
I am building a web application where my users will be able to upload files. After the files are uploaded I need to send the files to two other servers, and after they will be deleted from the server where they were just uploaded to.
I am wandering is it a good I idea to keep the uploaded files in the tmp/ folder the time the uploaded files are sent to the other two servers or should I move them to another folder incase they get deleted? I am also wandering because I would like to know if I have to build a cron script to get rid of the files that have been transfered to the other servers so that I get my disk space back.
I have a bash script that I use to configure a vanilla Ubuntu (10.10 Maverick Meerkat) installation to be exactly the way I want it. I make extensive use of gconftool-2 to configure the desktop, set up shortcut keys, etc.
Now, I'm trying to swap the CTRL and CAPS keys. I have found two ways of doing this:
In Gnome, go to System - Preferences
- Keyboard - Layout - Options and make the change in there. This works
well, but I don't know how to script
this; the setting doesn't seem to be
stored in the usual place as I can't
find it with gconf-editor.
Add the
line setxkbmap -option "ctrl:swapcaps" to my .bashrc file.
That works too, until I suspend the
machine & then resume it. At that
point the CTRL and CAPS behaviour
return to normal, until I cause
.bashrc to be run again by opening a
new shell. This behaviour has been
reported as a bug in RedHat.
Could someone please suggest a way of switching those keys that is both permanent, and can be scripted? I'm sure I must be missing something obvious here ...
I have a deep and complex file system where some files have been accidently written by root. I want to change the ownership of those files back to the original owner in one go.
I am playing with commands like:
find /folder -type f | xargs ls -l | grep "root root"
but there is a lot of garbage coming out too.
I want to make a list first and then change only the files in that list after confirmation.
I'm trying to use Skype with Ubuntu Karmic and I just don't understand how to configure Pulseaudio properly. The previous version of Skype allowed me to talk through and hear the voice on my USB phone and the ringing sounds through my laptop speaker. I'm not able to do this with the new version (2.1.0.47).
I'm running Ubuntu on Parallels on a MacBook, and there is no middle-click on the MacBook trackpad - which is annoying because it means you can't do X's paste action.
Is there an alternative? I'm hoping there is a keyboard binding to X's paste or better a way to bind a keyboard key/combination to the middle-click action.
Edit: I know about the emulate three-button mouse option, but that won't work for me because the trackpad only allows you to click one button at a time
If I run a program from the shell, and it segfaults:
$ buggy_program
Segmentation fault
It will tell me, however, is there a way to get programs to print a backtrace, perhaps by running something like this:
$ print_backtrace_if_segfault buggy_program
Segfault in main.c:35
(rest of the backtrace)
I'd also rather not use strace or ltrace for that kind of information, as they'll print either way...
On my production stack, I have a front-end server and a Mongo server. I would like to be able to set a cron job on the front-end server to create some logs daily.
I wrote a script that does this:
./mongo server:27017/dbname --quiet my_commands.js
If I run it from the Mongo server as above, it works fine. However, I would like to be able to run it from the front-end server. When I try to do that, I get:
-bash: mongo: command not found
Since mongo is not installed on the front end server, it gives me that error.
Is it possible to somehow bind mongo to my mongo on the Mongo server?
I have a rather big directory on one server (over 4000 files), which I'd like to copy to another server (which contains a previous version of this directory). rsync is the first option, but it will put the destination folder into waiting status for a rather long period of time (more than a minute).
I'd like to do it a bit differently:
gzip the source folder
scp the archive to the destination server
gunzip the file there
delete the archive at the source and the destination
What is the best way to accomplish all this?
I want to write code in Dev C++ so that when i execute in Ubuntu 8 , it clones my windows 7 from D: partition to its child partitions E:,F: ...
i have made my partitions of equal sizes and i have tested by manualy using ntfsclone ,so their will be no problem in cloning.
this is part of kiosk system and i hope you understand what i am upto
Some reference or help will be appreciated
thanks
I'm trying to set the time in an embedded system ...
There isn't a link/file /etc/localtime and /usr/ has only two subdirectories /usr/bin and /usr/sbin.
Is there something I can try or do I just give up and make UTC be my timezone?
Hi,
I need to install a pair of 1Tb disks into a server that has a hardware RAID card.
How long is it likely to take to configure the RAID controller - sticking the disks in is only a 5 minute job, but is there likely to be significant downtime while both disks mirror (even though they are both blank)? Am I looking at 10 minutes over all, or more like 2 hours for this to happen?
Thanks
It looks like Debian has a default to run checkarray on the first Sunday of the month.
This causes massive performance problems and heavy disk usage for 12 hours on my 2TB mirror. Doing this "just in case" is bizzare to me. Discovering data out of sync between the two disks without quorum would be a failure anyway.
This massive checking could only tell me that I have an unrecoverable drive failure and corrupt data. Which is nice, but not all that helpful. Is it necessary?
Given I have no disk errors and no reason to believe my disks have failed, why is this check necessary? Should I take it out of my cron?
/etc/cron.d# tail -1 /etc/cron.d/mdadm
57 0 * * 0 root [ -x /usr/share/mdadm/checkarray ] && [ $(date +\%d) -le 7 ] && /usr/share/mdadm/checkarray --cron --all --quiet
Thanks for any insight,
I am interested in making an in house web ui to ease some of the management tasks I face with administrating many servers; think Canonical's Landscape.
This means doing things like, applying package updates simultaneously across servers, perhaps installing a custom .deb (I use ubuntu/debian.) Reviewing server logs, executing custom scripts, viewing status information for all my servers.
I hope to be able to reuse existing command line tools instead of rewriting the exact same operations in a different language myself.
I really want to develop something that allows me to continue managing on the ssh level but offers the power of a web interface for easily applying the same infrastructure wide changes. They should not be mutually exclusive.
What are some recommended programming languages to use for doing this kind of development and tying it into a web ui? Why do you recommend the language(s) you do?
I am not an experienced programmer, but view this as an opportunity to scratch some of my own itches as well as become a better programmer. I do not care specifically if one language is harder than another, but am more interested in picking the best tools for the job from the beginning.
Feel free to recommend any existing projects except Landscape (not free,) Ebox (not entirely free, and more than I am looking for,) and webmin (I don't like it, feels clunky and does not integrate well with the "debian way" of maintaining a server, imo.)
Thanks for any ideas!
In recent weeks, login times on my Ubuntu server have started timing out; both through SSH and the local command line console. Examination of the /var/auth.log yields nothing interesting.
How can I diagnose long log in times on my Ubuntu server?
I should mention, also, that no updates have been performed since the problem has started, and that the /, /boot/ and /usr/ file systems are mounted as readonly.
[Edit]
This is a stand alone machine, so it doesn't authenticate with Active Directory, LDAP etc. Also, the login prompt is responsive, as is the password prompt. Upon typing the password then CR, I'll timeout. After four a five tries, I will be able to login, although I'm worried this will start taking longer.
I've been looking for a way to tag my files and search/filter them based on those tags.
Here are my (updated) requirements :
any file readable by the user can be tagged freely
a user can search for files matching one or several tags
files can be moved around without losing the previously associated tags
the system could be backed up easily
no dependencies on any desktop environment
if any gui is involved, there must be a cli fallback
I've been hoping for some basic filesystem & coreutils hackery to handle this, but I haven' thought about this hard enough yet.
Meanwhile I'll review beagle and metatracker, which have been mentionned here, and see how they perform.
Ok so beagle has huge gnome dependencies, and tracker is okish, but still has some dependencies I don't like...
Been doing some more research, and the way to go could very well be extended file attributes.
That's a native solution for most recent filesystems, but they aren't very well supported yet (most coreutils destroys them by default, cp for example needs the -a flag to preserve them).
Would like to hear some thoughts on using them while I try my hand at some hacks myself, eventhough this might warrant a new question.
After manually setting the display brightness on my laptop, the system re-sets the value. If the laptop is plugged in, the value is set to full brightness; if it is not plugged in, it is set to dimmer. How do I stop that behavior?
Note that I am not talking about what it does in response to the event of plugging in or unplugging my system. It changes on it's own - usually several minutes after I change the brightness value. I have observed this behavior on different systems, different distributions, and different desktop environments.
I've just rented a new server (CentOS 5.4) and I see it has only 3 partitions: /, /boot and the swaping partition.
I'd like to create, at least, partitions for /tmp and /var.
Would there be any problems if I try to create those new partitions through SSH??
Thanks.
XML one is something like that:
<dict>
<key>2</key>
<array>
<string>A</string>
<string>B</string>
</array>
<key>3</key>
<array>
<string>C</string>
<string>D</string>
<string>E</string>
</array>
</dict>
XML Two is something like that:
<dict>
<key>A</key>
<array>
<string>A1</string>
<false/>
<false/>
<array>
<string>Apple</string>
<string>This is an apple</string>
</array>
<array>
<string>Apple Pie</string>
<string>I love Apple Pie.</string>
</array>
</array>
<key>B</key>
<array>
<string>B7</string>
<false/>
<false/>
<array>
<string>Boy</string>
<string>I am a boy.</string>
</array>
</array>
</dict>
I want to convert to this:
<dict>
<key>2</key>
<array>
<string>A, Apple, Apple Pie</string>
<string>B, Boy</string>
</array>
...
</dict>