4
votes
2answers
175 views

mutt: trash macro

In my previous question I have learned how to implement trash functionality in mutt. unset confirmappend folder-hook . set trash="=trash" folder-hook trash$ unset trash That works well, except ...
1
vote
3answers
857 views

Checkout a file from svn and append its timestamp to its name

Suppose I have a file in SVN at http://example.com/file.txt I want to check it out to file-20131218-2000.txt where December 18, 2013 at 8pm is when the most recent commit to that file happened ...
19
votes
9answers
5k views

Grep lines but let the first line through [duplicate]

Consider the following output from df. Filesystem Size Used Avail Use% Mounted on /dev/sda1 23G 6.1G 16G 29% / udev 10M 0 10M 0% /dev tmpfs 397M 420K ...
-2
votes
1answer
106 views

how do I make a $VAR empty so it don't effect the command line argument and still be within that argument?

This is the basic setting for hsetroot for it to work: hsetroot -center /path/to/image/ - setting the wallpaper with just that the picture. To use these options, just one has to be place within the ...
1
vote
1answer
252 views

First line of awk output isn't what I expect

I am trying to figure out why a part of a file name disappears. In my case, I have created three files $ ls some-part-of-file.1 some-part-of-file.2 some-part-of-file.3 and when I use awk with FS ...
2
votes
2answers
2k views

Errors after creating partitions during Fedora 20 installation

I made drives like this : / 10GB /home 37GB swap 8GB but there is an error : you have not created a bootloader stage1 target device. you have not created a bootable ...
1
vote
0answers
201 views

Scanner works in laptop, not in desktop

I have an Epson Perfection 660 flatbed scanner that works on my laptop. This is what appears in /var/log/syslog when I plug it in: Dec 18 15:43:57 lap kernel: [   31.868278] usb 6-2: new full-speed ...
5
votes
1answer
761 views

mutt: macro for saving messages to a folder

This is an expansion on my previous question. I have following macro, which will save tagged messages to my archive folder. macro index S ":set confirmappend=no ...
1
vote
3answers
906 views

postfix: different file name format for Maildir messages

I am using postfix with maildir format. The filenames of messages stored in maildir look something like this: 1386021659.27745_1.alpha:2,S I understand the first part is epoch time, not sure about ...
1
vote
1answer
166 views

Is it possible to do Android development on a MIPS computer?

On a computer with a MIPS architecture (e.g. a Lemotoe Yeeloong), running GNU/Linux, is it possible to install and run the necessary tools for developing Android apps for deployment on smartphones?
7
votes
2answers
10k views

How to lock my session in Xfce?

I am looking a simple way to lock my session in Xfce (Debian Unstable). I don't want to have to write my password at every wake-up but I want to be able to press to a shortcut (which launches a ...
0
votes
1answer
43 views

upgrading an O.S. affects which file systems? [duplicate]

I will be upgrading my O.S. from Ubuntu 13.04 to Ubuntu 13.10. As its recommended to take back-up before doing that, I'm interested to know which file systems are affected by upgrading so that I need ...
2
votes
1answer
82 views

How does zoneinfo get updated if at all?

I have been installing several systems lately have noticed a difference of opinion on how to set time-zones. Arch Linux Beginners' Guide says to use a symlink and the Gentoo HOW TO Guide says to copy ...
0
votes
0answers
68 views

Symbol on the border of pages when printing

I am using Debian (unstable) and I try to use a hp printer (hp Color Laserjet CP3525dn). I installed the last version of hplip. I have a problem when I try to print a US layout document in A4 paper. ...
1
vote
2answers
120 views

modify user-defined System Variables(that is a number) of remote Server machine using ssh?

I want to modify the value of a System Variable of a remote server . The IP of server is 172.16.22.53. The server runs Windows OS,and Cygwin instlled in it.In ...
3
votes
2answers
3k views

Incremental backup of postgresql database

We run a database server running PostgreSQL with database size of around 130GB growing at a rate of 500MB per day. We use HP Data Protector software to take backups of the database. The issue here is ...
3
votes
1answer
2k views

How to disable a usb sound device with udev

How can I disable USB device by Vendor ID? So I have: [root@piotr ~]# lsusb Bus 001 Device 002: ID 058f:9254 Alcor Micro Corp. Hub Bus 001 Device 003: ID 0d8c:000c C-Media Electronics, Inc. Audio ...
5
votes
2answers
352 views

