I am new to Google Compute Engine. I want to create a Web Server having following properties: 1 Core Red Hat Enterprise Linux 7.1 64 bit RAM 8 GB HDD: 100 GB SSH, JDK 1.7 Apache Web server as the proxy to Jboss App Server Enable HTTP / 80 and HTTPS /443 on public IP Access Mode – SSH/SCP I
How to grep a string in a program?
Description: The str_buf_to_grep is given in any way, which might be the content of a text file, and might be very long and complex, even contains special characters, such as |, “, etc. I want to use the grep command to find matched lines, and the patterns might be very complex. How should I implement i…
Variable passed through environment not available in script
I’m trying to write an if/elif/else statement where if a variable equals “Full” it will cat a file and if the same variable equals “Quick” it will read a different, smaller file. The variable is being set outside of the script and is being exported by export var1=Quick I have Whe…
Getting linux system UUID which changes after reboot
I’m looking for a linux system session id which is constant over the full runtime of the linux session (as long as uptime is increasing). After each reboot, it should be reset to another (random) value, probably formatted as a uuid. I need this for logging in a global context, where I need to know if tw…
How to use awk regex sort by query string value?
I have a log file with example row: The 7th column of each row looks like this: Output is arranged according to the number of lines in decreasing order containing unique values of t. Desired OUTPUT: I am using awk but it is not giving desired output: It outputs all columns after 7th which is not required. Wha…
jenkins cannot run firefox: No protocol specified Error: cannot open display: :0
I have installed jenkins as a service on linux mint. I am trying to run tests written in python and script cannot run firefox. This line is a problem. … self.browser = webdriver.Firefox() … When i log in as jenkins user, i can’t run firefox. getting this error : (process:3758): GLib-CRITICAL…
Connect to sqlplus with another linux user than oracle
I installed Oracle with sqlplus with user oracle (linux – CentOS). If I try to connect to database being oracle everything goes as expected (sqlplus / as sysdba for example), but I need to do the same thing (maybe not as sysdba, but as a user from database) being another linux user. I added this second …
Use python 2.7 for some apps, while keeping python 2.6 for the OS (linux fedora/centos)
How can I use python 2.7 for some apps, while keeping python 2.6 for the OS? I am using CentOS6.6 (based on RHEL 6 / Fedora 12), and would like to install some recent packages such as meld 3.13, latest rabbitcvs, etc… It requires python 2.6 to run. when I try to run meld 3.13, it says “Meld requir…
Bash : Syntax Error Near Unexpected Token `’table_name’`
I’m getting started learning Laravel 5 in Ubuntu 15.04. So, I’m done creating my database but when I’m trying to insert data using Terminal, I’ve got some error that says Here’s my terminal inputs in my laravel app directory It’s just an simple queries on adding datas insid…
Dynamically find the address at which the kernel is loaded
I’d like to be able to programmatically find out the address at which the linux kernel is loaded. If there are tools out there that already do that, I’d be willing to use them. However, inspecting the PARAMS_PHYS field in the .config during the kernel build is not an option. How could I go about d…