Difference between revisions of "Ubuntu"
m |
m (Added installing Teamspeak3 server on Ubuntu 16.04 via CLI) |
||
Line 1: | Line 1: | ||
== Shell commands == | |||
Enable root account (not recommended): | Enable root account (not recommended): | ||
Line 61: | Line 61: | ||
<pre>psql -d postgres</pre> | <pre>psql -d postgres</pre> | ||
== Teamspeak3 setup on Ubuntu 16.04 via command line == | |||
Followed steps at [https://www.vultr.com/docs/how-to-install-teamspeak-3-server-on-ubuntu-16-04-64-bit How to install Teamspeak 3 server on Ubuntu 16.04 64-bit] to install Teamspeak 3 and get basic server running. | |||
If you want to customize the server port follow next steps. | |||
Install simple command-line program named [https://www.sqlite.org/cli.html sqlite3] | |||
<pre>robot00@apu00:~$ sudo apt install sqlite3</pre> | |||
Launch sqlite3 using Teamspeak 3 sqlite database file: | |||
<pre>robot00@apu00:~$ sudo sqlite3 /home/teamspeak/ts3server.sqlitedb | |||
SQLite version 3.11.0 2016-02-15 17:29:24 | |||
Enter ".help" for usage hints.</pre> | |||
Update port command: | |||
<pre>sqlite> update servers set server_port=<CUSTOM UDP Port>;</pre> | |||
Restart Teamspeak 3 server | |||
<pre>robot00@apu00:~$ systemctl restart teamspeak.service</pre> | |||
Test your connection using the <CUSTOM UDP Port> | |||
Revision as of 13:07, 24 April 2018
Shell commands
Enable root account (not recommended):
$sudo passwd root
Disable root account you lock root account:
$sudo passwd -l root
Want to use root @ console:
$sudo -i
Windows Dual Boot page
Recovering Ubuntu After Windows Install
Grub2 on Ubuntu wiki
Grub2 GUI Customizer
For support-related question you can use Launchpad. You can also search the complete history of questions and answers.
Grub 2 basics
CLI Software Management
Synchronize package index from Internet. Location of repositories /etc/apt/sources.list
sudo apt-get update
Install newest versions of all software packages
sudo apt-get upgrade
Update distribution
sudo apt-get dist-upgrade
Install package (if already installed, will attempt to update package)
apt-get install package-name
List installed packages
apt list --installed
PostgreSQL
Switch to postgres account
sudo -i postgres
Access PostgreSQL prompt
psql
Exit PostgreSQL prompt
\q
Log directly into PostgreSQL prompt with postgres user
sudo -u postgres psql
Add user (username must be same as PostgreSQL role and database)
sudo adduser user_name
Check current connection information
\conninfo
While logged in as postgres user...
Create a new role. Use man createuser
for more information.
createuser --interactive
Create new database
createdb db_name
Same user connect to different database
psql -d postgres
Teamspeak3 setup on Ubuntu 16.04 via command line
Followed steps at How to install Teamspeak 3 server on Ubuntu 16.04 64-bit to install Teamspeak 3 and get basic server running.
If you want to customize the server port follow next steps.
Install simple command-line program named sqlite3
robot00@apu00:~$ sudo apt install sqlite3
Launch sqlite3 using Teamspeak 3 sqlite database file:
robot00@apu00:~$ sudo sqlite3 /home/teamspeak/ts3server.sqlitedb SQLite version 3.11.0 2016-02-15 17:29:24 Enter ".help" for usage hints.
Update port command:
sqlite> update servers set server_port=<CUSTOM UDP Port>;
Restart Teamspeak 3 server
robot00@apu00:~$ systemctl restart teamspeak.service
Test your connection using the <CUSTOM UDP Port>
Hardware
Identify video card:
paul@congo:~$ lspci -nn | grep VGA 01:00.0 VGA compatible controller [0300]: nVidia Corporation G92 [GeForce 8800 GT] [10de:0611] (rev a2)