1
vote
2answers
83 views

What modules in the Linux source code take care of hot-pluggability?

Could someone shed more light on the code/modules that are responsible for the hot-pluggabilty of the hardware used in Linux machines?
1
vote
1answer
1k views

How to manage getops argument assignation

This is my first question. I'm trying to make a small script with options and I'm using getopts to do it. The weird thing is: The argument don't get assigned to the variable or it always enter the ...
1
vote
1answer
113 views

Is there a way to execute a command when a user logs off from X?

I am trying to execute two commands one on logon and one on logoff. For the log on one, I put my script into /etc/X11/xinit/xinitrc.d and this works. I'd like it to be system-wide so I can use any ...
3
votes
3answers
3k views

Conditional crontab command in bash script

How do I invoke a crontab command so that I can schedule to run a script with a 20 minute delay based on some condition? Edit: What if I wanted a command that schedules a script to be executed only ...
5
votes
1answer
642 views

How does sh -e interact with &?

I'm using sh (dash) on Ubuntu (lucid) and the manpage has this to say about -e: -e errexit If not interactive, exit immediately if any untested command fails. ...
0
votes
1answer
2k views

seq - invalid floating point argument error

I have a file with many numbers, with each number on one line. My goal is to find the numbers that are missing. I'm trying to generate the sequence of all the numbers with seq start=$(head -1 ...
0
votes
2answers
7k views

Avoid asking password if `su -m user command` is used under `user`?

If I run the script containing su -m user service userservice start under root user, I do not need to enter the password. But when I run it under user user, it asks passwords all the time. That really ...
4
votes
2answers
606 views

No locate.db even after running updatedb

Any clue what's up with this? djc@miles rebar $ sudo updatedb djc@miles rebar $ locate .dialyzer_plt locate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory djc@miles rebar $ ...
4
votes
1answer
154 views

Unable to login in fedora 16

I am new in Linux environment. I install the fedora 16 but I skipped to create at least one user account during installation. Now I am unable to log in to the Fedora graphical environment. How can I ...
8
votes
2answers
6k views

Does bc support hex calculations?

I'm trying to do a hex calculation directly with bc, I already specified the scale. echo 'scale=16;c06b1000-c06a5e78' | bc But I still get a zero. What could be wrong?
5
votes
2answers
1k views

How to put the specific files from a directory in an array in bash?

