Tampilkan postingan dengan label Linux. Tampilkan semua postingan
Tampilkan postingan dengan label Linux. Tampilkan semua postingan

How do I silence PHP errors on Linux Ubuntu Lampp?


<b>Notice</b>:  Undefined index: consid in <b>/media/data1/lampp/htdocs/bridgingbpjs/index.php</b> on line <b>82</b><br />

How do I silence PHP errors on Linux Ubuntu Lampp?

1.

go to /lampp/etc/php.ini

2.

Find this text
display_errors=On

and then set it off
display_errors=Off

3. 

Resart Lampp
sudo /opt/lampp/share/xampp-control-panel/xampp-control-panel

Auto Start XAMPP at Startup in Ubuntu Linux


Creating script in lower versions

1.

sudo gedit /etc/init.d/lampp

2.

In opened file, add the following lines.
#!/bin/bash
### BEGIN INIT INFO
# Provides: lampp
# Required-Start:    $local_fs $syslog $remote_fs dbus
# Required-Stop:     $local_fs $syslog $remote_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start lampp
### END INIT INFO
/opt/lampp/lampp start

3.

$ls –l /etc/init.d/lampp
$sudo chmod +x /etc/init.d/lampp
$ls –l /etc/init.d/lampp

4.

$sudo update-rc.d lampp defaults

5.

To test this setup, reboot the system with the following command.
$reboot

#https://www.computernetworkingnotes.com/linux-tutorials/auto-start-xampp-at-startup-in-ubuntu-linux.html

Espeak on Ubuntu | Text To Speech for free???

Hi there i wanna share U one thing that make us think differ. . .
How about if we convert text to voice and it can talk on our speech.
it's like google
:(
Yes it calls text to speech. . . there are a lot of api, software, module and on that allow us to convert text to speech.
but alot of them is not free. . .
base on that idea i will share you espeak base on Ubuntu OS
it's simple to use, easy to install and no ribet!!!

then here it's

Installation

sudo apt-get install espeak espeak-gui

Try out

espeak 'hello to everybody this fine day'
Speed
espeak -s 125 'can you understand me now?'
 slow and deliberate
espeak -s 10 'can you understand me now?'
Male and Female
 espeak -s 125 -v en+f5 'Hey, handsome. Did you just spill soda on my designer bag?'
espeak -s 125 -v en+f4 'Hey, handsome. Did you just spill soda on my designer bag?'
Robot
espeak -s 125 -v en+m3 'Oh! I thought that was a trash bag.'
The available voice files can be listed by
espeak --voices
in my case i will use indonesian voice
espeak -s 125 -v id -p 100 'merdeka'

Convert on mp3 or wave file
espeak -s 90 -v id+m3 -p 25 'Nomer urut 1 masuk ke poli dalam' --stdout | ffmpeg -i - -ar 44100 -ac 2 -ab 192k -f mp3 /home/avro/final.wav

Counter Strike: Source, Closure, Psychonauts And Shank 2 Available On Steam For Linux

After Counter-Strike 1.6 and Half-Life 1, another important game is now available in Steam for Linux: Counter-Strike: Source (CS: S), a popular first-person shooter developed by Valve.

counter strike source Linux

Counter-Strike: Source is a remake of the original Counter-Strike, using the Source game engine, in which the gameplay is basically the same as in the original Counter Strike: the counter-terrorists team plays agains the terrorists in a series of rounds.

Counter Strike: Source
Counter Strike: Source
Since both Counter-Strike: Source and Team Fortress 2 use the Source engine, it is likely to see more games using this engine available on Linux, like Half-Life 2 and others.

For now, Counter Strike: Source doesn't show up when selecting Linux for the OS in Steam, but the game is available and can be played on Linux - simply don't select Linux for the OS when searching for it.

There's no news on Counter-Strike Global Offensive (CS:GO), the game released in 2012, but considering the rate at which Valve is making their games available on Steam for Linux, it shouldn't be too long until CS:GO will be available for Linux users.


Psychonauts
Shank 2
Shank 2
Along with Counter Strike: Source, Valve has made some other games available for Linux recently: Closure, Psychonauts and Shank 2 (this one doesn't seem to work right now, according to SteamDB, it's missing the executable), but just like CS: S, they don't show up in Steam for Linux if you restrict the search to Linux.

via reddit, game screenshots via store.steampowered.com