title: What applets are loaded in the gnome-panel?

text: **How can I list which applets are loaded on my gnome-panel?** What gnome-panel do I have? I use the Ubuntu “gnome-panel” package and I’m not entirely sure what that means (version 3.4.1; `ldd` shows it depends on gtk3). So far I’ve found that `gconf-editor` shows me some entries under `/apps/panel3-applets` E.g. `object_0_3`. It seems that those have something to do with the applets running and their configuration, but a) I have only five entries there (not enough) and b) they don’t reveal which files/packages those entries originate from. With `gsettings list-recursively` I found an interesting entry:               org.gnome.gnome-panel.layout object-id-list ['menu-bar', 'clock', 'notification-area', 'user-menu', 'object-0-0', 'object-0-1', 'object-0-2', 'object-0-3', 'object-0-4', 'object-0-5']      It lists the objects I found in `gconf-editor` and some more. But here I don’t even see configuration entries or anything better. From an applet I added myself I can say that the applet-chooser seems to be based on files found in `/usr/share/gnome-panel/4.0/applets/`, which contain a line telling the shared library to load by the panel (I guess). – **But after adding, where does the`gnome-panel` store which applets to load the next time??**


title: Thunderbird: hide tag notification in the message header

text: When message is tagged in Thunderbird, not only has it different color, but the tag also appears in the message header. ![enter image description here](http://i.stack.imgur.com/6QFK5.png) I find this completely useless. I can already see that the message is tagged, I don't need to be reminded twice. The message header is already to big, and now yet another line is wasted. Is it possible to remove the tag notification from the message header? I am looking for a solution that does not require to install some obscure addon. An ideall solution would be for example editing `about:config` or `userContent.css/userChrome.css` I am using Thunderbird (Icedove) 24.6.0 on Debian Wheezy


title: Shell : Сopy one directory to multiple directories

text: There is a directory `YYY` and a structure on the site:               site1.ru/wp-content/plugins/     site2.ru/wp-content/plugins/     ...     site10.ru/wp-content/plugins/      Task: `YYY` directory to copy all directories `plugins` which are available on the server.


title: /etc/init.d/nis missing on Ubuntu

text: I'm trying to setup NIS on a machine. All instructions always expect /etc/init/nis to exist as at the end of configuration one is expected to restart the service using that. For me it doesn't exist. I did try an `apt remove nis; apt install nis`, it made no difference.               root@vplab030:/var/log# lsb_release -a     No LSB modules are available.     Distributor ID: Ubuntu     Description:    Ubuntu 14.04.1 LTS     Release:    14.04     Codename:   trusty     root@vplab030:/var/log#                root@vplab030:/var/log# apt show nis     Package: nis     Priority: extra     Section: universe/net     Installed-Size: 638 kB     Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>     Original-Maintainer: Mark Brown <broonie@debian.org>     Version: 3.17-32ubuntu6     Depends: libc6 (>= 2.15), libdbus-1-3 (>= 1.0.2), libdbus-glib-1-2 (>= 0.78), libgdbm3 (>= 1.8.3), libglib2.0-0 (>= 2.12.0), libslp1, netbase, make, rpcbind (>= 0.2.0-6ubuntu1), lsb-base (>= 3.0-6), hostname (>= 2.98), upstart (>= 0.9.7-2)     Pre-Depends: debconf (>= 0.5.00) | debconf-2.0     Suggests: nscd     Conflicts: netstd (<= 1.26)     Download-Size: 152 kB     Bugs: https://bugs.launchpad.net/ubuntu/+filebug     Origin: Ubuntu     APT-Manual-Installed: yes     APT-Sources: http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages     Description: clients and daemons for the Network Information Service (NIS)      This package provides tools for setting up and maintaining a NIS domain.      NIS, originally known as Yellow Pages (YP), is mostly used to let      several machines in a network share the same account information, such      as the password file.          root@vplab030:/var/log# ls -l /etc/init.d/ypbind /etc/init.d/nis     ls: cannot access /etc/init.d/ypbind: No such file or directory     ls: cannot access /etc/init.d/nis: No such file or directory     root@vplab030:/var/log#      if it helps:               root@vplab030:/var/log# cat /etc/yp.conf      #     # yp.conf   Configuration file for the ypbind process. You can define     #       NIS servers manually here if they can't be found by     #       broadcasting on the local net (which is the default).     #     #       See the manual page of ypbind for the syntax of this file.     #     # IMPORTANT:    For the "ypserver", use IP addresses, or make sure that     #       the host is in /etc/hosts. This file is only interpreted     #       once, and if DNS isn't reachable yet the ypserver cannot     #       be resolved and ypbind won't ever bind to the server.          # ypserver ypserver.network.com          domain dev.domname.com server ds4     domain dev.domname.com server ds2          root@vplab030:/var/log#           root@vplab030:/var/log# grep ypbind /var/log/syslog     Sep  9 12:49:30 vplab030 ypbind: Host name lookup failure     Sep  9 12:49:30 vplab030 kernel: [    5.630218] init: ypbind main process (830) terminated with status 1     Sep  9 12:49:30 vplab030 kernel: [    5.630240] init: ypbind main process ended, respawning     Sep  9 12:49:35 vplab030 kernel: [   10.700047] init: wait-for-state (autofsypbind) main process (1126) killed by TERM signal     Sep  9 12:49:35 vplab030 kernel: [   10.700660] init: wait-for-state (lightdmypbind) main process (1134) killed by TERM signal     root@vplab030:/var/log# date     Tue Sep  9 13:59:11 CDT 2014     root@vplab030:/var/log#           root@vplab030:/var/log# service --status-all      [ + ]  acpid      [ - ]  anacron      [ + ]  apparmor      [ ? ]  apport      [ + ]  autofs      [ + ]  avahi-daemon      [ + ]  bluetooth      [ - ]  brltty      [ ? ]  console-setup      [ + ]  cron      [ + ]  cups      [ + ]  cups-browsed      [ - ]  dbus      [ ? ]  dns-clean      [ + ]  friendly-recovery      [ - ]  grub-common      [ ? ]  irqbalance      [ + ]  kerneloops      [ ? ]  killprocs      [ ? ]  kmod      [ ? ]  lightdm      [ ? ]  networking      [ ? ]  nxserver      [ ? ]  ondemand      [ ? ]  pppd-dns      [ - ]  procps      [ - ]  pulseaudio      [ ? ]  rc.local      [ + ]  resolvconf      [ + ]  rpcbind      [ - ]  rsync      [ + ]  rsyslog      [ + ]  saned      [ ? ]  sendsigs      [ ? ]  speech-dispatcher      [ - ]  ssh      [ - ]  sudo      [ + ]  udev      [ ? ]  umountfs      [ ? ]  umountnfs.sh      [ ? ]  umountroot      [ - ]  unattended-upgrades      [ - ]  urandom      [ - ]  x11-common     root@vplab030:


title: "sudo service vsftpd" returns "Unknown job: vsftpd"

text: I installed vsftpd on ubuntu 14.04 and when I want to stop or restart vsftpd service this message showed and nothing happened in service status!               root@ali-lap:/home/ali# service vsftpd restart     stop: Unknown job: vsftpd     start: Unknown job: vsftpd      I purged vsftpd and reinstall that again according to this post and nothing changed. Install and delete log:               root@ali-lap:/home/ali# apt-get purge --remove vsftpd      Reading package lists... Done     Building dependency tree            Reading state information... Done     The following packages will be REMOVED:       vsftpd*     0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.     After this operation, 370 kB disk space will be freed.     Do you want to continue? [Y/n]      (Reading database ... 216263 files and directories currently installed.)     Removing vsftpd (3.0.2-1ubuntu2) ...     initctl: Unknown job: vsftpd     Purging configuration files for vsftpd (3.0.2-1ubuntu2) ...     Processing triggers for ureadahead (0.100.0-16) ...     Processing triggers for man-db (2.6.6-1) ...     root@ali-lap:/home/ali# ls -lpa /etc/vsftpd     vsftpd/           vsftpd.conf.orig       root@ali-lap:/home/ali# ls -lpa /etc/vsftpd.conf     ls: cannot access /etc/vsftpd.conf: No such file or directory     root@ali-lap:/home/ali# apt-get install vsftpd      Reading package lists... Done     Building dependency tree            Reading state information... Done     The following NEW packages will be installed:       vsftpd     0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.     Need to get 0 B/112 kB of archives.     After this operation, 370 kB of additional disk space will be used.     Preconfiguring packages ...     Selecting previously unselected package vsftpd.     (Reading database ... 216210 files and directories currently installed.)     Preparing to unpack .../vsftpd_3.0.2-1ubuntu2_amd64.deb ...     Unpacking vsftpd (3.0.2-1ubuntu2) ...     Processing triggers for man-db (2.6.6-1) ...     Processing triggers for ureadahead (0.100.0-16) ...     Setting up vsftpd (3.0.2-1ubuntu2) ...     initctl: Unknown job: vsftpd     Processing triggers for ureadahead (0.100.0-16) ...     root@ali-lap:/home/ali# ls -lpa /etc/vsftpd.conf     -rw-r--r-- 1 root root 5654 مه    16  2013 /etc/vsftpd.conf      vsftpd version:               root@ali-lap:/home/ali# apt-cache policy vsftpd      vsftpd:       Installed: 3.0.2-1ubuntu2       Candidate: 3.0.2-1ubuntu2       Version table:      *** 3.0.2-1ubuntu2 0             500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages      Any ideas?


title: rsync vs mtime and ctime

text: I've been using `rsync` for Android to backup my phone to a remote NTFS filesystem on a Linux system for a while. Recently, the HDD containing the NTFS filesystem has started to fail (or throw "I/O Errors") so I took the opportunity to copy all the files onto a new HDD and new NTFS filesystem. In this instance I used the "FastCopy v2.11" tool for Windows. My problem is that when I do an rsync "dry run" I can see that it wants to recopy files which already exist on the remote rsync folder. For example, when I run with "-iv" I get this kind of output: Which, as I understand it means that rsync wants to copy this file to the remote rsync because of a timestamp difference. The strange thing is that if I use "Astro" for Android to look at the local file properties, I can see that the file's size, modified time, and MD5 checksum are exactly the same as that of the remote file (using `ls -l` to check the modified time). Given that I recently copied the remote rsync files from an old NTFS filesystem, the remote file's ctime is different (using `ls -lc`). Does `rsync` look at the remote ctime, and if so is there any way I can use `rsync`, or `ntfs-3g` to get around this problem?


title: Find number of fans in a laptop

text: My laptop is always hot and CPU temp is about 80°C. I guess one of laptop fans is corrupted and another one spins in high RPM, because I hear the sound of fan speed which it is most of time is high. How can I find number of fans in my laptop (VAIO F13 HFX, Core i7) and each fan's speed? I am on fedora 18 , but i had same problem in ubuntu 12.10 and 12.04


title: Trying to improve a sync to a shared drive

text: Easy question right? Just bare with me here.. I usually use Git to work with files on my local machine. I like this method because I can later check the files out on the shared drive for other non-git users to use. It is great because I can delete files (clean up) in my local directory and that cleans up remotely. I can leave all the extra files in the remote directory alone. This behaviour is why I do not simply `rsync`... The only issue I'm having is in dealing with open files. Git stops the `pull` or `reset` when I encounter I locked file I need to change. Is this really a show-stopper? I may need to get a files out very quick and find it counter- productive to hunt down an unrelated open file blocking the process. Can you help improve this process? BTW: It is good enough to only update a file if the timestamp has changed. But I only want to update files that changed so that the incremental backups are not adversely effected. Apparently this is uncommon so I'm not promoting it. The benefits are good for me though. This gives me fast local access to local files independent of network failure and basically seamless publishing to the backup drive. I just need to check-in often and push to make sure changes are backed up. It plays nice with other non-git files and users on the shared drive. Rsync falls short only because of the 'clean-up.' I can't `--delete` clean up without removing other users files. It may sound minor to clean up manually, but it is really a deal killer as clean up is error prone and requires testing.


title: How to mount mdf image, iso9660 doens't work for it?

text: I have few `.mdf` images, that can be mounted with `Alcohol 120%`, but on Linux, is that possible? I've tried things similar to `mount -o loop -t iso9660 XX.mdf /mnt/iso`, but that doesn't work here, I got `ISOFS: Unable to identify CD-ROM format`.


title: LVM + LUKS + SSD + Gentoo -- making it all work together

text: I'm finding a lot of conflicting information out there, and as of yet haven't found anyone trying to pull together all of the components that I'm trying to do, so I'm hoping someone who understands SSD, encrypted LVMs and so on can stop by and help out. Basically, my system is a laptop with:   * /dev/sda: 32 GB SSD   * /dev/sdb: 256 GB SSD   * /dev/sdc: 1000 GB HD Generally my Linux installs consist of three partitions:   * ~50 mb /boot   * large /home   * ~30 gb "everything else" So effectively I'd like   * `/dev/sda1 -> /boot`   * `/dev/sda2 -> /`   * `/dev/sdb1 -> /home`   * `/dev/sdc1 -> /swap`   * `/dev/sdc2 -> /mnt/storage` The catch is I'd like to encrypt all of this (except for `/boot` and `/mnt/storage` which can stay unencrypted). I've read that when encrypting SSDs there can be issues with things like TRIM, and that ideally I'd want to use EXT4 with some particular options set, and that I must be very careful with partition alignment, and some just claim that encrypted LVMs really don't play well with SSDs and I should just use EncFS or eCryptfs (although people seem unclear and/or polarized on whether these should be used to encrypt "mount-at-boot" partitions like / and /home). Is there any canonical information on this?


title: make networkmanager not prompt for password after failed connection?

text: While it's only an intermittent annoyance, occasionally I'm on a flaky wifi network, and each time networkmanager reconnects, it asks for the wifi password. This wouldn't be a huge issue, but the password is not pre-filled- in, so I have to go lookup up the password elsewhere, then enter it. If I hit cancel, it won't try to reconnect, and if I just hit "ok", then it will store the blank password over what it already has! Is there any way to mark a connection as "I'm sure this is the right password!" so it will just try again (perhaps with exponential backoff) if the connection fails? Thanks!!


title: How to allow Page Up in GNU Screen?

text: I use Vim to edit text files on Linux. Commonly I connect to remote Linux machines using PuTTY from Windows. I use GNU Screen commonly as well. When using Vim inside Screen I am unable to use the `Page Up` key because Screen interprets it as a command to start copy mode. I would like to use `Page Up` for its regular up-paging functionality. How can I configure Screen to do this?


title: Using archlinux on vmware error 8000

text: I have been playing around with Linux a bit and I wanted to try using Arch Linux so I downlaoded the `.iso` and I set up vmware player saying that it was another Linux 2.6x kernel. As soon as I launched it, I got this error `EDD: Error 8000 reading sector 269058` does anyone know what is wrong and how I can fix this?   **My System Info:**   * OS:Windows 7 Home Premium<   * Processor: Intel(R) Core(TM) i5-2410m CPU @ 2.30GHz 2.30 GHz   * System Type: 64-bit Operating System   * Virtualization: Enabled _Feel free to ask anymore info if it helps_


title: If I dd a CDROM, then I always get the exact copy of the CDROM?

text: If I:               dd if=/dev/cdrom of=cdrom.iso      then I will always get the _exact_ same, bit-by-bitly same image that is the same as the original CDROM? Or are there any methods that prevents copying all the bits from the CDROM? Asking for archiving old games on old CDROMS


title: NFS to clients with different uid:s than on the server, where the client uid:s shall not show up in the server

text: I have a problem with a embedded Linux device that is mounting its root filesystem over NFS. But for different reason the embedded device is a single user device running as root (and later it will not even have a network connection). On the pc I would like that my normal user own all the files, so I can modify them with out being root (or using sudo) all the time. But right now as soon as the client create a new file on the nfs mount the user id is set to root and I get a problem on the server. So my question is if there is a flag I can set in the /etc/export solves this problem? So that when the client creates a file, the uid on the server is not root but that of the user (maybe 500 or 1000). This is my current /etc/export on the server               /opt/eldk/armVFP  *(rw,sync,no_root_squash)


title: facing issue while installing oracle Database 11g on rhel5 And SOA

text: While installing required rpms for both SOA and Oracle the below rpms are conflicting with each other glibc-devel-2.5-49.x86_64.rpm and glibc- devel-2.5-24.i386.rpm How can I fix it? one package gets installed successfully if I remove the other and vice-verse.


title: How to determine if file is just a permutation of another one?

text: Consider for example a source code file, where the functions are drastically shuffled around. Is there is a command to check if the reordering of lines is the only change? (that means no lines are added, removed or changed)


title: Display boot splash on ramdisk only system

text: I'm working on a kiosk system with the root file system loaded into RAM. One of the requirements is that the boot process output should be completely hidden from the user. I've already managed to set up the system to display a black screen during boot and just the login prompt for a short time when rebooting. Unfortunately this is not enough. The ideal solution would be some animated splash screen during boot and reboot/halt i.e. the system boots and the user sees an animation until the graphical system (nodm) is up and the same animation is shown when the graphical system is stopped and the machine is shutting down. The best solution for this seems to be Plymouth which does exactly what i need. But since my root file system resides in the initrd i do not see any way to include Plymouth in this initrd. I've found some clues about using two initrd images: http://blog.fpmurphy.com/2009/09/project-plymouth.html but was not able to achieve a booting system when trying it. Does anyone know a way to use plymouth like this or any other solution for displaying an animated splash screen during boot and reboot? The system specs are:   * AMD G-T56N processor   * ATI Radeon HD 6320 graphics   * 4 GB RAM   * System based on Debian 7.6 64 bit (minimal system with nodm and firefox)


title: Bash Script Detects Key Down At Boot

text: I want to customize my run level scripts based upon a key combo pressed at boot. How to I test for key presses as early as possible from boot? Do I need to do something special, like for example: lock the computer at run level 1 so I can prepare run level 5 scripts? How do I go about this?


title: Is there a way to express: `--link` or fall back to ordinary copy in cp (from GNU coreutils)?

text: Is there a way to tell `cp` to `--link` (i.e. create hard links), but fall back in the case where I am attempting inter-device hardlinks? Inter-device links aren't possible and would cause `cp` to fail. The reason I am asking is because I would like to use this in a `GNUmakefile` and would prefer a readable command line over some convoluted and lengthy one (or a function, for that matter). The question is for GNU coreutils (7.4 and 8.13). Note: right now the workaround would be something like (GNU make recipe syntax):               cp -fl $^ $@ || cp -f $^ $@      This will of course give spurious error messages in case of inter-device links, although succeeding on the second `cp` call then. Also, then this gets expanded (source form looks readable after all) it won't be too readable anymore.


title: Memory usage stays high after compilation jobs

text: I am operating a small Linux VM with 1Gb of RAM.   It is a fairly typical LAMP setup which takes about 16% of memory on normal usage      I used the box to compile stuff yesterday, the memory went up to 60% and didn't drop back.   A memory sorted "top" doesn't show anything else than Mysql and Apache:               top - 09:41:33 up 4 days,  6:41,  1 user,  load average: 0.00, 0.00, 0.00     Tasks:  41 total,   1 running,  40 sleeping,   0 stopped,   0 zombie     %Cpu(s):  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st     KiB Mem:   1048576 total,   640072 used,   408504 free,        0 buffers     KiB Swap:   131072 total,        0 used,   131072 free,   533872 cached            PID USER      PR  NI  VIRT  RES  SHR S  %CPU %MEM    TIME+  COMMAND      2042 mysql     20   0  385m  41m 7324 S   0.0  4.1   9:25.35 mysqld      1680 bind      20   0  117m  21m 2468 S   0.0  2.1   0:03.07 named      2155 root      20   0  191m  10m 4988 S   0.0  1.1   1:07.43 apache2     12507 www-data  20   0  192m 9740 3032 S   0.0  0.9   0:00.50 apache2     12505 www-data  20   0  192m 9728 3020 S   0.0  0.9   0:00.19 apache2     12481 www-data  20   0  192m 9652 2940 S   0.0  0.9   0:01.47 apache2     12508 www-data  20   0  192m 9648 2940 S   0.0  0.9   0:00.73 apache2     12499 www-data  20   0  192m 9640 2932 S   0.0  0.9   0:00.24 apache2     12509 www-data  20   0  192m 9636 2928 S   0.0  0.9   0:00.26 apache2     12564 www-data  20   0  192m 9624 2924 S   0.0  0.9   0:01.07 apache2     12563 www-data  20   0  192m 9600 2928 S   0.0  0.9   0:00.33 apache2     14624 www-data  20   0  191m 7492 1296 S   0.0  0.7   0:00.30 apache2     14629 www-data  20   0  191m 7352 1248 S   0.0  0.7   0:00.24 apache2      Where did the missing 400Megs go?   Is this something that I should worry about or just wait for my scheduled weekly reboot?      For clarity, the "stuff" was Google Protocol Buffer which doesn't use any daemon.


title: How can I write a driver for an asus trackpad on linux?

text: I bought a laptop and installed Linux on it and the trackpad is now not working but it was on Windows. There is no Linux driver for it and I thought this could be a good project to write one. I have read and implemented tutorials on device drivers for simple things (turning on an LED on a pandaboard) but I have no idea where to start here. Related questions pointed to commands like `modprobe -r psmouse` and it seems the trackpad is not seen at all. Any idea? The laptop is: Asus R409C.


title: Getting a digital signature from an eToken/smart card into LibreOffice

text: I successfully managed to make use of digital signatures in LibreOffice Writer by following flatmtn.com/creating-pkcs12-certificates But now I want to use a digital certificate from an eToken/smart card and not from the Mozilla keystore directory. How can I achieve this?


title: List all software installed from particular component (non-free, contrib)

text: Is there a way to list all `non-free` and `contrib` software installed in Debian via `apt`? `/etc/apt/sources.list` is as follows               deb http://ftp.us.debian.org/debian/ wheezy main non-free contrib     deb-src http://ftp.us.debian.org/debian/ wheezy main non-free contrib          deb http://security.debian.org/ wheezy/updates main non-free contrib     deb-src http://security.debian.org/ wheezy/updates main non-free contrib          # wheezy-updates, previously known as 'volatile'     deb http://ftp.us.debian.org/debian/ wheezy-updates main     deb-src http://ftp.us.debian.org/debian/ wheezy-updates main      I added `non-free` and `contrib` years ago because I needed a non-free driver for my video-card, which has now been replaced with a new one that doesn't require a non-free driver. I'd like to get rid of the non-free stuff, but I'm afraid I might have installed other non-free software over the years which I cannot afford to uninstall.


title: Filezilla is not showing hidden files

text: I am using   * Fedora 16 (client end)   * CentOS 6 (server end)   * I have no command line access to server   * FileZilla 3.5.2 I have enabled "Force showing hidden files" ![enter image description here](http://i.stack.imgur.com/cO4El.jpg) After enabling I have restarted filezilla and PC. But still not showing hidden files. System Admin ensured me the list of hidden files there exists. I can upload hidden files from my end (client) but i can't see at server end. I can't download hidden files from server. How to solve the issue?


title: Xubuntu Mouse sensitivity way too high

text: I am pretty new to Linux, this is my first real time using Xubuntu (used Ubuntu before, and raspbian on my RPI), and I have a mouse that is way too sensitive. If I move my mouse 1cm it's on the other side of the screen, that sensitive. I have turned all mouse sliders as far down as I can, and I don't even notice anything becoming less sensitive. For some reason the mouse settings menu also displays that I have two Razer Deathadder 2013's plugged in, even though I only have one. Sliders are down on both, tried some things with `xset m 5 1` but it only gets worse. How do I get a human level of mouse sensitivity?


title: X doesn't work after upgrading Slackware from 13.37 to 14.0

text: I upgraded the system, using instructions from file UPGRADE.txt on the disk. Everything works fine. But when I try to `startx`, it quits with an error: > ck-launch-session: error while loading shared libraries: libffi.so.5: cannot > open shared object file: no such file or directory In `/usr/lib` I found a file `libffi.so.6`. It seems, that the `ck-launch- session` wasn't upgraded and still tries to load the old library. What to do?


title: Possible to install PHP 5.2.17 on a new CentOS 6.4 system?

text: I'm trying to set up CentOS 6.4 (Linux 2.6.32-358.11.1.el6.x86_64) with a specific version of PHP (5.2.17) as it is required by an app I'm trying to install. I've downloaded the PHP version and dependencies. This version of PHP requires a downgraded php-common which then required an earlier libcurl. On trying to downgrade libcurl to the required version yum fails as it seems yum itself depends on this. Which makes sense really. The list of packages that would be affected (and erased) is huge. So it seems that this version of PHP is a bridge too far as libcurl is just too embedded. **Should I start again with an earlier version of CentOS? I'm new with Linux but might it be that PHP is el5 but CentOs is el6?** PHP package: php-5.2.17-1.el5.art.x86_64.rpm libcurl: curl-7.15.5-17.el5_9.x86_64.rpm


title: Non-persistent differencing file

text: I have a large file (5-10 GB) and want to access this file in a special file system with the following conditions/features:   1. There is a single process that reads and write on the file.   2. When the process writes to some position of the file and reads the same position afterwards, the new values are returned (the file seems changed).   3. When the file system receives a rollback signal, the file will restore to the original state. Theoretically I can imagine of a mechanism where the changes are saved on an auxiliary file, and there is a virtual file system which manages all this, giving a visualization of a non-persistent file to the end-used. Does anyone know of an implementation of this?


title: Working with Hebrew text in Redhat

text: I'm trying to view Hebrew text in my putty terminal, but I keep seeing those squares instead of text (see pic). ![putty vi screenshot](http://i.stack.imgur.com/5qGuR.png) Things I've done so far but didn't work:   1. edited `/etc/sysconfig/il8n` and changed `LANG="he_IL.UTF-8"`   2. `yum install xorg-x11-fonts-Type1`   3. `yum install xorg-x11-fonts-misc`   4. `yum install langinstall he_IL` I'm using Red Hat Enterprise Linux Server release 6.5 (Santiago)


title: Address of host you connect from

text: When you connect to some remote machine using ssh, is there an easy way to **address of the machine you connecting from** ? (with some env variable, or hostname for instance) Main use how that would be to scp/transfer file back where you connect from, without having to disconnect. _(Might be a possible duplicate, didn't realy how to well formulate the question)_


title: Samba 3.6 Configuration in Fedora 17

text: I need help configuring the Samba server so I can connect from a Windows ( **edit** Windows 7) machine to my Fedora. I followed several tutorials because and non of them work for me. Here are two of them:   tutorial 1   tutorial 2   tutorial 3 (samba and selinux) Here is the fpaste of my Samba configuration file. When accessing my machine by IP Windows machines see the shared folders `allusers` and `Share`.   1. When trying to open `allusers` folder it asks the user to provide username and password. I've created a test user and added it to users group + samba's users but it's not working with it (meaning It doesn't accept it).   2. When user tries to open the `Share` folder there is a message saying that he doesn't have permissions to open the folder. The folder is in 777 mod + SELinux is disabled + I allowed the Samba, Samba Client, Echo Reply (pong) and Echo Response (ping) to pass the firewall.  Can you point where is my mistake or give me some direction, please? Thanks in advance.


title: Color schemes good for the eyes

text: Are there any common guidelines howto choose a color scheme (for example foreground/background color) for terminal, `emacs` etc. to minimize exhaustion of the eyes? If so, is there scientific evidence for such a guideline? In particular are there ready to use eye-friendly color schemes for `urxvt`and `emacs`? **Edit:** It would be also interesting to know, how the decision depends on the screen (matte, glossy) and on the environment (indoor, outdoor,...). In my case it is a Dell Latitude ATG which has a slightly glossy screen (not matte, but not a mirror). I use it indoors in office, in dark rooms and also outdoors. In my case I first thought, that black font on white background is the best because the white background reduces reflections due to the glossy screen. And because black on white seems to be a high contrast. However it seems that the bright white tires the eyes... I should point out, that I am not interested in personal opinions but in scientific evidence or at least in reasonable generally accepted guidelines based on experience.


title: Debian hibernate problem PM: Swap header not found

text: I have Debian 6 2.6.32-5-amd64 on netbook. With `pm-utils` Sleep works but hibernate fails with error: `PM: Swap header not found!`. Swap was enabled using ubuntu tutorial after installation - this is probably the key but can't find working solution.


title: Why does find's -exec only executes on one result?

text: Here's what I checked: `find mydir -maxdepth 2 -name .project -or -name .classpath` gives output:               mydir/.project     mydir/.classpath      Meanwhile `find mydir -maxdepth 2 -name .project -or -name .classpath -exec echo {} \;` gives output:               mydir/.classpath      so only 1 found item is listed, why? xargs works as expected: `find mydir -maxdepth 2 -name .project -or -name .classpath | xargs -I {} echo {};` prints:               mydir/.project     mydir/.classpath      Am I missing something about `-exec`?


title: Avoid very fast double clicks

text: I have a mouse with a weird problem. The left button sometimes fires a double click even if I click just one time.   I would like to know if there's a way to avoid fast double clicks, ignoring clicks with an interval lower than a defined value.   I'm using Fedora 15.   Thanks in advance.


title: Improve execution time for recursive md5sum check?

text: This recursive md5sum check for 40000 items of 11.8 GB takes 2 minutes:               ret=$(find "${target}"/ -name ".md5sum" -size +0 | while read aFile; do cd "${aFile%/*}"; md5sum -c ".md5sum"; done | grep -v "OK";)      Can any obvious speed improvements be made, that I have not noticed?


title: GRUB2 and Foreign Keyboards

text: If I have GRUB2 installed on a system that is using a foreign keyboard and I want to use CLI Mode, what key would I press? On Latin-based keyboards, we would press "C", but other alphabets lack the symbol "C". Is there a special GRUB documentation page for foreign keyboards? Are older forms of GRUB the same (GRUB Legacy)?


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

text: 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 fine (testing in VirtualBox before I burn to disc). But the RescueCD iso fails to boot fully and just drops me out to a mini console. It starts to load the kernel image and initram.igz okay, then after it prompts for the keymap it attempts to locate the `sysrcd.dat` file (which contains the file system image) by trying to mount `/dev/sr0` and `/dev/sd0` but this is the wrong place. I need it to mount `/dev/scd0` \-- the .dat file is located in `/distro/systemrescuecd` on the CD image. Does anyone please know what file I need to edit to correct the mount paths and/or what command(s) I can append to the kernel load string in GRUB to point it at the right folder/mount point? Thanks


title: HowTo Chroot to BSD

text: I recently tried FreeBSD `[9.2]`. I installed it but as i found out it doesn't install any bootloader by default. So now i want to find out **HOW** it is possible to `chroot` to the installed BSD via a livecd or any other means. and if this livecd could be linux (I doubt that).   1. Do i need to mount `/proc` `/sys` and `/dev` partitions?   2. How to declare a sane `env` in `chroot` command? PS: at the end of FreeBSD installation process, there was a nifty script that search my wireless and find out an access-point. then ask me about the password and connect me to it. what is the name of the script and could I run it from the command line?


title: easy rsync solution with file manager (thunar or nautilus or...)

text: A common tasks I teach new users in UNIX is how to make backups. Since most are not comfortable with the command line (CLI) and I _want_ to have them make backups (more than forcing them to use the CLI), right now I teach them to drag and drop whole directories around. The problem with that, of course, is that it takes a long time, as all files are copied every time. I would prefer it if file managers would fire up `rsync` instead of `cp -a` when you copy over an existing directory. Is there a plugin for that? Anyone working on such functionality in a file manager already?


title: How to config Postfix to prevent sender spoofing?

text: At work, I'm facing security risk with the mail sender spoofing. I have a relay mail server which accepts mail relay from all server subnets. If an user in a normal server sends mail within command line:               user@server$ echo mail_content | mail -r vip@company.com -s Important recipient@company.com      So basically, this guy can pretent to be anyone when sending email, which could lead to really big trouble What I'm expecting is, even though running the above command, the recipient still get the mail with `From: user@server` How can I do it in Postfix? Edit: I forgot to add, the authentication method is Active Directory, not sure if it makes the configuration much complicated :)


title: How to know whether wget has completed download successfully?

text: I attempted to download openSUSE 12.1 through wget.   _It stopped after 64% showing:_               05:54:48 (120.30 KB/s) - `openSUSE-12.1-DVD-i586.iso' saved 4429185024/4429185024]      **It appears that the download is complete but then why does it show 64% only?**               anisha@linux-2gbt:~> wget -c http://ftp.uni-bremen.de/pub/mirrors/opensuse/distribution/openSUSE-stable/iso/openSUSE-12.1-DVD-i586.iso     --11:39:58--  http://ftp.uni-bremen.de/pub/mirrors/opensuse/distribution/openSUSE-stable/iso/openSUSE-12.1-DVD-i586.iso                => `openSUSE-12.1-DVD-i586.iso'     Resolving ftp.uni-bremen.de... 134.102.228.70     Connecting to ftp.uni-bremen.de|134.102.228.70|:80... connected.     HTTP request sent, awaiting response... 200 OK     Length: 4,429,185,024 (4.1G) [application/x-iso9660-image]          47% [===========================================>                                                  ] 2,425,434,388   --.--K/s  ETA 8:59:38          19:55:21 (79.70 KB/s) - Read error at byte 2425434388/4429185024 (Connection timed out). Retrying.          --19:55:22--  http://ftp.uni-bremen.de/pub/mirrors/opensuse/distribution/openSUSE-stable/iso/openSUSE-12.1-DVD-i586.iso       (try: 2) => `openSUSE-12.1-DVD-i586.iso'     Connecting to ftp.uni-bremen.de|134.102.228.70|:80... connected.     HTTP request sent, awaiting response... 200 OK     Length: 4,429,185,024 (4.1G) [application/x-iso9660-image]          64% [===========================================================>                                  ] 4,429,185,024  192.61K/s  ETA 5:28:09          05:54:48 (120.30 KB/s) - `openSUSE-12.1-DVD-i586.iso' saved [4429185024/4429185024]      **I attempted to start it again thinking since I had used`-c` option, it won't start downloading all over again if once the download is truly complete, but it did start again. What should I conclude from this?**               anisha@linux-2gbt:~> wget -c http://ftp.uni-bremen.de/pub/mirrors/opensuse/distribution/openSUSE-stable/iso/openSUSE-12.1-DVD-i586.iso     --08:50:56--  http://ftp.uni-bremen.de/pub/mirrors/opensuse/distribution/openSUSE-stable/iso/openSUSE-12.1-DVD-i586.iso                => `openSUSE-12.1-DVD-i586.iso'     Resolving ftp.uni-bremen.de... 134.102.228.70     Connecting to ftp.uni-bremen.de|134.102.228.70|:80... connected.     HTTP request sent, awaiting response... 200 OK     Length: 4,429,185,024 (4.1G) [application/x-iso9660-image]           2% [=>                                                                                ] 207,066,532   93.31K/s ETA 15:56:35^C     anisha@linux-2gbt:~>


title: Why there is no https transport for debian apt tool?

text: With all paranoia that has come with NSA and everything, I'm wondering why debian package installation mechanism does not support HTTPS for its transport, let alone using it by default. I know debian packages have some sort of signature validation using GPG, but still I don't think using HTTPS transport instead of HTTP would be too hard, considering how crucial this is security-wise. Edit: I mostly want to protect myself from MitM attacks, not debian mirror administrators. HTTP puts the whole system setup on the table, if anyone snoops on traffic going to debian mirrors.


title: Create partition with exact size not to specific distance

text: How does one create a partition of exact size not to specific distance? I have tried:               parted -a optimal /dev/sdd mkpart primary 0% 0%+1GB     # and...     parted -a optimal /dev/sdd mkpart primary 0% +1GB      To no avail. How do I make it accept size instead of end distance?


title: How do I localize man pages for chinese?

text: Doing the prerequisite google search didn't turn up anything: I'm looking for a way to install and use localized chinese versions of the man pages (assuming there is some localized package somewhere).   1. Is there a localized package to install? Better yet, is it already installed in the default install?   2. How do I activate this? Do I just change my locale? Is there a canonical way to change the locale outside of just resetting the environment variable in my rc file?


title: Can I use an SSH key generated on Linux from Putty?

text: I have been asked to generate a pair of SSH keys so that I can access a remote server for development. To generate the keys, I used the `ssh-keygen` tool on our CentOS box, which I successfully did. Now I have 2 files: `~/.ssh/id_dsa`, `~/.ssh/id_dsa.pub`. I will give the admin the `.pub` file so that he can place it on the remote server. However, I want to use my own personal windows PC (using PuTTY) to access this remote server. So my question is this: even though I generated the SSH keys on a Linux server (that has no relation whatsoever to the remote server and my pc), can I still access the remote server with my Windows PC using the private key that was created? The reason I'm a little unsure is because while I was creating the keys, it said "The key fingerprint is: xxxxxxxx" which made me think that since the "fingerprint" is CentOS's fingerprint, it won't let me use the private key on my Windows machine. Am I right that it won't work, or as long as I have the private key it doesn't matter what machine I use to log in to the remote server?


title: what is the difference between ~/.profile and ~/.bash_profile

text: I want to know the difference between `~/.profile` and `~/.bash_profile`.


title: What are/were the keys on a Sun keyboard for?

text: I have a Sun type 7 UNIX keyboard that I'd like to get more productivity out of. So what are those extra keys for, or rather, what were they intended for by Sun? And is there a way to approximate those functions in any useful way on a modern Linux or Solaris 11 system? The keys in question are:               Label    Keycode  keysym     ===========================     Compose  135      Menu      Stop     136      Cancel     Again    137      Redo     Props    138      SunProps     Undo     139      Undo     Front    140      SunFront     Copy     141      XF86Copy     Open     142      SunOpen     Paste    143      XF86Paste     Find     144      Find     Cut      145      XF86Cut


title: How can I get awk to print both matches and non-matches?

text: Basically, all I want to do is alter outputs if the input matches a filter, but the part being altered isn't what is being filtered (or I would use `sed`). The problem so far is that my `awk` is only outputting the altered lines. Quick example, put this in test.txt:               orange beet pear cowmilk     apple pear berry cowmilk     orange melon cherry cowmilk      If I use the code:               awk /orange/'{gsub(/cow/,"cow~"); print}' test.txt      I get:               orange beet pear cow~milk     orange melon cherry cow~milk      When I would rather get:               orange beet pear cow~milk     apple pear berry cowmilk     orange melon cherry cow~milk      I see you can do `||` with awk, but I haven't been able to figure out how to make that fit with the gsub above. For bonus appreciation, what I'd really like to do is add color instead of `~`, but that totally breaks, i.e.               awk /orange/'{gsub(/cow/,"cow'\e[1;34m'"); print}' test.txt      gives me an error about `\` not being the end of the line.


title: How do I set a limit on the number of files Linux can have open?

text: I plan to run a Java app using `nohup ... &`. The limit must apply to commands like this.


title: What are EXT4 Security Labels?

text: During Gentoo installation of Gnome keyring, I am told to switch on EXT4 Security Labels, which is described in the kernel documentation by: > Security labels support alternative access control models implemented by > security modules like SELinux. This option enables an extended attribute > handler for file security labels in the ext4 filesystem. That documentation is not of great help, as I now understand that it enables an attribute handler that will in turn enable security labels for ext4 file systems. I could have deduced that from the name of the feature. What are those labels? How do they improve security?


title: Copy multiple files to one dir with parallel

text: I'm using the following script to copy multiple files into one folder:               { echo $BASE1; echo $BASE2; echo $BASE3; } | parallel cp -a {} $DEST      Is there any way to use only one echo $BASE with brace expansion? I mean something like this:               { echo $BASE{1..3} } | parallel cp -a {} $DEST


title: Make and apt-get Have Stopped Working

text: So I downloaded the non-free broadcom driver(b44) for my debian install, however when I try to make it I get the following error:               make     make -C /lib/modules/2.6.32-5-amd64/build SUBDIRS=/home/scroty/workplace/b44-1.00g modules     make: *** /lib/modules/2.6.32-5-amd64/build: No such file or directory. Stop.     make: *** [default] Error 2      So I looked up my errors, and some other guy here had the same thing, and he fixed it by installing the kernel headers. So I try to do the same, and this is what happens:               sudo apt-get install linux-headers-2.6.32-5-amd64     Reading package lists... Done     Building dependency tree     Reading state information... Done     Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.     The following information may help to resolve the situation:          The following packages have unmet dependencies:     linux-headers-2.6.32-5-amd64 : Depends: gcc-4.3 but it is not going to be installed     E: Broken packages      When I try to install gcc-4.3 it's the same thing, except with several more dependencies(some of which I know I have). When I run:               dpkg --get-selections | grep gcc      it returns:               gcc     gcc-4.3-base     gcc-4.4-base     gcc-4.7     gcc-4.7-base     libgcc1      So I have to admit, I'm a huge noob at linux, and have only started to _seriously_ use it(I've used it for years, but not very often) in the past month. So is it bad that I have several different versions of the same package? Is there any reason I shouldn't just delete gcc-4.3 and gcc-4.4 since I have 4.7? I'm having a bit of trouble completely understanding the whole package system. Thanks a lot guys, feel free to ask me to clarify anything. **EDIT:** Does the '32' in 'linux-headers-2.6.32-5-amd64' mean that it's meant for 32bit machiens? Because I'm running 64bit, however I figured 32bit apps would still run.


title: How to run sh from sh file

text: I developed a Java application. I divided the application into 5 sub- applications, and created a service wrapper to each sub application using shell scripts:               subaap1/bin/app.sh     subaap2/bin/app.sh     ...      Now I want to create a startup script `startup.sh` to execute all the wrapper scripts:               #!/bin/bash     sh subaap1/bin/app.sh start     sh subaap2/bin/app.sh start     ...      But when I run it, I get: > Unexpected command: start How can I fix this?


title: Install all Linux Kernel Backports?

text: A series of simple questions concerning the installation of Linux kernel backports: 1) Does anyone have experience installing the unstable ones? Has anyone ever run into problems with them? Or are they basically sound? 2) Would you recommend installing them all? 3) What is the procedure for installing them all? (I have Linux-headers and build-essential firmly in place)


