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
When I use netstat -tup, it only shows the processes for some. There are other ports that just have a - for PID, so how would I find out what process is listening on these ports?
Shotwell helps me keep my photos organized. It would be nice if there was something similar for my videos. I prefer something Gtk-based, but I'm open to ideas.
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 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!
I have a USB stick with a Fedora 11 live environment on it.
It's booting fine on 3 PCs where I've tried it.
But I can't get it to boot on a Mac (Intel). When pressing the alt key (or command key, I don't remember which one) during startup I can only choose the "Macintosh HD" and the USB stick doesn't appear.
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'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 have 2 user accounts, foo and bar
I want to allow user foo to execute commands as root and any other user ie:
sudo su root -c'./run-my-script'
sudo su bar -c'./another-script'
sudo su another -c'./yet-another-script
I also want to allow user bar to execute commands as other user but only a subset and not root ie:
sudo su bar -c'./run-my-script'
but not
sudo su root -c'./run-my-script'
Is this possible ?
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...
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
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.
The load on my server is very high, even though there doesn't seem to be much disk activity and the CPU is idle. Using sar, I can see the run queue is getting full, but is there any way to see what's in the run queue?
For some reason, ifcfg-eth* under /etc/sysconfig/network-script were deleted.
Is there any tools that could detect network interfaces and re-generate these files?
Another question :
If I manually added ifcfg-eth0, is there any method to make it work without reboot?
I tried "/etc/init.d/networking restart", and it doesn't work.
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?
I have an old P4 computer. I would like to use it as a test LAMP server and a need to find or build smallest LAMP server. I don't need anything fancy. If it can run popular CMS's like Joomla or Drupal or Wordpress that is all I need. No window manager or any other tools.
Any advice?
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?
I want the process to look like:
I choose the correct scan settings (dpi, color depth, etc)
I lay the first page on the scanner and trigger the process
The scanner scans the page and waits for me to position the next page correctly
I confirm that the next page is ready for scanning
Repeat the above two steps until I tell the scanner that there are no more pages to come
The scanner saves everything into a single PDF.
I tried both xsane and gscan2pdf. First problem: they want me to know how many pages will be scanned. This is already a nuisance, but I can do the counting if needed.
The main problem is that in step 3, the scanner does not pause. It is probably optimised for being fed loose sheets. The next scan process is triggered automatically as soon as the CCD has returned to the start position. The time the scanner needs to return the CCD is very short and I can't turn the page and position the book properly.
Is there a software which can do the scan process in the way I described above, or did I just miss a setting available in xsane or gscan2pdf to make the scanner pause?
If it makes any difference, the scanner is an Epson Stylus SX620FW, I run it using the manufacturer-provided driver.
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'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
Hi,
I've got a problem with my 3G modem [Huawei E122].
It has internal storage and kernel assigns a device [/dev/sdX] to it.
Because of that, every second time my machine will not boot - kernel panic - as my usb hdd gets assigned /dev/sdb instead of /dev/sda.
I cannot use LABEL nor UUID in root= kernel parameter, as it is only available when using initrd, and I can't use it - I am using Debian on my router - mips architecture machine.
I have to prevent this from happening, as my router has to start everyday and I have to be sure it works ok. I don't have physical access to restart it when something goes wrong.
I don't use my modem internal storage, there's no SD card inserted. However kernel detects the reader and loads it.
I can not prevent loading od usb drivers since my hdd is on USB as well.
I will appreciate any ideas.
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.