What would I get when sudo a kernel-destructive program?

It suddenly comes to me how easy it will be for a sudoer to crash the kernel, so I tried something like this: #include<stdio.h> int main(){ printf("hello world"); int a; ...
1
vote
1answer
955 views

Install libxcb from source

I try to install libxcb from source, but I have an error, I do not understand why, this the error: configure: error: Package requirements (pthread-stubs xau >= 0.99.2) were not met: No package ...
3
votes
2answers
185 views

Is there a uniform way to discover information about devices?

UPD: Changed question title from manage devices to discover information about devices One of the frequent thing I do is look up info about devices on my systems. And I am constantly find myself ...
2
votes
2answers
416 views

Understanding -regex with GNU find

Background I have what I think should be a simple case. I want to find all files with "cisco" in the name and do something with those files (via xargs). Finding files with ls Before I use xargs, ...
0
votes
2answers
16k views

How to create a volume group, logical volume and a file system on AIX?

I'm getting some difficulties to create a file system on an AIX server. In Linux the task is easy and takes four commands, but I cannot figure out how to do it in AIX. On Linux I'd do the following: ...
0
votes
4answers
1k views

noexec on /tmp and /var/tmp directory

Our client servers are running old version of jboss (Jboss 4.0) which has lots of known vulnerabilities. Result is that the server is hacked and we are seeing some unknown executables running from ...
3
votes
1answer
647 views

What is the maximum allowed number of TTY, is it defined anywhere in kernel headers?

What's the maximum allowed number of TTYs? I found pty.max, but is there anything similar for TTYs? Or is it defined as a fixed value in kernel headers, I couldn't find that
1
vote
7answers
60k views

Upload file to ftp server using commands in shell script? [closed]

I want to upload a file from my Linux server to some FTP server. I know we use put and get commands to upload and download files and the sftp command to connect to the FTP server. But I wanted to do ...
0
votes
3answers
1k views

Can you run a linux system properly without internet connection?

I am have come across my old computer in my attic. It is a very old windows 98 HP computer. I can give more specs if needed. I was wondering if I could install Damn Small Linux on a flash drive and ...
2
votes
1answer
1k views

Error: permission denied on key 'fs.file-nr'

# sysctl -w fs.file-nr=131072 error: permission denied on key 'fs.file-nr' Same issue when I edit /etc/sysctl.conf and try sysctl -p. Any reason why I cannot edit this value? I am on CentOS 6.5
0
votes
0answers
1k views

Can't install GRUB. Dual Booting Kali Linux with Windows 7. Two different HDDs

I'm having trouble installing Kali on a MSI GE70 2OE with a SSD HD and a standard SATA HD. I've installed W7 on the SSD, and then partitioned my SATA in two parts: One 800Gb for W7 and another 200Gb ...
2
votes
1answer
79 views

bombono dvd renders menus indefinitely

I'm trying to use bombono dvd authoring tool to create some DVDs. Unfortunately when I try to generate an image bombono gets to a point where it says 'rendering menu #3' and hangs there indefinitely. ...
6
votes
1answer
594 views

What is a good way to get inverted colors for most text-display purposes?

My monitor is not the best in the world and I find reading black on white unpleasant. Where I could (gedit, terminal) I changed the colour to something more relaxing for me - like the Kobalt scheme in ...
2
votes
2answers
1k views

Suddenly lost all cronjobs

All of a sudden my cron jobs don't work any more. When I type crontab -e I am presented an empty file in the editor /tmp/crontab.3fMYGi/crontab And by empty I mean that not even this standard ...
5
votes
1answer
1k views

rc.local with read will not echo key strokes

I'm using CentOS 6.4 and have a small problem with using read in /etc/rc.local file. It will allow keyboard entry but does not echo any of the key strokes during input. This is something that worked ...
1
vote
3answers
2k views

Installing PostgreSQL 9.0 on RHEL 6.4 (How to get Yum to Include a version of OpenSSL I built from source)

I receive the following errors from yum install postgresql90-server: Error: Package: postgresql90-9.0.15-1PGDG.rhel6.x86_64 (pgdg90) Requires: libssl.so.10(libssl.so.10)(64bit) Error: Package: ...
6
votes
2answers
3k views

