Hi,
how can I install the nVidia drivers for their graphics cards on a SLES11 system? I can only find HOWTOs for OpenSuse and they don't seem to work on SLES11.
With URxvt and xterm it is possible to use a virtual terminal supporting 256 colors instead of only eight. Since my Intel GMA graphics card is well-supported by the KMS framebuffer driver, I am exclusively working on the TTY. Unfortunately it only supports eight colors although with MPlayer (-vo fbdev/fbdev2) and other framebuffer tools far more can be addressed. Is there a way to tell the TTY to use more than eight colors?
So i'm really loving the whole gnome-do/docky thing. My question is that on other docks, you can hold down a modifier key to launch a new instance rather then switching to an already opened instance of an app. So lets say I have chrome on the win7 dock
first click launches chrome
other clicks will focus the opened window
shift click will open a new instance of chrome
ctrl-shift-click will launch a new instance as admin
is there anything similar in docky?
I'm interested in the current usage of cpu - precisely cpu% and wait% - for each thread in a specific application. Is it possible to get that information from somewhere?
I know that top can split information per real thread (ones with pid), but it doesn't show the system/user/wait cpu usage split for each of them. I would also like some way to log that info. Do you know any apps (or apis) that can do that?
Hi Greeting!!
I want to setup small cloud computing using our old 2 core server system? we are new to cloud system we have google for the same. We are looking host VM's on top any one has done pls share me doc or how to ? we have 50 plus server which we are not using. 2 core each 4GB RAM, 1TB HDD
centos is my base os we looking host windows. Right now we can use this server only paravirtualization
ignore my english
Thanks
I am trying to use encfs in reverse mode. I understand that the passphase is used to encrypt a key which is then stored encrypted into the encfs6.xml file.
What I do not understand is the following.
Create en encrypted virtual fs of a folder by using passphrase A
unmount this folder.
Delete all contents including the encfs6.xml file
If you then try to do the same with another passphrse I would expect that a new encfs6.xml would be created. However I get the following error message:
"Error decoding volume key, password incorrect"
So I wonder, what volume key is incorrect, I thought it was in the encfs6.xml file ?
I'm pretty new to networking so please forgive any terminology mistakes.
I have 2 servers connected with a GRE tunnel.
Server1 (10.0.0.1) ---- Server2 (10.0.0.2)
I want to be able to bind to the public IPs on Server2 using Server1. To do this, I setup virtual interfaces with Server2's public IPs on Server1 and then used routing rules on Server1 to route the packets through the GRE tunnel.
On Server1:
ip rule add from [Server2's first public IP] table gre
ip rule add from [Server2's second public IP] table gre
ip route add default via 10.0.0.2 dev gre1 table gre
This works great and I can see the packets arriving via GRE on Server2. I can see the packet exiting the tunnel on Server2's gre1 device as shown:
From Server1: ping -I [Server2's public ip] google.com
tcpdump from Server2's GRE tunnel device:
12:07:17.029160 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto ICMP (1), length 84)
[Server2's public ip] > 74.125.225.38: ICMP echo request, id 6378, seq 50, length 64
This is exactly the packet I want. However, I'm not seeing it go out at all on eth0:0 (where Server2's public IP is bound to).
I've tried to use routing rules to get packets coming from Server2's public IP (which would be coming out of dev gre1) to go through dev eth0 on the public default gateway and that doesn't work either.
I'm at a loss, thank you to anyone who can help.
Hi,
I installed CentOs on VMware running on windows XP.
When trying to configure it to connect to the internet, I get an error message when trying to bring up the network interface:
[root@VMLinux ~]# /et/init.d/network start
Bringing up loopback interface: [ OK ]
Bringing up interface eth0:
Determining IP information for eth0... failed
[FAILED]
VM is running on a machine that has access to the network, I tried it on two different networks that have DHCP enabled.
I tried to configure VMWare to use a bridged connection as well as NAT connection.
An image of Ubuntu runs fine on the same VMware.
What am I missing here?
Thanks.
I'm writing, and testing, a little tutorial for my groupmates involved in an openSSL homework. We have a bunch of PDF files, I'm the CA and each one should send me a signed PDF for me to be verified.
I've told them to do the following (and tried to do it by myself)
Request and obtain a certificate (I'll skip this part)
Create a MIME message with the PDF file in it makemime -c "text/pdf" -a "Content-Disposition: attachment; filename=”Elaborato.pdf" Elaborato.pdf > Elaborato.pdf.msg
Sign with openSSL openssl smime -sign -in Elaborato.pdf.msg -out Elaborato.pdf.p7m -certfile ca.pem -certfile nomegruppo.crt -inkey nomegruppo.key -signer nomegruppo.crt
Verify with openssl smime -verify -in Elaborato.pdf.p7m -out Elaborato-verified.msg -CAfile ca.pem -signer nomegruppo.crt
Extract attachment with munpack Elaborato-verified.msg
View with Acrobat Reader
The problem is that even if I get a file that (from its binary content) resembles a PDF file my current Ubuntu PDF viewer doesn't read it. The XXXElaborato.pdf extracted by munpack is a little bit smaller than the original.
What's the problem with this procedure? In theory, they should send me the signed S/MIME message and I should be able to read the PDF within it. Why can't I restore the original content of the PDF file?
How do I find out if new versions of installed packages exist without installing them via aptitude in non-interactive mode? Is there anything comparable to the MacPorts port outdated command?
I want to install Clonezilla-Server(192.168.1.100) in a network that already have a DHCP Server (dd-wrt with dnsmasq - 192.168.1.1).
I've installed Clonezilla-SE on ubuntu Server 10.10, once installed and configured Clonezilla Server i've removed the DHCP-Server and set pxe server address in dnsmasq configuration on DHCP Server :
dhcp-boot=pxelinux.0,,192.168.1.100
When i try to start from PXE a Computer in the network clonezilla start, but give me an error that the ipddress of the machine is not given by the clonezilla server and can't continue ...
Someone has already tried to configure Clonezilla-SE in a similar enviroment?
Is there some configuration on DRBL server of Clonezilla that i need to do ?
Inspired by this question
What are the must have packages for Ubuntu? List one in each answer.
Scope is for Ubuntu only. Debian can have an another thread.
I am trying to live migrate a VM (domain) between two Xen servers.
I have xen locking (xend-domain-lock = yes) configured with a ocfs2 shared storage between them. This locking is working fine. If I try to start up the VM on the secondary server it refuses to start (which is correct).
The problem I am having is when trying to do live migration, it seems like it is trying to remove the lock twice. The first lock it removes is for "domain test", the second is for "migrating-test" which does not exist. Should their be a lock for this "migrating-test" VM?
These are the relevant options in the xen config file:
(xend-relocation-server yes)
(xend-relocation-port 8002)
(xend-relocation-address '')
(xend-relocation-hosts-allow '')
(xend-domain-lock yes)
(xend-domain-lock-path /var/lib/xen/lock)
This is the section of the log:
[2010-06-10 10:45:57 14488] DEBUG (XendDomainInfo:4054) Releasing lock for domain test
[2010-06-10 10:45:57 14488] INFO (XendCheckpoint:474) SUSPEND shinfo 000c6ceb
[2010-06-10 10:45:57 14488] INFO (XendCheckpoint:474) delta 21ms, dom0 95%, target 0%, sent 57Mb/s, dirtied 173Mb/s 111 pages
4: sent 111, skipped 0, delta 6ms, dom0 100%, target 0%, sent 606Mb/s, dirtied 606Mb/s 111 pages
[2010-06-10 10:45:57 14488] INFO (XendCheckpoint:474) Total pages sent= 131295 (0.99x)
[2010-06-10 10:45:57 14488] INFO (XendCheckpoint:474) (of which 0 were fixups)
[2010-06-10 10:45:57 14488] INFO (XendCheckpoint:474) All memory is saved
[2010-06-10 10:45:57 14488] INFO (XendCheckpoint:474) Save exit rc=0
[2010-06-10 10:45:57 14488] INFO (XendCheckpoint:123) Domain 22 suspended.
[2010-06-10 10:45:57 14488] DEBUG (XendDomainInfo:2757) XendDomainInfo.destroy: domid=22
[2010-06-10 10:45:58 14488] DEBUG (XendDomainInfo:2227) Destroying device model
[2010-06-10 10:45:58 14488] INFO (image:567) migrating-test device model terminated
[2010-06-10 10:45:58 14488] DEBUG (XendDomainInfo:2234) Releasing devices
[2010-06-10 10:45:58 14488] DEBUG (XendDomainInfo:2247) Removing vif/0
[2010-06-10 10:45:58 14488] DEBUG (XendDomainInfo:1137) XendDomainInfo.destroyDevice: deviceClass = vif, device = vif/0
[2010-06-10 10:45:58 14488] DEBUG (XendDomainInfo:2247) Removing vkbd/0
[2010-06-10 10:45:58 14488] DEBUG (XendDomainInfo:1137) XendDomainInfo.destroyDevice: deviceClass = vkbd, device = vkbd/0
[2010-06-10 10:45:58 14488] DEBUG (XendDomainInfo:2247) Removing console/0
[2010-06-10 10:45:58 14488] DEBUG (XendDomainInfo:1137) XendDomainInfo.destroyDevice: deviceClass = console, device = console/0
[2010-06-10 10:45:58 14488] DEBUG (XendDomainInfo:2247) Removing vbd/51712
[2010-06-10 10:45:58 14488] DEBUG (XendDomainInfo:1137) XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/51712
[2010-06-10 10:45:58 14488] DEBUG (XendDomainInfo:2247) Removing vfb/0
[2010-06-10 10:45:58 14488] DEBUG (XendDomainInfo:1137) XendDomainInfo.destroyDevice: deviceClass = vfb, device = vfb/0
[2010-06-10 10:45:58 14488] DEBUG (XendDomainInfo:4054) Releasing lock for domain migrating-test
[2010-06-10 10:45:59 14488] ERROR (XendDomainInfo:4070) Failed to remove unmanaged directory /var/lib/xen/lock/b01515ae-9173-03cb-0cb7-06f3dfbede8b.
I'm using the very latest version of puppet and have been following the Apress "Pro Puppet" guide step by step. I have installed puppet
sudo aptitude install ruby libshadow-ruby1.8
sudo aptitude install puppet puppetmaster facter
I have edited /etc/puppet/puppet.conf to include certname
[master]
certname=puppet.mydomain.com
I have edited /etc/hosts and added the following line
127.0.0.1 puppet.mydomain.com puppet
I have set the hostname of the server
echo "puppet.mydomain.com" > /etc/hostname
hostname -F /etc/hostname
And then I try and run puppet from the command line.
puppet master --verbose --no-daemonize
And puppet gives me this error:
Could not parse for environment production:
Could not find file /master.pp
I'm running all commands with sudo and the last line of the error message always says that it can't find master.pp and the path before it is to my current working directory.
What am I doing wrong?
I should also mention that I don't have a DNS record set up for puppet.mydomain.com - I saw some online documentation mentioning this might be a problem - however I was fairly sure that the hosts file would let me get around that.
I'm running Debian 6, Debian GNU/Linux, with Linux 2.6.32-5-amd64 under Grub2 ( 1.98+20100804-14+squeeze1) on a remote system (no possibility to view the pre-boot messages). I compiled and installed a new kernel, but I can not get it to boot.
What I have done:
Installed the packages via:
dpkg -i linux-headers-3.5.3.20120914-amd64_3.5.3.20120914-amd64-10.00.Custom_amd64.deb linux-image-3.5.3.20120914-amd64_3.5.3.20120914-amd64-10.00.Custom_amd64.deb
This updated the Grub configuration. My /boot/grub/grub.cfg now contains:
menuentry 'Debian GNU/Linux, with Linux 3.5.3.20120914-amd64' --class debian --class gnu-linux --class gnu --class os {
insmod raid
insmod mdraid
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set 5a3882a9-c7df-4f6a-9feb-f03e3e37be01
echo 'Loading Linux 3.5.3.20120914-amd64 ...'
linux /vmlinuz-3.5.3.20120914-amd64 root=UUID=003242b5-121b-49f3-b32f-1b40aea56eed ro acpi=ht quiet panic=10
echo 'Loading initial ramdisk ...'
initrd /initrd.img-3.5.3.20120914-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-amd64' --class debian --class gnu-linux --class gnu --class os {
insmod raid
insmod mdraid
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(md0)'
search --no-floppy --fs-uuid --set 5a3882a9-c7df-4f6a-9feb-f03e3e37be01
echo 'Loading Linux 2.6.32-5-amd64 ...'
linux /vmlinuz-2.6.32-5-amd64 root=UUID=003242b5-121b-49f3-b32f-1b40aea56eed ro acpi=ht quiet panic=10
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.32-5-amd64
}
I used
grub-set-default "Debian GNU/Linux, with Linux 2.6.32-5-amd64" to set the old kernel as default and then grub-reboot "Debian GNU/Linux, with Linux 3.5.3.20120914-amd64" to boot into the new kernel once. After update-grub I rebooted the system, but everytime it comes back up with the old kernel (2.6). I tried setting the new one as default (grub-set-default 0, update-grub, reboot) but, still the old one.
The Syslogs contain NO hint whatsoever about trying to boot the new kernel - only the old one. Would there be any hints regarding problems with a kernel? Is there a way to enable debug-logging in grub?
What am I doing wrong? How can I force the system to boot the new kernel?
Edit: Hardware of remote machine.
CPU
cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 16
model : 5
model name : AMD Athlon(tm) II X4 605e Processor
stepping : 3
cpu MHz : 2294.898
cache size : 512 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 4
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt
bogomips : 4589.77
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate
(copied only the first, 3 more follow)
The server is a Fujitsu PRIMERGY MX130 S1.
From PCI scan results:
Synops is : The remote service encrypts traffic using a protocol with known
weaknesses . Description : The remote service accepts connections encrypted
using SSL 2.0, which reportedly suffers from several cryptographic flaws and has
been deprecated for several years. An attacker may be able to exploit these issues
to conduct man-in-the-middle attacks or decrypt communications between the
affected service and clients . See also : http://www.schneier.com/paper-ssl.pdf
Solution: Consult the application's documentation to disable SSL 2.0 and use SSL
3.0 or TLS 1.0 instead. Risk Factor: Medium / CVSS Base Score : 2
(AV:R/AC:L/Au:NR/C:P/A:N/I:N/B:N)
I have tried to change
SSLProtocol all -SSLv2
to
SSLProtocol -ALL +SSLv3 +TLSv1
And
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
To
SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:!MEDIUM:!LOW:!SSLv2:!EXPORT
But using SSLdigger, it shows the same result. Is this the right way to do something like this?
I'm in a ssh connection and I would like to play a sound after a command completes (not on the server where I connected).
Something:
ssh [email protected]
make && play-sound-local
I have built-in pc-speaker disabled so echo -e "\a" doesn't work.
Any suggestions?
I am hosting a website on Debian 5.0 & Apache2. Today one of my websites was down, Apache said it couldn't find the directory.
I located the files and the whole site once in /var/www/site was now /var/lock/site. All the files were present.
I was confused, but figured I'd just move it back.
mv /var/lock/site /var/www
All looked fine... Except that only the directories moved and the files appear to be lost!
I am working on restoring from backups but I would really love to know what happened and where my files went (the backups are a few days old).
Thanks for your help!
How would i do a hexdump in Ubuntu for the first track of a HDD?
I am looking for a winhex-esque output if that makes sense. The first track has 63 sectors, each 512 bytes long. I tried
dd if=/dev/sda bs=1 count=512 | hexdump -C
but that only gave me what appears to be the MBR, or first sector of the HDD. I guess i am confused about what bs and count should be. Bs means how many bytes to display and count is how many multiples of bs? Thanks!
I have the following scenario:
I want to automatically backup some data from my Laptop(Fedora Core 17) to a external encrypted(luks) hard disk.
The disk can be opened by a key file, which lies on the also encrypted root partition of my laptop.
The hard disk is attached to my docking station and therefore only "present" when I am at home (which is approximately 1/2 of the time the Laptop runs)
I have everything set up the way I want it with one exception.
I don't get a decent way to mount the hard disk automatically at boot if and only if it is present.
If I add it to crypttab and fstab without noauto it tries to mount it at boot and takes a lot(!) of time and error messages when it is not present. If I add noauto, well it does not mount automatically ;)
Is there a way to configure luks/crypttab to do the following:
check whether the disk is present
if yes: decrypt/mount
if no: just don't
I've recently been moving our instances to EBS instances (CentOS) and still have a bit of confusion on what's happening when I "stop" and instance. I have some of my services with runlevels 345 on but when I start a stopped instance the services don't start. What's actually happening when I issue a stop command to the instance, and how do I get my services to start automatically when I start the instance up again?
These are all the dirs in my server:
? bin boot dev etc home lib lost+found media media2 misc mnt net opt proc root sbin selinux srv sys tmp usr var
why there is a "?" dir?
Thanks very much.
BTW: the touch command was found on my server(wiered).
I list the bin dir:
alsacard cp dd env hostname loadkeys more ps sed tcptraceroute
alsaunmute cpio df ex igawk loadkeys.static mount pwd setfont traceroute6
arch csh dmesg false ipcalc logger mountpoint raw setserial tracert
awk cut dnsdomainname fgrep kbd_mode login mv red sh view
basename date doexec gawk keyctl ls netstat redhat_lsb_init sleep ypdomainname
bash dbus-cleanup-sockets domainname gettext kill mail nice rm sort
cat dbus-daemon dumpkeys grep ksh mailx nisdomainname rmdir stty
chgrp dbus-monitor echo gtar ksh93 mkdir pgawk rpm su
chmod dbus-send ed gunzip link mknod ping rvi sync
chown dbus-uuidgen egrep gzip ln mktemp ping6 rview tar
touch is missing, how can i get it back?
Hi I want to write a bash script that when called shuts down another computer on the lan. Maybe using ssh? The other computer is an ubuntu machine. Now I'm not sure how to send e.g. a
sudo shutdown -h now
command from withing a bash script to the ssh after logging in. Also I'm not sure how to obtain the rights for the sudo command, hence how to handle the communication between the server and client from within a bash script. Any suggestions are greatly appreciated.
Hi,
I'm not a shell script expert. I'm looking for a shell script which checks
for maximum number of Java processes (MyJavaStandalone) running in the system
before starting/executing the current Java process.
Example:
Script: /home/myfolder/script.sh
script.sh contains
/usr/java/jdk1.6.0/bin/java MyJavaStandalone >> $DATE.log &
Here, before executing "MyJavaStandalone", if there are already 10 processes
running, then this current process should not be started.
I insert an extra Sound track in my video file and it works well.
ffmpeg -i news.mov -i news.wav -map 0:0 -map 0:1 -map 1:0 -pass 1 -vcodec libx264 -preset fast -b 512k -minrate 512k -maxrate 512k -bufsize 512k -threads 0 -f mp4 -an -y /dev/null &&
ffmpeg -i news.mov -i news.wav -map 0:0 -map 0:1 -map 1:0 -pass 2 -acodec libfaac -ab 128k -ac 2 -vcodec libx264 -preset fast -b 512k -minrate 512k -maxrate 512k -bufsize 512k -threads 0 -f mp4 news.mp4
The default audio track come with the label "English" and I would like to give it a label "Sinhalese"
The Second Audio track come up without a label as "track#1" and I would like to give that a label of "Tamil".
How do I do that ?