Linux refers to the family of Unix-like computer operating systems using the Linux kernel. If your question is about a certain distribution only, use a more specific tag.

learn more… | top users | synonyms

0
votes
1answer
50 views

Get tomcat to start context(s) immediately

How would I get Tomcat to start/init a context immediately when the service starts? Currently the context is only loaded and initialized on the first page view. Is this something that has to be done ...
1
vote
1answer
179 views

Is there a program like Ubuntu's “System Testing” tool for other Linux distros?

Ubuntu has a program called "System Testing" which prompts the user to test various elements of their system (sound through headphones, sound through system speakers, network connectivity, available ...
0
votes
1answer
454 views

Network conf - ever time must set ifconfig

I need to autoconfigure network. Network Manager is removed because I need lightweight system. After system starts networks doesn't work. #service networking status networking stop/waiting #service ...
0
votes
1answer
495 views

Mint LXDE autostart doen't work

I need to autostart skype. /etc/xdg/autostart/skype.desktop - not working /etc/xdg/lxsession/Mint-LXDE/autostart + line @skype - start skype twice /etc/rc.local + line skype - not working Any ideas? ...
3
votes
3answers
4k views

linux shell wc -c count characters +1

I used the command wc -c to count the number of characters but it gives me a wrong number, number of characters plus one as an example: echo "k" | wc -c it gives me 2 characters so why not 1?
0
votes
2answers
373 views

How to create a local backup?

I have a linux (Ubuntu 12.04) web server and I want to create a cronjob to generate a differential backup, locally (in the same machine). Is that possible? With differential I mean that the first ...
1
vote
0answers
327 views

Can you run “fsck.ext2 -fycc /dev/mapper/truecrypt1” on an unmounted Truecrypt device?

Can you run "fsck.ext2 -fycc /dev/mapper/truecrypt1" on an unmounted Truecrypt device? The "extra c" in the -fycc causes it to do a supposedly "non destructive" read-write (Similar to what ...
46
votes
1answer
7k views

If I buy a computer with Windows 8 and Secure Boot, will I still be able to install Linux?

I've heard a lot about how Microsoft is implementing UEFI Secure Boot in Windows 8. Apparently it prevents "unauthorized" bootloaders from running on the computer, to prevent malware. There's a ...
5
votes
4answers
2k views

Azure VM (OpenLogic CentOS 6.3): no kernel-headers

I have set up a VM on Windows Azure (Openlogic CentOS 6.3 - of one predefined images). The problem is I see no kernel-headers package and it can't be installed (yum doesn't fine it). Thus, anything ...
1
vote
1answer
245 views

Sort columns next to last column in Linux

I have multiple files: File 1 a 1 2 b 3 2 File 2 a 2 2 3 b 4 3 3 File 3 d 3 1 2 4 e 4 1 1 2 I'd like to sort the files according to the column next to the last column, after sort: File 1 ...
0
votes
2answers
129 views

Count amount of received data - gnu/linux

How Can I count the received data from the internet. I want to run my bash script and count how many MB it receive. It could be stats for whole system.
1
vote
0answers
373 views

How to define a virtual screen (extending current desktop) for VNC?

How can I define a virtual screen/workspace to extend my desktop to which I can connect using VNC. I know vnc4server allowed you to modify the xorg.conf to define a screen, but this is not available ...
0
votes
0answers
34 views

Execute permissions set but still getting 'No such file or directory'

I'm trying to run a binary file from bash but I get the above error when I try ./launcher from the directory it's located. Execute permissions and owner are all in order so what's the issue?
0
votes
0answers
122 views

Setting up Fedora alongside Windows 8 with special considerations

I've recently found myself much more comfortable using the console and other tools on my Mac than their counterparts with Windows. Specifically, these tools include LaTeX/xindy, emacs and its load ...
1
vote
1answer
430 views

Fedora Is Asking For Username and password at boot

When I turn my computer on GRUB auto loads fedora and I get Username: then Password: and when i type them in i get error: access denied Failed to boot both default and fallback entries then i get ...
3
votes
0answers
424 views

intel/ati dualhead black monitor - brightness set to 0 (acpi issue?)

I'm using Arch Linux, but had this issue with other distributions as well: on HP Pavilion G6 laptop with Intel and Radeon graphic card. When I modify the xorg.conf file to enable dualhead (such as: ...
0
votes
1answer
2k views

Can't edit '/etc/network/interfaces' file through bash script in Ubuntu [duplicate]

Possible Duplicate: sudo permission denied I got need to edit /etc/network/interfaces through bash script, I am doing something like below... sudo echo something > ...
1
vote
0answers
1k views

mint4win.exe doesn't works on Linux Mint 14 (32-bit) on Windows 7

I am a recent fan of Linux Mint MATE and I found that its a nice work. Recently I have been facing an issue with the mint4win.exe. The package as a whole works since I have driven the OS live using a ...
5
votes
1answer
181 views

Is there a way to distinguish the output from a remote command from the output of ssh itself?

I execute a remote command thru ssh and I need to parse the output of that command. The remote stdout/stderr are forwarded fine by ssh back to my local box on the stdout/stderr of my local ssh ...
1
vote
2answers
43 views

how to use crontab with &

I used the crontab to execute a script, while the script had to do some jobs in the background in this format: for i in {1..100} do do_job & done However, the do_job won't be executed by ...
0
votes
2answers
429 views

How to delete all files & directories in a directory including hidden ones except .htaccess?

As the question suggests, I have a situation where I have a folder that users can upload weird stuff there. Have a cron job set up to clean this folder every a few hours. It has a .htaccess for ...
0
votes
2answers
538 views

Write permission on binary/executable files: Are they necessary?

I thought: echo hello world > /usr/bin/firefox would display the message in the browser. Nothing happened. Then I tried: echo hello world > /usr/bin/kwrite to see if kwrite opens with 'hello ...
1
vote
1answer
81 views

apt-get only downloading gnome classic

For the past few weeks, I've been having a problem with my two laptops. Somehow (both on linux mint 13 and ubuntu 12.04) I have been trying to download gnome 3.4 shell. Unfortunately it would only ...
-5
votes
1answer
86 views

Boot Linux directly into an Adobe Air application [closed]

I am looking for a way to boot Linux directly into my Adobe Air desktop application. I don't want the machine to be able to do anything else beside running my application, except for being able to ...
1
vote
1answer
76 views

Specify directory within zip file when growing archive

I have a file at /tmp/mylib.jar which I would like to put into the lib directory contained in myarchive.zip. I know I can use the -g option to grow the archive, but I'm not sure how to specify the ...
1
vote
1answer
576 views

Error when booting ISO partition from syslinux

My partition table is as follows: /dev/sda - /dev/sda1 Arch Linux (200G) - /dev/sda2 Swap (16G) - /dev/sda3 Recovery (1G) - /dev/sda4 Extended - - /dev/sda5 Arch_201212 (256M) - Free Space (15G) I ...
0
votes
1answer
40 views

what's the easiest way to match up /dev/sdx with a device mounted in /media?

I can never remember which device is what so when it comes to partitioning, etc. I'm afraid of messing up the wrong drive. Automounted devices like external drives don't seem to turn up in fstab. So ...
2
votes
1answer
7k views

httpd: bad user name apache

on centos when I enter service httpd start or restart server gives Starting httpd: httpd: bad user name apache [FAILED] I tried to add ...
1
vote
1answer
746 views

How to crop image in linux

Ok I know about the convert tool and I am wondering can it be used to say just remove the bottom 50 pixels in an image leaving the rest of the image intact. Can it be done in batch? Lets say i have ...
2
votes
3answers
204 views

How to prevent a user from viewing the entire file-system?

I've set up SFTP/SSH so that a user can only put to their home directory, however, they can still cd to all other directories and get files that they see. How can I prevent this? EDIT: My ...
1
vote
1answer
111 views

How do i setup this ip for two location which will be using a same gateway as different subnet?

I have two public IP, they have not given me any subnetmask and gateway for those two. But in seperate they have given me one subnet mask/gateway as below: 217.91.227.x 217.91.170.x To be use ...
0
votes
1answer
788 views

How to get Linux man pages in Windows XP

I'm using Ubuntu 9 as a virtual machine in Windows XP , so it doesn't have updated man pages for Linux(my machine doesn't support newer versions) . I tried to Google for few man pages that i haven't ...
0
votes
2answers
105 views

Way to write a bootable CD to a partition?

Arch-Linux comes with the best recovery CD I have ever come across. Although I don't always have it with me, so I want to have it on a partition. What I would like to do is have this CD on a ...
4
votes
2answers
4k views

Installing Network Simulator (NS-2, allinone) on Linux Mandriva

I downloaded the Network Simulator NS-2 from here - http://www.isi.edu/nsnam/ns/ns-build.html#allinone Build ns via GCC 4.2.2 - tar-xzf ns-allinone-2.35.tar.gz cd ns-allinone-2.35 ./install Get ...
0
votes
1answer
234 views

Check file name and filter it based on the date

I have many files one of my scripts generate daily. The file name structure resembles: capacity_data_2012-12-02.txt , capacity_data_2012-12-03.txt and so on... I want to create a script which would ...
1
vote
2answers
4k views

Why does the command mv return the message mv: cannot move Device or resource busy on Linux?

I was attempting to move files from one directory to another and was displayed the following message although the files were moved. Why does display the "error" and what does it mean? When does it ...
0
votes
2answers
88 views

New directory with size assigned

I need to create a new directory under /opt/HP, lets say /opt/HP/bits, can i assign some size to this directory,if yes can u tell how can i assign 8GB to this directory (G is GB in linux right)? ...
3
votes
1answer
230 views

What makes a Partition Table valid?

QUESTION: What makes a Partition Table recognizable and valid to an operating system? (Linux specifically) ? Optional Background Info: I thought there was some sort of "signature" that defines a ...
3
votes
1answer
547 views

Disable the DVD eject button on a Thinkpad running Linux

My Thinkpad T420 has a problem. It's just too sensitive. I just slightly touch it on the right side, and woosh, the DVD drive pops open. (I think this is called a premature ejection :)). Is there a ...
3
votes
1answer
664 views

SSH port forwarding with automatic reconnect, script executing at startup

In short, every time my computer boots, I would like to start a ssh port-forwarding connection that will reconnect with the server if the connection drops. Computer is Debian Wheezy x64. An initial ...
1
vote
1answer
314 views

Opening Office Binder OBD file in Mac OS X or Linux

I have an old .OBD file (Office Binder). How can I open it in my Mac OS X or Linux?
0
votes
2answers
2k views

Error using httpd on CentOS

I am using CentOS. When I try to start httpd I receive the following error: > sudo httpd httpd: apr_sockaddr_info_get() failed for ccrhwp01948 httpd: Could not reliably determine the server's ...
5
votes
1answer
2k views

Convert grayscale image into alpha channel image in unix shell

I have a gray-scale image. I want to convert it into an transparent PNG, such that the black pixels (in the original image) become fully opaque, the white pixels become fully transparent, a 50% grey ...
0
votes
3answers
157 views

Heavy file copy to linux

I want to copy a a heavy setup file(Binaries of a software) 3.4 GB from windows to Linux machine. But I am scared as I dont know if I will copy the file under /home drive it may get full, and space ...
6
votes
1answer
6k views

Determine the HDMI controller from the command line

XBMC (or rather libcec) only supports CEC in a couple of HDMI controllers. I would like a way to work out what HDMI / CEC controller is installed in a machine from the command line. This is the ...
1
vote
1answer
2k views

Installing daemon on a fresh ubuntu system

I have done a linux service using the article on this link http://shahmirj.com/blog/the-initd-script After that I copied the files into the init.d directory cp -f "myserviced" "/usr/sbin/myserviced" ...
1
vote
0answers
466 views

My new servers will shutdown instead of rebooting when I do init 6 or equivalent, any idea?

I have 2 new Supermicro servers (5037C-T) with Ubuntu 12.10 and when I try to reboot the machine I instead get a nice shutdown. Interestingly enough, the reboot command in the BIOS or grub work ...
0
votes
1answer
2k views

How to append text to a specific lines in a file using shell script?

I have a text file (file.txt) having content something like: foo1 3464 foo2 3696 foo3 4562 It contains the process and respective PID. Using shell script, I want to append a string (running/not ...
0
votes
1answer
246 views

Booting with a bunch of “read-only file system” messages

I have been tring to make my system dual-bootable. So I installed lilo and put it in my MBR. It loads and gives me this bunch of "Read-only file system" messages in the startup messages. Then I get a ...
2
votes
1answer
3k views

Linux EFI Live CD/USB

I was trying to boot from CD on a new HP Pavilion dv6 a few days ago with much frustration due to the Linux distributions I tried not working with EFI. Additionally, the EFI Bios is Insyde H20, which ...