13
votes
1answer
469 views

How do I use the TPM to seal away data on an UEFI booted system?

I would like to seal away files on my system using keys stored in the TPM. Since my system uses UEFI to boot, I can no longer use TrustedGrub as a boot loader to maintain my trust chain. Are there any ...
1
vote
4answers
6k views

How to execute more than one command in a newly opened terminal?

I have a script that I want to use to open new terminals and type commands in them. A command like gnome-terminal opens a new terminal. Also, if I do gnome-terminal -e myprogram1 it will ...
1
vote
1answer
1k views

Attaching the time-stamp to the name of a log file

I have a Makefile which I invoke using the following command: $ make analyze foo=History01 I have the following Makefile and I need to attached the timestamp to the name of the log file: ...
3
votes
2answers
760 views

Mount harddrive under different name?

When I plug a external HDD into my Rasberry Pi (running Raspbian) it automatically mounts as /media/2ad496774-3eb8-47bb-2bf5e-788f8eb89e54 where folder underneath it are then accessible by going ...
4
votes
1answer
386 views

GNU `tar` runs `stat` on an excluded directory. Is it normal?

I'm running tar as root like this: cd / tar --create \ --verify \ --exclude-backups \ --exclude-caches \ --auto-compress ...
5
votes
2answers
114 views

How to set up interchangeable VM guest/hosts

I'm looking for a way to set up a computer so that the disk is partitioned for multi-booting to two operating systems: Linux and Windows. Whichever one is booted, I want the other to be accessible as ...
3
votes
1answer
5k views

How to make nemo support compressing files by context menu?

I use Cinnamon on ArchLinux and Nemo is it's default file manager. I've tried 3 GUI file archivers (p7zip with WxGTK, peazip & file-roller), but none of them add a "compress option" in the context ...
6
votes
0answers
475 views

Allocated Memory difference in xen guests after using Linux 3+ kernel [closed]

Can someone explain to me why there is a memory difference in Guests with the same configuration? Hypervisor: xen 4.2 64 bit VM1: Centos 5.7 with 2.6.18-274.el5xen Assigned memory from xen is ...
2
votes
0answers
327 views

Logwatch ignores self-defined service, but explicit setting --service $service works

I am using SSLH on my server to accept both SSL and SSH connections on Port 443. As the logs of sshd and apache2 show each incoming connection via SSLH originating from 127.0.0.1, I want to add the ...
2
votes
0answers
1k views

CUPS can't print to printer on network

I am having problems printing to the printer connected to my (SBS2003) business's network. I know the IP of the printer and I can ping it and even print files from it by going to 192.168.0.50 in ...
1
vote
1answer
266 views

Samba Shared Folder

I want to share a folder on my RHEL to all windows users. My requirements are: users need to access from windows users need read only access no authentication required What I have tried: Samba ...
0
votes
1answer
1k views

Using a file input as stdin for a shell script does not work

I have the following script code: test.sh echo "BEGIN" while read CMD <&1; do [ -z "$CMD" ] && continue case "$CMD" in start) echo "get_start" ;; ...
5
votes
3answers
9k views

Why yum's download speed is too slow

My yum download speed in fedora is in average less than 5KB/s and goes to less than 1KB/s but my normal download speed is around 140KB/s. I tried installing yum-fastestmirrors but didn't help. Any ...
0
votes
1answer
1k views

Can't send mail with sendmail

I use SENDMAIL, I noticed that none of my mail is sent. I have all my mail in the /var/spool/mqueue when I looked at the log and I have this error MDeferred: Connection refused by ...
1
vote
0answers
382 views

What's wrong with my Xorg's config?

I'm using gnome under Arch Linux in my laptop with a 1920*1080 monitor on the left of it, I set the monitor as my primary display in GNOME and everything works fine after I log in. However, GDM ...
4
votes
1answer
481 views

How Can I Automate the Change between a Python Script and a Nohup Python Script?

I have a Raspberry Pi connected to a digital temperature probe, which measures my fermenting beer. A python script reads the temperature every second and prints it to the console, and stores it in a ...
2
votes
2answers
481 views

Unable to force passphraseless ssh authentication while port forwarding