Is symlink's target relative to the destination's parent directory and if so, why?

I've got the following file structure: build/ client/ –> index.js And when I try to create a symbolic link named "client" inside the build directory that refers to the client directory in the ...
7
votes
1answer
254 views

List of error messages available for a command in Unix

Is it possible to find out what error messages a command includes? For example I want to see the list of error messages that mkfs.ext3 command will print in different error situations. Shall I look ...
1
vote
1answer
221 views

How to give permissions to other user after logging as root in Linux?

I am a Linux newbie and I have a very basic question. I have one machine which is machineA and I have a root access to that machine. Now I need to create these below two directories and give ...
6
votes
4answers
3k views

Is setting a higher nice level for a process an effective way to reduce its impact on system load/CPU time?

I have an rsync cron job which is pushing the server load and triggering monitor alerts. If I set the job to be run with a high nice level, would that effectively reduce the impact it has on system ...
2
votes
2answers
603 views

Directory structure for mounted disks in network storage

I have recently built a small homeserver, that I want to use as a NAS besides other applications like hosting VMs etc. The disk space should be accessible via NFS, SAMBA (and SSHFS), but that's not ...
1
vote
0answers
437 views

Keyboard mapping VNC

I recently installed realvnc server on my pc running windows 7, however when connecting from my macbook using the "screen sharing.app" a number of keys are unavailable. For example I need to use the ...
4
votes
2answers
584 views

why does blktrace only write blocks of 8?

I want to understand the I/O pattern a database is writing to disk to decide how many disks to use for best performance. To analyse the I/O pattern I want to use blktrace and I have to grok it first. ...
1
vote
2answers
510 views

how does blktrace work?

I am trying to understand the Linux block layer so I am writing a blog about it: http://www.linuxintro.org/wiki/blktrAce. When calling blktrace like this: blktrace -d /dev/sdg -o - | blkparse -i - ...
5
votes
2answers
3k views

Mouse cursor disappearing after running gnome-settings-daemon in OpenBox

I'm running Openbox 3.5.2 on Fedora 20. For extra comfort (font rendering, tap-to-click, ...), I used to let gnome-settings-daemon run in the background. Now since upgrading to the F20 beta, my mouse ...
2
votes
1answer
680 views

Send email from external email id such as Gmail, Outlook to Unix user account

I am trying to see if there is any way I can send email from external email address to Unix user account. I don't know if this at all possible or not. For example, if my external email address is ...
5
votes
2answers
3k views

Setting ulimit correctly for PHP on Linux

I have /etc/security/limits.conf set to the following: nobody soft nofile 409600 nobody hard nofile 1024000 phpuser soft nofile 409600 phpuser hard nofile 1024000 httpd soft nofile 409600 httpd hard ...
0
votes
1answer
2k views

Copy file while replacing text in it

I'm writing a script to publish a webapp. While copying files, I must replace a placeholder current_date in a file with the current date. I would start with something like this to define the date ...
9
votes
1answer
8k views

The meaning of output of pmap

I wrote main.c in Linux: int main() { while (1){} } When I compile and start it, I can pmap it: # pmap 28578 28578: ./a.out 0000000000400000 4K r-x-- /root/a.out 0000000000600000 4K ...
7
votes
2answers
338 views

How can other processes affect measurements made with `time`?

If I time a process using the time command, I get output for 'real', 'user', and 'sys'. My understanding from this discussion is that 'real' is wall time, whereas 'user' and 'sys' are process time. ...
2
votes
3answers
1k views

How to have console messages in English?

I am French and use my Debian system in French. However, I would like to have error messages in terminal in English. It allows me to post them on English speaking websites. How can I change my ...
2
votes
1answer
521 views

udev rule for bluetooth device(logitec)

I want to write udev rule for a Logitec Bluetooth. My keyboard and mouse connect to PC as one Bluetooth device. When I monitor udev, I see there are separate events for keyboard and mouse. I want to ...
11
votes
2answers
7k views

Convert a .docx to a .pdf with pandoc

I am trying to convert a .docx received by mail to a correct pdf by using pandoc (I am using GNU/Linux). I have an error concerning characters encoding : $ pandoc file.docx -o file.pdf pandoc: ...

15 30 50 per page