title: Is there a command such as xwininfo, xdpyinfo, xprop, or xlsclient that will tell me what font an X client window is using?

text: I'm trying to find a command that will report what font a given X window is configured to use. Does such a command exist? Looking through these tools I did not see an option that would give me this:   * xwininfo   * xdpyinfo   * xprop   * xlsclient Looking through the output of `lsof` I see font files that appear to be in use, however it's not clear which ones, if any, are actually being used by a given window. ### Example               $ lsof |grep gnome-ter|grep font | head -8     gnome-ter  3282      saml  mem       REG              253,0    223040    1180775 /usr/lib64/libfontconfig.so.1.4.4     gnome-ter  3282      saml  mem       REG              253,0   3656228    1588238 /usr/share/fonts/un-core/UnDotum.ttf     gnome-ter  3282      saml  mem       REG              253,0    585272     266781 /usr/share/fonts/gnu-free/FreeSans.ttf     gnome-ter  3282      saml  mem       REG              253,0    323284    1447753 /usr/share/fonts/dejavu/DejaVuSansMono.ttf     gnome-ter  3282      saml  mem       REG              253,0    190240    1588229 /usr/share/fonts/paktype-naqsh/PakType_Naqsh.ttf     gnome-ter  3282      saml  mem       REG              253,0    683528    1447770 /usr/share/fonts/dejavu/DejaVuSans.ttf     gnome-ter  3282      saml  mem       REG              253,2     42144   10488291 /home/saml/.fonts/ProggyCleanSZBP.ttf     gnome-ter  3282      saml  mem       REG              253,0     15504    1966923 /var/cache/fontconfig/87f5e051180a7a75f16eb6fe7dbd3749-le64.cache-3      To be clear, I'm not interested in this solution, titled: How to check which font the system uses?:               $ gconftool-2 --get /apps/gnome-terminal/global/profile_list     [Default,Profile0]          $ gconftool-2 --get /apps/gnome-terminal/profiles/Default/font     Monospace 12     $ gconftool-2 --get /apps/gnome-terminal/profiles/Profile0/font     TakaoMincho Bold 36      I want to determine this information via X if possible. ### References   * The X Window User HOWTO


