Archives

All posts by Carlos Villabrille

With SSH you can create trust relationships between machines to connect between them without asking for password to be able to install Veritas software or just to connect quickly to remote systems. First, you must create the Secret and Public key with this command: # ssh-keygen -t dsa -f $HOME/.ssh/id_dsa -P '' You can choose dsa or rsa as type of ssh protocol version (should use the same as on sshd_config file). rsa is used with protocol 1 in ssh. dsa is used with protocol 2 in ssh. It Read more...
Configure vsftpd with SSL .- Check that we have vsftpd compiled with SSL support # ldd /usr/sbin/vsftpd | grep ssl libssl.so.5 => /lib/libssl.so.X .- Create a cert # openssl req -x509 -nodes -days 730 -newkey rsa:1024 -keyout /etc/ssl/certs/vsftpd.pem -out /etc/ssl/certs/vsftpd.pem .- Add on vsftpd.conf the following line [...] ssl_enable=YES allow_anon_ssl=NO force_local_data_ssl=NO force_local_logins_ssl=YES ssl_tlsv1=YES ssl_sslv2=NO ssl_sslv3=NO rsa_cert_file=/etc/ssl/certs/vsftpd.pem [...] .- Read more...
#When you forget root password, there is a way to set a new password accessing the console after booting or restarting the system. When grub load, edit the line kernel and add in the end of kernel parameters: init=/bin/bash The system will go up without requesting root password like in single user. After the system is up, re-mount / filesystem # mount -o remount,rw / Now the / filesystem is accesible and you can change root password with: # passwd root   Now reboot the machine Read more...

Running ipconfig shows this error:

An internal error occurred: A device attached to the system is not
functioning.
Please contact Microsoft Product Support Services for further help.
Additional information: Unknown media status code.

Check the status of these services, or restart them

Routing and Remote Access

Remote procedure call (RPC)

Now ipconfig should work correctly.

#to copy or backup the MBR

MBR information is stored on the first 446 bytes of a disk, to backup this information you can save it with dd to another disk, or to a file.

dd if=/dev/sda of=/dev/sdg bs=446 count=1

dd if=/dev/sda of=/path/to/a/file.mbr bs=446 count=1

 

To restore the data to its original place using our backup file:

dd if=/path/to/a/file.mbr of=/dev/sda  count=1