Author Archives: Ahmed Tawfik

Unknown's avatar

About Ahmed Tawfik

Cybersecurity Professional, Systems Engineer, OSS & Linux Geek

How to enable & force HTTPS on Apache2 Web Server on Ubuntu

HTTPS Configuration (with self-signed certificate) “sudo a2enmod ssl” “sudo a2ensite default-ssl” With Apache2 now configured for HTTPS, restart the service to enable the new settings: “sudo service apache2 restart” Source: https://help.ubuntu.com/10.04/serverguide/httpd.html To force https: Enable mod_rewrite: “sudo a2enmod rewrite” Then … Continue reading

Posted in Uncategorized | Tagged , , , | 1 Comment

How to install basic GUI on Ubuntu Server and access it via VNC

For those who need basic & light-weight GUI for their Ubuntu Server, you can do the following: “sudo apt-get install xorg openbox” To easily access it via VNC: “sudo apt-get install tightvncserver” To start your VNC server, simply type: “vncserver” … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , | Leave a comment

How to manually modify DB initialization parameters by creating pfile from spfile

pfile is the initialization parameters of DB in plain text, while spfile is the binary one, so to be able to change it, you have to: Extract the pfile from the spfile: “create pfile=’my_path/file_name.ora‘ from spfile;” Shutdown the DB: “shutdown … Continue reading

Posted in Oracle | Tagged , , , , , , | Leave a comment

How to start the X server at boot with Redhat or Oracle Linux

vi /etc/inittab Edit your /etc/inittab file by replacing the line: id:3:initdefault: With this one: id:5:initdefault: and reboot Enjoy! Source: http://www.redhat.com/support/resources/faqs/rhl_general_faq/s1-xwin-q.html

Posted in Uncategorized | Tagged , , , , , , | Leave a comment

Managing the Oracle DB 11g Scheduler Windows (DBMS_SCHEDULER)

To display existing scheduler windows, you should query the “dba_scheduler_windows” table: e.g. SELECT WINDOW_NAME,REPEAT_INTERVAL,DURATION,ENABLED FROM dba_scheduler_windows In my case, I needed to disable a window, so that it doesn’t run any scheduled jobs, so I had to run the following: … Continue reading

Posted in Oracle | Tagged , , , , , , | Leave a comment