title: How to make the printer Canon Laser Shot LBP-1120 work in Elementary OS Luna (Ubuntu 12.04 TLS) - 32-bit version?

text: I had previously created this question \+ answer, but that would not work for me after a while. I am looking for an alternative.


title: Concatenating string variable inside a for loop in the bash shell

text: #!/bin/bash          names= find /home/devuser -name 'BI*'     echo $names          for name in {names[@]}     do          echo $name      $var = $var$name        done          echo $var


title: grub won't install

text: I'm trying to re-install grub from a USB drive. I run the following:               sudo mount /dev/sda6 /mnt     sudo grub-install --root-directory=/mnt /dev/sda      I get the following error:               grub-probe: error: failed to get canonical path of /cow.      can someone explain the error, and how to solve it? **Edit** I'm trying to repair a broken dual-boot system, running from a USB containing linux mint.


title: How to show all files git knows about?

text: How can I produce a list of filenames (incl. paths) that git knows about over the course of the whole history?


title: syslog-ng difference between "not message(something)" and "not match(something)"?

text: What is the difference between these two?:               filter f_avc { not message(something); };      and:               filter f_avc { not match(something); };      it's hard to google for these types of questions :D


title: How big is the pipe buffer?

text: As a comment in I'm confused as to why "| true" in a makefile has the same effect as "|| true" user cjm wrote: > Another reason to avoid | true is that if the command produced enough output > to fill up the pipe buffer, it would block waiting for true to read it. Do we have some way of finding out what the size of the pipe buffer is?