Suppose I have a directory under which there are 3 files named: file1.txt,file2.txt and file3.txt. Now how can I fill an array with those file names(I just know that all the files have certain ...
1
vote
1answer
685 views

Reducing ubuntu boot time using dmesg

The boot time is 141 seconds. Here's the most interesting parts of dmesg command: [ 2.870498] usb 1-1.2: new high-speed USB device number 5 using ehci_hcd [ 80.669210] ADDRCONF(NETDEV_UP): eth0: ...
2
votes
0answers
215 views

How does one include the session-name in status bar for byobu-tmux?

I'd like to include the session name of my current tmux session in the status bar. There's nothing in ~/.byobu/status that allows me to do this and including the tmux configuration directive #S in the ...
1
vote
0answers
413 views

Reverse tunnelling with “stunnel” in linux

Scenario: Central Log-Server(logserv)- only private IP interfaces Multiple client servers (logclient)- has public IPs. Requirement: Need to tcp logs of syslog application from various logclients ...
3
votes
0answers
409 views

Use Emulated Scrollwheel Instead of Real One X11

So I've got this Kensington trackball that ships with a pretty horrible scrollwheel/touchring doohicky, and only two physical buttons. I'd like to disable the touchscroll entirely, enable 3 button ...
5
votes
1answer
347 views

Has anyone actually tested laptop battery life under different CPU governors?

In theory, switching from the ondemand governor to conservative should save battery life on laptops. However, I don't think I've ever seen any tests done to verify this or show how significant a ...
2
votes
1answer
1k views

How can I get GRUB to configure my screen properly?

My screen says that it can't display the stream, and to use 1680x1050@60Hz as soon as grub would be loaded. I was told by #hardware on irc.freenode.net that this was due to grub missconfiguring the ...
5
votes
1answer
139 views

In Emacs, how do I inspect what has been modified in a buffer (before saving and overwriting the file)?

In Emacs, how do I inspect what has been modified in a buffer (before saving and overwriting the file)? (In a sense, the requested action is an analog of git status and git add -i showing what has ...
1
vote
0answers
1k views

“Wrong version of libnet” when configuring nemesis

Whenever I try to configure Nemesis it stops at "checking libnet version....no" and claims I have the wrong version. I have checked my libnet folder to make sure, and I do have the right version. ...
1
vote
2answers
154 views

Encrypt IP payload + URL

I need to encrypt IP payload + request URL so that my ISP can't understand my requests. Do you know any project such as zebedee except VPNs? Tor doesn't work with my ISP, because SSL was banned, so ...
2
votes
1answer
1k views

X server problem on slackware 14 and poulsbo module (gma500)

I have installed slackware 14 on my acer aspire one za3. I cannot start the X server. Here the output of command startx xauth: file /home/emanuele/.serverauth.1984 does not exist X.Org X Server ...
13
votes
10answers
5k views

Console Text Editor with Windows-like keyboard shortcuts (ctrl-z, x, c, v)

Ok, I realise that I risk a religious war asking a question about text editors, but here goes. Requirements Mostly used for config file edits Text based not GUI Available for Raspian flavour of ...
1
vote
1answer
189 views

Can we use history file for auditing purpose

We have a common testing environment on AIX for all 15-20 persons. There might be chances that somebody deleted the files mistakenly. In such scenarios, it is very difficult to know who deleted files ...
2
votes
1answer
4k views

Extracting the contents of a zip file with overwrite all mode in centos 5

How can I Unzip a Zip file which contains different directories and sub directories with the overwrite mode ? I mean i want the zipped contents to overwrites any existing files (be it old be it new). ...
4
votes
4answers
296 views

Follow a moved file to its destination directory

Is there a way to move a file from a directory to another and then cd into the latter in one command? Something like mv /a/file /another/dir && cd _ but without typing second time the ...
2
votes
3answers
3k views

read only access to all files in a specific sub-folder

I have got a specific folder located in "/home/.../reboot/". I have a series of users that require read-only access to the ever changing files within. My problem is that the same users are not ...
2
votes
1answer
1k views

Apt-get refuses to stop trying to install Acroreader

I'm using Mint 13 if that matters. And I'm new. Anyway, I tried installing Adobe Reader 9 using their installer from: http://www.adobe.com/support/downloads/product.jsp?product=10&platform=Unix ...
1
vote
2answers
4k views

X11: Client not authorized when calling with sudo [duplicate]

Possible Duplicate: Can I launch a graphical program on another user's desktop as root? I'm trying to do the equivalent of: $ sudo -u myuser DISPLAY=:1 xterm However, it give me the ...
0
votes
3answers
3k views

How to setup wine for networking in linux

How to setup wine for networking? Unless i have linux access to my windows network, i can't do wine discover the windows network. How to do it?, also wine hasnt cmd line utility so i can't use ...
6
votes
1answer
179 views

Is there a command like head but for line truncation?

Linux's head selects a number of lines from the top of a file. Is there a command that selects a number of characters from the front of a line? The use case behind the question is this: I want to ...
4
votes
2answers
659 views

How to rsync a chroot without breaking symlinks?

I'd like to rsync (backup) a chroot environment from outside the chroot. For that I first make a lvm snapshot of the chroot volume and then run rsync on that. The only problem with this approach: ...
6
votes
7answers
35k views

Finding all storage devices attached to a Linux machine

I have a need to find all of the writable storage devices attached to a given machine, whether or not they are mounted. The dopey way to do this would be to try every entry in /dev that corresponds ...
2
votes
0answers
32 views

Distribution for eldery people [duplicate]

Possible Duplicate: What linux is best suited for people new to computers? My grandparents would like to use a computer. They have already used a Windows Vista machine but so little and ...
2
votes
4answers
4k views

I uninstalled vsftpd, but I can still connect with sftp

I installed vsftpd and was in the process of configuring it. When I sent the vsftpd server stop command: sudo service vsftpd stop I received: stop: Unknown instance So I went ahead and ...
0
votes
1answer
68 views

/ permissions on a linux filesystem

Does the / have permissions attached to it? If so what are they and what command do you run to find out? The reason why I ask this is to know weather a NFS mount reflect this if your export is set to ...
2
votes
1answer
834 views

How to check if apt proxy configuration is correct?

I have to use a proxy server which requires authentication. So, I need to update the apt.conf file to include my proxy settings. All fine. What I need is to check that the configuration is correct so ...
7
votes
2answers
31k views

Can I change the font of terminal?

I have a Un*x OS installed without desktop, I wonder if it is possible to change the font of terminal.
4
votes
2answers
861 views

Piped input to nano

Why does ls | nano - open the editor in Ubuntu but close the editor and save a file to -.save in CentOS? How can I get nano in CentOS to remain open when reading stdin?
2
votes
1answer
675 views

Move / to a new partition

I have Windows 7 and Debian dual-booted on my laptop. I'm getting cramped for space on the Debian side, so I want to remove the Windows partition and use the whole computer for Debian. I'm currently ...
1
vote
1answer
1k views

Where to locate “sockets”

I am new to this, so sorry if its obvious. I am running a Debian server and installing the likes of UWSGI, NGinx etc on there. The configurations keep talking about pointing to "sockets". In the ...
1
vote
1answer
257 views

How to read the temperature of Tesla M2050?

NVML(nvidia-smi) does not support the temperature for this videocard nvidia-settings does not work, because it is a cluster node(with 3 gpus) and there is no X lm-sensors does not show gpus ...
1
vote
0answers
196 views

Multi-Distro boot DVD with SystemRescueCD 2.8.0 fails to boot the SRCD portion

I'm trying to create a multi-distro mutli-boot dvd image containing (amongst others) the SystemRescueCD iso. I'm using GRUB as the boot loader and I've managed to get most of the other ISOs booting ...
3
votes
3answers
179 views

How can I identify the variant of Unix/Linux from a shell? [duplicate]

Possible Duplicate: How can I get distribution name and version number in a simple shell script? Given a shell, how can I identify the variant of Unix/Linux that is running on a remote ...
2
votes
3answers
338 views

Why does a graphical install show my boot option, but a textual install not?

I have a system to install SLES 11 on, via a serial console. As this procedure is likely to be executed across multiple systems, I want to automate the whole process. As such, I first did a manual ...
2
votes
2answers
355 views

ssh-add on an intermediate ssh hop node

I am on machine A, hopping onto machine B to finally reach machine C. A --ssh--> B --ssh--> C When I ssh-add my private key on A, all works fine and I can hop onto B as many times as I want ...
1
vote
1answer
254 views

Unable to connect to serial device; no /dev/ttySx

I wrote a Java application that connects to the serial port of the GSM modem. On Windows the serial ports have names like COM3, but in Linux Redhat 6.0 I had to switch to something like ttySx (X is ...
7
votes
1answer
1k views

CLFS: Building GCC cross compiler

Currently I try to build a embedded Linux from scratch with the instructions from Cross Linux from Scratch. Everything worked fine until I tried to compile the GCC Cross-Compiler. I want to build the ...
2
votes
3answers
11k views

yum does not work on RHEL 6.3

I have installed RHEL 6.3: Linux RHEL6.3-64-BuildMac 2.6.32-279.el6.x86_64 #1 SMP Wed Jun 13 18:24:36 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux My /etc/yum.conf looks as follows: [main] ...
0
votes
1answer
5k views

Full access by group user of /var/www/html [duplicate]

Possible Duplicate: How to add write permissions for a group? On Centos 6 I'm trying to give full access to make and delete by the user mitch for /var/www/http. I did addgroup www and then ...
2
votes
1answer
3k views

How to Connect to Wireless Automatically? (Non-graphical)

I'm trying to set up my Arch Linux so that, through non-graphical means, I can connect to a wireless network through profiles on my system. I have tried net-auto-wireless, and it does everything I ...

15 30 50 per page