I'm completely at a loss as to what is preventing my local machine from authenticating the connection that is being forwarded from the remote server. I've read a ton of the posts on here regarding ...
3
votes
0answers
800 views

How to migrate existing linux system to LVM partitioning

I want to migrate my system to LVM. My current setup is the following: Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = ...
0
votes
1answer
42 views

Is there such a scheduler and is it feasible?

I read about a scheduling algorithm called EDD which always works on the next deadline and that is feasible. Would it also be feasible to within each time windows or slice, work on all processor or ...
3
votes
0answers
3k views

Permission denied when Ubuntu is attempting to mount to a remote Windows share folder

Fellow guys, I encountered the error when I's mounting my Ubuntu server to a remote Windows share folder, the following is the error on terminal after I typed command line 'mount -a': mount ...
6
votes
4answers
23k views

usermod -d /path user - User is currently logged in

good Day I want to make a change to a user on my CENTOS server. I want to change his default directory. When running the command: usermod -d /path_to_new_dir david terminal gives me the following ...
1
vote
1answer
77 views

Why I got a strange result for fdisk -l

root@host [~]# fdisk -l Disk /dev/sdc: 128.0 GB, 128035676160 bytes 255 heads, 63 sectors/track, 15566 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 ...
1
vote
1answer
200 views

How can I create cron jobs in specific files?

I want to have a separate folders for cron jobs like: /mydata/cronjobs Now in that folder I want to have files like backup_server which will have the content like: 30 3 * * 1-5 ...
3
votes
1answer
621 views

How do I run Gnome from a systemd-nspawn container in a second X server?

I'm using systemd-nspawn to "boot" a second Linux OS from a USB hard disk. I'd like to launch that OS's Gnome Desktop in a second X server running on the same machine on a different tty than the ...
0
votes
1answer
4k views

Open xlsm file in linux?

For all my spreadsheet needs, I've found Open/Libre Office works fine, and I can receive xls and xlsx files from colleagues, and send files to them. However, I have recently been sent a large xlsm ...
3
votes
1answer
3k views

How to parameterize the LocalForward option in ssh_config?

I'm starting with this fully working ssh command: $ ssh -fNL 3306:localhost:3306 coolio@database.example.com This config gets me part of the simplification I am after: Host tunnel HostName ...
10
votes
2answers
31k views

ps switches to display PID, PPID, PGID, and SID collectively

I tried ps with different kinds of switches e.g. -A, aux, ef, and so forth but I cannot seem to find the right combination of switches that will tell me the Process ID (PID), Parent Process ID (PPID), ...
0
votes
0answers
350 views

Unable to autocomplete ONLY when typing a make command

I'm running Ubuntu Linux 10.04. And I have the following in my .bashrc file: if [ -f /etc/bash_completion ] && ! shopt -oq posix; then . /etc/bash_completion fi I'm having a problem ...
1
vote
2answers
161 views

Package name suggestion in fedora

In Ubuntu when an app is not installed and in Terminal you type for example gvim it says that this app is contained in package vim-gnome and try installing that but in fedora that doesn't happen with ...
1
vote
2answers
8k views

Failing on apt-get update

Very recently when I have been attempting to check for updates on my laptop (Ubuntu 12.04), the check fails. sudo apt-get update: W: GPG error: http://us.archive.ubuntu.com precise Release: The ...
2
votes
1answer
340 views

Editing Conky configuration variables from Lua

I've been messing around with Conky for a while now and I recently started dabbling in Lua scripting. One of the things that used to bug me about a "flat" conkyrc approach (as opposed to a combined ...
2
votes
1answer
3k views

How to “mute” ls command?

Suppose I do a recursive ls $ ls -R on the root directory. I get a lot of messages like these - ls: cannot open directory ./var/lib/sendmail: Permission denied ls: cannot open directory ...
2
votes
2answers
61 views

How to paste same information into 2 different files?

I'd like to create two files in /etc/skel using a script which does many other things in addition to the creation of the files in /etc/skel. The part from script regarding /etc/skel looks like this: ...
1
vote
2answers
389 views

add server name before filename with uname -n