title: Can I export an NFS share with faked root privileges

text: I'm writing software for an embedded linux system and I'm using an NFS share as root directory. The root filesystem resides in `/srv/nfs/rootfs`, and it is exported using the following `/etc/exports`:               /srv/nfs *(rw,no_root_squash,no_subtree_check,async,wdelay)      The content of `/srv/nfs/rootfs` need to be owned by root, otherwise the target system will have trouble mounting `/dev`. However, I need to be able to modify the files in `/srv/nfs/rootfs` as regular user, and I don't want to add `sudo` to my scripts or run sudo on every other command. Is there some way of configuring NFS to fake root privileges on `/srv/nfs/rootfs`? I was thinking of trying to run nfs using fakeroot, but that does not seem like the best solution to me.


title: Ubuntu raid dirty degraded

text: I have Linux version 3.5.0-17-generic (buildd@allspice) (gcc version 4.7.2 (Ubuntu/Linaro 4.7.2-2ubuntu1) ) #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012 (per /proc/version). There are two raid arrays attached: main raid1 (system), and the second raid5 (data). I need to start raid5 in dirty degraded mode. Ubuntu won't boot with inactive array, and instead keeps dropping to initramfs. Is there a way to boot this machine with the second array in a known-degraded state?


title: In a recursive dns query what happens ttl = 0?

