I'm writing this program for my own edification. I want to write and retrieve from a database. I will start on Linux and probably use MySql. After I get the program working on Linux I would like to be able to use it on a Windows 7 or 8 platform. Here are some sample entries I would like to write to and draw from. Which database would you use? Does MySql work on both Linux and Windows?
Casino Date Buy-in time-at-table exit-monies
Binions 05/05/2015 200 3.5 -400
Wynns 05/06/2015 200 5.0 +400
Trip Total -200
Thank you;
Sherman
Hello am a newbie to linux,
I tried to install cygwin for windows,all i need is i need to write a shell program for a batch file i already have, I am not able to do this.
My batch file content looks like
SET JAVA_HOME=..\jdk
SET CLASSPATH="%CLASSPATH%;../lib/A.jar;../lib/slf4j-api-1.6.1.jar;../lib/slf4j-simple-1.6.1.jar"
%JAVA_HOME%\bin\java.exe com.A ../conf/C.properties
PAUSE
this works perfectly, I try to write a shell program which is failing when i check it through cygwin. i am not able to set the export to java_home.
The pblm i face is say my current directory where my shell program is 'Z'
then i want to get back to 'y' where X has two sub folders y and z
X
-Y (is jdk )
-Z (where shell pgm resides)
cd ../ or any combination of cd doesnot work in my shell script.
Please help me. Any help is greatly appreciated
I've been a DOS / Windows user ever since I got my first computer. I've been on Linux for almost two weeks now, and it's still hard for me to get really into it. Mainly because it is a totally different concept.
If Windows has exe, bat, and com files, what does Linux have?
Can you even run an application/program in Linux?
Why is it so damn hard to get up-to-date stuff like flash plugins and java? or up-to-date browsers for that matter.
I love how stable Linux is now that I don't have to worry about viruses, but I am reluctant when it comes to installing and trying things because this one concept is so alien to me.
I have many hosts as following. But those hosts are dual operating system (Linux and Windows). I always run program background. If someone is using Linux, it is fine. But if someone is using windows or the host is offline. Then, I cannot use ssh. The way I do preiviously is first ssh one by one. And then find the hosts which are offline or windows. And write them down one by one. And then ssh to hosts except them. Let us assume the number of programs is less than the total available hosts. Can someone write a shell script to output the all available hosts to a file like "host_available"?
Here is the host file.
https://www.dropbox.com/s/vbz6w864y3...tlist.txt?dl=0
I am using ssh to connect the computers on campus. If the computer I am trying to connect is offline or using windows, the ssh will take long time, and finally it will failed. I write a shell script to generate the hostlist
Code:
#!/bin/bash
for i in `seq -w 1 28`
do
echo "c15-0330-$i.ad.mtu.edu"
# I would like to add a command here to see whether ssh c15-0330-$i.ad.mtu.edu it succeeds or not. And then output a #file which contains the all available host.
done
for i in `seq -w 1 20`
do
echo "c28-0112-$i.ad.mtu.edu"
done
for i in `seq -w 1 20`
do
echo "c28-112a-$i.ad.mtu.edu"
done
I do not how to set a certain time to see whether connection is successful or not (see the comment in the shell script).
I am new to Linux. i am sql DBA, but i need to interact with SAP HANA Database which is on Linux. currently, only way, i can log n to server is through Putty. which opens up cmd interface. is there way, i can log on to Linux server and see drives, files like windows.
thanks,
Sukhi
I am in the process of setting up my first VPS to host a website that I have been working on. By profession, I am a programmer, so I know nothing of Linux or web hosting!!
Thanks to lots of help on here this weekend, I finally learned how to access my VPS using SSH. (That only took a day or two to learn!) And my first command-line task was learning how to copy a file to another folder while maintaining the original modified date. (That only took another half-day!)
Whew!
So the next thing that I need to do is set up MySQL on my VPS...
My VPS runs on CentOS 6, and it also comes with cPanel, but since astrogeek and Miati were persistent in explaining why it is better to do things via the command-line versus using a GUI, I figured I would check things out...
My cPanel comes with some "wizard" that supposedly sets up a MySQL database for you, but whenever I see "wizard" I tend to run!
Advanced Support for my web host said that I should definitely use cPanel to create my database and create the users, because if I did it using phpMyAdmin it would supposedly mess things up as cPanel wouldn't recognize things?
(BTW, I requested MySQL Root access this morning, but I do not have Root access to my VPS - by choice for now!)
Questions:
1.) Should I listen to my web host and use the cPanel wizard to create a new MySQL database?
2.) If I decide to bypass cPanel, how exactly would I use my MacBook to talk to my VPS and do MySQL stuff over command-line?
FWIW, I developed my entire database using phpMyAdmin in MAMP on my MacBook. When I created my original database in development, I used phpMyAdmin's GUI. And then for everything else (e.g. create table, indexes, queries, etc.), I hand-wrote the SQL in TextEdit and then ran it in phpMyAdmin.
But I have no clue how to do any of this on my VPS!!
3.) How would I use the command-line to create a new database and set up groups and users for MySQL?
4.) If I did things by command-line, is it true that I would break cPanel?
I have been working on my website for the last 3 years, and it is ready to "go live", but I am discovering that setting up my VPS properly - and with lots of security - and getting things like PHP and MySQL set up is a very daunting task!!!
Sincerely,
Rob
I own a NAS D-Link DNS-320 running fun_plug 0.7 & transmissionBT.
I just bought a Transcend 2.5 inch 2TB USB HDD which is preformatted to NTFS.
Just wondering whether my NAS(linux) can write to my USB HDD for a reliable storage for transmissionBT.
Otherwise, if writing to NTFS is unstable in linux, how should I format my USB HDD. I know I could format as FAT32... but FAT32 has a 4GB file size limit.
Is it possible to format USB HDD as ext3 (linux file system)... and still compatible/read/write by Windows XP/7/8?
Good day everyone,
I'm currently a student and as far as I'm aware I still need windows for some program I need, but I am going over to Linux.
(Thus I'm running Windows 8 at this moment)
Today I was going to install Ubuntu 14.04.01 alongside Windows 8, everything went well till I hit the 4th step (Installation type page) of the installation:
A message like follows showed:
"This computer currently has Debian GNU/Linux (Kali Linux 1.0.7) on it. What would you like to do?"
There are then 3 options available:
1) Install Ubuntu alongside Debian GNU/Linux (Kali Linux 1.0.7)
2) Replace Debian GNU/Linux (Kali Linux 1.0.7) with Ubuntu
3 and 4 is greyed out.
5) Something else (You can create resize partitions yourself, or choose multiple partitions for Ubuntu.
I just want to make sure what option to choose, I cant afford to lose all my data and windows.
Problem: Showing Kali Linux as current OS and not Windows 8.
Possible reason for showing Kali Linux as current OS:
I have a live CD of Kali Linux and ran it a few times in the past, but according to my knowledge it shouldn't have changed anything.
Maybe the 1st option is still the right one even though the current OS isn't listed right? Or the 3rd option is like a manual setting I guess.
Thanks for the time reading and helping!
Hi all,
I am brand new to Linux, playing around a bit with different things to see how I can use it in the future. Here is my problem:
I have written a simple program in Ada that works well on windows. It opens a TCP port (20000) and listens for incoming connections. I tried it on my internal network and it works well. I can connect from other windows machines and even from my Linux machine.
Now I moved the program to Linux and compiled it there. It starts ok and then listens for the connections. I can connect to it from that same Linux machine but not from any other machine on my network.
I checked the firewall status on Linux with ufw status and it is disabled. I also tried to add a rule to the iptables with
iptables -A INPUT -p tcp --dport 20000 -j ACCEPT
but still nothing. I can not connect from another machine on my network. I also tried to open a simple telnet connection from a windows machine and that too is blocked. I thought without the firewall all incoming connections would be allowed but obviously something is not working as I thought.
Any help would be greatly appreciated
I am an older, competent, windows user who would love to migrate to Linux. Unfortunately there is no easy path. Linux seems to be a program written by geeks who want it to be different, forcing a windows user wanting to move over to completely learn a new way to use the internet. Even moving to Apple is easier. To learn Linux is like forcing us to learn Chinese from scratch. That will not happen.
Unless a pathway, or a bridge, which is "somewhat" like windows is provided so we can assimilate into this new OS called Linux, I, we, will never really accept Linux to replace Windows. Even though we want to get away from Windows, there is no way to do it, because Linux is just too different to easily learn. I can play with Linux, but that is all I can do - play with it, not use it on a daily basis.
SAD.
And here we are, going to be forced to accept Windows 10 as the next OS, and I have nothing to say about it, for MS will soon kill Win7 like they killed XP, and force me to go to Win10, when I don't want to. I would love to use Linux, but the learning curve is just toooooo steep.
SAD
It would be nice to have a version which would make moving from Windows to Linux easy. The reality is, though, Linux is an OS for the younger geeks, or experienced programmer, not an OS for the avg user. Why can't that change? I realize this is an age old question, which has been around for years, but I'm realizing it is now becoming a reality I need to face.
I just got a new laptop with Windows 8.1 and I cannot figure out how to install Linux Mint by booting from a CD or USB drive. Previously, I had installed Linux Mint on my old desktop and netbook computers that were running Windows XP. I had no trouble booting from a CD. Now that the process has been complicated in Windows 8.1 I don't know what to do. Any help would be greatly appreciated, I would really like to get rid of Windows 8.1 ASAP. Thanks!