Here is my command in my script: mv -f -v $oldfile /infanass/dev/admin/backup/${oldfile##*/}_$(date +%F-%T) Right now the output is: file1.txt_2013-07-11-15:08:16 I want the server name to show ...
1
vote
2answers
117 views

How to use AWK record separator?

Here is the input: * true, false, yes, no, always, never. * ******************************************************************************* default: su = true ... maxexpired = ...
2
votes
0answers
273 views

How to freeze system clock for a wine application? [duplicate]

I have a windows program, that works only to a particular date. It's a legacy application and I can't change the source code. Is there any way to set a specific date in the system clock for the wine ...
1
vote
1answer
204 views

Rsync is skipping encrypted (but mounted) home directory

I have two user-home-directories in /home/, /home/user1 and /home/user2, whereas user1 is encrypted (using ecryptfs) and user2 is not. If I use rsync like this (invoked as user1 which is a sudo user) ...
1
vote
2answers
370 views

Raid5 Device Has Less Space Than Expected

I have 3 3TB drives, and have raid5ed them together. I would expect to get a resulting device around 6TB. The command I used: mdadm --create md0 --level=5 --raid-devices=3 /dev/sda1 /dev/sdb1 ...
1
vote
2answers
2k views

fixing cpan by resetting it

So I ran into a simple little problem. This is a somewhat rookie mistake. I wasn't connected to the internet and started cpan. It started to configure for the first time and then when I realised a ...
6
votes
2answers
8k views

What is the tun network interface for?

I noticed when running ifconfig that there is a network interface called tun0 and it has an ipv4 address. A bit of research shows that it is a tunneling device, but I don't really know how it's used, ...
2
votes
3answers
956 views

How can I get kqemu or even just qemu to show up in virsh capabilities on CentOS 6.4?

I have a CentOS 6.4 box that I'm trying to set up a VM on to run WinXP. This box doesn't have VT, which may not be ideal, but I'll settle for less than ideal. Apparently I should be able to install ...
2
votes
1answer
76 views

SSH asks password when outside .ssh/ but not when inside .ssh/

This is the strangest I've ever encountered and I have no idea how to fix it. I have many entries in my .ssh/config file because I use a number of keys. When I ssh and I am located outside my .ssh ...
2
votes
1answer
437 views

How can I work around the program failing if there is *any* stdin?

For example, the following works fine: /usr/bin/program It produces some output, and gets to result. But if I invoke it like this: echo -n | /usr/bin/program or this echo -n | bash -c ...
1
vote
0answers
196 views

adb connection problem on Kubuntu 13.04 x64

I'm facing a problem with ABD connection under Kubuntu 13.04 x64. Every time I try to push/pull/shell ls the adb disconnects from device. I tried the following solutions: Added device ID into ...
0
votes
0answers
656 views

Packaging MATLAB

I have decided to try and package MATLAB for Arch Linux. The MATLAB program consists of a core program and a number of add on toolboxes. I would like to create a different independent package for each ...
6
votes
3answers
18k views

bash script error stty: standard input: Inappropriate ioctl for device

I'm using here-documents in a bash script to automate installation and setup where a password is required many times. I enter the password once and the script passes it to the various commands. In ...
2
votes
1answer
1k views

Trouble with mv and adding the date

I want to be able to move $oldfile to my backup folder and add the date to the file name. So I tried this... mv $oldfile /home/u0146121/backupfiles/$oldfile_$(date +%F-%T) This just gives me this ...
1
vote
1answer
341 views

mutt weird action

I wrote a little script to send multiple mails from a list with differents subjects. #!/bin/bash while read -a line do mailadd=${line[0]} subject=${line[1]} mutt -s `echo $subject` `echo ...
1
vote
1answer
696 views

virt-install error: install methods 'cannot be specified for container guests'

I was following the Dell RHEL VM guide but working on CentOS 6.4 i386/686, and got to the virt-install step. After correcting a typo, I went back and deleted the vm.xml file it was suggested I ...
1
vote
0answers
509 views

How to check Grub2 config file?

When I boot my Fedora 19, I get a very brief error message when Grub2 loads. It's too quick to read, as it switches to the graphical mode almost instantly. My idea is to test the config file. I ...

15 30 50 per page