text: in name resolution (current version of bind), what happens when a recursive answer reaches ttl 0 on the return trip?


title: Expand less-than sign when using multios and brace expand

text: With zsh multios set (`setopt multios`) it's possible to do things like:               < in1 < in2 > out      and:               < in > out1 > out2      which is very convenient. I want to combine this feature with brace expand (`setopt braceexpand`), so when I say:               <in{1,2}^I      (`^I` is a literal tab and invokes the completion system), I want it to expand to:               <in1 <in2       but instead I get:               <in1 in2      Is there an easy way to modify this behavior?


title: How to check that gpg checking is correct on RHEL based machines or not?

text: How can I check that the "enabled=1" repositories have "gpgcheck=1" in the "/etc/yum.repos.d/" directory (and the "gpgkey=" file exist or not?)? Q: **I'm searching for a solution to do this (oneliner?), I mean to list all the "enabled=1" repositories and "gpgcheck" status, and does the "gpgkey=XXX" file exist or not?** \- the problem is that that one .repo file could contain several repositories! p.s.: afaik the "gpgkey=XXX" -> XXX could only be a local file, not an url through http... but fix me if I'm wrong..


title: Linux fails to mount Android device in USB MSC mode

text: I was referred here from android.stackexchange.com. I wish to mount my Sony Xperia ST21i (Android 4.0.4) under Linux (Debian) via USB. However, I get this error:               # mount /dev/sdb /mnt     mount: no medium found on /dev/sdb      For more context see http://android.stackexchange.com/questions/52932/linux- fails-to-mount-android-device-in-usb-msc-mode. Is this more an Android or a Linux issue?


title: Installing Linux Mint Live USB

text: First, let me just say that I'm relatively new to Linux, having been forced to use it since the recent death of my hard drive (although having used Linux for a few weeks now, I wish I'd tried it sooner) so I'm probably missing something that should be obvious to more experienced users. Anyway, here's the deal- I finally settled on Linux Mint 16 after trying a few other distributions. I used Unetbootin to create a Live USB with persistence, and it's worked well, except for the fact that after a few days I find that my 8gb USB is almost full. I need my laptop mainly for my online high school classes right now, so I'm not filling it up with games, movies, etc. After exploring my file system I found that while my home folder is full, others like cdrom, tmp, and dev have 1gb+ on them. I ran the command                   df      and got the following:                   Filesystem     1K-blocks    Used Available Use% Mounted on         /cow             4062908 3323888    529308  87% /         none                   4       0         4   0% /sys/fs/cgroup         udev             1744648       4   1744644   1% /dev         tmpfs            1755620 1232916    522704  71% /tmp         tmpfs             351124    1316    349808   1% /run                 none        5120       4      5116   1% /run/lock         none             1755620     680   1754940   1% /run/shm         none              102400      12    102388   1% /run/user         /dev/sda1        7659188 7395068    264120  97% /cdrom         /dev/loop0       1176448 1176448         0 100% /rofs      Any help would be greatly appreciated! P.S.- This is my first post, so please excuse me if I formatted something wrong. Update- After running                   sudo parted -l      I got                   Model: Lexar USB Flash Drive (scsi)         Disk /dev/sda: 7860MB         Sector size (logical/physical): 512B/512B         Partition Table: msdos              Number  Start   End     Size    Type     File system  Flags          1      1049kB  7860MB  7859MB  primary  fat32        boot, lba


title: Allocating resources to VPS's

text: I need a layman's term definition of these parameters and what they do in terms of allocating resources to servers, as I'm having issues with the VPS's that I set up, as Java seems to be unable to set up a virtual machine on them for minecraft unless they have over 2Gb's of each parameter, and I'm assuming I must be doing something wrong. Here is the current script exert that I use to initially create the server and assign resources:               SERVID=$1     IPPICK=$2     HOSTNAME=$3     PW=$4     EMAIL=$5          if vzctl create $SERVID --ostemplate centos-6-x86_64.2 --config vps.packtwo-basic ;         then             echo -e "\nVPS container was successfully created...\n"         else             vzctl stop $SERVID             vzctl destroy $SERVID             echo -e "Please restart the package install, there was a problem creating the VPS..."             exit $?     fi     if vzctl set $SERVID --onboot yes --save;         then             echo -e "\nSet to boot on start...\n"         else             vzctl stop $SERVID             vzctl destroy $SERVID             echo -e "\nPlease restart the package install, the onboot config went wrong...\n"             exit $?     fi          if vzctl set $SERVID --ipadd $IPPICK --save;         then             echo -e "\nIP added to the VPS successfully...\n"         else             echo -e "\nThe IP address used, may be used on another server, this may mean that the server has an issue contacting external addresses..\n"     fi          if vzctl set $SERVID --hostname $HOSTNAME --save;         then             echo -e "\nHostname assigned to the VPS successfully...\n"         else             vzctl stop $SERVID             vzctl destroy $SERVID             echo -e "\nPlease restart the package install, there was a problem assigning the Hostname to the VPS...\n"             exit $?     fi     if vzctl set $SERVID --swappages=2224M:2224M --save;             then                     echo -e "\nThe Swap Pages were successfully allocated...\n"             else                     vzctl stop $SERVID                     vzctl destroy $SERVID                     echo -e "\nPlease restart the package install, there was a problem allocating Swappages to this VPS...\n"                     exit $?     fi     if vzctl set $SERVID --userpasswd root:$PW --save;         then             echo -e "\nThe root password was successfully assigned...\n"         else             vzctl stop $SERVID             vzctl destroy $SERVID             echo -e "\nPlease restart the package install, there was a problem assigning the chosen password for the root account...\n"             exit $?     fi          #Resource double checking     if vzctl set $SERVID --diskspace 30G:32G --save;         then             echo -e "\nThe resources were successfully allocated...\n"         else             vzctl stop $SERVID             vzctl destroy $SERVID             echo -e "\nPlease restart the package install, there was a problem allocating resources to this VPS...\n"             exit $?     fi          if vzctl set $SERVID --quotatime 800 --save;         then             echo -e "\nThe burst settings were successfully added...\n"         else             vzctl stop $SERVID             vzctl destroy $SERVID             echo -e "\nPlease restart the package install, there was a problem allocating quta burst time to this VPS...\n"             exit $?     fi               #Add RAM     if vzctl set $SERVID --vmguarpages 1124M --save;         then             echo -e "\nThe Vmguarpages have been successfully allocated...\n"         else             vzctl stop $SERVID             vzctl destroy $SERVID             echo -e "\nPlease restart the package install, there was a problem allocating Vmguarpages to this VPS...\n"             exit $?     fi     if vzctl set $SERVID --physpages 1124M:1124M --save;         then             echo -e "\nThe RAM was successfully allocated...\n"         else             vzctl stop $SERVID             vzctl destroy $SERVID             echo -e "\nPlease restart the package install, there was a problem allocating the RAM to this VPS...\n"             exit $?     fi     if vzctl set $SERVID --privvmpages 1124M:1124M --save;         then             echo -e "\nThe Privvmpages have been successfully allocated...\n"         else             vzctl stop $SERVID             vzctl destroy $SERVID             echo -e "\nPlease restart the package install, there was a problem allocating Privvmpages to this VPS...\n"             exit $?     fi     if vzctl set $SERVID --oomguarpages 1124M --save;         then             echo -e "\nThe Oomguarpages was successfully allocated...\n"         else             vzctl stop $SERVID             vzctl destroy $SERVID             echo -e "\nPlease restart the package install, there was a problem allocating Oomguarpages to this VPS...\n"             exit $?     fi     if vzctl start $SERVID;         then             echo -e "\nThe VPS was successfully started...\n"         else             vzctl stop $SERVID             vzctl destroy $SERVID             echo -e "\nPlease restart the package install, there was a problem allocating resources to this VPS...\n"             exit $?     fi


