Mounting a Windows (SMB) share on Ubuntu gives us a “cannot allocate memory” error. Executing a command like this: mount -t cifs //toad/Backup /media/backup -o user=username,password=password,iocharset=utf8,file_mode=0777,dir_mode=0777 We get an error like this: mount error(12): Cannot allocate memory Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) Solution: First, check the permissions on your shared folder. Right-click the folder and selectProperties. Your Windows user must be allocated permissions on both the Securityand the Sharing tabs. Open regedit, and set the following registry key to ‘1’. This key tells Windows to set aside enough system cache for sharing large files. Commenter Raoul Duke (thanks!) adds that this change is unnecessary on Windows 7 and later.Read More →

Debugging Autofs problem If you are having trouble automounting your file systems, want to check where the log that autofs being saved, it may be useful to run automount in the foreground. Stop the autofs daemon sudo service autofs stop Run automount in the foreground with verbose information sudo automount -f -v From another terminal, try to mount your file-systems by changing directories into the mountpoint. Check the output from the first terminal for clues as to why the mount failed or was not attempted.   Hope it help.Read More →

The automatic troubleshooter says “Audio device is disabled”, even though it’s not http://www.pcgamer.com/the-most-frustrating-windows-7-audio-problem-solved/   http://superuser.com/questions/815832/how-to-deal-with-windows-7-when-it-reports-audio-device-is-disabled-but-is-noRead More →

If your apt-get repositories don’t contains any precompiled 1.0.1g OpenSSL version, so just download sources from official website and compile it. Below the single command line to compiling and install the last openssl version. curl https://www.openssl.org/source/openssl-1.0.1g.tar.gz | tar xz && cd openssl-1.0.1g && sudo ./config && sudo make && sudo make install Replace old openssl binary file by the new one via a symlink. sudo ln -sf /usr/local/ssl/bin/openssl `which openssl` You are all good ! # openssl version should return openssl version OpenSSL 1.0.1g 7 Apr 2014Read More →

Are you trying to setup on replication on mysql5.5+ ? After upgrading, your mysql can’t start,and  the log show “unknown variabled ‘master-host=’ The following options are removed in MySQL 5.5. If you attempt to start mysqld with any of these options in MySQL 5.5, the server aborts with an unknown variable error. –master-host –master-user –master-password –master-port Solution, comment the master- related variables. Do following, On Master: mysql>GRANT REPLICATION SLAVE ON *.* TO ‘slave_user’@’%’ IDENTIFIED BY ‘‘; (Replace with a real password!) mysql>FLUSH PRIVILEGES; mysql>FLUSH TABLES WITH READ LOCK; mysql>SHOW MASTER STATUS; # get the DB dump. mysql>UNLOCK TABLES; On Slave: # import the DB dump mysql>stopRead More →

============================================================================== Check if you need to update Running this: env x='() { :;}; echo vulnerable’ bash -c “echo this is a test” If you are vulnerable , you will see: ” vulnerable hello” If you are not, you will see bash: warning: x: ignoring function definition attempt bash: error importing function definition for `x’ hello ============================================================================== CHECK your package dpkg -s bash | grep Version ============================================================================== HOW TO FIX ============================================================================== METHOD1: ============================================================================== sudo apt-get update && sudo apt-get install bash ============================================================================== METHOD2: compile your self to make this run , you must have “patch” apt-get install patch ============================================================================== cd /root mkdir src cd src wgetRead More →