Force syn date and time

21 05 2017

apt-get install tlsdate
tlsdate -H mail.google.com

Advertisements




Enable autologin in Debian with Systemd

19 05 2017

For allow autologin in a Debian system with systemd (very usefull with testing virtual machines):

Create dir:
mkdir /etc/systemd/system/getty@tty1.service.d/

Create file /etc/systemd/system/getty@tty1.service.d/override.conf with the following content:
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin root --noclear %I $TERM

More info:
http://forums.debian.net/viewtopic.php?f=16&t=123694





Disable time sync between host and guest in Linux VirtualBox

19 05 2017

To the following files:

/home/[your_user]/.config/VirtualBox/VirtualBox.xml
/home/[your_user]/VirtualBox\ VMs/[VM_Name]/[VM_Name].vbox

Add the line:

<ExtraDataItem name="VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" value="1"/>

More info:
https://forums.virtualbox.org/viewtopic.php?f=2&t=8535&sid=40a155aafbe83d3409b73aed8f0b96dd&start=15





Deny ssh access to one user

18 05 2017

If you want to deny the access of one user (or group) to a server via ssh, these are the steps for a Debian/Ubuntu server:

Add the user to /etc/security/access.conf
- : user1 : ALL

Assure that “/etc/ssh/sshd_config” have the following line (by default yes):
UsePAM yes

Assure that “/etc/pam.d/sshd” have uncommented the following line:
account required pam_access.so





Configure phpmyadmin for connect to RDS AWS MariaDB

30 03 2017

Ensure that “/etc/phpmyadmin/config-db.php” doesn’t haven any configured values:

$dbuser='';
$dbpass='';
$basepath='';
$dbname='';
$dbserver='';
$dbport='';
$dbtype='';

Create a new file with for your particular values in “/etc/phpmyadmin/conf.d/myconf.php”

<?phpConfigure phpmyadmin for connect to RDS AWS MariaDB
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['host'] = 'name.of.rds.amazonaws.com';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = TRUE;

Go to the phpmyadmin website and log with the administrative account.

More info: http://stackoverflow.com/questions/4402482/using-phpmyadmin-to-administer-amazon-rds





Dell Inspiron 1545 upgrade – Enable virtualization in BIOS and change CPU

27 02 2017

The Dell laptop Inspiron 1545 doesn’t have any menu in the BIOS for enable virtualization, but using a tool from Dell allow us to enable it from the operating system.

The tool was called Dell Client Configuration Toolkit – CCTK and was available here:

http://en.community.dell.com/techcenter/systems-management/w/wiki/1952.dell-client-configuration-toolkit-cctk
But they change the name, and now it is called Dell Client Command Suite, and then, Dell Command | Configure. Download it from the following links (maybe they don’t change it again, who knows…):

The latest version of CCTK is now Dell Command | Configure and is a part of the Dell Client Command Suite.
http://en.community.dell.com/techcenter/enterprise-client/w/wiki/7431.dell-client-command-suite
http://en.community.dell.com/techcenter/enterprise-client/w/wiki/7532.dell-command-configure

It is possible to do it from linux, in my case a .deb package is available. Download and install it. After, execute the following (search for the binary before):
# cctk --virtualization
virtualization=disable
# cctk --virtualization=enable
virtualization=enable

In my case, the CPU is an old Pentium Dual Core T4300 2.10GHz, 800MHz FSB, 1MB cache and I need to change the processor too, this doesn’t have the vmx instruction support. The requirements are:

1. The CPU should be a socket P CPU with 478 pins (P-series processors were more energy efficient than T-series)
2. More or equal than 1MB cache
3. More or equal than 800Mhz FSB, maybe close to 1066Mhz.
4. Core 2 duo preferred, if not, any Celeron ,Celeron Dual-Core or Pentium Dual-Core

For the upgrade, I choose a the Intel Core 2 Duo P9500 SLB4E 2.53Ghz 6M 1066Mhz. It works perfect, the fan is running less time, the temperature is lower and the perfomance is better. Change it if you have the opportunity.

Replacing it was very easy, unlock the bottom cover, unlock 5 screws from the heat pipe and unlock the screw of the CPU (half turn only), remove, mount the new one with some thermal paste and attach the heat pipe and the cover.

More info:

http://www.benshardwareblog.com/laptop-hardware/upgrading-a-dell-inspiron-1545-cpu
http://en.community.dell.com/support-forums/laptop/f/3518/t/19525777





Install VMware Horizon Client in Debian 8 Jessie

24 02 2017

Download the linux client from the VMware website:

https://my.vmware.com/en/web/vmware/info/slug/desktop_end_user_computing/vmware_horizon_clients/4_0

The downloaded file is a bash script, execute it from a privileged user:

# bash VMware-Horizon-Client-4.3.0-4710754.x64.bundle

Install dependencies:

# apt-get install libudev-dev libffi-dev libglibmm-2.4-dev

Before finish the install, click into the “Scan” button. If libffi.so.5 is missing and you have libffi.so.6 only (usually in a modern Debian), create a symlink for bypass:

cd /usr/lib/x86_64-linux-gnu && ln -s libffi.so.6 libffi.so.5

Probably, if you execute now the client, it doesn’t start because the following:

$ vmware-view
/usr/lib/vmware/view/bin/vmware-view: error while loading shared libraries: libudev.so.0: cannot open shared object file: No such file or directory

Solve that creating a simlink:

# cd /lib/x86_64-linux-gnu && ln -s libudev.so.1 libudev.so.0

And run!:

$ vmware-view