title: Debian doesn't boot anymore

text: I use Debian Wheezy. Yesterday I added a new HDD to the system and expanded the LVM using the `system-config-lvm` gui-tool. I have a logical LVM group for root, `/`, and one for home, `/home`. I also installed updates. Boot process: ![Boot process](http://i.stack.imgur.com/7FqDD.jpg) Windows 7 boots fine How can I fix it?


title: Vim: Making XML text "pretty"

text: Is there an easy way within `vi` to make your XML text "pretty"? For example: I want this..                           <person>       <name>Nick</name>      <age>26</age>              <gender>male</gender>     <occupation>doctor</occupation>         </person>      to be this...               <person>         <name>Nick</name>         <age>26</age>         <gender>male</gender>         <occupation>doctor</occupation>     </person>


title: Manjaro: don't update an application

text: I've got a few local dev-servers configured on LAMP. Each time Manjaro (based on Arch) updates its software, PHP needs to be reinstalled for threading support. I have no need to update Apache or PHP so how do I tell Linux not to update these packages?


title: Unset Fn key in emacs (console)

text: When I run emacs24 on the console the Fn key on both my Lenovo laptops sets the selection mark (in the same way as `C-SPC`). That's pretty crazy behavior as I need the Fn key to change screen brightness, sound volume etc. How do I unbind the Fn key so it doesn't do anything in emacs? **EDIT:** If I press `C-h k Fn` in emacs I get exactly the same output as if pressing `C-h k C-SPC`:               C-@ runs the command set-mark-command, which is an interactive compiledLisp function.     It is bound to C-@, C-SPC.          (set-mark-command ARG)     ...      If I run acpi_listen and press the Fn key I get the output:               ^@      This is the exact same output I get from acpi_listen if I press `C-SPC` or `C-@` (Ctrl+AltGr+2). That is: they're all registered as the same acpi event. Discovering that, I've tried to unset`C-@`. The only way I've got it working is with this:                (global-set-key (kbd "\C-@") 'ignore)      And this:                (global-set-key (kbd "\^@") 'ignore)      In both instances that prevents `C-SPC` from working too(!) I've tried re- setting `C-SPC` with:               (global-set-key (kbd "C-SPC") 'set-mark-command)      But that doesn't take effect. After this I can refine my question to this: Giving that `C-SPC` and `Fn` are registered as the same acpi event can I make emacs distinguish between them? (Note that this is only a problem in the console. Emacs doesn't pick up the Fn key on my X machine ...)


title: SSH agent forwarding, multiple hop

text: **I tested this setup with Linux origin machine - everything is the same - only the first hop can use keys from origin machine.** ### Initial problem I'm trying to set up SSH agent forwarding with multiple hops. My local machine is Windows, with putty and pageant, all Linux machines are Debian 7. The problem is that my private keys, originating from windows, work only on the first hop. Private key added on any the first machine works everywhere. First hop machine is called 'vpn1', second 'www1'. 'vpn1' is connected to internet and to intranet(10.1.0.1). 'www1' is connected only to intranet(10.1.0.10). 'vpn1' adds key(enbyted@vpn1.enbyted.org) using 'ssh- add', this key shows in pageant. ### Debugging I see all 3 keys in `ssh-add -L`:               ssh-rsa [pubkey-1] git@home.enbyted.org //This is github key originating from Windows     ssh-rsa [pubkey-2] enbyted@home.robotronika.pl //This is SSH key originating from Windows     ssh-rsa [pubkey-3] enbyted@vpn1.enbyted.org //This is SSH key originating from 'vpn1'      When I try to `ssh -v -T git@github.com` from 'vpn1'               debug1: Authentications that can continue: publickey     debug1: Next authentication method: publickey     debug1: Offering RSA public key: git@home.enbyted.org     debug1: Server accepts key: pkalg ssh-rsa blen 277     debug1: Authentication succeeded (publickey).      When I try to `ssh -v -T git@github.com` from 'www1'               debug1: Authentications that can continue: publickey,password     debug1: Next authentication method: publickey     debug1: Offering RSA public key: git@home.enbyted.org     debug1: Authentications that can continue: publickey,password     debug1: Offering RSA public key: enbyted@home.robotronika.pl     debug1: Authentications that can continue: publickey,password     debug1: Offering RSA public key: enbyted@vpn1.enbyted.org     debug1: Authentications that can continue: publickey,password     debug1: Offering RSA public key: /home/enbyted/.ssh/id_rsa     debug1: Authentications that can continue: publickey,password     debug1: Trying private key: /home/enbyted/.ssh/id_dsa     debug1: Trying private key: /home/enbyted/.ssh/id_ecdsa     debug1: Next authentication method: password      The same goes with ssh to hosts that accept only 'enbyted@home.robotronika.pl' key. But I can SSH with as many hops as I like with 'enbyted@vpn1.enbyted.org'. Of course, the same goes for git commands. ### Configurations My `~/.ssh/config` (same on all servers):               Host 10.1.0.*         ForwardAgent yes          Host *         ForwardAgent no      My `/etc/ssh/sshd_config` (without comments, same on all servers):               Port <custom-port>     Protocol 2     HostKey /etc/ssh/ssh_host_rsa_key     HostKey /etc/ssh/ssh_host_dsa_key     HostKey /etc/ssh/ssh_host_ecdsa_key     UsePrivilegeSeparation yes     KeyRegenerationInterval 3600     ServerKeyBits 768     SyslogFacility AUTH     LogLevel INFO     LoginGraceTime 120     PermitRootLogin no     StrictModes yes     RSAAuthentication yes     PubkeyAuthentication yes     IgnoreRhosts yes     RhostsRSAAuthentication no     HostbasedAuthentication no     PermitEmptyPasswords no     ChallengeResponseAuthentication no     X11Forwarding yes     X11DisplayOffset 10     PrintMotd no     PrintLastLog yes     TCPKeepAlive yes     AcceptEnv LANG LC_*     Subsystem sftp /usr/lib/openssh/sftp-server     UsePAM yes      ### Questions   * So, why is that?    * What am I doing wrong? Also it's really strange, that on 'www1' github offers two auth methods - password and publickey ... I'm sure that 'www1' SSHing to github.com is connecting to the same server as 'vpn1'. ### Update #1: network setup on image Please note, that image is from article, but pretty much shows my setup.            ![Network setup image](http://i.stack.imgur.com/3LRB3.png) So, I have 2 keys on my home PC, and one key on ruapehu (vpn1). When I SSH to ruapehu from the home PC I can use all three keys just fine. But when I do another ssh from ruapehu (vpn1) to aoraki (www1) I can use only the key from ruapehu. And when I ssh from aoraki (www1) to any hosts below with any amount of hops only key from ruapehu works. It doesn't if home PC is Windows with Putty + pageant or Linux with ssh-agent.


title: Zsh script cannot find screens

text: I have created a `zsh` script launching many screens in detached mode with particular names and running particular processes in them in order to automate some data analysis in high energy physics. However, I get the following error occasionally:               No screen session found.      I did not recognize a particular pattern for this `error` to be displayed and it seems to be taking place randomly, my aim is to launch this program many times with different `command-line arguments` and sometimes this error pops up in the second execution and sometimes in the third. In order to be able to perform the analysis, I need to send the particular command to the screens defined inside the `for` loops. The code is as follows:               #! /bin/zsh     ### Script for running everything in screens ###     ### System argument screen name suffix ###     echo You have the following screens running:     screen -ls     #echo Press any key to proceed. NOTE THAT YOUR OTHER SCREENS WILL GET KILLED!     #read     #pkill -15 -U arisevon screen ## We make sure that no screens are running for now     bkgarr=(TopJets BosonJets DiBoson TTbar)     sigarr=(NM1 NM2 NM3 Scenario4 Scenario6)     puarr=(50PU 140PU)     lumarr=(30 300 3000)     echo Please type 1 for 50PU samples and 2 for 140PU samples     read PU     if [[ $PU -ne 1 && $PU -ne 2 ]] ; then         echo You have to enter 1 or 2         return 1     fi          echo Please type 1 for 300fb-1 and 2 for 3000fb-1     read lum          if [[ $lum -ne 1 && $lum -ne 2 ]] ; then         echo You have to enter 1 or 2         return 1     fi          if [ $PU = 1 ]; then         let "lum = $lum + 1"         #echo $lum     fi          ex NEWrunReader.py  <<EOEX       :43s/Lumi.*/Lumi=$lumarr[lum]/       :x     EOEX          echo Compiling the reader file!!!     root -l << EOF     .L readerSummerStd.C+     EOF          echo Press any key to proceed or Ctrl+C to abort!     read           for index in $bkgarr     do         screen -dmS "${index}_${lumarr[lum]}_${1}"          #screen -S $index -p 0 -X stuff "$(typeset -p bkgarr)"$'\r'         screen -S "${index}_${lumarr[lum]}_${1}" -p 0 -X stuff "./NEWrunReader.py SummerStd $puarr[PU]_$index $1 >& "${index}_${lumarr[lum]}_${1}".txt &"$'\r'     done          for sigind in $sigarr     do         screen -dmS "${sigind}_${lumarr[lum]}_${1}"          #screen -S $sigind -p 0 -X stuff "$(typeset -p bkgarr)"$'\r'         screen -S "${sigind}_${lumarr[lum]}_${1}" -p 0 -X stuff "./NEWrunReader.py SummerStd $puarr[PU]_$sigind $1 >& "${sigind}_${lumarr[lum]}_${1}".txt &"$'\r'     done     return 0


title: How do I troubleshoot ssh tunnels disconnection?

text: I am using SSH tunnels launched via autossh at boot on a device installed at remote locations. Up to now everything was working fine but yesterday the connection partly went down and autossh wouldn't do its thing. And I would love to figure out what happened to prevent it ever happening again. I have to deal with SLAs and all. Here are the details: **_THE SETUP_** _Remote site:_ -Raspbian on a raspberry pi (debian wheezy) -Autossh running at boot connects to our server and establishes 3 ssh tunnels Tunnel 1: regular tunnel forwarding a local port on the raspberry pi to a server in our office Tunnel 2: reverse tunnel opens a port on our server pointing to a device on the remote network Tunnel 3: reverse tunnel opens a port from our server's loopback (127.0.0.1) adapter pointing to the ssh port of the raspberry pi on its loopback adapter. So basicly with this setup I have to ssh in our server from which I can ssh into each remote devices. _SSH Server:_ -Debian Wheezy -No firewall/iptables on the server, we use another box for this **_THE PROBLEM_** Both reverse tunnels (tunnels 2 and 3) stopped working. The output of               sudo netstat -atp | grep ssh      Showed that the only port still opened was for tunnel # 1 When I killed the ssh process on the server for tunnel # 1 autossh did its thing and all tunnels were reconnected but I would prefer if I didnt have to do this. Is it normal behavior for autossh? Does autossh have issues monitoring reverse tunnels? _SYSLOG from the remote device_               Sep  7 06:25:06 remote_hostname rsyslogd: [origin software="rsyslogd" swVersion="5.8.11" x-pid="1661" x-info="http://www.rsyslog.com"] rsyslogd was HUPed     Sep  8 06:25:05 remote_hostname rsyslogd: [origin software="rsyslogd" swVersion="5.8.11" x-pid="1661" x-info="http://www.rsyslog.com"] rsyslogd was HUPed     Sep  8 10:24:57 remote_hostname autossh[1428]: ssh exited with error status 255; restarting ssh     Sep  8 10:24:57 remote_hostname autossh[1428]: starting ssh (count 2)     Sep  8 10:24:57 remote_hostname autossh[1428]: ssh child pid is 24161     Sep  8 16:53:53 remote_hostname autossh[1428]: ssh exited with error status 255; restarting ssh     Sep  8 16:53:53 remote_hostname autossh[1428]: starting ssh (count 3)     Sep  8 16:53:53 remote_hostname autossh[1428]: ssh child pid is 30541     Sep  9 06:25:05 remote_hostname rsyslogd: [origin software="rsyslogd" swVersion="5.8.11" x-pid="1661" x-info="http://www.rsyslog.com"] rsyslogd was HUPed      I googled around "rsyslogd was HUPed" some places suggest it means there was a reboot but I can confirm from the uptime that this is not the case. The remote device was up during all those logs. Not sure what is next here to try to figure out what happened. Can someone please assist me? Fred.


title: How to use adduser command with a bash script

text: I'm trying to find the way to use adduser this way:               adduser $username $password      or something like this too:               adduser -u $username -p $password      I know I could use useradd and so, but right now I want to use adduser. Thanks!


title: How can I execute a shell script that exists in a longish path with a single command without first cd'ing to the directory?

text: In Linux I always `cd` to a longish path and then run the script:               cd /scratch/someDir/someOthernestedDir/     ./shellscriptName.sh       How can I avoid achieve typing this longish path and then executing the command with a single step? Some thing like the below from any path should do what I want:               executeMyCommand      P.S: I am using C-shell.               [subhrcho@slc04lyo bin]$ echo $0     csh


title: Using ncurses for basic GUI on a process started inside an init script

text: I have a custom written application that runs on a embedded setup (buildroot). My application has to run every time the target device boots up and so I wrote an init script to do this and it works fine. However, part of the application has a very basic 'GUI' written with ncurses. The problem I have is that it works fine when I log onto directly or over ssh, but when the binary starts through init, I am unable to access the functionality of the ncurses code. I presume that this is because the console I am logged into is not the same as the console that starts the binary. So my question is do applications/daemons have an associated console, and if so, is there any way to transfer it to another console? If not are there any other ways I could go about solving this problem? I was thinking perhaps enforcing an automated login and then getting the application to start through the login console so that when a monitor is attached to the device at least the GUI will be accessible. Or is there a better way?


title: Can I see in history output from which directory I had actually issued a command?

text: `CTRL+R` allows me to reverse search through the command history which is great but can I also find out from which directory that command was run? I am using C-shell in Linux.


title: AiX topas snapshot to web

text: My script for taking snapshot from TOPAS looks like this:               #!/usr/bin/bash     whoami     export TERM="xterm"     (sleep 3; echo q)| topas -Emi 2 | \        tr -d '\r'                                             | \        sed 's/\'$'\033''\[[0-9][0-9]G/       /g'              | \        sed 's/'$'\033''/\'$'\n''/g'                           | \        grep -e '^en' -e '^lo' -e '^Network'                   | \        awk '{ printf("%-8s%10s%10s%10s\n", $1,$2,$5,$6); }'   | \     cat      ... fine tuning of removing special characters, and its result inside bash terminal is great:               root     Network       KBPS     KB-In    KB-Out     lo0         3652.9    1826.0    1826.9     en1         2133.4    2109.0      24.4     en2            0.1       0.1       0.0     en0            0.0       0.0       0.0      However, I wanted to shown it at my admin-web with simple:               <?php header('Content-type: text/plain'); echo `myscript.sh`; ?>      But web result is bad (no network interfaces shown):               apache     Network       KBPS     KB-In    KB-Out      Wrapping SUID bit and managing to run it as 'root' does not help, same problem persists. So I think that it is not a privilege issue. Maybe it is something about TOPAS behaviour with TERMINAL (not sure what terminal $TERM should be to make this happen) Does anyone have a clue?


title: Using KSM in OpenVZ

text: I am setting up an OpenVZ node and while everything looks good so far, I am confused as to whether or not KSM works in OpenVZ. The majority of this thread seems to note that KSM has been disabled due to some sort of conflict. The last person seems to have got it to work, but is using KVM. This is the best info I could find on KSM in OpenVZ. https://bugzilla.openvz.org/show_bug.cgi?id=1623 If I could use OpenVZ with KSM it would be very useful, as I intend to run many near identical processes which require full isolation from each other. Thanks in advance for any pointers which would help me better understand how to approach OpenVZ (or just stick with KVM)!


title: Menu not shown in GTK applications

text: The menu bar is hidden for all my GTK applications (LXTerminal, Leafpad, Thunar...). How can I show it? I have the issue with OpenBox, and with Gnome- shell.


title: Awesome not showing up in GDM?

text: I recently installed debian with xfce. Once installed, I upgraded to Debian testing and installed awesome, then rebooted. When I click the list of session options at GDM's login screen, the only options are xfce and "default" (xfce). Awesome has a desktop file in /usr/share/xsessions, but GDM can't find it for whatever reason.


title: Should I remove previous version of software before install new one?

text: I have installed qemu by slackbuild. Now I want to install newer version of it from official website. Is it necessary to remove the old one before install the new version?


title: mysqldump should prompt for password

text: When I'm executing mysqldump command from localhost or from remote host, it's not prompting me for password. I want the password prompt even though I'm running it from remote or from local. On my server there is no ~/.my.cnf present. Also I have Ubuntu server. I'm running mariadb. Also I would like to know how mysqldump command pick up a password everytime ?


title: Is the shell permitted to optimize out useless terminating commands?

text: If a shell is asked to perform a probably useless ( _or partially useless_ ) command known to terminate, such as `cat hugeregularfile.txt > /dev/null`, can it skip that command's execution ( _or execute a cheaper equivalent, say,_ `touch -a hugeregularfile.txt`)? More generally, is the shell similar to C compilers in that it may perform any transformation on the source code, so long as the externally observable behaviour is _as-if_ the abstract machine evaluated it? **EDIT** Nota Bene: My question as originally posed had a title that asked whether the shell is _permitted_ to do these optimizations, not whether it should or even whether implementations that can do them exist. I'm interested in the theory more than the practice, although both are welcome.


title: Mouse is flickering in new debian install

text: I initially thought this might be a display driver issue but after installing the proprietary ATI drivers and now the free ones I am still getting it. My mouse disappears when I scroll or write sometimes (but not always). It also flickers when I move, especially when I am in the `system settings` menu hovering over icons (it is only visible when I move the mouse, and even then it flickers a lot). I did a search and this seems to be a common problem. This post for ubuntu suggests removing an unknown monitor, but I only have 1 monitor that I can't remove. This post suggests the problem is `unclutter`, which I don't have installed. Besides, the mouse disappearing doesn't seem to be time-related. Any suggestions? I'm new to linux so I don't know what information I should be providing about my system. I'm running Debian Wheezy with a USB mouse. I have tried attaching it to the PC's usb port as well as a USB hub, without any change. It's a fresh install and this problem has existed since the first boot.


title: zsh adds tab character when autocompleting

text: I have zsh 4.3.10 installed on a RHEL 6.4 box. I'm not sure why this happens, but when I but `Tab` to autocomplete things, it _also_ adds a tab character. For example:               rocket@rhelbox www % vim    vim     external command     ----------------     vim vimdiff vimtutor      So, when I type `V``I``M``Tab`, after the `Tab` it adds a tab to my console, then finishes the autocomplete action. The command works fine, it's just annoying. I cannot backspace to remove it either. I don't know what's causing this. Here's my `.zshrc`:               # Initialize Autocompletion and Autocorrection     autoload -U compinit promptinit     compinit     promptinit     #prompt redhat     zstyle ':completion:*:descriptions' format '%U%B%d%b%u'     zstyle ':completion:*:warnings' format '%BSorry, no matches for: %d%b'     zstyle ':completion::complete:*' use-cache 1     setopt correctall          # Custom PS1     autoload -U colors && colors     # http://www.understudy.net/custom.html#Z_color     fg_purple=$'\e[0;35m'     #PS1="%n@%m %c %% "     PS1="${fg_purple}%n@%m %{$fg[yellow]%}%c %% %{$reset_color%}"               # cd is automagically added     setopt autocd          # Save History     HISTSIZE=1000     SAVEHIST=1000     HISTFILE=~/.bash_history     setopt hist_ignore_all_dups          # Keybindings     bindkey "^[OH" beginning-of-line     bindkey "^[OF" end-of-line     bindkey '^?' backward-delete-char     bindkey "\e[3~" delete-char          # Aliases     alias ls="ls --color=auto"          # Set (SVN) Editor to vim     export SVN_EDITOR=vim     export EDITOR=vim


title: How can I access networked filesystems that I've mounted in Nautilus?

text: I've mounted a networked filesystem in GNOME by clicking on the icon in the left of Nautilus. However, when I use the terminal, I can't figure out how to access that filesystem. Is it possible?


title: E: Unable to locate package tlp

text: I an trying to install `tlp` as explained in the website by addin `ppa` as follows in `Linux Mint 15`               sudo add-apt-repository ppa:linrunner/tlp     sudo apt-get update       and then `sudo apt-get update` produces               Hit http://panthema.net precise Release.gpg     Hit http://archive.ubuntu.com raring Release.gpg                                    Hit http://panthema.net precise Release                                             Get:1 http://packages.linuxmint.com olivia Release.gpg [198 B]                      Hit http://security.ubuntu.com raring-security Release.gpg                          Hit http://panthema.net precise/main i386 Packages                                  Hit http://archive.ubuntu.com raring-updates Release.gpg                            Get:2 http://packages.linuxmint.com olivia Release [18.5 kB]                        Hit http://security.ubuntu.com raring-security Release                              Hit http://archive.ubuntu.com raring Release                                        Hit http://security.ubuntu.com raring-security/main i386 Packages                   Hit http://archive.ubuntu.com raring-updates Release                                Get:3 http://packages.linuxmint.com olivia/main i386 Packages [23.5 kB]             Hit http://security.ubuntu.com raring-security/restricted i386 Packages             Hit http://archive.ubuntu.com raring/main i386 Packages                             Hit http://archive.ubuntu.com raring/restricted i386 Packages                       Hit http://security.ubuntu.com raring-security/universe i386 Packages               Get:4 http://packages.linuxmint.com olivia/upstream i386 Packages [9,237 B]         Hit http://archive.ubuntu.com raring/universe i386 Packages                         Hit http://security.ubuntu.com raring-security/multiverse i386 Packages             Get:5 http://packages.linuxmint.com olivia/import i386 Packages [40.1 kB]           Hit http://archive.ubuntu.com raring/multiverse i386 Packages                       Ign http://panthema.net precise/main Translation-en_US                              Hit http://security.ubuntu.com raring-security/main Translation-en                  Ign http://panthema.net precise/main Translation-en                                 Hit http://archive.ubuntu.com raring/main Translation-en                            Hit http://security.ubuntu.com raring-security/multiverse Translation-en            Hit http://security.ubuntu.com raring-security/restricted Translation-en            Hit http://archive.ubuntu.com raring/multiverse Translation-en                      Hit http://security.ubuntu.com raring-security/universe Translation-en              Hit http://archive.ubuntu.com raring/restricted Translation-en                      Hit http://ppa.launchpad.net raring Release.gpg                                     Hit http://ppa.launchpad.net raring Release.gpg                                     Hit http://ppa.launchpad.net raring Release                                         Hit http://archive.ubuntu.com raring/universe Translation-en                        Hit http://ppa.launchpad.net raring Release                                         Hit http://ppa.launchpad.net raring/main Sources                                    Hit http://archive.ubuntu.com raring-updates/main i386 Packages                     Hit http://ppa.launchpad.net raring/main i386 Packages                              Hit http://archive.ubuntu.com raring-updates/restricted i386 Packages               Hit http://ppa.launchpad.net raring/main Sources                                    Hit http://archive.ubuntu.com raring-updates/universe i386 Packages                 Hit http://ppa.launchpad.net raring/main i386 Packages                              Hit http://archive.ubuntu.com raring-updates/multiverse i386 Packages               Hit http://archive.ubuntu.com raring-updates/main Translation-en                    Hit http://archive.ubuntu.com raring-updates/multiverse Translation-en              Hit http://archive.canonical.com raring Release.gpg                                 Hit http://archive.canonical.com raring Release                                     Hit http://archive.canonical.com raring/partner i386 Packages                       Hit http://archive.ubuntu.com raring-updates/restricted Translation-en              Hit http://archive.ubuntu.com raring-updates/universe Translation-en                                                                                Ign http://security.ubuntu.com raring-security/main Translation-en_US                                                                                Ign http://ppa.launchpad.net raring/main Translation-en_US                                                                                Ign http://ppa.launchpad.net raring/main Translation-en                                                                                Ign http://security.ubuntu.com raring-security/multiverse Translation-en_US                                                                                Ign http://ppa.launchpad.net raring/main Translation-en_US                                                                                Ign http://archive.canonical.com raring/partner Translation-en_US                                                                                Ign http://security.ubuntu.com raring-security/restricted Translation-en_US                                                                                Ign http://ppa.launchpad.net raring/main Translation-en                                                                                Ign http://archive.canonical.com raring/partner Translation-en                                                                                Ign http://security.ubuntu.com raring-security/universe Translation-en_US                                                                                Ign http://packages.linuxmint.com olivia/import Translation-en_US                                                                                Ign http://packages.linuxmint.com olivia/import Translation-en     Ign http://packages.linuxmint.com olivia/main Translation-en_US     Ign http://packages.linuxmint.com olivia/main Translation-en     Ign http://packages.linuxmint.com olivia/upstream Translation-en_US     Ign http://packages.linuxmint.com olivia/upstream Translation-en     Ign http://archive.ubuntu.com raring/main Translation-en_US     Ign http://archive.ubuntu.com raring/multiverse Translation-en_US     Ign http://archive.ubuntu.com raring/restricted Translation-en_US     Ign http://archive.ubuntu.com raring/universe Translation-en_US     Ign http://archive.ubuntu.com raring-updates/main Translation-en_US     Ign http://archive.ubuntu.com raring-updates/multiverse Translation-en_US     Ign http://archive.ubuntu.com raring-updates/restricted Translation-en_US     Ign http://archive.ubuntu.com raring-updates/universe Translation-en_US     Fetched 91.6 kB in 20s (4,571 B/s)     Reading package lists... Done      But when I try               sudo apt-get install tlp tlp-rdw       it gives               Reading package lists... Done     Building dependency tree            Reading state information... Done     E: Unable to locate package tlp     E: Unable to locate package tlp-rdw      In `/etc/apt/sources.list.d/linrunner-tlp-raring.list` I have               deb http://ppa.launchpad.net/linrunner/tlp/ubuntu raring main     deb-src http://ppa.launchpad.net/linrunner/tlp/ubuntu raring main


title: Check `fsck` automatically

text: I need to run `fsck` so that it automatically fixes problems (i.e., `fsck -y`). And because I am using "systemd" instead of "init" in the linux system, I cannot modify the `/etc/default/rcS`. So what should I do to make this check run automatically?


title: setcap fo rhel5

text: A quick question , I am not able to find much info to run `setcap` on `rhel5` . I searched few packages in my system                    # yum install libcap          Loaded plugins: product-id, security, subscription-manager          Updating Red Hat repositories.          Setting up Install Process          Package libcap-1.10-26.x86_64 already installed and latest version          Package libcap-1.10-26.i386 already installed and latest version          Nothing to do      I also searched binary `find / -name setcap` but it is saying there is no `setcap` command .


title: Arch linux installation problem

text: I used to work on Arch Linux at my desktop. One year ago I started to use laptop Samsung np530u3b. This laptop has one bootable HDD Hitachi (500gb) and 16gb ssd (so system from this SSD can't be loaded cause SSD is not present in BIOS ). I've been using Fedora Linux for one year and everything worked perfectly. When I've installed fedora, HDD (`/dev/sda`) was bootable and I installed grub there. And many other people installed distros like Fedora or Ubuntu correctly. Nowadays when I've trying to install Arch Linux I have one big problem: laptop can't load grub installed at HDD (`/dev/sda`). The laptop goes to interminable reboot, and grub doesn't load everytime. I installed Arch from Wiki (prepared hard drive, installed `base` and `base-devel`, etc) but laptop's still unusable to work. I tried to use GPT, MBR partition table at laptop but it wasn't the solution. BTW, Samsung np530u3b makes me crying. All UEFI, secure boot, fast boot were turned off. But laptop still cannot load system correctly. Only displaying blank screen without any symbols for ~1 second and reboot after that. What have I done wrong?


title: How to have Linux wipe/randomize/sanitize RAM at shutdown?

text: For mysterious reasons I still double boot sometimes into Windows. My problem is that I fear that information may leak because the RAM memory is accessible to Windows. (the Linux partitions are encrypted and the bootmedia is not inserted, though). Is there a way to setup (in a recent kernel and GNU/Linux based system) a way to have the kernel wipe the memory at shutdown? Also since LUKS plays an important role, does it wipe its memory at shutdown to avoid leakage and also "cold boot attack"?


title: Can not off output by xrandr

text: I have 2 monitors, one connect by VGA, one connect by HDMI. When I unplug VGA, the status is still "connected". Xrandr cannot off output VGA. Do you resolve this problem?


title: VMap Fedora 12 equivalent

text: I'd like to see how Fedora manages the Virtual Memory. I was used to VMap on Windows, however I can't find anything to download on Fedora 12 that could fit my needs. I can't find something like `memstat` for example. Do you happen to know which package I could use? Is there a software I can download on the internet maybe?


title: How to convert a video file from mp4 to mp2

text: I have been searching a lot and I can't find a solution. How do you convert a video from MPEG-4 to MPEG-2? That shouldn't be too hard. But the `avconv` man pages don't give enough info to do this right. If I just do               avconv -i input.mp4 output.mpeg      it does create an MPEG-2 file, but it's unwatchable - the image quality is horrible. The size of the file on disk also is about a third of the size of the input file.   So obviously I need to set some parameter to some value that preserves the quality, and that's where the troubles start. I began with trying the `-b` parameter, like so               avconv -i input.mp4 -b 384k output.mpeg      but that didn't really improve things. It was possible to decrease the quality even further, by using a lower number, but higher than 384k always gave me an error. So `-b` is not the right parameter to use, obviously. I tried many other things, and I could post everything here, and the results, what went wrong, which pages I read trying to find the solutions, but that would be a long and boring list of parameters and error messages and frustrations, so I will spare you these. By now I just want to know what I should use to get a decent picture.


title: I2c with 16 bit addresses

text: So, i'm trying to interface with a device that has 16-bit addresses, and the master I'm using also supports this mode. However since this isn't standard I2C (should be 8-bit addresses) I haven't been able to use it in Linux. Is there a way to address this device, without re-writing the Linux I2C bus interface driver? P.S I'm able to write to it, just not read from it.


title: run bash in script

text: I want to creat a script to run an another script with a several parameter               exp=([1]=bloc [2]=ins [3]=rep [4]=op)     for j in ${!exp[*]}     do         arr=([1]=mem [2]=gen [3]=usr)         for i in ${!arr[*]}         do         var="bash createGnuploat.sh "${exp[j]}" ../Result/ 0" ${arr[i]} ${exp[j]}         $var         done     done      And i have this error :               run.sh: line 9: =bash createGnuploat.sh op ../Result/ 0: Aucun fichier ou dossier de ce type      What's problem please ?


title: Backing up partition using dd and changing files

text: I'm a Linux newbie. From what I've read, you can back up an entire partition like this:               dd if=/dev/sda1 of=/media/external/backup      Can anyone tell me if I need to worry about files being changed while doing this? Could it be that some critical system file might get changed during the dd operation and then when you want to restore the backup, it won't work? I'm on Ubuntu 12.04.


title: printing to "One Single CUPS Server" can not find queues if 'ServerName' is a CNAME

text: Running "OpenSuSE 11.4" with "cups-client-1.4.6-6.1.i586" installed, I try to use one single CUPS-server to do all my printing jobs / to manage my queues. In **YaST -> printer** I've selected > [x] Do All Printing Directly via One Single CUPS Server and next to the field "name or IP Address" I enter `print` (as a CNAME for our print server), but no queue comes up in main window. If I change the ServerName to print server's hostname `dom-print`, everything works fine and queues are appearing properly. * * * Additional info: nslookup tells the following about `print` ( `x`/`y`/`z` -> yeah, it's all top secret, you know.. ): > Server: 10.0.x.y   >  Address: 10.0.x.y#53   >   >  print.dom.tld canonical name = dom-print.dom.tld.   >  Name: dom-print.dom.tld   >  Address: 10.0.x.z   >


title: Very basic Linux for educational purposes

text: I want to play with Linux to better understand how it works. Thus, I am looking for a very basic and small Linux to play with. I tried small Linux distributions (which copy themselves to RAM), but they have their own structure (like Live CD). Instead, I wish to have a minimal but standard Linux structure. I installed minimal version of Debian on USB and setup GRUB to separate this experiment from my main computer. However, Debian (even minimal) is far more advanced than what I need. What is the best method to copy a very minimal version of Linux on USB and boot with GRUB? Each distribution has its own features and options, but I prefer to be closer to the standard Linux (Linux kernel) without customization of a distribution.